Skip to content

Propose report-stale-grandfather-dispositions: report a stale grandfather disposition in ratified-provenance (#965) - #981

Merged
brettheap merged 26 commits into
mainfrom
change/report-stale-grandfather-dispositions
Sep 12, 2026
Merged

brettheap merged 26 commits into
mainfrom
change/report-stale-grandfather-dispositions

Conversation

@brettheap

@brettheap brettheap commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-1 (openXfactory-1)

Status: ratified. Brett Heap, 2026-09-12T15:45:22Z — PR comment 5646922774 (mirrored on openxFactory issue #965 at 15:45:23Z) — given in the lane's window in answer to the orchestrator's list of open rulings (D1 put with its recommendation first), verbatim "do all as recomended". The earlier word of 2026-09-11 ~18:20Z — verbatim "usage reset, resume all. read handoff and resume and fan out wide and do as much as possible in parallel" — decided nothing above and is not read as an approval; it stays the ORIGIN of the authoring only. D1 RULED: option ① (a PRUNE PROMPT, warning) TAKEN; ② and ③ NOT taken — the ruled option is the one this packet had already encoded, so not one byte of the arm or its tests moved for the ratification. proposal.md, design.md and tasks.md now carry Status: ratified with a citation each; .openspec.yaml gains approved_by/approved_on ADDED BESIDE the byte-unmoved drafting provenance (kind, id, reason, proposed_by, proposed_on untouched; git diff --numstat reads 43 0, pure addition); record review/ratification-2026-09-12.md, gate set re-derived at review/verification-2026-09-12.md. RATIFIED ≠ ARCHIVED: archive is a separate act on a separate word — tasks.md § 6 stays entirely open, and openxFactory #965 closes THERE, not here. This pull request is ready for review; it does not merge itself — landing is the orchestrator's act, on green.

Carries § 7.1 of the archived honour-grandfather-dispositions-in-ratified-provenance (openxFactory #965). The grandfather pass landed on #939 reads the aggregation's health/dispositions.yaml and downgrades a finding to info when the finding's (repo, path) carries a dated, cited family: ratified-provenance entry over an archived path. The converse is reported nowhere. An entry naming a record since REPAIRED, or a path since VANISHED, matches no finding, moves no severity and appears in no row — it stops disposing anything, silently, and the file keeps it. The parent's design.md D6 named this class as a successor rather than smuggling it in, on the measured ground that its population was then ZERO. It is no longer zero.


D0 — the measurement, taken before the design (three rigs, every figure with its sha)

THE FILE. opensoft/xFactory main 0ecb370e8fec2c1ac78498adf8f6a4ea3ca1c9bb — 49 entries across NINE families, 18 of them family: ratified-provenance (15 openxFactory, 3 codexFactory), every one dated, every one cited, every one naming a path under openspec/changes/archive/.

rig repositories materialized at entries honoured matching a finding matching NOTHING
A — the aggregation's own pins openxFactory b91af6ea, codexFactory 2dd4e5a3 18 15 3
B — each repository at its own origin/main (first authoring) openxFactory 8015d45f, codexFactory dc67ad82 18 15 3
B′ — re-taken at the encode, both having moved openxFactory c521504c, codexFactory c3108adc 18 15 3

The aggregation's openxFactory pin is 237 commits behind that repository's origin/main at the encode, which is why the split was re-measured twice rather than carried: the residue is a fact about the FILE, not about the pin. The aggregation itself is byte-unmoved at 0ecb370e across all three.

WHY EACH OF THE THREE IS STALE, READ OFF THE RECORD RATHER THAN INFERRED. All three are codexFactory's and all three are stale BY REPAIR — each names a review/ratification-2026-09-05.md that EXISTS and now carries Status: ratified with a Ratified: line naming an approver and a date, so no arm of this family opens a finding against it and the entry that grandfathered it reaches nothing:

  • openspec/changes/archive/2026-09-05-add-floor-addition-grace/review/ratification-2026-09-05.md
  • openspec/changes/archive/2026-09-09-adopt-openspec-cli-pin-gate/review/ratification-2026-09-05.md
  • openspec/changes/archive/2026-09-09-prepare-openspec-1.12-readiness/review/ratification-2026-09-05.md

ZERO are stale by a vanished path today. The arm reports both shapes because a repaired record and a deleted one produce the same absence, and its whole predicate is the absence.

THE FAMILY, BEFORE AND AFTER (rig A, --family ratified-provenance): 35 rows → 38; 20 critical / 0 warning / 15 info → 20 critical / **3 warning** / 15 info. No existing row moves — not a severity, not a rule, not an action, not a resolution class.


D1 — RULED: option ① (put as a multiple-choice question, recommendation FIRST; ✅ TAKEN / ❌ NOT TAKEN marked below)

RULED 2026-09-12T15:45:22Z — Brett Heap, PR comment 5646922774 (mirrored on openxFactory issue #965 at 15:45:23Z), given in the lane's window in answer to the orchestrator's list of open rulings, verbatim "do all as recomended". What IS a stale entry? The packet encoded option 1 at authoring; the ruling confirms it — ① TAKEN, ② and ③ NOT TAKEN.

✅ ① TAKEN — a PRUNE PROMPT: a new finding class at warning, against the file.

The run reports it at warning against the AGGREGATION's own health/dispositions.yaml — the file the entry is a line of — naming the entry's repository and path and quoting the ruling it records, action "prune the entry, or re-point it at the record that still carries the defect". The file then converges on the set the run reports.
Cost: three warning rows today, and a governance file that acquires a standing obligation to be kept current. Consequence: the disposition file becomes CHECKABLE — its only evidence of correctness today is that somebody once wrote it. warning is canon's own word for this ("drift or first-stage aging"). It reds no gate and enters no comparison: --fail-on critical / --fail-on error are the two dials that exist, report.regressions considers only critical/error, and the family carries no contested class, so a stale row can never be a regression nor open an issue. The estate has already ruled this way once, in scripts/validate-sequenced-after.py's archive-date arm, which reports a stale disposition on the stated ground that "a stale disposition silences a finding on a fact nobody can check" and tells the author to remove it. The ruled option is the one this packet had already encoded, so not one byte of the arm (scripts/doc_health/families.py) or its tests moved for the ratification (tasks.md § 1.1).

❌ ② NOT TAKEN — the EXPECTED RESIDUE of a repair, graded info, no action.

Cost: the row asks for nothing, so nothing converges — the file grows monotonically and no reader can say which entries still do anything. Consequence: info would then carry TWO different facts for one family ("this record is grandfathered" and "this entry grandfathers nothing"), and the parent chose info precisely so the grandfathered population stayed countable. Cheapest option; changes least.

❌ ③ NOT TAKEN — an AGGREGATION DEFECT, at error.

Cost: it punishes the good act — the three entries are stale BECAUSE somebody repaired three records, and error is the band that OPENS AN ISSUE, so three repairs would have opened one. Consequence: it also REDS A GATE (--fail-on error) on a file in the aggregation that no repository's own --single-repo gate can even see. Strongest reading; take it if the file is a pinned inventory rather than a ledger of rulings — not the reading ruled.

No veto occurred, so D2 through D5 stand exactly as designed below, except that D2's band sentence follows D1 — tasks.md § 1.1 ticks D1 itself GIVEN; § 1.2 records that D0 and D2 through D5 (plus D2a, D2b) were carried beside D1 and none was vetoed.


D2 – D5 (and D2a, D2b), one line each


The delta

ONE ## MODIFIED REQUIREMENT, ONE SCENARIO APPENDED, NOT ONE BYTE OF PROMOTED TEXT EDITED. The block is canon's own bytes — openspec/specs/doc-health/spec.md lines 878–945, sha256 138a0d51f42f77aa9f0418c5ec1570681f63e0409bc0a43596e8356dca06e5dd on both sides; taking the blank separator with them, diff of canon 878–946 against this delta's lines 5–73 exits 0. No body paragraph added, edited or removed; no promoted scenario moved, retitled or shortened; no marker declared, there being nothing removed to declare. The canon file is byte-unmoved between 8015d45f, c521504c and 0805c3bb, each pair's git diff --stat over it empty, so the slice taken before the merges is the slice carried after them.


Gates — re-run in the clone at 0ac015ef, controls on a fresh origin/main 0805c3bb worktree beside it

Every figure below is that re-run's, taken after this branch merged origin/main 0805c3bb and after both bench rounds. The control worktree's openDox / openXdox submodules were materialized so the two sides differ only by this branch.

gate branch (0ac015ef) control (origin/main 0805c3bb)
OPENSPEC_TELEMETRY=0 openspec validate report-stale-grandfather-dispositions --strict (PATH 1.2.0) exit 0 — "is valid" n/a
same, through the pinned 1.12.0 CLI (validate-openspec-cli-pin.py --change … --no-cache) exit 0 — content address + 80-package closure verified, "Totals: 1 passed, 0 failed" n/a
openspec validate --all --strict (PATH 1.2.0) exit 1 — 101 passed, 2 failed exit 1 — 100 passed, 2 failed
… failure set disposition-codexfactory-declared-renames, disposition-codexfactory-floor-relocation-retitle IDENTICAL — diff of the two sorted ✗ lists is empty
validate-openspec-cli-pin.py --all --no-cache (pinned 1.12.0) exit 0 — 0 undispositioned failures, 2 accepted exceptions exit 0 — the same 2 accepted exceptions
python3 scripts/proposal-support.py . verify report-stale-grandfather-dispositions exit 0 — "proposal support verification ok" n/a
python3 scripts/validate-sequenced-after.py . exit 0 — 41 active changes, 11 declaring the field n/a
python3 scripts/validate-sequenced-after.py . --ledger-diff exit 0 — "per-change sweep ledger consistent with the corpus (204 rows)"; no re-seed owed n/a
python3 scripts/validate-scope-globs.py . exit 0 — all active changes conform n/a
python3 scripts/doc-health.py --single-repo . exit 0 — "32 critical, 7 error, 47 warning, 14 info. New regressions: 0." exit 0 — byte-identical headline
… findings naming this packet 0 —
python3 -m pytest tests/doc-health -q --tb=no exit 0 — 1729 passed, 0 FAILED exit 1 — 1711 passed, 1 failed
python3 -m pytest tests/doc-health/test_grandfather_dispositions.py -q exit 0 — 40 passed 23 tests at 0805c3bb

THE BRANCH'S FAILED SET IS EMPTY AND IS THEREFORE A STRICT SUBSET OF THE CONTROL'S. The control's one failure is the CONTROL RIG's, not main's: test_modified_block_currency_self_gate.py::test_the_resolver_fails_on_a_checkout_it_cannot_confirm_and_never_walks_up fails because the control is a WORKTREE NESTED INSIDE the packet's clone and the test's premise is a directory with no enclosing repository. That same test PASSES on the branch, which is a top-level clone. Collected: 1729 branch against 1712 control (1711 passed + that 1 failed) — a difference of exactly the seventeen tests this packet adds.

The code surface is two files and nothing else: git diff --numstat origin/main...HEAD -- scripts tests/doc-health → scripts/doc_health/families.py 134 added / 1 removed and tests/doc-health/test_grandfather_dispositions.py 549 added / 21 removed ("2 files changed, 683 insertions(+), 22 deletions(-)"). The only other file under tests/ in the whole branch diff is tests/sequenced_after/corpus-ledger.yaml, +1 line, the per-change sweep ledger's seed row.


Review bench — ten suppressed comments across four Copilot reviews, one thread, and Codex ABSENT

Copilot reviewed four times (20:46Z, 20:53Z, 21:42Z, 21:50Z) and opened one review thread; everything else arrived as "Suppressed comments" inside a review body, which opens no thread. Ten items, reducing to eight distinct subjects (the duplicate-target question and the § 5.10 snapshot were each raised twice). Each is dispositioned individually in this comment. In summary: one taken as a CODE change (D2b's scope), one refused as a code change and taken as a test plus a named limit (the duplicate-target multimap — cites.setdefault is the parent's landed line, and the file carries 49 entries at 49 distinct (family, repo, path) triples, so the shape does not exist today), one refused as a narrowing and taken as a requirement widening plus a test (_lifecycle_scope is the union of both document sets, deliberately), and the rest taken as named decisions, tests, re-measured figures or prose corrections. The thread (r3993730260, a stale README count) was taken, replied to and resolved; unresolved threads: 0.

Codex — ABSENCE, recorded verbatim. One review request was posted; the connector replied eight seconds later: "You have reached your Codex usage limits for code reviews. … you can upgrade your account or add credits to your account and enable them for code reviews in your settings." That is an absence, not a clean review, and no second request has been posted. Sourcery posted a Reviewer's Guide with no findings; SonarCloud's Quality Gate passed.


What this pull request does NOT do


Gates at the FINISHER's final head, f742c090 — re-run in full a second time

Everything in the "Gates" section above was measured at 0ac015ef, an
intermediate head from a mid-bench-round commit. This FINISHER
pass (lane openxfactory-1) re-ran the entire battery, unchanged in method, at the head this pull
request now stands at, control refreshed to a then-current origin/main
worktree beside it (submodules materialized identically on both sides):

gate branch (f742c090) control (origin/main 972b484a)
python3 -m pytest tests/doc-health/test_grandfather_dispositions.py -q 40 passed, exit 0 n/a
openspec validate report-stale-grandfather-dispositions --strict (PATH 1.2.0) exit 0 n/a
same, pinned 1.12.0 (validate-openspec-cli-pin.py --change … --no-cache) exit 0 n/a
openspec validate --all --strict (PATH 1.2.0) exit 1 — 101 passed / 2 failed exit 1 — 100 passed / 2 failed
… failure set disposition-codexfactory-declared-renames, disposition-codexfactory-floor-relocation-retitle IDENTICAL — diff of the sorted ✗ lists is empty
validate-openspec-cli-pin.py --all --no-cache (pinned 1.12.0) exit 0 — 0 undispositioned, 2 accepted exceptions exit 0 — same 2 accepted exceptions
python3 scripts/proposal-support.py . verify report-stale-grandfather-dispositions exit 0 n/a
python3 scripts/validate-sequenced-after.py . exit 0 — 41 active, 11 declaring n/a
python3 scripts/validate-sequenced-after.py . --ledger-diff exit 0 — 204 rows consistent, no re-seed owed n/a
python3 scripts/validate-scope-globs.py . exit 0 n/a
python3 scripts/doc-health.py --single-repo . exit 0 — 32 critical / 7 error / 47 warning / 14 info, 0 new regressions, 0 findings naming this packet exit 0 — byte-identical headline
python3 -m pytest tests/doc-health -q --tb=no exit 0 — 1729 passed, 0 failed (385s) exit 1 — 1711 passed, 1 failed (384s)

The branch's FAILED set is empty, a strict subset of the control's. The
control's one failure is the control rig's own artifact (a worktree nested
inside this clone, tripping
test_modified_block_currency_self_gate.py::test_the_resolver_fails_on_a_checkout_it_cannot_confirm_and_never_walks_up),
and that same test passes on the branch. Collected 1729 vs 1712 (1711
passed + 1 failed) = the seventeen tests this packet adds, unmoved since the
table above.

Every figure in this section is identical to the run at 0ac015ef.
git log --first-parent --oneline 0ac015ef..f742c090 lists eight
commits (67f05d85, ed384a59, 4bd49124, 9170edf7, e06333d6,
dc134738 — the merge from origin/main — da65ae70, f742c090), and
git diff --stat 0ac015ef f742c090 -- openspec/changes/report-stale-grandfather-dispositions/ README.md
is the whole of what they touch beyond the merge's own incoming files
(docs/opendox-carve-admissions.yaml,
docs/opendox-cutover-runbook.md, scripts/verify-carve-arrival.py,
tests/carve_arrival/ — all origin/main's own PR #979, none of them
authored here): continuing the same review-and-disposition bench this
section describes, including this FINISHER pass's own three rounds (a
standalone-possessive grammar nit in five files, an imprecise
sequenced_after: [] claim in two files, and two self-contradictory
design.md sentences that each reused a phrase its own preceding sentence
had already used for something else). None of the eight touches
scripts/ or tests/. This table exists to cite the exact final head
rather than an intermediate one, not because anything measured moved.

Review bench, continued. Copilot posted fifteen reviews on this
pull request in total (gh api repos/opensoft/openxFactory/pulls/981/reviews --paginate, filtered to copilot-pull-request-reviewer[bot], counted at
f742c090) and opened four review threads in total — all four
already resolved
(re-confirmed via GraphQL after every push cited in this
section: isResolved: true on all four, headRefOid matching each push in
turn). All four threads were opened and resolved before this FINISHER
pass began (one from review three, three more from reviews five, seven
and ten by submission time) — tasks.md §§ 4.6–4.11 gives the full,
already-verified account of reviews one through ten. Reviews eleven
through fifteen — all suppressed comments, no new threads — were
dispositioned in this pass:
the eleventh review's five-file grammar nit,
the twelfth and thirteenth reviews' sequenced_after wording,
and
the fourteenth review's two design.md ambiguities.
The fifteenth review (5184289700, 23:46:28Z, on this pass's own head
f742c090) is the first of the fifteen to carry nothing at all — zero
suppressed comments, zero new threads. Codex's ABSENCE (a usage-limit
reply) stands as recorded above; no second request has been posted.


Gates at the ratification encode, 5d099acb (control: a fresh origin/main 1f068646 worktree)

Ratifying the packet touched seven files: README.md (29 added / 15 removed), .openspec.yaml (43 added / 0 removed — pure addition), design.md (31/9), proposal.md (24/11), tasks.md (72/30), plus two new records, review/ratification-2026-09-12.md (221/0) and review/verification-2026-09-12.md (92/0). The spec delta itself is untouched (git diff 5d099acb^ 5d099acb -- openspec/specs/ empty) and no byte of scripts/doc_health/families.py or tests/doc-health/test_grandfather_dispositions.py moved — the ruled option was the one already encoded.

gate branch (5d099acb) control (origin/main 1f068646)
python3 -m pytest tests/doc-health/test_grandfather_dispositions.py -q exit 0 — 40 passed n/a
python3 -m pytest tests/doc-health -q --tb=no exit 0 — 1742 passed exit 0 — 1725 passed
… difference exactly 17 — matching D3's net-new-test claim (18 +def test_, 1 -def test_ rename) —
openspec validate report-stale-grandfather-dispositions --strict (PATH 1.2.0) exit 0 n/a
openspec validate --all --strict (PATH 1.2.0) exit 1 — 101 passed / 2 failed exit 1 — 100 passed / 2 failed, same 2 known disposition-codexfactory-* exceptions
validate-openspec-cli-pin.py --all --no-cache (pinned 1.12.0) exit 0 — same 2 accepted exceptions both sides exit 0
python3 scripts/proposal-support.py . verify report-stale-grandfather-dispositions exit 0 n/a
python3 scripts/validate-sequenced-after.py . exit 0 — 41 active, 11 declaring n/a
python3 scripts/validate-sequenced-after.py . --ledger-diff exit 0 — 204 rows consistent, no re-seed owed n/a
python3 scripts/validate-scope-globs.py . exit 0 n/a
python3 scripts/doc-health.py --single-repo . exit 0 — 0 findings naming this packet, byte-identical to control exit 0

The branch then merged origin/main once more before this comment, 5972c8f3 (PR #1004) → 5e1af826, conflicting in README.md's ## OpenSpec Records block ONLY (resolved by keeping both rows, no reflow); git log 1f068646..5972c8f3 -- scripts tests is empty, so the 1742/1725/17 figures above stood unmoved at 5e1af826. main has since advanced again (PR #978, the sibling ratification of decide-disposition-reading-per-family) and this branch will take that merge too — the same README-only conflict shape — before FREEZE. The exact final head, its required-check results and its thread count are named in this PR's FREEZE comment rather than re-stated here, so this section does not go stale on the next merge from main.

refs #965

🤖 Generated with Claude Code

Summary by Sourcery

Report stale ratified-provenance dispositions as non-blocking warnings while preserving existing grandfathering behavior and repository-scope boundaries.

New Features:

  • Add stale-disposition reporting for ratified-provenance entries that no longer match findings, emitting actionable warning findings against the aggregation dispositions file.
  • Define the proposal and specification scenario for stale recorded dispositions, including repository-scope and single-repository boundaries.

Enhancements:

  • Preserve the existing grandfather-disposition downgrade behavior while reporting unmatched entries using the same admission rules and lifecycle scan scope.
  • Add comprehensive coverage for repaired and vanished records, malformed and out-of-scope entries, active-path behavior, duplicate targets, clean corpora, and report formatting.

Documentation:

  • Document the draft change, its measured stale-entry population, design alternatives, verification results, and follow-up ratification/archive work.

Tests:

  • Expand grandfather-disposition tests to validate the new stale-entry findings and their interaction with existing findings.

Chores:

  • Register the active change in the repository's change ledger and README.

brettheap and others added 3 commits September 11, 2026 15:02
…ance

The other half of one set equality. `_honour_grandfather_dispositions`
reads the aggregation's `health/dispositions.yaml` and downgrades what it
MATCHES; nothing reads what it matched NOTHING. An entry naming a record
since REPAIRED, or a path since VANISHED, stops disposing anything in
silence — no finding, no severity, no row — and the file keeps it.

`_stale_grandfather_dispositions` is a second last pass over the same
file, taken after the first: the entries this family honours, minus the
findings this family raised, reported at `warning` against the
aggregation's own `health/dispositions.yaml` under the repository id
`fam_submodule_pin_drift` already reports the aggregation as. The row
names the entry's target and quotes the ruling it records, so a reader
prunes the right line without opening the file.

Two narrowings, each measured rather than assumed. A repository this run
did not enumerate is passed over — an unmaterialized submodule reports
nothing, and every entry naming it would otherwise be called stale on a
measurement nobody took. And `--single-repo` reports nothing at all,
inherited exactly as the downgrade inherits it: no aggregation root, no
file, no entries (refs #968).

Measured over the real aggregation, `opensoft/xFactory` main
`0ecb370e8fec2c1ac78498adf8f6a4ea3ca1c9bb` with openxFactory at the pin
`b91af6ea` and codexFactory at `2dd4e5a3`: 49 entries, 18 of them
`family: ratified-provenance`, 15 matching a live finding and THREE
matching nothing — all three codexFactory, all three because the record
has since been repaired and now carries its citation. The family's report
moves from `20 critical, 0 warning, 15 info` to `20 critical, 3 warning,
15 info` over a 12-line diff, the same 35 rows plus the three new ones in
each of the two places the report renders a finding.

TWELVE tests are added to `tests/doc-health/test_grandfather_dispositions.py`
(22 -> 34 test functions, both counts measured at this tree and on an
`origin/main` `8015d45f` worktree beside it). TWO existing tests in that
file move, and both moves are the new behaviour rather than a repair:
`test_an_undispositioned_archived_record_stays_critical` keeps its own
assertion and gains the stale row its fixture's entry now earns, and
`test_a_run_with_no_findings_reads_no_file` is split — the downgrade
pass's early return still holds and is asserted directly, while the
family-level no-read it used to imply is deliberately given up, because a
clean corpus is the extreme case of the class this change reports.

refs #965, refs #939, refs #945.

Lane: openxfactory-1
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…andfather disposition in ratified-provenance

The grandfather pass landed on #939 downgrades what it MATCHES in the
aggregation's health/dispositions.yaml. The converse is reported nowhere: an
entry naming a record since repaired, or a path since vanished, matches no
finding, moves no severity and appears in no row. This packet takes that half.

Measured, not assumed. opensoft/xFactory main 0ecb370e: 49 entries, 18 of them
family: ratified-provenance (15 openxFactory, 3 codexFactory), all dated, all
cited, all naming archived paths. Fifteen match a live finding and THREE match
nothing. All three are codexFactory's and all three are stale BY REPAIR; zero
by a vanished path. The same 15/3 split at the aggregation's own pins
(b91af6e / 2dd4e5a3), at 8015d45 / dc67ad82, and again at this branch's
merge base c521504 / c3108adc.

D1 is put to Brett Heap as a MULTIPLE-CHOICE question with the recommendation
first: a stale entry is (1, RECOMMENDED) a PRUNE PROMPT at warning against the
aggregation's own health/dispositions.yaml, (2) the expected residue of a
repair at info with no action, or (3) an aggregation defect at error. The
packet encodes (1); a veto re-authors one THEN bullet and one constant.

One ## MODIFIED block over "Governed corpus membership and the lifecycle scan
set", canon's lines 878-945 sliced byte for byte (sha256 138a0d51, diff exit 0
against the delta) with one scenario appended. sequenced_after: [] — no change
on main writes that requirement, and #966's own packet (draft PR 978) writes a
different one, a branch-only parent never being declared.

Status: draft throughout, no approval pair, nothing promoted. The code surface
rides this branch and was committed at 89a6ae1; under release-realization the
archive waits for merged-plus-green realization evidence. The origin issue is
retired at the archive pull request and nowhere on this branch.

refs #965

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 11, 2026 20:40
@sourcery-ai

sourcery-ai Bot commented Sep 11, 2026

Copy link
Copy Markdown

Reviewer's Guide

This draft proposal adds a post-processing pass to report honoured ratified-provenance dispositions that no longer match any finding as warning-level, auto-fixable findings on the aggregation dispositions file, while preserving existing downgrade behavior and scope boundaries; it also adds extensive tests and documents the proposed OpenSpec change, measurements, alternatives, and pending ratification/archive steps.

Sequence diagram for stale disposition detection

sequenceDiagram
    participant Run as doc-health run
    participant Family as fam_ratified_provenance
    participant Reader as _grandfather_cites
    participant Findings as Existing findings
    participant Report as Report

    Run->>Family: fam_ratified_provenance(ctx)
    Family->>Findings: Build lifecycle findings
    Family->>Reader: _grandfather_cites(ctx)
    Reader-->>Family: Honoured disposition entries
    Family->>Family: _honour_grandfather_dispositions(ctx, findings)
    Family->>Family: _stale_grandfather_dispositions(ctx, graded)
    Family->>Family: Compare entry keys with (f.repo, f.path)
    alt Entry matches a finding
        Family-->>Report: Preserve graded finding
    else Entry is unmatched and repository is in scope
        Family-->>Report: WARNING finding on health/dispositions.yaml
    else Repository is not enumerated
        Family-->>Report: No stale finding
    end
Loading

Flow diagram for stale grandfather disposition reporting

flowchart LR
    D["health/dispositions.yaml"] --> A["_grandfather_cites(ctx)"]
    A --> H["_honour_grandfather_dispositions(ctx, findings)"]
    H --> G["graded findings"]
    A --> S["_stale_grandfather_dispositions(ctx, graded)"]
    G --> C{"entry matches a finding?"}
    S --> C
    C -->|yes| I["Preserve existing finding downgrade"]
    C -->|no, repository in scope| W["warning finding on xFactory/health/dispositions.yaml"]
    C -->|repository not enumerated| X["Skip"]
Loading

File-Level Changes

Change Details Files
Adds stale-disposition reporting to the ratified-provenance health family.
  • Introduces a second pass that compares honoured disposition entries with findings produced by the family.
  • Emits warning findings against the aggregation's health/dispositions.yaml, including the stale entry target and citation.
  • Preserves scope boundaries for unmaterialized repositories and single-repository runs.
  • Reuses the existing disposition admission logic and keeps existing grandfathered findings unchanged.
scripts/doc_health/families.py
Expands automated coverage for stale disposition behavior and report integration.
  • Covers repaired and vanished targets, matching entries, clean corpora, malformed or out-of-scope entries, active paths, and single-repository behavior.
  • Verifies finding identity/composition, severity, resolution class, and ranked-plan parsing.
  • Updates the prior empty-corpus early-return test to isolate the downgrade pass while validating the new family-level behavior.
tests/doc-health/test_grandfather_dispositions.py
Adds a draft OpenSpec change packet documenting the proposed behavior, decision alternatives, scope, provenance, tasks, and verification evidence.
  • Adds draft proposal, design, task, and family-specific specification files without editing promoted canon.
  • Records the recommended warning/prune-prompt interpretation and explicitly limits the change to ratified-provenance.
  • Documents ratification and archive as separate future acts, alongside measurements and gate results.
README.md
openspec/changes/report-stale-grandfather-dispositions/.openspec.yaml
openspec/changes/report-stale-grandfather-dispositions/design.md
openspec/changes/report-stale-grandfather-dispositions/proposal.md
openspec/changes/report-stale-grandfather-dispositions/specs/doc-health/spec.md
openspec/changes/report-stale-grandfather-dispositions/tasks.md

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

…tions (#981)

`python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#981'`
rewrote the ledger from the live corpus: 204 rows, exactly ONE moved —
report-stale-grandfather-dispositions, stamped `moved_by: "#981"`,
`moved_on: "2026-09-11"`. Every other row's provenance is preserved byte for
byte, which is what the one-line diff shows.

The row reads `{state: active, class: co-modifier, declares: [], depth: 0,
prose: false}`: an explicit empty root claim, because no change on main writes
*Governed corpus membership and the lifecycle scan set* and #966's own packet
(draft pull request 978) writes a different requirement — a branch-only parent
is never declared.

Taken AFTER the pull request existed, as its own commit, so `--moved-by` names
a pull request a reader can follow. `--ledger-diff` now exits 0: "per-change
sweep ledger consistent with the corpus (204 rows)"; before the seed it exited
1 on four derived-total mismatches naming this change.

refs #965

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@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.

🔵 Needs a closer look

Three moderate implementation issues and one checklist inconsistency remain unresolved.

Pull request overview

Adds warning-level reporting for stale ratified-provenance dispositions while preserving existing grandfathering behavior.

Changes:

  • Implements stale-disposition detection.
  • Expands targeted regression coverage.
  • Adds and registers the draft OpenSpec packet.
File summaries
File Summary
tests/doc-health/test_grandfather_dispositions.py Adds coverage for stale, repaired, vanished, and scoped dispositions; duplicate-target coverage remains requested.
scripts/doc_health/families.py Implements stale reporting. Moderate issues remain around action pinning, duplicate targets, and archived-path filtering.
README.md Registers the draft change.
openspec/changes/report-stale-grandfather-dispositions/tasks.md Contains a nit: the “other five” decision list enumerates six decisions.
openspec/changes/report-stale-grandfather-dispositions/specs/doc-health/spec.md Adds the draft requirement scenario.
openspec/changes/report-stale-grandfather-dispositions/proposal.md Documents the proposal.
openspec/changes/report-stale-grandfather-dispositions/design.md Documents design decisions and scope.
openspec/changes/report-stale-grandfather-dispositions/.openspec.yaml Defines draft metadata and provenance.
Review details

Suppressed comments (4)

openspec/changes/report-stale-grandfather-dispositions/tasks.md:33

  • The ratification checklist is internally inconsistent: this says “other five” but enumerates D0, D2, D3, D4, D5, and D6 (six labels), while proposal.md summarizes the decisions as D0–D5 and design.md contains a separate D6 section. Please either remove D6 from this decision list or consistently include it and update the count and summary; otherwise the approval checklist can miscount or omit a packet decision.
- [ ] 1.2 **THE OTHER FIVE DECISIONS ARE CARRIED BESIDE D1 AND EACH IS

scripts/doc_health/families.py:370

  • This new operator action is not independently pinned. The existing ratified-provenance action table runs with agg_root=None, so this stale branch is never behaviorally harvested, and the static harvester cannot resolve the concatenated _STALE_ACTION + _cite_excerpt(...). The new stale test also compares against _STALE_ACTION imported from this same module, so changing the production text keeps the test green. Add an aggregate-root action-pin case (or a literal expected-action assertion) so this guidance cannot drift silently.
_STALE_ACTION = (
    "prune the entry, or re-point it at the record that still carries the "
    "defect: the grandfather it records reaches no finding this run raises, "
    "so it disposes nothing and cannot be read back from the report. Cite: ")

scripts/doc_health/families.py:621

  • This loop iterates the (repo, path) -> cite mapping, so it can emit at most one row per target. _grandfather_cites uses setdefault and silently drops later valid entries sharing a target; that contradicts the packet's explicit one-row-per-entry contract (design.md § 267-272), so a second stale ruling cannot be reported or individually pruned. Preserve the admitted entries as a list/multimap and emit each one, with a duplicate-target regression test.
    for repo, path in sorted(cites):
        if repo not in in_scope or (repo, path) in reported:
            continue
        # ONE LINE, AS THE PASS ABOVE COLLAPSES A CITE. `report.PLAN_RE` is
        # anchored and read one line at a time, and `repo`/`path` here are

scripts/doc_health/families.py:619

  • This complement is broader than the set the downgrade can actually honour: _grandfather_cites admits active paths, while _honour_grandfather_dispositions explicitly applies only to paths under the archive prefix. If an active disposition points to a packet that is later repaired or removed, there is no finding in reported and this loop emits a stale warning even though the active-path boundary says that entry is inert, not a grandfathered disposition. Filter stale candidates with the same archived-path boundary (and cover a clean active target in the tests).
        if repo not in in_scope or (repo, path) in reported:
            continue
  • Files reviewed: 9/9 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings September 11, 2026 20:46

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

The stale-disposition scope and duplicate-entry handling need correction.

Review details

Suppressed comments (2)

scripts/doc_health/families.py:618

  • This scope check is not sufficient for the aggregation anchor: corpus.discover_repos deliberately adds openxFactory whenever the directory exists, even when an unmaterialized submodule is just an empty directory (scripts/doc_health/corpus.py:127-177). In that state ctx.repo_paths contains openxFactory but _lifecycle_scope(ctx) reads no records, so this complement reports every openxFactory disposition as stale based on an unmeasured checkout. Use the actual materialized/scan scope (or make discovery distinguish this case) before reporting residue.
    reported = {(f.repo, f.path) for f in findings}
    in_scope = set(ctx.repo_paths)
    out = []
    for repo, path in sorted(cites):
        if repo not in in_scope or (repo, path) in reported:

scripts/doc_health/families.py:619

  • Duplicate ratified-provenance entries with the same (repo, path) are collapsed by _grandfather_cites before this loop (setdefault keeps only the first citation), so this pass can emit one stale row while silently losing the other recorded entry and its ruling. The new scenario/test describes one row per entry; either reject duplicate same-family keys explicitly or preserve them through the stale comparison and add a duplicate fixture.
    for repo, path in sorted(cites):
        if repo not in in_scope or (repo, path) in reported:
            continue
  • Files reviewed: 9/9 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

brettheap and others added 2 commits September 11, 2026 16:56
…he stale pass's scope to the documents this family read

Copilot reviewed the packet twice on PR #981 and opened no thread; six
comments arrived suppressed inside the two review bodies. Five are answered
in prose and tests, and ONE is taken as a code change.

THE CODE CHANGE (design.md D2b, tasks.md 4.7). `_stale_grandfather_dispositions`
read its scope off `ctx.repo_paths`. `corpus.discover_repos` admits the
aggregation's ANCHOR on `is_dir()` alone while every other pinned repository
must pass `_is_materialized_repo`, so an aggregation checkout whose
openxFactory pin is unmaterialized leaves an EMPTY DIRECTORY that enumerates
as a repository and contributes no document -- and the complement over
`ctx.repo_paths` then reports every openxFactory entry in the file as stale on
a checkout nobody measured. MEASURED, over the standing health/dispositions.yaml
at opensoft/xFactory 0ecb370e with the anchor emptied: FIFTEEN false warning
rows before, ZERO after. Against the fully materialized aggregation both
readings report the SAME 15 matched / 3 stale, exit 0, so the fix costs nothing
that is measured. The scope is now `{doc.repo for doc in _lifecycle_scope(ctx)}`
-- the exact document set the family's five arms read. corpus.discover_repos is
NOT moved (tasks.md 7.8): its lax anchor admission is every fixture
aggregation's route in, and narrowing it would change what every family
measures.

THE FIVE ANSWERED IN PROSE AND TESTS. The operator wording is pinned as a
LITERAL sentence rather than against the constant that builds it
(families.py:370). The duplicate-target question, raised in both reviews
(families.py:621, :619), is REFUSED as a code change and TAKEN as a test and a
named limit: `cites.setdefault(key, cite)` is the parent's landed line and a
multimap here would report a residue the downgrade half cannot honour --
measured at 0ecb370e, 49 entries and 49 DISTINCT (family, repo, path) triples,
so the shape does not exist today (tasks.md 7.7). The archived-path asymmetry
(families.py:619) becomes design.md D2a: the boundary is a property of the
FINDING the downgrade moves, so an entry over a CLEAN ACTIVE path IS reported;
measured population ZERO at 0ecb370e. And tasks.md 1.2 said "five" over a list
of six labels; the count is now taken from the list -- the packet takes NINE
decisions and proposal.md, design.md and tasks.md name the same nine.

TESTS. tests/doc-health/test_grandfather_dispositions.py: 23 -> 39 test
functions (`grep -c '^def test_'`, 23 read at origin/main d4d96cc and again at
0805c3b), sixteen added in all -- twelve at the authoring and four in this
round. One test this packet itself added,
test_an_entry_naming_a_repository_out_of_scope_is_never_stale, is RE-AUTHORED
so that its in-scope half supplies the codexFactory document the new predicate
asks for; no test the repository already had is edited, renamed, flipped or
deleted. `_doc` gains a `repo=` keyword and every existing call site reads the
default. `python3 -m pytest tests/doc-health/test_grandfather_dispositions.py
-q` -> 39 passed, exit 0.

The spec delta's scope bullet is re-worded to match the code: a repository the
run READ NO DOCUMENT FROM, rather than one it did not enumerate.

NOTHING IS RATIFIED AND NOTHING IS PROMOTED. The PR stays DRAFT and D1 is still
Brett Heap's to rule.

refs #965

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 11, 2026 21:36
brettheap added a commit that referenced this pull request Sep 11, 2026
…966)

The late coordination caught the change it was taken late to catch. PR
#981, `report-stale-grandfather-dispositions`, opened 2026-09-11T20:40Z
as a DRAFT on `change/report-stale-grandfather-dispositions`, after the
two earlier `gh pr list --search 965` runs had both returned only this
pull request.

Measured off the branch rather than assumed: its `specs/doc-health/`
delta carries exactly ONE `### Requirement` heading under a single `##
MODIFIED Requirements` block — *Governed corpus membership and the
lifecycle scan set*. That is not this packet's heading, so the two
deltas touch disjoint requirements of the same capability and neither
owes `sequenced_after:` to the other. #981's own `related:` records this
pull request and reaches the same conclusion, which is the two lanes
agreeing rather than one deciding for both. Two differences are recorded
for a later reader: #981 carries a code surface where this packet
carries none, and both branches seed a corpus-ledger row — a textual
merge matter for whichever lands second, never a sequencing one.

The sequencing plan is restated for the pair: if either packet later
moves a delta onto the other's heading, the LATER-LANDING packet
declares `sequenced_after:` at its encode, and neither declares a
branch-only parent.

`openspec validate decide-disposition-reading-per-family --strict`
exit=0.

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]>

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

Lifecycle scope handling has a moderate correctness issue, and several verification summaries need updating.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (4)

openspec/changes/report-stale-grandfather-dispositions/tasks.md:357

  • This verification snapshot is stale for the current tree: the test file now contains 39 test_ functions, while this block still records 34 and 13 added definitions. The same packet records 23 → 39 elsewhere, so please re-run this measurement and reconcile the counts before relying on it for the archive evidence.
- [x] 5.10 **THE RIG FILE ALONE: `pytest
      tests/doc-health/test_grandfather_dispositions.py -q` → EXIT 0, 34
      PASSED** (0.41s). Counted rather than characterised: `git diff
      origin/main...HEAD` over that file shows **13** `+def test_` lines and
      **1** `-def test_` line — twelve NEW subjects plus the one rename § 4.4

openspec/changes/report-stale-grandfather-dispositions/tasks.md:231

  • The preceding paragraph explicitly says test_a_run_with_no_findings_reads_no_file is split and renamed, so the statement that no pre-existing test was renamed is self-contradictory. Qualify this sentence as applying to no other pre-existing tests.
      answer. **No test the repository already had before this packet is
      edited, renamed, flipped or deleted** — § 4.7's re-authoring is of a test
      this packet itself added.

scripts/doc_health/families.py:975

  • This new docstring calls _stale_grandfather_dispositions the “second last pass”, but the return at lines 1075–1076 appends it as the final pass; the preceding text also calls _honour_grandfather_dispositions the last pass. Please update the pass-order wording so the module documentation matches execution.
    `_stale_grandfather_dispositions` is the second last pass, taken after the
    first: a recorded entry whose target draws no finding from this family —
    the record REPAIRED, or the path VANISHED — matched nothing, moved nothing
    and was reported nowhere, so the file kept it and no artifact a reader
    reads ever said so. That residue is reported at `warning` against the

scripts/doc_health/families.py:633

  • The draft requirement scopes this class to repositories that contributed a document to the lifecycle scan set (spec.md:78), but _lifecycle_scope(ctx) includes the governed ctx.docs as well as ctx.lifecycle_docs. Consequently, a repository with only governed-corpus documents can be treated as in scope and get a stale warning even though no lifecycle document from it was read; derive this set from ctx.lifecycle_docs and update the fixtures to populate that field for lifecycle documents.
    in_scope = {doc.repo for doc in _lifecycle_scope(ctx)}
  • Files reviewed: 9/9 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread README.md Resolved
Copilot AI review requested due to automatic review settings September 11, 2026 21:42

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 findings and two nits remain unresolved.

Review details

Suppressed comments (4)

README.md:561

  • This active-change index still reports 22 → 34, but the packet's current test file contains 39 test functions and the packet's later design/tasks measurements record 23 → 39. Leaving the authoring snapshot here makes the repository index misstate the code surface; please update it to the current count.
  `tests/doc-health/test_grandfather_dispositions.py` goes **22 → 34** test

openspec/changes/report-stale-grandfather-dispositions/tasks.md:356

  • This verification entry is stale relative to the file it claims to measure: the current branch has 39 test functions, not 34, and the diff contains 17 +def test_ lines with one renamed -def test_ line. The recorded 34-pass result and 22 − 1 + 13 = 34 arithmetic should be updated so the task ledger remains a truthful record of the gate run.
      tests/doc-health/test_grandfather_dispositions.py -q` → EXIT 0, 34
      PASSED** (0.41s). Counted rather than characterised: `git diff
      origin/main...HEAD` over that file shows **13** `+def test_` lines and

openspec/changes/report-stale-grandfather-dispositions/tasks.md:230

  • This statement contradicts the test-change accounting immediately above and the actual edits: test_an_undispositioned_archived_record_stays_critical is edited, and test_a_run_with_no_findings_reads_no_file is renamed. Only the §4.7 scope test was added by this packet and then re-authored, so the claim that no pre-existing test was edited or renamed is false.
      answer. **No test the repository already had before this packet is
      edited, renamed, flipped or deleted** — § 4.7's re-authoring is of a test

scripts/doc_health/families.py:633

  • The new requirement defines this boundary in terms of repositories that contributed a document to the lifecycle scan set, but _lifecycle_scope(ctx) returns both ctx.docs and ctx.lifecycle_docs (runner.py:57-66, families.py:653-675). A repository represented only in the governed corpus is therefore eligible for a stale warning even though it contributed no lifecycle-scan document. Please align the implementation and delta—either narrow this set to ctx.lifecycle_docs, or explicitly change the requirement/design to the combined family scope and add that boundary test.
    in_scope = {doc.repo for doc in _lifecycle_scope(ctx)}
  • Files reviewed: 9/9 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…s with that run's

Section 5's figures were the first authoring's, taken against a c521504
control. The bench round moved both the branch and main, so every gate was
re-run in the packet's own clone at this head and every one that can differ was
run a second time on a FRESH 0805c3b control worktree beside it, with its
submodules materialized so the two sides differ only by this branch.

  5.1  openspec validate <change> --strict, PATH 1.2.0            exit 0
  5.2  the same through the 1.12.0 pin, --no-cache                exit 0
  5.3  --all --strict, PATH 1.2.0   branch exit 1 (101 passed / 2 failed)
                                    control exit 1 (100 passed / 2 failed)
       IDENTICAL failure set, entry for entry (`diff` of the two sorted
       failure lists is empty): the two codexFactory disposition changes.
  5.4  --all through the pin        exit 0 BOTH SIDES, the same 2 accepted
                                    exceptions with the same recorded
                                    acceptance.
  5.5  proposal-support verify                                    exit 0
  5.6  validate-sequenced-after .                                 exit 0
       and --ledger-diff                                          exit 0
       "per-change sweep ledger consistent with the corpus (204 rows)" -- the
       seed taken at 3742734 still agrees at this head, so no re-seed is owed.
  5.7  validate-scope-globs .                                     exit 0
  5.8  doc-health.py --single-repo .   exit 0, headline BYTE-IDENTICAL to the
       control's (32 critical / 7 error / 47 warning / 14 info, 0 new
       regressions); ZERO findings name this packet.
  5.9  pytest tests/doc-health -q --tb=no   branch exit 0, 1728 passed,
       0 FAILED, 400s. Control exit 1, 1711 passed, 1 failed -- and that one
       failure is the CONTROL RIG's, not main's: the resolver test whose
       premise is a directory with no enclosing repository, which a worktree
       nested inside this clone cannot provide. It PASSES on the branch. The
       branch's FAILED set is EMPTY and is therefore a strict subset of the
       control's. Collected 1728 against 1712 -- exactly the sixteen tests
       this packet adds.
  5.10 the rig file alone   exit 0, 39 passed. 17 `+def test_` lines and 1
       `-def test_` line against origin/main, so 23 - 1 + 17 = 39.
  5.11 the code surface is TWO files: families.py 127 added / 1 removed and
       test_grandfather_dispositions.py 502 added / 21 removed. The only other
       file under tests/ in the branch diff is the sweep ledger's +1 seed row.
  5.12 the delta's canon block re-verified at 0805c3b: `diff` exit 0 over
       878-945 vs 5-72 AND 878-946 vs 5-73, digest 138a0d51 on both sides, and
       the canon file byte-unmoved across 8015d45, c521504 and 0805c3b.

refs #965

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 11, 2026 21:58
…measured 23 -> 39

Copilot's third review on PR #981 opened a thread on README.md:563 -- the
active-change index still read "22 -> 34" while the branch's test file carries
39 definitions and the packet's own proposal and design say 23 -> 39. TAKEN.

RE-MEASURED rather than copied from the packet: `grep -c '^def test_'` on
tests/doc-health/test_grandfather_dispositions.py returns 23 at origin/main
0805c3b and 39 on this branch. The row now carries both figures with the
command that produced them and says why the before-figure moved -- main added
one test to that file between the first authoring and the bench round, and the
bench round added four.

refs #965

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

Unresolved moderate findings affect the specification, README measurements, and lifecycle-scan test coverage; verification counts also need updating.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (3)

README.md:561

  • This active-change summary is stale for the branch being reviewed: test_grandfather_dispositions.py currently contains 39 test functions, and the packet's own current verification records 23 → 39 after the bench round (tasks.md:209-215, design.md:438-446). Keeping 22 → 34 here understates the code surface and conflicts with the current packet measurements; update this entry or explicitly label it as the historical authoring-time count.
  `tests/doc-health/test_grandfather_dispositions.py` goes **23 → 39** test

openspec/changes/report-stale-grandfather-dispositions/tasks.md:348

  • The PR description still advertises 1,723 tests/doc-health passes, while this updated verification records 1,728 passes (and the current test file contains 39 test functions). Please refresh the PR description so reviewers are not relying on stale verification counts.
- [x] 5.9 **`python3 -m pytest tests/doc-health -q --tb=no` → EXIT 0, 1728
      PASSED, 0 FAILED** (7 warnings, 400s). The control at `0805c3bb` in a
      worktree beside it: EXIT 1, **1711 passed, 1 failed**, and **THE ONE
      FAILURE IS THE CONTROL RIG'S AND NOT `main`'s** —
      `test_modified_block_currency_self_gate.py::test_the_resolver_fails_on_a_checkout_it_cannot_confirm_and_never_walks_up`

tests/doc-health/test_grandfather_dispositions.py:830

  • This test claims the in-scope branch supplies a lifecycle-scan document, but _ctx_repos stores both _doc values in Context.docs and leaves lifecycle_docs empty. It therefore cannot catch a regression that uses governed-corpus scope instead of the lifecycle scan set named by the scenario; construct the codexFactory fixture in lifecycle_docs (and assert that field) to pin this boundary.
    within = fam_ratified_provenance(
        _ctx_repos(_doc(OTHER_ARCHIVED, SUBJECT_TEXT),
                   _doc(ARCHIVED, CLEAN_TEXT, repo="codexFactory"),
                   agg_root=agg, repos=(REPO, "codexFactory")))
  • Files reviewed: 9/9 changed files
  • Comments generated: 1
  • Review effort level: Lite

…randfather-dispositions

README.md OpenSpec Records conflict resolved by keeping both rows: main's
disposition-codexfactory-regular-pr-council-clearance-archive row first,
this packet's row after it, no other edit and no reflow.
tests/sequenced_after/corpus-ledger.yaml auto-merged (main's new row added).

refs #965

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

Reconcile the draft/not-ratified PR description with the committed ratified state and correct the ratification record’s family count.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (2)

README.md:536

  • The PR description still declares Status: draft — NOT RATIFIED, but this change now records the packet as ratified in the proposal, .openspec.yaml, README, and ratification record. Please reconcile the PR description with the committed lifecycle state before merging; otherwise reviewers and automation receive contradictory approval status.
  **`Status: ratified`** (2026-09-12T15:45:22Z, Brett Heap, openxFactory

openspec/changes/report-stale-grandfather-dispositions/review/ratification-2026-09-12.md:207

  • This says there are seven other families, but the packet's own measurement consistently identifies eight other families and 31 entries (tasks.md:545-550, design.md:541-544, and .openspec.yaml:135). That makes this ratification record's residue summary factually inconsistent; please correct the count.
- **THE RESIDUE NAMED AND NOT TAKEN**: `tasks.md` § 7 — the other seven
  • Files reviewed: 11/11 changed files
  • Comments generated: 1
  • Review effort level: Lite

Copilot AI review requested due to automatic review settings September 12, 2026 16:42

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

Reconcile the PR’s draft/not-ratified description with ratified metadata in .openspec.yaml and proposal.md.

Review details

Suppressed comments (2)

openspec/changes/report-stale-grandfather-dispositions/.openspec.yaml:96

  • The PR description still says this packet is draft, has no approval pair, and must stay draft, but this changed block records approved_by/approved_on and the packet is marked ratified in proposal.md and README.md. Please synchronize the PR metadata with the ratified state (or revert the ratification artifacts); the current description gives reviewers and lifecycle tooling contradictory status claims.
  approved_by: >-
    Brett Heap (openxFactory operator authority) — on 2026-09-12, lane
    `openxfactory-1` (display `openXfactory-1`), a MULTIPLE-CHOICE ruling over
    `design.md` D1 with the recommendation presented first: verbatim **"do all
    as recomended"**, given in the lane's window in answer to the
    orchestrator's list of open rulings (each put with its recommendation
    first) and recorded on openxFactory PR #981 at 2026-09-12T15:45:22Z
    (comment `5646922774`; mirrored on openxFactory issue #965 at
    2026-09-12T15:45:23Z, comment `5646922894`).
    THIS IS THE RATIFICATION ACT AND IT IS ADDED, NOT SUBSTITUTED. The drafting

openspec/changes/report-stale-grandfather-dispositions/proposal.md:10

  • The PR description still declares this packet “Status: draft — NOT RATIFIED” and says the commissioning word creates no approval, but this commit changes the packet to Status: ratified and adds the 2026-09-12 Ratified:/approval records. Please reconcile the PR description with the submitted lifecycle state (or revert the ratification metadata); otherwise reviewers and lifecycle tooling receive contradictory status claims.
Status: ratified
Ratified: 2026-09-12 by Brett Heap (openxFactory operator authority) — D1 option 1, a PRUNE PROMPT at `warning` ("do all as recomended", https://github.com/opensoft/openxFactory/pull/981#issuecomment-5646922774); record at review/ratification-2026-09-12.md
  • Files reviewed: 11/11 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…ther-dispositions

README.md's ## OpenSpec Records conflicted with main's new
decide-disposition-reading-per-family row; resolved by keeping BOTH rows
(main's row first, this packet's row after), no other edit, no reflow.
tests/sequenced_after/corpus-ledger.yaml auto-merged clean. No file under
scripts/ or tests/ changed by this merge (git diff --stat 5972c8f 45a98fa
-- scripts/doc_health tests/doc-health is empty), so this packet's own
gate figures are unaffected.

refs #965

Lane: openxfactory-1
Co-Authored-By: Claude Sonnet 5 <[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.

🔵 Needs a closer look

A remaining README lifecycle inconsistency requires correction and final human review.

Review details
  • Files reviewed: 11/11 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread README.md Resolved
… README mention Copilot flagged

origin/main advanced again while this PR's checks were running (PR #998,
repoint-chain-anchoring-medxchain-citation). README.md auto-merged clean;
tests/sequenced_after/corpus-ledger.yaml conflicted on adjacent alphabetical
rows (repoint-chain-anchoring-medxchain-citation / report-stale-grandfather-
dispositions) — resolved by keeping both rows, in alphabetical order,
each exactly as its own side authored it (validate-sequenced-after.py
--ledger-diff confirms 207 rows consistent).

Also takes Copilot's review-thread finding (PRRT_kwDOTAvnrs6hx_6v, posted
after the previous merge push): this packet's own README.md entry still
called PR #978 a "DRAFT PR" after #978 was ratified and merged. Fixed the
wording in place (no reflow, no other edit) to say "since ratified and
merged" instead.

The one file PR #998 touched under tests/ (test_modified_block_currency_
self_gate.py) adds three ledger rows and updates one existing test's
docstring/expected count (9 -> 12 named subjects); it adds no `def test_`
function, so this packet's own net-new-test-function figures (tests/
doc-health 1742 vs 1725 control = +17; test_grandfather_dispositions.py
40 passed) are unaffected.

refs #965

Lane: openxfactory-1
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 12, 2026 17:30

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

No unresolved blocking issues were identified.

Review details
  • Files reviewed: 11/11 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…ispositions

origin/main advanced a third time while this PR's checks were running
(PR #1005, an unrelated tasks.md amendment on split-opendox-two-layer-
product). Clean auto-merge, no conflict: the only file it touches is
that other packet's own tasks.md; nothing under scripts/ or tests/, and
no README.md OpenSpec Records collision this time.

refs #965

Lane: openxfactory-1
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 12, 2026 17:47

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

A provenance inconsistency remains in tasks.md, and the broad change warrants final human review.

Review details

Suppressed comments (1)

openspec/changes/report-stale-grandfather-dispositions/tasks.md:487

  • This provenance claim conflicts with the verification record: review/verification-2026-09-12.md:6-15 says the commands were run after the ratification edits but immediately before the ratification commit, whereas this task says they ran after the commit itself. Please describe the state consistently so readers do not treat pre-commit working-tree evidence as post-commit evidence.
      ratification commit itself, in the existing clone. The capture with
  • Files reviewed: 11/11 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)

LANDING — lane openxfactory-1, session a0729f@Eagle, 2026-09-12T18:07:59Z, PR #981 into openxFactory main (RATIFIED report-stale-grandfather-dispositions at 522412a — Brett Heap 2026-09-12T15:45Z verbatim 'do all as recomended' (PR #981 issuecomment-5646922774); CODE SURFACE — archives only on realization evidence, not at this landing; refs #965)

Guard at 2026-09-12T18:07:59Z on head 522412a6: six required checks SUCCESS; closingIssuesReferences = []; 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 177ba81 into main Sep 12, 2026
12 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

LANDED — lane openxfactory-1, 2026-09-12T18:08:27Z, PR #981 → 177ba81 (openxFactory main; ratification of report-stale-grandfather-dispositions (#965) landed at head 522412a; code surface: archive owed on realization evidence (main's decided green pytest-suite on the merge commit, or tree equality); #965 closes at the archive, not here; admin merge commit on 'land each when green'; Rule 6 window closed)

brettheap added a commit that referenced this pull request Sep 12, 2026
Bookkeeping only. `origin/main` moved a72f0a7 -> 177ba81 (#981
report-stale-grandfather-dispositions landed while this packet's own merge
of a72f0a7 was in flight). README `## OpenSpec Records` conflicted on the
same heading a third time: main's new `report-stale-grandfather-dispositions`
row kept FIRST, verbatim, with this packet's row immediately after it; the
earlier `decide-disposition-reading-per-family` row (already merged in
db20851) is untouched, and no other row is reflowed.
`tests/sequenced_after/corpus-ledger.yaml` auto-merged with both sides' rows
intact; `scripts/doc_health/families.py`,
`tests/doc-health/test_grandfather_dispositions.py` and the new
`report-stale-grandfather-dispositions` change directory came in from main
unmodified by this merge.

The packet's own gate re-run on the merged tree: exit 0 — 45 active
proposals, 45 declaring, 21 `implemented`, 3 a named release, 21 named by the
register, 0 outside the vocabulary. `pytest tests/target_release -q` 84
passed, unchanged.

refs #956

Lane: openxfactory-1
Co-Authored-By: Claude Sonnet 5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 12, 2026
origin/main advanced to 177ba81 (PR #981, report-stale-grandfather-dispositions)
since this branch's last push at a72f0a7. Conflict in README.md's OpenSpec
Records block: main's copy carried a now-stale ACTIVE row for THIS packet
(decide-disposition-reading-per-family, still showing Status: ratified,
"RATIFIED != ARCHIVED... archive is a separate act on a separate word, still
OWED") predating this PR's own archive of the same packet. Resolved by
dropping that stale active row rather than duplicating it — this branch
already carries the packet's archived-form entry under Archived changes,
and README must not list the same change twice. PR #981's own active row
(report-stale-grandfather-dispositions, a different, unrelated change) is
kept unchanged. tests/sequenced_after/corpus-ledger.yaml auto-merged clean
(disjoint keys).

Lane: openxfactory-1
refs #966
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 12, 2026
… (fifth)

origin/main moved to 4756149 via two PRs: #981 (report-stale-grandfather-
dispositions, a new active change adding an ADDED requirement plus
tests/scripts of its own to the doc-health family) and archive PR #1007
(archiving decide-disposition-reading-per-family to
openspec/changes/archive/2026-09-12-decide-disposition-reading-per-family/,
removing its active README row and adding its archived one). Neither PR
touches this packet's own change directory, openspec/specs/doc-health/
spec.md's *Currency of an active change's MODIFIED requirement blocks*
requirement, or scripts/doc_health/modified_block_currency.py -- verified by
`git diff ed75803..HEAD --stat -- openspec/changes/rule-inherited-unit-
naming-marker-spent/` returning empty.

Both README.md and tests/sequenced_after/corpus-ledger.yaml auto-merged
clean this time (git reported "Auto-merging", no conflict markers, no
manual resolution needed) -- unlike the prior four merges, this one did not
collide with this packet's own README row or the self-gate test file, since
neither #981 nor #1007 inserts at the same point in the active-changes list
or touches test_modified_block_currency_self_gate.py.

refs #955

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

ARCHIVE WORD for report-stale-grandfather-dispositions — recorded by the orchestrator (window openxfactory-ab [fc32d4]), 2026-09-12T22:25:43Z.

Brett Heap, 2026-09-12T22:25:43Z (given in the lane's window, first-hand, in answer to the orchestrator's statement that the two remaining code-surface packets — report-stale-grandfather-dispositions (#965) and gate-realization-axis-vocabulary (#956) — each require a separate archive word under their own tasks.md (§ 6.3 — "on Brett Heap's separate archive word"), with the invitation "Say 'archive both' or name one"), verbatim:

archive both

Scope, as the words were put: this is the separate post-ratification ARCHIVE word for BOTH packets, and this comment records it for report-stale-grandfather-dispositions (issue #965). It is not the merge of any pull request. Realization evidence (release-realization's archive gate for a non-empty code surface): this packet's ratification PR #981 merged into main as 177ba8196e16097e30aeb3f946ca8291b9ba4e92 at 2026-09-12T18:08:16Z, and main's OWN pytest-suite run on that merge commit — run 34710282045 — completed SUCCESS (a decided run at the tree the merge carries; no tree-equality argument is needed). The archive pull request encodes this word and that evidence (tasks.md archive section ticks, the ratification record, the README OpenSpec Records row) citing this comment's URL and UTC and the run id. The ratification word itself was Brett Heap 2026-09-12T15:45Z "do all as recomended".

refs #965 (closes at the archive pull request, not here).

brettheap added a commit that referenced this pull request Sep 12, 2026
…lock

Performed with:
  TZ=UTC python3 scripts/proposal-support.py . archive \
    report-stale-grandfather-dispositions --date 2026-09-12 --yes
through the pinned @fission-ai/[email protected] artifact (integrity and
dependency-closure verified, npm ci --ignore-scripts) — never a bare
`openspec archive` — on Brett Heap's separate archive word,
2026-09-12T22:25:43Z verbatim "archive both", recorded on PR #981
(issuecomment-5649094329) and mirrored on issue #965
(issuecomment-5649094412), with the condition it was given on already
met: PR #981 (the ratification, Brett Heap 2026-09-12T15:45:22Z "do all
as recomended") merged into main as
177ba81 at 2026-09-12T18:08:16Z, and
main's own pytest-suite run 34710282045 (event push, headBranch main,
head == the merge commit itself) ran conclusion success.

ORIGIN RETAINED: the declaration is unchanged since the ratifying
commit 5d099ac.

Rename purity: all 7 packet files move R100 (byte-identical rename,
git diff --cached -M --name-status). The old directory is gone from
the tree, the index and the worktree.

Promotion byte-identity, measured: the archived delta's full
`### Requirement: Governed corpus membership and the lifecycle scan
set` and the promoted requirement in openspec/specs/doc-health/spec.md
are BOTH 8,394 bytes, sha256
68be1ba5ea476431aa2792f530de36b03d6a114b5d6a394ae882d2613caa6670 —
byte-for-byte equal. git diff --numstat and -w --numstat over
openspec/specs/doc-health/spec.md both read `9 0` — a pure addition of
the one new scenario, `A recorded disposition matches no finding`; no
`Removed from canon` marker is owed and none is written, matching
tasks.md 3.2's own declaration.

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
…eed the ledger

Three things, on the recording, now that PR #1015 exists to cite:

1. README.md `## OpenSpec Records` — moves this packet's row from Active to
   Archived form (newest archive at the top), citing PR #1015, the merge
   commit, main's own pytest-suite run, the archive word, the ratification
   word, the promotion byte-identity, and how all twelve tasks.md boxes
   ticked (§6.1-6.4 on evidence+word; §7.1/#966 and §7.4/#968 on named
   successors now closed; §7.5/#967 with a gap disclosed rather than hidden;
   §7.3/§7.7 as decided-and-tested boundaries; §7.2/§7.6/§7.8 re-confirmed
   not taken, no successor filed).

2. `review/ratification-2026-09-12.md` — appended a new "## 8. Addendum —
   the separate archive word and its evidence" section, recording Brett
   Heap's 2026-09-12T22:25:43Z verbatim "archive both" (PR #981
   issuecomment-5649094329, mirrored on #965 issuecomment-5649094412) and
   the realization evidence it names (PR #981 merged 177ba81-
   eb3f946ca8291b9ba4e92, main's own pytest-suite run 34710282045 at that
   exact head, conclusion success). An ADDITION after the existing prose,
   never an edit to it — the file's own § 6 already anticipated this word
   as owed and not yet given; it is now given.

3. `tests/sequenced_after/corpus-ledger.yaml` — seeded via
   `validate-sequenced-after.py . --seed-ledger --moved-by '#1015'`. Exactly
   one row changed: report-stale-grandfather-dispositions from
   {state: active, moved_by: "#981", moved_on: "2026-09-11"} to
   {state: archived, moved_by: "#1015", moved_on: "2026-09-12"}.
   `--ledger-diff` confirms the corpus sweep ledger is consistent with the
   corpus (209 rows) afterward.

The self-gate (`tests/doc-health/test_modified_block_currency_self_gate.py`)
needs no edit: this packet never carried a row in `_LEDGER_SUBJECTS` (its own
MODIFIED block is a pure addition, no removed-unit marker, per tasks.md 3.2),
confirmed green (19 passed) both before and after this commit.

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

Development

Successfully merging this pull request may close these issues.

2 participants