Repository navigation
test: Finish three test migrations their PRs left behind - #5177
Conversation
Three unrelated tests still describe the world before a landed product change. None is a product defect; each names which PR moved the product and what the test now proves instead. #5162 typed the absent-index-tier refusal as `ArchiveTierUnavailableError` and landed its own replacement test, but `test_read_only_archive_open_does_not_ bootstrap_missing_tiers` still expected the raw `sqlite3.OperationalError`. Its subject -- that a read-only open of nothing creates nothing -- is unchanged; the narrow expected type keeps it red if the boundary ever re-leaks a driver error. #5103 made an id-less message's identity content-derived, which retired the `p:<position>.<variant>` alias `test_positional_branch_point_alias_is_typed_ dangling` depended on. It renumbered the parent so the child's alias would land on a different row; under content identity "B" resolves to the same real message wherever it sits, so the composed prefix was legitimately correct and the test's premise was no longer constructible. The rule is intact and still worth proving, so the premise is rebuilt rather than the rule relaxed: the replacement now drops the child's branch point outright. Renamed to say what it actually tests. #5172 routed CLI facade writes through declared daemon operations and migrated five test files onto the real-daemon fixture, missing `test_compare_command`. Its verdict-recording case moves onto the same `cli_daemon_archive` stack that #5172 gave `test_mark_note_identity` -- a real runtime behind a real UDS listener, so the file's whole premise (a production caller for `blind_items`, `ClaimWithControls`, `compute_calibration` and `upsert_comparative_judgment_assertion`) survives instead of being mocked away. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedNext included review available in 49 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 (3)
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 |
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. |
Summary
Three unrelated tests on
masterstill describe the world before a landed product change. Each names the PR that moved the product. None is a product defect; in each case the product is right and the test was left behind.Evidence
Receipt
.cache/verify/runs/20260914T233651Z-all-207009-89ddea6b(verify_all, job 1699, 22,540 selected, 29 failed).Caveat on that receipt: its
run.jsonrecordsgit_head: f7964acd12b25134c0e2e4cd8f73f9e6557a4a4f— the tip of branchrebase-5165, notmasterand not an ancestor of it — andfinal_git_head: 724d17535. The shared checkout advanced across 7 merged PRs during the run, so it is not evidence of a frozen tree. I re-ran all 29 node ids at truemasterHEAD: 17 reproduce, 12 do not. These 3 are among the 17.Per-failure classification
test_schema_policy_contracts::test_read_only_archive_open_does_not_bootstrap_missing_tiers817eec6f4) typed the refusal asArchiveTierUnavailableErrortest_write_path_state_machine::test_positional_branch_point_alias_is_typed_dangling398c60458) made id-less message identity content-derivedtest_compare_command::test_compare_with_verdict_records_and_is_readable_via_calibration724d17535) routed CLI facade writes through declared daemon operationsSolution
#5162 leftover.
ArchiveTierUnavailableErroris aDatabaseError, not ansqlite3exception, so it propagated straight throughpytest.raises(sqlite3.OperationalError). #5162 landed its own replacement (test_absent_index_tier_is_typed.py); this was the other half. The test's actual subject —assert not any(tmp_path.glob("*.db")), that a read-only open of nothing creates nothing — is untouched.#5103 leftover — the one worth reading closely. The old test renumbered the parent (
A,B→X,A,B) so the child'sp:<position>.<variant>branch-point alias would land on a different row. Under content-derived identity that alias no longer exists:message_idis now'c:' || content_identity || '.' || content_occurrence, so "B" resolves to the same real message wherever it sits, the content witness matches, and the composed prefixX, A, Bwas legitimately correct. The writer was not wrongly resolving anything — there was no longer a dangling reference to detect.The dangling rule itself is intact and still worth proving, so I rebuilt the premise rather than relaxing the rule: the replacement now drops "B" outright, so the child's branch point genuinely vanishes and the envelope must truncate to the child's own tail. Renamed to
test_vanished_branch_point_is_typed_danglingto say what it actually tests.#5172 leftover. Requiring a daemon for
compare --verdictis not an over-reach — it is the stated single-writer route, andjudgemoved the same way. #5172 migratedtest_judge_command,test_mark_note_identity,test_verb_cardinality,test_cli_action_contractsandtest_assertion_candidates, but missed this file. The verdict case moves onto the samecli_daemon_archivestack (a realDaemonOperationRuntimebehind a real UDS listener), so the file's whole stated premise — a real production caller forblind_items,ClaimWithControls,compute_calibrationandupsert_comparative_judgment_assertion— survives rather than being mocked away. Its siblingtest_compare_without_verdict…still passes untouched because it records nothing.Anti-vacuity
initialize = not read_only) and the no-*.dbassertion goes red. Keeping the expected type narrow (rather than theDatabaseErrorbase) keeps it red if the boundary re-leaks a raw driver error.write.py(if witness is not None: … composed = own; break) and the child composes the wrong parent prefix instead of truncating. This is the condition the test always named — it just could not reach it any more.--calibrationagreement rate goes wrong.Verification
Schema closure
All OUT. Test-only change; no product file touched. Does not need to land before an archive rebuild.
Residuals
CLAUDE.md's identity section still documents the retiredp:positional fallback that fix: Derive id-less message identity from content, not position #5103 replaced withc:. Not corrected here — it is doc text, not a closure input, and belongs with whoever owns that section.test_cli_operation_authority.pycovers the daemon-down refusal matrix formarkandjudgebut notcompare. Adding that case is worthwhile follow-up; it is new coverage rather than part of this red→green repair, so I have not claimed it.🤖 Generated with Claude Code
https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK