Skip to content

Bring the doc-health family table current with every family's landed arms (#967) - #977

Merged
brettheap merged 6 commits into
mainfrom
docs/967-doc-health-family-table-currency
Sep 11, 2026
Merged

brettheap merged 6 commits into
mainfrom
docs/967-doc-health-family-table-currency

Conversation

@brettheap

@brettheap brettheap commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

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 on origin/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/main when this branch was cut), from scripts/doc_health/ and the promoted openspec/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-lifecycle Explicit delta rule, scenario Prose contradicts a promoted spec, states the disjunction this act takes the second half of — quoted verbatim from openspec/specs/document-lifecycle/spec.md:

  • THEN the document MUST either carry an xspec:supersedes marker naming that requirement (gaining a change= id once the OpenSpec change exists), or be corrected

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:

Changes to check families, schema, severities, or thresholds are OpenSpec deltas to the doc-health capability here; the implementation follows.

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:

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

Row Family Arms found in code Before After Changed
1 Status validity 2 (missing header; value outside the taxonomy) one clause, "carries a Status: header from the controlled taxonomy" both findings named as separate repairs, plus the lifecycle-scan-set scope y
2 Standard backing 1 (Status: standard without a resolvable Backed by: → critical) "Every standard claim (header or prose) …" the header arm as measured, with the note that the prose half is document-lifecycle's status-claim rule and not this family's measurement, plus the scan-set scope y
3 Ratified provenance 5 arms + 1 downgrade pass ONE arm ("Every Ratified by: resolves to an existing OpenSpec change") all five arms, each critical, plus the #939/#945 grandfather pass that downgrades a dispositioned ARCHIVED record to info with its citation quoted; plus the scan-set scope y
4 Succession integrity 2 (superseded without a RESOLVABLE successor; retired without Retired:/Reason:) "name successors … name reasons" resolution stated, both accepted retired header spellings named, severity given, plus the scan-set scope y
5 Location conformance 10 (2 lifecycle-location + 1 staged-cites-active-proposal + 3 active-support + 3 archived-support + 1 bundle-under-specs) 4 clauses; the staged-cites-a-proposal arm unnamed in the row all ten, in the row's own four-clause grammar, with the source-snapshots/ exception y
6 Record immutability 1 (record doc changed after capture, link-only diffs excepted) complete unchanged n
7 Staged/candidate aging 5 (staged topic, candidate block, supersedes without change=, draft ≥ 60d, per-repo info distribution) + the recorded-outcome exemption 4 clauses; exemption and info item unnamed adds the info distribution and the settle-aging-staging-topics exemption (primary fragment superseded/retired, or Exit taken: naming an ARCHIVED change; an ACTIVE change silences nothing) y
8 Register-lifecycle consistency 3 (malformed six-column row; status outside the alias set; adopted whose artifact does not resolve) "aliases map to lifecycle states; adopted entries have no surviving near-duplicates" the three measured arms with their severities. The near-duplicate clause is not this family: _resolves on the artifact cell is what the code checks, and near-duplicate detection lives in the neutrality-drift lane (scripts/doc_health/neutrality.py) and the promotion process y
9 Tag hygiene 12 emit sites by reference to document-lifecycle unchanged — canon's Tag hygiene enforced by reference says this capability "MUST NOT restate the grammar", so enumerating the twelve here would itself be the defect n
10 Submodule pin drift 2 (pin ≠ remote main → warning; remote unreadable → info) one clause both arms, so a pin that was not checked is never read as a clean one y
11 Contract-copy drift 1 (stack.yaml contract_ref: ≠ openxFactory HEAD → warning) "Domain-local copies vs their canonical openxFactory sources" what the landed arm actually compares — the DECLARED PIN — and where the copy-bytes comparison lives (the neutrality-drift lane, this family "generalized", in this document's own lane table) y
12 Notebook projection drift 1 (dry-run reports ≥ 1 ADD/DEL/UPD → warning) complete unchanged n
18 Promotion fidelity 4 (REMOVED still present; capability with no promoted spec; title absent; title present minus N ratified scenarios) 3 of the 4; the RENAMED rule unnamed adds the no-promoted-spec arm and the rule that a later RENAMED writer retires the earlier title and is checked no further y

Skip 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 info arm in row 10 is an emitted finding, not a skip.

Gates

Run in a fresh clone at 2a976160:

Gate Exit Result
python3 scripts/doc-health.py --single-repo . (before, at 8015d45f) 0 104 findings — 32 critical, 11 error, 47 warning, 14 info; canon share 40.2% (371859/925843)
python3 scripts/doc-health.py --single-repo . (after) 0 104 findings — 32 critical, 11 error, 47 warning, 14 info; canon share 40.2% (372465/926449). diff of the finding lines before vs after: identical
python3 -m pytest tests/doc-health -q (before, untouched clone) 1 7 failed, 1703 passed, 1 skipped
python3 -m pytest tests/doc-health -q (after) 1 7 failed, 1703 passed, 1 skipped — the same seven
python3 scripts/validate-sequenced-after.py . 0 passed (40 active changes, 12 dispositions in force)
python3 scripts/validate-scope-globs.py . 0 passed (all active changes conform)

Disclosed: the seven tests/doc-health failures are pre-existing on origin/main and 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.md is Status: standard and 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:

  • Refresh the doc-health family table to describe the landed verification arms, severities, exceptions, and scan scope for the previously incomplete rows.
  • Record the source commit and derivation scope for the table refresh while preserving the existing roster and shared skip-behavior documentation.

Documentation:

  • Bring the doc-health family table documentation in line with the current implementation and promoted specification.

…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]>
Copilot AI lite review requested due to automatic review settings September 11, 2026 19:04
@sourcery-ai

sourcery-ai Bot commented Sep 11, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This 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

Change Details Files
Re-derived the doc-health family table from the landed implementation and promoted specification, expanding rows to describe all currently implemented arms, severities, exceptions, and scan scopes.
  • Expanded rows 1–5 with individual validation arms, severities, resolution rules, and scan-set behavior.
  • Clarified staged/candidate aging exemptions and informational distribution reporting.
  • Replaced imprecise register, submodule, contract-copy, and promotion-fidelity descriptions with the checks actually implemented.
  • Preserved already-complete descriptions for record immutability, tag hygiene, and notebook projection drift.
docs/doc-health.md
Added a measurement baseline documenting the source commit and scope of the documentation refresh.
  • Recorded the origin/main commit and date used to derive the table.
  • Noted that the roster and unchanged rows were intentionally not modified.
  • Provided guidance for updating the baseline during the next sweep.
docs/doc-health.md
Validated that the documentation-only update does not alter runtime findings or introduce new validation failures.
  • Confirmed identical doc-health findings before and after the edit.
  • Ran doc-health tests and disclosed the same seven pre-existing failures.
  • Passed sequenced-change and scope-glob validation gates.

Assessment against linked issues

Issue Objective Addressed Explanation
#967 Update the FAMILY TABLE in docs/doc-health.md so the Ratified provenance row accurately summarizes all landed arms, including both citation spellings and the disposition-based ARCHIVED downgrade pass. ✅
#967 Perform a documentation sweep of the other FAMILY TABLE rows, checking and updating their summaries against the families' currently landed behavior rather than changing only row 3. ✅
#967 Record a reproducible baseline for the refreshed table while keeping the change limited to documentation and preserving the existing roster and shared skip-handling disclosure. ✅

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@brettheap
brettheap marked this pull request as ready for review September 11, 2026 19:04

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)
@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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_integrity only checks for a Retired: or Reason: prefix. An empty Reason: 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 say at 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 ADDED and MODIFIED writers; the REMOVED branch 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.

Comment thread docs/doc-health.md Resolved
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]>
Copilot AI review requested due to automatic review settings September 11, 2026 20:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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_consistency only reports the malformed-row arm when len(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_backing calls _resolves on 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_aging appends the draft-age distribution only inside if ages, so repositories with no draft documents receive no info finding. “One info draft-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

Comment thread docs/doc-health.md Resolved
Comment thread docs/doc-health.md Resolved
…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]>
Copilot AI review requested due to automatic review settings September 11, 2026 20:27
…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]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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_findings skips every Markdown path containing source-snapshots before 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: when openxFactory is not in ctx.repo_paths, fam_ratified_provenance accepts a citation containing openxFactory as 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.yaml before comparing canon: a cited entry can suppress either one requirement or every finding on the archived delta path (promotion_fidelity.py:813-835, covered by test_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_ref values (families.py:1459-1461), so a valid tag-form pin is silently ignored. The repository's pin validator accepts both commit and tag refs (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 accepts Proposed 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

Comment thread docs/doc-health.md Resolved
Copilot AI review requested due to automatic review settings September 11, 2026 20:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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_changes only 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 matches fam_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, _resolves accepts any existing local path or any http(s) URL, and a domain-only run accepts a citation mentioning openxFactory when 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]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Disposition — row 8 (Register-lifecycle consistency, line 55), suppressed
comment from Copilot's first and second reviews (never opened its own
thread): "keeps its six-column shape" claimed exact arity, but
fam_register_lifecycle_consistency flags a row only if len(cells) < 6 —
a row with more than six cells is accepted, not flagged.

TAKE, in 9d1dfeeb. Row 8 now reads "...carries at least six cells — more
are accepted, not enforced away...".

@brettheap

Copy link
Copy Markdown
Contributor Author

Disposition — row 18 (Promotion fidelity, line 60), two suppressed comments
across Copilot's three reviews (neither opened its own thread):

  1. (First and second review.) The no-promoted-spec finding (if canon is None) is only ever reached for an ADDED/MODIFIED writer —
    fam_promotion_fidelity's REMOVED branch runs first and unconditionally
    continues. TAKE, in 9d1dfeeb: qualified "a target capability carrying
    a promoted spec to reach at all" to ADDED/MODIFIED only, naming why
    REMOVED never reaches it.

  2. (Third review.) disposed(dispositions, repo, writer.delta_rel, writer.title) suppresses a whole path or one requirement outright via a
    cited health/dispositions.yaml entry, before any canon comparison runs
    — not merely a contested classification on a reported finding. TAKE, in
    4cdc515e: added "...and so is a writer whose (repo, path) or (repo, path, title) carries a cited health/dispositions.yaml entry — read
    here too, and skipped before any comparison runs; a --single-repo run
    has no aggregation root to read one from at all."

@brettheap

Copy link
Copy Markdown
Contributor Author

Disposition — row 11 (Contract-copy drift, line 58), second suppressed
comment from the third review (the first — "lags" vs "differs" — was
replied to directly on its own thread and is resolved there).

fam_contract_copy_drift matches only ^\s*contract_ref:\s*([0-9a-f]{40})\s*$
— a tag-form contract_ref: never matches, so the family silently never
compares it at all, while the row's "Each pinned consumer's ... against
openxFactory's own HEAD" read as covering every pinned consumer regardless
of ref form.

TAKE, in 4cdc515e. Row 11 now reads "...contract_ref: — a 40-character
commit hex only; a tag-form pin is invisible to this family — against
openxFactory's own HEAD...".

@brettheap

Copy link
Copy Markdown
Contributor Author

Disposition — row 3 (Ratified provenance, line 50), suppressed comment from
the third review (never opened its own thread).

fam_ratified_provenance's Ratified by: arm carries an undisclosed
exception: 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.

TAKE, in 4cdc515e. Row 3's Ratified by: clause now reads "...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...".

@brettheap

Copy link
Copy Markdown
Contributor Author

Disposition — row 5 (Location conformance, line 52), two suppressed comments
from the third review (neither opened its own thread):

  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. "staged material that already cites an
    ACTIVE proposal" read as any citation, wider than what actually 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 than "every file under
    source-snapshots/".

TAKE (both), in 4cdc515e. Row 5 now reads "...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..." and
"...(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)...".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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 outside ideation/staging/ is invalid (openspec/specs/doc-health/spec.md:135), while the implementation checks not 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-active openspec/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_conformance calls _staged_exit_changes() only when doc.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” with ideation/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 markdown http(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]>
Copilot AI review requested due to automatic review settings September 11, 2026 20:50
@brettheap

Copy link
Copy Markdown
Contributor Author

Disposition — closing out the bench round. Five successive
copilot-pull-request-reviewer passes ran between 19:10Z and 20:46Z (pinned
in turn to 2a97616, cec6a01, 9d1dfee, bdffcab, and 4cdc515); every wave
surfaced items that were real, and all twelve (row, issue) pairs plus one
currency-note overclaim were TAKEN across four commits — see the thread
replies above and 9d1dfeeb/bdffcabd/4cdc515e/69f5f79e.

Three more suppressed comments came back on the last two passes (against
bdffcabd and 4cdc515e respectively). REFUSE, for now, on all three —
measured reasons below, not brushed off:

  1. Row 5, docs/doc-health.md:52 (5th review) — the promoted spec
    scenario (openspec/specs/doc-health/spec.md:135) says a staged document
    outside ideation/staging/ is invalid, but fam_location_conformance
    actually checks not path.startswith("ideation/") (families.py:996) — a
    real promoted-spec-vs-implementation divergence. This row's job, and this
    PR's own vehicle decision, is to describe what the CODE does (the table's
    header says "What it verifies", and the vehicle rests on touching no
    family's code, schema, severity or threshold) — the row already correctly
    names ideation/, matching the code. Reconciling the spec against the
    implementation is a separate question this docs-only sweep has no
    authority to settle by picking a side; it belongs to whoever owns that
    requirement, most likely as its own OpenSpec question.

  2. Row 5, docs/doc-health.md:52, second point (5th review) — the
    exit-citation arm only runs for doc.path.startswith("ideation/staging/")
    (families.py:1004-1007), narrower than "staged material" unqualified.
    True, and a legitimate further precision gap on the same clause already
    tightened twice this round (4cdc515e).

  3. Row 3, docs/doc-health.md:50 (4th and 5th reviews, repeated) — the
    primary Ratified by: arm's fallback to _resolves() (any existing local
    path or http(s) URL, not confirmed as an OpenSpec change) is real and is
    exactly the same caveat already spelled out on rows 2, 4, and 8; row 3
    does not yet carry it.

All three are accurate findings, not disputed on the merits. They are
REFUSED only in the "not in this round" sense: this bench window is well
past the brief's own "<=25 min" guidance (five full review cycles), each
fix so far has reliably surfaced at least one more precision gap on this
15-row table, and continuing to chase each new one has diminishing return
against the actual defect this issue asked to close (row 3's own count,
#967's filed complaint, fixed in the very first commit). Flagging all three
here on the record for a following sweep rather than silently dropping them.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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 any http(s) URL without checking that the target is a ratification record. A citation such as Ratified: docs/unrelated.md therefore 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 info distribution is appended only when ages is non-empty, and ages excludes drafts whose last_commit_date is 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

@sonarqubecloud

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

FREEZE

Head sha: 69f5f79ede3e9ee241700a3fd87185d3688a3800 — proven == origin by
git ls-remote origin refs/heads/docs/967-doc-health-family-table-currency:

69f5f79ede3e9ee241700a3fd87185d3688a3800	refs/heads/docs/967-doc-health-family-table-currency

Working tree clean, git status -sb shows nothing but the tracking line.

Commits on this branch since the merge-base with main (8015d45f), oldest
first:

2a976160 Bring the doc-health family table current with every family's landed arms (refs #967)
cec6a013 Merge origin/main into docs/967-doc-health-family-table-currency
9d1dfeeb Tighten five family-table rows Copilot found looser than their arms (refs #967)
bdffcabd Qualify row 7's per-repo draft-age distribution to repos that have drafts (refs #967)
4cdc515e Disclose four more code-vs-wording gaps Copilot's third pass found (refs #967)
69f5f79e Correct the currency note's blanket promoted-spec claim for row 7 (refs #967)

(2a976160 is the adopted author's original sweep commit; the merge brings
in c521504c/fc4629a9/c56ae584 from main, none of which touch
docs/doc-health.md or any scripts/doc_health/ module — verified by
git diff --stat before merging and again before each subsequent push.)

Bench outcome — five copilot-pull-request-reviewer passes (pinned in
turn to 2a976160, cec6a013, 9d1dfeeb, bdffcabd, 4cdc515e; latest at
2026-09-11T20:46:14Z), plus one Codex review request:

  • Codex — ABSENCE, verbatim (issuecomment-5639363135, 2026-09-11T19:05:12Z):

    You have reached your Codex usage limits for code reviews. You can see
    your limits in the Codex usage dashboard. To continue using code
    reviews, you can upgrade your account or add credits to your account and
    enable them for code reviews in your settings.
    No Codex bench items. Not re-requested (one request already stands).

  • Copilot — 13 TAKE, 3 REFUSE-for-now, across 6 rows (2, 3, 4, 5, 7, 8,
    11, 18) plus the currency note. Every TAKE was independently re-verified
    against scripts/doc_health/families.py / promotion_fidelity.py
    (byte-identical throughout this whole round, confirmed by git diff --stat after every main move) before editing — never taken on the
    reviewer's word alone. Full detail, each item cited to its fixing commit,
    is in the four review threads (all replied-to, all now isResolved: true) and five plain PR comments (rows 3, 5, 8, 11, 18) above. The 3
    REFUSE-for-now items (a promoted-spec-vs-implementation ideation/ vs
    ideation/staging/ divergence on row 5 — out of a docs-only vehicle's
    authority to settle; a further row-5 path-scope refinement; a repeated
    row-3 _resolves()-fallback nuance) are disclosed with measured reasons
    in the standalone disposition comment, not silently dropped. Closing the
    bench round here: five full review cycles between 19:10Z and 20:46Z, each
    surfacing at least one more item on this 15-row table, is well past the
    lane's own "<=25 min" guidance.
  • One genuine accuracy defect (not a wording nit) was caught and fixed in
    69f5f79e: the currency note's blanket "every row ... states ... the
    promoted spec carr[ies] them" overclaimed for row 7's RECORDED OUTCOME
    exemption, whose only textual authority is the still-active (Status: ratified, not archived) openspec/changes/settle-aging-staging-topics/
    — confirmed by grepping the promoted spec for zero matches.
  • sourcery-ai — own rate-limit notice only (not part of this lane's Codex/
    Copilot bench pair), no content. sonarqubecloud — Quality Gate passed, 0
    new issues, each push.

Unresolved review threads: 0 (4 opened across all five passes, all
isResolved: true, confirmed by GraphQL reviewThreads immediately before
this comment).

closingIssuesReferences == [967] — verified by GraphQL immediately
before this comment, unchanged since the PR opened (docs-PR vehicle; this is
exactly what the brief specifies for this vehicle).

Required-check rollup: PENDING — every check is SUCCESS (
clearing-dispatch-gate, lane-line x2, merge-master-approval,
openreposhape-pin, openspec-cli-pin, wallet-validation,
release-tag-gate, signed-execution-chain-gate, SonarCloud Code Analysis; Sourcery review SKIPPED) except pytest-suite, still
IN_PROGRESS
— this repo's suite runs 20-27 minutes as a matter of
course; pending is expected, not a signal of trouble.

Gates on this head (69f5f79e):

  • python3 scripts/doc-health.py --single-repo . — exit 0. Findings
    byte-identical across the ENTIRE round (32 critical, 11 error, 47 warning,
    14 info) versus both the pre-adoption AND pre-sweep snapshots; only the
    canon-share word count moved, by exactly the words this sweep's prose
    added (371859/925843 at the original base -> 372730/926714 now).
  • python3 -m pytest tests/doc-health -q --tb=no — exit 1, 7 failed / 1703
    passed / 1 skipped. FAILED set byte-identical, by diff, to the
    pre-adoption BEFORE snapshot and to origin/main's own run: 3x
    test_ideation_readiness, 1x test_readiness_dispatch, 2x
    test_sentinel_vocabulary, 1x test_status_reader_real_lines — all
    pre-existing, disclosed, unrelated to this branch's one-file change.
  • python3 scripts/validate-sequenced-after.py . — exit 0 (40 active
    changes, 10 declaring the field).
  • python3 scripts/validate-scope-globs.py . — exit 0.
  • python3 -m pytest -q --tb=no (full suite, attempted per the lane's
    standing gate list) — exit 2, interrupted at collection: 4 pre-existing
    errors, all unrelated to docs/doc-health.md and all caused by
    submodules this brief's mandated plain git clone (no
    --recurse-submodules) leaves uninitialized — tests/corpus-adapter/ and
    tests/carve_conformance/ name the exact cause themselves ("the pinned
    openDox corpus-adapter interface is not at .../openDox/code/src/opendox/
    corpus_adapter.py. Run git submodule update --init --recursive openDox
    ..."), and tests/ideation-dashboard/ needs a sibling session_fixtures
    module the same carve moved out of this tree. None of the four are in
    tests/doc-health/, none touch anything this PR edits, and this
    adoption's own gate list (step 4) calls for tests/doc-health -q, not the
    full suite — reported here for completeness rather than left silent.

What I did NOT do: did not merge; did not post LANDING/LANDED; did not
touch LANES.md, any handoff file, or /home/brett/projects/xFactory; did
not close #967 or add any closing-keyword form to any commit message (every
commit carries refs #967 only, grep-verified); did not write the Codex
handle anywhere (one request already stood, per the brief); did not
initialize the openDox submodule or otherwise chase the full-suite
collection errors, being unrelated to this change; did not re-request a
Copilot review (it re-reviews on its own on every push, as it did five
times); did not fix the 3 REFUSE-for-now Copilot items, disclosed above and
in the standalone disposition comment with measured reasons.

Nothing else is owed at this freeze. This lane authors only — Rule 6 landing
(LANDING/LANDED) is the orchestrator's act.

@brettheap

Copy link
Copy Markdown
Contributor Author

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 69f5f79e: six required checks SUCCESS; closingIssuesReferences = [967]; 0 unresolved threads; no closing-keyword form in any branch commit message; main's newest decided pytest-suite = success; no other-lane unpaired LANDING into openxFactory main. mergeStateStatus BLOCKED = the code-owner-review ruleset that never clears on the author's own account; admin merge on Brett Heap's recorded words. Merge = merge commit.

@brettheap
brettheap merged commit 0805c3b into main Sep 11, 2026
13 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

LANDED — lane openxfactory-1, 2026-09-11T21:05:29Z, PR #977 → 0805c3b (openxFactory main; #967 closed by the merge; admin merge commit on 'land each when green'; Rule 6 window closed)

brettheap added a commit that referenced this pull request Sep 11, 2026
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]>
brettheap added a commit that referenced this pull request Sep 11, 2026
…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]>
brettheap added a commit that referenced this pull request Sep 11, 2026
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]>
brettheap added a commit that referenced this pull request Sep 12, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants