Skip to content

3.x.x: Reconcile the deleted-test map with closed issues and add a check that keeps it honest - #455

Merged
Anatolie merged 19 commits into
3.x.xfrom
reconcile-deleted-test-map
Sep 21, 2026
Merged

Anatolie merged 19 commits into
3.x.xfrom
reconcile-deleted-test-map

Conversation

@Anatolie

@Anatolie Anatolie commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

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.md is 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

Full Partial Open gap Needs triage Retired
Before 5 69 5 7 56
After 5 76 0 5 56

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 is partial, not full; full stays 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 those full, it is a one-word change per row.

Decision: test_prism_landing_interleavings.py

Partial with nothing left uncovered. No new native test. This corrects the issue's premise that "no native test function matching that shape exists":

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 in tests/test_check_deleted_test_map.py.

  • Required, offline (a step in lint-compile-compose, which checks needs). Fails when a path::name does not resolve to a test function (not merely a fn), 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.
  • Advisory, networked (--check-issues, job deleted-test-map-owner-issues, deliberately not in checks.needs, no continue-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".
  • It lives in ci.yml and not a scheduled workflow because schedule and workflow_dispatch only fire from the default branch, and this map lives on 3.x.x.
  • --summary prints 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 twelve disconnect_test! cases) have no fn line, 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.

  1. No named schema or capability refusal on the read-only operator paths. candidates list and candidates recover planning open a read-only pool that never calls require_schema_version or require_known_capabilities (only connect_inner does). On a pre-011 schema list dies on a raw missing-column error; a recover plan on an unmigrated v2.0.2 database runs and calls the node before refusing per row. abandon and recover --apply are gated. For list the 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).
  2. The native migrator does not refuse a pre-v2.0.0 source. classify_source looks 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 and 001_share_ledger.sql backfills it. No supported release reaches that path, which is why it is untested, but it is live.
  3. A re-spelled payout address is a balance divergence natively. Labels are the address as typed at authorize and prior_balances_digest covers recipient_id and order_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.
  4. Tip publication staying prompt under a submit burst: native submits read-lock prepared and observed_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).
  5. mining.submit with a username other than the authorized one must reject as unauthorized-worker before the extranonce2 width check; no native test sends either frame. Nor does any test build a block candidate from a resumed job.
  6. A pending tip surviving an older refresh that finishes late (the "superseded before work publication" check; the TipState::observe guard beside it is tested), and the per-pass PRISM_CTV_BROADCASTER_LIMIT bound (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).
  7. Membership divergence at the pending-landing balance fence; only the changed-amount case is tested.
  8. 001_share_ledger.sql's ordinal-definition guards under the native migrator, and the revert script's legacy-schema paths, which still ship.
  9. import-audits: refusal of a non-hex row identity, and the inline body used when body_uri is unreadable.
  10. Public API settings 3.x.x: Close the configuration plumbing gaps and harden the container posture #288 closed without (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 off prism-public-api.
  11. No latency bound is asserted anywhere: the load harness measures first-notify and time-to-usable-work and asserts nothing. 3.x.x: Run the D1 production-window load matrix (200k/400k/500k) that #271 could not #447 owns the dense-cadence rerun but may close with it deferred.

Also noted, not changed: #270's body does not appear to name four of the five items test_prism_block_candidates.py attributes to it (#270 is open, so that row was left alone); two pre-existing "not covered" items in test_prism_share_ledger.py (cursor pages and bulk abandon, the job-issue delta read) look retired to two independent readers; and docs/prism-ledger-ops.md says 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-issues against 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.py passes (it also scans the map, and caught a missing retired-setting marker during the work). compileall clean.
  • No Rust changed, so no cargo suites were run.
  • Rebased onto cb2aa8bf; upstream touched none of these files.
  • Citation review. Five reviewers who had not written the rows read the body of every newly cited test (152 citations) and tried to break each claim: 142 supported, 10 overstated, 0 unsupported, plus five "retired" clauses that named something still present natively. All are corrected in the third commit, and every correction makes the map claim less. No row claimed coverage that no test body asserts. The landing-interleavings decision was attacked directly (any shared latest-evidence state, any publication step after confirmation, any read of audit_publication_sequence as a floor) and held. I separately read the bodies behind the load-bearing calls myself.

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-18T20:31:29.348205Z 87e1d01 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/check_deleted_test_map.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/check_deleted_test_map.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/check_deleted_test_map.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/check_deleted_test_map.py Resolved
Comment thread scripts/check_deleted_test_map.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/check_deleted_test_map.py Resolved
Comment thread scripts/check_deleted_test_map.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/check_deleted_test_map.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/check_deleted_test_map.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/check_deleted_test_map.py Resolved
Comment thread scripts/check_deleted_test_map.py Resolved
Anatolie and others added 14 commits September 18, 2026 14:42
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]>
@Anatolie
Anatolie force-pushed the reconcile-deleted-test-map branch from 842a343 to 56b5118 Compare September 18, 2026 18:44

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/check_deleted_test_map.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/check_deleted_test_map.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/check_deleted_test_map.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/check_deleted_test_map.py Resolved
@Anatolie
Anatolie merged commit 2e81ca3 into 3.x.x Sep 21, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant