Repository navigation
3.x.x: Reconcile the deleted-test map with closed issues and add a check that keeps it honest - #455
Conversation
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: 8107554ffa
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 07c4004fc5
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 317cc641ff
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c926c8e6e9
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b89bea662d
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 78094de4f5
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e9baea9940
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 10ac2f96a8
ℹ️ 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".
docs/prism-deleted-test-map.md is parity evidence for the cutover go/no-go (#291), and nothing read it: the issues it linked closed one by one while the map kept naming them as the owners of uncovered behaviour (#448). scripts/check_deleted_test_map.py reads it. Offline, in the required lint-compile-compose job, it fails when a `path::name` reference does not resolve to a test function, when a table line does not parse (a line it cannot read is an error, never a skipped row), when a status breaks the legend, or when the summary, the section counts or the needs triage index differ from the rows. With --check-issues it asks GitHub for the state of every issue the map depends on and fails when one is closed. That runs as an advisory job kept out of `checks`, so an issue closing cannot block an unrelated pull request, and it can still go red. It lives in ci.yml because schedule and workflow_dispatch only fire from the default branch and this map lives on 3.x.x. An unknown state (network, rate limit, unexpected reply) exits 2 and is never read as open. Co-Authored-By: Claude Fable 5.1 <[email protected]>
29 of the map's 34 issue links pointed at closed issues, and every open gap row named one, so by the map's own legend each gap was either filled or orphaned and the map did not say which (#448). The pull requests that closed #266, #271, #272, #280, #285, #287 and #288 never touched it. Every row that linked a closed issue now names the native tests that landed, retires what has no native subject with the reason, and writes what is still uncovered as "not covered, no open issue". No row links a closed issue. The five open gap rows and the open gap case are partial. tests/test_prism_landing_interleavings.py is decided: partial with nothing left uncovered, and no new native test. The issue's premise that no native test has the two-distinct-block shape does not hold. #355 added three tests for exactly that #272 criterion which the map never cited, a checks each block's audit row, and the #133 mechanism (a shared publication floor gating a per-block evidence file written after confirmation) has no native counterpart: the audit row is inserted, keyed by block hash, in the landing transaction. The seven needs triage rows were re-read at a193705. Two are now partial (the CTV yield contract from #433, the changed-amount balance fence from it from a needs triage row, and the new closed-issue check failed on the next run. That row was re-read at cb2aa8b: #450 covers its one owned case (no hash or height in /metrics), and it stays needs triage because landing-phase attribution still has no native family and no owner. Also corrected, because they made the same claim in plain text or were stale for the same pull requests: the job-builder, #224 cadence, #224 ledger, representative-independence and coordinator-metrics rows. The legend now says a linked issue must be open and a plain #N is history, and a new section documents the checks. Summary: 5 full, 76 partial, 0 open gap, 5 needs triage, 56 retired. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Five reviewers who had not written the reconciled rows read the body of every newly cited test, 152 citations in all, and tried to break each claim. 142 held, 10 were overstated, none was unsupported, and five "retired" clauses named something that still exists natively. The corrections all move the map toward claiming less: - test_prism_hot_path.py: the 600-client submit burst is not retired. Native submits read-lock what publication write-locks and no test bounds the wait, so it is now "not covered, no open issue". - prism_postgres_a1_migration_gate.py: the pre-ordinal backfill and the non-positive and duplicate ordinal refusals are not retired. 001 still runs them under the native migrator, which does not refuse a pre-v2.0.0 source. - test_prism_settlement_balance_comparison.py: a re-spelled payout address is a digest divergence natively, the opposite of what the row said, and is untested. - test_prism_share_ledger.py: "no automatic SQL retry" had one exception, the share append re-run after a no-partition refusal, which has a test. - The representative-independence and CTV rows called live things retired (per-solver bootstrap identity, PRISM_CTV_BROADCASTER_LIMIT); the validation, delivery, retained-jobs, landing, reward-window, compose and perf rows each had a clause worded past what its test asserts. Two under-claims are fixed too: the TipState::observe sequence guard is tested, and the reward-window row now cites the test that pins 8. The landing-interleavings decision was attacked directly and held. Statuses and summary counts are unchanged. Co-Authored-By: Claude Fable 5.1 <[email protected]>
842a343 to
56b5118
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 842a34303b
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 800086313f
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2dcbabbc85
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f56dfeb889
ℹ️ 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".
Closes #448. (The base is
3.x.x, so GitHub will not close it on merge; it needs closing by hand.)What this does
docs/prism-deleted-test-map.mdis parity evidence for #291's go/no-go. 29 of its 34 issue links pointed at closed issues, every open gap row named one, and nothing read the file. This PR reconciles the map and adds the check that stops it drifting again.The check already caught a real drift. #278 closed on 2026-09-17, hours after this reconciliation first linked it from a needs triage row. The closed-issue check failed on the next run, the row was re-read against #450, and the fix is in this PR.
The map
test_prism_landing_interleavings.py,prism_postgres_candidate_gate.py, the perf load driver);test_prism_hot_path.py,test_prism_candidate_schema_refusal.pyand the legacy-schema case keep a real remainder (see below).a1937054. Two became partial (the CTV yield contract from Cover native refresh liveness and yield CTV to newer tips #433; the changed-amount balance fence from v3.0.0 feat: offer found blocks before audit rebuild and landing #391). Five are confirmed, each with a dated note and its reason corrected to HEAD.path::namecitations, each independently re-read (see Verification). Every reference in the map resolves to a real test function.Status convention. I followed the map's existing precedent (the
test_reader_is_read_only…case row): a row whose behaviours are all either covered or retired ispartial, notfull;fullstays reserved for rows where every behaviour has a named test. The legend now says so. 5 of the 76 partial rows have nothing left uncovered. If you would rather call thosefull, it is a one-word change per row.Decision:
test_prism_landing_interleavings.pyPartial with nothing left uncovered. No new native test. This corrects the issue's premise that "no native test function matching that shape exists":
tests/ledger_single_execution.rs, whose module doc reads "landing-interleaving regression coverage (3.x.x: Ledger deadline, batch atomicity, retry-safety and audit-segment tests #272)". The map cited none of them.window_switch_tests.rs::a_parent_landing_late_diverges_the_child_which_lands_as_issued_with_additive_balances(v3.0.0 feat: offer found blocks before audit rebuild and landing #391) interleaves a parent and its child across two frontends and asserts each block'sqbit_pool_audit_bundlesrow.candidates_recover.rs::recover_apply_lands_the_listed_blocks…lands two distinct blocks back to back and asserts each audit body.block_hash(ledger/blocks.rs,001_share_ledger.sql), and nothing readsaudit_publication_sequenceas a floor.The scenario does survive natively (two frontends land concurrently), so "retired, one landing path" would have understated what is tested. I verified these claims against the source myself. This sits in A's files, so A can overrule: the one shape no test drives is block B landing and confirming inside block A's land→finish gap. It cannot lose A's evidence (already committed); it can only make A's finish hit the revision fence, which is reported and retried. If that must be driven, the row becomes partial with that one clause, and a drafted ledger-level test is available.
The check
scripts/check_deleted_test_map.py, with 38 tests intests/test_check_deleted_test_map.py.lint-compile-compose, whichchecksneeds). Fails when apath::namedoes not resolve to a test function (not merely afn), when a table line does not parse, when a status breaks the legend, or when the summary, section counts or needs triage index differ from the rows. A line it cannot read is an error, never a skipped row: my own first-pass regex silently dropped 5 rows with escaped pipes, which is the failure this guards against.--check-issues, jobdeleted-test-map-owner-issues, deliberately not inchecks.needs, nocontinue-on-error). Fails when an issue the map depends on is closed. Network failure, rate limit or an unexpected reply exits 2 and is never read as "open".ci.ymland not a scheduled workflow becausescheduleandworkflow_dispatchonly fire from the default branch, and this map lives on3.x.x.--summaryprints the counts and open rows for the 3.x.x: Cutover qualification — migration rehearsal, failover drill, soak, go/no-go #291 sign-off comment.Limits, stated in the map: the check cannot tell whether a cited test's body still asserts what the row says, and cannot see an ownership claim written as a plain
#N. Macro-generated tests (the twelvedisconnect_test!cases) have nofnline, so the map names them in prose.Behaviour the closed issues left uncovered, with no open issue
I did not file issues; these need an owner's call. The first three are missing or changed behaviour, found by reading source, not only missing tests.
candidates listandcandidates recoverplanning open a read-only pool that never callsrequire_schema_versionorrequire_known_capabilities(onlyconnect_innerdoes). On a pre-011 schemalistdies on a raw missing-column error; arecoverplan on an unmigrated v2.0.2 database runs and calls the node before refusing per row.abandonandrecover --applyare gated. Forlistthe omission may be intended (it must work during a halt), but nothing says so (3.x.x: Pin the migration source schema, refuse unknown storage versions, gate startup #285 closed without it).classify_sourcelooks only at share-ledger and 002 objects, so a ledger without the ordinal objects is classified pre-v2.0.2 fix: bound candidate replay and audit finalization #258 and001_share_ledger.sqlbackfills it. No supported release reaches that path, which is why it is untested, but it is live.prior_balances_digestcoversrecipient_idandorder_key, so a block landed under a different spelling between issue and landing refuses a pending row. 2.x.x tolerated the relabel. Untested either way.preparedandobserved_tip, publication write-locks them, and no test drives a burst or bounds the wait (2.x.x bounded it at 0.5 s after the 2026-07-16 outage).mining.submitwith a username other than the authorized one must reject asunauthorized-workerbefore the extranonce2 width check; no native test sends either frame. Nor does any test build a block candidate from a resumed job.TipState::observeguard beside it is tested), and the per-passPRISM_CTV_BROADCASTER_LIMITbound (3.x.x: Refresh-liveness scenarios with no native peer: representative independence, CTV yield to a newer tip, startup claim against the append lane #375 closed without either).001_share_ledger.sql's ordinal-definition guards under the native migrator, and the revert script's legacy-schema paths, which still ship.import-audits: refusal of a non-hex row identity, and the inline body used whenbody_uriis unreadable.PRISM_PUBLIC_READ_STATEMENT_TIMEOUT_SECONDS=0, the high-diff endpoint derivation, the minimum-payout fallback chain, cache lifetimes and the kill switch's headers), and no test that writer or schema-init settings stay offprism-public-api.Also noted, not changed: #270's body does not appear to name four of the five items
test_prism_block_candidates.pyattributes to it (#270 is open, so that row was left alone); two pre-existing "not covered" items intest_prism_share_ledger.py(cursor pages and bulk abandon, the job-issue delta read) look retired to two independent readers; anddocs/prism-ledger-ops.mdsays the share append has no automatic re-execution, which the no-partition re-run contradicts.Verification
python3 scripts/check_deleted_test_map.py: ok (142 file rows, 17 case rows).--check-issuesagainst GitHub: before, 7 closed owners across 24 rows; after, 2 owners, both open.python3 -m unittest tests.test_check_deleted_test_map: 38 pass.scripts/check_prism_settings.pypasses (it also scans the map, and caught a missingretired-settingmarker during the work).compileallclean.cb2aa8bf; upstream touched none of these files.audit_publication_sequenceas a floor) and held. I separately read the bodies behind the load-bearing calls myself.🤖 Generated with Claude Code