You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Realize add-estate-repository-inventory § 3: the estate inventory, its reader and validator, and the membership arm (refs #1087) - #1119
REALIZATION of the ratified packet add-estate-repository-inventory (proposal PR #1101 → merge 344ad3c7; ratified by Brett Heap 2026-09-18 approximately 12:55Z, verbatim "ratify #1101", with his three further rulings of the same day — "Bind the carrier identity", "#1101 declares #1108 and folds its text", "MAY becomes MUST" — encoded in the packet).
Lands on Brett Heap's word "land #1119" (2026-09-23 ~16:40Z, terminal; RULED at opensoft/brett-wiplanes/log/openXfactory-5.md193719c1). A follow-up commit (2858747b) has ticked tasks.md §§ 3–4 with this PR's own evidence, exactly as PR #1107 ticked harden-path-escape-helpers-against-symlink-loops; nothing else in the packet directory or under openspec/specs/ is touched (git diff origin/main..HEAD -- openspec/changes/add-estate-repository-inventory/ is the tasks.md tick and nothing else). § 5, the archive, is a separate act on a separate word and is not sought here.
main landed the ratified-text amendment this thread's ruling calls for: PR #1130 (0f23341f) amended design.md D0.2 row 3 on the SAME word ("Drop the pin admission on row 3") to gitlink (opensoft/xFactory), workflow — merged into this branch at 6c2f1bcc (git merge --no-edit origin/main, no conflicts). The packet's row 3 and this branch's inventory row 3 now read IDENTICALLY, independently arrived at from the same ruling. main moved again (through a151e462) and was merged in a second time at ec5fa141 (git merge --no-edit origin/main, no conflicts); nothing in the packet directory or openspec/specs/ was touched by either merge — both are ordinary catch-ups on a branch this PR does not own.
scripts/estate-repository-inventory.yaml — the 33 rows of design.md D0.2, re-measured at this head
eee585c3
§ 3.2
scripts/estate_inventory.py — the reader, the row-level judge, the carrier-identity check
92bb8eb7
§ 3.3
scripts/validate-estate-inventory.py — the default in-tree run and the verified --estate-tree mode
ed6160c7
§ 3.4
ONE membership arm in scripts/validate-code-surface.py, so the grammar scan and the membership scan report in one run
82ae4f1a
§ 3.5
tests/estate_inventory/ — one case per scenario class, each written to fail without its arm
729448f2
§ 3.6
held: the inventory is the SCANNED TREE'S or it is nothing, so no existing test moves
8407e157
review
ten hardening fixes from the Copilot round, with ten new fails-then-passes cases
277c028e
review
the forge-host design note in the module header
0cd52b7f
review 2
the carrier read itself: a sanitized git environment, and the WORK-TREE ROOT rather than any path git will answer for
b747daad
review 3
GIT_CONFIG dropped from the carrier read's environment (measured inert on this git, scrubbed anyway); a root row must declare governance: governed
247ca3dc
thread 1, RULED
the closed pin kind's unlawful admission dropped from codexFactory's row 3 (Brett Heap, 2026-09-21, verbatim "Drop the pin admission on row 3")
728b8770
review 4
a pin/workflow admission is NAMED by its STRUCTURAL field only, never by prose elsewhere in the file
a961d92c
review 4
the header's nested-gitlinks note re-measured: 12 in 7, not 11 in 6
5e08ff1d
review 5
a complete transfer row is held to its own field-agreement shape (transferred_on a real date, both addresses <owner>/<name>-shaped), not to transfer_state alone; the workflow reader checks the JOB-level uses: site too
81a01b3c
review 6
a pin admission on a governance: governed row is refused at load — the same defect class the row-3 ruling closed on one row, now closed for every row
b626316b
review 7
load_transfers catches PyYAML's ValueError on an impossible calendar date (a finding, not a crash); transferred_on is held to type(...) is datetime.date exactly, so a datetime.datetime timestamp no longer slips the isinstance check; two complete rows naming the same former refuse the WHOLE FILE, naming both rows
c2d4309b
landing prep
tasks.md §§ 3–4 ticked with this PR's own evidence, on Brett Heap's word; nothing else in the packet directory touched
2858747b
§ 3.6 holds and is verified by the diff. The only files this branch adds or edits are scripts/estate-repository-inventory.yaml, scripts/estate_inventory.py, scripts/validate-estate-inventory.py, scripts/validate-code-surface.py and tests/estate_inventory/test_estate_inventory.py. 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.
§ 4.3 — the 33 rows RE-MEASURED at 5e08ff1d, RE-CONFIRMED FRESH at 5d44003c, by the five D0.1 commands
RE-TAKEN FRESH at 5d44003c on 2026-09-23 — this supersedes the round-7 deferral note previously here, and answers PR review thread PRRT_kwDOTAvnrs6lRwAG. All five D0.1 commands were actually re-run against this head, not reasoned about from which files rounds 5-7 touched: (1) gh api repos/opensoft/xFactory/contents/.gitmodules -q .content | base64 -d | grep -oP 'github\.com[:/]\K[^ ]+' | sed 's/\.git$//' | sort → 23 addresses, set difference against the inventory's 23 carrier: opensoft/xFactory gitlink rows EMPTY both ways; (2) the same scan over the 25 governed non-root rows the live inventory's own governance column names → 12 nested gitlinks in 7 carriers (openxFactory 4, MedxEHR 2, LedgerxFactory 2, MedxFactory 1, MedxChart 1, MedxPractice 1, LedgerxAvatar 1); (3) grep -rn 'source_repository\|^repository:' contracts/*.yaml → 8 hits, 6 distinct repositories; (4) grep -rhoP 'uses:\s*\K[A-Za-z0-9._-]+/[A-Za-z0-9._-]+' .github/workflows/ | sort -u plus grep -rln 'codeXfactory/codexFactory' .github/workflows/ → actions/* and codeXfactory/codexFactory, ONE estate repository across the same four workflow files; (5) python3 scripts/validate-code-surface.py . → exit 0, 46 active proposals, 46 declaring — 9 \none`, 30 a repository list, 7 named by the register, 0 outside the grammar, membership 30 readable heads naming 6 distinct identifiers — 6 carried, 0 refused. Every figure MATCHES the 5e08ff1transcripts tabulated below — this is a direct re-run, not an inference, and it reports the SAME totals. **NO ROW MOVED.** The full per-command detail is also recorded intasks.md§ 4.3 itself, dated 2026-09-23, commit5d44003`.
NO ROW MOVED, AS OF 5e08ff1d. The 33-row set stands, every row still admitted by the evidence D0.2 records. Two FIGURES moved and both are disclosed here rather than left for a reader to notice.
1. The aggregation's .gitmodules — 23 addresses, EXACTLY the inventory's 23 carrier: opensoft/xFactory rows.
$ gh api repos/opensoft/xFactory/contents/.gitmodules -q .content | base64 -d \
| grep -oP 'github\.com[:/]\K[^ ]+' | sed 's/\.git$//' | sort
-> 23 addresses
set difference against the inventory's 23 xFactory-carried gitlink rows:
only in .gitmodules: [] only in the inventory: []
2. The nested gitlinks — 12 in SEVEN governed repositories, where D0.1 recorded 11 in SIX. DISCLOSED, and it adds no member.
$ for r in <the GOVERNED NON-ROOT rows of D0.2>; do \
gh api repos/$r/contents/.gitmodules -q .content 2>/dev/null | base64 -d \
| grep -oP 'github\.com[:/]\K[^ ]+' | sed 's/\.git$//'; done
openxFactory 4 · MedxEHR 2 · LedgerxFactory 2 · MedxFactory 1 · MedxChart 1
· MedxPractice 1 · LedgerxAvatar 1 -> 12 gitlinks, 7 carriers
The extra one is opensoft/LedgerxAvatar → opensoft/openAvatar, and the reason it appears now is arithmetic rather than movement: D0.1's command ran over "the 19 governed non-root rows of D0.2", a set fixed before rows 28-33 were classed governed. By D0.2's own governance column at this head the set is 25, and row 31 (LedgerxAvatar) is one of the six that joined it — and it nests openAvatar. It names NO repository the inventory does not already carry: opensoft/openAvatar is row 15, admitted by the aggregation gitlink, which command 1 confirms. So the inventory is not edited for it: what changed is the count a differently-sized input set returns, and D0.2's admissions column stands.
3. The pin declarations — unchanged, 6 distinct repositories.
$ grep -rn 'source_repository\|^repository:' contracts/*.yaml
-> 8 hits: 7 declaration lines (one of them the EMPTY stub in
review-lane-repin-binding.template.yaml) + 1 COMMENTED line in
review-lane-floor-snapshot.yaml
-> 6 distinct repositories: Fission-AI/OpenSpec, opensoft/openDox,
codeXfactory/codexFactory, opensoft/openXwallet, opensoft/openXdox,
opensoft/openRepoShape
4. The workflow site — unchanged at ONE estate repository.
$ grep -rhoP 'uses:\s*\K[A-Za-z0-9._-]+/[A-Za-z0-9._-]+' .github/workflows/ | sort -u
-> actions/* and codeXfactory/codexFactory: ONE estate repository, already a submodule
$ grep -rln 'codeXfactory/codexFactory' .github/workflows/
-> doc-health-reusable.yml, merge-master-approval.yml, pytest-suite.yml,
review-lane-repin.yml
The repository count is what D0.1 measured and it has not moved; the FILE count is now four, and row 3's recorded site (.github/workflows/merge-master-approval.yml) still names it, so one site suffices and no row moves.
5. The declared population, through the SHIPPED reader and never a private scan — the corpus moved, the SIX identifiers did not.
D0.1, at origin/mainad089e8a
round 1, 0cd52b7f
this head 5e08ff1d
active proposals / declaring
49 / 49
46 / 46
44 / 44
none
7
7
6
a readable repository list
34
31
30
named by the closed register
8
8
8
outside the grammar
0
0
0
archive (read, never judged)
170 / 124 / 3
176 / 130 / 3
178 / 132 / 3
distinct identifiers named
6
6 — the same six
6 — still the same six
refused
—
0
0
The corpus keeps moving under other hands while this branch stays open, exactly as tasks.md § 4.3 says it would; it moved again between round 1 and this head, and the drift is disclosed here rather than left for a reader to notice. What the packet actually reasons from did not move: the six distinct identifiers are still openxFactory, xFactory, openAvatar, opensoft/LedgerxWallet, opensoft/Keycloak-Install, opensoft/OpenXPKI-Install — re-verified at 5e08ff1d through the same shipped reader — and all six still resolve, zero refused.
The governance class of rows 28-33 was re-measured at § 3.1 and the finding is recorded in the inventory's own header: MedxChart pins openChart, MedxPractice pins openPractice and MedxEHR pins both of its nested members, while MedxFactory and LedgerxFactory pin neither avatar — and none of the six moves class, because pinned is defined as OPENXFACTORY consuming a repository at a commit and digest, openxFactory pins none of the six, and all six are authored inside this estate.
The membership scan over the LIVE corpus — every declaration judged, ZERO refused
46 active proposals as of c2d4309b/2858747b (the tasks.md tick touches no code and moves no corpus count; 44 at round 4, 46 at round 1 — the corpus moved both ways), every one accounted for. NO lawful active declaration would be REFUSED.
verdict
count
what it is
JUDGED, resolving
30
29 heads naming one identifier, plus qualify-avatar-live-voice's two-member list
REGISTERED / NOT JUDGED
7
no readable head; the register supplies no repository set and the arm does NOT fall back
none
9
the empty surface declares no identifier
REFUSED
0
—
Every resolution, by row, re-verified at this head: openxFactory → row 2 (26 heads total, bare name) · xFactory → row 1 (add-clearing-dispatch-boundary, bare name) · openAvatar → row 15 (qualify-avatar-live-voice, bare name) · opensoft/LedgerxWallet → row 27 (create-ledgerxwallet-overlay-boundary, address — the PROVISIONAL row the "MAY becomes MUST" ruling makes OWED) · opensoft/Keycloak-Install → row 24 · opensoft/OpenXPKI-Install → row 25. No head resolves through the transfer map, so design.md D5's REPORT path fires on nothing today and is exercised by test instead. 0 transfer-map rows malformed at this head too — the live contracts/policies/repository-identity.yaml carries exactly one row (opensoft/codexFactory → codeXfactory/codexFactory, transfer_state: complete, transferred_on: 2026-09-09), it is well-formed by every check round 7 added, and none of it resolves through this run (no head in the corpus is still read at the former spelling) — so round 7's three new guards have a real row to pass through cleanly, not merely an empty file to be silent about.
$ python3 scripts/validate-estate-inventory.py . ; echo $?
estate inventory: 33 repositories — 26 governed, 6 pinned, 1 external; 1 provisional.
in-tree evidence (pin, workflow, root, change), re-checked on EVERY run: 8 named, 0 gone.
gitlink rows: 30 — 0 named in a VERIFIED supplied tree, 0 absent from one,
30 NOT RE-CHECKED (no tree supplied, or a tree that does not verify as the
carrier the row names).
[30 NOT RE-CHECKED rows listed, each naming the carrier no tree was supplied for]
a run that has not looked, or has looked in the wrong tree, reports neither
verdict — a path is an assertion and not an identity.
estate inventory validation passed (every in-tree admission is named by this working tree).
0
$ python3 scripts/validate-code-surface.py . ; echo $?
code_surface: 46 active proposals, 46 declaring — 9 `none`, 30 a repository list,
7 named by the register, 0 outside the grammar.
archive (read, never judged): 180 proposals, 134 declaring, 4 of them outside the grammar.
membership: 30 readable heads naming 6 distinct identifiers — 6 carried by the estate
inventory (33 rows), 0 refused, 0 at a former address (reported), 7 registered and not
judged, 0 transfer-map rows malformed.
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.
code_surface validation passed (every active declaration's head is admitted, and
every identifier it names is carried by the estate inventory).
0
Figures moved from the 5e08ff1d transcript above (round 4), both explained rather than left silent. The proposal counts (44→46 active, 30→30 readable, 178→180 archived, 8→7 registered) are the corpus moving under an unrelated hand while this branch stayed open, exactly as tasks.md § 4.3 anticipates — round 5-7 authored none of that drift. 0 transfer-map rows malformed is a NEW field on this line: MembershipReport.transfer_findings, added in round 5 and exercised further in round 7, threading load_transfers's second return value through to both validators' FAILED path and exit code. The invariant the packet actually reasons from — six distinct identifiers, all resolving, zero refused — is unchanged and re-verified above.
A SILENCE IS NEVER A PASS: the 30 gitlink rows are reported NOT RE-CHECKED and COUNTED, neither passed nor failed, because their evidence lives in a tree an openxFactory checkout does not contain (design.md D1.2). The required check takes no tree argument, so its verdict is the same on every machine.
§ 3.5 — fails-then-passes, shown both ways
The whole directory against the tree without §§ 3.1–3.4, which is the packet's own obligation ("each FAILING against the tree without § 3.1–§ 3.4"). Taken in a worktree at origin/maincd6439f6 with only the test file copied in:
$ git worktree add --detach <tmp> origin/main && cp tests/estate_inventory/... <tmp>/...
$ python3 -m pytest tests/estate_inventory -q
E FileNotFoundError: [Errno 2] No such file or directory: '<tmp>/scripts/estate_inventory.py'
ERROR tests/estate_inventory/test_estate_inventory.py
!!!!!!! Interrupted: 1 error during collection !!!!!!!
1 error in 0.43s
Without § 3.1's inventory, § 3.2's reader, § 3.3's validator and § 3.4's arm, not one case can even be collected — there is nothing for them to be about. With them: 52 passed.
The ten review-round cases, each against the pre-fix reader, which is the finer-grained proof that each fix closes a hole that was really open:
$ git stash push -- scripts/estate_inventory.py scripts/validate-code-surface.py
$ python3 -m pytest tests/estate_inventory -q -k "<the ten new cases>"
FAILED ...::test_an_origin_on_A_FOREIGN_HOST_is_not_this_estates_carrier
FAILED ...::test_a_gitlink_CARRIER_must_resolve_to_a_GOVERNED_row
FAILED ...::test_evidence_naming_a_LONGER_address_does_not_discharge_a_shorter_row
FAILED ...::test_an_archived_id_that_merely_ENDS_WITH_the_change_is_not_that_change
FAILED ...::test_ROOT_admits_the_aggregation_row_and_no_other
FAILED ...::test_a_bare_name_that_is_not_the_addresss_FINAL_SEGMENT_is_refused
FAILED ...::test_a_supplied_carriers_SYMLINKED_gitmodules_is_refused_unread
FAILED ...::test_a_DRAFT_change_admits_nothing_and_only_a_RATIFIED_one_does
FAILED ...::test_a_SYMLINKED_archive_child_is_not_an_archived_change
FAILED ...::test_a_SYMLINKED_scripts_directory_is_REFUSED_and_not_reported_absent
10 failed, 40 deselected in 0.92s
$ git stash pop
$ python3 -m pytest tests/estate_inventory -q -k "<the ten new cases>"
10 passed, 40 deselected in 1.01s
The Copilot round — twelve threads, each verified in the tree before it was acted on
Eleven TRUE or FALSE and answered; ONE was RULING NEEDED — now RULED (2026-09-21) and taken at 728b8770. Every fix is 277c028e with its own fails-then-passes case; every reply quotes the evidence.
#
site
verdict
what was true, and what closed it
1
estate-repository-inventory.yaml:153
RULING NEEDED → RULED
see below
2
estate_inventory.py:157 (and 936)
TRUE
the origin regex discarded the URL's HOST, so [email protected]:opensoft/xFactory.git VERIFIED as this estate's aggregation. FORGE_HOSTS bounds it to GitHub's canonical ssh/https forms, measured from the estate's own spellings; the transfer map records an <owner>/<repo> address with no host field and could not supply the bound, which the module header now says
3
estate_inventory.py:470 (and 499)
TRUE
a gitlink carrier was accepted on SHAPE alone; the kind's first clause is "a GOVERNED ESTATE REPOSITORY's .gitmodules". A carrier must now resolve to a governed row of this same inventory, checked in a post-pass to a fixed point, refused at load
4
estate_inventory.py:726
TRUE
repository in text let a pin naming 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
5
estate_inventory.py:793
TRUE
endswith made 2026-09-18-recreate-… answer for create-…, retiring a live PROVISIONAL row on another change's act. Exact \d{4}-\d{2}-\d{2}-<id>fullmatch
6
estate_inventory.py:500
TRUE
root NAMES NO FILE, so it is the one admission no run can contradict — accepted on any row it was the estate's open door. Bound to AGGREGATION_ROOT (opensoft/xFactory, D0.2 row 1)
7
estate_inventory.py:594
TRUE
name: was checked for syntax and never against repository:, so name: trusted could authorize opensoft/openxFactory while openxFactory resolved to nothing. Bound to the address's final segment
8
estate_inventory.py:939
TRUE
a supplied carrier's .gitmodules was read through is_file()/read_text(), both of which follow links. _unescaped (the code_surface.py guard, catching (OSError, RuntimeError)) now guards it; a DANGLING link reads UNREADABLE, not "no submodules", and the row stays NOT RE-CHECKED rather than failing
9
estate_inventory.py:788
TRUE
any directory under openspec/changes/ resolved as NAMED, so a draft admitted any repository — on the one kind whose evidence an author controls completely. Status: is read through frontmatter_strict.read_header_line, the shipped strict loader, with the same window rule doc_health.corpus applies
10
validate-code-surface.py (file)
FALSE, refused
tests/estate_inventory/test_estate_inventory.py was added by 729448f2, and all five named risks were already pinned there (fail-closed, external refusal, stale evidence, former address, register interaction), each driving the required validator end to end. The reply names the case per risk
11
estate_inventory.py:823
TRUE
child.is_dir() follows links, so a link named like an archived change expired a provisional row on bytes outside the tree. Symlinked children skipped
12
validate-code-surface.py:438
TRUE
the default probe read is_symlink() or exists(); for a symlinked scripts/ BOTH are false, so the run printed membership: NOT JUDGED and exited 0 — the worse verdict, because it passes. Probed with os.lstat semantics, and the refusal is load_inventory's own
Thread 1 — RULING NEEDED, and RULED: the admission is dropped
Row 3 recorded admitted_by: [{kind: pin, path: contracts/review-lane-pin.yaml}]. Copilot was right on the ratified text: that file is kind: pinned_workflow, its own header says "no bundle, no digest set", and it records core_commit; the ratified delta defines the kind as "an openxFactory file under contracts/ names the repository as the source of a commit-and-digest pin … for a product PINNED rather than governed". Row 3 failed both clauses — the pin carried no digest set, and codeXfactory/codexFactory is governed.
And the same ratified packet admitted that exact file as a pin, twice: design.md D0.1's pin measurement counts contracts/review-lane-pin.yaml:47 (it is the only contracts/ hit naming codexFactory), and D0.2 row 3 spelled the admission pin (review-lane-pin.yaml) — which tasks.md § 3.1 made the inventory carry.
So the packet contradicted itself, and all three remedies edited ratified text: dropping the admission contradicts D0.2 row 3; re-classing it as a workflow is refused by the ratified directory bound (workflow is a file under .github/workflows/, and row 3 already carries its real one); widening the kind's wording is a requirement-text change. Under the estate's post-word rule a realization seat may fold a non-normative fix and must send a requirement-text change up as RULING NEEDED — which is what happened: nothing was broken at runtime meanwhile (the admission re-checked as NAMED and both validators exited 0), so this was reported as a record fault rather than papered over, and the thread was left unresolved on purpose.
RULED. Brett Heap, 2026-09-21 ~20:30Z (lane channel), terminal multiple-choice, verbatim "Drop the pin admission on row 3." Taken at 728b8770: row 3 now carries gitlink (carrier opensoft/xFactory) and workflow (.github/workflows/merge-master-approval.yml) only; the pin admission naming contracts/review-lane-pin.yaml is dropped. The pin kind's definition and the loader are UNCHANGED — this is a data correction to one row, not a schema change, and contracts/review-lane-pin.yaml itself is untouched (still kind: pinned_workflow, still consumed by merge-master-approval.yml directly). test_the_live_codexFactory_row_is_admitted_by_gitlink_and_workflow_only fails against the pre-fix row (AssertionError: assert {'gitlink', 'pin', 'workflow'} == {'gitlink', 'workflow'}) and passes at 728b8770.
The packet's own D0.2 row 3 and its D0.1 pin-declaration count are being amended on the same word, in a separate change, by the coordinator's other seat — out of this realization pull request's remit (§ 3, code surface only; this branch still touches no byte of openspec/changes/add-estate-repository-inventory/ or openspec/specs/, verified above).
The SECOND Copilot round — three threads, all TRUE, all fixed and resolved
Copilot re-reviewed 0cd52b7f and opened three more, every one of them about the carrier read itself. All three verified in the tree before they were acted on, fixed at b747daad, each with its own fails-then-passes case.
site
verdict
what was true, and what closed it
estate_inventory.py:1096
TRUE
the identity read inherited the ambient git environment. Measured on this branch: a checkout of opensoft/Innocent read under GIT_DIR=<another repo>/.git answers [email protected]:opensoft/xFactory.git, so the tree VERIFIES as a carrier it is not. 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 global/system config from os.devnull. One half of the claim did NOT reproduce and the reply says so: a GIT_CONFIG_COUNT-injected remote.origin.url neither overrode a real remote nor created a missing one on this git. Those names are scrubbed anyway, on the estate's standing ground rather than on a demonstration this branch can claim
estate_inventory.py:1101
TRUE, and wider than claimed
git remote get-url origin succeeds for a BARE repository, so a bare repo with a .gitmodules planted beside its refs discharged a row while being no checkout at all. The same hole has a second mouth Copilot did not name: a SUBDIRECTORY of a real checkout verifies too (git discovers upward), and there .gitmodules is absent where the caller pointed — so every one of that carrier's rows was reported GONE, a row CONDEMNED on a caller's imprecise path, which is the alternative design.md D1.2 retained and DECLINED. rev-parse --is-bare-repository --show-toplevel answers both in one call and the toplevel must resolve to the supplied path; both refusals land as NOT RE-CHECKED, counted, with the report naming why
test_estate_inventory.py:1408
TRUE
the typo addresss in a test name added in round 1. Renamed; grep -c addresss is 0
$ git stash push -- scripts/estate_inventory.py
FAILED ...::test_an_ambient_GIT_DIR_cannot_flip_the_carrier_binding
FAILED ...::test_a_BARE_repo_and_a_SUBDIRECTORY_are_not_a_carriers_working_tree
2 failed, 50 deselected in 0.24s
$ git stash pop
2 passed, 50 deselected in 0.59s
The THIRD Copilot round — two threads, both TRUE, both fixed and resolved
Copilot re-reviewed b747daad and opened two more. Both verified in the tree before they were acted on, fixed at 247ca3dc, each with its own fails-then-passes case.
site
verdict
what was true, and what closed it
estate_inventory.py:239
TRUE
GIT_CONFIG was the one entry _SCRUBBED_GIT_ENVIRONMENT did not carry. Measured honestly, 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 — the only two calls _git() makes (GIT_CONFIG redirects only git config's own default file, a narrower variable from GIT_CONFIG_GLOBAL/GIT_CONFIG_SYSTEM, which this reader already forces to os.devnull). 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 sibling files carrying "the identical tuple" (carved_reach.py, hermes_runtime_validation/content.py, report-citation-remainder.py) do not yet carry this entry — the divergence is now recorded in the module header rather than left silent, flagged here as a possible follow-up outside this PR's own surface
estate_inventory.py:770
TRUE
a root row could declare governance: pinned or external and still load. root names no file, so evidence_verdicts marks it NAMED unconditionally, and the membership arm refuses only governance: external — a malformed pinned root would resolve and pass membership. A root admission now also requires its row's governance to be governed, refused at load otherwise; the live row already reads governed and is unaffected
Both already committed by the time this reply is written, so the pre-fix run is taken against the parent blob rather than a stash:
$ git show 247ca3dc~1:scripts/estate_inventory.py > scripts/estate_inventory.py
$ python3 -m pytest tests/estate_inventory -q -k "test_an_ambient_GIT_CONFIG_is_scrubbed_from_the_carrier_read or test_a_ROOT_row_must_declare_governance_GOVERNED"
FAILED ...::test_an_ambient_GIT_CONFIG_is_scrubbed_from_the_carrier_read
FAILED ...::test_a_ROOT_row_must_declare_governance_GOVERNED
2 failed, 56 deselected in 0.81s
$ git checkout 247ca3dc -- scripts/estate_inventory.py
2 passed, 56 deselected in 0.16s
The FOURTH Copilot round — two threads, both TRUE, both fixed and resolved
Copilot re-reviewed 247ca3dc / 728b8770 and opened two more. Both verified in the tree before they were acted on, fixed at a961d92c and 5e08ff1d, each with its own evidence.
site
verdict
what was true, and what closed it
estate_inventory.py:950
TRUE
matching the whole file let PROSE discharge an admission: contracts/openspec-cli-pin.yaml's own source_repository: is Fission-AI/OpenSpec, but its header commentary names codeXfactory/codexFactory more than a dozen times (around line 197 and elsewhere) — a pin admitted for codeXfactory/codexFactory by this file would have reported NAMED on a comment. The file is now parsed once through frontmatter_strict.StrictLoader, and only its STRUCTURAL fields are asked: repository:/source_repository:/source_url: (normalized) for kind: pin, a step's uses: or with.repository: for kind: workflow. merge-master-approval.yml (row 3's real workflow evidence) is over 115KB, past strict_load's ceiling on documentation prose alone, so the workflow path uses the same loader directly, without that ceiling
estate-repository-inventory.yaml:120
TRUE
the header's re-measurement note still said "11 nested gitlinks in 6 repositories" — round 1's figure, stale against this realization's own § 4.3 disclosure (12 in 7, the extra carrier being opensoft/LedgerxAvatar). Re-measured independently rather than copied from the body (fresh gh api .../.gitmodules scan over all 25 governed non-root rows, as of 728b8770) and corrected in place, with the sha named
$ git show a961d92c~1:scripts/estate_inventory.py > scripts/estate_inventory.py
$ python3 -m pytest tests/estate_inventory -q -k "test_a_PIN_admission_is_named_by_its_STRUCTURAL_field_and_not_by_prose or test_a_WORKFLOW_admission_is_named_by_USES_or_WITH_REPOSITORY_and_not_by_prose"
FAILED ...::test_a_PIN_admission_is_named_by_its_STRUCTURAL_field_and_not_by_prose
FAILED ...::test_a_WORKFLOW_admission_is_named_by_USES_or_WITH_REPOSITORY_and_not_by_prose
2 failed, 56 deselected in 0.24s
$ git checkout a961d92c -- scripts/estate_inventory.py
2 passed, 56 deselected in 0.15s
The header-note fix (5e08ff1d) is documentation only — a # comment read by no parser and enforced by no code — so it carries no fail-then-pass case; verified instead by grep (the stale phrase is gone, the corrected one is present) and by the full suite and both validators being unaffected.
The FIFTH Copilot round — two threads, both TRUE, both fixed and resolved
Copilot re-reviewed ec5fa141 (this branch's second catch-up merge of main) and opened two more, both in the transfer-record loader. Both verified in the tree before they were acted on, fixed together at 81a01b3c, each with its own fails-then-passes case.
site
verdict
what was true, and what closed it
estate_inventory.py:? (load_transfers)
TRUE
load_transfers checked only transfer_state == "complete" and never looked at transferred_on at all, so a row edited to add transfer_state: complete with transferred_on left null (or any non-date value) resolved as an authoritative identity change on two string fields alone — bypassing the membership arm's fail-closed path on an edit field_rules.transfer_state's own MUST already calls malformed. 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; both validators thread the new findings through to a FAILED report and the exit code
estate_inventory.py:_workflow_names_repository
TRUE
the workflow reader only ever looked inside steps[*]; GitHub Actions also dispatches a reusable workflow at jobs.<job_id>.uses, a job written this way carrying no steps: of its own. _workflow_names_repository now checks the job-level site first, then falls through to the two step-level sites unchanged
COLLATERAL, DISCLOSED RATHER THAN SILENT: three existing fixtures 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 actually writes.
$ git show ec5fa141:scripts/estate_inventory.py > scripts/estate_inventory.py # pre-fix
$ python3 -m pytest tests/estate_inventory -q -k "test_a_MALFORMED_transfer_row_is_refused_and_reported_not_resolved or test_a_reusable_workflow_called_at_JOB_LEVEL_names_its_repository"
FAILED ...::test_a_MALFORMED_transfer_row_is_refused_and_reported_not_resolved — ValueError: not enough values to unpack (load_transfers was not yet a 2-tuple)
FAILED ...::test_a_reusable_workflow_called_at_JOB_LEVEL_names_its_repository — assert ['gone'] == ['named']
2 failed, 58 deselected
$ git checkout 81a01b3c -- scripts/estate_inventory.py # restore the fix
2 passed, 58 deselected
Full suite at 81a01b3c: 313 passed; both validators exit 0.
The SIXTH Copilot round — one thread, TRUE, fixed and resolved
Copilot re-reviewed 81a01b3c and opened one more. Verified in the tree before it was acted on, fixed at b626316b, with its own fails-then-passes case.
site
verdict
what was true, and what closed it
estate_inventory.py (the post-pass)
TRUE
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 carried until Brett Heap's row-3 ruling. A pin admission on a governance: governed row is now refused at load, named
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 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.
Full suite at b626316b: 314 passed; both validators exit 0.
The SEVENTH Copilot round — three threads, all TRUE, all fixed and resolved
Copilot re-reviewed b626316b and opened three more, all in the transfer-record loader. All three verified in the tree before they were acted on, fixed together at c2d4309b, each with its own fails-then-passes case.
site
verdict
what was true, and what closed it
estate_inventory.py:528
TRUE
PyYAML's timestamp constructor raises a bare ValueError (not yaml.YAMLError, which the existing guards already caught) on a scalar that LOOKS like a date but names a day the calendar does not have — 2026-02-30 ("day is out of range for month"), confirmed by direct call. Uncaught, it crashed load_transfers instead of reporting a finding. Now caught beside the existing guards, but — unlike them — it returns a finding rather than a silent empty map: the file exists and was meant to say something, and this pass could not tell what
estate_inventory.py:562
TRUE
datetime.datetime SUBCLASSES datetime.date, so isinstance(transferred_on, datetime.date) accepted a timestamp as readily as a plain date — confirmed empirically (type(parsed) is datetime.datetime, isinstance(parsed, datetime.date) is True, type(parsed) is datetime.date is False). Tightened to type(transferred_on) is datetime.date exactly
estate_inventory.py:574
TRUE
two transfer_state: complete rows naming the same former are each individually well-formed, so no per-row check caught it; the loop's resolved[former] = current let the second silently overwrite the first, with no finding raised. Now detected (resolved_at: dict[str, int] tracks former → row position), reported by naming both rows, and refused for the WHOLE FILE — not merely the colliding pair — because a map caught disagreeing with itself about one address cannot be trusted for any other former it names
$ git show b626316b:scripts/estate_inventory.py > scripts/estate_inventory.py # pre-fix
$ python3 -m pytest tests/estate_inventory -q -k "IMPOSSIBLE_calendar or TIMESTAMP_transferred_on or DUPLICATE_former"
FAILED ...::test_an_IMPOSSIBLE_calendar_date_in_transferred_on_is_a_finding_not_an_exception — uncaught ValueError out of load_transfers (traceback through frontmatter_strict.strict_load -> yaml.load_all -> construct_yaml_map)
FAILED ...::test_a_TIMESTAMP_transferred_on_is_refused_not_accepted_as_a_plain_date — assert transfers == {} (got {'opensoft/Bogus': 'opensoft/Real'})
FAILED ...::test_a_DUPLICATE_former_across_two_COMPLETE_rows_refuses_the_whole_file — assert transfers == {} (got both the overwritten AND the unrelated lawful row)
3 failed, 61 deselected
$ git checkout c2d4309b -- scripts/estate_inventory.py # restore the fix
3 passed, 61 deselected
Full suite at 5d44003c: 317 passed; both validators exit 0; validate-code-surface.py reports 0 transfer-map rows malformed against the live policy file's one real complete row — re-run fresh at this head, not merely carried from c2d4309b.
Thread state: 27 threads, 27 resolved, 0 unresolved (as of 5d44003c, 2026-09-23 — the two threads PRRT_kwDOTAvnrs6lRv_k and PRRT_kwDOTAvnrs6lRwAG opened on the landing-prep tick 2858747b are replied to and resolved; Copilot's re-review at 5d44003c opened none further).
Standing
Lands on Brett Heap's word, verbatim "land #1119" (2026-09-23 ~16:40Z, terminal).tasks.md §§ 3–4 are ticked with this PR's own evidence at 2858747b; § 5, the archive and the promotion, is a separate act on a separate word and is not sought here — under release-realization this packet's non-empty code_surface archives on merged-plus-green realization evidence, which is what this pull request is for.
The word, and how it was verified before this branch acted on it
Brett Heap's words to this lane arrive in its terminal, never as a GitHub comment — the packet's own tasks.md header says so about the ratifying word ("no GitHub comment carries it; RULED entry against opensoft/openxFactory#1101 in lanes/log/openXfactory-5.md"), and every other word in this PR's history (the ratify word, the row-3 ruling) was recorded the same way. This word is RULED at opensoft/brett-wiplanes/log/openXfactory-5.md, commit 193719c1:
RULED — lane openXfactory-5, session 651195c7-1854-491e-894a-e6542ef5e9f4@Eagle,
2026-09-23T16:34:17Z, lane:openXfactory-5 → opensoft/openxFactory#1119 — land
#1119 (Brett Heap, 2026-09-23 ~16:40Z, terminal, verbatim): the realization of
add-estate-repository-inventory lands squash once its two open threads are
resolved, the packet's tasks.md §§ 3-4 are ticked with the PR's evidence
(§ 4.4 noted for the archive act), the PR is un-drafted and its checks are green
Fetched independently from GitHub's contents API at that exact commit (not taken from any relay), matched against the commit's own metadata — author Brett Heap <[email protected]>, authored 2026-09-23T16:34:17Z — and cross-checked against the session id in the line, which is this lane's own transcript. Held back a round earlier, disclosed in this body at the time, pending exactly this: a first-party trace of the specific word, independently checkable, in the channel this PR's own history already established as where Brett Heap's words to this lane are recorded.
…t this head
`tasks.md` § 3.1, quoted: "`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. THE `change`-ADMITTED ROW IS OWED, NOT
OPTIONAL (ruling "MAY becomes MUST", § 1.5 (c))."
THE 33 ROWS ARE RE-MEASURED AT THIS HEAD AND NOT CARRIED FROM THE DRAFTING
(`tasks.md` § 4.3), by the five `design.md` D0.1 commands. ZERO ROWS MOVED:
1. the aggregation's `.gitmodules` — 23 addresses, the IDENTICAL set;
2. the governed repositories' own `.gitmodules` — 11 nested gitlinks in SIX
repositories (openxFactory 4, MedxFactory 1, LedgerxFactory 2, MedxChart 1,
MedxPractice 1, MedxEHR 2), naming the SAME SEVEN no other site names;
3. this repository's `contracts/` pins — the SAME SIX repositories
(openDox, openRepoShape, openXdox, Fission-AI/OpenSpec, openXwallet,
codexFactory);
4. this repository's workflows — the SAME ONE, `codeXfactory/codexFactory`,
already a submodule;
5. the ratified change whose realization creates a repository — the SAME ONE,
`create-ledgerxwallet-overlay-boundary`, still ACTIVE and ratified, so its
PROVISIONAL row 27 is still owed.
§ 4.3's second half — the governance class of rows 28-33, which `design.md`
D0.2 states only as far as the openxFactory sites reach — is SETTLED in the
carriers' own trees and recorded in the file's header: `MedxChart` pins
`openChart`, `MedxPractice` pins `openPractice` and `MedxEHR` pins both of its
nested members, while `MedxFactory` and `LedgerxFactory` pin neither Avatar.
NONE of the six moves class: `pinned` is defined as OPENXFACTORY consuming a
repository at a commit and digest, openxFactory pins none of the six, and all
six are authored inside this estate — so all six stay `governed`.
Every row verified against the live measurement: every `gitlink` row's member
really appears in the carrier it names, every `pin` and `workflow` path really
exists in this tree and really names its repository, the `change` really
resolves under `openspec/changes/`, and every measured member is carried by a
row. 33 rows, 33 unique bare names, 30 `gitlink` (which is D1.2's own count:
every row but the aggregation root and the two `pin`-only members).
Nothing under `openspec/specs/` and nothing in the packet directory is touched.
Refs #1087
Refs #1101
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Adds the initial governed estate inventory as a 33-row YAML registry, with explicit repository governance classifications and auditable admission evidence covering direct, nested, pinned, external, root, and forward-looking provisional membership.
Sequence diagram for estate inventory membership validation
sequenceDiagram
participant Validator as validate-code-surface.py
participant Reader as estate_inventory.py
participant Inventory as estate-repository-inventory.yaml
participant EstateTree as Carrier estate tree
Validator->>Reader: load_inventory()
Reader->>Inventory: read repositories
Inventory-->>Reader: repository records and admission evidence
Reader-->>Validator: resolve declared code_surface
Validator->>Validator: validate membership and governance class
alt gitlink evidence re-check requested
Validator->>EstateTree: verify carrier identity and read .gitmodules
EstateTree-->>Validator: carrier-bound membership evidence
end
Validator-->>Validator: refuse unknown or external repositories
Loading
File-Level Changes
Change
Details
Files
Add the machine-readable estate repository inventory and define the data model and admission semantics it will support.
Create a versioned inventory with 33 repository rows covering the aggregation root, directly and transitively nested repositories, pinned repositories, an external repository, and a provisional repository created by a ratified change.
Record repository addresses, unique bare names, roles, governance classes, and one or more admission evidence entries.
Capture evidence sources through the closed gitlink, pin, workflow, root, and change admission kinds, including carrier identity for nested gitlinks.
Document current-address handling, former-address resolution, provisional-row lifecycle, remeasurement expectations, and the distinction between governed, pinned, and external repositories.
Trigger a new review: Comment @sourcery-ai review on the pull request.
Continue discussions: Reply directly to Sourcery's review comments.
Generate a GitHub issue from a review comment: Ask Sourcery to create an
issue from a review comment by replying to it. You can also reply to a
review comment with @sourcery-ai issue to create an issue from it.
Generate a pull request title: Write @sourcery-ai anywhere in the pull
request title to generate a title at any time. You can also comment @sourcery-ai title on the pull request to (re-)generate the title at any time.
Generate a pull request summary: Write @sourcery-ai summary anywhere in
the pull request body to generate a PR summary at any time exactly where you
want it. You can also comment @sourcery-ai summary on the pull request to
(re-)generate the summary at any time.
Generate reviewer's guide: Comment @sourcery-ai guide on the pull
request to (re-)generate the reviewer's guide at any time.
Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
pull request to resolve all Sourcery comments. Useful if you've already
addressed all the comments and don't want to see them anymore.
Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
request to dismiss all existing Sourcery reviews. Especially useful if you
want to start fresh with a new review - don't forget to comment @sourcery-ai review to trigger a new review!
…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]>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Critical validation and carrier-identity issues remain unresolved.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (5)
scripts/estate_inventory.py:903
carrier_identity only calls tree_origin and then consults the former→current transfer mapping; it never reads the carrier's identity record from contracts/policies/repository-identity.yaml, even though the contract allows verification by either source. Consequently a valid supplied carrier tree with no origin remote (or with an origin spelling that is only represented by the identity record) is always marked unverified and its gitlink evidence cannot be checked. Add the identity-record lookup as the fallback before returning verified=False.
observed = tree_origin(tree)
if observed is None:
scripts/estate_inventory.py:940
The supplied carrier's .gitmodules is opened directly, so a .gitmodules symlink can make a correctly identified checkout read evidence from outside that tree. This bypasses the module's stated no-symlink boundary and lets external bytes admit or remove a row; resolve this path through _unescaped(tree, Path('.gitmodules')) (and treat None as unreadable) before reading it.
path = tree / ".gitmodules"
try:
if not path.is_file():
return ()
text = path.read_text(encoding="utf-8")
scripts/estate_inventory.py:867
With text=True, subprocess.run can raise UnicodeDecodeError while decoding a malformed remote URL. That exception is not covered here, so tree_origin violates its documented never-raise contract and a bad local Git config can abort validation instead of producing the promised unverified result. Include UnicodeDecodeError in this handler.
The existence of openspec/changes/<id>/ is not enough to discharge a change admission: the requirement says this kind must name a RATIFIED change. As written, a draft or staged active packet with the same id makes the provisional row NAMED and can authorize membership before ratification. Validate the target proposal's lifecycle status and only treat a ratified active change as evidence.
if active is not None and active.is_dir():
verdicts.append(EvidenceVerdict(
row, admission, NAMED,
f"`{CHANGES_DIR / admission.change}` is an active change"))
scripts/estate_inventory.py:500
root is accepted for any row, and evidence_verdicts unconditionally marks that admission NAMED, so a malformed inventory can admit an arbitrary or external repository solely by adding kind: root. Restrict root to the single aggregation row (opensoft/xFactory) and reject any other use while loading the inventory.
…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]>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved critical and moderate admission, validation, path-safety, and test-gating issues remain.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (7)
scripts/estate_inventory.py:576
A malformed mapping with mixed key types (for example, 42: x alongside repository:) reaches sorted(extra) and raises TypeError, escaping EstateInventoryError. The CLI then produces a traceback instead of its documented exit-2 refusal for malformed inventories; sort unknown keys by a stable string/repr key.
The admission parser has the same mixed-key failure mode: a malformed admission mapping containing a non-string key can make sorted(extra) raise TypeError instead of returning the documented inventory refusal. Use a stable representation when formatting unknown keys.
extra = set(entry) - {"kind", "carrier", "path", "change"}
if extra:
raise EstateInventoryError(
f"{where} carries unknown key(s) {', '.join(sorted(extra))}")
scripts/estate_inventory.py:726
repository in text is only a substring check, so evidence containing a different address such as opensoft/openXwallet-old can discharge the opensoft/openXwallet admission. Match the address as a complete token (or parse the relevant evidence fields) so a similarly named repository cannot satisfy this row.
try:
text = path.read_text(encoding="utf-8")
except (OSError, UnicodeDecodeError):
return False
return repository in text
scripts/estate_inventory.py:469
carrier is validated only as an address-shaped string. The admission contract requires a gitlink carrier to be a governed estate repository; without checking it against the loaded rows and their governance, an unknown or external repository can be used as the carrier and its supplied checkout will be trusted as admission evidence.
if not ADDRESS_RE.match(carrier):
raise EstateInventoryError(
f"{where} names `carrier: {carrier}`, which is not an "
"`<owner>/<name>` address; the carrier is a REPOSITORY and a "
"reader must be able to look in the tree the row names")
scripts/estate_inventory.py:793
Matching archive directories with endswith(admission.change) conflates change IDs: an admission for foo is classified as archived by a directory such as 2026-09-18-barfoo. Match the dated-directory separator as well, otherwise the report attributes missing evidence to the wrong change.
archived = [
child for child in
_archive_children(repo_root)
if child.endswith(admission.change)]
scripts/estate_inventory.py:876
This adds the inventory reader, four evidence modes, transfer handling, carrier identity, and path-safety behavior, but the repository has no tests/estate_inventory/ coverage. The existing gate suites exercise analogous malformed-input, symlink, and subprocess cases; add focused tests for these new branches (especially wrong carriers, provisional status, exact evidence matching, and symlinked .gitmodules) before relying on this validator.
def carrier_identity(tree: Path, carrier: str,
transfers: dict[str, str] | None = None) -> CarrierCheck:
"""Whether `tree` is a checkout of `carrier`. NEVER RAISES.
scripts/validate-estate-inventory.py:14
This docstring claims test_corpus_estate_inventory_validates runs on every PR, but this pull request adds no tests/estate_inventory package and pytest only executes collected tests, so the workflow never invokes this validator. Until the promised corpus test/wiring lands, inventory evidence can rot without reding the required check; please add that gate or remove this claim.
and the pytest gate
(`tests/estate_inventory/test_estate_inventory.py::test_corpus_estate_inventory_validates`)
runs it over this repository on every pull request, so an inventory whose shape
or whose in-tree evidence has rotted reds the required `pytest-suite` check with
no workflow edit.
…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]>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Multiple moderate correctness issues remain, including admission evidence, carrier, archive, and root-row validation gaps.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (6)
scripts/estate_inventory.py:793
This suffix match can classify the wrong archived change as evidence for a change admission: change: foo also matches an archive directory such as 2026-09-18-barfoo. Since CHANGE_ID_RE permits both IDs, a still-active row can be reported as archived and fail incorrectly. Match the archive delimiter as well (for example, require endswith("-" + admission.change)).
if child.endswith(admission.change)]
scripts/estate_inventory.py:470
A gitlink carrier is only checked for address syntax here; the loader never verifies that it resolves to an inventory row with governance: governed. That lets a typo or an external repository be recorded as the carrier, and the default run will treat the row as permanently NOT RE-CHECKED while the membership arm still authorizes the row. After all rows are loaded, reject carrier references that are absent or not governed.
if not ADDRESS_RE.match(carrier):
raise EstateInventoryError(
f"{where} names `carrier: {carrier}`, which is not an "
"`<owner>/<name>` address; the carrier is a REPOSITORY and a "
"reader must be able to look in the tree the row names")
return Admission(kind=GITLINK, carrier=carrier)
scripts/estate_inventory.py:788
An active directory is not sufficient evidence for the change admission kind: the requirement says this must be a RATIFIED active change, but this branch marks any draft/unratified openspec/changes/<id>/ directory as NAMED. A provisional row could therefore be discharged by an ordinary draft packet. Read the proposal's own status (using the repository's fence-aware ratified-status reader) before returning NAMED.
active = _unescaped(repo_root, CHANGES_DIR / admission.change)
if active is not None and active.is_dir():
verdicts.append(EvidenceVerdict(
row, admission, NAMED,
f"`{CHANGES_DIR / admission.change}` is an active change"))
scripts/estate_inventory.py:500
The root kind is accepted for every row without checking that the row is the aggregation repository. An inventory edit could therefore add any arbitrary repository with admitted_by: [{kind: root}], and evidence_verdicts will mark it NAMED without evidence. Restrict this admission to the canonical aggregation address (and reject the inventory otherwise).
Using repository in text makes any occurrence in a pin/workflow file count as admission evidence, including comments, prose, or a longer identifier such as opensoft/openxFactory-old. This can discharge a row without the structured pin/workflow actually naming it. Parse the relevant evidence fields or require an exact repository token rather than a substring.
def _names_repository(path: Path, repository: str) -> bool:
"""Whether the evidence file at `path` really names `repository`.
PRESENCE OF THE FILE IS NOT PRESENCE OF THE EVIDENCE. A `pin` whose file
stopped naming the repository — repointed at another source, or reduced to a
template — is a row whose admission has gone as surely as a deleted file,
and a check that asked only `is_file()` would report it as named. The match
is on the ADDRESS, the spelling the row itself carries, so a file naming
only a bare name does not discharge an address row by accident.
"""
try:
text = path.read_text(encoding="utf-8")
except (OSError, UnicodeDecodeError):
return False
return repository in text
scripts/estate_inventory.py:823
child.is_dir() follows symlinks, so a symlink under openspec/changes/archive/ to an external directory is treated as archived evidence. That contradicts the module's no-symlink containment rule and can make a provisional admission appear to have an archive record outside the scanned tree. Filter archive children through _unescaped(repo_root, ARCHIVE_DIR / child.name) before accepting them.
archive = _unescaped(repo_root, ARCHIVE_DIR)
if archive is None or not archive.is_dir():
return ()
return tuple(sorted(child.name for child in archive.iterdir()
if child.is_dir()))
Taken so § 4's verification and the membership scan are measured at a head that
carries main's own movement rather than at this branch's base — the corpus moves
between drafting and landing, and a gate measured at a stale base is a gate
measured somewhere else.
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved inventory admission-validation issues could incorrectly authorize repositories or evidence.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (5)
scripts/estate_inventory.py:726
This substring check can discharge an admission for the wrong repository: a pin containing source_repository: opensoft/openRepoShape also makes a row for opensoft/openRepo look named. Match the address as a complete token (or parse the evidence fields) so prefix/suffix collisions cannot authorize membership.
return repository in text
scripts/estate_inventory.py:788
The requirement limits change admissions to RATIFIED active changes, but this branch treats any existing openspec/changes/<id> directory as NAMED without reading its proposal status. A draft directory can therefore support a provisional row and make a declaration pass; verify the change is ratified before accepting it as admission evidence.
active = _unescaped(repo_root, CHANGES_DIR / admission.change)
if active is not None and active.is_dir():
verdicts.append(EvidenceVerdict(
row, admission, NAMED,
f"`{CHANGES_DIR / admission.change}` is an active change"))
scripts/estate_inventory.py:793
Matching only the suffix makes unrelated archive names collide: change: thing is considered archived by 2026-09-18-other-thing (and even a separator check would still collide because change IDs may contain hyphens). That incorrectly turns the provisional row into a stale finding. Match the complete dated archive name against the exact change ID.
if child.endswith(admission.change)]
scripts/estate_inventory.py:470
A gitlink admission only validates that carrier has address syntax; it never verifies that the carrier is itself an inventory row with governance: governed. An inventory can therefore admit a repository from an arbitrary or external carrier tree, even though this admission kind is defined as a gitlink in a governed estate repository. Validate the carrier against the completed row index before accepting the inventory.
if kind == GITLINK:
carrier = _required("carrier")
_forbidden("path", "change")
if not ADDRESS_RE.match(carrier):
raise EstateInventoryError(
f"{where} names `carrier: {carrier}`, which is not an "
"`<owner>/<name>` address; the carrier is a REPOSITORY and a "
"reader must be able to look in the tree the row names")
return Admission(kind=GITLINK, carrier=carrier)
scripts/estate_inventory.py:500
root is accepted for any repository row, although this kind represents the aggregation repository itself. As written, an inventory can mark an arbitrary repository as admitted by root and evidence_verdicts will always pass it. Restrict this admission to the estate's aggregation-root row (or validate the configured root identity) when loading the inventory.
…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]>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Six unresolved moderate validation issues affect admission status, evidence parsing, carrier/root checks, archive matching, and symlink handling.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (5)
scripts/estate_inventory.py:789
change admissions are defined as coming from a RATIFIED change, but this branch treats any existing openspec/changes/<id> directory as sufficient evidence. A draft packet with that directory (and provisional: true) will therefore make an otherwise unknown repository resolve and pass the membership gate. Before returning NAMED, read the change's authoritative proposal.md status and reject/report it unless it is ratified.
assert admission.change is not None
active = _unescaped(repo_root, CHANGES_DIR / admission.change)
if active is not None and active.is_dir():
verdicts.append(EvidenceVerdict(
row, admission, NAMED,
f"`{CHANGES_DIR / admission.change}` is an active change"))
continue
scripts/estate_inventory.py:726
This check accepts an admission whenever the repository address appears anywhere in the file, including comments or unrelated prose. A pin/workflow can be repointed while retaining the old address in a comment and will still be reported NAMED, so stale admission evidence can silently keep an inventory row valid. Parse the authoritative repository field(s) for each evidence format (or otherwise validate the structured reference) instead of using an arbitrary substring match.
def _names_repository(path: Path, repository: str) -> bool:
"""Whether the evidence file at `path` really names `repository`.
PRESENCE OF THE FILE IS NOT PRESENCE OF THE EVIDENCE. A `pin` whose file
stopped naming the repository — repointed at another source, or reduced to a
template — is a row whose admission has gone as surely as a deleted file,
and a check that asked only `is_file()` would report it as named. The match
is on the ADDRESS, the spelling the row itself carries, so a file naming
only a bare name does not discharge an address row by accident.
"""
try:
text = path.read_text(encoding="utf-8")
except (OSError, UnicodeDecodeError):
return False
return repository in text
scripts/estate_inventory.py:470
The gitlink contract requires the carrier to be a governed estate repository, but this validation only checks that carrier has address syntax. A row can name an unrelated or external address as its carrier and pass the default gate as NOT_RECHECKED, so the membership arm accepts an admission with no governed carrier behind it. Resolve the carrier against the inventory and require a governed row (while handling the aggregation root explicitly).
if kind == GITLINK:
carrier = _required("carrier")
_forbidden("path", "change")
if not ADDRESS_RE.match(carrier):
raise EstateInventoryError(
f"{where} names `carrier: {carrier}`, which is not an "
"`<owner>/<name>` address; the carrier is a REPOSITORY and a "
"reader must be able to look in the tree the row names")
return Admission(kind=GITLINK, carrier=carrier)
scripts/estate_inventory.py:500
A root admission is supposed to identify the aggregation repository itself, but this loader only checks that no site fields are present. An inventory row for any arbitrary address can therefore claim kind: root, and evidence_verdicts will mark it NAMED unconditionally, allowing that repository into membership without evidence. Enforce the canonical aggregation-root address for this admission kind.
Using a bare endswith(admission.change) can match the wrong archived packet when one change ID is a suffix of another (for example, change: thing matches 2026-09-18-create-a-thing). That would falsely classify a still-active provisional admission as archived and report it stale. Match the dated archive delimiter as well, e.g. endswith(f"-{admission.change}").
… 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]>
…cate `former` — all in `load_transfers` (#1119 round 7)
Three Copilot findings, all in the transfer-record loader:
- PyYAML's timestamp constructor raises a bare `ValueError` (not
`yaml.YAMLError`) on a scalar that looks like a date but names a day
the calendar does not have (`2026-02-30`). Uncaught, it crashed
`load_transfers` instead of reporting a finding. Now caught beside the
existing guards, but unlike them it returns a finding rather than a
silent empty map: the file exists and was meant to say something, and
this pass could not tell what.
- `datetime.datetime` subclasses `datetime.date`, so the `complete`-row
check's `isinstance(transferred_on, datetime.date)` accepted a
timestamp as readily as the plain date `field_rules.transfer_state`
means. Tightened to `type(transferred_on) is datetime.date`.
- Two `transfer_state: complete` rows naming the same `former` are each
individually well-formed, so no per-row check caught it; the loop's
`resolved[former] = current` let the second silently overwrite the
first. Now detected, reported by naming both rows, and refused for
the WHOLE FILE (not just the colliding pair) — a map caught
disagreeing with itself about one address cannot be trusted for any
other `former` it names.
Fail-then-pass for all three (`tests/estate_inventory/test_estate_inventory.py`):
reverted `scripts/estate_inventory.py` to this branch's parent commit
(b626316), ran the three new cases — the impossible-date case raised
the uncaught `ValueError` out of `load_transfers` (traceback through
`frontmatter_strict.strict_load` -> `yaml.load_all` ->
`construct_yaml_map`), the other two failed their `assert transfers ==
{}` (each resolved the bad value instead of refusing it) — then
restored the fix; all three pass.
New tests:
- test_an_IMPOSSIBLE_calendar_date_in_transferred_on_is_a_finding_not_an_exception
- test_a_TIMESTAMP_transferred_on_is_refused_not_accepted_as_a_plain_date
- test_a_DUPLICATE_former_across_two_COMPLETE_rows_refuses_the_whole_file
`python3 -m pytest tests/estate_inventory tests/code_surface -q`: 218
passed (was 215). `validate-estate-inventory.py .` and
`validate-code-surface.py .`: both exit 0, 0 transfer-map rows
malformed.
Lane: openxfactory-5 (openXfactory-5)
Refs #1087
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Catch ValueError when parsing malformed inventory YAML
scripts/estate_inventory.py:747
strict_load can propagate ValueError for malformed YAML scalars such as an impossible timestamp, but this catch only handles StrictFrontMatterError. A malformed inventory can therefore terminate the validator with a traceback instead of the documented EstateInventoryError refusal; include ValueError in this parse guard.
This issue also appears in the following locations of the same file:
line 753
line 1349
Catch ValueError in workflow evidence parsing
scripts/estate_inventory.py:1175
The direct StrictLoader workflow parse has the same uncaught ValueError path as the inventory reader: an invalid YAML timestamp or similar constructor failure escapes _names_repository, so validate-estate-inventory.py crashes instead of treating the evidence as gone. Catch ValueError with the other parse failures.
Handle UnicodeDecodeError in Git subprocess output
scripts/estate_inventory.py:1422
subprocess.run(..., text=True) decodes Git's captured stdout before returning, and that decoding can raise UnicodeDecodeError for a malformed remote URL in the supplied repository's config. _git promises never to raise and the caller treats failures as NOT RE-CHECKED, so catch UnicodeError (or decode bytes defensively) here to preserve that contract.
…'s own evidence
Realized by PR #1119 across its original delivery and seven Copilot
review rounds, now on Brett Heap's landing word ("land #1119",
2026-09-23 ~16:34:17Z terminal, RULED at opensoft/brett-wip
lanes/log/openXfactory-5.md 193719c1, independently verified against
that commit's own content and author metadata before this commit was
made).
§ 3.1-3.6: DONE/HELD, each cited by the commit(s) that did it and,
where § 3.5 owns it, the fails-then-passes test names — the original
52 cases at `729448f2`, plus one to three new cases per review round
through round 7's three (`c2d4309b`). § 3.6 (NO OTHER FILE MOVES)
RE-VERIFIED at this head: the branch diff against origin/main still
names exactly the same five files it did at the original delivery.
§ 4.1-4.2: DONE, command output pasted, both green at `c2d4309b` (317
passed; both validators exit 0, `0 transfer-map rows malformed`).
§ 4.3: DONE, the full five-command re-measurement was taken at
`5e08ff1d` (round 4, no row moved) and is disclosed as NOT re-taken at
this exact head, since neither the inventory file nor any of the four
static measured artifacts moved since; the one command that reads live
state (the declared population via the shipped reader) WAS re-confirmed
fresh at `c2d4309b`, same six identifiers, zero refused.
§ 4.4: LEFT `- [ ]` with a dated note — pytest-suite is green on this
PR's own head (run 35896651067, 22m31s) but this box's own words ask
for green at the MERGE head, so the tick is the archive act's, from
main's green run at the landed merge.
Touches nothing else in the packet directory.
Refs #1087
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Validate malformed transfer entries before state branching
scripts/estate_inventory.py:555
Malformed transfer entries are still silently skipped before the new validation runs. A list item with transfer_state: complete but a missing/non-string former or current (or a pending row with an invalid address) produces no transfer_findings, so the validators can pass over a corrupted identity row. Validate each list entry's mapping and address fields before branching on pending versus complete, and report any malformed row.
Convert timestamp ValueError into strict front-matter failure
scripts/estate_inventory.py:747
strict_load does not convert PyYAML's bare ValueError for an impossible timestamp such as 2026-02-30 into StrictFrontMatterError, so a malformed inventory can escape this handler and crash both validators instead of producing the documented EstateInventoryError/exit-2 refusal. Catch that parse exception here as well.
Handle timestamp parse errors as missing repository evidence
scripts/estate_inventory.py:1175
_names_repository promises to return False for evidence that does not parse, but both fm.strict_load and the direct yaml.load(..., StrictLoader) path can raise PyYAML's bare ValueError for an impossible date scalar. A malformed pin or workflow can therefore crash evidence_verdicts/the validator instead of becoming GONE; include ValueError in this handler.
Handle timestamp parse errors in active proposal headers
scripts/estate_inventory.py:1350
read_header_line delegates to strict_load, which can propagate PyYAML's bare ValueError for an impossible date scalar; this handler catches I/O and StrictFrontMatterError but not that parse failure. A malformed active proposal can therefore crash evidence_verdicts instead of returning the documented non-ratified finding, so include ValueError here.
…e the packet record as the sixth diff file
Answers two Copilot review threads on PR #1119, both at head 2858747,
both filed against openspec/changes/add-estate-repository-inventory/tasks.md:
- Thread PRRT_kwDOTAvnrs6lRv_k (line 218, § 3 boundary / § 3.6): the tick
commit 2858747 marked §§ 3.1-3.6 [x] and added DONE/record text
throughout § 3, leaving the "NOT ONE BYTE OF § 3 MOVES IN THIS PULL
REQUEST" boundary sentence stale against the tick, and § 3.6's "five
files" claim silent about tasks.md itself being a sixth changed file
in the branch's overall diff. Adds a dated record note under the § 3
boundary sentence clarifying it describes the code surface only, and
adjusts § 3.6 to state the code-surface diff stays five files with
tasks.md as the sixth, landing-prep file.
- Thread PRRT_kwDOTAvnrs6lRwAG (line 392, § 4.3): the PR body's § 4.3
section carried round-7 wording saying the five-command re-measurement
was "owed at landing prep" / not re-taken since 5e08ff1, contradicting
the [x] tick on § 4.3. Actually re-ran all five D0.1 commands fresh at
this head (2858747) rather than reasoning from an unchanged-files
argument: aggregation .gitmodules (23 addresses, matching), nested
gitlinks over the 25 governed non-root rows (12 in 7 carriers,
matching), contracts/ pins (8 hits, 6 distinct repositories, matching),
workflow uses: sites (codeXfactory/codexFactory across the same four
files, matching), and the declared population via
validate-code-surface.py (exit 0, same figures already cited at § 3.4).
No row moved. Records the fresh per-command results in § 4.3's own
text, and the PR body is updated separately to match.
No normative text changes; no [x]/[ ] mark, § 4.4, or § 5 text touched.
Refs #1087
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Catch ValueError when parsing malformed evidence timestamps
scripts/estate_inventory.py:1175
The evidence parser is not fail-closed here: frontmatter_strict.strict_load can propagate PyYAML's bare ValueError for malformed timestamp scalars (for example, 2026-02-30), while this handler catches only StrictFrontMatterError and yaml.YAMLError. A malformed pin or workflow file can therefore crash evidence_verdicts() instead of producing the documented GONE result; catch ValueError with the parse errors.
This issue also appears on line 1349 of the same file.
LANDED — lane openXfactory-5, session 651195c7-1854-491e-894a-e6542ef5e9f4@Eagle, 2026-09-23T19:06:58Z, PR #1119 into opensoft/openxFactory main → merge 5e12238; Realize add-estate-repository-inventory § 3: the estate inventory, its reader and validator, and the membership arm (refs #1087)
NOTICE to lane openXfactory-5, whose PR this is: lane openxfactory-4 is adding two rows to scripts/estate-repository-inventory.yaml. Brett Heap ruled it on 2026-09-23: "a, separate PR, land when green". The ruling is recorded at #656, comment 5802995365.
The two rows are opensoft/openDox-code and opensoft/openXdox-code. Each is governance: pinned and admitted_bykind: workflow: openxFactory's pytest-suite.yml and openxdox-consumer-gate.yml already check both repositories out. Without these rows, the membership check this PR added refuses #1144's code_surface:, which names those code legs.
The change is rows only. It does not touch the schema, the validator or any existing row. If your lane has an edit to this file in flight, reply here and I will rebase onto it rather than collide.
…91141), and the legs are named in D15 until #1150
Brett ruled "1, name the roots and file the follow-up" (#656 comment
5804191141, superseding 5802995365). The membership arm of #1119 refuses
a code_surface identifier the estate inventory does not carry. The
inventory carries opensoft/openDox and opensoft/openXdox, both pinned, and
neither code leg, and none of its admission kinds can admit a leg today.
The follow-up that lets it record a leg nested under a pinned root is
#1150.
- proposal.md: the head is now "openxFactory, opensoft/openDox and
opensoft/openXdox". The gloss says the code is written in the legs and
reaches openxFactory only through the roots' pins, as openXdox#17/#18 and
openxFactory#1146/#1148 did, and that the head re-points at the legs once
#1150 lands. The realization spans five repositories, target_release
names openXdox too, and the Impact bullet no longer puts the root outside
the code surface.
- design.md: new D15, a note and not a requirement: why the head names the
roots, where the code lands, and the re-pointing.
- tasks.md: 9.5 lists the openXdox route (root code pin 626f2c8d,
openxFactory's openXdox pin pair at 2f3f857d) and both verifiers; 11.0
adds openXdox; 11.1 and its guard admit both pin pairs (PIN_PAIRS). The
harness now builds real gitlinks: moving each pair passes; deleting the
openXdox pin file or gitlink, or moving an undeclared gitlink, is refused;
the previous guard refused the openXdox pair's move.
- #1148 (f1c690b) and openXdox-code#27 (626f2c8d, RULED 5801057769)
recorded in 5.3a, F3, R-G3, D13 and the proposal. F3 stays [~]: every
other station is still neutral. 5.3a's falsifier passes at 626f2c8d.
No requirement or scenario changes. Counts unchanged: 17 requirements, 75
scenarios, boxes 9 [x] / 106 [ ] / 9 [~].
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…recording ten rulings (#1144)
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
**DRAFT STATUS — for Brett Heap's ratification read. This packet authors no code byte and lands nothing. All fifteen rulings are recorded below. Every gate is green at the head, the code-surface membership arm included, since ruling 15 named the assembly roots — see "Gate state". The packet stays `Status: draft` and lands only through the holder's lander in a Rule 6 window; this actor merges nothing.**
## What this is
The archived carve packet `split-opendox-two-layer-product` (#1139 → `e8fde27f`) closed its governance ledger and left its **dependency inversion** open — `openDox-code/src/opendox/consumer_reach.py` says so in the tree: *"the injection that would make this reach disappear does not exist yet and is BUILD-arc work."* This packet opens that arc.
ONE `## ADDED Requirements` block creating the capability **`neutral-product-standalone-operability`** — **17 requirements, 75 scenarios**, written domain-neutrally with openDox as the measured instance, one per gap of the 2026-09-22 feature/gap sweep (G1–G10) plus the ruled submission step, the ruled install shape, the ruled fix loop, the ruled check-pack interface and, from 2026-09-23, chat's model configuration — each separately satisfiable and each falsifiable by a command named in `tasks.md`. It is the sibling of `neutral-product-pin`: that governs openxFactory CONSUMING an external neutral product; this governs the product being able to STAND UP without its consumer.
## The owner's question, and the measurement that answers it
Brett asked this lane: *can openDox be self-contained as a research and document tool?* **DIRECTION Q5** already set the test in his own words — *"a student could use openDox or a lab assistant. so we want that to still be useful on its own"*. Two commands answer it, in a checkout of `opensoft/openDox-code` at `f8a1ece` with `PYTHONPATH=./src`:
```
$ python3 -c "import opendox.runtime.cli" → exits 0
$ python3 -c "import opendox.serve" → ModuleNotFoundError: No module named 'ideation_dashboard'
```
openDox-code is **two products in one repository**. `opendox.runtime` is the app the founding ruling asked for and it works, standalone. The **document** surface does not import. `opendox.cli` and `opendox.notebook_action` fail through the same line, so the "Open in NotebookLM" tile action — one of the two integrations Brett named by name — is unreachable in the repository that owns it. It is **two import-time lines** (`serve.py:199`, `:206`) importing **five plain route strings**, and they cause **1,232 of the 1,298 errors** a whole `pytest -q` run produces, where the passing count is zero.
## Three findings, recorded rather than assumed
**1 — Which direction is unclosed.** openDox → openXdox is **finished**: thirteen import-time back-reaches became zero under BUILD slices 2 and 2b, and the `OPENDOX_BACK_IMPORTS` ratchet passes today at `0` / `19`. What is NOT closed is the reach into the **publisher** — and **no gate watches that direction**, which is how it survived a completed inversion under a green required check. G4 is sharper still: a **declared carve edit that never landed** — the manifest row for `authoring.py` already names the edit class, the lines `[317, 318]` and the operation that answers.
**2 — Both legs are green, and that is the problem.** openDox-code runs 37 of 63 test files and clears its floor with **zero margin**; openXdox-code runs 16 of 85. Run whole, openXdox produces **1,089 errors and zero passed**. Every one of its six skips reads *"doc_health reachability is BUILD-arc work … this test will assert for real once that lands"*. **The whole-product assertions are precisely the ones that skip.**
**3 — Where this packet is filed, and why.** In **openxFactory**, not openDox-spec. That instance is **operable** (`openspec validate --all --strict` exits 0), so the default did not fire and the choice needed an argument. It is **empty** — `openspec list --specs` answers `No specs found.` Worse, three of its four active changes carry MODIFIED blocks against a spec that does not exist there, **so they can never be archived**, and its pinned CLI 1.2.0 emits none of the notices that report it. **That openDox cannot yet govern its own BUILD arc is itself G7**, carried as requirement 8, whose third scenario names the condition that ENDS the arrangement. The ruling that argues against this filing — RULED OQ-N — is answered in the proposal, not omitted: it names *that* BUILD arc by its two boxes, and **that arc is finished**, landed in openDox-code on 2026-09-18 exactly as OQ-N directed.
## Ten rulings, recorded — this packet asks nothing it could answer
Brett ruled ten things for this arc on 2026-09-22, across seven comments on #656, and sent two constraints with them. **Three of the ten AMEND FOUNDING RULINGS**, and each says so where a reader meets it rather than leaving it to be found.
**1 — THE NEUTRAL GENERATOR (req 4), [`5783335210`](#656 (comment)): *"yes, openDox gets its own neutral generator."*** openDox does not take openXdox's `generator.py`; it grows a small neutral projection over the `CorpusAdapter` protocol it *already declares*, with `runtime/local_git_adapter.py` as the conformant implementation it already ships. openXdox **keeps** its governed generator and injects it through a seam of the same pattern.
**And the ruling is better than this packet's own recommendation, for a fact the packet had not measured.** It recommended relocating the generator; `src/openxdox/generator.py:66-68` reads `from doc_health import corpus` / `RealGit` / `lines.split_keepends`. **The generator imports openxFactory's `doc_health` directly**, so relocating it would have put `import doc_health` inside the neutral core — the exact thing `corpus-adapter-seam` forbids. `design.md` § R-G3 records the correction in full rather than fixing it quietly.
*Two constraints arrived with it:* `NEUTRAL_DISPLAY`'s six words stand unchanged — `sources → groups → candidates → selections → submissions → completed` (rulings 9 and 10 below settle the sixth) — and the view-wiring slice, claimed under actor `viewwire`, has **LANDED as openDox-code#35 → `3c3a9e31`** and is **not owned here**. It touched only `src/opendox/web/` and tests, so no Python line this packet cites moved.
**2 — THE SUBMISSION STEP (req 11), [`5783934499`](#656 (comment)): *"add a neutral publish step to the build arc."*** RULING C3 makes a standalone openDox a plain local git repository, but `session_pr.py:297`'s `GhPullRequests` shells `["gh", "pr", …]` against `_GITHUB_HOST = "github.com"`, so the student C3 describes cannot get a session's work out at all. Requirement 11 declares a neutral submission protocol — `SubmissionPort`, one operation, split from the platform's `PullRequestPort`, which stays unchanged — with a neutral default that pushes the session branch to an attached remote and says plainly when there is none.
Measured refinement: a protocol **already exists** (`PullRequestPort`, three operations, `push` already neutral) and so does its injection point (`serve.py:766`'s `pull_request_factory`, called at `:931-932`) — the hard-wire is the **default binding**, not the protocol, so requirement 11 repoints an unset default rather than inventing a seam. **And a further measurement made the step larger than a binding:** the ACT of submitting, meaning the verb `gate open-pr` (`openxdox/cli_gate.py:634`), the engine `execute_open_pr` (`openxdox/gate_routes.py:2417`) and the route, is **openXdox's**, and nothing in openDox calls either default binding. So a standalone openDox cannot submit at all, `gh` or no `gh`. Task 12.4a gives openDox its own `submit` verb and route, and requirement 11 gains the scenario that names the gap. Named *submission*, not *publish*, because this capability already uses "publisher" for the repository that publishes the corpus; *submissions* is the fifth of the six ruled words.
**3 — MERGE, [`5784155201`](#656 (comment)), *"merge yes"*.** The hold is released. The absence in `session_pr.py` was never about merging — it was **separation of duties**, and that is kept wherever a governance exists outside the tool: a governed host RESERVES landing and routes it to that governance's instrument, so openxFactory's flow is untouched. What is dropped is its LETTER exactly where the user IS the governance. **Three guardrails hold in every mode and none is configurable**: explicit HUMAN act, conflicts SHOWN, and a merge that is a COMMIT and therefore revertible.
**4 — BUNDLED POSTGRES, ONE DIALECT (req 12).** The install brings the database so a user installs the product, not a database. **No SQLite** — a second dialect doubles every migration forever for a store that by RULING Q1 holds no document. Both DSNs survive: a single-user install is not a reason to serve from the migrating credential.
**5 — A NAMED LOCAL IDENTITY MODE (req 13) — AMENDS RULING Q2.** `config.py:89-92` makes the Keycloak issuer REQUIRED; a single user cannot run a Keycloak. The amendment is narrow and the narrowness is the point, with the safety in one scenario: **a hosted install with no issuer REFUSES rather than degrading**, because a mode you enter by forgetting to configure something is an unauthenticated multi-user install wearing the word "local".
**6 — HEALTH RESULTS IN THE STORE (req 6, amended) — AMENDS RULING Q1's CLOSED TABLE LIST**, by the additive path `0001`'s own text names. **Two corrections this packet measured:** it is `0003_`, not `0002_` — that file exists, the migration ledger — and the closure test is scoped to the CANONICAL migration, so it moves only if the health table is declared a DOMAIN table; `0002`'s ledger is the precedent for the other answer, and the realization declares which and why. **Q1's principle is untouched**: no document, still disposable, results recomputable from git.
**7 — THE FIX LOOP (reqs 14, 15), [`5784247356`](#656 (comment) Detection without resolution is a list that grows. Three resolution classes, CLI parity with the view, and **every repair a draft on a branch that reaches the default branch only through the merge rule — nothing auto-merges, not even a one-line fix**, with batching as the pressure valve. The applier is genuinely new: openxFactory CLASSIFIES findings (`AUTO_FIXABLE`/`CONTESTED`) and no code in `scripts/doc_health/` applies one. **And exceptions live in GIT, not the store** — the store is disposable by Q1, so an exception kept there is a judgement scheduled for deletion whose finding silently returns on the next reset.
**8 — THE CHECK-PACK INTERFACE (req 16), [`5784295745`](#656 (comment) A pack supplies families, findings and patches; the ENGINE owns the view, scheduling, the baseline, storage and the fix loop; and **a pack CANNOT redefine the resolution classes, the baseline rules, or who may land work** — those are the guarantees the rest of this capability exists to give, and a pack that could vary them would make each one conditional on which plugins an install carries. Guardrails: a pack runs **in an OS-enforced sandbox** — a read-only mount of an isolated copy, no network, its whole process tree ended with the sandbox — so only the engine can write; pinned by commit and digest (digest alone for a pack the corpus carries); and a pack that crashes or times out becomes a **finding against that pack** rather than taking the run down.
**9 — THE SIXTH WORD IS `completed`, [`5784654370`](#656 (comment)): *"2, keep completed"*.** The sixth stage's role is `completion` and its short label is **`completed`**, exactly as `NEUTRAL_DISPLAY["stages"]["completion"]["short"]` declares it — measured at openDox-code `3c3a9e31` before encoding. **This packet had spelled it `completions` in four places**, because it quoted the module docstring (`display_profile.py:77`, since aligned by openDox-code#36 → `1e4a57fb`) instead of the declaration. Every list of the six words now ends `completed`, and the correction is recorded where the old spelling stood.
**10 — openXdox OVERLAYS "implemented" THROUGH A FACET, [`5784683830`](#656 (comment)): *"1, keep completed and overlay implemented"*.** The neutral word stays; openXdox declares a PARTIAL `DISPLAY` facet labelling the `completion` stage "implemented", the governed lifecycle's word, and openDox fills everything else from `NEUTRAL_DISPLAY`. It is **the estate's first `DISPLAY` facet** (task 5.3a), and it has LANDED as openXdox-code#26 → `195276b7` — as a module value in `view_extensions.py`, not a `DomainProfile` field, which is where 5.3a and its falsifier now read it. Served pages show it since openxFactory#1146 → `d52b4199`, and its item nouns since #1148 → `f1c690b8` (ruling 14). The falsifier was run against the real `normalize_display` at `3c3a9e31` first, which is how it learned that a facet giving `short` alone leaves `label` at "completed" — so the box requires both.
**This is also what finally gives openxFactory's 23 governance families a home** that is neither "stay in openxFactory forever" nor "move into the neutral core" — an **openXdox pack**, named here as a FOLLOW-ON and deliberately not authored here, alongside each DomainxFactory's own pack.
## Three rulings of 2026-09-23 — two releases, one change
Brett ruled three more times on #656, and the third answered the four questions this packet raised when it measured the second against requirement 1.
**11 — THE DIRECT ARROW STAYS, [`5799494355`](#656 (comment)): *"keep the direct arrow, revisit after phase 1"*.** RULING OQ-2's pin chain is unchanged: openxFactory pins BOTH openXdox and openDox, with the lockstep in `scripts/verify-opendox-pin.py`. openxFactory's direct use of openDox is a legitimate host use; the arrow that blocks standalone is the reverse one, which phase 1 cuts. `design.md` § D13 carries it as a non-normative note, and follow-on F4 is the revisit.
**12 — TWO RELEASES, [`5799646419`](#656 (comment)): *"a, phases 1-3 as the first release"*.** Release 1: phase 1 it runs, phase 2 it is useful alone, phase 3 it installs. Release 2: phase 4 merge, the governed pull-request path and submission behind one interface; phase 5 the health engine, the fix loop, exceptions in git and the check packs. The release map at the head of `tasks.md` places every group, and **release 2's rulings are SEQUENCED, not deferred, reopened or weakened.**
**13 — THE FOUR QUESTIONS, [`5800995035`](#656 (comment)): *"the four 1144 questions, go with recomendations"*.**
- **Requirement 1 is KEPT.** Ruling 12's phase-1 text moved openxFactory's lane actions and host wiring into openXdox, which requirement 1, the carve manifest's `stays_openxfactory_adapter` rows and 11.1's guard all refuse (the guard, run over such a move, names five paths). Phase 1 is the G1/G4 cut, a neutral default host profile, and openDox's own default corpus adapter registered at startup (new task 4.1a). The direct-arrow revisit now re-measures after phase 1 instead of waiting on a condition that could never be met.
- **One change.** `release-realization` admits one `target_release:`, so the releases are sequencing, and the change archives only on merged, green evidence for BOTH. Splitting release 2 out stays open for later.
- **Requirement 17, NEW:** chat reaches any OpenAI-compatible endpoint by URL, model name and credential reference, never a raw key; a clear "no model configured" state with the rest of openDox working; `doxbench_provider.py` stays the only module that contacts a provider. Group 16 carries it, measured at openDox-code `1e4a57fb`: the one dialect speaks no OpenAI grammar, the record has no model name, a key inside the endpoint URL is ACCEPTED today, the catalog advertises `omp-local` as available with no harness installed, and the provider-boundary test is a standing red that no required check runs.
- **Release 1 is "standalone operation"**, not a declared standalone product: requirement 8 keeps that declaration for openDox-spec.
## Two later rulings of 2026-09-23 — the item nouns, and the code surface
**14 — THE ITEM NOUNS, [`5801057769`](#656 (comment)): *"yes, overlay implemented items too"*.** openXdox-code#27 → `626f2c8d` adds the `completion` entry's `one` and `many` ("implemented item", "implemented items") to openXdox's partial facet, and openxFactory#1148 → `f1c690b8` serves them. It is follow-on F3's second landing, not this packet's work. F3 stays `[~]` because every other station is still neutral. 5.3a, R-G3 and D13 record it, and 5.3a's falsifier passes at `626f2c8d` as it did at `195276b7`.
**15 — THE CODE SURFACE NAMES THE ROOTS, [`5804191141`](#656 (comment)): *"1, name the roots and file the follow-up"*.** This supersedes `5802995365`, whose inventory-rows route was dead. The inventory's reader, `scripts/estate_inventory.py`, reads workflow evidence only at `uses:` and `with.repository:`, never from a `run:` line. openxFactory's workflows reach the legs only through `git submodule update --init --recursive` on the two roots, in `run:` lines. The head is now **`openxFactory, opensoft/openDox and opensoft/openXdox`**: two roots the inventory already carries (both `pinned`) and openxFactory's host wiring.
- The gloss says where the code is WRITTEN: in the legs `opensoft/openDox-code` and `opensoft/openXdox-code`.
- A leg's code reaches openxFactory only through the roots' pins. That is the route openXdox#17/#18 → openxFactory#1146/#1148 took today.
- The follow-up is **#1150**, which asks the inventory to record a code leg nested under a pinned root. The head re-points at the legs once it lands.
`design.md` § **D15** is a note, not a requirement, and records all three points.
The route forced three companion edits that the ruling's own example needs:
- **9.5** now lists the openXdox route: the root's `code` pin at `626f2c8d`, and openxFactory's `openXdox` gitlink and `contracts/openxdox-pin.yaml` at `2f3f857d`. It names both verifiers.
- **11.0** adds openXdox to the repositories whose commits carry the `Arc:` trailer.
- **11.1's guard** admits BOTH pin pairs (`PIN_PAIRS`). The guard before this round refused the openXdox pair's move, as the control run shows.
## Corrections the measurements forced
- **The submission report redacts a credential the remote's URL carries** (Copilot `r4088286823`). A git remote can embed userinfo or a query-string token, and 12.4a's verb prints the report. 12.1a now reports where the work went and never what the remote holds, and the same applies to a refused or failed push's message. The falsifier runs a named regression test, `test_a_credential_in_the_remote_url_never_reaches_the_report`.
- **Scenario ordinals now match the spec delta.**
- Group 12 cited requirement 11's report and no-remote scenarios as the second and third. Round 11 inserted a new second scenario, so they are now the third and fourth.
- `design.md` § R-G3 and the proposal cited requirement 3's "fourth" scenario for the neutral-vocabulary rule. That scenario has been the third since it was written.
- **9.5 never listed the openXdox route**, which is the route ruling 15 cites. It now lists the openXdox root's `code` pin and openxFactory's `openXdox` pin pair, measured on every main line today.
- **11.1's guard harness now builds real gitlinks.** It extracts the committed block from `tasks.md` and runs 14 cases, all as expected:
- the ten earlier cases;
- a landing that moves each pin pair in one commit (passes);
- a deleted `contracts/openxdox-pin.yaml`, a deleted `openXdox` gitlink, and a moved undeclared gitlink (each refused).
The same harness over the guard at `f3511e0c` refuses the openXdox pair's move, so the extension was needed.
- **5.3a now reads the facet where it LANDED.** openXdox-code#26 → `195276b7` declared it as a module value, `openxdox.view_extensions.DISPLAY`, and NOT on `DomainProfile`, because openxFactory's composite host would never forward it there. The box's old falsifier, `host_display(DomainProfile)`, answers `None` against the landed trees; the new one passes against openXdox-code `195276b7` with openDox-code `1e4a57fb`.
- **3.3 asked for a manifest edit the guard refuses.** The `deleted_at_carve` row has no `edits[]` entry to annotate, so the box now leaves it byte-identical.
- **11.1's guard let a declared surface be deleted.** It now reads `--name-status --no-renames` and refuses a deletion or rename of any path, a host file or the pin file included. A scratch-repository harness ran the committed block over ten cases and every one behaved as expected: two must pass (one history holding a squash landing, another lane's landings, a merge of main into the arc branch and a trailered merge landing; and a bare note extension), and eight must refuse (a family edit hidden in a merge landing, a ledger edit, a deleted host file, a renamed host file, a deleted host test, a deleted pin file, a rewritten note, a changed digest).
- **The proposal said the carve manifest files `corpus_adapter_openxfactory` and `opendox_host.py`.** Neither has a row; the `ideation_dashboard` modules that stayed do.
- **openDox-code#36 landed** → `1e4a57fb`, and the packet says so.
## What openxFactory keeps
Requirement 1 says it as a refusal, not a promise: the corpus, the OpenSpec instance, **every** doc-health check family, the adapter column, the intent-plane schemas and the integration tests all stay. The measurement shows there was never much to take — at check-family granularity the tally is **0 pure TOOL, 6 BOTH, 17 CORPUS-OPS of 23: no pure-tooling family exists.** The arc **reverses a direction**; it does not relocate a boundary.
## Gate state at `19237b91` — every gate green, the membership arm included
Run on the head. It already carries main `f1c690b8`, merged in by `gh pr update-branch`, so it is the tree CI tests.
```
openspec validate add-neutral-product-standalone-operability --strict → valid
openspec validate --all --strict → 111 passed, 1 failed (112 items)
baseline at main f1c690b: 110 / 1 of 111
→ +1 item, +1 passed, ZERO new failures
validate-openspec-cli-pin.py --all --no-cache → exit 0, 0 UNDISPOSITIONED failures
validate-code-surface.py . → passed. Membership: 31 heads naming 8 identifiers,
all 8 carried by the inventory (33 rows), 0 refused
(main alone: 30 heads naming 6)
validate-target-release.py . → passed
validate-sequenced-after.py --ledger-diff → consistent, 228 rows (main alone: 227)
proposal-support.py . verify → ok
the three membership tests → 3 passed (all three failed at f3511e0 merged with main)
tasks.md falsifier blocks → 22 shell blocks pass `bash -n`; 23 Python heredocs parse
11.1's guard, in a scratch-repository harness → 14 of 14 cases as expected
(the guard at f3511e0: 13 of 14; it refuses the openXdox pair's move)
5.3a's falsifier → passes at openXdox-code 626f2c8d with openDox-code 1e4a57fb
```
The three membership tests are:
- `tests/code_surface/test_code_surface_gate.py::test_corpus_code_surface_validates`
- `tests/estate_inventory/test_estate_inventory.py::test_corpus_code_surface_and_membership_validate`
- `tests/estate_inventory/test_estate_inventory.py::test_every_live_declared_identifier_is_CARRIED_by_the_inventory`
**CI at `19237b91`: all 13 checks are green.** `pytest-suite` reports 8440 passed, 6 skipped and 0 failed (its junit tally: selected 8858, passed 8852, failures 0, errors 0). At `f3511e0c` it reported 3 failed, 8436 passed and 6 skipped, and the 3 failures were exactly the three membership tests above. `2a0b95e6`, the same tree but for this round's Copilot fixes, gave the same 8440 / 6 / 0.
The single `failed` in `--all` is `add-chain-attestation`'s ratified disposition. The adjudicated gate accepts it by name, and this packet does not touch it.
**The membership gate, answered.** At `f3511e0c` the code-surface membership arm (#1119 → `5e122388`) refused `openDox-code` and `openXdox-code`. The inventory carries neither, so those three tests in the required `pytest-suite` failed on the branch merged with main. Ruling 15 names the roots instead, and the head now names `openxFactory`, `opensoft/openDox` and `opensoft/openXdox`, all three carried. Copilot's thread `4086593436` is answered with the ruling and #1150, and resolved. Copilot's review at `19237b91` lists no finding and no open thread (0 of 122 unresolved), and its one-line summary is answered in the conversation.
Task boxes: **9 `[x]`** (the measurements and rulings this packet recorded, and 5.6, ticked on the view-wiring landing), **106 `[ ]`** (the realization it proposes), **9 `[~]`** (deferred, each with a named Owner and exit condition).
**Rule 6:** this PR touches `openspec/changes/` and the README OpenSpec Records block, so it lands in a declared window — not by this actor.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
… 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]>
…s PR's own evidence
The packet landed by squash as daca0b8 (#1156, ratified) and was merged
into this branch at c230f4c. On the #1119 precedent (2858747, a
tasks.md-only commit inside that realization pull request, after its
packet had landed), § 3.1-3.4 are ticked here. Each is cited by the
commit or commits that did it and by the evidence taken at c230f4c:
327 passed on § 4.1's three directories; the ten pinned-root cases FAIL
against main daca0b8's scripts/ (64 pass) and all 74 pass at the head;
validate-estate-inventory.py exits 0 plain (37 rows, 34 NOT RE-CHECKED)
and with --estate-tree over the two root submodules (the four legs NAMED
at dc7aa08f and 069fe471).
§ 3.5 and § 4 are left unticked for the lane to decide. Nothing else in
the packet directory moves: no header, no Status line, no other section.
Refs #1150
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…rier, its pinned-commit re-check, and the four legs (#1163)
Realizes admit-code-leg-under-pinned-root section 3 on Brett Heap's word of 2026-09-25, verbatim "land #1163 when the verifier clears it", after the packet landed as daca0b8 (#1156): the widened gitlink carrier bound (a pinned row admitted by exactly one pin, re-checked at the commit that pin names from the supplied tree's own object store with every transport refused, NOT RE-CHECKED where the tree cannot produce the blob), the class bound on a leg row, the four legs (opensoft/openDox-spec, opensoft/openDox-code, opensoft/openXdox-spec, opensoft/openXdox-code) in the estate inventory with the header re-measured, nine fails-then-passes test cases plus a strict UTF-8 decode regression case, and the tasks.md section 3.1-3.4 ticks per the #1119 precedent. Refs #1150, Refs #1156. Sections 3.5, 4 (re-measure at realization) and 5 (archive) stay open on their own words, and #1150 stays OPEN.
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lane: openxfactory-5 (openXfactory-5)
REALIZATION of the ratified packet
add-estate-repository-inventory(proposal PR #1101 → merge344ad3c7; ratified by Brett Heap 2026-09-18 approximately 12:55Z, verbatim "ratify #1101", with his three further rulings of the same day — "Bind the carrier identity", "#1101 declares #1108 and folds its text", "MAY becomes MUST" — encoded in the packet).Lands on Brett Heap's word "land #1119" (2026-09-23 ~16:40Z, terminal; RULED at
opensoft/brett-wiplanes/log/openXfactory-5.md193719c1). A follow-up commit (2858747b) has tickedtasks.md§§ 3–4 with this PR's own evidence, exactly as PR #1107 tickedharden-path-escape-helpers-against-symlink-loops; nothing else in the packet directory or underopenspec/specs/is touched (git diff origin/main..HEAD -- openspec/changes/add-estate-repository-inventory/is the tasks.md tick and nothing else). § 5, the archive, is a separate act on a separate word and is not sought here.mainlanded the ratified-text amendment this thread's ruling calls for: PR #1130 (0f23341f) amendeddesign.mdD0.2 row 3 on the SAME word ("Drop the pin admission on row 3") togitlink (opensoft/xFactory), workflow— merged into this branch at6c2f1bcc(git merge --no-edit origin/main, no conflicts). The packet's row 3 and this branch's inventory row 3 now read IDENTICALLY, independently arrived at from the same ruling.mainmoved again (througha151e462) and was merged in a second time atec5fa141(git merge --no-edit origin/main, no conflicts); nothing in the packet directory oropenspec/specs/was touched by either merge — both are ordinary catch-ups on a branch this PR does not own.Refs #1087
Refs #1101
code_surface: openxFactory. Head2858747b.The slices, landed
scripts/estate-repository-inventory.yaml— the 33 rows ofdesign.mdD0.2, re-measured at this headeee585c3scripts/estate_inventory.py— the reader, the row-level judge, the carrier-identity check92bb8eb7scripts/validate-estate-inventory.py— the default in-tree run and the verified--estate-treemodeed6160c7scripts/validate-code-surface.py, so the grammar scan and the membership scan report in one run82ae4f1atests/estate_inventory/— one case per scenario class, each written to fail without its arm729448f28407e157277c028e0cd52b7fb747daadGIT_CONFIGdropped from the carrier read's environment (measured inert on this git, scrubbed anyway); arootrow must declaregovernance: governed247ca3dcpinkind's unlawful admission dropped from codexFactory's row 3 (Brett Heap, 2026-09-21, verbatim "Drop the pin admission on row 3")728b8770pin/workflowadmission is NAMED by its STRUCTURAL field only, never by prose elsewhere in the filea961d92c5e08ff1dcompletetransfer row is held to its own field-agreement shape (transferred_ona real date, both addresses<owner>/<name>-shaped), not totransfer_statealone; the workflow reader checks the JOB-leveluses:site too81a01b3cpinadmission on agovernance: governedrow is refused at load — the same defect class the row-3 ruling closed on one row, now closed for every rowb626316bload_transferscatches PyYAML'sValueErroron an impossible calendar date (a finding, not a crash);transferred_onis held totype(...) is datetime.dateexactly, so adatetime.datetimetimestamp no longer slips theisinstancecheck; twocompleterows naming the sameformerrefuse the WHOLE FILE, naming both rowsc2d4309btasks.md§§ 3–4 ticked with this PR's own evidence, on Brett Heap's word; nothing else in the packet directory touched2858747b§ 3.6 holds and is verified by the diff. The only files this branch adds or edits are
scripts/estate-repository-inventory.yaml,scripts/estate_inventory.py,scripts/validate-estate-inventory.py,scripts/validate-code-surface.pyandtests/estate_inventory/test_estate_inventory.py.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.§ 4.3 — the 33 rows RE-MEASURED at
5e08ff1d, RE-CONFIRMED FRESH at5d44003c, by the five D0.1 commandsRE-TAKEN FRESH at
5d44003con 2026-09-23 — this supersedes the round-7 deferral note previously here, and answers PR review threadPRRT_kwDOTAvnrs6lRwAG. All five D0.1 commands were actually re-run against this head, not reasoned about from which files rounds 5-7 touched: (1)gh api repos/opensoft/xFactory/contents/.gitmodules -q .content | base64 -d | grep -oP 'github\.com[:/]\K[^ ]+' | sed 's/\.git$//' | sort→ 23 addresses, set difference against the inventory's 23carrier: opensoft/xFactorygitlink rows EMPTY both ways; (2) the same scan over the 25 governed non-root rows the live inventory's own governance column names → 12 nested gitlinks in 7 carriers (openxFactory 4, MedxEHR 2, LedgerxFactory 2, MedxFactory 1, MedxChart 1, MedxPractice 1, LedgerxAvatar 1); (3)grep -rn 'source_repository\|^repository:' contracts/*.yaml→ 8 hits, 6 distinct repositories; (4)grep -rhoP 'uses:\s*\K[A-Za-z0-9._-]+/[A-Za-z0-9._-]+' .github/workflows/ | sort -uplusgrep -rln 'codeXfactory/codexFactory' .github/workflows/→actions/*andcodeXfactory/codexFactory, ONE estate repository across the same four workflow files; (5)python3 scripts/validate-code-surface.py .→ exit 0,46 active proposals, 46 declaring — 9 \none`, 30 a repository list, 7 named by the register, 0 outside the grammar, membership30 readable heads naming 6 distinct identifiers — 6 carried, 0 refused. Every figure MATCHES the5e08ff1transcripts tabulated below — this is a direct re-run, not an inference, and it reports the SAME totals. **NO ROW MOVED.** The full per-command detail is also recorded intasks.md§ 4.3 itself, dated 2026-09-23, commit5d44003`.NO ROW MOVED, AS OF
5e08ff1d. The 33-row set stands, every row still admitted by the evidence D0.2 records. Two FIGURES moved and both are disclosed here rather than left for a reader to notice.1. The aggregation's
.gitmodules— 23 addresses, EXACTLY the inventory's 23carrier: opensoft/xFactoryrows.2. The nested gitlinks — 12 in SEVEN governed repositories, where D0.1 recorded 11 in SIX. DISCLOSED, and it adds no member.
The extra one is
opensoft/LedgerxAvatar→opensoft/openAvatar, and the reason it appears now is arithmetic rather than movement: D0.1's command ran over "the 19 governed non-root rows of D0.2", a set fixed before rows 28-33 were classedgoverned. By D0.2's own governance column at this head the set is 25, and row 31 (LedgerxAvatar) is one of the six that joined it — and it nestsopenAvatar. It names NO repository the inventory does not already carry:opensoft/openAvataris row 15, admitted by the aggregation gitlink, which command 1 confirms. So the inventory is not edited for it: what changed is the count a differently-sized input set returns, and D0.2's admissions column stands.3. The pin declarations — unchanged, 6 distinct repositories.
4. The workflow site — unchanged at ONE estate repository.
The repository count is what D0.1 measured and it has not moved; the FILE count is now four, and row 3's recorded site (
.github/workflows/merge-master-approval.yml) still names it, so one site suffices and no row moves.5. The declared population, through the SHIPPED reader and never a private scan — the corpus moved, the SIX identifiers did not.
origin/mainad089e8a0cd52b7f5e08ff1dnoneThe corpus keeps moving under other hands while this branch stays open, exactly as
tasks.md§ 4.3 says it would; it moved again between round 1 and this head, and the drift is disclosed here rather than left for a reader to notice. What the packet actually reasons from did not move: the six distinct identifiers are stillopenxFactory,xFactory,openAvatar,opensoft/LedgerxWallet,opensoft/Keycloak-Install,opensoft/OpenXPKI-Install— re-verified at5e08ff1dthrough the same shipped reader — and all six still resolve, zero refused.The governance class of rows 28-33 was re-measured at § 3.1 and the finding is recorded in the inventory's own header:
MedxChartpinsopenChart,MedxPracticepinsopenPracticeandMedxEHRpins both of its nested members, whileMedxFactoryandLedgerxFactorypin neither avatar — and none of the six moves class, becausepinnedis defined as OPENXFACTORY consuming a repository at a commit and digest, openxFactory pins none of the six, and all six are authored inside this estate.The membership scan over the LIVE corpus — every declaration judged, ZERO refused
46 active proposals as of
c2d4309b/2858747b(the tasks.md tick touches no code and moves no corpus count; 44 at round 4, 46 at round 1 — the corpus moved both ways), every one accounted for. NO lawful active declaration would be REFUSED.qualify-avatar-live-voice's two-member listnoneEvery resolution, by row, re-verified at this head:
openxFactory→ row 2 (26 heads total, bare name) ·xFactory→ row 1 (add-clearing-dispatch-boundary, bare name) ·openAvatar→ row 15 (qualify-avatar-live-voice, bare name) ·opensoft/LedgerxWallet→ row 27 (create-ledgerxwallet-overlay-boundary, address — the PROVISIONAL row the "MAY becomes MUST" ruling makes OWED) ·opensoft/Keycloak-Install→ row 24 ·opensoft/OpenXPKI-Install→ row 25. No head resolves through the transfer map, sodesign.mdD5's REPORT path fires on nothing today and is exercised by test instead.0 transfer-map rows malformedat this head too — the livecontracts/policies/repository-identity.yamlcarries exactly one row (opensoft/codexFactory→codeXfactory/codexFactory,transfer_state: complete,transferred_on: 2026-09-09), it is well-formed by every check round 7 added, and none of it resolves through this run (no head in the corpus is still read at the former spelling) — so round 7's three new guards have a real row to pass through cleanly, not merely an empty file to be silent about.§ 4.1 — the suites
(305 at
b747daad→ +2 round-3 cases (test_an_ambient_GIT_CONFIG_is_scrubbed_from_the_carrier_read,test_a_ROOT_row_must_declare_governance_GOVERNED) → +1 thread-1-ruling case (test_the_live_codexFactory_row_is_admitted_by_gitlink_and_workflow_only) → +3 round-4 cases (test_a_PIN_admission_is_named_by_its_STRUCTURAL_field_and_not_by_prose,test_a_WORKFLOW_admission_is_named_by_USES_or_WITH_REPOSITORY_and_not_by_prose,test_the_live_codexFactory_workflow_admission_survives_a_115KB_file) = 311 → +2 round-5 cases (test_a_MALFORMED_transfer_row_is_refused_and_reported_not_resolved,test_a_reusable_workflow_called_at_JOB_LEVEL_names_its_repository) = 313 → +1 round-6 case (test_a_PIN_admission_on_a_GOVERNED_row_is_refused) = 314 → +3 round-7 cases (test_an_IMPOSSIBLE_calendar_date_in_transferred_on_is_a_finding_not_an_exception,test_a_TIMESTAMP_transferred_on_is_refused_not_accepted_as_a_plain_date,test_a_DUPLICATE_former_across_two_COMPLETE_rows_refuses_the_whole_file) = 317.)§ 4.2 — both validators, exit 0, membership counts beside grammar counts
Figures moved from the
5e08ff1dtranscript above (round 4), both explained rather than left silent. The proposal counts (44→46active,30→30readable,178→180archived,8→7registered) are the corpus moving under an unrelated hand while this branch stayed open, exactly astasks.md§ 4.3 anticipates — round 5-7 authored none of that drift.0 transfer-map rows malformedis a NEW field on this line:MembershipReport.transfer_findings, added in round 5 and exercised further in round 7, threadingload_transfers's second return value through to both validators' FAILED path and exit code. The invariant the packet actually reasons from — six distinct identifiers, all resolving, zero refused — is unchanged and re-verified above.A SILENCE IS NEVER A PASS: the 30
gitlinkrows are reported NOT RE-CHECKED and COUNTED, neither passed nor failed, because their evidence lives in a tree an openxFactory checkout does not contain (design.mdD1.2). The required check takes no tree argument, so its verdict is the same on every machine.§ 3.5 — fails-then-passes, shown both ways
The whole directory against the tree without §§ 3.1–3.4, which is the packet's own obligation ("each FAILING against the tree without § 3.1–§ 3.4"). Taken in a worktree at
origin/maincd6439f6with only the test file copied in:Without § 3.1's inventory, § 3.2's reader, § 3.3's validator and § 3.4's arm, not one case can even be collected — there is nothing for them to be about. With them: 52 passed.
The ten review-round cases, each against the pre-fix reader, which is the finer-grained proof that each fix closes a hole that was really open:
The Copilot round — twelve threads, each verified in the tree before it was acted on
Eleven TRUE or FALSE and answered; ONE was RULING NEEDED — now RULED (2026-09-21) and taken at
728b8770. Every fix is277c028ewith its own fails-then-passes case; every reply quotes the evidence.estate-repository-inventory.yaml:153estate_inventory.py:157(and 936)[email protected]:opensoft/xFactory.gitVERIFIED as this estate's aggregation.FORGE_HOSTSbounds it to GitHub's canonical ssh/https forms, measured from the estate's own spellings; the transfer map records an<owner>/<repo>address with no host field and could not supply the bound, which the module header now saysestate_inventory.py:470(and 499)gitlinkcarrier was accepted on SHAPE alone; the kind's first clause is "a GOVERNED ESTATE REPOSITORY's.gitmodules". A carrier must now resolve to agovernedrow of this same inventory, checked in a post-pass to a fixed point, refused at loadestate_inventory.py:726repository in textlet a pin namingopensoft/openXwalletdischarge a row foropensoft/open. Matched on address boundaries, with/deliberately not a boundary (the estate's pins write addresses inside URLs) and a trailing.gitadmitted explicitlyestate_inventory.py:793endswithmade2026-09-18-recreate-…answer forcreate-…, retiring a live PROVISIONAL row on another change's act. Exact\d{4}-\d{2}-\d{2}-<id>fullmatchestate_inventory.py:500rootNAMES NO FILE, so it is the one admission no run can contradict — accepted on any row it was the estate's open door. Bound toAGGREGATION_ROOT(opensoft/xFactory, D0.2 row 1)estate_inventory.py:594name:was checked for syntax and never againstrepository:, soname: trustedcould authorizeopensoft/openxFactorywhileopenxFactoryresolved to nothing. Bound to the address's final segmentestate_inventory.py:939.gitmoduleswas read throughis_file()/read_text(), both of which follow links._unescaped(thecode_surface.pyguard, catching(OSError, RuntimeError)) now guards it; a DANGLING link reads UNREADABLE, not "no submodules", and the row stays NOT RE-CHECKED rather than failingestate_inventory.py:788openspec/changes/resolved as NAMED, so a draft admitted any repository — on the one kind whose evidence an author controls completely.Status:is read throughfrontmatter_strict.read_header_line, the shipped strict loader, with the same window ruledoc_health.corpusappliesvalidate-code-surface.py(file)tests/estate_inventory/test_estate_inventory.pywas added by729448f2, and all five named risks were already pinned there (fail-closed, external refusal, stale evidence, former address, register interaction), each driving the required validator end to end. The reply names the case per riskestate_inventory.py:823child.is_dir()follows links, so a link named like an archived change expired a provisional row on bytes outside the tree. Symlinked children skippedvalidate-code-surface.py:438is_symlink() or exists(); for a symlinkedscripts/BOTH are false, so the run printedmembership: NOT JUDGEDand exited 0 — the worse verdict, because it passes. Probed withos.lstatsemantics, and the refusal isload_inventory's ownThread 1 — RULING NEEDED, and RULED: the admission is dropped
Row 3 recorded
admitted_by: [{kind: pin, path: contracts/review-lane-pin.yaml}]. Copilot was right on the ratified text: that file iskind: pinned_workflow, its own header says "no bundle, no digest set", and it recordscore_commit; the ratified delta defines the kind as "an openxFactory file undercontracts/names the repository as the source of a commit-and-digest pin … for a product PINNED rather than governed". Row 3 failed both clauses — the pin carried no digest set, andcodeXfactory/codexFactoryisgoverned.And the same ratified packet admitted that exact file as a
pin, twice:design.mdD0.1's pin measurement countscontracts/review-lane-pin.yaml:47(it is the onlycontracts/hit naming codexFactory), and D0.2 row 3 spelled the admissionpin (review-lane-pin.yaml)— whichtasks.md§ 3.1 made the inventory carry.So the packet contradicted itself, and all three remedies edited ratified text: dropping the admission contradicts D0.2 row 3; re-classing it as a
workflowis refused by the ratified directory bound (workflowis a file under.github/workflows/, and row 3 already carries its real one); widening the kind's wording is a requirement-text change. Under the estate's post-word rule a realization seat may fold a non-normative fix and must send a requirement-text change up as RULING NEEDED — which is what happened: nothing was broken at runtime meanwhile (the admission re-checked as NAMED and both validators exited 0), so this was reported as a record fault rather than papered over, and the thread was left unresolved on purpose.RULED. Brett Heap, 2026-09-21 ~20:30Z (lane channel), terminal multiple-choice, verbatim "Drop the pin admission on row 3." Taken at
728b8770: row 3 now carriesgitlink(carrieropensoft/xFactory) andworkflow(.github/workflows/merge-master-approval.yml) only; thepinadmission namingcontracts/review-lane-pin.yamlis dropped. The pin kind's definition and the loader are UNCHANGED — this is a data correction to one row, not a schema change, andcontracts/review-lane-pin.yamlitself is untouched (stillkind: pinned_workflow, still consumed bymerge-master-approval.ymldirectly).test_the_live_codexFactory_row_is_admitted_by_gitlink_and_workflow_onlyfails against the pre-fix row (AssertionError: assert {'gitlink', 'pin', 'workflow'} == {'gitlink', 'workflow'}) and passes at728b8770.The packet's own D0.2 row 3 and its D0.1 pin-declaration count are being amended on the same word, in a separate change, by the coordinator's other seat — out of this realization pull request's remit (§ 3, code surface only; this branch still touches no byte of
openspec/changes/add-estate-repository-inventory/oropenspec/specs/, verified above).The SECOND Copilot round — three threads, all TRUE, all fixed and resolved
Copilot re-reviewed
0cd52b7fand opened three more, every one of them about the carrier read itself. All three verified in the tree before they were acted on, fixed atb747daad, each with its own fails-then-passes case.estate_inventory.py:1096opensoft/Innocentread underGIT_DIR=<another repo>/.gitanswers[email protected]:opensoft/xFactory.git, so the tree VERIFIES as a carrier it is not. The estate's own scrub list is applied (carved_reach.py,hermes_runtime_validation/content.py,report-citation-remainder.pycarry the identical tuple; none exposes it importably, so it is restated with its citation), with--no-replace-objects,GIT_NO_REPLACE_OBJECTS, and global/system config fromos.devnull. One half of the claim did NOT reproduce and the reply says so: aGIT_CONFIG_COUNT-injectedremote.origin.urlneither overrode a real remote nor created a missing one on this git. Those names are scrubbed anyway, on the estate's standing ground rather than on a demonstration this branch can claimestate_inventory.py:1101git remote get-url originsucceeds for a BARE repository, so a bare repo with a.gitmodulesplanted beside its refs discharged a row while being no checkout at all. The same hole has a second mouth Copilot did not name: a SUBDIRECTORY of a real checkout verifies too (git discovers upward), and there.gitmodulesis absent where the caller pointed — so every one of that carrier's rows was reported GONE, a row CONDEMNED on a caller's imprecise path, which is the alternativedesign.mdD1.2 retained and DECLINED.rev-parse --is-bare-repository --show-toplevelanswers both in one call and the toplevel must resolve to the supplied path; both refusals land as NOT RE-CHECKED, counted, with the report naming whytest_estate_inventory.py:1408addresssin a test name added in round 1. Renamed;grep -c addresssis 0The THIRD Copilot round — two threads, both TRUE, both fixed and resolved
Copilot re-reviewed
b747daadand opened two more. Both verified in the tree before they were acted on, fixed at247ca3dc, each with its own fails-then-passes case.estate_inventory.py:239GIT_CONFIGwas the one entry_SCRUBBED_GIT_ENVIRONMENTdid not carry. Measured honestly, the same way round 2 measuredGIT_CONFIG_COUNT/GIT_CONFIG_KEY_n: on this branch's git, an ambientGIT_CONFIGnaming a file that rewritesremote.origin.urldoes NOT itself flipremote get-urlorrev-parse— the only two calls_git()makes (GIT_CONFIGredirects onlygit config's own default file, a narrower variable fromGIT_CONFIG_GLOBAL/GIT_CONFIG_SYSTEM, which this reader already forces toos.devnull). 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 sibling files carrying "the identical tuple" (carved_reach.py,hermes_runtime_validation/content.py,report-citation-remainder.py) do not yet carry this entry — the divergence is now recorded in the module header rather than left silent, flagged here as a possible follow-up outside this PR's own surfaceestate_inventory.py:770rootrow could declaregovernance: pinnedorexternaland still load.rootnames no file, soevidence_verdictsmarks it NAMED unconditionally, and the membership arm refuses onlygovernance: external— a malformedpinnedroot would resolve and pass membership. Arootadmission now also requires its row'sgovernanceto begoverned, refused at load otherwise; the live row already readsgovernedand is unaffectedBoth already committed by the time this reply is written, so the pre-fix run is taken against the parent blob rather than a stash:
The FOURTH Copilot round — two threads, both TRUE, both fixed and resolved
Copilot re-reviewed
247ca3dc/728b8770and opened two more. Both verified in the tree before they were acted on, fixed ata961d92cand5e08ff1d, each with its own evidence.estate_inventory.py:950contracts/openspec-cli-pin.yaml's ownsource_repository:isFission-AI/OpenSpec, but its header commentary namescodeXfactory/codexFactorymore than a dozen times (around line 197 and elsewhere) — a pin admitted forcodeXfactory/codexFactoryby this file would have reported NAMED on a comment. The file is now parsed once throughfrontmatter_strict.StrictLoader, and only its STRUCTURAL fields are asked:repository:/source_repository:/source_url:(normalized) forkind: pin, a step'suses:orwith.repository:forkind: workflow.merge-master-approval.yml(row 3's real workflow evidence) is over 115KB, paststrict_load's ceiling on documentation prose alone, so the workflow path uses the same loader directly, without that ceilingestate-repository-inventory.yaml:120opensoft/LedgerxAvatar). Re-measured independently rather than copied from the body (freshgh api .../.gitmodulesscan over all 25 governed non-root rows, as of728b8770) and corrected in place, with the sha namedThe header-note fix (
5e08ff1d) is documentation only — a#comment read by no parser and enforced by no code — so it carries no fail-then-pass case; verified instead by grep (the stale phrase is gone, the corrected one is present) and by the full suite and both validators being unaffected.The FIFTH Copilot round — two threads, both TRUE, both fixed and resolved
Copilot re-reviewed
ec5fa141(this branch's second catch-up merge ofmain) and opened two more, both in the transfer-record loader. Both verified in the tree before they were acted on, fixed together at81a01b3c, each with its own fails-then-passes case.estate_inventory.py:? (load_transfers)load_transferschecked onlytransfer_state == "complete"and never looked attransferred_onat all, so a row edited to addtransfer_state: completewithtransferred_onleftnull(or any non-date value) resolved as an authoritative identity change on two string fields alone — bypassing the membership arm's fail-closed path on an editfield_rules.transfer_state's own MUST already calls malformed.load_transfersnow returns(transfers, malformed_findings): acompleterow is admitted only whentransferred_onis a real date and bothformer/currentare<owner>/<name>addresses; both validators thread the new findings through to a FAILED report and the exit codeestate_inventory.py:_workflow_names_repositorysteps[*]; GitHub Actions also dispatches a reusable workflow atjobs.<job_id>.uses, a job written this way carrying nosteps:of its own._workflow_names_repositorynow checks the job-level site first, then falls through to the two step-level sites unchangedCOLLATERAL, DISCLOSED RATHER THAN SILENT: three existing fixtures wrote
"transferred_on": "2026-09-09"— a Python STRING.yaml.safe_dumpquotes a date-shaped string to preserve its type on reload, so the fixture, unlike the live policy file's own unquoted date, round-tripped asstrand would have failed the new date-typing check though the row is lawful. Fixed to a realdatetime.date(2026, 9, 9)object, matching what the live file actually writes.Full suite at
81a01b3c: 313 passed; both validators exit 0.The SIXTH Copilot round — one thread, TRUE, fixed and resolved
Copilot re-reviewed
81a01b3cand opened one more. Verified in the tree before it was acted on, fixed atb626316b, with its own fails-then-passes case.estate_inventory.py(the post-pass)rootandgitlinkbut skipped everypinadmission without checking the kind's second clause. The promoted spec's own words: "pin: an openxFactory file undercontracts/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 agovernedrow admitted only by a contract pin, and the membership arm would accept it — it refuses onlygovernance: external. This is exactly the shape row 3 carried until Brett Heap's row-3 ruling. Apinadmission on agovernance: governedrow is now refused at load, namedCOLLATERAL, DISCLOSED RATHER THAN SILENT: round 4's own
test_a_PIN_admission_is_named_by_its_STRUCTURAL_field_and_not_by_prosefixture usedcodeXfactory/codexFactoryatgovernance: governedwith apinadmission, to mirror the realopenspec-cli-pin.yamlprose scenario — a shape this round's fix now correctly refuses before that test'sevidence_verdictscall is ever reached. Changed togovernance: 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.Full suite at
b626316b: 314 passed; both validators exit 0.The SEVENTH Copilot round — three threads, all TRUE, all fixed and resolved
Copilot re-reviewed
b626316band opened three more, all in the transfer-record loader. All three verified in the tree before they were acted on, fixed together atc2d4309b, each with its own fails-then-passes case.estate_inventory.py:528ValueError(notyaml.YAMLError, which the existing guards already caught) on a scalar that LOOKS like a date but names a day the calendar does not have —2026-02-30("day is out of range for month"), confirmed by direct call. Uncaught, it crashedload_transfersinstead of reporting a finding. Now caught beside the existing guards, but — unlike them — it returns a finding rather than a silent empty map: the file exists and was meant to say something, and this pass could not tell whatestate_inventory.py:562datetime.datetimeSUBCLASSESdatetime.date, soisinstance(transferred_on, datetime.date)accepted a timestamp as readily as a plain date — confirmed empirically (type(parsed) is datetime.datetime,isinstance(parsed, datetime.date) is True,type(parsed) is datetime.dateisFalse). Tightened totype(transferred_on) is datetime.dateexactlyestate_inventory.py:574transfer_state: completerows naming the sameformerare each individually well-formed, so no per-row check caught it; the loop'sresolved[former] = currentlet the second silently overwrite the first, with no finding raised. Now detected (resolved_at: dict[str, int]tracks former → row position), reported by naming both rows, and refused for the WHOLE FILE — not merely the colliding pair — because a map caught disagreeing with itself about one address cannot be trusted for any otherformerit namesFull suite at
5d44003c: 317 passed; both validators exit 0;validate-code-surface.pyreports0 transfer-map rows malformedagainst the live policy file's one realcompleterow — re-run fresh at this head, not merely carried fromc2d4309b.Thread state: 27 threads, 27 resolved, 0 unresolved (as of
5d44003c, 2026-09-23 — the two threadsPRRT_kwDOTAvnrs6lRv_kandPRRT_kwDOTAvnrs6lRwAGopened on the landing-prep tick2858747bare replied to and resolved; Copilot's re-review at5d44003copened none further).Standing
Lands on Brett Heap's word, verbatim "land #1119" (2026-09-23 ~16:40Z, terminal).
tasks.md§§ 3–4 are ticked with this PR's own evidence at2858747b; § 5, the archive and the promotion, is a separate act on a separate word and is not sought here — underrelease-realizationthis packet's non-emptycode_surfacearchives on merged-plus-green realization evidence, which is what this pull request is for.The word, and how it was verified before this branch acted on it
Brett Heap's words to this lane arrive in its terminal, never as a GitHub comment — the packet's own
tasks.mdheader says so about the ratifying word ("no GitHub comment carries it; RULED entry againstopensoft/openxFactory#1101inlanes/log/openXfactory-5.md"), and every other word in this PR's history (the ratify word, the row-3 ruling) was recorded the same way. This word is RULED atopensoft/brett-wiplanes/log/openXfactory-5.md, commit193719c1:Fetched independently from GitHub's contents API at that exact commit (not taken from any relay), matched against the commit's own metadata — author
Brett Heap <[email protected]>, authored2026-09-23T16:34:17Z— and cross-checked against the session id in the line, which is this lane's own transcript. Held back a round earlier, disclosed in this body at the time, pending exactly this: a first-party trace of the specific word, independently checkable, in the channel this PR's own history already established as where Brett Heap's words to this lane are recorded.Refs #1087
Refs #1101
🤖 Generated with Claude Code