Repository navigation
Set the retired marker's reason to None in the added test (the Copilot nit refused on #719, now on Brett's word) - #733
Conversation
In test_a_reason_quoting_a_REAL_canon_unit_suppresses_it_under_the_retired_rule, the hand-built `retired` marker emulated the retired names rule but left `.reason` as the AMENDED parser computed it. Under the retired rule reason is everything after the LAST code span's following ` — `; no ` — ` follows the last span here, so the retired reading's reason is None. `suppression` never reads `.reason` on this Removed-from-canon marker, so no assertion moves. Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01JZqmqSDBCmY4cfhPbxN9Xb
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
|
Lane: openxfactory-1 (openXfactory-1) @codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
🟢 Approval recommended
The change is a narrowly-scoped test correction that aligns the test fixture with the intended retired-rule semantics and does not introduce functional risk.
Pull request overview
This PR updates an existing doc-health regression test to more faithfully emulate the retired marker parsing semantics by ensuring the hand-constructed “retired” marker has a None reason, matching what the retired rule would yield for that paragraph shape.
Changes:
- In
test_a_reason_quoting_a_REAL_canon_unit_suppresses_it_under_the_retired_rule, explicitly setretired.reason = Noneafter overridingretired.names, aligning the marker object with the retired rule’s reason extraction behavior for the test paragraph.
File summaries
| File | Description |
|---|---|
tests/doc-health/test_modified_block_currency.py |
Adjusts the constructed “retired” marker in a regression test so its reason matches the retired rule (None for this paragraph), avoiding a mixed amended/retired marker state. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Lane: openxfactory-1 (openXfactory-1) FROZEN at Provenance for the admin merge of #733 (one-line plain fix in a test; no OpenSpec change). Word: Brett Heap, 2026-09-06T23:10Z, in session, by multiple choice, label verbatim "Archive; nit as its own PR first" — recorded on #692; this PR is the "nit as its own PR first" half, landing ahead of the archive of 🤖 Generated with Claude Code |
Lane: openxfactory-1
This one line sets the hand-built
retiredmarker's.reasontoNoneintest_a_reason_quoting_a_REAL_canon_unit_suppresses_it_under_the_retired_rule. That test emulates the RETIRED names rule (every code span in the tail is a name) by overridingretired.namesafter re-parsing the paragraph with the AMENDED parser, but it left.reasonas the amended parser computed — a value the retired rule would not produce. Under the retired rule,reasonis everything after the LAST code span's following—; in this paragraph nothing follows the last span (`**THEN** the run reports`) but" bullet, which carries the obligation whole", with no—in front of it, so the retired reading'sreasonisNone..reasonis read only inside_pairing_state, which handles theModified over(pairing) form exclusively —suppressionnever reads it — and this marker is aRemoved from canonmarker, so no assertion in the test (names,suppressed,defective) can move on this change.This finding was left by Copilot on PR #719 (
amend-marker-reason-boundary, merged0d009d97) and was REFUSED there, not because it was wrong, but because the file is inside the ratified baseline named byreview/ratification-2026-09-06.md(the four packet files, the delta, and the code surface:scripts/doc_health/modified_block_currency.pyand this test file) — editing a baseline file after the ratifying word, on the lane's own judgement, would make the record untrue of what landed. It is taken now on Brett Heap's word, 2026-09-06, multiple choice, label verbatim "Archive; nit as its own PR first": the nit lands first as its own plain-fix PR, then theamend-marker-reason-boundarypacket archives.Verification (verbatim):
No OpenSpec change — plain fix.
Refs #692
🤖 Generated with Claude Code
https://claude.ai/code/session_01JZqmqSDBCmY4cfhPbxN9Xb