Repository navigation
Description
Finding
PR #419's new recovery signal in issue_drafts() — drop the trailing fence when concept_pointers(recovered) - concept_pointers(kept) is non-empty — also fires for a properly closed appendix example (#410 shape) when that example contains its own - Concept Document: pointer line that differs from the draft's own pointer. The closed example then loses the exemption #410 established, and its example pointer is link-checked as if it were draft prose.
The comment added by PR #419 (scripts/research_workflow.py, in issue_drafts()) claims a properly closed appendix example "surfaces neither" signal because "its marker and pointer already sit in the kept prose". That holds only when the example's pointer line is identical to the draft's own (set difference empty) or the example contains no pointer line at all. An appendix example that itself depicts a draft — the natural content of such an example — carries a distinct pointer line, and the claim fails for exactly that shape.
Evidence
- PR: fix(workflow): recover trapped concept pointer when marker precedes an unclosed example #419 (merged, commit
c0909e97af89e41205920dce812b2f83fd15880f, closes fix(workflow): #411 marker test misses trapped draft prose when the marker sits before an unclosed inner example #414) - Code:
scripts/research_workflow.py:534(concept_pointers()helper) and the drop condition atscripts/research_workflow.py:596on current main (cross-checked viagh apicontents). - Verified against current main with a scratch probe (removed after) driving
issue_drafts()+link_targets()on the fix(workflow): #407 trailing-fence drop strips a properly closed inner example's exemption in an unclosed draft #410 test shape (append_issue_draft_ending_with_closed_inner_code: unclosed draft fence, marker + valid pointer before the example, example properly closed and last):- Control (example contains a broken non-pointer link, as in the existing fix(workflow): #407 trailing-fence drop strips a properly closed inner example's exemption in an unclosed draft #410 test): targets =
['C001-source-preservation.md']— example exempt, correct. - Example instead contains a distinct pointer line
- Concept Document: [example](missing/example-pointer.md): targets =['C001-source-preservation.md', 'missing/example-pointer.md']— the closed example's pointer is link-checked, soresearch_workflow.py checkfails a valid draft. - Same probe against the pre-fix(workflow): recover trapped concept pointer when marker precedes an unclosed example #419 file (blob
9692e517): targets =['C001-source-preservation.md']— the shape was exempt before PR fix(workflow): recover trapped concept pointer when marker precedes an unclosed example #419, so this is a regression introduced by that PR, not pre-existing behaviour. - Control where the example repeats the draft's identical pointer line: exempt, as the PR's comment predicts.
- Control (example contains a broken non-pointer link, as in the existing fix(workflow): #407 trailing-fence drop strips a properly closed inner example's exemption in an unclosed draft #410 test): targets =
Why it matters
research_workflow.py check is the guard that keeps trigger-issue draft links honest. A false failure on a valid draft trains authors to distrust or bypass the check, and blocks the docs workflow for a shape #410 deliberately protected. The indistinguishability the #414 comment records (trapped prose vs closed-example contents) is real, but the pointer signal as implemented does not distinguish "pointer trapped because the example is unclosed" from "pointer inside a properly closed example that simply differs from the draft's own".
Acceptance criteria
- A regression test in
scripts/tests/test_research_workflow.pymirroring the fix(workflow): #407 trailing-fence drop strips a properly closed inner example's exemption in an unclosed draft #410 closed-appendix shape whose example contains a distinct- Concept Document:pointer line with a non-resolving target passescheck(example stays exempt), while the fix(workflow): #411 marker test misses trapped draft prose when the marker sits before an unclosed inner example #414 trapped-pointer tests from PR fix(workflow): recover trapped concept pointer when marker precedes an unclosed example #419 still fail/pass as before. - Or, if the maintainers judge this shape genuinely indistinguishable and the false positive acceptable, the
issue_drafts()comment is corrected to record this second residual limitation explicitly (as fix(workflow): #411 marker test misses trapped draft prose when the marker sits before an unclosed inner example #414's acceptance did for the first), and a test pins the chosen behaviour. - Full
test_research_workflow.pysuite passes;python3 scripts/research_workflow.py check --repo-root .on the real tree still reportsok: true.
Single-repo: research_workflow.py exists only in developing-today/code (grep of the opencode/openchamber/nix clones finds no copy).
Activity
Merge pull request #423 from developing-today/sweep/422-closed-exampl…