Repository navigation
Bring the doc-health family table current with every family's landed arms (#967) - #977
Conversation
…arms (refs #967) Every row of the FAMILY TABLE in docs/doc-health.md re-derived from scripts/doc_health/ and the promoted openspec/specs/doc-health/spec.md at 8015d45, arm by arm, rather than repairing row 3 alone. Ten rows changed, three are unchanged because they were already complete, and one currency line now records the commit the rows were measured at so the next sweep has a baseline. Row 3 was the filed defect: it summarised `ratified-provenance` by one arm ("Every `Ratified by:` resolves to an existing OpenSpec change") while the family carries FIVE — the count arm, the `Ratified by:` resolution arm, the record-citing `Ratified:` floor, the no-citation arm, and the subject arm over a `review/` record that records a ratification (#878) — plus the last pass landed by #939 that downgrades a dispositioned ARCHIVED record to `info` carrying its citation. Counted in fam_ratified_provenance at the sha above, where the code's own comment says "the five arms below". Also re-derived: row 1 (two distinct findings, not one), row 2 (the arm reads the HEADER; the prose half of the status-claim rule is document-lifecycle's, not this family's measurement), row 4 (the successor must RESOLVE; the two accepted `retired` header spellings), row 5 (the staged-material-cites-an- active-proposal arm, and the three archived-support arms stated separately), row 7 (the recorded-outcome exemption, and the per-repo `info` distribution), row 8 (the six-column shape and the resolvable adopted artifact — the "surviving near-duplicates" clause describes the promotion process and the neutrality-drift lane, not this family), row 10 (the `info` unreachable-remote arm), row 11 (it compares the declared `contract_ref:` pin, not file bytes), row 18 (the no-promoted-spec arm, and the RENAMED retirement rule). Rows 1-4 each name the lifecycle-scan-set scope the promoted requirement gives exactly those four families. UNCHANGED, and why: row 6 (`record-immutability` has one emitting arm and the row already names it with its one exception), row 9 (canon's *Tag hygiene enforced by reference* forbids this capability's artifacts from restating the grammar, and the row already points at its owner), row 12 (one arm, stated exactly). Vehicle: a plain documentation pull request, not an OpenSpec packet. The promoted `document-lifecycle` *Explicit delta rule*, scenario *Prose contradicts a promoted spec*, offers a disjunction whose second half is this act: "THEN the document MUST either carry an `xspec:supersedes` marker naming that requirement ..., or be corrected". Correcting a summary toward canon moves no promoted policy, so there is nothing for a change to propose; and this document's own boundary sentence — "Changes to check families, schema, severities, or thresholds are OpenSpec deltas to the `doc-health` capability here" — is satisfied, since no family, schema, severity or threshold moves. Precedent on this exact table: 2b49e53 (PR #471). Neither the count sentence nor the roster moves: len(FAMILIES) == 23 at the measured sha, which is what the section already says, and the table's knowingly-incomplete roster disclosure is untouched. Gates: python3 scripts/doc-health.py --single-repo . exit 0 before and after, finding set byte-identical (104 findings: 32 critical, 11 error, 47 warning, 14 info; canon share 40.2% both, 371859/925843 -> 372465/926449 words); python3 scripts/validate-sequenced-after.py . exit 0; python3 scripts/validate-scope-globs.py . exit 0. refs #967, refs #939, refs #945 Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis documentation-only PR refreshes the doc-health family table so its rows match every landed validation arm at a recorded origin/main commit, while preserving the existing roster and already-complete rows. The accompanying checks confirm no runtime finding changes and identify the unchanged pre-existing test failures. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 2 days and 22 hours by commenting @sourcery-ai review. Upgrade to get a review now.
|
Lane: openxfactory-1 (openXfactory-1) |
|
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.
🟡 Changes recommended
Clarify the backing-reference wording before approval.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Updates docs/doc-health.md to align the family table with landed validation behavior and record its measurement baseline.
Changes:
- Expands documented validation arms, severities, scopes, and exemptions.
- Records baseline commit
8015d45f. - Preserves the existing roster and unchanged rows.
File summaries
| File | Summary |
|---|---|
docs/doc-health.md |
Refreshes the family verification table. Nit (2 votes): Clarify backing-reference wording to match the implementation’s resolvability check. |
Review details
Suppressed comments (4)
docs/doc-health.md:51
- This says the retired arm validates a reason or decision record, but
fam_succession_integrityonly checks for aRetired:orReason:prefix. An emptyReason:line still passes, so the table overstates what the landed check verifies.
| 4 | Succession integrity | `superseded` docs carry a `Superseded by:` line that RESOLVES to the successor; `retired` docs carry a `Retired:` or `Reason:` line naming the reason or decision record — each an `error`. One of the four families that read the declared lifecycle scan set as well as the governed corpus |
docs/doc-health.md:55
- The checker treats a register row as malformed only when it has fewer than six cells (
fam_register_lifecycle_consistency,families.py:1281-1287); rows with extra cells are accepted. Describing this as keeping a six-column shape overstates the arm's behavior. Please sayat least six cells, or update the family to enforce exact arity.
| 8 | Register-lifecycle consistency | Every `DTN-` row of the candidate register keeps its six-column shape and carries a status from the documented alias set — each an `error` — and an `adopted` entry points at an artifact that resolves (`warning`) |
docs/doc-health.md:60
- The no-promoted-spec branch is reached only for
ADDEDandMODIFIEDwriters; theREMOVEDbranch runs first and silently skips a removal whose capability has no promoted spec. The unqualified wording here makes the four-arm summary claim coverage the implementation does not have; qualify this arm as applying to ADDED/MODIFIED deltas.
| 18 | Promotion fidelity | Every archived spec delta reached the promoted spec it was ratified to reach — the requirement title, every scenario stated under it, a ratified removal actually removed, and a target capability carrying a promoted spec to reach at all. The most recent archived delta is the authority, a later `RENAMED` writer legitimately retires the earlier title and is checked no further, and only a packet whose own `proposal.md` declares `draft` or a lower standing is exempt. Findings are `error`, classified `contested`, and reported against the archived delta's own path |
docs/doc-health.md:58
- The implementation emits a warning for any
contract_ref:that is not exactly equal to openxFactory HEAD (fam_contract_copy_drift,families.py:1459-1465); it does not determine whether the pin merely lags or is ahead/unrelated. Please describe this as a difference rather than a lag.
| 11 | Contract-copy drift | Each pinned consumer's `stack.yaml` `contract_ref:` against openxFactory's own HEAD — `warning` where the declared pin lags the canonical source. What it compares is the DECLARED PIN; the token-set comparison of the copies themselves is this family generalized, and it belongs to the neutrality-drift lane below |
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Brings in c521504 (Ratify amend-kill-switch-to-declared-test-companion, #974) — README.md and openspec/changes/... only; no touch to docs/doc-health.md, no conflict. refs #967 Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
One moderate documentation mismatch and four nit-level inaccuracies remain unresolved.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (4)
docs/doc-health.md:55
- This says the family enforces an exact six-column row, but
fam_register_lifecycle_consistencyonly reports the malformed-row arm whenlen(cells) < 6(scripts/doc_health/families.py:1281-1287); rows with extra cells are accepted. Since this table is documenting the landed arm, narrow the wording to "fewer than six columns" (or change the family separately to reject extras).
| 8 | Register-lifecycle consistency | Every `DTN-` row of the candidate register keeps its six-column shape and carries a status from the documented alias set — each an `error` — and an `adopted` entry points at an artifact that resolves (`warning`) |
docs/doc-health.md:49
- This overstates what the landed arm verifies.
fam_standard_backingcalls_resolveson any extracted path/URL (scripts/doc_health/families.py:124-138, 795-805); it does not check that the target is under a promoted spec or canonical contract. A standard document backed by an arbitrary existing file would pass this family, so either narrow the row to resolvability or add the missing target validation.
| 2 | Standard backing | Every `Status: standard` header carries a `Backed by:` line, in the lifecycle header, resolving to a promoted spec or canonical contract — `critical` where it does not. The deterministic arm reads the HEADER; the prose half of `document-lifecycle`'s status-claim rule is not what this family measures. One of the four families that read the declared lifecycle scan set as well as the governed corpus |
docs/doc-health.md:54
fam_staged_candidate_agingappends the draft-age distribution only insideif ages, so repositories with no draft documents receive noinfofinding. “Oneinfodraft-age distribution per repo” is therefore too broad; qualify it to repositories that have drafts.
| 7 | Staged/candidate aging | Staged topics, open candidate blocks, `xspec:supersedes` markers still without `change=`, and draft ages against the thresholds below, plus one `info` draft-age distribution per repo. A staged topic carrying a RECORDED OUTCOME does not age at all — its primary fragment `superseded` or `retired`, or an `Exit taken:` line in that fragment or in the repository's staging INDEX naming a change that has ARCHIVED; a citation of an ACTIVE change silences nothing, that topic's staged material being the move another family is already reporting |
docs/doc-health.md:60
- The no-promoted-spec branch is only reached for ADDED/MODIFIED writers; REMOVED writers are handled first and pass when the capability has no promoted spec (
promotion_fidelity.py:838-851). As written, “a target capability carrying a promoted spec to reach at all” reads as applying to every archived delta, so qualify this arm.
| 18 | Promotion fidelity | Every archived spec delta reached the promoted spec it was ratified to reach — the requirement title, every scenario stated under it, a ratified removal actually removed, and a target capability carrying a promoted spec to reach at all. The most recent archived delta is the authority, a later `RENAMED` writer legitimately retires the earlier title and is checked no further, and only a packet whose own `proposal.md` declares `draft` or a lower standing is exempt. Findings are `error`, classified `contested`, and reported against the archived delta's own path |
- Files reviewed: 1/1 changed files
- Comments generated: 2
- Review effort level: Lite
…refs #967) copilot-pull-request-reviewer's 2026-09-11T19:10:10Z review on PR #977 (commit 2a97616) opened one thread (docs/doc-health.md:49) and suppressed four more with the same-shaped complaint: a row's wording claims a stricter check than `scripts/doc_health/families.py` / `promotion_fidelity.py` (both byte-identical between 8015d45 and c56ae58 — re-verified by `git diff --stat` before editing, so the code reading below still holds) actually runs. Re-read each named function before touching its row; all five held up. Row 2, Standard backing (line 49, the open thread) — `fam_standard_backing` calls `_resolves()`, which returns True for any existing local path or ANY `http(s)` URL (external references "are not checked by this pass" per its own docstring) and never opens the target to confirm it IS a promoted spec or canonical contract. "resolving to a promoted spec or canonical contract" overstated the arm; reworded to say what resolves means and to disclaim the identity check it does not make. Row 4, Succession integrity (line 51) — two fixes in one row. The `superseded` arm shares the same `_resolves()` call, so it inherits the same caveat. The `retired` arm is `_header_line(doc, "Retired:") or _header_line(doc, "Reason:")`, and `_header_line` matches on `body.startswith(prefix)` alone — a bare `Reason:` line with nothing after the colon is still a non-empty, truthy string, so it still passes. "naming the reason or decision record" overstated a check that verifies presence of the prefix only. Row 8, Register-lifecycle consistency (line 55) — `fam_register_lifecycle_ consistency` flags a register row only `if len(cells) < 6`; a row with more than six cells is never flagged. "keeps its six-column shape" implied exact arity the code does not enforce; reworded to "at least six cells". Its `adopted`-artifact arm calls the same `_resolves()`, so it gets the same identity-check disclaimer as rows 2 and 4. Row 11, Contract-copy drift (line 58) — `fam_contract_copy_drift` finds on `m.group(1) != head`, a plain inequality with no direction test, and its own finding message already says "differs from", never "lags". "lags the canonical source" claimed a direction the check cannot tell; reworded to a direction-free "differs". Row 18, Promotion fidelity (line 60) — `fam_promotion_fidelity`'s `REMOVED` branch runs first and unconditionally `continue`s, so the no-promoted-spec finding (`if canon is None`) is only ever reached for an `ADDED`/`MODIFIED` writer; a `REMOVED` writer whose target capability has no promoted spec at all is silently skipped. The row's unqualified "a target capability carrying a promoted spec to reach at all" claimed coverage across all three ops; qualified to ADDED/MODIFIED, naming why REMOVED never reaches it. None of the five families' code, schema, severity or threshold moved — same vehicle decision as the original sweep (plain docs PR, no OpenSpec packet) still holds, and the arm counts recorded in PROGRESS-967.md (2, 2, 3, 1, 4 respectively) are unchanged by these wording-only edits. Gates on this head: python3 scripts/doc-health.py --single-repo . exit 0, finding set byte-identical before/after (32 critical, 11 error, 47 warning, 14 info; canon share 40.2% both, only the word-count numerator/denominator moved by the +100 words these rows added); python3 -m pytest tests/doc-health -q --tb=no exit 1, same 7 pre-existing failures as origin/main (test_ideation_ readiness x3, test_readiness_dispatch x1, test_sentinel_vocabulary x2, test_status_reader_real_lines x1), FAILED set byte-identical across before/ after/this-commit; python3 scripts/validate-sequenced-after.py . exit 0; python3 scripts/validate-scope-globs.py . exit 0. refs #967 Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…afts (refs #967) copilot-pull-request-reviewer's second review on PR #977, submitted 2026-09-11T20:19:16Z against commit cec6a01 (one commit behind this branch at the time — it predates the previous bench-fix commit 9d1dfee, which is why its other three findings restate issues that commit had already fixed; this is the one genuinely new finding in that review), suppressed a comment on docs/doc-health.md:54 (row 7, Staged/candidate aging): `fam_staged_candidate_aging` (scripts/doc_health/families.py:1166-1252, unchanged since 8015d45) only appends the `info` draft-age-distribution finding inside `if ages:` — a repo with zero `draft`-status documents has `ages == []`, which is falsy, so it gets no such finding at all. "one `info` draft-age distribution per repo" therefore overstated coverage; qualified to name the guard. Same disposition as the five rows in 9d1dfee: wording-only, no family code, schema, severity or threshold moved, so the plain-docs-PR vehicle still holds; the row's arm count (five) is unchanged. Gates on this head: python3 scripts/doc-health.py --single-repo . exit 0, finding set byte-identical to 9d1dfee's (32 critical, 11 error, 47 warning, 14 info; only the word-count numerator/denominator moved, +15 words); python3 scripts/validate-sequenced-after.py . exit 0; python3 scripts/validate-scope-globs.py . exit 0. refs #967 Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The family table still needs correction to match several implementation conditions and exceptions noted in review.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (5)
docs/doc-health.md:52
_active_support_findingsskips every Markdown path containingsource-snapshotsbefore it consults the manifest; it does not verify that the snapshot is listed or hash-matched. The row therefore overstates the guarantee by saying the manifest proves the exemption. Please describe this as a path-based exception, or change the implementation to require manifest proof.
| 5 | Location conformance | Lifecycle locations (a `brainstorm` doc outside `ideation/brainstorm/`; a `staged` doc outside `ideation/` that is not a candidate register); staged material that already cites an ACTIVE proposal, the move being the remedy; active proposal support without a valid `manifest.yaml`, carrying `staged` status below it (`source-snapshots/` excepted, those being byte-exact copies the manifest proves), or disagreeing with its manifest's per-file checksums; archived support missing its readable manifest or its bundle, failing the bundle checksum, or disagreeing with the member inventory the manifest records; and no historical bundle under `openspec/specs/`. Every arm `error` |
docs/doc-health.md:50
- The
Ratified by:arm has a documented single-repo exception that this row omits: whenopenxFactoryis not inctx.repo_paths,fam_ratified_provenanceaccepts a citation containingopenxFactoryas unverifiable cross-repo provenance (scripts/doc_health/families.py:904-907) instead of reporting the critical. Since this sweep says the row enumerates the landed arm, please state that this citation is checked only in a full aggregation run.
| 3 | Ratified provenance | Five arms across both sanctioned citation spellings, each `critical`: a `ratified` header carrying more than one citation line, counted as one total across the two spellings; a `Ratified by:` naming no existing active or archived change and resolving to no path; a record-citing `Ratified:` naming none of an approver, a date, or a resolvable record path; a `ratified` header carrying no citation in either spelling; and a `review/` record whose SUBJECT is a ratification while its status is not `ratified`. A LAST PASS then downgrades to `info`, quoting the citation, any finding whose family/repo/path carries a dated, cited entry in the aggregation's `health/dispositions.yaml` AND whose path is under `openspec/changes/archive/` — a downgrade rather than a suppression, because an archived record is beyond the plain repair every other arm asks for. One of the four families that read the declared lifecycle scan set as well as the governed corpus |
docs/doc-health.md:60
- The family also applies
health/dispositions.yamlbefore comparing canon: a cited entry can suppress either one requirement or every finding on the archived delta path (promotion_fidelity.py:813-835, covered bytest_promotion_fidelity.py:377-403). This row currently says every archived delta is checked but omits that landed exception, so the table is not fully current; please mention the cited-disposition suppression alongside the other resolution rules.
| 18 | Promotion fidelity | Every archived spec delta reached the promoted spec it was ratified to reach — the requirement title, every scenario stated under it, a ratified removal actually removed, and, for an `ADDED` or `MODIFIED` writer only (the `REMOVED` branch returns before this check and is never subject to it), a target capability carrying a promoted spec to reach at all. The most recent archived delta is the authority, a later `RENAMED` writer legitimately retires the earlier title and is checked no further, and only a packet whose own `proposal.md` declares `draft` or a lower standing is exempt. Findings are `error`, classified `contested`, and reported against the archived delta's own path |
docs/doc-health.md:58
- The family only matches 40-character lowercase hexadecimal
contract_refvalues (families.py:1459-1461), so a valid tag-form pin is silently ignored. The repository's pin validator accepts bothcommitandtagrefs (validate-domain-openxfactory-pins.py:98-107), but this row says every pinned consumer is checked; either narrow the row to commit-form refs or extend the family in a separate code change.
| 11 | Contract-copy drift | Each pinned consumer's `stack.yaml` `contract_ref:` against openxFactory's own HEAD — `warning` where the declared pin differs at all, a plain inequality that a lag, a lead, and an unrelated commit trip alike. What it compares is the DECLARED PIN; the token-set comparison of the copies themselves is this family generalized, and it belongs to the neutrality-drift lane below |
docs/doc-health.md:52
- This arm is not triggered by every citation in staged material:
_staged_exit_changes()only acceptsProposed by:,Proposal:,Exit:,Exits via:, or an explicit exit statement under an Exit heading, deliberately ignoring dependency/evidence citations. The unqualified “already cites an ACTIVE proposal” overstates the check; align it with the promoted “as its exit or proposal” wording.
| 5 | Location conformance | Lifecycle locations (a `brainstorm` doc outside `ideation/brainstorm/`; a `staged` doc outside `ideation/` that is not a candidate register); staged material that already cites an ACTIVE proposal, the move being the remedy; active proposal support without a valid `manifest.yaml`, carrying `staged` status below it (`source-snapshots/` excepted, those being byte-exact copies the manifest proves), or disagreeing with its manifest's per-file checksums; archived support missing its readable manifest or its bundle, failing the bundle checksum, or disagreeing with the member inventory the manifest records; and no historical bundle under `openspec/specs/`. Every arm `error` |
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
There was a problem hiding this comment.
🟢 Approval recommended
The only findings are minor documentation nits, and the single-file change is otherwise reviewed.
Review details
Suppressed comments (3)
Previously missed (1) — in code that hasn't changed since the last review.
docs/doc-health.md:52
- The staged-material arm does not flag an arbitrary mention of an active change:
_staged_exit_changesonly accepts explicit proposal/exit lines or a recognized exit section with an exit statement, intentionally ignoring dependency and evidence mentions. Please scope this clause to a document that names an ACTIVE proposal as its exit or proposal so the table matchesfam_location_conformance's landed behavior.
docs/doc-health.md:50
- The
Ratified by:arm has fallbacks that this clause omits: after no matching change id,_resolvesaccepts any existing local path or anyhttp(s)URL, and a domain-only run accepts a citation mentioningopenxFactorywhen that checkout is out of scope (families.py:894-907). Thus the row's dangling condition is narrower than the landed behavior; please qualify it with these resolution rules.
| 3 | Ratified provenance | Five arms across both sanctioned citation spellings, each `critical`: a `ratified` header carrying more than one citation line, counted as one total across the two spellings; a `Ratified by:` naming no existing active or archived change and resolving to no path; a record-citing `Ratified:` naming none of an approver, a date, or a resolvable record path; a `ratified` header carrying no citation in either spelling; and a `review/` record whose SUBJECT is a ratification while its status is not `ratified`. A LAST PASS then downgrades to `info`, quoting the citation, any finding whose family/repo/path carries a dated, cited entry in the aggregation's `health/dispositions.yaml` AND whose path is under `openspec/changes/archive/` — a downgrade rather than a suppression, because an archived record is beyond the plain repair every other arm asks for. One of the four families that read the declared lifecycle scan set as well as the governed corpus |
docs/doc-health.md:52
- The
source-snapshots/exception is path-based in this family: the loop skips those files before checking manifest entries (scripts/doc_health/families.py:698-718). This family therefore does not prove that a snapshot is covered by the manifest, so saying that “the manifest proves” the byte-exact copy overstates what this row verifies; describe it as a path-based evidence exemption or name the separate validator that performs that proof.
| 5 | Location conformance | Lifecycle locations (a `brainstorm` doc outside `ideation/brainstorm/`; a `staged` doc outside `ideation/` that is not a candidate register); staged material that already cites an ACTIVE proposal, the move being the remedy; active proposal support without a valid `manifest.yaml`, carrying `staged` status below it (`source-snapshots/` excepted, those being byte-exact copies the manifest proves), or disagreeing with its manifest's per-file checksums; archived support missing its readable manifest or its bundle, failing the bundle checksum, or disagreeing with the member inventory the manifest records; and no historical bundle under `openspec/specs/`. Every arm `error` |
- Files reviewed: 1/1 changed files
- Comments generated: 0 new
- Review effort level: Lite
…efs #967) copilot-pull-request-reviewer's third review on PR #977, submitted 2026-09-11T20:32:58Z against commit 9d1dfee (one commit behind this branch at the time — before the row-7 fix in bdffcab), opened one new thread (docs/doc-health.md:54, already dispositioned as fixed-before-this-review in a separate reply) and suppressed five more comments naming four rows this sweep and 9d1dfee had not yet reached. All four verified against the code (unchanged since 8015d45 throughout) before editing. Row 3, Ratified provenance (line 50) — `fam_ratified_provenance`'s `Ratified by:` arm has a documented exception the row omitted: `if not ok and "openxFactory" in body and "openxFactory" not in ctx.repo_paths: ok = True # cross-repo provenance; unverifiable in this scope, verified by full aggregation runs`. A single-repo run accepts an `openxFactory`-naming citation outright; only a full aggregation run verifies it. Added as a clause on the `Ratified by:` arm. Row 5, Location conformance (line 52) — two distinct gaps in one row. (1) `_staged_exit_changes()`'s own docstring requires a POSITIVE signal — one of the explicit prefixes `Proposed by:`/`Proposal:`/`Exit:`/`Exits via:`, or a stated exit inside a recognized Exit heading — never a bare dependency or evidence citation; "already cites an ACTIVE proposal" read as any citation, which is wider than what fires. (2) `_active_support_findings()`'s `source-snapshots/` skip is unconditional on PATH ALONE (`if "source-snapshots" in path.relative_to(support).parts: continue`) — it does not check that the file is listed in the manifest or hash-matches; "those being byte-exact copies the manifest proves" credited the exemption itself with a proof the code does not run there (a separate loop does checksum whatever the manifest's own file list names, which is a different set of files). Reworded both clauses to name what actually gates each arm. Row 11, Contract-copy drift (line 58, second gap) — `fam_contract_copy_drift` matches only `^\s*contract_ref:\s*([0-9a-f]{40})\s*$`; a tag-form `contract_ref:` never matches the regex at all, so `m` is `None` and the family silently never compares it. "Each pinned consumer's ... against openxFactory's own HEAD" read as covering every pinned consumer regardless of ref form. Qualified to commit-hex refs only. Row 18, Promotion fidelity (line 60, second gap) — `fam_promotion_fidelity` calls `disposed(dispositions, repo, writer.delta_rel, writer.title)` and `continue`s before any canon comparison when `(repo, path, None)` or `(repo, path, norm(title))` is in the cited `health/dispositions.yaml` entries (`load_dispositions`/`disposed`, promotion_fidelity.py:714-787) — suppressing either one requirement or every finding on that delta path outright, not merely reclassifying it `contested`. A `--single-repo` run has no aggregation root to read the file from, so no disposition applies there. The row named the `draft`-proposal exemption but not this one; added it alongside. None of the four families' code, schema, severity or threshold moved; the plain-docs-PR vehicle still holds. Gates on this head: python3 scripts/doc-health.py --single-repo . exit 0, finding set byte-identical to bdffcab's (32 critical, 11 error, 47 warning, 14 info; only the word-count numerator/denominator moved, +125 words); python3 scripts/validate-sequenced-after.py . exit 0; python3 scripts/validate-scope-globs.py . exit 0. refs #967 Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Disposition — row 8 (Register-lifecycle consistency, line 55), suppressed TAKE, in |
|
Disposition — row 18 (Promotion fidelity, line 60), two suppressed comments
|
|
Disposition — row 11 (Contract-copy drift, line 58), second suppressed
TAKE, in |
|
Disposition — row 3 (Ratified provenance, line 50), suppressed comment from
TAKE, in |
|
Disposition — row 5 (Location conformance, line 52), two suppressed comments
TAKE (both), in |
There was a problem hiding this comment.
🔵 Needs a closer look
Address the unresolved documentation clarifications identified in review.
Review details
Suppressed comments (4)
docs/doc-health.md:52
- This row chooses
ideation/as the allowed prefix, but the promoted doc-health scenario still says a staged document outsideideation/staging/is invalid (openspec/specs/doc-health/spec.md:135), while the implementation checksnot path.startswith("ideation/")(scripts/doc_health/families.py:996). Since this PR says the table is re-derived from both code and the promoted spec, please reconcile that contract/implementation mismatch or make the row's source/boundary explicit; as written, it cannot describe both.
| 5 | Location conformance | Lifecycle locations (a `brainstorm` doc outside `ideation/brainstorm/`; a `staged` doc outside `ideation/` that is not a candidate register); staged material whose own exit-statement line — one of `Proposed by:`, `Proposal:`, `Exit:`, `Exits via:`, or a stated exit inside a recognized Exit heading, never a bare dependency or evidence citation — names an ACTIVE proposal, the move being the remedy; active proposal support without a valid `manifest.yaml`, carrying `staged` status below it (`source-snapshots/` excepted BY PATH ALONE — not itself confirmed listed or hash-matched there, though a separate arm checksums whatever the manifest's own file list does name), or disagreeing with its manifest's per-file checksums; archived support missing its readable manifest or its bundle, failing the bundle checksum, or disagreeing with the member inventory the manifest records; and no historical bundle under `openspec/specs/`. Every arm `error` |
docs/doc-health.md:64
- This provenance note says every row is carried by the promoted spec, but the recorded-outcome exemption in row 7 is absent from
openspec/specs/doc-health/spec.md; it is defined only in the still-activeopenspec/changes/settle-aging-staging-topics/specs/doc-health/spec.md(for example, its lines 19-33). Please either qualify the note to include that active ratified change or avoid claiming this arm is already promoted.
**Rows re-derived at** `8015d45fdf68` (2026-09-11, issue #967). Every row above
states its family's arms as `scripts/doc_health/` and the promoted
[`doc-health` spec](../openspec/specs/doc-health/spec.md) carry them at that commit,
docs/doc-health.md:52
- The active-proposal citation arm is narrower than this wording:
fam_location_conformancecalls_staged_exit_changes()only whendoc.path.startswith("ideation/staging/")(scripts/doc_health/families.py:1004-1007). Staged documents elsewhere can trigger the placement arm, but their exit/proposal line is not evaluated by this arm; qualify “staged material” withideation/staging/so the table does not promise coverage the family does not provide.
| 5 | Location conformance | Lifecycle locations (a `brainstorm` doc outside `ideation/brainstorm/`; a `staged` doc outside `ideation/` that is not a candidate register); staged material whose own exit-statement line — one of `Proposed by:`, `Proposal:`, `Exit:`, `Exits via:`, or a stated exit inside a recognized Exit heading, never a bare dependency or evidence citation — names an ACTIVE proposal, the move being the remedy; active proposal support without a valid `manifest.yaml`, carrying `staged` status below it (`source-snapshots/` excepted BY PATH ALONE — not itself confirmed listed or hash-matched there, though a separate arm checksums whatever the manifest's own file list does name), or disagreeing with its manifest's per-file checksums; archived support missing its readable manifest or its bundle, failing the bundle checksum, or disagreeing with the member inventory the manifest records; and no historical bundle under `openspec/specs/`. Every arm `error` |
docs/doc-health.md:50
- The primary
Ratified by:arm also treats any existing local path or markdownhttp(s)URL as resolved through_resolves()(scripts/doc_health/families.py:894-907,_resolves()at 134-138), even when it is not an OpenSpec change. Saying only “resolving to no path” omits the trusted-URL case and does not fully describe what clears this arm; please state the local-path/URL behavior explicitly.
| 3 | Ratified provenance | Five arms across both sanctioned citation spellings, each `critical`: a `ratified` header carrying more than one citation line, counted as one total across the two spellings; a `Ratified by:` naming no existing active or archived change and resolving to no path — except a citation naming `openxFactory` itself, accepted outright as cross-repo provenance a run with no `openxFactory` checkout in scope (a single-repo run) cannot verify; a record-citing `Ratified:` naming none of an approver, a date, or a resolvable record path; a `ratified` header carrying no citation in either spelling; and a `review/` record whose SUBJECT is a ratification while its status is not `ratified`. A LAST PASS then downgrades to `info`, quoting the citation, any finding whose family/repo/path carries a dated, cited entry in the aggregation's `health/dispositions.yaml` AND whose path is under `openspec/changes/archive/` — a downgrade rather than a suppression, because an archived record is beyond the plain repair every other arm asks for. One of the four families that read the declared lifecycle scan set as well as the governed corpus |
- Files reviewed: 1/1 changed files
- Comments generated: 0 new
- Review effort level: Lite
#967) copilot-pull-request-reviewer's fifth review, submitted 2026-09-11T20:46:14Z against this branch's actual current head at the time (`4cdc515e`), found a real accuracy defect rather than a wording-precision nit: the currency note below the table claims "every row above states its family's arms as `scripts/doc_health/` AND the promoted `doc-health` spec carry them" — a conjunction — but row 7's RECORDED OUTCOME exemption (a staged topic whose primary fragment is `superseded`/`retired`, or carries an `Exit taken:` line naming an archived change, does not age) is not in `openspec/specs/doc-health/spec.md` at all. Verified directly: `grep -n "RECORDED OUTCOME|Exit taken:|recorded outcome" openspec/specs/doc-health/spec.md` returns nothing. The clause's only textual authority is `openspec/changes/settle-aging-staging-topics/specs/ doc-health/spec.md`'s `### Requirement: Aging threshold defaults` MODIFIED block — a change whose `proposal.md` carries `Status: ratified` (Brett approved it) but which sits under `openspec/changes/` still, not `openspec/changes/archive/`: ratified is a proposal-approval status, not promotion, and this delta has not been archived into the promoted spec. Row 7's own text is unaffected and stays correct — it describes what `fam_staged_candidate_aging`'s code does, which the code plainly does — this fixes only the blanket provenance claim in the note below the table, which overclaimed promoted-spec backing for that one clause. This closes out the bench round: five successive copilot-pull-request- reviewer passes (2a97616, cec6a01, 9d1dfee, bdffcab, 4cdc515) surfaced 12 distinct (row, issue) items across 6 rows plus this currency-note overclaim; all 12 were TAKE, verified against the code (and, for this one, the promoted spec) before editing. Three further suppressed items surfaced by review 4 (pinned to a stale `bdffcabd`) and review 5 (pinned to this commit's predecessor `4cdc515e`) are NOT fixed here and are dispositioned as REFUSE-for-now on the PR: a promoted-spec-vs-implementation `ideation/` vs `ideation/staging/` divergence on row 5 (out of scope for a table-wording sweep — the row already correctly describes the CODE, which is this family's stated job, and reconciling code against the promoted spec is a separate concern this plain-docs-PR vehicle has no authority to resolve), a row-5 path-scope refinement on the exit-citation arm, and a row-3 `_resolves()` fallback nuance repeated from the stale review — all three flagged for a follow-up sweep rather than a further round here, given the brief's own "bench <=25 min" guidance was already well exceeded (five review rounds between 19:10Z and 20:46Z). Gates on this head: python3 scripts/doc-health.py --single-repo . exit 0, finding set byte-identical throughout this entire bench round (32 critical, 11 error, 47 warning, 14 info; only the word-count numerator/denominator moved, +25 words this commit); python3 scripts/validate-sequenced-after.py . exit 0; python3 scripts/validate-scope-globs.py . exit 0. refs #967 Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Disposition — closing out the bench round. Five successive Three more suppressed comments came back on the last two passes (against
All three are accurate findings, not disputed on the merits. They are |
There was a problem hiding this comment.
🔵 Needs a closer look
Two moderate documentation accuracy issues remain unresolved.
Review details
Suppressed comments (2)
Previously missed (1) — in code that hasn't changed since the last review.
docs/doc-health.md:50
- The
Ratified:arm uses_resolves(), which accepts any existing local path and anyhttp(s)URL without checking that the target is a ratification record. A citation such asRatified: docs/unrelated.mdtherefore clears this arm even though the row says it requires a resolvable record path; please document the actual path/URL-on-trust behavior (or add the missing target validation).
docs/doc-health.md:54
- The
infodistribution is appended only whenagesis non-empty, andagesexcludes drafts whoselast_commit_dateis unavailable. A repository can therefore contain a draft yet emit no distribution (for example, an uncommitted draft), so this should either say “with at least one draft with a readable age” or the family should report the missing-age case.
| 7 | Staged/candidate aging | Staged topics, open candidate blocks, `xspec:supersedes` markers still without `change=`, and draft ages against the thresholds below, plus one `info` draft-age distribution per repo that carries at least one `draft` — a repo with none gets no such finding. A staged topic carrying a RECORDED OUTCOME does not age at all — its primary fragment `superseded` or `retired`, or an `Exit taken:` line in that fragment or in the repository's staging INDEX naming a change that has ARCHIVED; a citation of an ACTIVE change silences nothing, that topic's staged material being the move another family is already reporting |
- Files reviewed: 1/1 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
|
Lane: openxfactory-1 (openXfactory-1) FREEZE Head sha: Working tree clean, Commits on this branch since the merge-base with ( Bench outcome — five copilot-pull-request-reviewer passes (pinned in
Unresolved review threads: 0 (4 opened across all five passes, all
Required-check rollup: PENDING — every check is Gates on this head (
What I did NOT do: did not merge; did not post LANDING/LANDED; did not Nothing else is owed at this freeze. This lane authors only — Rule 6 landing |
|
Lane: openxfactory-1 (openXfactory-1) LANDING — lane openxfactory-1, session bc8479@Eagle, 2026-09-11T21:05:06Z, PR #977 into openxFactory main (doc-health family table current with every family's landed arms; #967 closes by the merge; "land each when green") Guard at 2026-09-11T21:05:06Z on head |
The only file main moved that this packet speaks about is `docs/doc-health.md`, rewritten by #977 — issue #967's own sweep. No conflict; the README `## OpenSpec Records` block auto-merged with main's rows and this packet's ACTIVE row both present. The promoted `openspec/specs/doc-health/spec.md` is byte-identical across the merge, so the sliced block's sha256 and every scenario line this packet cites still hold at `0805c3bb`. Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…966) That file now describes `health/dispositions.yaml` in THREE places, not one: the *Ratified provenance* row (line 50), the *Promotion fidelity* row (line 60) and the neutrality lane's *Dispositions keying* paragraph (line 352, moved from 341). All three describe a reading the named family's OWN requirement already declares, so the packet's reason for editing nothing there holds and is now stated on the measured text rather than on a single moved line. § 7.3 and the proposal's does-NOT-do list both carry it. Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
0805c3b This branch merged origin/main 0805c3b, whose only file change against the previous merge base is docs/doc-health.md -- PR #977 (docs/967-doc-health-family-table-currency, the act of #967) merged. Section 7.5 quoted family-table row 3 as still reading "Every `Ratified by:` resolves to an existing OpenSpec change", and that sentence no longer exists: #977 rewrote the row to spell out all five arms AND the grandfather downgrade. RE-READ AT THE MERGE THIS BRANCH NOW CARRIES rather than corrected from memory. Row 3 now ends at the downgrade -- "a downgrade rather than a suppression, because an archived record is beyond the plain repair every other arm asks for" -- and says nothing of this packet's second last pass, so the table is current for main and incomplete for this branch by exactly the one addition this packet makes. The point of 7.5 therefore stands and its evidence is replaced: the table's currency is #967's standing subject, this branch edits docs/doc-health.md not at all (the merge took #977's version whole), and a row for the stale pass is owed at RATIFICATION rather than at drafting, since D1 may yet re-author what that row would say. No conflict arose in the merge; the README "## OpenSpec Records" ACTIVE row for this packet is unmoved and no code-line citation moved. refs #965 Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…lth.md row 3 Copilot's review on PR #1015 (thread PRRT_kwDOTAvnrs6h0Z2m, openspec/specs/doc-health/spec.md:967) found that docs/doc-health.md's Ratified-provenance row still documented only the five arms plus the grandfather downgrade (as PR #977/0805c3bb left it) and omitted the sixth arm — the second-and-final grandfather-disposition pass this archive promotes into openspec/specs/doc-health/spec.md's "Governed corpus membership and the lifecycle scan set" requirement (scenario "A recorded disposition matches no finding", lines 965-973). This gap was already disclosed, not fixed, at tasks.md 7.5 of the archived packet: the ratification commit touched seven files and never reached docs/doc-health.md, and the archive act itself is scoped to openspec/ and README.md only. Row 3's cell now states the sixth arm verbatim to the promoted spec's own conditions: a `warning` finding against the dispositions file's own path (never the record it names) for any honoured entry whose (repository, path) names no finding the run raised, quoting its citation, NOT bounded to the archived-path boundary the downgrade uses, and excluding entries naming an out-of-scope repository or an entry the family would not honour to begin with. The currency note below the table gets one appended sentence (never editing the existing sentences) citing this PR for row 3's own further update, mirroring the note's existing per-row exception for row 7. Verified via `scripts/doc-health.py --single-repo .`: this branch and a control worktree pinned at origin/main 86135ed (this PR's own merge base, before this commit) report IDENTICAL finding counts — 31 critical, 5 error, 23 warning, 19 info, 78 total, 0 regressions, both sides. The only headline deltas are the "standard" stage word count (+187, this edit's own prose) and the "(promoted specs)" count (+444, already explained — this PR's own report-stale-grandfather-dispositions promotion, landed on this branch since 25a2afa and not yet on main). No other line differs between the two reports. refs #965 Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>



Lane: openxfactory-1 (openXfactory-1)
A documentation sweep of the FAMILY TABLE in
docs/doc-health.md: every row re-derived from its family's arms as landed onorigin/main, not row 3 alone. Ten rows changed, three are unchanged because they were already complete, and one currency line records the commit the rows were measured at so the next sweep has a baseline.Measured at
8015d45fdf68b7bf60abb79dd152585d1a4330fd(origin/mainwhen this branch was cut), fromscripts/doc_health/and the promotedopenspec/specs/doc-health/spec.md. Every count below is my own, taken at that commit; none is copied from the issue.The vehicle: a plain documentation PR, not an OpenSpec packet
Decided first, before any edit. The promoted
document-lifecycleExplicit delta rule, scenario Prose contradicts a promoted spec, states the disjunction this act takes the second half of — quoted verbatim fromopenspec/specs/document-lifecycle/spec.md:Correcting a summary toward canon moves no promoted policy, so there is nothing for a change to propose. The same requirement's closing sentence — "Accidental restatement of promoted policy in differing words SHALL be treated as a defect" — is what this sweep removes rather than creates: every clause written here is derived from the code and the promoted spec at a named sha.
Second sentence, from the edited document's own § Ownership:
No family, no schema, no severity and no threshold moves — every arm named here is already landed — so the document's own boundary sentence is satisfied.
Two measurements support the reading, rather than resting on it:
grep -rn "docs/doc-health" scripts/ tests/ --include='*.py'returns exactly one hit, a docstring mention inscripts/doc_health/__init__.py. Thefamily-enumerationfamily polices the promoted SPEC's enumeration againstfamilies.FAMILIES, never this table.2b49e536(2026-08-28, PR Housekeeping: doc-health.md counts twenty-two families; stale validate-docs.sh comment reattributed; 021 artifacts carry the #444 superseded-note #471, "Housekeeping: doc-health.md counts twenty-two families …") brought this same section's count and disclosure prose current as a plain docs PR with no packet.The roster and the count sentence do not move:
len(doc_health.families.FAMILIES)== 23 at the measured sha, which is what the section already says, and the knowingly-incomplete-roster disclosure above the table is untouched. Repairing the roster still belongs to a change that owns families 13–17 and 19–23.Per-row verdict
Status:header from the controlled taxonomy"Status: standardwithout a resolvableBacked by:→critical)standardclaim (header or prose) …"document-lifecycle's status-claim rule and not this family's measurement, plus the scan-set scopeRatified by:resolves to an existing OpenSpec change")critical, plus the#939/#945grandfather pass that downgrades a dispositioned ARCHIVED record toinfowith its citation quoted; plus the scan-set scopesupersededwithout a RESOLVABLE successor;retiredwithoutRetired:/Reason:)retiredheader spellings named, severity given, plus the scan-set scopesource-snapshots/exceptionrecorddoc changed after capture, link-only diffs excepted)supersedeswithoutchange=, draft ≥ 60d, per-repoinfodistribution) + the recorded-outcome exemptioninfoitem unnamedinfodistribution and thesettle-aging-staging-topicsexemption (primary fragmentsuperseded/retired, orExit taken:naming an ARCHIVED change; an ACTIVE change silences nothing)adoptedwhose artifact does not resolve)adoptedentries have no surviving near-duplicates"_resolveson the artifact cell is what the code checks, and near-duplicate detection lives in theneutrality-driftlane (scripts/doc_health/neutrality.py) and the promotion processdocument-lifecyclewarning; remote unreadable →info)stack.yamlcontract_ref:≠ openxFactory HEAD →warning)warning)RENAMEDwriter retires the earlier title and is checked no furtherSkip behaviour is deliberately not added to any row: the paragraph above the table already carries it for every family ("A family that cannot run is reported as skipped, never silently omitted"), and restating it thirteen times is the drift class this sweep exists to remove. The
infoarm in row 10 is an emitted finding, not a skip.Gates
Run in a fresh clone at
2a976160:python3 scripts/doc-health.py --single-repo .(before, at8015d45f)python3 scripts/doc-health.py --single-repo .(after)diffof the finding lines before vs after: identicalpython3 -m pytest tests/doc-health -q(before, untouched clone)python3 -m pytest tests/doc-health -q(after)python3 scripts/validate-sequenced-after.py .python3 scripts/validate-scope-globs.py .Disclosed: the seven
tests/doc-healthfailures are pre-existing onorigin/mainand unrelated to this branch — measured on the untouched clone before any edit:test_ideation_readiness.py(3),test_readiness_dispatch.py(1),test_sentinel_vocabulary.py(2),test_status_reader_real_lines.py(1). This PR changes one Markdown file and no code.The canon-share word counts move by +606 in both the numerator and the denominator because
docs/doc-health.mdisStatus: standardand therefore counts as canon; the ratio is unmoved at 40.2%.Closes #967
refs #939, refs #945
🤖 Generated with Claude Code
Summary by Sourcery
Update the doc-health family table to accurately reflect all landed family checks and document the measurement baseline for future refreshes.
Enhancements:
Documentation: