Skip to content

Archive add-estate-repository-inventory: promote the estate inventory capability after realization 5e122388 - #1149

Merged
brettheap merged 4 commits into
mainfrom
change/archive-add-estate-repository-inventory
Sep 24, 2026
Merged

brettheap merged 4 commits into
mainfrom
change/archive-add-estate-repository-inventory

Conversation

@brettheap

@brettheap brettheap commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-5 (openXfactory-5)

Archives add-estate-repository-inventory (openxFactory #1087) through the
governed wrapper (scripts/proposal-support.py . archive add-estate-repository-inventory --yes),
promoting its delta onto openspec/specs/release-realization/spec.md:

  • Requirements: 19 -> 21 (two ## ADDED Requirements — The estate's
    repositories are enumerated in a governed inventory
    and A declared
    repository is judged for membership against the estate inventory
    — plus
    one ## MODIFIED Requirements, Code-surface declaration grammar is
    gated
    ). The other 18 requirement blocks are untouched.
  • Scenarios: 105 -> 122.
  • Directory moved to the dated archive path
    openspec/changes/archive/2026-09-23-add-estate-repository-inventory/
    (matching this commit's UTC author date, for the archive-date-vs-commit
    doc-health check); the pre-archive openspec/changes/add-estate-repository-inventory/
    no longer exists on this branch.
  • README's OpenSpec Records block: the bullet moves from Active to the head
    of Archived.
  • openspec/origin-dispositions.yaml gains one accept entry recording that
    ratified .openspec.yaml approved_by gained a fifth word (PR Amend add-estate-repository-inventory D0.2 row 3 on Brett Heap's word: codexFactory is admitted by gitlink and workflow, not by review-lane-pin.yaml (refs #1087) #1130,
    0f23341f) after the ratifying commit (344ad3c7) — a pure addition, so
    origin is retained rather than restored.
  • openspec/changes/archive/2026-09-23-add-estate-repository-inventory/tasks.md
    § 4.4 and §§ 5.1-5.3 ticked, § 5's heading recording the act; §§ 1-4.3 and
    § 6 untouched.
  • tests/doc-health/test_modified_block_currency_self_gate.py: the
    _LEDGER_SUBJECTS row this packet opened on 2026-09-21 is retired (its
    stated retirement condition — this archive, block promoted — is met);
    re-run confirms green (20 passed).

Merged-plus-green realization evidence this archive rests on: realization
PR #1119 squashed to 5e122388 on main, and main's own pytest-suite
run at 5e122388 is SUCCESS: https://github.com/opensoft/openxFactory/actions/runs/35907128216

Gates

  • OPENSPEC_TELEMETRY=0 openspec validate --all --strict — Totals: 109 passed, 1 failed (110 items); the one failure is openspec validate add-chain-attestation --type change, pre-existing and unrelated to this
    packet.
  • python3 scripts/validate-openspec-cli-pin.py --all (the enforced gate) —
    OK openspec-cli-pin: @fission-ai/[email protected] verified against its content address; every target validated --strict with 0 UNDISPOSITIONED failures. The one strict-validate failure above is a standing, cited,
    ACCEPTED EXCEPTION in contracts/openspec-cli-pin.yaml
    (add-chain-attestation, accepted by Brett Heap 2026-09-05, "take exit
    2") — not a blocker.
  • python3 scripts/validate-sequenced-after.py . — sequenced_after validation passed (44 active changes, 17 declaring the field);
    archive-date agreement passed; archive-date-vs-commit agreement passed (13 disposition(s) in force).
  • python3 scripts/validate-sequenced-after.py . --ledger-diff — now
    per-change sweep ledger consistent with the corpus (227 rows), after
    this branch's "Seed the per-change sweep ledger row for this archive"
    commit (445cc77a) moved the one add-estate-repository-inventory row
    from active to archived, moved_by "#1149"; before that commit it
    reported 4 stale findings (the row itself plus the three derived-total
    mismatches it caused).
  • python3 scripts/validate-code-surface.py . — code_surface validation passed (every active declaration's head is admitted, and every identifier it names is carried by the estate inventory).
  • python3 scripts/validate-target-release.py . — target_release validation passed (every active declaration is admitted).
  • python3 scripts/validate-estate-inventory.py . — estate inventory validation passed (every in-tree admission is named by this working tree); 23 gitlink-admitted rows report NOT RE-CHECKED, which this arm
    states is expected without an --estate-tree argument (its verdict is
    the same on every machine).
  • python3 scripts/proposal-support.py . verify (whole corpus) —
    proposal support verification ok; python3 scripts/proposal-support.py . verify add-estate-repository-inventory (by name, archived) —
    proposal support verification ok.
  • python3 scripts/doc-health.py --single-repo . — Findings: 31 critical, 22 error, 42 warning, 21 info. New regressions vs previous report: 0. Independently controlled against a same-kind clone of
    main's own tip (f1c690b8, --single-repo both sides,
    directory-name-normalized): 0 finding lines only-on-branch, 1
    only-on-main — this packet's own modified-block-currency finding for
    its (then-active) MODIFIED block, which disappears because the packet
    archived. See ruling item R1 below for what that same family cannot see:
    a MODIFIED block's currency AT THE MOMENT OF PROMOTION, measured against
    canon's history rather than its live state.
  • python3 -m pytest tests/doc-health/test_modified_block_currency_self_gate.py -q
    (isolated) — 20 passed in 55.80s.
  • python3 -m pytest tests/ -q -m "not postgres" (the required gate, run
    by CI) — pytest-suite run
    35928597281
    at this pull request's head 445cc77a: SUCCESS, selected=8855 passed=8849 skipped=6 failures=0 errors=0 (floors: selected≥7050 margin
    1805, passed≥7044 margin 1805, skipped==6 exact); freshness verifier
    passed; vector replay passed. A local supplementary run of the same
    suite, excluding six test files that cannot collect without the
    openDox/openXdox gitlinks materialized (verified byte-identical
    collection errors on a same-state clone of main's own tip — this
    clone does not initialize submodules, so this is pre-existing and
    environmental, not a regression) is diagnostic only; CI's run above is
    the decisive, required result.

Disclosed consequence for the ratifier (ruling item R1)

Promoting the ratified ## MODIFIED Requirements block for Code-surface
declaration grammar is gated
exactly as add-estate-repository-inventory's
delta writes it (verified byte-for-byte against the promoted spec above)
makes canon's non-normative **AMENDED BY amend-code-surface-grammar-comma-and (2026-09-18)** provenance paragraph read with the delta's opening sentence:
"Every paragraph and every scenario of this block is promoted canon's own
bytes except what scripts/code_surface.py made untrue on the day the gate
landed: …". That drops the round-3 qualification Brett Heap's word made to
this same sentence in commit 35afdc3f ("Handle Copilot round 3",
2026-09-21): "MOST paragraphs and scenarios of this block are promoted
canon's own bytes, UNCHANGED. THREE units are CORRECTED IN PLACE … TWO
explanatory paragraphs and ONE scenario … are ADDED BY THIS AMENDMENT and are
NOT canon's prior bytes." Before this pull request, main's canon carried
the ROUND-3 (qualified) sentence; this pull request's promotion overwrites it
with the delta's OLDER (unqualified) sentence — measured for this
disclosure: the two openings diverge for their first 68 characters, then are
byte-identical for the remaining 1,599 characters of the paragraph. No
SHALL/MUST/SHOULD/MAY is involved — the requirement's normative text
is unchanged either way — and every test and doc-health check run for this
archive is green under either wording (the modified-block-currency
carriage row this packet's own record opened on 2026-09-21 retires here
regardless, exactly as its own comment named — see Gates above).

This is the condition document-lifecycle's ratified requirement "A
MODIFIED requirement block restates the requirement as canon currently
states it" (openspec/specs/document-lifecycle/spec.md) names: "a change
whose requirement moved in canon after the block was written SHALL bring the
block forward before it archives", or declare the deletion by a Removed from canon by marker — with "a recorded disposition in the aggregation
checkout's health/dispositions.yaml" standing as the fallback "for a delta
that is ratified and cannot be re-authored".

Stated neutrally, two ways to close this are open:

  • (A) Land this pull request as ratified, and record the round-3
    qualification's loss by that fallback disposition in opensoft/xFactory
    health/dispositions.yaml, citing this pull request — done by this lane
    after landing.
  • (B) Bring the block forward first: amend the ratified delta to carry
    the round-3 (qualified) sentence on Brett Heap's word, regenerating this
    archive commit and re-running the gates above against the corrected text.

Put to Brett Heap by the lane before landing; his answer is recorded as a
RULED line in lanes/log/openXfactory-5.md.

RULED 2026-09-23 ~23:05Z, Brett Heap, verbatim multichoice answer in the
lane's terminal: "Land as ratified + disposition (Recommended)"
(RULED
against this pull request in opensoft/brett-wip
lanes/log/openXfactory-5.md). This pull request therefore lands as
ratified, by MERGE COMMIT, and the lane files ONE aggregation pull request
in opensoft/xFactory adding to health/dispositions.yaml the fallback
deletion disposition for the dropped #1112 round-3 unit and the
uncited-resolution row the nightly needs once the gitlink moves past this
archive; that pull request cites this one and its merge commit.

Standing

THE ARCHIVE WORD HAS BEEN GIVEN: Brett Heap, verbatim "archive it when the draft is up" (2026-09-23, terminal; RULED in opensoft/brett-wip lanes/log/openXfactory-5.md at 2026-09-23T21:04:55Z against #1087) and "land it when the draft is green" (2026-09-23 ~22:20Z). The lane lands this pull request by MERGE COMMIT, never squash, once it is green and Copilot-clean, so the archive directory's date matches its adding commit.

Closes #1087

This keyword is placed in this pull request's body and nowhere else, per the packet's § 5.3.

Refs #1101

🤖 Generated with Claude Code

Summary by Sourcery

Archive the realized estate repository inventory proposal and promote its ratified requirements into the release-realization specification.

New Features:

  • Promote governed estate repository inventory and repository-membership validation requirements into the release-realization specification.

Enhancements:

  • Archive the realized estate repository inventory proposal and update its lifecycle records, sequencing ledger, and documentation-health tracking.
  • Record acceptance of the post-ratification origin metadata change while retaining the ratified origin.

Documentation:

  • Move the proposal from Active to Archived OpenSpec records and document its archive and realization evidence.

Tests:

  • Retire the proposal's modified-block currency ledger entry after promotion and update the associated self-gate expectations.

… capability onto its specs after realization 5e12238

On Brett Heap's archive word, verbatim "archive it when the draft is up"
(2026-09-23, in the lane's terminal; RULED in opensoft/brett-wip
lanes/log/openXfactory-5.md at 2026-09-23T21:04:55Z against #1087).
code_surface is non-empty, so under release-realization the packet
archives on merged-plus-green realization evidence, which is in hand: the
packet landed as #1101 -> 344ad3c and its row-3 amendment as #1130 ->
0f23341; the realization landed as #1119 -> 5e12238 (squash from
5d44003, whose pytest-suite run 35904638873 is green); and pytest-suite
decided SUCCESS on main at 5e12238 itself, run 35907128216
(https://github.com/opensoft/openxFactory/actions/runs/35907128216).

Performed through the governed wrapper, never a bare openspec archive:

    TZ=UTC python3 scripts/proposal-support.py . archive \
        add-estate-repository-inventory --yes

exit 0: "Applying changes to openspec/specs/release-realization/spec.md:
+ 2 added, ~ 1 modified", "Totals: + 2, ~ 1, - 0, -> 0", archived as
2026-09-23-add-estate-repository-inventory, over the content-addressed
@fission-ai/[email protected] pin and not the 1.13.1 on PATH; --date was not
passed, so the directory takes today in UTC, the UTC day of this commit.

ORIGIN RETAINED THROUGH ONE RECORDED ACCEPTANCE. The gate first refused:
#1130 appended the fifth word ("Drop the pin admission on row 3") to
.openspec.yaml approved_by after the ratifying commit 344ad3c, a pure
addition. Restoring the ratified bytes would delete that record, so this
commit adds ONE accept entry to openspec/origin-dispositions.yaml in the
shape of that file's first entry (ratified_at 344ad3c, mutation_at
0f23341, changed_keys [approved_by], the verbatim word and its
citations), and the wrapper then printed ORIGIN RETAINED against the
accepted mutation.

THE PROMOTION IS THE DELTA AS WRITTEN, measured on both sides: each block
extracted by its heading from the archived delta and from canon, and
hashed. release-realization is the only capability the delta touches. The
MODIFIED block "Code-surface declaration grammar is gated" (11 scenarios,
15,971 bytes, sha256 2b9a75d6bf836c8e...) and the ADDED "The estate's
repositories are enumerated in a governed inventory" (8 scenarios, 12,297
bytes, 3020c2c916df22bb...) and "A declared repository is judged for
membership against the estate inventory" (9 scenarios, 7,712 bytes,
8189458612a21dcb...) are byte-identical on both sides; requirements
19 -> 21, scenarios 105 -> 122, the other eighteen requirement blocks
byte-identical, --numstat +312 -19 and -w the same. The CLI diverged from
the delta nowhere. One consequence is stated rather than left to be
found: the block carries #1108's RATIFIED AMENDED BY paragraph, so canon
no longer carries the round-3 qualification #1112 made to it (35afdc3).

Also in this commit: tasks.md § 4.4 and §§ 5.1-5.3 ticked (the wrapper
refuses an open box) with § 5's heading recording the act, §§ 1-4.3 and
§ 6 untouched; the README OpenSpec Records bullet moves from Active to the
head of Archived, its pull-request link the ARCHIVE-PR-NUMBER-PENDING
marker that the ledger-seed commit replaces once the pull request exists;
and the modified-block-currency self-gate's _LEDGER_SUBJECTS row for this
block retires on its own stated condition (14 literal entries, 13 unique).

The one keyword that shuts #1087 sits in the archive pull request's body
and in no commit message.

Refs #1087
Refs #1101

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings September 23, 2026 22:27
@sourcery-ai

sourcery-ai Bot commented Sep 23, 2026

Copy link
Copy Markdown

Reviewer's Guide

This PR archives the ratified estate repository inventory packet through the governed wrapper, promotes its two new inventory/membership requirements and modified grammar requirement into release-realization canon, records the required origin acceptance, and retires the resolved documentation-health ledger entry after merged-plus-green realization evidence.

Flow diagram for governed estate inventory archive

flowchart LR
    RatifiedPacket["Ratified estate inventory packet"] --> Realization["Merged realization 5e122388"]
    Realization --> Green["pytest-suite success on main"]
    Green --> Wrapper["proposal-support.py archive --yes"]
    Wrapper --> Promotion["Promote 2 added and 1 modified requirements"]
    Wrapper --> Archive["Move packet to dated archive"]
    Wrapper --> Origin["Record origin acceptance"]
    Promotion --> Canon["release-realization canon"]
    Archive --> Archived["Archived packet"]
Loading

File-Level Changes

Change Details Files
Promote the estate repository inventory capability into release-realization canon while archiving the completed OpenSpec change.
  • Move the change packet into the dated archive directory and update the README record from Active to Archived.
  • Use the governed archive wrapper to add two requirements and modify the code-surface grammar requirement, increasing canon from 19 to 21 requirements and from 105 to 122 scenarios.
  • Record acceptance of the post-ratification origin mutation in the origin dispositions ledger.
  • Capture merged realization and green-main evidence by completing the relevant archive tasks.
  • Retire the modified-block currency ledger subject after byte-identical promotion and verify doc-health remains green.
README.md
openspec/changes/archive/2026-09-23-add-estate-repository-inventory/.openspec.yaml
openspec/changes/archive/2026-09-23-add-estate-repository-inventory/design.md
openspec/changes/archive/2026-09-23-add-estate-repository-inventory/proposal.md
openspec/changes/archive/2026-09-23-add-estate-repository-inventory/review/ratification-2026-09-18.md
openspec/changes/archive/2026-09-23-add-estate-repository-inventory/specs/release-realization/spec.md
openspec/changes/archive/2026-09-23-add-estate-repository-inventory/tasks.md
openspec/origin-dispositions.yaml
openspec/specs/release-realization/spec.md
tests/doc-health/test_modified_block_currency_self_gate.py
Define the governed estate inventory and membership-validation behavior in the release-realization specification.
  • Require machine-readable repository rows with identity, governance class, admission evidence, and exactly five admission kinds.
  • Specify deterministic in-tree evidence checks and explicitly invoked, carrier-identity-verified gitlink rechecks without network access.
  • Require active code-surface heads to resolve against the inventory, fail closed for unknown or external repositories, report former addresses, and skip archived or unreadable declarations appropriately.
  • Add scenarios covering admission, provisional change-created repositories, identity verification, bare-name resolution, stale rows, external repositories, and archived proposals.
openspec/specs/release-realization/spec.md
Update documentation health tracking to reflect completion of the promoted modified requirement.
  • Retire the inventory requirement from the carriage ledger on its stated archive-and-promotion condition.
  • Keep the ledger population assertion aligned with the remaining findings and document the measured transition.
tests/doc-health/test_modified_block_currency_self_gate.py

Assessment against linked issues

Issue Objective Addressed Explanation
#1087 Create a governed, machine-readable inventory of estate repositories containing each repository's name, owner/repo identifier, estate role, governance class, and admission or pin evidence. ❌ The PR archives and promotes the OpenSpec requirements describing the inventory, but it does not add the required inventory file (such as scripts/estate-repository-inventory.yaml) or implement its repository rows and validation. The diff explicitly remains packet/documentation-only.
#1087 Implement membership validation so code_surface repository identifiers are checked against the estate inventory, including appropriate handling of unknown, external, former, archived, and unresolved identifiers. ❌ The PR updates specification text and archival metadata only. It does not modify scripts/code_surface.py, add a new validator, or add tests implementing the membership check. Although the promoted specification states that the capability exists in a realization commit, that implementation is not present in this PR's changes.

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 and others added 2 commits September 23, 2026 22:28
The archived bullet for add-estate-repository-inventory carried a
PR-number placeholder in both the link text and the URL
(`PR #ARCHIVE-PR-NUMBER-PENDING`, `.../pull/ARCHIVE-PR-NUMBER-PENDING`)
pending the archive pull request's existence. It now exists as PR #1149;
both occurrences are replaced with `PR #1149` and `.../pull/1149`.

Refs #1087
Refs #1101

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Sonnet 5 <[email protected]>
python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by
'#1149' moves add-estate-repository-inventory's row from active to
archived (moved_by #1149, moved_on 2026-09-23), the one row this
archive touches. --ledger-diff now reports the ledger consistent with
the corpus (227 rows); before this commit it reported 4 stale findings
(the row itself plus the three derived-total mismatches it caused).

Refs #1087
Refs #1101

Lane: openxfactory-5 (openXfactory-5)
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.

Copilot review overview

🟡 Changes recommended

Replace the README placeholder/broken URL and resolve the contradictory task note.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Low severity

Open (1)
What changed in this PR

Archives and promotes the estate repository inventory capability into the release-realization specification.

Changes:

  • Archives the OpenSpec packet and updates lifecycle records.
  • Promotes two requirements and modifies the grammar requirement.
  • Records origin disposition and retires the resolved doc-health ledger entry.
File Summary
tests/​doc-health/​test_modified_block_currency_self_gate.py Retires the resolved ledger subject.
README.md Updates active and archived records.
openspec/​specs/​release-realization/​spec.md Promotes inventory requirements.
openspec/​origin-dispositions.yaml Records accepted origin metadata changes.
openspec/​changes/​archive/​2026-09-23-add-estate-repository-inventory/​tasks.md Records archive task completion.
openspec/​changes/​archive/​2026-09-23-add-estate-repository-inventory/​specs/​release-realization/​spec.md Preserves the specification delta.
openspec/​changes/​archive/​2026-09-23-add-estate-repository-inventory/​review/​ratification-2026-09-18.md Preserves ratification history.
openspec/​changes/​archive/​2026-09-23-add-estate-repository-inventory/​proposal.md Preserves proposal details.
openspec/​changes/​archive/​2026-09-23-add-estate-repository-inventory/​design.md Preserves design decisions.
openspec/​changes/​archive/​2026-09-23-add-estate-repository-inventory/​.openspec.yaml Preserves packet metadata.

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

Comment thread README.md Resolved
Copilot AI review requested due to automatic review settings September 23, 2026 22: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.

Copilot review overview

🔵 Needs a closer look

Resolve the pin-shape and immutable-referent contract inconsistencies, and remove the stale contradictory task note.

Review effort: Lite
Findings: None

Resolved since last review (1)

N1: tasks.md § 4.4 is ticked `[x]` but its note opened "left `- [ ]`
rather than ticked", contradicting the box it sits under (flagged by
Copilot as a stale contradictory note). Reworded the opening to
"insufficient alone to tick this box" and pointed to the box being
"ticked below" — the run id (35896651067), head (c2d4309), duration
and pass count are unchanged; the actual ticking evidence (main's
green run 35907128216 at 5e12238) already follows in the next
paragraph and is untouched.

N2: README's archived bullet and tasks.md § 5.2 both said "the other
eighteen requirement blocks byte-identical" for the delta's promotion.
Independently re-measured raw (unnormalized) against the same before/
after spec files the delta comparison used: seventeen are exactly
byte-identical; the eighteenth, the former last block *A symlink-loop
proof is built at test time and never committed*, is identical in its
own bytes but now carries one trailing blank separator line it did not
need at end-of-file before the two ADDED blocks were appended after it
by this same promotion. Both records now say so exactly.

Nothing else in the packet directory changes; canon
(openspec/specs/release-realization/spec.md) and the delta
(.../specs/release-realization/spec.md under the archive directory)
are untouched.

Refs #1087
Refs #1101

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 23, 2026 23:10

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.

Copilot review overview

🔵 Needs a closer look

The promoted modified block loses required round-3 wording and lacks the required disposition.

Review effort: Lite
Findings: None

Previously missed (1)

In code that hasn't changed since last review

Medium severity Archive preserves stale AMENDED BY wording without required disposition

openspec/​specs/​release-realization/​spec.md:1149

This promoted MODIFIED block deliberately carries the pre-round-3 **AMENDED BY** wording, so canon loses the qualification that existed at the archive head. That conflicts with document-lifecycle's requirement that a block be current when it archives; its fallback is a cited health/dispositions.yaml disposition for a ratified block that cannot be re-authored, but no such disposition is part of this archival act. Please either carry the qualified paragraph in the delta or record the required disposition before treating this archive as complete.

@sonarqubecloud

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-5 (openXfactory-5)

LANDING — lane openXfactory-5, session 651195c7-1854-491e-894a-e6542ef5e9f4@Eagle, 2026-09-24T13:55:28Z, PR #1149 into opensoft/openxFactory main

@brettheap
brettheap marked this pull request as ready for review September 24, 2026 13:55
@brettheap
brettheap merged commit dd2466a into main Sep 24, 2026
16 checks passed

@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 20 hours and 13 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-5 (openXfactory-5)

LANDED — lane openXfactory-5, session 651195c7-1854-491e-894a-e6542ef5e9f4@Eagle, 2026-09-24T13:55:48Z, PR #1149 into opensoft/openxFactory main → merge dd2466a; Archive add-estate-repository-inventory: promote the estate inventory capability after realization 5e12238

brettheap added a commit that referenced this pull request Sep 24, 2026
#656 5815412869) (#1151)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

**THE RATIFICATION RECORD for `add-neutral-product-standalone-operability`** (landed as a draft by #1144 → `94b6f7f1`). No requirement or scenario text moves. It lands through the holder's lander in a Rule 6 window; this actor merges nothing.

## The word

RULED by Brett Heap, 2026-09-24T13:51:09Z, interactive in the lane session, verbatim *"ratify #1144, land the follow-ons, (a) on C1–C5"*, recorded at #656 comment [`5815412869`](#656 (comment)).

**Only item 1 of that ruling is this PR's subject.** The ruling's other items are other acts:
- item 2, the archive follow-ons;
- item 3, the banked helper items C1–C5;
- item 4, C6, which stays open.

## What is ratified, and what the word authorizes

- **Ratified:** the packet's text at PR #1144's final head `19237b91`. That head landed as squash commit `94b6f7f1` with an identical tree, and the packet did not move between that landing and the word. The next commit on main, #1149 → `dd2466ad`, touched no byte of it.
- **Seventeen requirements and seventy-five scenarios.** The word strikes nothing, so requirement 3 stands. That answers the one question the packet reserved for the ratification read: whether RULED ASK-2 forecloses requirement 3 (`design.md` § D5, `tasks.md` 3.0).
- **Authorized:** per the ruling record, the realization of **release 1** (phases 1-3). None of it happens by the word itself. The ruling record names release 1 alone.
- **Nothing archives or promotes.** The change archives only on merged, green realization evidence for BOTH releases (RULED `5800995035`).

## What this PR changes

The spec delta is untouched, and none of the changes below is requirement or scenario text.

**`proposal.md`**
- `Status: ratified`, with a `Ratified:` citation.
- A qualifier above the filing's "FILING IS NOT RATIFYING" paragraph. That paragraph is kept verbatim as the filing's record.
- A `## Ratification record` section.
- A read-at-ratification note on the ASK-2 paragraph.

**`design.md` and `tasks.md`**
- `Status: ratified`, with a `Ratified by:` citation. This is the citation split the lane's #1140 and #1141 carried.
- The same read-at-ratification note in `design.md` § D5 and in its "What is still open" paragraph.
- `tasks.md` 1.8 (this act) and 3.0 (the ratification read) are ticked. Boxes go from 9 / 106 / 9 to **11 `[x]` / 104 `[ ]` / 9 `[~]`**.

**`.openspec.yaml`**
- `approved_by` / `approved_on` are ADDED after `proposed_on`.
- `kind`, `id`, `reason`, `proposed_by` and `proposed_on` do not move.
- The origin-retention walk resolves the ratifying commit to `3f21c945`: *"ORIGIN RETAINED … declaration unchanged since the ratifying commit"*.

**Also changed**
- **New record:** `review/ratification-2026-09-24.md` (`Status: ratified`, one citation).
- **README.md:** the *Active changes* entry's status, now linking the record.

The sequenced-after ledger row does not move.

## Copilot

- **Round 1 at `3f21c945`: two Low findings, both taken in `00602e31`.**
  - `r4094670415`: the `target_release:` gloss still said *"Until then it is `Status: draft` and approves nothing"*. It now says the packet was draft before its ratification.
  - `r4094670493`: 1.8's heading named `Ratified by:` on all three documents. It now names one sanctioned citation per document and the split, and a marked parenthesis keeps the as-filed wording.
- `.openspec.yaml` is untouched since the ratifying commit, so origin retention still reads `3f21c945`.
- **Copilot at `00602e31`: "Approval recommended"**, with Findings: None and 0 of 2 threads unresolved.

## Gate state at `00602e31`

The tree is main `dd2466ad` plus this PR's two commits.

```
openspec validate add-neutral-product-standalone-operability --strict → valid
openspec validate --all --strict             → 110 passed, 1 failed (111 items); main alone: the same
                                               (the 1 = add-chain-attestation's ratified disposition)
validate-openspec-cli-pin.py --all --no-cache → exit 0, 0 UNDISPOSITIONED failures
validate-code-surface.py .                   → passed
validate-target-release.py .                 → passed
validate-sequenced-after.py . / --ledger-diff → pass; ledger consistent (228 rows), this row unmoved
proposal-support.py . verify <change>        → ok; origin retention: ORIGIN RETAINED
doc-health.py --single-repo .                → report byte-identical to main alone; 0 findings name this packet
                                               (negative control: dropping the Ratified: line fires ratified-provenance)
pytest (doc-health citation/subject, sequenced_after, former_id_arrival,
        code_surface, estate_inventory, proposal-support) → 797 passed
```

**CI at `00602e31`: all 14 check runs are green.** `pytest-suite` reports 8440 passed, 6 skipped and 0 failed (junit: selected 8857, failures 0, errors 0). Main is still `dd2466ad`.

**Rule 6:** this PR touches `openspec/changes/` and the README OpenSpec Records block, so it lands in a declared window, and not by this actor.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 24, 2026
…, RULED 5815412869 C1) (#1152)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

## What this is

This is D-13 of the owed-acts register. RULED at #656 comment [5815412869](#656 (comment)) (item 3, **C1, option (a)**: *"correct the stale '124 of 143' current-corpus count (D-13) to the figure re-derived at authoring time"*) and claimed at [5815604830](#656 (comment)).

The present-tense claim *"124 of this corpus's 143 [archived rows carry a later `moved_on`]"* goes stale by construction every time another change archives. So the figure is derived when the commit is made.

## The figure: 129 of 183, at `main` `dd2466ad`

It was derived two independent ways, and the build refuses (exit 3) if they disagree:

| method | archived | later `moved_on` | equal | predating |
| --- | ---: | ---: | ---: | ---: |
| the repository's own `scripts/sequenced_after.py` (`archive_dates()` + the ledger) | 183 | **129** | 54 | 0 |
| a from-scratch regex parse of `corpus-ledger.yaml` and `openspec/changes/archive/` (no shared code) | 183 | **129** | 54 | 0 |

`openspec/changes/archive/` holds 183 directories. The register's own figure (128/172), the helper's (129/180 at `2e222d98`) and a first read today (129/182 at `94b6f7f1`) have all rotted since. `#1149`'s archive landed in between.

## The six live sites

All six are undated, present-tense "current corpus" claims. The change is prose only: no site is on an `assert` line, and no test compares the renumbered text.

| file | line | where |
| --- | ---: | --- |
| `scripts/validate-sequenced-after.py` | 42 | module docstring |
| `scripts/validate-sequenced-after.py` | 402 | the `validate_corpus` comment |
| `scripts/validate-sequenced-after.py` | 739 | `--strict-archive-dates` help text |
| `tests/sequenced_after/test_sweep.py` | 2015, 2017 | `test_an_UNMOVED_archived_row_is_NOT_RESTAMPED_by_the_new_rule` docstring |
| `tests/sequenced_after/test_sweep.py` | 2049 | `test_a_LATER_moved_on_is_NOT_a_finding_by_default` docstring |
| `tests/sequenced_after/test_sweep.py` | 2108 | `test_STRICT_ARCHIVE_DATES_asks_for_the_STRONGER_reading` docstring |

**Left alone, because they are dated:**
- the validator's two *"before it was made a gate"* `143`s (lines 36 and 396);
- the whole MOVEMENT LOG docstring of `test_the_LIVE_corpus_and_the_LEDGER_agree_row_by_row()` (lines 232–1254, every entry pinned to a historical sha). It is located by function name, not by line range;
- `scripts/sequenced_after.py`'s own *"as measured 2026-09-18"* commentary.

The build refuses (exit 4) if any site is missing or duplicated, if one sits on an assert line, or if an unexpected undated `124`/`143` appears in either file.

## If main gains an archive before this lands

`main` has since moved to `cd494e4c` (#1151, which touched no archive directory and not the ledger). Re-derived there, both methods still agree on **129 of 183**. If an archive lands, the total moves by one. The build is re-runnable: [`d13-build.sh`](https://github.com/opensoft/brett-wip/tree/main/handoffs/xFactory/attachments/lane-opendox/c134) re-derives the figure at any `main`.

## Touches

`scripts/validate-sequenced-after.py`, `tests/sequenced_after/test_sweep.py` (+7 / −7). Nothing under `openspec/changes/`, and not the README OpenSpec Records block, **so no Rule 6 landing window**. Sibling search at build time: none of the open PRs (#518, #594, #1138) touches either file.

## Measured (local, same-kind full clones at `…/openxFactory`, pinned CI lock, pinned OpenSpec CLI 1.12.0, pinned decision core `b21f0100`)

| gate | `main` `dd2466ad` | this branch |
| --- | --- | --- |
| `scripts/validate-sequenced-after.py .` | passes | passes |
| `pytest tests/sequenced_after -q` | 286 passed | 286 passed |
| the PR gates' scripts (`verify-openxwallet-pin`, `validate-clearing-dispatch`, `verify-openxdox-pin`, `verify-opendox-pin`, `validate-release-tag-gate`, `validate-signed-execution-chain --require-pinned-wallet-vocabulary`, `wallet-yaml-syntax-gate`, `validate-openxwallet`, `validate-factory-identity`, `validate-openspec-cli-pin --all --no-cache`, `validate-openreposhape-pin`, `validate-carve-manifest`) | all rc=0 | all rc=0 |
| `validate-former-id-arrival.py --base dd2466a --head HEAD` | — | passed |
| `openxdox-consumer-gate` pin suites | 105 / 105 / 0, HOLDS | 105 / 105 / 0, HOLDS |
| `openxdox-consumer-gate` `tests/ideation-dashboard` | 1137 / 1137 / 0, HOLDS | 1137 / 1137 / 0, HOLDS |
| `pytest-suite` in CI (`tests/ -m "not postgres"`, the required check) | 8857 / 8851 / 6, freshness and vector replay passed (`main`'s test tree, from #1151's run; #1151 touched no test) | 8857 / 8851 / 6, freshness and vector replay passed ([job 107683353404](https://github.com/opensoft/openxFactory/actions/runs/36014484303/job/107683353404)) |
| `pytest-suite` locally, per test case | 8435 passed, 8 skipped, 3 failed | 8435 passed, 10 skipped, 1 failed |

Both local full runs collected the same 8446 test cases, with none unique to either side. The six cases whose outcome differs are environment-bound, and these seven prose lines do not reach them:
- five are in `tests/doc-health/test_pin_reachability.py`, which skips or fails when a local clone cannot consult the retention ref namespace;
- one is `tests/snapshot_equivalence/test_snapshot_equivalence.py::test_a_prefix_whose_path_cannot_be_resolved_is_replaced_not_raised_on`, which passed on the branch run.

Both runs share one failure: `tests/hermes_runtime_contracts/test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization]`. It is a subprocess timeout that occurred while five full suites ran at once. CI is free of all of that, and it gives the same triple on both sides.


Lane: openxfactory-4
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.

Carried forward from gate-code-surface-declarations' archive: § 6.1 an inventory of the estate's repositories for the code_surface: gate

2 participants