Stabilize extraction identity and keep long startups alive #417

Merged
buildagent merged 7 commits from codex/stable-extraction-identity into master 2026-10-23 05:10:21 +02:00
Member

Core/worker release labels currently invalidate unchanged extraction, and a long successful startup can consume the idle timeout before approval polling begins. This change gives extraction a conservative identity independent of release/Git labels and starts a fresh idle window after successful initial reconciliation and activation re-arm.

  • Fingerprint production sources, dependency pins, workspace feature requests, compiler/target/settings and actual builtin features. Normalize the two builtin forwarding aliases so equivalent CLI/MCP/daemon builds agree. Keep ABI, engine and flags explicit; legacy workers retain conservative invalidation.
  • Include effective derived-name authority and granted bridges in activation digest v2, with agreement between live and approval projections.
  • Document and exercise qualified-source merge → version-only merge → merged version-head tag ordering, preserving existing release gates and negative controls.
  • Validate complete freshness walks and exhausted budgets independently, and check bounded API results against their disclosed incompleteness; the production probe remains 250 ms.
  • Make semantic tests prove initial readiness, centralize their existing debug-only startup wait and account for one-shot query/hook resources in the parallel CI profile. Production deadlines, the serial timing lane and no-retry policy remain intact.

Local validation before the focused freshness correction: 5,039/5,039 normal tests and 37/37 serial timing tests; all-workspace/all-target strict Clippy (including first-party-tests), strict documentation and workspace doc-tests passed. The 61-second real-daemon startup regression passes; removing only the idle-clock reset makes it fail with the reported immediate-exit sequence. Fingerprint tests cover actual production emit(), real-tree version-only changes and semantic negative controls; live/approval grant projections and cross-binary activation/query tests pass.

The freshness follow-up passed the daemon library, snapshot, bounded-freshness and module-layout suites plus strict daemon Clippy. Both deliberate mutations (uncapped list and omitted deleted-path name) fail the deterministic tests; the production cap and budget remain unchanged. Final source-head CI passed: Linux 5,041/5,041 normal and 37/37 timing tests, native Windows 4,823/4,823 normal and 27/27 timing tests plus installer validation, daemon transport, OSS corpus, all 11 language-package suites/corpora and both pilot compatibility lanes.

One initial conservative rebuild is expected when entering the new identity contract. Source/dependency/compiler/configuration changes within the boundary can still rebuild. Schema 88, fact ABI 1.4, guest ABI 2, SDK versions and signed language-package bytes are unchanged. Bounded recovery across package upgrades (#410) and the cache backend/reuse problem (#408) remain separate work.

Closes #409. Closes #412. Closes #414. Closes #415. Closes #416. Closes #418.

Core/worker release labels currently invalidate unchanged extraction, and a long successful startup can consume the idle timeout before approval polling begins. This change gives extraction a conservative identity independent of release/Git labels and starts a fresh idle window after successful initial reconciliation and activation re-arm. - Fingerprint production sources, dependency pins, workspace feature requests, compiler/target/settings and actual builtin features. Normalize the two builtin forwarding aliases so equivalent CLI/MCP/daemon builds agree. Keep ABI, engine and flags explicit; legacy workers retain conservative invalidation. - Include effective derived-name authority and granted bridges in activation digest v2, with agreement between live and approval projections. - Document and exercise qualified-source merge → version-only merge → merged version-head tag ordering, preserving existing release gates and negative controls. - Validate complete freshness walks and exhausted budgets independently, and check bounded API results against their disclosed incompleteness; the production probe remains 250 ms. - Make semantic tests prove initial readiness, centralize their existing debug-only startup wait and account for one-shot query/hook resources in the parallel CI profile. Production deadlines, the serial timing lane and no-retry policy remain intact. Local validation before the focused freshness correction: 5,039/5,039 normal tests and 37/37 serial timing tests; all-workspace/all-target strict Clippy (including first-party-tests), strict documentation and workspace doc-tests passed. The 61-second real-daemon startup regression passes; removing only the idle-clock reset makes it fail with the reported immediate-exit sequence. Fingerprint tests cover actual production emit(), real-tree version-only changes and semantic negative controls; live/approval grant projections and cross-binary activation/query tests pass. The freshness follow-up passed the daemon library, snapshot, bounded-freshness and module-layout suites plus strict daemon Clippy. Both deliberate mutations (uncapped list and omitted deleted-path name) fail the deterministic tests; the production cap and budget remain unchanged. Final source-head CI passed: Linux 5,041/5,041 normal and 37/37 timing tests, native Windows 4,823/4,823 normal and 27/27 timing tests plus installer validation, daemon transport, OSS corpus, all 11 language-package suites/corpora and both pilot compatibility lanes. One initial conservative rebuild is expected when entering the new identity contract. Source/dependency/compiler/configuration changes within the boundary can still rebuild. Schema 88, fact ABI 1.4, guest ABI 2, SDK versions and signed language-package bytes are unchanged. Bounded recovery across package upgrades (#410) and the cache backend/reuse problem (#408) remain separate work. Closes #409. Closes #412. Closes #414. Closes #415. Closes #416. Closes #418.
Account for one-shot startup resources in parallel semantic tests
Some checks failed
Package CI / package (csharp) (pull_request) Successful in 38s
Package CI / package (rust) (pull_request) Successful in 36s
Package CI / package-corpus (javascript) (pull_request) Successful in 30s
Package CI / package (vue) (pull_request) Successful in 37s
Package CI / package-corpus (svelte) (pull_request) Successful in 36s
Package CI / package-corpus (rust) (pull_request) Successful in 45s
Package CI / package-corpus (vue) (pull_request) Successful in 41s
Package CI / package-corpus (timeline) (pull_request) Successful in 47s
Package CI / package-corpus (ruby) (pull_request) Successful in 54s
Package CI / package-corpus (csharp) (pull_request) Successful in 56s
Package CI / package-corpus (typescript) (pull_request) Successful in 53s
Package CI / package-corpus (xaml) (pull_request) Successful in 51s
Package CI / package overhead budgets (nightly, one package at a time) (pull_request) Has been skipped
CI / guest crates (fmt, clippy, doc) (pull_request) Successful in 1m17s
Pilot plugin compatibility / Fetch the pinned runtime once (pull_request) Successful in 1m39s
CI / CI lane wall-clock headroom (pull_request) Successful in 1m30s
Pilot plugin compatibility / Pilot compatibility (timeline) (pull_request) Successful in 1m3s
Pilot plugin compatibility / Pilot compatibility (csharp) (pull_request) Successful in 1m8s
Pilot plugin compatibility / Pilot compatibility result (pull_request) Successful in 1s
CI / cargo doc (intra-doc links) (pull_request) Successful in 5m39s
CI / cargo clippy (pull_request) Successful in 6m26s
CI / cargo deny (pull_request) Successful in 7m7s
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Successful in 7m30s
CI / cargo check (MSRV 1.98) (pull_request) Successful in 7m42s
CI / cargo check (windows-gnu) (pull_request) Successful in 8m20s
CI / cargo test (pull_request) Successful in 24m56s
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Failing after 34m34s
CI / OSS corpus (tier 1) (pull_request) Successful in 35m43s
CI / cargo test (daemon transport) (pull_request) Successful in 10m51s
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been skipped
0af18806f5
Test freshness caps independently of bounded probe completion
All checks were successful
Package CI / package-corpus (ruby) (pull_request) Successful in 20s
Package CI / package (xaml) (pull_request) Successful in 27s
Package CI / package (vue) (pull_request) Successful in 45s
Package CI / package-corpus (javascript) (pull_request) Successful in 39s
Pilot plugin compatibility / Fetch the pinned runtime once (pull_request) Successful in 1m21s
Package CI / package-corpus (php) (pull_request) Successful in 44s
Package CI / package-corpus (csharp) (pull_request) Successful in 52s
Package CI / package-corpus (rust) (pull_request) Successful in 46s
Package CI / package-corpus (python) (pull_request) Successful in 49s
Package CI / package-corpus (vue) (pull_request) Successful in 19s
Package CI / package-corpus (svelte) (pull_request) Successful in 52s
CI / CI lane wall-clock headroom (pull_request) Successful in 1m38s
Package CI / package-corpus (typescript) (pull_request) Successful in 34s
Package CI / package-corpus (timeline) (pull_request) Successful in 50s
Package CI / package-corpus (xaml) (pull_request) Successful in 36s
Package CI / package overhead budgets (nightly, one package at a time) (pull_request) Has been skipped
Pilot plugin compatibility / Pilot compatibility (timeline) (pull_request) Successful in 1m3s
Pilot plugin compatibility / Pilot compatibility (csharp) (pull_request) Successful in 1m15s
Pilot plugin compatibility / Pilot compatibility result (pull_request) Successful in 1s
CI / cargo doc (intra-doc links) (pull_request) Successful in 5m35s
CI / cargo clippy (pull_request) Successful in 6m9s
CI / cargo deny (pull_request) Successful in 6m15s
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Successful in 7m25s
CI / cargo check (MSRV 1.98) (pull_request) Successful in 7m34s
CI / cargo check (windows-gnu) (pull_request) Successful in 8m25s
CI / cargo test (pull_request) Successful in 24m39s
CI / OSS corpus (tier 1) (pull_request) Successful in 34m15s
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Successful in 42m47s
CI / cargo test (daemon transport) (pull_request) Successful in 16m5s
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been skipped
7e55d13ad5
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
h-dv/code-index!417
No description provided.