Repository navigation
Propose add-estate-repository-inventory: the code_surface: gate judges declared repository sets against an inventory of the estate - #1101
Conversation
… declared repository set against an inventory of the estate Lane: openxfactory-5 (openXfactory-5) PACKET ONLY. No script, no inventory file and no test is added here; the realization is a LATER pull request on the ratifying word, and the archive a separate act on merged-plus-green evidence. Answers #1087, the successor gate-code-surface-declarations tasks.md § 6.1 named and that packet's archive act filed at the landing of PR #1076. The candidate inventory was built BEFORE the design, on origin/main ad089e8, from four naming sites plus a fifth the measurement forced: the aggregation repository's .gitmodules (23 submodules), this repository's contracts/*-pin.yaml (7 pins naming 6 distinct repositories, 2 of them no submodule), .github/workflows/ (1, already a submodule), the aggregation root itself (1, which no .gitmodules can name because a superproject is not its own submodule), and a RATIFIED change whose realization creates a repository (1). TWENTY-SEVEN ROWS, in design.md D0.2. The declared population was read through the SHIPPED reader and never by a private scan: 49 active proposals, 49 declaring, 7 none, 8 named by the closed register, 34 a readable repository list, and those 34 heads name SIX distinct identifiers, ALL SIX carried by the candidate. So the membership arm refuses NOTHING on the day it lands, which falsifies the predecessor's stated fatal cost for membership resolution. ONE ## MODIFIED block and TWO ## ADDED requirements, 26 scenarios. The MODIFIED block is OWED rather than preferred: the promoted "SHALL NOT judge its MEMBERSHIP" is unconditional in its own words, so an ADDED-only delta would leave canon carrying two requirements that cannot both be obeyed. It restates the requirement exactly as canon states it but for ONE paragraph, which is lifted by removing its stated reason. No other active change writes that requirement key, so the block is SOLE and sequenced_after: [] is a corroborated root claim. Refs #1087 Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Reviewer's GuideThis packet-only PR proposes, but does not yet implement, a governed 27-row estate repository inventory and a membership arm for the code-surface gate. It uses measured repository sources and corpus data to justify the inventory location, five admission-evidence kinds, governance classes, former-address reporting, and a one-block modification to remove the predecessor's obsolete no-inventory limitation; the actual inventory, readers, validators, membership logic, tests, and spec promotion remain later ratification- and realization-dependent work. Sequence diagram for proposed code-surface membership validationsequenceDiagram
participant Validator as validate-code-surface.py
participant Reader as code_surface.py
participant Inventory as estate_inventory.py
participant Map as repository-identity.yaml
Validator->>Reader: declaration()
Reader-->>Validator: declaration type and head
Validator->>Reader: parse_head()
Reader-->>Validator: repository identifier
Validator->>Inventory: resolve identifier
alt identifier matches an inventory row
Inventory-->>Validator: membership and governance class
else former address
Inventory->>Map: resolve former address
Map-->>Inventory: current address
Inventory-->>Validator: report current address
else no matching row
Inventory-->>Validator: membership finding
end
Entity relationship diagram for the proposed estate inventoryerDiagram
ESTATE_INVENTORY {
string schema_version
string kind
string repository
string name
string governance
string admitted_by
boolean provisional
}
CODE_SURFACE_DECLARATION {
string identifier
string declaration_type
}
ADMISSION_EVIDENCE {
string kind
string site
string change_id
}
REPOSITORY_IDENTITY_MAP {
string former_address
string current_address
}
ESTATE_INVENTORY ||--o{ ADMISSION_EVIDENCE : records
CODE_SURFACE_DECLARATION }o--|| ESTATE_INVENTORY : resolves_to
REPOSITORY_IDENTITY_MAP }o--|| ESTATE_INVENTORY : resolves_former_address
Flow diagram for the packet-only proposal lifecycleflowchart TD
Packet["Packet-only proposal"] --> Ratify{Ratified?}
Ratify -->|No| Draft["Remain draft\nno implementation"]
Ratify -->|Yes| Realize["Later realization PR"]
Realize --> Implement["Add inventory, readers, validator, membership arm, and tests"]
Implement --> Verify["Run validation and pytest-suite"]
Verify -->|Merged and green| Archive["Separate archive act\npromote spec delta and close #1087"]
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Lane: openxfactory-5 (openXfactory-5) Machine-seeded from the live corpus through the sanctioned command, never hand-written: python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#1101' wrote tests/sequenced_after/corpus-ledger.yaml (220 rows, 2 moved by #1101). - add-estate-repository-inventory - gate-code-surface-declarations TWO ROWS MOVED AND THE SECOND IS THE DOCUMENTED CONSEQUENCE OF THE FIRST, not a stray edit. gate-code-surface-declarations flips sole -> co-modifier because this packet's ## MODIFIED block co-writes the requirement key that change wrote, which is exactly the flip the ledger's own header describes. Its state stays archived and its declares/depth are unchanged; only class, moved_by and moved_on move. python3 scripts/validate-sequenced-after.py . sequenced_after validation passed (50 active changes, 18 declaring the field). archive-date agreement passed. archive-date-vs-commit agreement passed. python3 scripts/validate-sequenced-after.py . --ledger-diff per-change sweep ledger consistent with the corpus (220 rows). Refs #1087 Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The ledger row is missing, and the specification/design contain unresolved admission-kind and provisional-row contradictions.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
This packet proposes a governed repository inventory and future code_surface: membership gate without implementing them.
Changes:
- Adds proposal, design, tasks, specification delta, and metadata.
- Registers the active change in
README.md. - Defers inventory, validator, and tests to a later realization.
File summaries
| File | Summary |
|---|---|
README.md |
Registers the active proposal. |
openspec/changes/add-estate-repository-inventory/tasks.md |
Defines deferred work; the required ledger row is missing. |
openspec/changes/add-estate-repository-inventory/specs/release-realization/spec.md |
Adds inventory and membership requirements with unresolved consistency issues. |
openspec/changes/add-estate-repository-inventory/proposal.md |
Defines scope and rationale. |
openspec/changes/add-estate-repository-inventory/design.md |
Records measurements and design decisions with admission-kind inconsistencies. |
openspec/changes/add-estate-repository-inventory/.openspec.yaml |
Records proposal origin and related metadata. |
Review details
Suppressed comments (4)
openspec/changes/add-estate-repository-inventory/design.md:292
- D4 says the closed admission set has four kinds, but this packet's requirement and D1.1 define a fifth
changekind for provisional repositories such as LedgerxWallet. Leaving the decision text at four contradicts the proposed contract and could cause the realization to omit or reject the only forward-looking admission path.
row whose evidence has gone. The four kinds are `gitlink`, `pin`, `workflow`,
`root`, and they are closed because they are exactly the ways this estate has
named a repository (D0.1, D0.2).
openspec/changes/add-estate-repository-inventory/design.md:58
- D0.2 uses
wfas anadmitted_bykind, but the normative requirement defines the exact fifth value asworkflow(and D4 repeatsworkflow). The candidate row table also useswf, so following this design literally would produce inventory rows that the required exact-kind validator rejects. Useworkflowconsistently in the definition and row table.
`admitted_by`: `gitlink` the aggregation's `.gitmodules`, `pin` a `contracts/`
pin file, `wf` an openxFactory workflow, `root` the aggregation itself, `change`
a ratified change whose realization creates it (PROVISIONAL, D1.1).
openspec/changes/add-estate-repository-inventory/specs/release-realization/spec.md:220
- Using
MAYmakes the provisional row optional even though the membership arm must accept a repository created by a ratified change, and the measuredopensoft/LedgerxWalletdeclaration depends on that row. A conforming realization could omit the row and then reject the lawful active declaration; this needs to be mandatory when the stated condition holds.
- **THEN** the inventory MAY carry a PROVISIONAL row admitted by that change, marked as provisional and naming the change id
openspec/changes/add-estate-repository-inventory/specs/release-realization/spec.md:236
- This negative-evidence scenario covers only
gitlink,pin,workflow, androot, omitting the fifth permittedchangekind. There is consequently no scenario/task obligation to reject a missing or unratified change reference, despite D1.1 requiring that evidence to resolve to a ratified packet; add that case so the realization tests cannot silently skip it.
#### Scenario: A row's admission evidence names nothing
- **WHEN** a row's `admitted_by:` names a gitlink, a pin, a workflow or a root that the named tree does not carry
- **THEN** the validator MUST report a finding against that row
- **AND** the remedy is to correct the evidence or to remove the row, never to widen what counts as evidence
- Files reviewed: 7/7 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Lane: openxfactory-5 (openXfactory-5) The ## MODIFIED block replaces ONE paragraph of the promoted requirement, and the modified-block-currency arm reported its three sentences as carried body units this block does not state. That is the arm working: it cannot distinguish a deliberate rewording from a drift and does not claim to. The three units are now named as code spans in a reserved marker inside the block, with the reason after the separator, in the form doc-health's promoted marker-hygiene family defines: **Removed from canon by add-estate-repository-inventory (2026-09-18):** MEASURED, NOT ASSERTED. The whole checker was run at this head and at a clean origin/main checkout in the SAME CLONE (never a worktree, whose release-inventory-drift arm reports four extra errors regardless of commit): python3 scripts/doc-health.py --single-repo . main 97 findings head 97 findings NEW: none. GONE: none. design.md D3 and tasks.md § 2.9 record the marker and the measurement. Refs #1087 Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The packet contains an internal admission-kind contradiction and unresolved requirements for change evidence and offline validation.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (5)
openspec/changes/add-estate-repository-inventory/specs/release-realization/spec.md:221
- This scenario makes the provisional row optional (
MAY), although the membership arm fails closed and the packet's measured six-identifier population depends on the change-admitted LedgerxWallet row resolving. It also does not state that the referenced change must exist and be ratified; without those obligations, realization could omit the row or accept an arbitrary draft/missing change and either reject a lawful surface or admit an unapproved repository. Make the row/validation requirement explicit and add the corresponding test case.
owes a manifest entry, a recomputed digest and a bundle cut, and the fact this
inventory tracks moves often: the aggregation repository's `.gitmodules` took
NINETEEN commits between 2026-07-01 and 2026-09-12, almost all of them an
admission, a retirement or an owner transfer, which is one inventory-moving act
openspec/changes/add-estate-repository-inventory/specs/release-realization/spec.md:153
- The linked #1087 issue lists the pin location as including a
stack.yamlentry, but this requirement closes admission evidence topinentries undercontracts/(plus the other four kinds). A future repository admitted by a DomainxFactorystack.yamltherefore cannot be represented by the proposed inventory; either include that evidence kind/location or explicitly narrow the issue's minimum scope before ratification.
#### Scenario: An archived proposal carries an unreadable head
- **WHEN** the scan reaches a proposal under `openspec/changes/archive/` whose declaration the grammar does not admit
- **THEN** it MUST NOT be a finding, and the run reports how many such records the archive carries
## ADDED Requirements
### Requirement: The estate's repositories are enumerated in a governed inventory
openxFactory SHALL carry a machine-readable inventory of the estate's
openspec/changes/add-estate-repository-inventory/specs/release-realization/spec.md:234
- The inventory requirement defines five
admitted_bykinds, but this scenario only covers gitlink, pin, workflow, and root; it omitschange. The realization could therefore satisfy every scenario while never validating missing, non-ratified, or archived change evidence, despite the surrounding prose making that provisional admission type normative. Add a dedicatedchangeevidence condition/scenario with its ratified-active and archive-expiry rules.
- **THEN** the inventory SHALL carry a row for it admitted by that pin, with governance class `pinned`
openspec/changes/add-estate-repository-inventory/tasks.md:109
- The reader is required to be deterministic and offline, but
gitlinkadmission evidence lives in the aggregation repository's.gitmodules, not necessarily in an openxFactory checkout. The existing pytest workflow explicitly runs without a surrounding aggregation checkout, so the realization currently has no defined way to verify or report missing gitlink/workflow evidence without either network access or silently treating stale rows as valid. Define a local snapshot/digest or an explicit unavailable-evidence outcome and its gate behavior.
rule 4), a header stating why the file is not under `contracts/` and what a
row means, and per row `repository:`, `name:`, `role:`, `governance:`,
`admitted_by:` (one or more of the five kinds with its site) and, for a
`change`-admitted row, `provisional: true` with the change id.
- [ ] 3.2 `scripts/estate_inventory.py` (NEW): the reader and the row-level judge,
in the shape `scripts/code_surface.py` uses: read through the shipped
strict loader, no second parser, no path reached through a symlink at leaf
openspec/changes/add-estate-repository-inventory/tasks.md:99
- This task points the realization author to
CLAUDE.mdrule 4, but this checkout has noCLAUDE.md(the repository guidance isAGENTS.md, which contains no such rule). That makes the required schema-envelope authority unresolvable; please cite the actual governing document or state theschema_version/kindrule here so the later implementation has a checkable source.
**NOT ONE BYTE OF § 3 MOVES IN THIS PULL REQUEST.** Each slice states the
FAILS-THEN-PASSES obligation: every test is written to FAIL against the tree
without its arm, and is shown failing before it is shown passing.
- Files reviewed: 7/7 changed files
- Comments generated: 1
- Review effort level: Lite
There was a problem hiding this comment.
🟡 Changes recommended
Resolve the identified taxonomy, schema, evidence, measurement, and deterministic-reader inconsistencies.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (8)
openspec/changes/add-estate-repository-inventory/design.md:303
- D4 still says there are four admission kinds and lists only
gitlink,pin,workflow, androot, but D1.1 and the normative delta add the fifthchangekind for forward-looking provisional rows. Leaving this paragraph unchanged gives the design a different schema from the requirement and the 27-row candidate; includechangeand its provisional/expiry semantics here.
row whose evidence has gone. The four kinds are `gitlink`, `pin`, `workflow`,
`root`, and they are closed because they are exactly the ways this estate has
named a repository (D0.1, D0.2).
openspec/changes/add-estate-repository-inventory/design.md:102
- D0.3 reports 34 readable heads but assigns 30 to
openxFactorywhile listing five other distinct identifiers. Since each of those five must occur at least once, the table implies at least 35 heads. Correct the count or document the missing multiplicities; otherwise this safety measurement is not reproducible.
| `openxFactory` (30 heads) | row 2 | bare name |
openspec/changes/add-estate-repository-inventory/design.md:58
- D0.2 abbreviates the normative
workflowadmission kind aswf, while the spec and task contract useworkflow. Since §3.1 will serialize these values, this is ambiguous rather than harmless display prose: an implementation could emitwfand violate the closed vocabulary. Use the normative spelling consistently in the candidate table and measurements.
`governance`: `governed` the estate authors its contents, `pinned` openxFactory
consumes it at a commit and digest, `external` pinned and not of this estate.
`admitted_by`: `gitlink` the aggregation's `.gitmodules`, `pin` a `contracts/`
pin file, `wf` an openxFactory workflow, `root` the aggregation itself, `change`
a ratified change whose realization creates it (PROVISIONAL, D1.1).
openspec/changes/add-estate-repository-inventory/design.md:88
- This row's
pinnedclass contradicts the class definition above:pinnedmeans openxFactory consumes the repository at a commit and digest, but the same measurement says LedgerxWallet has no pin and is admitted only by the creating change. The realized change instead creates a governed descendant repository, so this row should be classified asgoverned(or the packet must define a different class).
| 27 | `opensoft/LedgerxWallet` | neutral product, Ledgerx wallet overlay; **PROVISIONAL** | pinned | change (`create-ledgerxwallet-overlay-boundary`, ratified) ONLY |
openspec/changes/add-estate-repository-inventory/specs/release-realization/spec.md:166
- The requirement defines
admitted_bysemantically but not structurally: it may contain one or more evidence kinds, yet the delta never specifies whether this is a sequence of{kind, site}records, a mapping, or another shape. Because the reader and validator are required to process a machine-readable inventory and validate evidence, the realization has no unambiguous wire format. Specify the exact field shape and required site fields here.
THE INVENTORY RECORDS AN ADMISSION TAKEN ELSEWHERE AND PERFORMS NONE, and that
is the answer to the authority question the successor was filed on: who admits a
repository to the estate. Nobody admits one BY WRITING A ROW. A repository joins
the estate when a governed tree NAMES it, and the row is the record of that
naming. So every row SHALL carry `admitted_by:` naming at least one NAMING SITE
and the kind of act it is, and the admissible kinds SHALL be exactly these five,
because they are exactly the ways this estate has ever named a repository:
openspec/changes/add-estate-repository-inventory/specs/release-realization/spec.md:255
- This scenario only covers
gitlink,pin,workflow, androot, even though the requirement defineschangeas the fifth admissible evidence kind and the candidate inventory depends on it for the provisional LedgerxWallet row. As written, the required row-evidence finding is underspecified for stale or invalidchangeevidence, so the validator could accept the one case that motivated the fifth kind.
#### Scenario: A row's admission evidence names nothing
- **WHEN** a row's `admitted_by:` names a gitlink, a pin, a workflow or a root that the named tree does not carry
- **THEN** the validator MUST report a finding against that row
- **AND** the remedy is to correct the evidence or to remove the row, never to widen what counts as evidence
openspec/changes/add-estate-repository-inventory/specs/release-realization/spec.md:158
- This requirement defines the file as an inventory of estate repositories and says every row carries evidence that puts it in the estate, but the same design deliberately requires
externalrows that are pinned and explicitly “NOT of this estate at all” (lines 191-199). The realization would therefore have to choose between rejecting the required external row and violating the inventory's top-level contract; please define this as a broader known-repository inventory or move external dependencies to a separate structure before ratification.
### Requirement: The estate's repositories are enumerated in a governed inventory
openxFactory SHALL carry a machine-readable inventory of the estate's
repositories, ONE ROW PER REPOSITORY, and every row SHALL carry the repository's
`<owner>/<name>` address, its BARE NAME, its ROLE in the layer model, its
GOVERNANCE CLASS, and the ADMISSION EVIDENCE that puts it in the estate. The
file SHALL carry `schema_version` and `kind` like every other governed YAML in
this repository, and a house validator SHALL read it.
openspec/changes/add-estate-repository-inventory/tasks.md:117
- §3.3 says the inventory validator must refuse rows with missing evidence, former addresses, and expired provisional admissions, but the normative scenarios specify reporting findings for those cases; only duplicate bare names are a refusal. This also conflicts with §3.4's “REPORTS a row nothing names”, so the realization's exit behavior is ambiguous. Align the task with the delta before implementation.
- [ ] 3.3 `scripts/validate-estate-inventory.py` (NEW): the house validator CLI in
the shape every other `scripts/validate-*.py` uses. Refuses a duplicate bare
name, a row whose `admitted_by:` evidence names nothing, a row at a FORMER
address, and a still-provisional row whose change has archived.
- Files reviewed: 7/7 changed files
- Comments generated: 2
- Review effort level: Lite
Copilot's review of PR #1101 raised four threads. Three name real defects and the fourth is refused with evidence. THE GITLINK KIND HAD NO DISCHARGE (thread 3, design.md:88). The packet read `gitlink` as the AGGREGATION's `.gitmodules` alone, while the realization that creates `opensoft/LedgerxWallet` NESTS it under LedgerxFactory (`create-ledgerxwallet-overlay-boundary` tasks.md 5.1, done 2026-08-28). So at that change's archive the provisional row would expire into a finding NO kind could close. Verified live 2026-09-18: ledgerXfactory/LedgerxFactory `.gitmodules` carries `[submodule "LedgerxWallet"]`; opensoft/xFactory `.gitmodules` does not. `gitlink` now reaches ANY governed estate repository's `.gitmodules`, its evidence naming the repository that carries it, and the measurement was RE-TAKEN rather than reasoned about: the fifth site adds SIX members the narrow reading missed (openChart, openPractice, MedxAvatar, LedgerxAvatar, MedxEHR-spec, MedxEHR-code), so the candidate is 33 rows and not 27. design.md D0.1 records that the site was added in review rather than presenting five sites as if four had never been claimed. THE READER COULD NOT BE WHAT IT SAID IT WAS (thread 4, tasks.md:113). 3.2 promised "deterministic, no network" while the ADDED requirement asked it to re-check gitlink evidence living in a tree no openxFactory checkout contains — worse after the widening, six such trees rather than one. New D1.2 states the bound: the four IN-TREE kinds (`pin`, `workflow`, `change`, `root`) are re-checked on every run with no network call; a `gitlink` is re-checked only in an explicitly invoked mode taking the carrying working tree as a PATH INPUT, and a run given no path REPORTS those rows as NOT RE-CHECKED with their count. A run that has not looked reports neither "named" nor "stale", and no mode fetches a tree — that is the cost D1 refused for the derived shape and it is not readmitted at the reverse arm. D4 STATED FOUR KINDS WHERE D1.1 AND THE DELTA DEFINE FIVE (thread 2, design.md:292). D4 now states the closed set as five, spelled identically to D0.2, D1.1 and the delta; the legend's `wf` is respelled `workflow` for the same reason. THE LEDGER ROW CLAIM IS REFUSED (thread 1, tasks.md:92). The row is present at line 109 of tests/sequenced_after/corpus-ledger.yaml and `validate-sequenced-after.py . --ledger-diff` reports "per-change sweep ledger consistent with the corpus (220 rows)", exit 0. Nothing changed. Scenario count moves 26 -> 27 (10 + 8 + 9), one added for the gitlink re-check bound; proposal.md and the PR body move with it. NOTHING IS RATIFIED, PROMOTED, REALIZED OR ARCHIVED. All three lifecycle documents stay `Status: draft`, `origin.kind` and `origin.id` are untouched, no `approved_by`/`approved_on` is added, and no file under `openspec/specs/` is edited. tasks.md 1.4 discloses both movements so a ratifying word is given over what the packet now says. Gates: `openspec validate add-estate-repository-inventory --strict` valid; `--all --strict` 110 passed / 2 failed, both failures (add-chain-attestation, add-composed-view-authoring) reproduced at the untouched head d355f42 and in other lanes' packets; `pytest tests/sequenced_after -q` 286 passed; `validate-code-surface.py .` exit 0; `doc-health.py --single-repo .` 88 findings before and 88 after, the sets byte-identical. Refs #1087 Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Address the provisional-admission requirement and enforce ratification checks; also correct stale README summaries.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (2)
openspec/changes/add-estate-repository-inventory/specs/release-realization/spec.md:267
- This scenario says the inventory MAY carry the only row for a repository being created by an active ratified change. Omitting that optional row makes the membership arm reject the change's declared surface, defeating the provisional-admission case described in D1.1; make the row mandatory when these conditions hold, or specify the intended refusal behavior.
#### Scenario: A repository a ratified change is creating
- **WHEN** a RATIFIED active change declares a code surface in a repository its own realization creates, and no gitlink in any governed estate repository, no pin and no workflow names it yet
- **THEN** the inventory MAY carry a PROVISIONAL row admitted by that change, marked as provisional and naming the change id
- **AND** once that change ARCHIVES, a row still admitted only by it MUST be reported as a finding, the repository being nameable by a governed tree from that point — commonly by the gitlink of the DomainxFactory the realization nested it under
openspec/changes/add-estate-repository-inventory/tasks.md:155
- The requirement limits
changeadmission to a RATIFIED active change, but this realization task only rejects a missing/archived change path. A draft change can therefore satisfy the evidence check and admit a repository contrary to the requirement; add an explicit ratification/status check and a negative test for an unratified change.
- [ ] 3.3 `scripts/validate-estate-inventory.py` (NEW): the house validator CLI in
the shape every other `scripts/validate-*.py` uses. The DEFAULT run judges
the inventory file's SHAPE and its in-tree evidence and makes no network
call: refuses a duplicate bare name, a row whose in-tree `admitted_by:`
evidence names nothing, a row at a FORMER address, and a still-provisional
- Files reviewed: 7/7 changed files
- Comments generated: 2
- Review effort level: Lite
…ository-inventory
THE PULL-REQUEST-CAUSED TEST FAILURE, AND ITS CAUSE. The head's pytest run
failed `tests/doc-health/test_modified_block_currency_self_gate.py::
test_every_carriage_ledger_finding_over_the_real_tree_is_named` with ONE
unnamed subject, `(add-estate-repository-inventory, release-realization,
'Code-surface declaration grammar is gated')`. The cause is not in the test
and not in the checker: `9c817545` ("release-realization: render the
code_surface example as one code span (non-normative)", PR #1095) landed on
main AFTER this block was written and re-fenced ONE sentence of canon from a
single-backtick span, which nests a backtick inside itself, to a
double-backtick span. This packet's `## MODIFIED` block still carried the
pre-#1095 rendering, so the arm read one of the 52 body units and scenario
bullets canon states as NOT CARRIED and opened a carriage-ledger row.
THE FIX IS THE FIRST REMEDY THE ARM ITSELF NAMES — "restate the requirement as
canon currently states it" — and NOT the `Removed from canon by` marker, which
declares a DELIBERATE deletion and would be a false statement here: #1095 is
non-normative by its own commit subject, this packet takes no position on it,
and the sentence's words are unchanged. Only the fence width moves, so the
block goes on restating the requirement exactly as canon states it but for the
ONE paragraph the marker at line 45 already declares. The family's carriage
ledger returns to 15 findings over the real tree, the population the test
names, and this packet opens none.
THE README RESTATEMENTS, FIXED AGAINST THE PACKET RATHER THAN RE-REASONED.
The "Active changes" bullet said TWENTY-SIX scenarios with seven in the first
ADDED requirement; the delta file carries TWENTY-SEVEN (10 + 8 + 9), which is
what `proposal.md` has said since the review expansion added the eighth
inventory scenario. The bullet now states the arithmetic so a reader can check
it against the file.
The bullet's measurement summary was stale in the two ways the review named.
The FIFTH NAMING SITE is a GOVERNED DomainxFactory's own `.gitmodules`, added
at the review of PR #1101 when `gitlink` was widened to reach any governed
estate repository — not "a RATIFIED change whose realization creates a
repository", which is `change`, the fifth of the five ADMISSION KINDS and a
different enumeration. The candidate inventory carries THIRTY-THREE rows, not
twenty-seven, the six added rows being `openChart`, `openPractice`,
`MedxAvatar`, `LedgerxAvatar`, `MedxEHR-spec` and `MedxEHR-code`. The bullet
now reads as `design.md` D0.1-D0.2 and `tasks.md` § 2.1-2.2 already read, cites
them, and keeps the two measurement dates apart: the first four sites on
`origin/main` `ad089e8a`, the fifth on 2026-09-18.
NO NORMATIVE TEXT MOVES AND THE PACKET STAYS `Status: draft`. No ratifying word
has been given.
GATES, at this tree: `openspec validate add-estate-repository-inventory
--strict` valid; `openspec validate --all --strict` 110 passed, 1 failed, the
failure `add-chain-attestation` and inherited (origin/main reports the same one
at 109 passed, 1 failed); `validate-sequenced-after.py . --ledger-diff`
consistent with the corpus, 220 rows; `validate-code-surface.py .` passed;
`proposal-support.py . verify add-estate-repository-inventory` ok; `pytest
tests/doc-health/test_modified_block_currency_self_gate.py tests/sequenced_after`
3 failed, 302 passed, all three inherited from main's undispositioned
`archive-date-vs-commit: 2026-09-16-add-composed-view-authoring`.
Refs #1087
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved measurement inconsistencies and specification/task conflicts must be corrected.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (7)
README.md:547
- The current PR description still describes the old measurement (27 candidate rows and 26 scenarios, with 7 inventory scenarios), but this packet now records 33 candidate rows and 27 scenarios (10 + 8 + 9). Please update the PR description so its stated scope and measurements match the committed design/spec and this index entry.
**ONE `## MODIFIED` BLOCK AND TWO `## ADDED` REQUIREMENTS, TWENTY-SEVEN
SCENARIOS (10 + 8 + 9), OVER `release-realization`**: the MODIFIED block
restates *Code-surface declaration grammar is gated* exactly as canon states it
but for ONE paragraph (ten scenarios), and the ADDED pair is *The estate's
repositories are enumerated in a governed inventory* (eight scenarios) and
*A declared repository is judged for membership against the estate inventory*
openspec/changes/add-estate-repository-inventory/design.md:197
- The command shown here does not check three of the six identifiers claimed below:
openAvatar,opensoft/Keycloak-Install, andopensoft/OpenXPKI-Installare absent from the loop. Therefore it cannot establish the stated fact that all six declared identifiers name real repositories; either include every declared identifier in the measurement or narrow the claim to the identifiers actually checked.
The gate never makes this call (D4). It was made here to establish two facts: that
the six declared identifiers name real repositories, and that the estate already
writes one that does not.
openspec/changes/add-estate-repository-inventory/specs/release-realization/spec.md:232
- Unique bare names do not ensure row identity consistency: a malformed row could pair
repository: opensoft/openXwalletwithname: openAvatar, making address and bare-name resolution select different repositories. Require canonical<owner>/<name>syntax,nameequal to the address's final segment, and unique repository addresses before implementing the resolver.
A BARE NAME SHALL RESOLVE THROUGH THE ROW WHOSE BARE NAME IT MATCHES, and the
bare names SHALL BE UNIQUE ACROSS THE INVENTORY. The corpus writes both
spellings, so a reader must resolve both; two rows sharing a bare name would make
one spelling ambiguous, and the validator SHALL REFUSE THE INVENTORY rather than
pick a row, because picking is how an authorization lands in the wrong
openspec/changes/add-estate-repository-inventory/tasks.md:138
- The candidate row 27 is explicitly admitted by both
changeandgitlink, but this task says every change-admitted row isprovisional: truewhile § 3.3 later rejects a still-provisional row after its change archives. Clarify that only a row admitted solely bychangeis provisional, and that the flag is cleared/omitted once another admission kind discharges it; otherwise the measured LedgerxWallet row becomes invalid when its change archives despite its nested gitlink.
- [ ] 3.1 `scripts/estate-repository-inventory.yaml` (NEW): the 33 candidate rows
of `design.md` D0.2, `schema_version` and `kind` at the head (CLAUDE.md
rule 4), a header stating why the file is not under `contracts/` and what a
row means, and per row `repository:`, `name:`, `role:`, `governance:`,
`admitted_by:` (one or more of the five kinds with its site, and for a
`gitlink` THE REPOSITORY THAT CARRIES IT, which is the aggregation for 23
rows and a governed DomainxFactory for 7) and, for a `change`-admitted row,
`provisional: true` with the change id.
openspec/changes/add-estate-repository-inventory/tasks.md:156
- This task says the default validator refuses a row at a FORMER address, but the added requirement and D5 explicitly require reporting a finding with the current address rather than refusing the inventory. Keep the implementation plan aligned with that report-versus-refuse distinction.
call: refuses a duplicate bare name, a row whose in-tree `admitted_by:`
evidence names nothing, a row at a FORMER address, and a still-provisional
row whose change has archived; and it REPORTS the `gitlink` rows as NOT
openspec/changes/add-estate-repository-inventory/tasks.md:133
- The task cites
CLAUDE.md rule 4, but noCLAUDE.mdexists in this repository; the checked-in rule supporting these fields is constitution Principle IV. This dangling citation makes the realization acceptance criterion non-reproducible.
- [ ] 3.1 `scripts/estate-repository-inventory.yaml` (NEW): the 33 candidate rows
of `design.md` D0.2, `schema_version` and `kind` at the head (CLAUDE.md
rule 4), a header stating why the file is not under `contracts/` and what a
openspec/changes/add-estate-repository-inventory/tasks.md:177
- The offered D2 veto path says the realization would move the inventory under
contracts/and add a manifest entry, but this task unconditionally says no other file moves and every contract member remains untouched. If the veto is taken, those obligations conflict; make this restriction conditional or explicitly list the contract-release edits as the exception.
- [ ] 3.6 **NO OTHER FILE MOVES.** `scripts/code_surface.py`'s grammar,
`scripts/scope_globs.py`'s derivation, the closed register, every existing
test, every workflow, every contract member and every promoted byte are
untouched. Verified in the realization pull request by its own diff.
- Files reviewed: 7/7 changed files
- Comments generated: 1
- Review effort level: Lite
THE DISCLOSURE WENT STALE BY THE ACT THAT MADE THE TREE CURRENT, which is exactly the case it exists to cover, so it is re-taken rather than dropped. D0.1 said the reader reports **50** active proposals and **35** readable repository lists at this branch's head, the extra one of each being this packet's own declaration. That was true of the head before `a2e7f354` merged `origin/main` in. It is not true now: the merge carried `3e32d987` (PR #1056), which ARCHIVED `add-composed-view-authoring`, taking one active proposal and one readable list back out. The paragraph now states what the shipped reader actually reports at this head — **49** and **34**, the same totals as at `ad089e8a` — and says WHY they are the same, which is two moves that cancel and not a corpus that stood still. The cancellation is checkable in the same run's second line, the archive moving from 170 proposals and 124 declaring to 171 and 125. `design.md` D0.2's 33 rows, D0.3's six distinct identifiers and the six-of-six carry are unaffected: main's archive removed a proposal, not a repository, and no figure this design reasons from moves. NO NORMATIVE TEXT MOVES and the packet stays `Status: draft`. Verified at this tree: `openspec validate add-estate-repository-inventory --strict` valid; `proposal-support.py . verify` ok; `validate-code-surface.py .` passed, reporting the 49/34 the paragraph now states; `pytest tests/doc-health/test_modified_block_currency_self_gate.py` 19 passed. Refs #1087 Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
Outstanding documentation and contract-clarity findings must be addressed before approval.
Review details
Suppressed comments (8)
Previously missed (2) — in code that hasn't changed since the last review.
openspec/changes/add-estate-repository-inventory/proposal.md:107
- The source table presents this as a sixth naming site, while the surrounding measurement explicitly defines five naming sites and separately calls
changethe fifth admission kind (lines 110-120). That makes the five-site measurement internally ambiguous; label this row as admission evidence rather than as a naming site.
openspec/changes/add-estate-repository-inventory/review/ratification-2026-09-18.md:52 - This D4 ruling table says there are five admission kinds but lists
gitlinktwice without separating the fifth-kind list from the widened carrier-scope clarification. That makes the ratification record read as though six kinds were accepted; keep the five-item list and move the carrier explanation after a semicolon, as the other packet records do.
openspec/changes/add-estate-repository-inventory/design.md:73
- The recorded branch-head transition is stale: the current PR transcript at
089b02e0reports 173 archived proposals and 127 declaring, not 171 and 125. Therefore “Nothing else moved” and the cited 171/125 branch measurement are no longer true; re-take this census at the documented head and explain the additional archive movement (or remove the branch-head claim).
each back: it archived `add-composed-view-authoring` (`3e32d987`, PR #1056), which
the same run reports as the archive moving from 170 proposals and 124 declaring to
**171** and **125**. Nothing else moved, and no figure this design reasons from
changes.
openspec/changes/add-estate-repository-inventory/design.md:464
- This verification is pinned to
b3bf9cf5/dc242f3a, but the current PR transcript at089b02e0reports 31 critical, 11 error, 28 warning, 21 info on the branch and 31/11/30/21 with the packet stashed (two findings gone). That contradicts the recorded 92/92 totals and “ZERO NEW and ZERO GONE”; re-run the comparison at the final head and synchronize the evidence.
2026-09-18, superseding the stale 97 this paragraph previously stated: at this
branch's `b3bf9cf5` and at `origin/main` `dc242f3a`, the totals are IDENTICAL —
92 findings at both (31 critical, 11 error, 28 warning, 22 info) — zero new, zero
gone.
openspec/changes/add-estate-repository-inventory/proposal.md:15
- This sentence is unqualified, but the same document later says that three ~15:40Z rulings moved the delta (lines 33-62). As written, the ratification summary can be read as claiming the final delta was unchanged; scope the unchanged-wording claim to the 12:55Z word, as the README entry does.
in `lanes/log/openXfactory-5.md`. The word is BARE, so every decision takes its
recommended option and the delta's wording stands unchanged.
openspec/changes/add-estate-repository-inventory/specs/release-realization/spec.md:304
- Rows can carry multiple admission kinds (for example
gitlinkpluspin, orgitlinkpluschange), but this contract makes agitlinkrow NOT RE-CHECKED when no carrier tree is supplied while also requiring in-tree evidence to be re-checked every run. It never defines whether valid non-gitlink evidence lets the row pass, whether statuses are per evidence rather than per row, or which result the membership arm uses, so the row-level judge is ambiguous for the existing multi-evidence rows.
`gitlink` is the ONE kind whose evidence lives in ANOTHER repository's tree,
which an openxFactory checkout does not contain. Its re-check SHALL therefore be
an EXPLICITLY INVOKED mode taking the carrying repository's working tree as a
PATH INPUT, and a run given no such path SHALL REPORT its `gitlink` rows as NOT
RE-CHECKED, with their count, rather than passing them silently or failing them.
openspec/changes/add-estate-repository-inventory/tasks.md:264
- The realization contract is not implementable as written: § 3.3/spec.md requires an explicit
--estate-treemode whose result depends on verifying the supplied carrier, but § 3.4 explicitly says the membership arm takes no tree argument. In that shapevalidate-code-surface.pycannot distinguish no tree from a valid or mismatched supplied tree, or re-check nested gitlinks. Either pass the tree context/invoke the inventory validator from the arm, or scope the tree-dependent verdicts to the separate CLI and revise the normative requirement.
"MAY becomes MUST", § 1.5 (c)). The arm takes no tree argument and makes no
network call, so the required check's verdict is the same on every
machine.
openspec/changes/add-estate-repository-inventory/tasks.md:185
- This completed measurement repeats the stale
b3bf9cf5/dc242f3acapture and 92-finding totals, while the current PR transcript at089b02e0records 31/11/28/21 on the branch versus 31/11/30/21 with the packet removed. Re-take the comparison at the final head so the task does not preserve contradictory verification results.
block, and with it the whole checker reports the SAME total at this head and
at a clean `origin/main` checkout in the same clone, ZERO NEW and ZERO GONE —
RE-MEASURED 2026-09-18 at this branch's `b3bf9cf5` and `origin/main`
`dc242f3a`: 92 findings at both (31 critical, 11 error, 28 warning, 22 info),
superseding the stale 97 this line previously stated.
- Files reviewed: 8/8 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
|
Lane: openxfactory-5 (openXfactory-5) LANDING — lane openXfactory-5, session 651195c7-1854-491e-894a-e6542ef5e9f4@Eagle, 2026-09-18T18:51:50Z, PR #1101 into opensoft/openxFactory main |
|
Lane: openxfactory-5 (openXfactory-5) LANDED — lane openXfactory-5, session 651195c7-1854-491e-894a-e6542ef5e9f4@Eagle, 2026-09-18T18:52:07Z, PR #1101 into opensoft/openxFactory main → merge 344ad3c; Propose add-estate-repository-inventory: the code_surface: gate judges declared repository sets against an inventory of the estate |
…arrier-identity check `tasks.md` § 3.2, quoted: "`scripts/estate_inventory.py` (NEW): the reader and the row-level judge, in the shape `scripts/code_surface.py` uses: read through the shipped strict loader, no second parser, no path reached through a symlink at leaf or ancestor, deterministic, no network. Public: load the inventory, resolve an identifier (address, bare name, or former address through `contracts/policies/repository-identity.yaml`), and report the row-level findings § 3.4 gates. IT RE-CHECKS THE FOUR IN-TREE KINDS ONLY … It also carries the CARRIER-IDENTITY CHECK that mode uses — given a path, read the tree's own origin URL and normalize it, and resolve a FORMER carrier address through `contracts/policies/repository-identity.yaml` — returning verified / unverified rather than raising, so § 3.3 can report an unverified tree as NOT RE-CHECKED instead of failing the run (ruling "Bind the carrier identity", § 1.5 (a))." WHAT IS HERE. `load_inventory` reads the file through `frontmatter_strict. strict_load` — the shipped strict loader, no second parser — and REFUSES rather than picks: a duplicate address, a shared bare name (naming BOTH rows, because "picking is how an authorization lands in the wrong repository"), a kind outside the closed five, a governance class outside the closed three, an admission with no site, a `gitlink` with no carrier, a `change` whose id is not a change-directory name, a `pin`/`workflow` path that is absolute, carries `..` or sits outside the directory its kind names, and — both ways — a `provisional:` that disagrees with the presence of a `change` admission. `resolve` resolves three spellings and no fourth: an address against a row's address, a bare name against a row's unique bare name, a FORMER address through the transfer map to a current row, carrying WHICH of the three happened so the caller can report the former case rather than refuse it (`design.md` D5). Nothing is resolved by asking the provider. The comparison is CASE-SENSITIVE because the transfer map's own `field_rules.current` says this estate compares the owner segment case-sensitively "even where the provider compares case-insensitively" — a case-insensitive resolver would admit exactly the spellings each row's `owner_case` names as NOT this estate's. `load_transfers` drops the PENDING rows, which is the map's own `pending_row_rule` and not a strictness invented here: a pending row declares a change that has not happened, and every use this module makes of the map is a live reference. `evidence_verdicts` re-checks the four IN-TREE kinds on every run and reports `gitlink` as NOT RE-CHECKED without exception — not passed, not failed. A `pin` or `workflow` whose file is present but no longer NAMES the row's repository is GONE too: presence of the file is not presence of the evidence. A `change` is judged in three states, and the archived one's detail names both remedies the requirement reaches. `carrier_identity` NEVER RAISES. It reads the tree's own origin URL (`git -C <path> remote get-url origin`, a local config read that reaches no network), normalizes past the `git@`/`https://` spellings and the `.git` suffix, and verifies against the carrier or against the carrier's FORMER address through the transfer map — the two places this estate already states an identity. Every failure (no git, no repository, no origin, an unrecognized URL spelling, a timeout) returns unverified, because the one verdict for a tree that could not be confirmed is NOT RE-CHECKED and a raise would turn a caller's typo into a failed run. THE CONTAINMENT GUARDS ARE MIRRORED AND NOT APPROXIMATED. `_has_symlinked_ancestor` and `_unescaped` are `code_surface.py`'s exact shapes, including `except (OSError, RuntimeError)` — `Path.resolve(strict=True)` reports a SYMLINK LOOP as a `RuntimeError`, a subclass of neither `OSError` nor `ValueError`, so a clause naming only `OSError` is open at exactly the loop (openxFactory #1074, realized at PR #1107). Exercised over the live tree: 33 rows load; the six identifiers the corpus declares all resolve (three by bare name, three by address); `opensoft/ codexFactory` resolves as a FORMER address to `codeXfactory/codexFactory`; `openxFactorie` does not resolve; 30 admissions report NOT RE-CHECKED, 9 NAMED, 0 GONE. Refs #1087 Refs #1101 Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Fable 5.1 <[email protected]>
…erified --estate-tree mode `tasks.md` § 3.3, quoted: "`scripts/validate-estate-inventory.py` (NEW): the house validator CLI in the shape every other `scripts/validate-*.py` uses. The DEFAULT run judges the inventory file's SHAPE and its in-tree evidence and makes no network call: refuses a duplicate bare name, a row whose in-tree `admitted_by:` evidence names nothing, and a still-provisional row whose change has archived; REPORTS a row at a FORMER address, naming the current address the transfer map resolves (`design.md` D5: RECOMMENDED REPORT, ALTERNATIVE refuse DECLINED); and REPORTS the `gitlink` rows as NOT RE-CHECKED, with their count. A repeatable `--estate-tree <repo>=<path>` supplies a carrying repository's working tree, and THE TREE IS VERIFIED AS THAT CARRIER BEFORE IT IS READ — by its own origin URL or by the carrier's record in `contracts/policies/repository-identity.yaml` — and only then is that repository's `.gitmodules` evidence re-checked, an absence being a finding against the row. A supplied tree that does NOT verify leaves the row reported NOT RE-CHECKED and counted, neither passed nor failed, the report naming the carrier the row expects and what the tree actually is (ruling "Bind the carrier identity", § 1.5 (a); a path is an assertion and not an identity). No mode fetches a tree: the input is a path a caller already has." THE THREE EXITS ARE THE SIBLING'S ASYMMETRY. exit 2 the inventory cannot be USED (missing, symlinked, refused by the strict loader, malformed, two rows sharing a bare name — which REFUSES THE FILE rather than picking a row — or an unusable `--estate-tree` argument); exit 1 an admission's evidence has GONE; exit 0 the shape is admitted and every in-tree admission is named, with the REPORTS printed beside it and leaving the verdict alone. The former-address report leaves exit 0 deliberately and on `design.md` D5's own ground: the alternative REFUSE was declined because "it would red a required check on a packet whose declaration everybody can read". THE CARRIER IS VERIFIED ONCE PER CARRIER AND NOT ONCE PER ROW — a tree is one tree whatever it discharges, and re-reading it per row would let one carrier's identity be answered differently at two rows of the same file. EACH COUNT SAYS WHAT IT MEASURED. The in-tree tally (`pin`, `workflow`, `root`, `change`, re-checked on EVERY run) is kept apart from the gitlink tally (named in a verified tree / absent from one / NOT RE-CHECKED), because a single "gone" count spanning both would report a supplied tree's absence as though this repository's own evidence had rotted. ONE REPORT IS ADDED BEYOND THE RATIFIED LIST AND IT ADDS NO REFUSAL: a supplied tree no row names as a carrier is REPORTED. Nothing in the ratified text makes it a finding and inventing one would widen the arm, but a caller who misspells the carrier otherwise gets every row of that carrier reported NOT RE-CHECKED and no hint that the tree went nowhere — the one way this flag could fail silently. Exercised at this head. DEFAULT: 33 repositories, 9 in-tree admissions named, 0 gone, 30 gitlink rows NOT RE-CHECKED with their count, exit 0. A VERIFIED carrier tree carrying only 2 of the aggregation's 23 rows: 2 named in it, 21 ABSENT FROM IT (a finding against each row), 7 still NOT RE-CHECKED for the other four carriers, exit 1. A tree that does NOT verify (this checkout offered as `opensoft/xFactory`): every row of that carrier NOT RE-CHECKED, the report naming the carrier expected and what the tree actually is, exit 0. A malformed `--estate-tree`: exit 2. Refs #1087 Refs #1101 Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ship scan report in one run
`tasks.md` § 3.4, quoted: "ONE MEMBERSHIP ARM added to
`scripts/validate-code-surface.py`, so the grammar scan and the membership scan
report in one run. FAILS CLOSED on an identifier no row carries; REFUSES an
`external` row naming the class; REPORTS a former address with the current one;
does NOT judge a REGISTERED declaration and does NOT fall back; REPORTS a row
whose IN-TREE evidence nothing names, and reports a `gitlink` row as NOT
RE-CHECKED — whether no tree was supplied for its carrier or the supplied tree
does not verify as that carrier — rather than as named or as stale; reads the
archive and judges none of it. It takes NO EXCEPTION for the forward-looking
window: the `change`-admitted PROVISIONAL row is OWED by § 3.1, so the window is
answered by a row that resolves and the arm stays unconditional (ruling "MAY
becomes MUST", § 1.5 (c)). The arm takes no tree argument and makes no network
call, so the required check's verdict is the same on every machine."
THE DOCSTRING'S OLD BOUND IS LIFTED BY THE ACT THAT REMOVED ITS REASON. It read
"no repository name's MEMBERSHIP of anything is checked — this repository
defines no inventory of the estate's repositories to resolve against". The
inventory now exists, so the sentence is replaced rather than deleted, and the
replacement states what now judges membership and on what terms.
THE EXITS. exit 1 now also covers a readable head naming an identifier the
inventory does not carry, or one resolving to an `external` row — the arm FAILS
CLOSED and names the class, so KNOWN-BUT-NOT-OURS is distinguishable from
UNKNOWN. exit 2 now also covers an inventory that cannot be USED (which stops
the run rather than being ignored: ignored, every identifier would resolve
against nothing and a fail-closed arm would refuse the whole corpus while the
defect is one unreadable file) and a row whose IN-TREE evidence this tree no
longer carries — which is the register's own asymmetry, named as such by the
requirement: "An identifier the inventory does not carry FAILS … A row that
nothing names REPORTS." A FORMER-address head and an unre-checked `gitlink` row
change NO exit code, the first on `design.md` D5's declined alternative (refusing
"would red a required check on a packet whose declaration everybody can read")
and the second because a run that has not looked may report neither verdict.
FOUR POPULATIONS ARE SKIPPED AND NONE OF THEM IS A FALLBACK: an UNREADABLE
document (no declaration to resolve; the grammar arm already owns it), a
proposal declaring NOTHING (the promoted doc-only default), a `none` head (the
empty surface names no identifier), and a REGISTERED declaration (the register
supplies NO repository set, so membership is not judged and the arm does not
fall back to the whole declaration, to the gloss, or to an empty set).
NO SECOND PARSER. Every declaration is fetched by `code_surface.declaration` and
parsed by `code_surface.parse_head`, over `code_surface._proposals`'s own
top-level symlink-guarded walk, so the two arms cannot disagree about which
documents the tree carries. The private helper is used deliberately: this packet
edits no byte of `scripts/code_surface.py`, so a public accessor there is not
available, and re-walking the tree here would be the second parser the house
forbids.
THE MEMBERSHIP SCAN OVER THE LIVE CORPUS AT THIS HEAD, exit 0:
membership: 32 readable heads naming 6 distinct identifiers — 6 carried by
the estate inventory (33 rows), 0 refused, 0 at a former address (reported),
8 registered and not judged.
inventory rows: 0 whose in-tree evidence this tree no longer carries, 30
NOT RE-CHECKED (a gitlink, whose evidence lives in a tree this checkout
does not contain).
archive (read, never judged): 0 records name a repository the inventory
does not carry.
NOT ONE LAWFUL ACTIVE DECLARATION IS REFUSED BY THIS ARM ON THE DAY IT LANDS,
which is the measurement `design.md` D0.3 made and `tasks.md` § 2.4 ticked, held
at a head two proposals and four archives later than the one it was taken at.
The archive's 108 readable heads name 6 distinct identifiers too and the
inventory carries every one, so the arm would refuse nothing there either —
which it is forbidden to do regardless, the archive being frozen record.
Refs #1087
Refs #1101
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…each written to fail without its arm
`tasks.md` § 3.5, quoted: "`tests/estate_inventory/` (NEW): one case per
scenario class of both ADDED requirements and of the MODIFIED paragraph, each
FAILING against the tree without § 3.1–§ 3.4 and passing with them, plus a
LIVE-CORPUS case that reds `pytest-suite` when a declaration names a repository
no row carries. TWO CASES ARE NAMED HERE BECAUSE THE RULINGS OF § 1.5 CREATED
THEM: a `gitlink` row handed a tree that is a checkout of a DIFFERENT repository
reports NOT RE-CHECKED and is counted, neither passed nor failed (and a tree at
the carrier's FORMER address, resolved through the transfer map, VERIFIES); and
an inventory missing the `change`-admitted row for a ratified
repository-creating change fails § 3.1's own shape check rather than being
excused by the membership arm."
THE PACKET NAMES THIS DIRECTORY AND NO OTHER, AND THAT IS WHY THE MEMBERSHIP
ARM'S CASES ARE HERE. The briefing for this seat also asked for "the code_surface
tests the packet names", but § 3.5 names `tests/estate_inventory/` alone and
§ 3.6 says "NO OTHER FILE MOVES … every existing test … untouched", which
`proposal.md`'s own `code_surface:` declaration repeats ("no existing test is
edited, renamed, flipped or deleted"). THE PACKET WINS: not one byte of
`tests/code_surface/test_code_surface_gate.py` moves, and the arm added to
`scripts/validate-code-surface.py` is exercised from here by running that
validator as a subprocess over trees built in a tmpdir.
37 CASES. Both § 3.5-named ruling cases are present and each is written so it
could not pass by accident: the impostor tree DOES carry the submodule, so an
arm that trusted the path would find the evidence and report the row NAMED —
it is NOT RE-CHECKED instead, and the run does not fail, which is `design.md`
D1.2's declined alternative held to; and the missing-`change`-row case runs the
SAME ratified declaration twice, refused without the row and admitted with it,
nothing about the arm changing between the two.
Every scenario class of both ADDED requirements is covered, plus the one
paragraph the `## MODIFIED` block moves — proved by putting a SHAPE defect and a
MEMBERSHIP defect in ONE tree and requiring BOTH blocks in ONE run's output,
with `parse_head("openxFactorie")` still admitting the misspelling, which is the
half of that sentence that did not move.
Beyond the scenarios: the transfer map's `pending_row_rule` (a pending row does
NOT verify a supplied tree), the closed kind and class sets, the three
path-shape refusals, the symlink guard in BOTH positions (leaf and ancestor),
the strict loader's own refusals consumed rather than re-implemented, and an
inventory that cannot be used stopping the run rather than being ignored.
Five live-corpus cases: both validators green over this repository; a
declaration naming an uncarried repository REDS the gate when judged against the
REAL inventory and the REAL register; every row resolvable by BOTH spellings;
every identifier the live corpus declares CARRIED (the measurement `design.md`
D0.3 took, held as a test rather than as a recorded number); every one of the
five kinds and three classes exercised by the file itself; and the byte ceiling
measured with its headroom.
$ python3 -m pytest tests/estate_inventory -q
37 passed in 4.23s
The fails-then-passes pair against a tree WITHOUT §§ 3.1-3.4 is recorded in the
realization pull request body, which is where § 3.5 and § 4.1 put it.
Refs #1087
Refs #1101
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…no existing test moves `tasks.md` § 3.6, quoted: "NO OTHER FILE MOVES. `scripts/code_surface.py`'s grammar, `scripts/scope_globs.py`'s derivation, the closed register, every existing test, every workflow, every contract member and every promoted byte are untouched. Verified in the realization pull request by its own diff." THE MEMBERSHIP ARM AS FIRST WRITTEN BROKE FOURTEEN EXISTING TESTS, and the fix is not an accommodation of them — it is a defect this repository had ALREADY NAMED, closed for the inventory too. The arm defaulted to the inventory beside the validator, so a run over ANY tree judged that tree's declarations against THIS estate's enumeration. `tests/code_surface/test_code_surface_gate.py`'s `test_a_scanned_tree_with_NO_register_is_NOT_judged_against_the_HOUSE_one` put the same defect for the closed register in its own words: "A tree was then judged against exceptions it does not carry, silently, in a message that named an entry and told its author to delete it from a file they do not have." AN INVENTORY FALLS TO IT WEARING A WORSE FACE. The arm FAILS CLOSED, so a tree judged against an enumeration it does not carry is not merely mis-advised — every declaration in it is REFUSED, for not belonging to an estate the tree is no part of. Fourteen fixture trees demonstrated exactly that. THE RESOLUTION ORDER IS NOW THE SIBLING'S: the path `--inventory` NAMES, else the path THE SCANNED TREE carries (`scripts/estate-repository-inventory.yaml`), else membership is NOT JUDGED and the run SAYS SO — the absence is reported and never silent, because a membership gate that quietly judged nothing is the gate not running. A PRESENT inventory that cannot be used REFUSES and does not fall back to the one beside this validator, which is the direction that matters. The presence probe asks PRESENCE IN EVERY SHAPE and the ANCESTRY as well as the leaf: a dangling symlink and a symlinked `scripts/` are both present for that question and both are REFUSED by the loader rather than read. A NAMED INVENTORY THAT IS MISSING STILL REFUSES, and the asymmetry with the default is the register's own: an operator who names a file asked for that file, so its absence is exit 2; a tree that merely carries none is not judged. Collapsing the two would let a typo'd `--inventory` read as "no inventory here" and pass. Three cases pin it, all in `tests/estate_inventory/`: `test_the_inventory_is_the_SCANNED_TREES_or_it_is_NOTHING` (a tree with none is not judged and says so; the SAME tree, once it carries one, is judged against it with no flag), `test_a_scanned_tree_inventory_that_CANNOT_BE_USED_refuses_not_falls_back`, and `test_a_NAMED_inventory_that_is_missing_REFUSES_rather_than_not_judging`. $ python3 -m pytest tests/estate_inventory tests/code_surface tests/scope_globs -q 293 passed in 17.80s and the diff against `main` is five files — the three NEW, the ONE narrowing extension, and the ONE new test package — with `tests/code_surface/` and `tests/scope_globs/` untouched by one byte. Refs #1087 Refs #1101 Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Fable 5.1 <[email protected]>
… checked (#1119 review round) EVERY ONE OF THESE IS THE SAME SENTENCE READ STRICTLY. The requirement's own ground for `admitted_by:` is that "the row is CHECKABLE AGAINST THE TREE rather than asserted"; each finding below is a part of the evidence the reader was not in fact checking, and so a place a row could be admitted — or a live row condemned — on evidence nobody looked at. - THE ORIGIN'S HOST IS PART OF THE IDENTITY. `_ORIGIN_RE` matched any forge and kept only the `<owner>/<name>` path, so `[email protected]:opensoft/xFactory.git` VERIFIED as this estate's aggregation. `FORGE_HOSTS` bounds it to GitHub's canonical ssh and https forms, measured from the estate's own spellings (every `url =` in the aggregation's `.gitmodules`, and this repository's own origin); the transfer map records an `<owner>/<repo>` address and carries no host field, so it could not supply the bound and the module header says so. - A GITLINK'S CARRIER MUST BE A GOVERNED ROW OF THIS INVENTORY. The kind's first clause is "a GOVERNED ESTATE REPOSITORY's `.gitmodules`"; the loader checked the carrier's SHAPE alone, so a row could claim evidence from a repository no row names, or from a `pinned`/`external` one. Bound at load, to a fixed point. - `root` ADMITS THE AGGREGATION AND NO OTHER ROW. It names no file, so `evidence_verdicts` marks it NAMED unconditionally and correctly — which made it, unbound, the one admission no run could contradict. `AGGREGATION_ROOT`. - THE BARE NAME IS THE ADDRESS'S FINAL SEGMENT. `name:` was checked for syntax and never against `repository:`, so a row could make `trusted` authorize `opensoft/openxFactory` while `openxFactory` resolved to nothing. - A SUBSTRING IS NOT A NAMING. `repository in text` let a pin naming only `opensoft/openXwallet` discharge a row for `opensoft/open`. Matched on address boundaries, with `/` deliberately NOT a boundary (the estate's pins write addresses inside URLs) and a trailing `.git` admitted explicitly. - AN ARCHIVED ID IS MATCHED WHOLE. `endswith` made `2026-09-18-recreate-a-thing` report `create-a-thing` as archived, retiring a live PROVISIONAL row on another change's act. The dated separator is required. - THE `change` KIND ADMITS A RATIFIED CHANGE AND NOT A DIRECTORY. Any directory under `openspec/changes/` resolved as NAMED, so any draft admitted any repository — on the one kind whose evidence an author controls completely. `Status:` is read through the shipped strict loader's `read_header_line`, the same window rule `doc_health.corpus` applies, so the two cannot disagree. - NO SYMLINK, IN A SUPPLIED TREE EITHER. A carrier's `.gitmodules` was read through `is_file()`/`read_text()`, both of which follow links; a dangling link now reads as UNREADABLE rather than as "no submodules". - THE ARCHIVE WALK OBEYS THE SAME RULE. `child.is_dir()` follows links, so a link named like an archived change expired a provisional row on bytes outside the tree. - A SILENT `NOT JUDGED` IS THE WORSE VERDICT, BECAUSE IT PASSES. The required validator's default probe asked `is_symlink() or exists()`; for a symlinked `scripts/` whose target carries no inventory BOTH are false, so a tree reaching its inventory through a link reported membership NOT JUDGED. Probed with `os.lstat` semantics, and the refusal is `load_inventory`'s own. FAILS-THEN-PASSES, TEN NEW CASES IN `tests/estate_inventory/`, one per finding, each run against the pre-fix tree first: 10 failed, then 10 passed. The whole suite is 303 passed, and both validators exit 0. § 3.6 holds: the only files that move are the three this pull request already owns. TWO FIXTURES IN THIS PULL REQUEST'S OWN TEST FILE WERE UNDER-SPECIFIED AND THE FIXES FOUND THEM. `_inventory` now binds a fixture's gitlink carriers to rows (APPENDED, so `rows[0]` is still the row the case wrote; `bind_carriers=False` opts out for the cases testing the binding), and the MAY-becomes-MUST case's `create-a-thing` is written `Status: ratified`, which is what its own docstring always said it was. Refs #1087 Refs #1101 Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
… identity, and that the transfer map could not supply the bound The design note the forge-host fix owes, written where a reader of this module meets the carrier check rather than only at the constant. Refs #1087 Refs #1101 Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…RK-TREE ROOT rather than any path git will answer for (#1119 round 2) THE CARRIER READ IS THE BINDING, so what the read inherits and what it accepts as a tree are both part of it. Three findings, all TRUE, all measured on this branch before they were acted on. - AN AMBIENT `GIT_DIR` FLIPPED THE BINDING, and this is measured rather than reasoned about: a checkout of `opensoft/Innocent` read as `git -C <that tree> remote get-url origin` under `GIT_DIR=<another repo>/.git` answers `[email protected]:opensoft/xFactory.git` — so the tree VERIFIES as a carrier it is not. `GIT_COMMON_DIR` and `GIT_WORK_TREE` move the repository out from under `-C` the same way. A caller controls its own environment and CI is an environment; a binding a variable can flip is not a binding. The estate's own scrub list is applied (`carved_reach.py`, `hermes_runtime_validation/content.py`, `report-citation-remainder.py` carry the identical tuple; none exposes it importably, so it is restated with its citation), with `--no-replace-objects`, `GIT_NO_REPLACE_OBJECTS`, and the global and system config read from `os.devnull`. MEASURED HONESTLY: the `GIT_CONFIG_COUNT`/`GIT_CONFIG_KEY_n` half of the finding did NOT reproduce for `remote get-url` on this git — an injected `remote.origin.url` neither overrode a real remote nor created a missing one. Those names are scrubbed anyway, on the estate's standing ground and not on a demonstration this commit can claim. - A BARE REPOSITORY ANSWERS `remote get-url origin` PERFECTLY WELL, so a bare repo with a `.gitmodules` planted beside its refs discharged a row while being no checkout at all — against the mode's own ratified word, "a carrying repository's WORKING TREE". - A SUBDIRECTORY OF A CHECKOUT ANSWERS TOO, because git discovers upward, and there `.gitmodules` is absent where the caller pointed — so the row was reported GONE. That is a row CONDEMNED on a caller's imprecise path, which is exactly the alternative `design.md` D1.2 retained and DECLINED: "it converts a caller's typo into a finding against the inventory". `rev-parse --is-bare-repository --show-toplevel` answers both shapes in one call, and the toplevel must RESOLVE TO THE SUPPLIED PATH. Both leave the row NOT RE-CHECKED — counted, neither passed nor failed — which is the one verdict this arm has for a tree it could not confirm, and the report now names the refusal. Also: the typo `addresss` in a test name added last round, renamed. FAILS-THEN-PASSES, two new cases: against the pre-fix reader, 2 failed; with it, 2 passed. Full: 305 passed, both validators exit 0. Refs #1087 Refs #1101 Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…e GOVERNED (#1119 round 3) Two findings from Copilot's next pass over b747daa, both true, one measured honestly rather than assumed. - `GIT_CONFIG` WAS THE ONE ENTRY `_SCRUBBED_GIT_ENVIRONMENT` DID NOT CARRY. MEASURED, NOT ASSUMED, the same way round 2 measured GIT_CONFIG_COUNT/ GIT_CONFIG_KEY_n: on this branch's git, an ambient GIT_CONFIG naming a file that rewrites remote.origin.url does not itself flip `remote get-url` or `rev-parse` (it redirects `git config`'s own default file, not the config stack every other command reads) — `test_an_ambient_GIT_CONFIG_is_scrubbed_from_the_carrier_read`'s first assertion holds even pre-fix. Scrubbed anyway: a caller controls its own environment, and a binding that rests on one git version's undocumented non-effect is not a binding. The three siblings (`carved_reach.py`, `hermes_runtime_validation/content.py`, `report-citation-remainder.py`) do not yet carry this entry, and the divergence is recorded in the file rather than left for the next reader to notice. - A `root` ROW COULD DECLARE `governance: pinned` OR `external` AND STILL LOAD. `root` names no file, so nothing downstream ever re-checks it: `evidence_verdicts` marks it NAMED unconditionally, and the membership arm refuses only `governance: external` — waving a `pinned` root through unrefused. `root` denotes the aggregation itself, which this estate authors directly, so the row it names must say `governed`. `test_a_ROOT_row_must_declare_governance_GOVERNED` covers both wrong classes; the live row already reads `governed` and is unaffected. FAILS-THEN-PASSES, two new cases: against the pre-fix reader, 2 failed (the GIT_CONFIG scrub assertion; DID NOT RAISE for the pinned root); with it, 2 passed. Full: 307 passed, both validators exit 0. Refs #1087 Refs #1101 Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Sonnet 5 <[email protected]>
…ow (#1119, thread 3 ruling) RULED by Brett Heap, 2026-09-21 ~20:30Z (lane channel), terminal multiple-choice, verbatim "Drop the pin admission on row 3". Thread PRRT_kwDOTAvnrs6j3KY4 (Copilot, `scripts/estate-repository-inventory.yaml:153`) stood unresolved since round 1: `contracts/review-lane-pin.yaml` is `kind: pinned_workflow`, a commit-only pin of EXECUTABLE GOVERNANCE CODE with no digest set, and the row is `governance: governed` rather than `pinned` — row 3 failed both of the closed `pin` kind's own clauses, while `design.md` D0.2 row 3 and D0.1's own measurement ratified this exact admission. Three remedies were open and none was this seat's to take (dropping the admission, reclassifying the site, or widening the kind's wording all touch ratified text); the previous seat filed it RULING NEEDED and left the thread unresolved on purpose. This is the ruling, taken. Row 3 now carries its `gitlink` (carrier `opensoft/xFactory`) and its real `workflow` evidence (`.github/workflows/merge-master-approval.yml`) and nothing else. THE PIN KIND'S DEFINITION AND THE LOADER DO NOT CHANGE — this is a data correction to one row, not a schema change. The packet's own D0.2 row 3 is amended on the same word, in a separate change, by the coordinator's other seat. `test_the_live_codexFactory_row_is_admitted_by_gitlink_and_workflow_only` fails against the pre-fix row (admitted_by carries `pin`) and passes here. Full: 308 passed, both validators exit 0. Refs #1087 Refs #1101 Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Sonnet 5 <[email protected]>
record's language for this packet current (archived and promoted by #1112, not active), and qualify canon's AMENDED BY provenance sentence to name what it added rather than implying every paragraph and scenario is canon's own bytes Two unresolved threads, both TRUE: README.md:3260 — the add-estate-repository-inventory active record described amend-code-surface-grammar-comma-and as an "ACTIVE RATIFIED writer" / "ACTIVE writer" of the same requirement key in two places, which now contradicts the sweep ledger's `state: archived` and this PR's own archived-changes entry for the same packet. Both sentences now say the co-writer is ARCHIVED and promoted by this PR (#1112), that the sequenced_after declaration stands as history (resolution consults the active and archived corpora both), and that the ordering was satisfied (#1108 then #1101, #1108 itself untouched). openspec/specs/release-realization/spec.md:1119 — the AMENDED BY provenance sentence claimed every paragraph and every scenario of the block is promoted canon's own bytes except three named in-place corrections, but the block also carries two wholly new explanatory paragraphs (the `, and ` separator paragraph and the narrowed `, and …` case paragraph) and one wholly new scenario (the Oxford-comma scenario), none of which is canon's prior bytes under any reading. Verified against `git diff 0b1e826~1 0b1e826 -- openspec/specs/release-realization/spec.md`: exactly three in-place corrections (already named) plus two added paragraphs and one added scenario (not previously named as additions). The sentence now distinguishes UNCHANGED / CORRECTED IN PLACE (the three, unchanged) / ADDED BY THIS AMENDMENT (the two paragraphs and the scenario, forward-referenced to where the paragraph already names them). No requirement or scenario text is changed, only this provenance sentence. The archived delta copy at openspec/changes/archive/2026-09-18-amend-code-surface-grammar-comma-and/specs/release-realization/spec.md is deliberately left untouched as the frozen record of what PR #1108 ratified, consistent with `record-immutability` / `govern-archived-record-edits` and this PR's own prior two Copilot rounds, neither of which ever edited archived-directory content, only the living README/ledger bookkeeping describing it. This means the README's earlier "BYTE-IDENTICAL ... sha256" measurement of the promoted block now describes the pre-this-commit state; flagged in the reply and the report rather than silently re-measured, which is out of this round's scope. Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Fable 5.1 <[email protected]> Refs #1092
…ose (#1119 round 4) `_names_repository` scanned the whole evidence file's TEXT for the address — bounded so a substring of a longer address would not match, but a boundary on that match still let PROSE discharge an admission, because prose is text too. `contracts/openspec-cli-pin.yaml`'s own `source_repository:` is `Fission-AI/OpenSpec`, and its header commentary names `codeXfactory/codexFactory` more than a dozen times documenting THAT repository's own use of the pinned CLI; a row admitted by this file for `codeXfactory/codexFactory` would have reported NAMED on a comment, never on the file's own claim. Fixed: the evidence file is parsed ONCE, through the same refused-construct loader the inventory itself reads through (`frontmatter_strict.StrictLoader`), and only its STRUCTURAL fields are asked — `_pin_names_repository` for `kind: pin` (`repository:` / `source_repository:` at the top level, or `source_url:` normalized through the same `normalize_origin` a working tree's own origin is read with — `contracts/openreposhape-pin.yaml` and `openspec-cli-pin.yaml` carry `source_url:` beside `source_repository:`, and the existing `test_evidence_naming_a_LONGER_address_does_not_discharge_a_shorter_row` fixture uses `source_url:` ALONE, so this had to keep working), and `_workflow_names_repository` for `kind: workflow` (a step's `uses:`, or a step's `with.repository:` — row 3's own real site, `.github/workflows/merge-master-approval.yml`). A `pin` document goes through `strict_load` and its byte ceiling, sized for a front-matter document and everything this estate's five pins fit inside; a `workflow`'s does not — this estate's own workflow files run past that ceiling on documentation prose alone (`merge-master-approval.yml` is over 115KB), a size the ceiling was never sized to refuse, so the same loader is used directly, without it. FAILS-THEN-PASSES, two new cases: against the pre-fix reader, 2 failed (both `AssertionError: assert ['named'] == ['gone']` — the prose-only fixture falsely NAMED); with it, 2 passed. A third case pins the live corpus: row 3's real `.github/workflows/merge-master-approval.yml` is measured over the ceiling and still reads NAMED through the ceiling-bypassing path. Full: 311 passed, both validators exit 0. Refs #1087 Refs #1101 Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Sonnet 5 <[email protected]>
…1119 round 4) The header's own re-measurement note still said "11 nested gitlinks in 6 repositories" — round 1's figure, from before rows 28-33 were reclassed `governed`. This realization's own § 4.3 disclosure (PR #1119's body) already recorded the true count as 12 in 7, the additional carrier being `opensoft/LedgerxAvatar` (reclassed `governed` at § 3.1, nesting `opensoft/openAvatar`); the header inside the machine-readable file it describes had not caught up, and a stale population claim sitting beside the population it is a claim ABOUT is the shape `document-lifecycle`'s contested-finding rule exists for. RE-MEASURED here rather than copied from the body: fresh, against the live `.gitmodules` of all 25 governed non-root rows, as of `728b8770` — ``` $ for r in opensoft/openxFactory codeXfactory/codexFactory MedxSoft/MedxFactory ledgerXfactory/LedgerxFactory opensoft/OpsxFactory opensoft/AdxFactory opensoft/MedxChart opensoft/MedxPractice MedxSoft/MedxEHR opensoft/HealthLinc opensoft/AgentTower opensoft/xFactory-Hermes-Install opensoft/Omnigent-Install opensoft/OmniWorker-Install opensoft/CloudPC-Install opensoft/xFactory-Installer opensoft/xFactory-MedxRootTruth-Install opensoft/Keycloak-Install opensoft/OpenXPKI-Install opensoft/openChart opensoft/openPractice opensoft/MedxAvatar opensoft/LedgerxAvatar MedxSoft/MedxEHR-spec MedxSoft/MedxEHR-code; do gh api repos/$r/contents/.gitmodules -q .content 2>/dev/null | base64 -d \ | grep -oP 'github\.com[:/]\K[^ ]+' | sed 's/\.git$//'; done -> 12 nested gitlinks, 7 distinct carriers (adds opensoft/LedgerxAvatar -> opensoft/openAvatar over round 1's 11-in-6) ``` `opensoft/openAvatar` names NO repository the inventory did not already carry (row 15, the aggregation's own gitlink), so the TARGET set is unchanged at the same 7 no other site names — only the CARRIER count and the gitlink count move. Documentation only: the note is a `#` comment, read by no parser and enforced by no code, so there is no code path to a fail-then-pass case here. Verified instead by re-running both validators and the full suite unaffected (311 passed, both exit 0) and by grep for the corrected figure. Refs #1087 Refs #1101 Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Sonnet 5 <[email protected]>
…: codexFactory is admitted by gitlink and workflow, not by review-lane-pin.yaml (refs #1087) (#1130) Refs #1087. Refs #1101. Refs #1119. Ratified-text amendment to the packet add-estate-repository-inventory on Brett Heap's ruling of 2026-09-21 ~20:30Z, verbatim "Drop the pin admission on row 3" (terminal multiple-choice answer to lane openXfactory-5): design.md D0.2 row 3 admits codeXfactory/codexFactory by gitlink (opensoft/xFactory) and workflow only, contracts/review-lane-pin.yaml being a commit-only pinned_workflow of governance code and not a commit-and-digest pin; the pin kind's definition is unchanged; the ruling is recorded in the packet's approval record. Lands as ratified on that word. Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Fable 5.1 <[email protected]>
…b-level reusable-workflow site (#1119 round 5) Two findings from Copilot's next pass over `ec5fa141`, both true, fixed together (one commit per thread or one for both; both here). - A MALFORMED TRANSFER ROW COULD BECOME AN AUTHORITATIVE IDENTITY CHANGE ON TWO STRING FIELDS ALONE. `load_transfers` checked only `transfer_state == "complete"` and never looked at `transferred_on` — so a row edited to add `transfer_state: complete` with `transferred_on` left `null` (or any non-date value) resolved as `BY_FORMER`, bypassing the membership arm's fail-closed path on an edit the policy file's own text already calls malformed: `field_rules.transfer_state` states the map's one MUST — "The two fields move together and a reader MUST treat any disagreement between them as a malformed row." `load_transfers` now returns `(transfers, malformed_findings)`: a `complete` row is admitted only when `transferred_on` is a real date and both `former`/`current` are `<owner>/<name>` addresses; anything else is refused and reported, not silently dropped alongside the ordinary `pending` rows. Both validators thread the new findings through to a FAILED report and exit 1 — this is a fail-closed defect, not a warning. Three call sites changed shape (`load_transfers` → 2-tuple): `scripts/validate-code-surface.py` (`MembershipReport` gains `transfer_findings`, both its real and its `membership is None` fallback construction, the summary line, a FAILED block, and the exit-code check), `scripts/validate-estate-inventory.py` (a FAILED block and the exit-code check), and the one test call site. COLLATERAL, DISCLOSED RATHER THAN SILENT: three existing fixtures (`test_a_tree_at_the_carriers_FORMER_address_VERIFIES_through_the_map`, `test_the_inventory_carrying_a_FORMER_address_reports_the_current_one`, and the code-surface counterpart) wrote `"transferred_on": "2026-09-09"` — a Python STRING. `yaml.safe_dump` quotes a date-shaped string to preserve its type on reload, so the fixture, unlike the live policy file's own unquoted date, round-tripped as `str` and would have failed the new date-typing check though the row is lawful. Fixed to a real `datetime.date(2026, 9, 9)` object, matching what the live file — and `yaml.safe_dump` given a real date — actually writes. - THE WORKFLOW READER ONLY EVER LOOKED INSIDE `steps[*]`. GitHub Actions also calls a reusable workflow at `jobs.<job_id>.uses` — a job written this way carries NO `steps:` of its own (the called workflow's steps run in its place) — so a workflow admission whose real site is job-level read GONE even though the file's own structural `uses:` names the repository plainly. `_workflow_names_repository` now checks `jobs.<job_id>.uses` first, then falls through to the two step-level sites unchanged. FAILS-THEN-PASSES, two new cases: against the pre-fix reader (`ec5fa141`), 2 failed (`ValueError: not enough values to unpack` for the transfer-map case, since `load_transfers` was not yet a 2-tuple; `assert ['gone'] == ['named']` for the job-level case). With the fix, 2 passed. Full: 313 passed, both validators exit 0. Refs #1087 Refs #1101 Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Sonnet 5 <[email protected]>
The post-pass bound `root` and `gitlink` but skipped every `pin` admission without checking the kind's second clause. The promoted spec's own words: "`pin`: an openxFactory file under `contracts/` names the repository as the source of a commit-and-digest pin. This is openxFactory's act, for a product PINNED rather than governed." Unchecked, a malformed inventory could load a `governed` row admitted only by a contract pin, and the membership arm would accept it — it refuses only `governance: external`. This is exactly the shape row 3 (`codeXfactory/codexFactory`) carried until Brett Heap ruled it out, verbatim "Drop the pin admission on row 3": `governance: governed` AND admitted by `pin (review-lane-pin.yaml)` at once. Fixed: a `pin` admission on a row declaring `governance: governed` is now refused at load, named. The two lawful classes any real `pin`-admitted row in this estate actually carries — `pinned` (rows 12-14, 16) and `external` (row 26) — are unaffected; the live inventory still loads and both validators still exit 0. COLLATERAL, DISCLOSED RATHER THAN SILENT: round 4's own `test_a_PIN_admission_is_named_by_its_STRUCTURAL_field_and_not_by_prose` fixture used `codeXfactory/codexFactory` at `governance: governed` with a `pin` admission, to mirror the real `openspec-cli-pin.yaml` prose scenario — a shape this round's own fix now correctly refuses before that test's `evidence_verdicts` call is ever reached. Changed to `governance: pinned`, which exercises the identical structural-vs-prose code path the round-4 case is actually about, without also tripping this round's new load-time check. FAILS-THEN-PASSES, one new case: against the pre-fix reader (`81a01b3c`), `Failed: DID NOT RAISE EstateInventoryError`; with the fix, 1 passed. Full: 314 passed, both validators exit 0. Refs #1087 Refs #1101 Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Sonnet 5 <[email protected]>
…s reader and validator, and the membership arm (refs #1087) (#1119) Refs #1087. Refs #1101. REALIZATION of add-estate-repository-inventory §§ 3–4 (the code surface named by its proposal: scripts/estate-repository-inventory.yaml, scripts/estate_inventory.py, scripts/validate-estate-inventory.py, the membership arm of scripts/validate-code-surface.py, tests/estate_inventory/), with the packet's tasks.md §§ 3–4 ticked on this PR's own evidence and § 4.4 noted for the archive act. LANDED on Brett Heap's word 2026-09-23 ~16:40Z, verbatim 'land #1119' (RULED in lanes/log/openXfactory-5.md at brett-wip 193719c1). The archive (§ 5) is a separate act on a separate word under release-realization: this packet's non-empty code_surface archives on merged-plus-green evidence of this landing. Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Fable 5.1 <[email protected]>
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]>
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]>
… capability after realization 5e12238 (#1149) Closes #1087. Refs #1101. ARCHIVE of add-estate-repository-inventory: the ratified delta promoted onto openspec/specs/release-realization/spec.md as written (one MODIFIED block, two ADDED requirements; 19 → 21 requirements), the packet moved to openspec/changes/archive/2026-09-23-add-estate-repository-inventory/ with tasks.md § 4.4 and § 5 ticked on merged-plus-green evidence (realization #1119 → 5e12238; main pytest-suite run 35907128216 SUCCESS), the README OpenSpec Records block, one accept entry in openspec/origin-dispositions.yaml for #1130's approved_by append, the modified-block-currency carriage row retired, the per-change sweep ledger row moved. LANDED BY MERGE COMMIT on Brett Heap's words 'archive it when the draft is up' (2026-09-23; RULED 21:04:55Z) and 'land it when the draft is green' (2026-09-23 ~22:20Z), and on his ruling of ~23:05Z 'Land as ratified + disposition (Recommended)' over the disclosed consequence that canon's non-normative AMENDED BY paragraph reads as #1108 ratified it (the #1112 round-3 qualification 35afdc3 is dropped): the fallback disposition rows follow in opensoft/xFactory health/dispositions.yaml. Independently verified before landing (delta byte-for-byte, origin entry, registry, dates, renames) and test-merged against main 94b6f7f with every self-gate green. Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Fable 5.1 <[email protected]>



Lane: openxfactory-5 (openXfactory-5)
Ratified
RATIFIED 2026-09-18 at approximately 12:55Z by Brett Heap (openxFactory
operator authority), the word verbatim "ratify #1101" — given in the lane's
terminal to lane
openxfactory-5(session651195c7, workstation Eagle).NO GITHUB COMMENT CARRIES THIS WORD: the channel is the terminal, not a
review thread, and the lane recorded it as a RULED entry against
opensoft/openxFactory#1101inlanes/log/openXfactory-5.md. The instant iswritten to the precision it was given at and no finer — inventing a minute would
be inventing evidence.
WHAT THE WORD RESOLVED. It is BARE and names no alternative, so each of the
four decisions put at
proposal.md§ The decision, put for a veto takes itsRECOMMENDED option, which is what that section and
tasks.md§ 1.1 both say abare word does: D2 the inventory at
scripts/estate-repository-inventory.yamlwithtarget_release: implemented;D3 one
## MODIFIEDblock over the promoted grammar requirement; D4 fiveclosed admission-evidence kinds (
gitlink,pin,workflow,root,change)and three governance classes, the inventory RECORDING an admission and PERFORMING
none; D5 a former address in an active head REPORTS rather than refuses.
tasks.md§ 1.4's two review-forced disclosures — the widenedgitlinkkind andthe bounded reverse arm — are taken with the rest, § 1.4 having declared them part
of what the packet says rather than a fifth decision.
THE BARE WORD TOOK THE OPTION THIS PACKET HAD ALREADY ENCODED, SO THE DELTA'S
WORDING STOOD UNCHANGED UNDER IT (the precedent is PR #887). Not one byte of
specs/release-realization/spec.mdmoved in the ratification commit — the filedoes not appear in its diffstat at all — its 27 scenarios were the 27 that word
was given over.
Ratified again, three times, on gaps that word had not reached
THREE FURTHER WORDS OF THE SAME DAY MOVED THE RATIFIED TEXT, and the
difference from the bare word is stated rather than smoothed over: a ratifying
word does not reach text it was not given over, so each is its own act with its
own encoding. Copilot's review of this pull request exposed three gaps; each was
put to Brett Heap as a MULTIPLE CHOICE and each was answered on 2026-09-18 at
approximately 15:40Z in the lane's terminal to lane
openxfactory-5, recordedas
RULEDentries inopensoft/brett-wiplanes/log/openXfactory-5.md. NOGITHUB COMMENT CARRIES THESE WORDS EITHER. All three are encoded in ONE commit,
089b02e0, and the full record isopenspec/changes/add-estate-repository-inventory/review/ratification-2026-09-18.md(NEW), with the words appended to
.openspec.yaml'sapproved_bybeside theUNMOVED drafting provenance.
spec.md, A gitlink row is re-checked only against a supplied treecontracts/policies/repository-identity.yaml— before its.gitmodulesevidence is trusted; a tree that fails leaves the row NOT RE-CHECKED, counted, neither passed nor failedproposal.md:4, thesequenced_after: []root claimsequenced_after: [amend-code-surface-grammar-comma-and]is declared and the## MODIFIEDblock is written over THAT packet's outcome, reproducing its ratified wording byte-for-byte with this packet's membership change on top; promotion order #1108 then #1101, #1108 untouchedspec.md, A repository a ratified change is creatingadmitted_by: change); the membership arm stays UNCONDITIONAL and still FAILS CLOSED(1) BINDS THE EVIDENCE TO THE ROW. A path is an assertion and not an
identity: an unverified path lets ONE repository's
.gitmodulesdischarge — orcondemn — ANOTHER repository's row, which is the same defect as resolving a name
by asking the provider, arriving by a different door. The enumeration requirement
gains a normative paragraph, this scenario gains the verification and a second
ANDfor the failed-verification verdict, and the membership arm's bound sentenceand its own scenario follow. The declined alternative is recorded at
design.mdD1.2: FAIL the row on a mismatched tree, which converts a caller's typo into a
finding against the inventory.
(2) IS ALSO WHAT MAKES THE SELF-GATE GREEN, BY A DECLARATION AND BY NO TEST
EDIT.
test_the_resolution_ordering_and_marker_classes_read_zero_over_the_real_treefailed at
7b2fdf93with two fresh ordering subjects (run 35364049229), becausethis packet and
amend-code-surface-grammar-comma-andboth carried a## MODIFIEDblock over the same requirement key and neither declared the other.modified-block-currencyreads the ordering from the later change'sproposal.mdby whole-token mention, so the declaration RESOLVES the pair: this block is
measured against #1108's block instead of canon and the arm reports nothing,
returning
_ORDERING_SUBJECTSto the empty exact set it already states. The foldcarries #1108's four list separators including
, and, itslonger-separator-first sentence, its narrowed
, and …refusal, its**AMENDED BY**note and its added scenario A declaration spells its list outwith an Oxford comma — taken byte-for-byte from that packet's delta on
main.#1108's own
Removed from canonmarker is deliberately NOT carried: it declaresthree units removed from the canon that PRECEDED it, none of which survives in
this block's basis, so carrying it would describe neither this block nor its
basis. NOT ONE BYTE OF
tests/ORscripts/IS EDITED, and the only fileoutside the packet is the machine-seeded sweep-ledger row.
(3) MOVES THE OBLIGATION TO THE SIDE THAT CAN DISCHARGE IT. A
MAYmade thefail-closed verdict depend on a choice nobody records — omit the row and a
RATIFIED packet's lawful declaration is refused inside the very window the
changekind exists to cover. The inventory now OWES the row; the gate keeps theone property the whole arm is for.
THE ENCODE, AND WHERE TO READ IT.
7c50d5f7## MODIFIEDblock, discharging the carriage-ledger finding; corrected the README bullet's scenario count (26 → 27) and its measurement summary (fifth naming site, 27 → 33 rows)5d25ac4edesign.mdD0.1's branch-head figures re-taken after the merge frommain089b02e0sequenced_afterdeclared and #1108's text folded (block 10 → 11 scenarios, packet 27 → 28), and MAY → MUST; plusreview/ratification-2026-09-18.md(NEW) and the re-seeded sweep-ledger row (one row,declares/depth)69763b53Status: draft→ratifiedonproposal.md,design.mdandtasks.mdwith ONE citation line each;.openspec.yamlgains theapproved_by/approved_onpair as an ADDITION beside an UNTOUCHED origin block (git diff --numstaton that file =50 0—kind,id,reason,proposed_by,proposed_onbyte-identical, the addition-not-rewrite shapeadd-drafted-proposal-origindefined);tasks.md§ 1 ticked in the GIVEN form; the README Active changes bullet restated so no DRAFT/HELD wording remains (the drift openxFactory #1093 was raised for)WHAT IS STILL OWED.
tasks.md§ 1 is ticked; §§ 3, 4, 5 and 6 are OPEN,all eighteen of their tasks unticked. The REALIZATION is a later pull request the
word now authorizes to be authored. NO MERGE WORD IS QUOTED HERE: the verbatim
word is "ratify #1101" and nothing further, the register entry's trailing clause
("then land the packet PR on a green gate") is the LANE'S READING of it and not
more words of Brett Heap's, and the merge is a separate act by whoever holds it.
The ARCHIVE is a separate act again, on a separate word and on merged-plus-green
realization evidence, which is why this body says refs and carries no closing
keyword — openxFactory #1087 stays OPEN and closes THERE.
What this proposes
PACKET ONLY. This pull request adds no script, no inventory file and no test.
It carries
proposal.md,design.md,tasks.md,.openspec.yaml, one specdelta, one README Active changes bullet, and the machine-seeded per-change
sweep-ledger row.
tasks.md§§ 1, 3, 4, 5 and 6 stay entirely open.When ratified it authorizes, as a LATER pull request: a machine-readable
inventory of the estate's repositories (
scripts/estate-repository-inventory.yaml,carrying
schema_versionandkind), a reader and a house validator for it, andONE MEMBERSHIP ARM added to
scripts/validate-code-surface.pyso a declaredrepository set is judged against the inventory.
The delta is ONE
## MODIFIEDblock and TWO## ADDEDrequirements overrelease-realization, 28 scenarios (11 + 8 + 9):amend-code-surface-grammar-comma-and's outcome, its eleventh scenario that packet's own)The eighth inventory scenario, A gitlink row is re-checked only against a
supplied tree, was added at this review with the bounded reverse arm below.
MODIFIED IS OWED RATHER THAN PREFERRED. The promoted text reads "The gate
SHALL judge the identifier's SHAPE and SHALL NOT judge its MEMBERSHIP of any
inventory", and that
SHALL NOTis unconditional in its own words. An ADDED-onlydelta would put "membership SHALL be judged" into canon beside it, and
document-lifecyclemakesideation/brainstorm/the only place contradiction islegal. The block restates the requirement EXACTLY as canon states it but for ONE
paragraph, and that paragraph is lifted by REMOVING ITS STATED REASON: the reason
("this repository defines no inventory of the estate's repositories to resolve
against") stops holding at this packet's realization, and the prediction beside it
("would refuse every declaration on the day it landed") is measured FALSE below.
THE BLOCK IS WRITTEN OVER
amend-code-surface-grammar-comma-and'S OUTCOME,NOT OVER CANON, AND
sequenced_after:SAYS SO. At drafting no active changewrote
(release-realization, Code-surface declaration grammar is gated), so theblock was SOLE and
sequenced_after: []was a corroborated root claim. Thatstopped being true when #1108 landed at
60d281a8with a block over the samekey. On Brett Heap's ruling "#1101 declares #1108 and folds its text",
proposal.mdnow declaressequenced_after: [amend-code-surface-grammar-comma-and], the block reproducesthat packet's ratified wording byte-for-byte with this packet's paragraph applied
on top, the promotion order is #1108 then #1101, and #1108 is not touched.
With the declaration read,
modified-block-currencyreports no NEW finding — andTWO FEWER than before it, the ordering warning against #1108's block being
cleared by this packet's declaration without editing that packet.
Measurement
The first four naming sites and the declared population were taken on a fresh
clone at
origin/mainad089e8a, BEFORE this packet was filed. The FIFTH SITEWAS TAKEN ON 2026-09-18 AT THIS REVIEW, which is where
gitlinkwas widened,and
design.mdD0.1 records why rather than presenting five sites as if four hadnever been claimed. The declared population was read through the SHIPPED reader
(
scripts/code_surface.py), never by a private scan.The candidate inventory: 33 rows
gov:governedthe estate authors it,pinnedopenxFactory consumes it at acommit and digest,
externalpinned and not of this estate.admitted_by, in the FIVE kinds the delta closes:gitlinka GOVERNED ESTATEREPOSITORY's
.gitmodules, the evidence NAMING the repository that carries it(the aggregation in the wide case, a governed DomainxFactory where the estate
NESTED rather than sibling-linked);
pinacontracts/pin file;wfanopenxFactory workflow;
rootthe aggregation itself;changea ratified changewhose realization creates it.
<owner>/<name>opensoft/xFactoryopensoft/openxFactorycodeXfactory/codexFactoryMedxSoft/MedxFactoryledgerXfactory/LedgerxFactoryopensoft/OpsxFactoryopensoft/AdxFactoryopensoft/MedxChartopensoft/MedxPracticeMedxSoft/MedxEHRopensoft/HealthLincopensoft/openXwalletopensoft/openDoxopensoft/openXdoxopensoft/openAvataropensoft/openRepoShapeopensoft/AgentToweropensoft/xFactory-Hermes-Installopensoft/Omnigent-Installopensoft/OmniWorker-Installopensoft/CloudPC-Installopensoft/xFactory-Installeropensoft/xFactory-MedxRootTruth-Installopensoft/Keycloak-Installopensoft/OpenXPKI-InstallFission-AI/OpenSpecopensoft/LedgerxWalletledgerXfactory/LedgerxFactory), changeopensoft/openChartMedxChartopensoft/MedxChart)opensoft/openPracticeMedxPracticeopensoft/MedxPractice)opensoft/MedxAvatarMedxFactoryMedxSoft/MedxFactory)opensoft/LedgerxAvatarLedgerxFactoryledgerXfactory/LedgerxFactory)MedxSoft/MedxEHR-specMedxEHRMedxSoft/MedxEHR)MedxSoft/MedxEHR-codeMedxEHRMedxSoft/MedxEHR)Row 1 is the row no
.gitmodulescan ever carry. Rows 16 and 26 are rows a.gitmodules-only derivation would miss. Row 26 is the row a flat membership listcould not refuse a surface in. Row 27 forced a fifth admission kind, and is what
the widening lets DISCHARGE instead of expire.
ROWS 28-33 ARE THE SIX MEMBERS THE NARROW READING MISSED, found by re-taking
the measurement rather than by reasoning about it. A first filing read
gitlinkas the AGGREGATION's
.gitmodulesalone. Copilot's review of this pull requestshowed that reading leaves row 27's provisional row with no way to discharge — the
realization that creates
opensoft/LedgerxWalletNESTS it underledgerXfactory/LedgerxFactory, not under the aggregation — so the kind waswidened to a gitlink in ANY governed estate repository, its evidence naming the
carrier, and the second command of
design.mdD0.1 was run over the 19 governednon-root rows:
Each of rows 28-33 is a real submodule of a governed estate repository named by
NO aggregation gitlink, NO openxFactory pin and NO openxFactory workflow, which is
exactly why the narrow reading left them admitted by nothing. Their governance
class is stated only as far as the four openxFactory sites measure it and
tasks.md§ 4.3 re-measures them at the realization head.Where the reverse check can actually look, which the widening forced
The reverse arm's claim is that staleness "is checkable in the tree without a
network call". That is true of FOUR kinds and false of the fifth, and widening
gitlinkmakes the fifth worse rather than better.pin,workflowandchangename files undercontracts/,.github/workflows/andopenspec/changes/, all in THIS checkout;rootnames no file at all; but agitlinklives in a tree an openxFactory checkout does not contain, and now inone of SIX such trees rather than one.
So the bound is STATED rather than left for whoever builds § 3 to discover. The
default run re-checks the four in-tree kinds on every run, deterministically and
with no network call, and that is what the house validator and the membership arm
gate. A
gitlinkrow is re-checked ONLY in an explicitly invoked mode thattakes the carrying repository's working tree as a PATH INPUT, and a run given no
such path REPORTS those rows as NOT RE-CHECKED, with their count. Silence is
never a pass: a run that has not looked reports neither "named" nor "stale", and
it never fetches. Fetching the tree is the very cost
design.mdD1 refused at theforward arm — a required check depending on a token and on read access to a
private repository — and a cost refused at the forward arm may not be readmitted
at the reverse one.
The alternative, retained at D1.2: DROP the reverse check for
gitlinkrowsentirely and name it a successor. Cost: the widest kind, carrying 30 of the 33
rows, would never be re-checked at all. Declined in favour of the bounded mode,
which costs one path argument and one counted line of output.
The population the gate judges
ad089e8acode_surface:noneThe six are
openxFactory,xFactory,openAvatar,opensoft/LedgerxWallet,opensoft/Keycloak-Installandopensoft/OpenXPKI-Install. That last row isthe fact that makes this act safe and is the fact the predecessor could not
have.
gate-code-surface-declarationsdesign.mdD1 rejected membershipresolution as "fatal as things stand", because "on the day it landed the gate
would refuse all 41 non-
nonedeclarations". That cost was a property of havingNO inventory, not a property of resolving against one. Widening the candidate can
only add carriers, so six-of-six holds a fortiori at 33 rows.
Disclosure, rather than leaving it to a reader to notice: at THIS branch's head
the same command reports 49 active and 34 readable lists — the same
totals, by two moves that cancel rather than by nothing having happened. This
packet's own declaration adds one of each, its head
openxFactory(row 2); andthe merge from main archived
add-composed-view-authoring(3e32d987, PR #1056),taking one of each back, which the same run reports as the archive moving from 170
proposals and 124 declaring to 171 and 125.
The fifth admission kind, measured into existence, and now dischargeable
opensoft/LedgerxWalletis a real repository named by NO aggregation gitlink, NOpin and NO workflow. What names it is the RATIFIED
create-ledgerxwallet-overlay-boundary, ratified 2026-08-27, ONE DAY BEFORE itsrealization created and nested the repository. A code surface is
FORWARD-LOOKING, it names where a change WILL write, so a repository the estate is
creating is declared before any tree can name it.
admitted_by: changecarriesa PROVISIONAL row that expires into a finding at that change's archive. Without it
the membership arm would refuse a ratified packet on the day it landed.
THE KIND OWES A DISCHARGE AND THE FIRST FILING DID NOT HAVE ONE.
ledgerXfactory/LedgerxFactory's.gitmoduleshas carried[submodule "LedgerxWallet"]since 2026-08-28. Only agitlinkreaching ANYgoverned estate repository lets that provisional row CLOSE instead of expiring
into a finding no kind could remedy — which is the review finding that forced the
widening, and the reason the fix is a wider kind rather than a longer table.
The defect is standing, not hypothetical
contracts/hermes-runtime/fixtures/domain-regression-inventory.yaml, the file thepredecessor called "a five-row domain-factory regression fixture", has six rows
and three diverge:
opensoft/LegalxFactoryopensoft/LedgerxFactoryledgerXfactory/LedgerxFactoryopensoft/MedxFactoryMedxSoft/MedxFactorycontracts/policies/repository-identity.yaml, the transfer map, carries ONE row,and its own header says a provider redirect "is a grace period, not an identity".
opensoft/LegalxFactoryis the § 6.1 class, standing, in a contract member.tasks.md§ 6.1 names its correction as a successor and does not take it here.The churn rate, which decides where the file lives
gh api "repos/opensoft/xFactory/commits?path=.gitmodules&per_page=100"returns19 commits between 2026-07-01 and 2026-09-12 (74 days). Reading their
subjects, nineteen of nineteen move an inventory row: admissions, retirements
and owner transfers, at one every four days. That is why the inventory lives at
scripts/estate-repository-inventory.yamlbeside the code-surface register andtarget_release:staysimplemented.design.mdD2 retainscontracts/policies/as the alternative and costs it: a newcontracts/memberowes a manifest entry, a recomputed
sha256, and an ADDITIVE MINOR percorrection.
Why a packet
§ 6.1 IS A CARRY-FORWARD AND THE SUCCESSOR WAS NAMED BY A RATIFIED PACKET.
gate-code-surface-declarationstasks.md§ 6.1 recorded the debt and refused totake it: "AN INVENTORY OF THE ESTATE'S REPOSITORIES. Without one the gate judges
a repository identifier's SHAPE and never its MEMBERSHIP, so a plausible
misspelling passes. NOT TAKEN. THE SUCCESSOR IS NAMED HERE AND ITS FILING IS AN
ACT OF THIS PULL REQUEST'S LANDING." #1087 is that filing.
AND THE ACT REACHES A RATIFIED, REALIZED SURFACE. The gate extension edits
the behavior of
scripts/validate-code-surface.py, realized by PR #1029 (mergedto
4cef77af) and promoted by PR #1076 (merged to5dd0a8dc). It also lifts abound stated in the PROMOTED text of Code-surface declaration grammar is gated.
Neither is a validator edit anybody may take on their own word. The authority
question #1087 carries, who admits a repository to the estate and what a row means
for one that is pinned rather than governed, is answered in the delta (
design.mdD4) and is exactly the kind of question OpenSpec exists to put.
Gates at this head (
089b02e0)This head carries a merge of
origin/main(c22c4fc3), so every figure below ismeasured against current main.
The ledger row was re-seeded through the sanctioned
--seed-ledger --moved-by '#1101'and never by hand; ONE row moved and thediff is the declaration itself —
declares: []→[amend-code-surface-grammar-comma-and]and
depth: 0→1. #1108's row did not move (it was alreadyco-modifier), sono MOVEMENT LOG entry is owed.
THE SELF-GATE FAILURE OF
7b2fdf93IS GONE, AND BY THE DECLARATION RATHER THANBY A TEST EDIT. At
7b2fdf93the run (35364049229) failedtest_the_resolution_ordering_and_marker_classes_read_zero_over_the_real_treewith
2 unnamed subject(s) NEWLY reported [('add-estate-repository-inventory', 'release-realization', 'Code-surface declaration grammar is gated'), ('amend-code-surface-grammar-comma-and', …)]._ORDERING_SUBJECTSis an EXACTset that reads EMPTY, and the test's own guidance says a return to zero is the
DESIRED end state — so the remedy was the ordering DECLARATION, not a registration
in that set, which would itself have failed once the finding stopped being
reported.
Both GONE rows are
modified-block-currencyordering warnings forCode-surface declaration grammar is gated — one against this packet's delta and
one against
amend-code-surface-grammar-comma-and's, which this packet'sdeclaration clears without editing that packet. ZERO new findings against this
packet. Measured in ONE clone by stashing and unstashing, never in a worktree,
whose
release-inventory-driftarm reports four extra errors regardless ofcommit.
A
Removed from canon byMARKER WAS OWED AND IS CARRIED — EXACTLY ONE, THISPACKET'S OWN. It names, as code spans, the three sentences the replaced
membership paragraph supersedes, with the reason after the separator, in the form
doc-health's promoted marker-hygiene family defines. All three survive verbatimin the new basis, so the marker needed no re-aiming when the block was folded onto
#1108's outcome.
The four decisions, and what the bare word took
All four are RULED by the bare word above, each at the RECOMMENDED option. They
are recorded here as put, so a reader can see what was taken and what was
declined:
scripts/estate-repository-inventory.yaml,keeping
target_release: implemented. Againstcontracts/policies/, which owesan additive minor per correction against a fact that moves every four days.
Against no file at all and a live derivation from a PRIVATE repository.
## MODIFIEDblock. Against ADDED-only,which leaves the contradiction standing.
—
gitlink,pin,workflow,root,change— and three governance classes,the inventory RECORDING an admission and PERFORMING none. Against a flat
membership list.
address. Against refuse.
Two further review-forced decisions are RECORDED rather than put separately, at
tasks.md§ 1.4: the widenedgitlinkkind and the bounded reverse arm. Both areinside the packet the word is given over.
A BARE RATIFYING WORD takes the packet as encoded, which is the recommendation in
all four, and that is the word that was given. D2 was NOT vetoed, so
target_release:staysimplementedand § 3.1 gains no manifest entry —tasks.md§ 1.3 is ticked NOT TRIGGERED rather than performed.AND THREE FURTHER WORDS WERE GIVEN AFTERWARDS, EACH ITS OWN ACT — "Bind the
carrier identity", "#1101 declares #1108 and folds its text" and "MAY becomes
MUST" — recorded above and at
tasks.md§ 1.5, and encoded at089b02e0. Theyare NOT the bare word re-read: the bare word moved no delta byte, these three
did, and each is quoted verbatim where it is encoded.
Nothing is promoted, realized or archived by this filing or by any of those
four words: no file under
openspec/specs/is edited, no script and no testmoves,
tasks.md§§ 3, 4, 5 and 6 stay open, andcode_surfaceis non-empty, sothe archive is a separate act on merged-plus-green evidence and a separate word,
where #1087 closes.
Refs #1087
Lane: openxfactory-5 (openXfactory-5)
🤖 Generated with Claude Code
Summary by Sourcery
Ratify a packet that defines the estate repository inventory and the future membership gate for code-surface declarations without implementing the inventory or validator yet.
New Features:
Bug Fixes:
Enhancements:
Documentation:
Tests: