Repository navigation
doc-health report: a ranked-plan path may not contain whitespace (loud at emit), the notebook-projection label becomes a real path, and unparseable plan rows are reported instead of dropped - #477
Merged
Conversation
… an unreadable row is reported Sibling of #472 and the same shape. `plan_line` EMITS `path=<value>` UNQUOTED and `PLAN_RE` READS it back as `path=(\S+)`, so a path carrying a space is written into the report and matched by no parser, old or new. The row is then silently absent from every `--previous-report` comparison: invisible to `regressions()` (the finding reads as NEW on the next run) and absent from the contested set (so `uncited_resolutions` cannot notice it vanish, and the citation requirement stops applying to it). THE LIVE INSTANCE IS A SYNTHETIC LABEL, NOT A FILE. `health/reports/ 2026-07-09.md:188` reads `path=(lifecycle notebooks)` — the notebook-projection-drift family put a prose label in the path slot. Harmless in that instance (WARNING, never contested) and not harmless as a mechanism. OPTION (b): NO GRAMMAR CHANGE. Quoting `path=` the way #472 quoted `rule=` and `action=` would reshape all 20,999 ranked-plan rows written to date and buy nothing — no legitimate value for this field contains whitespace. Measured before choosing: ZERO of the tracked files in any of the twelve checkouts in the workspace has a space in its name. So the repair is at the emit side and at the one misuse, in three parts. 1. `plan_line` REFUSES a path the grammar cannot read back — `_PATH = r"\S+"` is now interpolated into `PLAN_RE` and fullmatched by the guard, one pattern so the two cannot drift — and the ValueError names the family, the repo, the offending path, and what to write instead. `plan_line` is the choke point rather than `Finding.__init__` because the invariant belongs to the ranked-plan GRAMMAR, not to the value object: every finding that reaches a report reaches `plan_line` (`render`, and the readiness/neutrality lanes that fold rows in afterwards all call it), while `Finding` is also built by `uncited_resolutions` from rows PARSED BACK OUT of an archived report, which must stay representable. Failing the run is the deliberate trade — the same one `recorded_rel` states for a skipped check: a row that silently does not participate cannot be seen to have missed anything. 2. THE MISUSE IS FIXED AT ITS SOURCE. `fam_notebook_projection_drift`'s `(lifecycle notebooks)` becomes `openxFactory/docs/ lifecycle-notebook-projection.md` — a REAL artifact rather than a whitespace-free slug (`lifecycle-notebooks`), because the path slot already means "the artifact to open", every other family fills it that way, and here such an artifact exists: the `Status: standard` document that owns lifecycle notebook projection and carries the runbook this finding's action asks the reader to run. Spelled relative to the AGGREGATION root because this finding's repo is `xFactory`, matching `runner.SYNC_SCRIPT` (`openxFactory/scripts/sync-notebooklm-books.py`) and every other `repo=xFactory` path in the reports (`openxFactory`, `installs/agenttower`). NO DISPOSITION MOVES WITH IT. A disposition matches (family, repo, path); the aggregation checkout's `health/dispositions.yaml` carries no `notebook-projection-drift` entry at all (its eleven entries are location-conformance, record-immutability, semantic-contradiction, semantic-normative-prose, uncited-resolution). The family is WARNING-only, so the key change cannot manufacture an uncited-resolution either. EVERY OTHER CONSTRUCTION SITE WAS CHECKED, by AST over every `Finding(...)` call in `scripts/doc_health/` and `scripts/ideation_dashboard/` (which builds none). One other literal is a synthetic label — `(drafts)`, the staged-candidate-aging distribution row — and it is LEFT ALONE: it carries no whitespace, so it round-trips today, and rewriting it would change a key and the bytes of a row for no defect. `test_no_family_writes_a_whitespace_ bearing_path_literal` makes that grep permanent, statically — the family that DID violate the rule only runs against an authenticated `nlm`, so it renders no row in any fixture run, in the self-gate, or in CI, and no dynamic test could ever have caught it. The check reads THREE spellings (inline literal, f-string literal parts, and a module-level constant named in the slot), because the first draft read only the first and went green on a reverted label — the very mutation it exists to catch. 3. `parse_previous` REPORTS the rows it cannot read instead of dropping them. It used to `continue` past every unmatched line, which is right for the 200-odd prose lines of a report and catastrophic for a ranked-plan row: both grammar defects found so far were found by READING the regex, not by running it. A line that starts with `- severity=` and matches no parser is now printed to stderr with its line number behind a fixed, greppable marker (the convention `ideation_readiness.ROOT_FALLBACK_MARKER` already sets), and `unparsed_plan_rows()` returns the same list to a caller that wants it. The RETURN SHAPE IS UNCHANGED — still `(keys, contested)`, still the same key sets for every row that parses — because six callers unpack it as a pair. Run over the two live rejects it prints: [ranked-plan] unparsed row: line 188: - severity=warning family=notebook-projection-drift repo=xFactory path=(lifecycle notebooks) ... [ranked-plan] unparsed row: 1 ranked-plan row(s) in the previous report matched no parser and therefore took no part in the regression or uncited-resolution comparison which also surfaces #472's unfixable 2026-07-14 raw-quote row for the first time — the contested semantic-contradiction finding that vanished uncited. CANON PERMITS THE FIX WITHOUT A DELTA, on the same reading #472's review confirmed: the `doc-health` "Health report contract" requirement fixes the ranked plan's CONTENT ("a ready-to-stage work item stating severity, repo, path, and suggested action") and pins no lexical grammar for the row. What changes here is which STRING a family puts in the path slot and a defect repair in the implementation — not what the contract asks for. BYTE-IDENTICAL ON THE REAL TREE, proven rather than asserted. Both codes run against the SAME `git archive origin/main` extraction (only report.py and families.py differ between them): `doc-health.py --single-repo . --as-of 2026-08-28` produces reports with the same sha256 (a0ac61eb98cdbde1fe5665a5064a6723d20a1b3f9d1ad5f832bb615fa7c5ac8b), all 57 ranked-plan rows byte for byte. The changed label does NOT appear, and that is expected, not luck: `--single-repo` leaves `agg_root` None, so `notebook_dryrun()` returns None and the family SKIPS ("nlm unauthenticated or sync unavailable"). Feeding that report back as `--previous-report`: 0 new regressions, 0 uncited resolutions, output identical to its input, stderr silent. HISTORICAL REPORTS UNAFFECTED. Old parser vs new over all 27 `health/reports/ *.md`: 20,999 ranked-plan rows, 20,997 accepted by both, the SAME 2 rejected (2026-07-09.md:188 and 2026-07-14.md:267), and per-file key and contested sets IDENTICAL. The 07-09 row stays a reject — it is a historical artifact no forward-only repair can retroactively make readable — but it is now REPORTED rather than silently skipped, which is the whole of the parser-side change. MUTATIONS, each run and each restored. - Remove the emit guard -> the 3 refusal tests red ("DID NOT RAISE ValueError"). - Revert the label to `(lifecycle notebooks)` -> `test_notebook_projection_ drift` red on the path, and `test_no_family_writes_a_whitespace_bearing_ path_literal` red naming `families.py:942`. - Remove the unparsed-row report (both the `parse_previous` collection and `unparsed_plan_rows`) -> 2 red. The other 2 tests in that group stay green ON PURPOSE and are named so no reader mistakes it for weak coverage: they pin the NEGATIVE space (a clean report prints nothing; a per-family bullet is not judged as a ranked-plan row), which an absent feature also satisfies. `pytest tests/doc-health -q`: 1288 passed (1278 before; RED first at 9 failed). `openspec validate --all --strict`: 77 passed, 0 failed. Closes #474. Co-Authored-By: Claude Opus 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
This PR hardens the doc-health ranked-plan round-trip contract by ensuring path= values remain parseable (whitespace-free), fixing the one known family misuse that emitted a synthetic whitespace-bearing label, and making --previous-report comparisons surface (rather than silently drop) any ranked-plan rows that fail to parse.
Changes:
- Enforce a single shared
pathgrammar (\S+) at both emit (plan_line) and parse (PLAN_RE) time, failing loudly on invalid paths. - Update
notebook-projection-driftto emit a real aggregation-relative artifact path instead of the synthetic(lifecycle notebooks)label. - Add diagnostics for unreadable ranked-plan rows in prior reports (
unparsed_plan_rows()+ stderr announcements) and add targeted tests.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/doc-health/test_suite.py | Adds regression tests for whitespace-bearing path=, emit-guard/grammar symmetry, and reporting of unparsed ranked-plan rows. |
| tests/doc-health/test_families.py | Pins the notebook-projection drift path to a real artifact and asserts the family’s row round-trips through plan_line + PLAN_RE. |
| scripts/doc_health/report.py | Introduces _PATH + guard in plan_line, adds unparsed-row reporting, and wires the shared path grammar into PLAN_RE. |
| scripts/doc_health/families.py | Replaces the synthetic notebook-projection label with an aggregation-relative documentation path constant. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Catch-up before re-measuring: main landed #465 (clean-doc-health-floor), which rewrote `fam_location_conformance`'s staged-exit arm to read ACTIVE change ids instead of `ctx.change_ids`. The first byte-identity run of this branch was taken against a tree that already carried that and a families.py that did not, so it showed a phantom one-row diff. Re-measured after this merge. Co-Authored-By: Claude Opus 5 <[email protected]>
…arpenings
B1 (BLOCKER). `plan_line`'s unconditional `raise` was DATA-reachable, and the
review is right that this is not a theoretical shape. `corpus.iter_doc_paths`
rglobs every `.md` in the checkout, so a governance file named
`docs/Meeting Notes 2026.md` makes status-validity report on it and the raise
aborts `render()` BEFORE `--report-out` is written. The nightly's `Run
doc-health suite` step carries no `continue-on-error`: no report, no artifact,
until a human renames the file — and the next run then baselines against a
stale report, so a real regression lands unnoticed. Reproduced against the
previous commit: exit 1, no file.
THE CITATION WAS ALSO WRONG, and that is the deeper error. The docstring
justified failing closed by pointing at `recorded_rel`, which does the
OPPOSITE: it REPAIRS the spelling of a recorded path and carries on, precisely
so a reader is never stopped by an alphabet it did not choose. The docstring
now says what the precedent actually does and follows it.
SO THE DEFAULT NORMALIZES: each whitespace run becomes `_`, the row is written
and READABLE, and one line goes to stderr behind `[ranked-plan] sanitized
path: <family> <repo> <original> -> <sanitized>`. The repair is deterministic,
so the repaired key is stable run to run and the finding PARTICIPATES in the
regression comparison instead of vanishing from it. Measured three ways on the
same tree, with `docs/Meeting Notes 2026.md` planted in it:
origin/main exit 0, report written, row `path=docs/Meeting Notes 2026.md`
-> unparsed_plan_rows=1, the finding is ABSENT from the key set
(this is #474 itself)
prev commit exit 1, NO report written (the blocker)
this commit exit 0, report written, row `path=docs/Meeting_Notes_2026.md`
-> unparsed_plan_rows=0, key ('status-validity', 'openxFactory',
'docs/Meeting_Notes_2026.md') present, one stderr line
`plan_line(..., strict=True)` raises exactly as before and is what the tests
assert the rule with. Nothing in production passes it. The authoring-time nets
stay where they were — the static AST check for a family that SPELLS a bad
path, and the runtime value pin in `test_notebook_projection_drift` — because
those catch CODE; the sanitizer catches DATA, which no test can forbid since
the corpus is not ours to name.
New tests: `test_plan_line_refuses_*_under_strict` (three, renamed),
`test_a_whitespace_path_from_the_corpus_still_renders_a_readable_row`,
`test_the_nightly_still_gets_a_report_when_the_corpus_names_a_bad_path`
(the `render()`-does-not-raise assertion),
`test_sanitizing_is_deterministic_so_the_repaired_key_is_stable`,
`test_a_clean_path_is_never_announced_as_sanitized`.
N1. `parse_previous` re-implemented `unparsed_plan_rows`'s predicate inline —
two readers of one grammar that can disagree, which is the exact defect class
this change exists to close. It now CALLS it.
`test_parse_previous_and_unparsed_plan_rows_are_one_rule` pins the call.
N2. The summary line reused the row marker, so `grep -c` for the row marker
returned N+1 and the diagnostic misreported its own subject. The summary is now
`[ranked-plan] unparsed-row total`, which is not a superstring of
`[ranked-plan] unparsed row`; over the two live rejects `grep -c` now gives 2
and 1. `test_the_two_unparsed_markers_are_countable_apart` pins the
disjointness, not just the strings.
N3. The AST reader failed OPEN under `ast.AnnAssign` — annotate the offending
constant and the rule stops seeing it — so it now reads `NAME: str = "..."`
too, and the self-test carries an annotated case. It ALSO cannot follow a
constant moved to a sibling module, which no reader of one file can; instead
the check now asserts a FLOOR on how many literals it resolved (7 today), so
going blind reds as a floor violation before it can pass over an empty list.
The docstring says plainly that the runtime value pin in
`test_notebook_projection_drift` is the real net for the path this change
repaired.
MERGED origin/main (c79d6e5, #465 clean-doc-health-floor) first: main had
rewritten `fam_location_conformance`'s staged-exit arm to read ACTIVE change
ids, and the first byte-identity measurement of this branch overlaid a
families.py that predated it, which showed a phantom one-row diff. Re-measured
after the merge, both trees from c79d6e5:
A/B render sha256 d0697bb2d6fc6c9565c0f187205547997362a21e2ce7d33130415d84e169cf1a,
BYTE-IDENTICAL, all 54 ranked-plan rows, ZERO sanitized-path stderr lines and
zero stderr bytes on the real render — the sanitizer touches nothing that
exists today.
Real worktree: 65 rows, `--previous-report` round trip 0 new regressions,
0 uncited, output identical to input, stderr silent both runs.
Historical: 27 files, 20,999 rows, 20,997 accepted by both parsers, the same
2 rejected, per-file key and contested sets IDENTICAL.
`pytest tests/doc-health -q`: 1296 passed (baseline 1278 on c79d6e5).
`openspec validate --all --strict`: 78 passed, 0 failed (77 + #465's change).
Co-Authored-By: Claude Opus 5 <[email protected]>
Comment on lines
+79
to
+83
| # path is a repository-relative file path — every tracked file in every one of | ||
| # the twelve checkouts in the workspace is whitespace-free, measured — and a | ||
| # finding about something that is not one file names it with a slug. So | ||
| # `plan_line` REFUSES a path this pattern cannot read, and the one label that | ||
| # violated it became a real path (`families.fam_notebook_projection_drift`). |
|
|
||
|
|
||
| def test_the_nightly_still_gets_a_report_when_the_corpus_names_a_bad_path(): | ||
| """THE BLOCKER THIS ANSWERS (review of PR #477): `render()` must return a |
| # `NAME = "..."` and `NAME: str = "..."` both. The annotated form was | ||
| # missing from the first draft, which is a check that fails OPEN: add | ||
| # one annotation to the offending constant and the rule stops seeing | ||
| # it. Reported in the review of PR #477. |
brettheap
added a commit
that referenced
this pull request
Sep 22, 2026
…ures are corrected; the openDox-code hygiene arc's two landings are recorded where the register lives ZERO marker changes, still — measured against the NEW main `aaddda66`: the `^- \[.\]` lines are byte-identical in text and in order, 67 [x] / 3 [ ] / 2 [~] of 72. § 5.1 — STEP 2 LANDED WHILE THIS AMENDMENT WAS OPEN, so the in-flight sentences are superseded and KEPT with their clock (measured 00:36Z, landed thirty-six minutes later). `openxFactory` #1134 → `aaddda666165655a60abc1720f271e2e967e3bdc`, `mergedAt` 2026-09-22T01:12:58Z: the same six files, both gitlinks at `dc7aa08f` and `646f1dc0`. THREE HANDED FIGURES CORRECTED, because this lane measures what it is handed. (1) The clock is `mergedAt` 01:12:58Z and the commit's own committer date 01:12:57Z, not 01:13:04Z — the seconds change no gate, the FIELD is what the record names. (2) The landing FORM is a SQUASH: the commit carries ONE parent and its subject ends in the `(#1134)` suffix GitHub's squash writes, not the two-parent merge commit the assembly-root pin landings took. (3) The head that landed is `a28d68a6`, not the `ca2c8a82` this box measured at 00:36Z — which is why the in-flight record names a head AND a measuring time. ONE NARRATIVE DEFECT IN #1134's OWN BODY IS REGISTERED AND NOT FIXED (another actor's text; no sha turns on it): it says the openXdox target is "one commit past xdox-v1.0", and measured it is TWO. It is the IDENTICAL off-by-one this amendment corrected at § 8.7, reached independently on the other side of the same landing — the argument for recording defect classes and not only defects. § 8.7 — STEP 3 RE-MEASURED AT 01:17Z, after step 2 landed: still not opened. xFactory now carries six open pull requests and the new one is #477, the ceremony-history DOCS follow-up § 5.6 already registered, not the sync. § 3.6 — THE HYGIENE ARC HAS LANDED TWICE and neither landing moves the box, at the box that already carries its register. `openDox-code` #33 → `1d4ac83c` (2026-09-19T02:29:06Z) and #34 → `f8a1eced` (2026-09-22T01:07:19Z, a squash). The triple is measured rather than reported: 1114/1111/3 at `.github/workflows/validate.yml`:2128 with MIN_SELECTED/MIN_PASSED at :2136-2137, where #33 read 1109/1106/3 and the root-pinned `d816cf06` reads 1099/1096/3. And the reason neither touches an obligation is verified, not asserted: the openDox assembly root still pins `code` at `d816cf06`, and `f8a1eced` is ahead_by 2, behind_by 0 of it. Clock correction owed to the report: #34 was handed as 01:07:26Z; both fields that exist read 01:07:19Z. `openspec validate split-opendox-two-layer-product --strict` valid · `proposal-support.py . verify` ok · `validate-sequenced-after.py . --ledger-diff` clean (222 rows). Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Sep 22, 2026
…is qualified, the pin-shape ruling is recorded at the box that owns the direct pins, and STEP 2's openXdox target is corrected (#1135) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Refs #656 (stays OPEN). **`split-opendox-two-layer-product` `tasks.md` AMENDMENT #11 — a small pre-archive amendment: one registered citation qualified, one ruling recorded at the box that owns its object, and one figure corrected where two boxes of amendment #10 disagreed.** Branched from the landed `main` at **`6b298a1e`**. **Ledger 67 `[x]` / 3 `[ ]` / 2 `[~]` of 72 BEFORE and AFTER — ZERO marker changes**, verified rather than asserted: the file's `^- \[.\]` lines are **byte-identical to `main`'s in text and in order** (`diff` empty). One file, **+133 / −2**; the two deletions are the two lines the § 8.4 citation is repaired in. The three still open are §§ **5.6, 8.4, 8.9**; §§ 7.3 and 7.4 hold their `[~]`. Rule 6 applies. > **Nothing here ticks anything, and that is the shape of the act.** Two of the three items were REGISTERED at amendment #10's head and deliberately not pushed; this is the amendment that carries them, which is the half of "register it" that makes registering honest. ## § 8.4 — the `assert_landed_pin` citation is qualified IN PLACE (`#656` `5768299637`) Copilot's finding at amendment #10's head `525fe5b2` — LOW, *"Unresolvable citation path for assert_landed_pin"* — **was correct**. § 8.4 cited `specs_floor_block.py::assert_landed_pin` bare, and **no file of that name exists anywhere in `openxFactory`**: the function is codexFactory's, and this same document already qualifies it properly at § 5.6. Folded **verbatim in the words Brett Heap wrote out for this amendment**: codexFactory's `scripts/merge_master/specs_floor_block.py::assert_landed_pin`. **It is repaired in place rather than kept-and-superseded, and the rule is the packet's own**: a bookkeeping amendment fixes stale or under-qualified **COORDINATES** — § 7.3's locator took exactly this treatment at amendment #10 — and does not re-word what ratification was over. *The rule's words are unchanged; only the path that finds it is.* **Why it waited one amendment, written into the box so the delay does not read as neglect**: the finding under-qualifies a citation in a box that **does not tick** — § 8.4 is one of the three still `[ ]` — so it falsified no tick and no evidence line, and this lane moves a reviewed head only for a finding showing that a **tick is wrong**. Six pushes had already re-run that gate. *The cost of that rule is exactly this: a true finding waits one amendment, and it is carried in writing so that waiting cannot become losing.* ## § 5.1 — the PIN SHAPE is ruled, and it lands at the box that owns the direct pins (`#656` `5768144952`) **RULED 2026-09-21T22:03:33Z by Brett Heap, verbatim *"(b) for the pin shape, keep going"***, answering the RULING NEEDED at `5768088579`. **`files:` and `pinned_by_commit_only:` stay DEFERRED in BOTH direct pins**, on the ONE-LINK-UP precedent this chain already runs on and which `scripts/verify-openxdox-pin.py` reached first: the whole-tree `sorted-ls-tree-r-v1` digest addresses **every byte** of the pinned root, so no member can be undeclared and none can be added or altered without changing the referent. It discharges the completeness obligation those two lists exist to serve, and discharges it **more strongly** than an enumeration; the legs the digested artifacts sit in are themselves pinned by commit **and** digest by their assembly root. *An enumeration here would add a second, weaker statement of one fact — and a second statement is a thing that can drift.* **The trigger the header set for itself DID fire, and the ruling answers it rather than avoids it.** The revisit condition is the first commit whose pinned manifest carries a non-empty `entries:` row: | measured | | | --- | --- | | commit | openDox **`dc7aa08f`** (the commit `dox-v1.0` tags), 2026-09-21 | | manifest | `contract_bundle_version: dox-v1.0`, **3** entries | | the three | `xfactory-workbench-chat-turn`, `xfactory-workbench-model-catalog`, `ideation-workbench` | | where they live | `contracts/schemas/…` in `opensoft/openDox-spec` at **`8fe8c4c7`**, digested per file | So **the revisit is recorded DONE with the digest reading as its resolution**, and the trigger sentence — *"that artifact then moves into a `files:` list here"* — is **amended rather than left standing contradicted**. *Two recorded readings in this family disagreed, and a ruling that leaves both in the tree leaves the next reader to pick one; that is why the amendment is written into the pin FILE, beside the sentence it supersedes, and not only onto the issue.* **Why § 5.1 and not § 4.2**: the ruling is about the shape of a **DIRECT** pin, and the two direct pins `openxFactory` declares — `contracts/openxdox-pin.yaml` and, since RULED **Q7**, `contracts/opendox-pin.yaml` — are § 5.1's own object, with the two gitlinks they move with. § 4.2 owns openXdox's pin of openDox, one link further down the same chain, and takes its own record. **The marker does not move.** § 5.1 is `[x]` on `#917` → `edf0e24f`, and a later advance of a pin it already ticked on does not re-open it. ## § 4.2 — the judgment stands and its FIRST REASON does not The recorded hand-act judgment — that the per-file `sha256` and `pinned_by_commit_only:` lists are both empty — rested on **two** reasons, and the first has expired: openDox's manifest no longer reads `contract_bundle_version: none` with `entries: []`. The same ruling **keeps the judgment on its second reason**, the whole-tree digest. **What this box now OWES, registered and not discharged**: `openXdox/contracts/opendox-pin.yaml` still carries the **un-amended trigger sentence** at openXdox `main` **`646f1dc0`**. The identical header amendment the `openxFactory` side takes inside STEP 2's own pull request is owed here in a small follow-up by the same actor after STEP 3. *Named at the box that owns the FILE, because an obligation recorded only where it was ruled is an obligation the file's next reader never meets — and the ruling's own words state the gap (the claim posted as `5767868394` was an earlier draft that lacked this finding) rather than closing it quietly.* **The tick is undisturbed**: § 4.2 ticked on the file's **fields** at openXdox root `eca0b597` — product, source repository, an assembly-root `commit:`, `revision_kind`, the `sorted-ls-tree-r-v1` digest and the RULED ASK-1 migration triple — and a later advance of the `commit:` removes none of them. *A pin that moves is a pin that works.* ## § 8.7 — STEP 2's openXdox target is corrected, `2073e3a9` → `646f1dc0` Amendment #10's AGGREGATION-SIDE RECORD A2 wrote step 2 as *"`openDox` → `dc7aa08f`, `openXdox` → `2073e3a9`"*, while **§ 4.6 of the same amendment wrote `646f1dc0`**. `646f1dc0` is right, and the gap between the two commits is the whole of STEP 1: - `2073e3a9` is the commit **`xdox-v1.0`** tags, and its `contracts/opendox-pin.yaml` still pins openDox at `c4c5014d`; - `openxFactory`'s `scripts/verify-opendox-pin.py` enforces a **LOCKSTEP** — its own direct openDox `commit:` must equal the `commit:` read from `openXdox/contracts/opendox-pin.yaml` at the pinned gitlink — so pinning `dox-v1.0` and `2073e3a9` together is **REFUSED**; - `openXdox` **`#15` → `646f1dc0`** is the act that makes step 2 possible, and `openxFactory` **#1134** moves the `openXdox` gitlink to `646f1dc0` exactly. **The sentence above the correction is kept**, because it is the reading the claim was written under. *The forced order at `#656` `5767733963` names its own openXdox target as **X**, a variable step 1 resolves; that record resolved it from the TAG instead of from the LANDING, which is the one substitution the order forbids.* ## STEP 2 and STEP 3 are recorded as POSITIONS, not landings | step | state, measured at the forge | recorded at | | --- | --- | --- | | **2** — `openxFactory`'s nested leg-advance | **#1134**, `change/advance-nested-opendox-openxdox-legs`, head **`ca2c8a82`**, DRAFT, base `main`. **Six files**: both pin files (`commit:` + `digests.tree_sha256`), the `openDox` gitlink `c4c5014d → dc7aa08f`, the `openXdox` gitlink `88a1047e → 646f1dc0`, and both verifiers' tests. It carries the `openxFactory` half of the pin-shape amendment **in the same landing as the pin it amends**. | § 5.1 | | **3** — the aggregation three-pointer sync (claim `5767572080`) | **has not opened**: `opensoft/xFactory`'s five open pull requests at 00:40Z are #396, #160, #22, #21, #5, none a pointer sync. | § 8.7 | **Amendment #12 carries both shas.** This amendment records the act, its object and its head, and refuses to record a merge that has not happened — the same standard §§ 3.8/4.6 held to for their tags. ## What is deliberately NOT in this amendment **The landings of 2026-09-21 that arrived after amendment #10's head are already in the file** — checked against `origin/main` rather than assumed: `openXdox` **#15 → `646f1dc0`** is recorded at § 4.6 (`#656` `5768022822`) and the **fourth MIGRATION_PIN ceremony**, `xFactory` **#475 → `c88d1fdd`**, at § 5.6 with its four gates (`#656` `5768064136`). Amendment #10 carried both; re-recording them would be a duplicate, not a record. **#1131's own landing is carried by the ledger count alone** — this amendment IS that record. ## Copilot round 1 — TWO FACT findings, both right, both taken as fixes (head `22b9af23`) **Finding `r4067623184` (MEDIUM) — *"Empty pin resolution omits required per-file hashes"* — is right in the delta, and the amendment's prose was wrong to read as settled.** Measured in this packet's OWN ratified `neutral-product-pin` MODIFIED requirement: | `specs/neutral-product-pin/spec.md` | what it says | | --- | --- | | **`:87-100`** | the **SOURCE-TREE** clause: the pin *"SHALL carry the product's COMMIT, its `revision_kind`, a per-file `sha256` for every artifact the product's own manifest digests per file, and `pinned_by_commit_only:` for every artifact the product content-addresses by commit alone"* | | **`:102-121`** | the one-digest-addresses-every-byte reasoning **is in the requirement** — and it is scoped to *"WHERE THE PRODUCT IS DISTRIBUTED AS A PUBLISHED, CONTENT-ADDRESSED ARTIFACT RATHER THAN AS A SOURCE TREE"* | | **`:123-138`** | the runtime clause **this packet itself added**: the deployment declaration *"SHALL NOT be read as permission to skip the digests — commit and per-file `sha256` remain the trusted referent exactly as for a file-read pin"* | **openDox is pinned as a SOURCE TREE, by commit**, so `dc7aa08f`'s three per-file entries make that obligation **non-vacuous for the first time** — exactly what the pin header's own trigger anticipated. **SETTLED and NOT SETTLED are now stated separately in the box.** Settled: what the two pin FILES carry today — Brett's word at `5768144952`, already executed. Not settled: whether the source-tree clause is discharged by a whole-tree digest — **normative text**, therefore a spec-delta-class act, on the disposition RULED `5700622683` gave § 7.1's scenario-4 defect and § 7.3 records for its own ratified trigger phrase: registered, owed from an act that CLAIMS the delta, never repaired by a bookkeeping amendment. > **RULING NEEDED** (registered in the box, not left on a pull request): **(a)** both direct pins carry the three per-file `sha256` entries plus an explicit `pinned_by_commit_only: []`, the deferral narrowing to the SHAPE of the lists rather than their existence; **(b)** the source-tree clause is amended to admit a whole-tree `sorted-ls-tree-r-v1` digest as an EQUIVALENT discharge — the reading the ruling already applies one medium over; **(c)** the ruling stands as a recorded EXCEPTION, named at the box and at the delta. **REC (b)**, because it leaves ONE rule in the corpus instead of a rule and an exception. § 4.2 carries a pointer to the same tension, so the actor taking that file's follow-up meets it **before** editing the header rather than after. **Finding 2 (Copilot's overview — the intervening `6df0a030`) is also right.** § 8.7's correction said the two commits are *"one commit apart"*. **Measured on the root's own history they are two**, and only the second is STEP 1: `2073e3a9` (#13, release surface, 20:56:18Z) → **`6df0a030`** (#14, CHANGELOG `draft` → `standard`, 21:39:17Z, **touching no pin**) → **`646f1dc0`** (#15, 21:51:39Z, the pin advance that IS step 1). *A reader counting back one from `646f1dc0` lands on a CHANGELOG edit rather than on the tag — the off-by-one locator class this packet has already spent three amendments on. Fixed rather than tidied away, and the correction-of-a-correction is left on the page.* **Markers are still untouched after both fixes**: `67 [x] / 3 [ ] / 2 [~] of 72`, and the `^- \[.\]` lines remain byte-identical to `main`'s in text and in order. ### Copilot round 2 — one LOW finding, right, taken as a fix (head `439843f6`) **`r4067646318` — *"Pin-file trigger amendments remain incomplete"*.** § 5.1 wrote that the trigger sentence *"is AMENDED"*, which reads as a landed fact, while the same box's execution paragraph two below records the `openxFactory` half as **in flight** in `#1134` and the openXdox half as **owed**. One box stated a thing as done and, further down, as pending. It now reads **"is RULED AMENDED"**, with a paragraph stating the split in terms: **as this amendment is written, NEITHER pin file carries the amended header on a landed commit** — the `openxFactory` side is in flight inside STEP 2's pull request, the openXdox side is not yet authored. *What is DONE is the ruling and the revisit it answers; what is PENDING is the execution, in two pull requests.* **The finding's reasoning about the archive is why it earned a head**: a ledger that reads *"amended"* where it means *"ruled to be amended"* is how an archive comes to treat outstanding work as closed. This packet has refused that at § 3.7 (three candidate heads), § 4.5a (an abbreviated command) and §§ 3.8/4.6 (a live read of a tag ref), each time by recording nothing but a landed sha as landed — and neither STEP 2 nor STEP 3 is recorded as landed anywhere in this amendment. **Three findings across two rounds, all three FACT-class on this amendment's own prose, all three taken as fixes; zero registered.** Markers untouched throughout. ## Round 3 — STEP 2 has LANDED, and three of its handed figures are corrected **`openxFactory` #1134 → `aaddda666165655a60abc1720f271e2e967e3bdc`, `mergedAt` 2026-09-22T01:12:58Z** — the STEP 2 nested leg advance. Six files; both gitlinks at **`dc7aa08f`** and **`646f1dc0`** exactly. **The in-flight sentences are SUPERSEDED and KEPT with their clock** (measured 00:36Z, landed thirty-six minutes later), which is this packet's standing treatment of a position overtaken by an act. | handed | measured | why it is recorded | | --- | --- | --- | | `mergedAt` 01:13:04Z | **`mergedAt` 01:12:58Z**, commit date **01:12:57Z** | the seconds change no gate — **the FIELD does**, which is why this packet names the field beside every clock | | (unstated) | **a SQUASH**: ONE parent, subject ending `(#1134)` | not the two-parent MERGE COMMIT the two assembly-root pin landings took | | head `ca2c8a82` (measured 00:36Z) | **`a28d68a6`** is `#1134`'s final PR head — the **source ref** that was squashed; **`aaddda66`** is the commit on `main` | three shas, none of them each other: a head is a MOVING reference until a landing fixes a different sha. *Corrected on Copilot finding `r4067741174`, which caught an earlier round writing "the head that landed" — the one error class this packet is built to catch, since it ticks on landed shas and nothing else.* | **One narrative defect in `#1134`'s own body is REGISTERED and not fixed** (another actor's text; no sha turns on it): it says the openXdox target is *"one commit past `xdox-v1.0`"*, and **measured it is two**. **That is the identical off-by-one this amendment corrected at § 8.7**, reached independently on the other side of the same landing — the argument for recording defect CLASSES and not only defects. **§ 8.7 — STEP 3 re-measured at 01:17Z, after step 2 landed: still not opened.** `opensoft/xFactory` now carries six open pull requests; the new one is **#477**, the ceremony-history DOCS follow-up § 5.6 already registered, **not** the sync. **§ 3.6 — the openDox-code hygiene arc has landed twice, at the box that already carries its register**, and neither landing moves it: **#33 → `1d4ac83c`** (2026-09-19T02:29:06Z) and **#34 → `f8a1eced`** (2026-09-22T01:07:19Z, a squash). The triple is **measured, not reported** — `1114 / 1111 / 3` at `.github/workflows/validate.yml`:2128 with `MIN_SELECTED`/`MIN_PASSED` at :2136-2137, where #33 read `1109/1106/3` and the root-pinned `d816cf06` reads `1099/1096/3`. **And the reason neither touches an obligation is verified rather than asserted**: the `openDox` assembly root still pins `code` at `d816cf06`, and `f8a1eced` is **ahead_by 2, behind_by 0** of it. *(Clock correction owed to the report: #34 was handed as 01:07:26Z; both fields that exist read 01:07:19Z.)* **`origin/main` `aaddda66` is merged into this branch**, and the markers are re-verified against it: `67 [x] / 3 [ ] / 2 [~] of 72`, `^- \[.\]` lines byte-identical in text and order. ### Round 5 — the last head-moving round: *"direct pins"* named two different pairs Copilot's round-4 overview reported **Findings: None** with the headline *"the pin-trigger evidence must be attributed to the correct direct and transitive pin files"*. No thread, nothing to register — and the headline is right about the prose: § 5.1 used **"direct pins"** for **two different pairs**, four paragraphs apart, and only ONE file belongs to both. | the phrase | the pair | | | --- | --- | --- | | the **ruling's** — *"both direct pins"* | `openxFactory`'s `contracts/opendox-pin.yaml` + `openXdox`'s file of the same name | each DIRECT from its own consumer's position; the second is TRANSITIVE as seen from `openxFactory` | | **this box's own** | `contracts/openxdox-pin.yaml` + `contracts/opendox-pin.yaml` | the two pins `openxFactory` DECLARES — what RULED **Q7** made two | The deferral sentence now **names its two files** instead of saying *"both direct pins"*, and a **PHRASE COLLISION** paragraph flags the ambiguity once — on the same treatment the `R-5` collision gets at § 5.6: every mention names its files and **neither phrase is renamed**, because renaming a ruling's label in a ledger breaks every record that cites it. **This is the final head-moving round on this amendment.** Anything further is registered for #12. ## Round 6 — a FOLD, not a review round: STEP 3 lands and the forced order is COMPLETE **`opensoft/xFactory` #478 → `1385f380117f54f1e266e239a9e467e730ce3f29`, `mergedAt` 2026-09-22T01:33:07Z, a MERGE COMMIT (two parents).** The three pointers are read **at that commit**, not from its title: `openxFactory` → **`aaddda66`**, `openDox` → **`dc7aa08f`**, `openXdox` → **`646f1dc0`**. The equality § 8.7's own line checks holds again for **both** legs — STEP 1 broke it by design and STEP 3 restores it, which is what makes the order *forced* rather than preferred. | the forced order, `#656` `5767733963` | landing | UTC | | --- | --- | --- | | **STEP 1** `openXdox` #15 | `646f1dc0` | 2026-09-21T21:51:39Z | | **STEP 2** `openxFactory` #1134 | `aaddda66` (squash) | 01:12:58Z | | **STEP 3** `xFactory` #478 | `1385f380` (merge commit) | 01:33:07Z | **Four files is not a breach of #474's two-file invariant — it is a different sync.** #474 was the openxFactory-**pointer** sync (that gitlink plus `.github/clearing/openxfactory/PIN.yaml`); this is the **three-pointer** sync, so its shape is three gitlinks plus that same clearing PIN, and #474's pair moves here too for #474's own reason: the nightly runs its scripts from the `openxFactory` gitlink. **§§ 5.1 and 4.2 — both halves of the header amendment have landed**, so round 2's *"NEITHER pin file carries the amended header on a landed commit"* is superseded and kept with its clock. The openXdox half is **`openXdox` #16 → `7194c06ca456d1675e32e890b4acf640b14bfc60`**, `mergedAt` 01:33:20Z, a squash, one file. **Measured in the landed bytes rather than taken from the title**: it cites the ruling `5768144952` **twice**, the trigger sentence *"that artifact then moves into a `files:` list here"* **no longer occurs in it at all**, and `commit:` still reads `dc7aa08f` — the header moved, the referent did not. **§ 4.2's obligation was registered as owed at 00:45Z and discharged at 01:33Z**, inside one amendment, and both are recorded: *a ledger that records only what is still outstanding cannot be used to check what was.* > **A clock pattern worth more than its four figures.** #1134 handed 01:13:04Z / measured **01:12:58Z**; `openDox-code` #34 handed 01:07:26Z / **01:07:19Z**; #478 handed 01:33:14Z / **01:33:07Z**; `openXdox` #16 handed 01:33:28Z / **01:33:20Z**. **Four reports, every one six to eight seconds fast** — a systematic offset in whatever field the reports read, not four slips. It changes no gate; this packet names the FIELD beside every clock precisely so an offset like that is visible instead of invisible. **The Copilot finding budget stays closed at round 5.** This round folds landings the holder sent while the amendment was open. ### Round 7 — round 6's fold left its own plan standing as live, and the marker goes in the same round **`r4067822689` (MEDIUM) is right.** Round 6 recorded `openXdox` #16 as landed and § 4.2's obligation as discharged, and left § 5.1's *"EXECUTION IN TWO HALVES, AND THE SECOND IS OWED"* standing beneath it with no superseded timestamp and no discharge reference — one box saying both halves landed and, four paragraphs down, scheduling the second as future work. **The same defect class round 2 corrected, re-created by a later fold in the same section.** The plan is **kept** — this packet keeps superseded readings in the present tense of their own act — and it is now **marked** *SUPERSEDED 2026-09-22T01:33:20Z*, naming `openXdox` #16 → `7194c06c` as the discharge and § 4.2 as the other place it is recorded. **The general lesson is written into the marker, not merely applied**: a fold that lands an obligation must mark every plan that schedules it, in the same round as the fold, or the contradiction outlives the round that made it. ### Round 8 — the mirror, found in the review BODY rather than in a thread Copilot's round-7 review reported **Findings: None** open and **0 unresolved threads**, and carried a **"Previously missed"** finding in its body, in text round 7 did not touch: § 4.2's heading *"WHAT THIS BOX OWES, REGISTERED AND NOT DISCHARGED HERE"* still presented the obligation as live with its own discharge in the very next paragraph. **It is right, and it is the exact mirror of what round 7 fixed at § 5.1**, so it takes the identical treatment: the reading is **kept** in the present tense of its own act and **marked** *SUPERSEDED 2026-09-22T01:33:20Z*, naming `openXdox` #16 → `7194c06c`. **The marker rule now stands at both boxes rather than only at the one that was reported.** *Recorded because of where it was visible: a zero-unresolved-threads count is not evidence, and this lane's gate reads the review BODY for exactly this block.* ## Gates `openspec validate split-opendox-two-layer-product --strict` **valid** · `proposal-support.py . verify` **ok** · `validate-sequenced-after.py . --ledger-diff` **clean (222 rows)**. `openspec validate --all --strict` → **106 passed, 1 failed** — and **the one is not this branch's**: `add-chain-attestation`'s `signed-execution-chain` MODIFIED block omits *"a tranche-two link does not exist yet"*. **Measured identical at this branch's own base `6b298a1e` AND at `main` `aaddda66` after the merge**, so it is inherited `main`-red; it is asked of lane **`openxfactory-1`** by name at `#656` comment `5767267092`, and it is § 8.9's registered residue (vi). Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The defect
Sibling of #472 and the same shape.
plan_lineEMITSpath=<value>unquoted andPLAN_REREADS it back aspath=(\S+), so a path carrying a space is written into the report and matched by no parser, old or new. The row is then silently absent from every--previous-reportcomparison: invisible toregressions()— the finding reads as NEW on the next run — and absent from the contested set, souncited_resolutionscannot notice it vanish and the citation requirement quietly stops applying to it.The live instance is a synthetic label, not a file.
health/reports/2026-07-09.md:188readsThe
notebook-projection-driftfamily put a prose label in the path slot. Harmless in that instance (WARNING, never contested) and not harmless as a mechanism.Option (b), and why not (a)
(a) — quote the path field the way #472 quoted
rule=andaction=— would reshape all 20,999 ranked-plan rows written to date and buy nothing: no legitimate value for this field contains whitespace. Measured before choosing: zero tracked files across all twelve checkouts in the workspace has a space in its name. Widening the grammar to admit a value nothing needs is a permanent cost for a defect that is really a misuse.(b) — no grammar change. Three parts.
1.
plan_linerepairs a path the grammar cannot read back_PATH = r"\S+"is now interpolated intoPLAN_REand fullmatched by the guard — one pattern, so guard and grammar cannot drift.The default normalizes and continues;
strict=Trueraises. The first version of this PR raised unconditionally, and the review caught that as a blocker: the path slot is data-reachable.corpus.iter_doc_pathsrglobs every.mdin the checkout, so a governance file nameddocs/Meeting Notes 2026.mdmakesstatus-validityreport on it and the raise abortsrender()before--report-outis written. The nightly'sRun doc-health suitestep carries nocontinue-on-error→ no report, no artifact, until a human renames the file, and the run after that baselines against a stale report.The cited precedent was wrong too, which is the deeper error:
recorded_rel(__init__.py:123-155) repairs the spelling of a recorded path and carries on, precisely so a reader is never stopped by an alphabet it did not choose. The docstring now says what the precedent does and follows it.So each whitespace run becomes
_, the row is written and readable, and one line goes to stderr:The repair is deterministic, so the repaired key is stable run to run and the finding participates in the regression comparison instead of vanishing from it. Measured three ways on the same tree with that file planted in it:
origin/mainpath=docs/Meeting Notes 2026.mdunparsed_plan_rows=1. This is #474 itself.path=docs/Meeting_Notes_2026.md('status-validity', 'openxFactory', 'docs/Meeting_Notes_2026.md'),unparsed_plan_rows=0Choke point:
plan_line, notFinding.__init__. The invariant belongs to the ranked-plan grammar, not to the value object. Every finding that reaches a report reachesplan_line(render, plus the readiness and neutrality lanes that fold rows in afterwards), whileFindingis also built byuncited_resolutionsfrom rows parsed back out of an archived report — those must stay representable.Nothing in production passes
strict=True; it is how the tests assert the rule. The authoring-time nets catch a family that spells a bad path (the static AST check below, plus the runtime value pin intest_notebook_projection_drift); the sanitizer catches a bad path that arrives as data, which no test can forbid because the corpus is not ours to name.2. The misuse is fixed at its source
(lifecycle notebooks)→openxFactory/docs/lifecycle-notebook-projection.md.A real artifact rather than a whitespace-free slug (
lifecycle-notebooks), because the path slot already means "the artifact to open", every other family fills it that way, and here such an artifact exists: theStatus: standarddocument that owns lifecycle notebook projection, backed by the promotedlifecycle-notebook-projectionspec, and carrying the runbook this finding's own action tells the reader to run.Spelled relative to the aggregation root because this finding's repo is
xFactory— matchingrunner.SYNC_SCRIPT(openxFactory/scripts/sync-notebooklm-books.py) and every otherrepo=xFactorypath in the reports (openxFactory,installs/agenttower,xFactories/codexFactory, …).No aggregation follow-up is required. A disposition matches
(family, repo, path); the aggregation checkout'shealth/dispositions.yamlcarries nonotebook-projection-driftentry at all — its eleven entries arelocation-conformance(5),record-immutability(3),semantic-contradiction,semantic-normative-prose,uncited-resolution. Nothing keys on the old label, so nothing moves with it, and no file in the xFactory aggregation repo was touched. The family is WARNING-only, so the key change cannot manufacture anuncited-resolutioneither.Every other construction site was checked, by AST over every
Finding(...)call inscripts/doc_health/andscripts/ideation_dashboard/(which builds none). One other literal is a synthetic label —(drafts), thestaged-candidate-agingdistribution row — and it is left alone: it carries no whitespace, so it round-trips today, and rewriting it would change a key and the bytes of a row for no defect.test_no_family_writes_a_whitespace_bearing_path_literalmakes that grep permanent, statically, because the family that DID violate the rule only emits whennlmis authenticated and an aggregation checkout is in scope — it renders no row in any fixture run, in the self-gate, or in CI, so no dynamic test could ever have caught it.It reads four spellings: inline literal, f-string literal parts,
NAME = "...", and — after the review —NAME: str = "..."(ast.AnnAssign), a gap that failed open: annotate the offending constant and the rule stops seeing it. It still cannot follow a constant moved to a sibling module, which no reader of one file can, so the check now also asserts a floor on how many literals it resolved (7 today) — going blind reds as a floor violation before it can pass over an empty list. The docstring says plainly that the runtime value pin intest_notebook_projection_driftis the real net for the path this change repaired.3.
parse_previousreports the rows it cannot readIt used to
continuepast every unmatched line — right for the ~200 prose lines of a report, catastrophic for a ranked-plan row. Both grammar defects found so far were found by reading the regex, not by running it.A line starting with
- severity=that matches no parser is now printed to stderr with its line number behind a fixed, greppable marker (the conventionideation_readiness.ROOT_FALLBACK_MARKERalready sets), andunparsed_plan_rows()returns the same list to a caller that wants it. The return shape is unchanged — still(keys, contested), still the same key sets for every row that parses — because six callers unpack it as a pair.Review fixes here too.
parse_previousre-implementedunparsed_plan_rows's predicate inline — two readers of one grammar that can disagree, which is the exact defect class this change exists to close; it now calls it. And the summary line reused the row marker, sogrep -cfor the row marker returned N+1 and the diagnostic misreported its own subject; the summary is now[ranked-plan] unparsed-row total, which is not a superstring of[ranked-plan] unparsed row.Run over the two live rejects —
grep -cnow gives 2 for the row marker and 1 for the total:which also surfaces #472's unfixable 2026-07-14 raw-quote row for the first time — the contested
semantic-contradictionfinding that vanished uncited on 07-15.No OpenSpec change
Canon permits the fix without a delta, on the reading #472's review confirmed: the
doc-health"Health report contract" requirement fixes the ranked plan's content ("a ready-to-stage work item stating severity, repo, path, and suggested action") and pins no lexical grammar for the row. What changes here is which string a family puts in the path slot, plus a defect repair in the implementation — not what the contract asks for.RED first
Tests written and run before the implementation:
(Test names for the three refusal cases have since gained an
_under_strictsuffix; the review round added five more, listed under Mutations.) The 2026-07-09 row is reproduced verbatim in the test file, byte-compared againsthealth/reports/2026-07-09.md:188— a hand-written approximation of a defect is not the defect — andtest_the_live_2026_07_09_row_is_the_defect_this_pinsasserts it really does match no parser, so the rest is pinning something.Byte-identity on the real tree
origin/mainadvanced to c79d6e5 (#465 clean-doc-health-floor) mid-review, which rewrotefam_location_conformance's staged-exit arm to read active change ids. The first measurement of this branch overlaid afamilies.pythat predated that and showed a phantom one-row diff; the branch has been merged up and everything below is re-measured against c79d6e5.Both codes run against the same
git archive origin/mainextraction, differing only inreport.pyandfamilies.py:doc-health.py --single-repo . --as-of 2026-08-28sha256d0697bb2d6fc6c9565c0f187205547997362a21e2ce7d33130415d84e169cf1aThe sanitizer touches nothing that exists today — zero tracked files across all twelve checkouts in the workspace has whitespace in its name.
The changed label does not appear in that render, and that is expected rather than luck:
--single-repoleavesagg_rootNone, sonotebook_dryrun()returns None and the family skips ("nlm unauthenticated or sync unavailable; family runs in operator-triggered runs only"). The label only reaches a report in an operator-triggered aggregation run with an authenticatednlm.Real worktree (65 rows),
--previous-reportround trip: 0 new regressions, 0 uncited resolutions,--new-findings-out=[], output identical to its input, stderr empty on both runs.Historical reports
Old parser vs new over all 27
health/reports/*.md:The two rejects are
2026-07-09.md:188(this issue) and2026-07-14.md:267(#472's raw-"row). The 07-09 row stays a reject — a historical artifact no forward-only repair can retroactively make readable — but it is now reported rather than silently skipped.Mutations
Seven, each run and each restored.
..._under_strictteststest_a_whitespace_path_from_the_corpus_still_renders_a_readable_row,test_the_nightly_still_gets_a_report_when_the_corpus_names_a_bad_path(lifecycle notebooks)test_notebook_projection_drift,test_no_family_writes_a_whitespace_bearing_path_literalparse_previous(N1)test_parse_previous_and_unparsed_plan_rows_are_one_ruletest_the_two_unparsed_markers_are_countable_apartast.AnnAssignsupport dropped (N3)test_the_whitespace_literal_check_reads_a_constant_in_the_path_slottest_no_family_writes_a_whitespace_bearing_path_literalon the floor, plus the self-testtest_an_unparsable_plan_row_is_reported_not_silently_skipped,test_reporting_an_unparsable_row_does_not_disturb_the_rows_that_parse— the other 2 in that group stay green on purpose: they pin the negative space (a clean report prints nothing; a per-family bullet is not judged as a ranked-plan row), which an absent feature also satisfiesGates
python3 -m pytest tests/doc-health -q→ 1296 passed, 7 warnings. Baseline 1278 measured in a clean worktree of c79d6e5 (+18 tests). No whole-tree pytest run.test_notebook_projection_drift→ passes, and now also pins the emittedFinding.pathvalue and that the row round-trips throughplan_line→PLAN_RE.python3 scripts/doc-health.py --single-repo .renders (65 rows, stderr empty);--previous-reportround trip → 0 new regressions, 0 uncited, output identical.OPENSPEC_TELEMETRY=0 openspec validate --all --strict→ 78 passed, 0 failed (77 + Four headers the sweep missed, and a remedy nobody could perform #465's change).git archive HEAD | tar -xinto a bare dir +git init) → 1281 passed, 9 skipped, 6 failed. The identical procedure onorigin/maingives exactly the same six (1263 passed) —test_derivation_reproduces_the_real_bootstrap_clusters, twotest_the_reconstructed_fixtures_are_the_history_they_claimparams,test_this_repository_resolves_the_main_half_of_the_ref_set,test_the_landed_index_pins_a_revision_this_repository_can_resolve,test_the_pin_counts_did_not_move_and_no_site_is_classified_twice— pre-existing artifacts of a synthetic single-commit history. Diff of the two failure sets is empty.Closes #474.
🤖 Generated with Claude Code