Repository navigation
feat(runtime): capture and verify action-bias execution context - #306
Conversation
AB5 adds schema46 and preserves legacy and child report wording.
AB1 reproduces configured Git/ripgrep helpers and quoted-regex false work; Windows cases cover cmd separators and native sort output.
AB2 reproduces safe instruction-symlink omission and missing depth marker before the discovery correction.
|
@codex review Updated head cb174fe integrates merged AB1–AB5 main and the requested V2 execution-context capture/format3 verification. Fresh integrated source21a911f6 passes2,438workspace tests (zero failures,14ignored), formatting, Clippy and build. Please review the current diff against main; previous semantic envelope finding is fixed and covered. Hosted turn/H0 and regular CI are pending; historical context/seven-day observational qualification remain unavailable. |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review Final head6878b065 fixes one hosted H0 guard path: the fixture is xtask/src/perf.rs, with no perf/ directory. Runtime code is unchanged from cb174fe. All workspace tests/fmt/Clippy/build pass again. Please review this latest head; immutable baseline, fixture and unchanged budgets remain enforced. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6878b06567
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Updated head3ca513e1 fixes both latest findings, with reproduced regressions: LoadedRuntime preserves configured producer, and zero-shell lexical share is null. Also repairs H0 runner compiler setup and gives debug-image capture tests a60-second test-only budget; production deadlines remain unchanged. Fresh immutableb5a3ebaa:2,439workspace tests pass,0fail,14ignored;fmt/Clippy/build pass. Latest hosted CI/performance still pending; prior turn/Windows/wasm jobs passed at6878b065. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3ca513e103
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Head928c1a63 fixes the H0 compiler-path setup: recorder environment sanitization plus dependency-local rust-toolchain files require the real pinned compiler directory first on PATH. No runtime behavior changed. Latest mixed-instance thread is settled with a regression and explicit runbook boundary: matching pinned-build restarts retain qualified per-call evidence; mismatched source/executable is unqualified; deployment continuity and process-free runs still need separate evidence before AB6 research acceptance. Fresh sourcee88d49fa passes2,439tests/0fail/14ignored,fmt/Clippy/build. Hosted workspace/Windows/wasm passed3ca513e1; newest H0/turn/Codex pending. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 928c1a63b0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Heade0d0fb94 fixes both new findings with reproduced regressions: complete export/recount cap512MiB, with no partial publication and growing-input accounting; shared execution/lexical Launch rejects cwd root-underflow and permits within-root normalization. Fresh clean source3587eee1 passes2,441workspace tests/0fail/14ignored,fmt/Clippy/build. Independent review approves. Previous928c1a63 workspace/turn/Windows/wasm CI passed; latest hosted H0 and current review remain pending. Earlier pinned historical baseline stays source928-specific and will be regenerated with this parser. |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Tracks ENG-1043. Targets main after AB1–AB5 merged.
Adds bounded, read-only
cargo xtask action-bias export/recountcommands and execution-context verification for new process calls. Format 3 retains every selected root shell/exec call and its state, with strict framing, size, identity and footer checks. Complete artifacts are capped at512MiB, including header/footer; oversize exports publish no partial artifact. Shared launch validation rejects cwd traversal above the lexical workspace root. Export does not migrate databases or initialize models.New V2 private receipts bind the actual call ID and typed arguments to inherited execution facts, the approved image manifest, policy identity and shared producer provenance. Recount requires an independently supplied clean source/executable pin and matching runtime-plan evidence. Missing, historical V1, oversized, mismatched or nonfinal evidence remains explicitly unqualified. Recorded Work is accounting evidence and does not prove a mutation.
Producer evidence is captured once per runtime, shared through compiled plans, and bounded by cancellation/deadlines. Unknown/dirty producers skip executable hashing because they cannot satisfy a clean pin. Receipts retain the existing 16 KiB storage bound and schema 50; no public protocol or prompt version changes.
Verification: immutable source 3587eee passes a fresh workspace-package clean/rebuild: 2,441 tests passed, zero failures, 14 ignored;
cargo test --workspace,cargo fmt --all -- --check,cargo clippy --workspace --all-targets --all-features -- -D warnings, andcargo build --workspacepass. Published head e0d0fb9 adds only the verification ledger. Same pinned-build restarts are covered, with source/executable mismatches rejected; per-call coverage does not qualify deployment continuity. Six focused core cases and all 17 export/recount cases pass, including real exec through public LoadedRuntime, producer concurrency/cancellation, atomic receipt storage, proof tampering, every call state, bounded historical schemas, and null lexical shares for exec-only cohorts. Empty cohorts remain unqualified. Independent read-only review approves.Hosted CI now runs controlled turn overhead and H0/default/minimal size comparisons against accepted main 62c6593, retaining A/B, same-binary A/A, pressure and raw artifacts. Previous head 6878b06 passed controlled turn overhead, Windows teardown and wasm. Hosted workspace/Windows/wasm checks also passed at 3ca513e. H0 revealed dependency-local compiler overrides; this head puts the real pinned compiler binaries first on PATH. Production deadlines are unchanged. At exact published head e0d0fb9, Codex reports no major issues and all review threads are resolved. Hosted formatting/Clippy/workspace tests, Windows teardown, wasm and controlled turn recording pass. Independently checked turn artifacts match accepted baseline62c65930 and candidatee0d0fb94, identical fixture manifests and executable hashes, with30 A/B and30 same-binary A/A pairs. A/B median changes are +3.05%, +1.69% and +2.04% at10/100/1000agents; A/A changes are +0.08%, +1.32% and -5.30%. This is a completed recording, not a standalone H0 acceptance metric. The current-head H0/default/minimal size job is still running; no final performance acceptance is claimed. Prior-head928c1a63 H0 completed and failed unchanged budgets on both accepted main and candidate: main default/minimal binaries52,961,016/46,294,328bytes exceed48,000,000/41,000,000; candidate52,993,880/46,319,000bytes. The retry fixture records6,000milli on both (its documented ADR-0040 expectation), against an old1,050budget. Same-binary control also exceeded HTTP-ack and one-subscriber fan-out relative limits. Artifacts11934628926 are retained locally; current-head results and the inherited-budget decision remain pending.
Pinned release export/recount on e0d0fb9 succeeded for the historical 2026-09-13 to 2026-10-13 UTC cohort (cutoff 2026-10-14, schema50): 4,086 calls retained, 1,886 shell + 2,200 exec, lexical reads214/1,886=11.35%. All4,086 remain context-unqualified (4,073 missing receipts,13 invalid arguments); verified-read share is null. Export size16,851,028bytes, with export/receipt permissions0600. Exporter SHA256 05503a2765c2373932457f55258eeb24dfe7faa22a2de6f38c87a24b3f05aa24; snapshot SHA256 42efb8613c37bf8f2a0adb76c126ab88240d277332a25a3ac5e00993438e6d79. Raw artifacts stay local/private under target/qq-perf/ab6-2026-10-14/format3-baseline-e0d0fb94.
Historical execution-context qualification remains unavailable. The seven-day deployed observation cohort and any authorized paid evaluation remain separate outstanding AB6 research work; this PR delivers the capture and verification tooling.