Repository navigation
fix(devtools): Bind a verify receipt to the tree it tested - #5317
Conversation
…ng finding `uv sync --extra dev --frozen` prunes the `audit` dependency group, so grimp disappears and `devtools gate layering` failed with a `grimp_unavailable` entry in its `violations` list. That entry rode the same channel as a real finding: exit 1, `gate_semantic_violation`, and a line formatted by `_format_violation` among the findings. Workers read it as a code problem and went looking for the offending import. The gate now establishes provisioning before it reads anything: - `audit_checker_unavailable()` probes grimp at the top of `main`, so an unprovisioned checkout can never emit a partial finding list beside its refusal. `violations` is empty, `inspected` is false, and `semantic_violation_count` is 0. - The refusal has its own diagnosis, `gate_missing_analysis_dependency`, built by a shared `missing_analysis_dependency_gate_result` factory next to the existing `gate_unprovisioned_environment` precedent. `gate_missing_executable` would be wrong: the executable is the interpreter and it resolved. - Exit 3 (`ENVIRONMENT_REFUSAL_EXIT`), distinct from the 1 that means "the check ran and found a violation". Callers that only test for non-zero still fail closed. - Human output leads with `ENVIRONMENT REFUSAL -- this is NOT a layering finding.` and names the exact command. - `devtools why` explains the new diagnosis. The remedy string is now one shared constant, `AUDIT_GROUP_SYNC_COMMAND`. The patterns gate previously told readers `uv sync --group audit`, which prunes the dev extra back out and lands them in a second broken checkout; it now names the same whole command and says nothing was inspected. Verification: devtools test tests/unit/devtools/test_layering_gates.py tests/unit/devtools/test_verify_patterns.py tests/unit/devtools/test_why.py tests/unit/devtools/test_unprovisioned_environment_gate.py -- 58 selected, 58 passed, receipt 20260921T004104Z-focused-test-2437175-f74fc60c. Anti-vacuity: routing the missing checker back through `violations` restores exit 1, a non-empty list and `gate_semantic_violation`, and every new assertion goes red. polylogue-mkucv Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015WCh9YW3cRfsg3CZBKU7Fq
…master Four tests were red on clean origin/master. Reproduced here at f6f899c before any change: 4 failed, 21 passed. ## The reflow ratchet (three failures, one cause) The baselines for root-help@40/60/80 and read-help@40/80 were exceeded, so `test_the_overflow_baseline_is_exact_for_every_sample_and_width`, `test_the_live_cli_satisfies_every_declared_lint_property` and -- downstream, because `cli_acceptance.main` then exits 1 -- `test_the_json_report_names_the_properties_and_findings` all failed. The raise is attributed, not guessed. I built a detached worktree at 44c5f86 (#5191, the commit that recorded the original numbers), captured the same gallery there, and diffed the rendered lines against head. Every difference comes from f8a63f0 (#5249), "Output dialect normalization (--format/--json + --to/--out)": - root-help gained `--to [terminal|stdout|browser|clipboard|file]` (47), its wrapped help continuation (78) and `--out PATH ... File path for --to file.` (58): +3 at width 40, +1 at width 60. - `-f, --format [...]` went 74 -> 89 in root-help and 79 -> 88 in read-help, because `md` and `jsonl` are now published short spellings: +1 at width 80 in each. - read-help gained `--json Alias for --format json.` (58): +1 at width 40. 156+3=159, 100+1=101, 9+1=10, 54+1=55, 2+1=3. The arithmetic closes exactly; nothing else widened. Recorded rather than narrowed, and the reason is in the module beside the table. Every one of those lines is surface the CLI now genuinely accepts; hiding `--to`, `--out`, `--json` or the short spellings from `--help` would trade a legible help screen for a green number. The help text also does not reflow at all -- all four widths render the identical 80-column layout -- so "narrowing" here means deleting words, not wrapping them. That is the ratchet's real target and this raise does not buy it. A new test pins the raise to the surface it paid for. Withdraw any of that surface and it goes red, while the exactness test independently goes red the other way as the measured count falls below the baseline. ## grok-export completeness `polylogue/schemas/providers/grok` was deleted by d7d3dda (#5224) under polylogue-n61h5: its committed element schemas carried `$id: polylogue://schemas/claude-ai/v2/session_document` and Claude.ai's document shape. I confirmed this against the deleted bytes -- the v1 element schema's properties are `uuid`, `name`, `summary`, `created_at`. So the package described the wrong subject and its removal was correct; `partial (schema_package is missing)` is the truthful status, and the test asserting `complete` is the stale artifact. `test_provider_completeness_human_output_includes_status` now makes its line-shape assertion against a genuinely complete row (codex-session), and a new test pins the invariant n61h5 is actually about: a withdrawn package must report partial and name the missing item, never read as complete. Not fixed here, deliberately: `polylogue/sources/origin_specs.py:3210` still declares `schema_paths=("polylogue/schemas/providers/grok/catalog.json",)`, a path #5224 deleted. That file is IN the derived schema closure (`devtools schema closure` says IN), so correcting the declaration moves the schema identity and forces a reconvergence. It belongs with the rebuild boundary, not inside a harness fix. Verification: devtools test tests/unit/devtools/test_cli_acceptance.py tests/unit/devtools/test_verify_provider_completeness.py -- 27 selected, 27 passed, receipt 20260921T004851Z-focused-test-2466570-acac4c59 (the same selection was 4 failed / 21 passed before the change, receipt 20260921T004225Z-focused-test-2447245-8d86ef01). devtools render all --check: exit 0, no "out of sync". polylogue-1khzy Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015WCh9YW3cRfsg3CZBKU7Fq
…l from the operator's branch
`[operations.verify_all]` declared `checkout = "default"`, and the operator's
root checkout is deliberately kept on a divergent working branch. On
2026-09-20 it sat at 11676f5f6 on test/dispatcher-intake-measurement while
origin/master was 53 commits ahead, so every 03:00 corpus run qualified a
stale side branch and no scheduled run since the divergence is usable as
candidate evidence.
## What agentctl can and cannot express
Read at sinnix head rather than assumed. `checkout` validates against exactly
`{"any", "default"}` (pkgs/agentctl/agentctl/projects.py), and "default" does
not select a tree -- it refuses any workspace other than the project root
(launch.py: `if operation.checkout == "default" and working_directory !=
project.root: raise JobError`). There is no key that names an integrated
candidate.
So the key is dropped: a coordinator can now point verify_all at a pinned
candidate worktree, which "default" made impossible. The declaration stanza
records this, and records what it does not fix -- the timer calls
`agentctl job fire`, whose `fire()` invokes `start_operation` with no
workspace, so a scheduled run still resolves to the project root. Routing the
timer at a candidate needs an agentctl-side key that does not exist; that is
a sinnix prerequisite, not something to fake here.
## The guard that does not depend on remembering a flag
The receipt already carried the tested tree: `verify_runs.py` writes
`git_head`/`git_dirty` at run start and `final_git_head`/`final_git_dirty` at
finish. Criterion 2 was satisfied at head and no change was manufactured for
it.
What was missing is the refusal. `verify_receipt_check` now takes
`--candidate` (defaulting to HEAD of the checked root) and refuses, naming
both SHAs, when the receipt is not evidence for that tree:
- no tested SHA recorded -- evidence for no tree, so the field cannot be
removed to opt out of the comparison;
- tested SHA is not the candidate's;
- `final_git_head` differs from `git_head` -- the tree moved under the run, so
the receipt covers no single tree;
- the tested tree was dirty, so what ran was not that commit.
The tree check runs before the test-evidence check: a flawless green run on
another tree must not read as evidence. `devtools why` now prints the tested
tree for every receipt, including "not recorded" when there is none.
`.github/workflows/verify.yml` passes `--candidate ${{ github.sha }}` so the
hosted route pins the receipt to the SHA the dispatch asked for.
The operator's working branch is untouched; this is a routing and reading
change only.
Verification: devtools test tests/unit/devtools/test_verify_receipt_check.py
tests/unit/devtools/test_why.py -- 40 selected, 40 passed, receipt
20260921T005313Z-focused-test-2477987-2f7aba22.
Anti-vacuity: restoring `checkout = "default"` makes a scheduled run's receipt
carry the working branch's SHA, which
`test_a_receipt_from_another_tree_is_refused_and_names_both_shas` rejects;
dropping the comparison, or treating an absent `git_head` as "nothing to
compare", makes the refusals return None.
polylogue-p2mbi
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_015WCh9YW3cRfsg3CZBKU7Fq
…n undifferentiated abandonment polylogue-yk0zz's three extracted bugs are all at head and confirmed, not assumed: `devtools/worker_memory.py:171` derives `CORPUS_MAX_WORKERS` from a `ChargeProfile` that accounts anon + page cache + slab (width 3, `WORKER_PEAK_MIB` gone); `devtools/verify_runs.py:1287` reconciles stranded receipts; `devtools/pytest_slot.py:109` spends 2s + 2s on the stop path instead of 5 + 5. All three landed in deceeab (#5299) at 2026-09-20 22:06. The last scheduled run was 2026-09-20 03:00, so no scheduled run has yet executed at a head that contains them. What the existing stranded receipts do prove, and what they still hid: The operator checkout holds four `all`-tier receipts still marked `running` (20260917T010004Z, 20260919T010003Z, 20260919T231059Z, 20260920T010004Z). Copied to scratch and run through `reconcile_and_record_abandoned_verify_runs`, all four become terminal and adopt their real exit codes -- 124, 137, 130, 130 -- from the AgentCTL `.outcome` files. The reconciler works on production payloads, not only on fixtures. But `_adopt_outcome` kept only AgentCTL's `outcome` bucket, which is coarse: the oom-killed 09-19 run and an ordinary non-zero exit are both `"failed"`. The `.outcome` next to it carries `systemd_result: "oom-kill"` and the unit name, and both were dropped. So the three differently-killed runs rendered as one undifferentiated `verification_abandoned`, and `devtools why`'s remedy told the reader to "check journalctl or the AgentCTL job outcome" -- to go look up a fact the receipt was already holding. Identifying those three killers was a multi-day manual investigation for exactly that reason. Now `systemd_result` and `unit` are adopted, and `devtools why` prints an `ended:` line before the diagnosis. On the real receipts: ended: timeout (unit ...verify_all-df109b43...) ended: failed; systemd recorded oom-kill (unit ...verify_all-b0ccb32f...) ended: cancelled (unit ...verify_all-6e84077f...) A clean cancel records no killer rather than inventing one, and a run that closed itself prints no `ended:` line at all. Still open on the bead, and not something code can answer: whether a scheduled run reaches a terminal state. The first 03:00 run at a head containing #5299 had not fired when this landed. One number worth the next reader's attention: `MEASURED_CHARGE.charge_mib(3)` is 11,725 MiB against a 12,288 MiB `memory.high` -- 95.4%, leaving 563 MiB. The 2026-09-17 stall was a width-3 run pinned at `memory.high`, so the corrected model fills a ceiling whose 1.2x margin was itself computed under the superseded anon model. Headroom is owned by sinnix `flake/data/runtime-defaults.nix`, not this module. Verification: devtools test tests/unit/devtools/test_verify_runs.py tests/unit/devtools/test_why.py tests/unit/devtools/test_pytest_slot.py tests/unit/devtools/test_corpus_worker_memory_bound.py -- 135 selected, 135 passed, receipt 20260921T005937Z-focused-test-2489448-b33d9c9b. Anti-vacuity: drop `systemd_result` from the adoption and the oom-killed run is indistinguishable from any other failure; drop the `ended:` line and an oom-kill renders identically to a cancel. polylogue-yk0zz Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015WCh9YW3cRfsg3CZBKU7Fq
…4 with it
polylogue-016xl orders its own work: measure where a one-file selection's time
goes BEFORE optimising per-item collection cost, because a heavy conftest
import would make per-item work the wrong lever. That measurement had never
been taken. It is now, and it refutes the premise.
## Criterion 4, measured
one file (tests/unit/devtools/test_layering_gates.py):
27 tests collected in 1.93 s, child peak 112.1 MiB
whole corpus:
23,547 tests collected in 89.3 s, child peak 581.3 MiB
A one-file focused selection pays 1.9 s and 112 MiB, not corpus-scale
collection. The 2026-09-16 receipt that recorded 65.5 s of collection against
2.4 s of test time for a three-test file does not reproduce at this head. What
a small focused run does still pay is execution: the same one-file selection
executed takes 31.4 s for 27 tests against 1.9 s of collection. That cost is
fixture and archive setup, which is polylogue-62j1f's territory, not this
bead's.
## Criterion 1, measured
581.3 MiB for 23,547 tests against a 430 MiB target. The recorded baseline was
533 MiB over 20,681 tests; per-item cost is roughly unchanged (581/533 = 1.09
against a corpus 1.14x larger) and the gap has grown with the corpus rather
than closed. Not met, and no reduction is attempted here -- the bead's own
ordering says measure first, and the measurement moved which lever is worth
pulling.
Lever 2 was checked too and is empty: `-X importtime` over a collection shows
2.68 s of imports of which 1.20 s is `readline` (pulled in by pytest's own
`pdb`), then pytest, testmon, coverage, anyio, syrupy, xdist. Nothing
polylogue-owned dominates, and the bead already records that disabling
plugins moves the peak by single-digit MiB.
## The command
`devtools bench collection [selection] [--budget-mib N]` builds on
`verify_test_collection.collection_command` rather than re-deriving a pytest
line, so the gate and the measurement cannot drift into collecting different
things, and so the measurement inherits the gate's `HARNESS_RUN_ENV` identity
and runs inside an agent lane. A bare `-p no:cacheprovider` line, which is
what the bead's reproduction uses, also produces a spurious
`Plugin already registered` collection error that `devtools gate
test-collection` does not (23,547 collected, 0 errors, gate green).
Narrowing substitutes for the declared corpus root instead of appending to it.
That is not hypothetical: appending left `tests` in place, so the first
version of `bench collection <one file>` collected 23,547 tests in 93 s and
reported it as the file's cost.
Over-budget exits 3, distinct from the collection's own exit, so a budget
breach and a broken collection are never read as each other. The budget is
opt-in: the target has never been met, and a command that fails by default is
a command nobody runs.
`wall_clock_s` is load-sensitive and labelled as an observation -- the same
corpus collection measured 33.2 s in the bulk pool and 92.8 s while a corpus
run and six sibling lanes were live.
Verification: devtools test tests/unit/devtools/test_collection_cost.py
tests/unit/devtools/test_verify_test_collection.py -- 12 selected, 12 passed,
receipt 20260921T011513Z-focused-test-7d414f6f.
Measurements above are jobs 1571 (probe), 1575 (importtime) and 1580
(`bench collection --budget-mib 430`, exit 3), all through the declared
`scratch` operation. devtools render all --check: no "out of sync".
polylogue-016xl
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_015WCh9YW3cRfsg3CZBKU7Fq
Two tests pinned `checkout = "default"` on `[operations.verify_all]` and went red when c8731933c removed it: one reads the TOML directly, the other reads it through the production agentctl parser. Both were caught by running `tests/unit/devtools/test_verify.py`, not by the p2mbi commit itself, which verified only its own two files. That was the gap. The TOML assertion becomes `"checkout" not in complete` with the reason at the line, and the parser assertion becomes `"checkout": "any"` -- agentctl's own default for an undeclared key, asserted through the parser rather than guessed at here, so the meaning of "no checkout key" stays the parser's. Verification: devtools test tests/unit/devtools/test_verify.py -- 57 selected, 57 passed, receipt 20260921T012910Z-focused-test-2616236-370b7c8a. Anti-vacuity: restoring `checkout = "default"` makes both red again. polylogue-p2mbi Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015WCh9YW3cRfsg3CZBKU7Fq
…or() `test_zero_exit_without_a_report_is_a_failed_pytest_step` patches `devtools.verify.subprocess.run`, which IS the stdlib module attribute, so the stub replaces `subprocess.run` for every caller in the process. `VerifyRun`'s `environment_fingerprint` then calls `platform.platform()`, whose `processor()` falls back to `subprocess.check_output(['uname', '-p'])`, gets the stub's `CompletedProcess(..., stdout=None)` and raises `AttributeError: 'NoneType' object has no attribute 'strip'`. It only fires when the random order reaches this test before anything has cached `platform.processor`, which is why it reads as an intermittent. Proven inherited rather than mine: clean `origin/master` worktree at 217e9e9 with its own venv, `devtools test tests/unit/devtools/test_verify.py -- -p randomly --randomly-seed=2442806215` gives 1 failed / 55 passed on the same node, receipt 20260921T012748Z-focused-test-2609886-ef52e02a. A real captured run never returns `stdout=None`, so the stub now returns `stdout=""`/`stderr=""` -- which the `uname -p` fallback reads as "unknown" and discards. Verification: same failing seed on this branch -- `devtools test tests/unit/devtools/test_verify.py -- -p randomly --randomly-seed=2442806215`, 57 selected, 57 passed, receipt 20260921T012910Z-focused-test-2616236-370b7c8a. Anti-vacuity: restore `CompletedProcess(["pytest"], 0)` and that seed is red again. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015WCh9YW3cRfsg3CZBKU7Fq
… prewarm polylogue-62j1f's acceptance criteria are satisfied at head. Reconciled first, as criterion 1 requires, then verified rather than reimplemented: - **2 (focused runs construct only what they requested).** Satisfied. `tests/conftest.py:812` returns from `pytest_sessionstart` unless `POLYLOGUE_BROAD_PREWARM` is set, and `devtools/run_tests.py` pops that variable from the focused environment. Measured cost of the guard, same head, warm artifact cache, interleaved off/on/off/on over a 12-test devtools-only selection: 13.37 / 26.29 / 10.36 / 25.65 s wall, and 24 vs 36 archive-tier initializations. pytest's own reported time was unchanged (5.2-8.7 s) -- the whole difference is controller-side warm-up before collection. The same selection under bare pytest without xdist initializes zero tiers. - **3 (immutable artifact reused under existing construction locking; writable state isolated).** Satisfied. `tests/conftest.py:753` `build_empty_archive_template` takes `fcntl.flock(LOCK_EX)`, returns an existing `.ready` template under the lock, and otherwise builds into a private `.building-<pid>` directory it `replace()`s atomically. `tests/infra/shared_session_archives.py` is the single route to all seven shared archives, so one reachable from a fixture cannot be absent from the warm-up. Per-test archive roots are rmtree'd on teardown. - **4 (width from actual limits, not a historical number).** Satisfied. `devtools/worker_memory.py:171` derives `CORPUS_MAX_WORKERS` from `width_within(PYTEST_SLICE_MEMORY_HIGH_MIB)` over a measured `ChargeProfile` -- 3 today, not 16 and not 8. Prewarming is conditional on the opt-in plus a non-worker process, `numprocesses`, and a basetemp. - **5 (no mandatory annotations, cache service, scheduler or fallback).** Satisfied; none exists and none is added here. No implementation is manufactured for a satisfied criterion. What is added is the missing check on criterion 2's invariant, because that invariant is fragile by construction: `run_tests` and `verify` each define a `_normalize_managed_pytest_environment`, and verify's SETS the variable that run_tests' caller pops two lines earlier. Reading the wrong one of two identically-named sibling functions is how I first concluded, incorrectly, that the pop was dead -- a future editor routing the focused runner through verify's helper would reinstate ~13 s and 12 tier initializations per focused run with nothing red. Both definitions now name the other as a hazard. Verification: devtools test tests/unit/devtools/test_verify.py -- 57 selected, 57 passed, receipt 20260921T013058Z-focused-test-2620647-9752b391. Measurement job: polylogue-scratch, `prewarm_cost.py` through the declared bulk-pool `scratch` operation. Anti-vacuity: call verify's normalizer in the focused assertion, or delete the pop in `run_focused`, and the focused half goes red while the broad half still passes. polylogue-62j1f Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015WCh9YW3cRfsg3CZBKU7Fq
…eipt polylogue-k1o3t 4 asks that the admission estimate match the run's measured cgroup peak within a stated margin, and that the margin be recorded. The sizing payload carried every component -- controller peak, worker anon, worker cache, worker charge, chosen width, available budget -- and neither derived number, so a reader comparing a run's peak against what it was admitted on had to reconstruct the arithmetic. It is now on the receipt: predicted_charge_mib 11725 | budget_mib 12288.0 margin_mib 563 | margin_fraction 0.0458 The margin is worth reading, not only recording. `width_within` deliberately holds nothing back beyond the controller's own charge, so the chosen width fills the ceiling: 4.6% is the condition the 2026-09-17 run stalled in (~11.5 GiB at width 3, pinned at memory.high, throttled into continuous reclaim, CPU efficiency 23% vs 58%). An over-budget width reports a negative margin rather than a clamped zero -- width 4 reads -2,987 MiB, which is what two oom-kills cost before the charge model was corrected. Widening the margin is a Sinnix change to `flake/data/runtime-defaults.nix`, not arithmetic here. ## What is already satisfied at head, with no change manufactured - **3, scratch placement survives the run.** `devtools/pytest_slot.py:161` `basetemp_root` puts a managed run's trees under the checkout's own launch directory and explicitly not under TMPDIR, naming the exact regression the criterion names -- `nix develop` points TMPDIR at a per-shell directory on the host's small tmpfs. The cloud sentinel value that leaks into workstation agent sessions is declined there for the same reason. - **5, parallelism above the configured width only with cited headroom.** `devtools/worker_memory.py:171` derives the width from the measured charge profile rather than declaring it; 16 appears nowhere. ## What cannot be delivered here, and why - **4's other half, a DECLARED admission estimate.** Read at sinnix head rather than assumed: `pkgs/agentctl/agentctl/projects.py` accepts exactly description, exec, pool, result, timeout_seconds, schedule, checkout, cache, scratch, dependencies and arguments on an operation. There is no memory or admission key to declare one in, so the estimate lives on the receipt until agentctl grows one. Recording which is true rather than inventing a key. - **1 and 2**, a completing corpus run and an injected-pressure deferral. Both need a full run; one scheduled `verify_all` (agentctl job 1564, `/realm/project/polylogue`, started 03:00) was live while this landed, and it is the first scheduled run at a head containing #5299. Starting a second corpus run to produce my own evidence would have perturbed it. Verification: devtools test tests/unit/devtools/test_corpus_worker_memory_bound.py tests/unit/devtools/test_pytest_slot.py -- 93 selected, 93 passed, receipt 20260921T013341Z-focused-test-2626360-92f69c54. Anti-vacuity: drop `admission_estimate` from the sizing payload and a receipt states only the parts again, so "the estimate matched the peak within a stated margin" cannot be checked from the receipt; make the margin a fraction of the charge instead of the budget and the over-budget case stops being negative. polylogue-k1o3t Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015WCh9YW3cRfsg3CZBKU7Fq
|
Warning Review limit reachedNext included review available in 30 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (25)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
You have reached your Codex usage limits for security reviews. Please try again later. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b134719ead
ℹ️ 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".
|
Closing out open Codex review threads on this PR (evidence checked against master at ef10e59):
Resolving the fixed, stale and refuted threads; tracked threads stay open. |
Summary
Nine commits closing harness-honesty gaps: a gate that blamed the code for an
unprovisioned environment, a verify receipt that proved nothing about which tree
it tested, a scheduled run whose killer was discarded, and two inherited reds
answered rather than re-recorded.
Problem
gate layeringblamed the code for a pruned environment. Without the auditgroup,
grimpis absent and the gate emitted findings-shaped output, sendingreaders to investigate code that was never inspected.
verify_patterns.pycarried the same trap in its remediation string:
uv sync --group auditprunes the dev extra and lands you in a second broken checkout.
[operations.verify_all]declared
checkout = "default", which does not select a tree —projects.pyvalidates against
{"any","default"}andlaunch.pyrefuses any workspaceother than
project.root— so the corpus run executed on the operator'sworking branch and its receipt could be read as candidate evidence.
_adopt_outcomekept only AgentCTL's coarse bucket, in which an OOM kill and an ordinary
non-zero exit are both "failed", discarding the
systemd_resultthe.outcomefile already held — sodevtools whysent readers tojournalctlfor a fact the receipt contained.
test_cli_acceptance.pyreflowbaselines, and
grok-exportreportingpartial (schema_package is missing).Solution
audit_checker_unavailable()probes before any import is read, so a refusalcannot emit a partial finding list. Exit 3 (
ENVIRONMENT_REFUSAL_EXIT) isdistinct from the 1 that means a violation, with a new
gate_missing_analysis_dependencydiagnosis.AUDIT_GROUP_SYNC_COMMANDis oneshared constant naming the whole correct command, fixing both sites.
verify_receipt_check.pygainscandidate_tree_refusal()and--candidate,with four refusals each naming both SHAs — including no tested SHA recorded,
so the field cannot be removed to opt out. The tree check runs before the
test-evidence check, so a flawless green run on another tree does not read as
evidence. CI passes
--candidate ${{ github.sha }}.The reflow raise was attributed, not guessed: a detached worktree at
44c5f86 (#5191, which recorded the baselines) reproduced the gallery, and the
diff shows 100% of the raise is f8a63f0 (#5249). The arithmetic closes exactly
(156+3=159, 100+1=101, 9+1=10, 54+1=55, 2+1=3). The help text does not reflow at
all, so "narrowing" would mean deleting words — recorded with its reason beside
the table.
grok-exportis answered by refutation:schemas/providers/grokwas deleted byd7d3dda (#5224) because its element schemas carried
$id polylogue://schemas/claude-ai/v2/session_document— verified bydecompressing the deleted bytes, which are Claude.ai's shape. A withdrawn
package is correct, so
partialis truthful.Verification
devtools verify --quick— all 23 gates, 23,547 collecteddevtools testover 13 devtools modules — 287 selected, 287 passed,terminal_green true,git_dirty falsedevtools render all --check— exit 0,grep -c 'out of sync'= 0devtools schema closureon all 25 changed files — every one reportsout.No commit here moves the derived identity.
Residuals
016xlcriterion 1 is further away than when filed: 581.3 MiB over 23,547tests against a 430 MiB target, up from 533 MiB over 20,681. Per-item cost is
flat; the total tracked corpus growth. Neither named lever pays — a one-file
selection collects in 1.9 s / 112 MiB, and
-X importtimeshows 1.20 s of2.68 s is
readlinevia pytest's own pdb. Re-measure with the newdevtools bench collection --budget-mib 430.charge_mib(3)is 11,725 MiB against a 12,288 MiBmemory.high— exactly the condition the 2026-09-17 run stalled in. Thecorrected charge model fills a ceiling whose 1.2x safety margin was computed
under the superseded anonymous-RSS model.
WORKER_PEAK_CACHE_MIB = 2,850is~80% of a worker's charge, driven by 47-55 GB of scratch SQLite writes.
p2mbiAC4 andk1o3tAC4 are not satisfiable in this repository:agentctl's operation vocabulary has no key naming a candidate tree and no
memory/admission key. Recorded rather than faked; both need a sinnix change.
origin_specs.py:3210still declaresschema_pathsto a path fix: Land seventeen small-bead batches before the rebuild #5224 deleted.Not fixed here — that file is IN the derived closure, so correcting it
forces a reconvergence and belongs at the rebuild boundary.
packet; one owner should confirm chore: Fresh schema floor: retire historical chains without confusing o… #5290 is the single cause before anyone fixes
it test-by-test.
Advances polylogue-mkucv, 1khzy, p2mbi, yk0zz, 016xl, 62j1f, k1o3t.
🤖 Generated with Claude Code
https://claude.ai/code/session_015WCh9YW3cRfsg3CZBKU7Fq