Skip to content

Realize admit-code-leg-under-pinned-root § 3: the widened gitlink carrier, its pinned-commit re-check, and the four legs - #1163

Merged
brettheap merged 9 commits into
mainfrom
realize/1150-pinned-root-code-leg
Sep 25, 2026
Merged

brettheap merged 9 commits into
mainfrom
realize/1150-pinned-root-code-leg

Conversation

@brettheap

@brettheap brettheap commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-5 (openXfactory-5)

Refs #1150
Refs #1156

Depends on #1156, which has LANDED. #1156 is the packet this pull request realizes, openspec/changes/admit-code-leg-under-pinned-root/: its proposal, design, tasks and the ONE ## MODIFIED block over The estate's repositories are enumerated in a governed inventory. It landed by squash as daca0b89 on 2026-09-25 at 13:21:58Z, ratified, and is merged into this branch at c230f4c2 (a merge, never a rebase). On the #1119 precedent (2858747b, a tasks.md-only commit inside that realization pull request after its packet had landed), 65565eef ticks the packet's § 3.1–3.4, each cited by its commits and by the evidence at c230f4c2. § 3.5 and § 4 are left for the lane, and nothing else under openspec/ moves. The shape realized is option (a), RULED by Brett Heap on 2026-09-24 at about 16:52Z, verbatim "(a) recommended for both, ratify when the draft is green". The packet's § 1.2 reads that ratifying word as authorizing the realization to be AUTHORED as a later pull request, which this is. It authorizes no landing.

What this realizes (packet § 3.1–§ 3.4)

A gitlink may now be carried by a pinned ASSEMBLY ROOT that openxFactory pins EXACTLY ONCE, with the root's .gitmodules read AT THE COMMIT THAT PIN NAMES and one hop no further. The closed set stays at five kinds and no kind is added. openxFactory pins and mounts no leg: the root's pin is the whole of the evidence of reach. The code diff against main is exactly the four files the packet's code_surface: names. The fifth path below is the packet's own tasks.md, carrying only the § 3.1–3.4 ticks. scripts/validate-code-surface.py, every contract member (both pins are READ, never edited), every workflow and every other byte under openspec/ are untouched:

$ git diff --numstat main...realize/1150-pinned-root-code-leg
42	4	openspec/changes/admit-code-leg-under-pinned-root/tasks.md
91	16	scripts/estate-repository-inventory.yaml
475	24	scripts/estate_inventory.py
61	17	scripts/validate-estate-inventory.py
578	3	tests/estate_inventory/test_estate_inventory.py
file what it does now
scripts/estate_inventory.py § 3.1 (i)–(ii). load_inventory still admits a governed carrier exactly as before. Any other carrier goes through _pinned_carrier_refusal, which refuses the file BY NAME (row, carrier, condition) in five cases: an external carrier; a carrier that is itself a leg (ONE HOP, checked directly and first, see N1 below); a pinned carrier admitted by NO pin; one admitted by two or more; and a leg that declares governance: governed (the class bound). § 3.1 (iii). pinned_commit reads the carrier's one pin from THIS checkout through the strict loader. It returns revision_kind: commit and exactly 40 hex, or else a reason, and it never raises. The pin must still name the carrier as its source. § 3.1 (iv). gitmodules_addresses_at / _gitmodules_at read .gitmodules at that commit out of the supplied tree's OWN object store, never its working files. They check cat-file -t (it must be a commit), then ls-tree -z --full-tree <c> -- :(literal).gitmodules (a regular-file blob only), then cat-file blob. They return () when the commit carries no .gitmodules, and None plus a reason when the store cannot produce it locally. _sanitized_git_environment now gives EVERY git call GIT_ALLOW_PROTOCOL=none, so every transport is refused, with GIT_NO_LAZY_FETCH=1 beside it. carrier_members reads a governed carrier from its working tree as before and a pinned one at its pinned commit. One parse (_gitmodules_url_addresses) serves both reads, and _git now decodes git's output as UTF-8, strictly, never by the locale, as the working-tree read already did.
scripts/validate-estate-inventory.py § 3.2. --estate-tree verifies every supplied tree EXACTLY as before (carrier_identity, the "Bind the carrier identity" ruling), and only then reads it through carrier_members. For a pinned carrier, a pin naming no commit, or a tree that cannot produce the commit's .gitmodules locally, leaves the row NOT RE-CHECKED and COUNTED, with the report naming the pin and the commit. A leg that a verified tree does not carry at the pinned commit is a finding (exit 1) naming "its .gitmodules AT , THE COMMIT <pin> NAMES". A new report block names the commit each pinned carrier was read at. The governed read and its report strings are unchanged.
scripts/estate-repository-inventory.yaml § 3.3. Rows 34–37 (opensoft/openDox-spec, opensoft/openDox-code, opensoft/openXdox-spec, opensoft/openXdox-code), each governance: pinned and admitted by ONE gitlink in its root. The header's gitlink definition says what the delta says, and its re-check paragraph names the pinned-commit read. The population note is re-measured at this realization by SIX commands: the five it recorded, plus each pin-admitted pinned row's .gitmodules at the commit its pin names.
tests/estate_inventory/test_estate_inventory.py § 3.4. Ten cases under their own heading, each failing against the unwidened judge (table below). The eight scenario classes § 3.4 lists come from a80072a. The NINTH case is the verifier's N5 on #1156: a pinned carrier's tree that does NOT verify is NOT RE-CHECKED, and its pinned-commit read is NOT ATTEMPTED. The TENTH pins the UTF-8 read Copilot's review asked for, under an ASCII locale. The disclosed § 3.4 edit is below.

Fails-then-passes (§ 3.4, re-derived at the head)

This is the test file at 65565eef (unchanged since 978b4d1b) run against main daca0b89's scripts/ (tree af17b0f2) in a scratch worktree: 10 failed, 64 passed, the same ten as against 138a4722 before main moved. The same file at 65565eef gives 74 passed. Each case fails on the condition it asserts, never on a bare "it raises", because the unwidened loader refuses EVERY pinned carrier.

# test FAILED against main's scripts/ at 65565eef
1 test_a_code_leg_carried_by_a_PIN_ADMITTED_PINNED_root_LOADS estate_inventory.py:967: EstateInventoryError: row 2 (opensoft/openDox-code) is admitted by a gitlink in opensoft/openDox, whose own row 1 declares governance: pinned. THE KIND SAYS GOVERNED … PASSED
2 test_a_PINNED_carrier_admitted_by_NO_pin_or_by_TWO_is_REFUSED AssertionError: assert 'admitted by NO `pin`' in 'row 2 (opensoft/openDox-code) … THE KIND SAYS GOVERNED …' PASSED
3 test_a_leg_declaring_governance_GOVERNED_is_REFUSED AssertionError: assert 'SHALL NOT DECLARE `governance: governed`' in 'row 2 (opensoft/openDox-code) …' PASSED
4 test_a_row_carried_by_a_LEG_is_REFUSED_one_hop_and_no_further AssertionError: assert ('(opensoft/openDox-code-vendored)' in 'row 2 (opensoft/openDox-code) …') PASSED
5 test_a_pinned_roots_gitlink_is_rechecked_AT_ITS_PINNED_COMMIT_and_never_its_working_files AssertionError: estate inventory validation CANNOT RUN: … assert 2 == 0 PASSED
6 test_a_BLOBLESS_clone_missing_the_pinned_gitmodules_is_NOT_RECHECKED_and_fetches_NOTHING AssertionError: estate inventory validation CANNOT RUN: … assert 2 == 0 PASSED
7 test_a_carrier_pin_naming_NO_COMMIT_or_one_the_tree_LACKS_leaves_the_leg_NOT_RECHECKED AssertionError: ('<pinned>', 'estate inventory validation CANNOT RUN: …') assert 2 == 0 PASSED
8 test_a_pinned_carriers_tree_that_does_NOT_VERIFY_is_NOT_RECHECKED AssertionError: estate inventory validation CANNOT RUN: … assert 2 == 0 PASSED
9 test_a_pinned_roots_gitmodules_is_read_as_UTF8_whatever_the_locale AssertionError: estate inventory validation CANNOT RUN: … assert 2 == 0. Against c8e70d79's _git it also failed, on the false "cannot produce the .gitmodules blob" PASSED
10 test_the_live_inventory_carries_the_FOUR_legs_of_the_two_pinned_roots AssertionError: opensoft/openDox-spec / assert None is not None PASSED

The verifier's N1 and N5 on #1156, confirmed by mutation (scratch worktrees, nothing committed)

  • N1: the hop is checked directly. With the direct ONE-HOP check deleted from _pinned_carrier_refusal, leaving only the pin count, case 4 FAILS. Loaded directly under that mutation, a leg that also carries a pin of its own gives LOADED: 3 rows — a TWO-HOP chain through a self-pinned leg was ACCEPTED. With the check restored the same inventory is REFUSED: … THE REACH ENDS ONE HOP FROM AN openxFactory PIN ….
  • N5: the pinned-commit read is not attempted for a tree that does not verify (df453ea5). Case 8 now traces the validator's own git calls (GIT_TRACE, which the module's sanitized environment passes through). The unverified run's trace must hold the binding's remote get-url origin (so it was recording), no cat-file, no ls-tree and nothing naming the pinned commit. The verified run's trace must hold cat-file -t <pinned>. Measured: a validator that ATTEMPTS the pinned read on the unverified tree and discards the result PASSES case 8 as it stood at 06651cb and FAILS it at 65565eef, with the trace showing git cat-file -t <pinned>. A validator that SKIPS the binding for a pinned carrier fails case 8 both ways, while all eight earlier pinned-root cases pass under it, which is N5's own observation.

Gate transcripts at 65565eef

$ python3 -m pytest tests/estate_inventory tests/code_surface tests/scope_globs -q      # § 4.1
........................................................................ [ 88%]
.......................................                                  [100%]
327 passed in 24.91s

$ python3 scripts/validate-estate-inventory.py .                                         # § 4.2 (exit 0)
estate inventory: 37 repositories — 26 governed, 10 pinned, 1 external; 1 provisional.
  in-tree evidence (pin, workflow, root, change), re-checked on EVERY run: 8 named, 0 gone.
  gitlink rows: 34 — 0 named in a VERIFIED supplied tree, 0 absent from one, 34 NOT RE-CHECKED (no tree supplied, a tree that does not verify as the carrier the row names, or, for a pinned carrier, a pin naming no commit or a tree that cannot produce that commit's `.gitmodules` locally).
  … (the NOT RE-CHECKED listing: see the full output) …
estate inventory validation passed (every in-tree admission is named by this working tree).

$ python3 scripts/validate-code-surface.py .                                             # § 4.2 (exit 0)
code_surface: 46 active proposals, 46 declaring — 8 `none`, 31 a repository list, 7 named by the register, 0 outside the grammar.
  archive (read, never judged): 183 proposals, 137 declaring, 4 of them outside the grammar.
membership: 31 readable heads naming 8 distinct identifiers — 8 carried by the estate inventory (37 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, 34 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.
membership: 34 inventory rows are NOT RE-CHECKED by this arm — each is admitted by a `gitlink` whose evidence lives in a tree this checkout does not contain. They are counted, neither passed nor failed. `scripts/validate-estate-inventory.py --estate-tree <repo>=<path>` re-checks them against a working tree that VERIFIES as the carrier; this arm takes no tree argument, so its verdict is the same on every machine.
code_surface validation passed (every active declaration's head is admitted, and every identifier it names is carried by the estate inventory).

$ python3 scripts/validate-sequenced-after.py .                                          # (exit 0)
sequenced_after validation passed (46 active changes, 19 declaring the field).
archive-date agreement passed (no archived row's moved_on predates its directory).
archive-date-vs-commit agreement passed (every archived directory is named for the UTC date of the commit that added it, or is dispositioned in place; 13 disposition(s) in force, enforcement error).
the plain run's full output (all 34 NOT RE-CHECKED rows)
estate inventory: 37 repositories — 26 governed, 10 pinned, 1 external; 1 provisional.
  in-tree evidence (pin, workflow, root, change), re-checked on EVERY run: 8 named, 0 gone.
  gitlink rows: 34 — 0 named in a VERIFIED supplied tree, 0 absent from one, 34 NOT RE-CHECKED (no tree supplied, a tree that does not verify as the carrier the row names, or, for a pinned carrier, a pin naming no commit or a tree that cannot produce that commit's `.gitmodules` locally).
estate inventory rows NOT RE-CHECKED (counted, neither passed nor failed):
  - opensoft/openxFactory (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - codeXfactory/codexFactory (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - MedxSoft/MedxFactory (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - ledgerXfactory/LedgerxFactory (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/OpsxFactory (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/AdxFactory (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/MedxChart (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/MedxPractice (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - MedxSoft/MedxEHR (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/HealthLinc (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/openXwallet (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/openDox (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/openXdox (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/openAvatar (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/AgentTower (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/xFactory-Hermes-Install (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/Omnigent-Install (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/OmniWorker-Install (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/CloudPC-Install (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/xFactory-Installer (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/xFactory-MedxRootTruth-Install (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/Keycloak-Install (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/OpenXPKI-Install (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/LedgerxWallet (gitlink in ledgerXfactory/LedgerxFactory): no working tree was supplied for the carrier ledgerXfactory/LedgerxFactory
  - opensoft/openChart (gitlink in opensoft/MedxChart): no working tree was supplied for the carrier opensoft/MedxChart
  - opensoft/openPractice (gitlink in opensoft/MedxPractice): no working tree was supplied for the carrier opensoft/MedxPractice
  - opensoft/MedxAvatar (gitlink in MedxSoft/MedxFactory): no working tree was supplied for the carrier MedxSoft/MedxFactory
  - opensoft/LedgerxAvatar (gitlink in ledgerXfactory/LedgerxFactory): no working tree was supplied for the carrier ledgerXfactory/LedgerxFactory
  - MedxSoft/MedxEHR-spec (gitlink in MedxSoft/MedxEHR): no working tree was supplied for the carrier MedxSoft/MedxEHR
  - MedxSoft/MedxEHR-code (gitlink in MedxSoft/MedxEHR): no working tree was supplied for the carrier MedxSoft/MedxEHR
  - opensoft/openDox-spec (gitlink in opensoft/openDox): no working tree was supplied for the carrier opensoft/openDox
  - opensoft/openDox-code (gitlink in opensoft/openDox): no working tree was supplied for the carrier opensoft/openDox
  - opensoft/openXdox-spec (gitlink in opensoft/openXdox): no working tree was supplied for the carrier opensoft/openXdox
  - opensoft/openXdox-code (gitlink in opensoft/openXdox): no working tree was supplied for the carrier opensoft/openXdox
  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).

doc-health against a main baseline. scripts/doc-health.py --single-repo . --as-of 2026-09-25 was run in two SAME-KIND checkouts, git worktrees of the realization clone at main daca0b89 and at 65565eef. The kinds are matched because a worktree and a full clone do not report identically. Both runs exit 0 and the two reports are byte-identical: Findings: 31 critical, 26 error, 55 warning, 20 info. New regressions vs previous report: 0.. The realization, the tasks.md ticks included, adds, moves and removes no doc-health finding, and no finding names any of the four files.

The full suite. The full suite was run at df453ea5 with python3 -m pytest tests/ -q -m "not postgres" -p no:cacheprovider. Result: 2 failed, 8449 passed, 7 skipped, 338 deselected, 9 warnings, 390 subtests passed in 2577.87s (0:42:57). The usual seven doc-health environmental failures did not recur. Both failures are PRE-EXISTING on main 138a4722, measured by node id in scratch worktrees of the same clone:

  • tests/doc-health/test_tag_hygiene_pinned_targets.py::test_a_lexically_malformed_value_builds_no_path_and_reads_nothing is PATH-DEPENDENT. It asserts that no spied argument contains the substring one, Upper or dotted (line 499), and the realization clone's own directory is clone-1150-realize. On main it FAILS in a worktree whose path contains clone and passes in one whose path does not. At the head it passes in the latter.
  • tests/hermes_runtime_contracts/test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization] fails with subprocess.TimeoutExpired … timed out after 30 seconds on this host. Run ALONE it gives 1 failed in 30.22s on main 138a4722 and 1 failed in 30.23s at c8e70d79. Its --require-candidate twin passes on both.

Since df453ea5 the code has moved by a comment (c8e70d79), one test (978b4d1b) and _git's decoding (a970d6a3). The branch then took main (c230f4c2) and the ticks (65565eef). The required pytest-suite check ran the whole suite GREEN at a970d6a3 (run 36063680480, completed 2026-09-24T22:11:36Z), and it runs again at 65565eef. Locally at 65565eef, the nine test directories that read a tasks.md or reach the estate inventory give 1181 passed, 304 subtests passed, openspec validate admit-code-leg-under-pinned-root --strict is valid, and scripts/validate-openspec-cli-pin.py --all exits 0.

The --estate-tree re-check (§ 4.3)

THE openXdox PIN MOVED WHILE THE PACKET WAS OPEN, AND THE LEGS ARE READ WHERE IT NOW POINTS. #1157 (1edbb3dd) re-pinned openXdox from 2f3f857d to 069fe471, moving contracts/openxdox-pin.yaml's commit: and the openXdox gitlink together. At 069fe471 the root names the same two legs by the same URLs: spec f088b097 is unchanged, and the code leg moved 626f2c8d → e28930bf. openDox is unmoved at dc7aa08f. D0.1 re-measured at this head: both pins still equal openxFactory's own gitlinks. D0.2 re-measured: openDox and openXdox each name a spec and a code leg at their pinned commits, openXwallet (f3eb929b) and openRepoShape (e9c4827b) carry no submodule, and none of the four legs carries a gitlink at the commit its root names. So the one-hop reach is empty.

Over openxFactory's own initialized submodules, which is the packet's named command:

$ python3 scripts/validate-estate-inventory.py . --estate-tree opensoft/openDox=openDox --estate-tree opensoft/openXdox=openXdox      # exit 0
estate inventory: 37 repositories — 26 governed, 10 pinned, 1 external; 1 provisional.
  in-tree evidence (pin, workflow, root, change), re-checked on EVERY run: 8 named, 0 gone.
  gitlink rows: 34 — 4 named in a VERIFIED supplied tree, 0 absent from one, 30 NOT RE-CHECKED (no tree supplied, a tree that does not verify as the carrier the row names, or, for a pinned carrier, a pin naming no commit or a tree that cannot produce that commit's `.gitmodules` locally).
estate inventory: PINNED carriers, each read at the commit its pin names and never at its working files:
  - opensoft/openDox: `contracts/opendox-pin.yaml` names dc7aa08fe48c8d17b596b0daa1ce87cdc0472aca; its `.gitmodules` there names opensoft/openDox-spec, opensoft/openDox-code.
  - opensoft/openXdox: `contracts/openxdox-pin.yaml` names 069fe471f2ef5d23ea4461c0e0abd9f2768b6a31; its `.gitmodules` there names opensoft/openXdox-spec, opensoft/openXdox-code.
  … (the NOT RE-CHECKED listing: see the full output) …
estate inventory validation passed (every in-tree admission is named by this working tree).
full output
estate inventory: 37 repositories — 26 governed, 10 pinned, 1 external; 1 provisional.
  in-tree evidence (pin, workflow, root, change), re-checked on EVERY run: 8 named, 0 gone.
  gitlink rows: 34 — 4 named in a VERIFIED supplied tree, 0 absent from one, 30 NOT RE-CHECKED (no tree supplied, a tree that does not verify as the carrier the row names, or, for a pinned carrier, a pin naming no commit or a tree that cannot produce that commit's `.gitmodules` locally).
estate inventory: PINNED carriers, each read at the commit its pin names and never at its working files:
  - opensoft/openDox: `contracts/opendox-pin.yaml` names dc7aa08fe48c8d17b596b0daa1ce87cdc0472aca; its `.gitmodules` there names opensoft/openDox-spec, opensoft/openDox-code.
  - opensoft/openXdox: `contracts/openxdox-pin.yaml` names 069fe471f2ef5d23ea4461c0e0abd9f2768b6a31; its `.gitmodules` there names opensoft/openXdox-spec, opensoft/openXdox-code.
estate inventory rows NOT RE-CHECKED (counted, neither passed nor failed):
  - opensoft/openxFactory (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - codeXfactory/codexFactory (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - MedxSoft/MedxFactory (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - ledgerXfactory/LedgerxFactory (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/OpsxFactory (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/AdxFactory (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/MedxChart (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/MedxPractice (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - MedxSoft/MedxEHR (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/HealthLinc (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/openXwallet (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/openDox (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/openXdox (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/openAvatar (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/AgentTower (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/xFactory-Hermes-Install (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/Omnigent-Install (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/OmniWorker-Install (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/CloudPC-Install (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/xFactory-Installer (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/xFactory-MedxRootTruth-Install (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/Keycloak-Install (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/OpenXPKI-Install (gitlink in opensoft/xFactory): no working tree was supplied for the carrier opensoft/xFactory
  - opensoft/LedgerxWallet (gitlink in ledgerXfactory/LedgerxFactory): no working tree was supplied for the carrier ledgerXfactory/LedgerxFactory
  - opensoft/openChart (gitlink in opensoft/MedxChart): no working tree was supplied for the carrier opensoft/MedxChart
  - opensoft/openPractice (gitlink in opensoft/MedxPractice): no working tree was supplied for the carrier opensoft/MedxPractice
  - opensoft/MedxAvatar (gitlink in MedxSoft/MedxFactory): no working tree was supplied for the carrier MedxSoft/MedxFactory
  - opensoft/LedgerxAvatar (gitlink in ledgerXfactory/LedgerxFactory): no working tree was supplied for the carrier ledgerXfactory/LedgerxFactory
  - MedxSoft/MedxEHR-spec (gitlink in MedxSoft/MedxEHR): no working tree was supplied for the carrier MedxSoft/MedxEHR
  - MedxSoft/MedxEHR-code (gitlink in MedxSoft/MedxEHR): no working tree was supplied for the carrier MedxSoft/MedxEHR
  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).

With the aggregation carrier supplied as well, from a fresh shallow clone of opensoft/xFactory main (1e72dc7), the result is 27 named (the 23 aggregation rows and the 4 legs), 0 absent, 7 NOT RE-CHECKED (the nested governed carriers, which were not supplied). Exit 0:

estate inventory: 37 repositories — 26 governed, 10 pinned, 1 external; 1 provisional.
  in-tree evidence (pin, workflow, root, change), re-checked on EVERY run: 8 named, 0 gone.
  gitlink rows: 34 — 27 named in a VERIFIED supplied tree, 0 absent from one, 7 NOT RE-CHECKED (no tree supplied, a tree that does not verify as the carrier the row names, or, for a pinned carrier, a pin naming no commit or a tree that cannot produce that commit's `.gitmodules` locally).
estate inventory: PINNED carriers, each read at the commit its pin names and never at its working files:
  - opensoft/openDox: `contracts/opendox-pin.yaml` names dc7aa08fe48c8d17b596b0daa1ce87cdc0472aca; its `.gitmodules` there names opensoft/openDox-spec, opensoft/openDox-code.
  - opensoft/openXdox: `contracts/openxdox-pin.yaml` names 069fe471f2ef5d23ea4461c0e0abd9f2768b6a31; its `.gitmodules` there names opensoft/openXdox-spec, opensoft/openXdox-code.
  … (the NOT RE-CHECKED listing: see the full output) …
estate inventory validation passed (every in-tree admission is named by this working tree).
full output
estate inventory: 37 repositories — 26 governed, 10 pinned, 1 external; 1 provisional.
  in-tree evidence (pin, workflow, root, change), re-checked on EVERY run: 8 named, 0 gone.
  gitlink rows: 34 — 27 named in a VERIFIED supplied tree, 0 absent from one, 7 NOT RE-CHECKED (no tree supplied, a tree that does not verify as the carrier the row names, or, for a pinned carrier, a pin naming no commit or a tree that cannot produce that commit's `.gitmodules` locally).
estate inventory: PINNED carriers, each read at the commit its pin names and never at its working files:
  - opensoft/openDox: `contracts/opendox-pin.yaml` names dc7aa08fe48c8d17b596b0daa1ce87cdc0472aca; its `.gitmodules` there names opensoft/openDox-spec, opensoft/openDox-code.
  - opensoft/openXdox: `contracts/openxdox-pin.yaml` names 069fe471f2ef5d23ea4461c0e0abd9f2768b6a31; its `.gitmodules` there names opensoft/openXdox-spec, opensoft/openXdox-code.
estate inventory rows NOT RE-CHECKED (counted, neither passed nor failed):
  - opensoft/LedgerxWallet (gitlink in ledgerXfactory/LedgerxFactory): no working tree was supplied for the carrier ledgerXfactory/LedgerxFactory
  - opensoft/openChart (gitlink in opensoft/MedxChart): no working tree was supplied for the carrier opensoft/MedxChart
  - opensoft/openPractice (gitlink in opensoft/MedxPractice): no working tree was supplied for the carrier opensoft/MedxPractice
  - opensoft/MedxAvatar (gitlink in MedxSoft/MedxFactory): no working tree was supplied for the carrier MedxSoft/MedxFactory
  - opensoft/LedgerxAvatar (gitlink in ledgerXfactory/LedgerxFactory): no working tree was supplied for the carrier ledgerXfactory/LedgerxFactory
  - MedxSoft/MedxEHR-spec (gitlink in MedxSoft/MedxEHR): no working tree was supplied for the carrier MedxSoft/MedxEHR
  - MedxSoft/MedxEHR-code (gitlink in MedxSoft/MedxEHR): no working tree was supplied for the carrier MedxSoft/MedxEHR
  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).

Disclosed: the SHARED aggregation checkout on this workstation was not a faithful carrier when measured (2026-09-24). Read-only, it sat at a local main 463 commits behind origin/main, carrying 209 local handoff commits, and its working .gitmodules still spells opensoft/codexFactory and opensoft/LedgerxFactory and has no openDox or openXdox entry. Supplied as opensoft/xFactory, it therefore reports those 4 aggregation rows GONE (exit 1) while naming the other 19 and all 4 legs. That is the governed carrier's working-tree read, which is unchanged and correct against a stale tree. The fresh clone above is the measurement.

Disclosed departures from the packet's wording (none normative)

  1. § 3.4's docstring correction. test_a_gitlink_CARRIER_must_resolve_to_a_GOVERNED_row keeps every assertion, since its refused carrier is external and is still refused. Its docstring's clause "or from one it carries as pinned" is corrected, as § 3.4 requires, and the correction says why.
  2. § 3.1 (i) as first filed said "the one-hop bound needs no check of its own", which is false for a leg that also carries a pin of its own (verifier N1 on File admit-code-leg-under-pinned-root: admit a code leg nested under a pinned assembly root to the estate inventory #1156). The packet as landed carries the fold (its A2 head, f9e3d011): the hop IS checked directly. That is what the realization does, and case 4 pins it.
  3. D5 step 3 names git show <commit>:.gitmodules. The read here is cat-file -t, then ls-tree … -- :(literal).gitmodules, then cat-file blob: the same object-store read, but it also refuses a pin whose oid is not a commit, and a .gitmodules that is a symlink or not a blob. It runs through the same sanitized, time-bounded _git.
  4. GIT_NO_LAZY_FETCH is a build-dependent extra, not the guard. The packet as filed recorded it as ignored by git 2.43.0. Its A2 head (f9e3d011, on File admit-code-leg-under-pinned-root: admit a code leg nested under a pinned assembly root to the estate inventory #1156; the verifier's N2) corrects that: on the Ubuntu 1:2.43.0-1ubuntu7.3 build it ALSO refuses the fetch (exit 128, "lazy fetching disabled", the blob still absent), but whether a git honours it depends on the build, so GIT_ALLOW_PROTOCOL=none is the guard relied on. The _NO_TRANSPORT comment says exactly that (c8e70d79). Case 6 proves that the allow-list ALONE holds, with GIT_NO_LAZY_FETCH removed, in a blob:none clone whose promisor remote stays reachable.
  5. History. a80072a pinned the tests first. d208f13 merges main 138a4722. 06651cb is the arm: a checkpoint titled "WIP" ahead of an account swap, kept because pushed history is never rewritten. df453ea is the N5 tidy-up (test file only). c8e70d7 folds the verifier's phase-2 nit (the _NO_TRANSPORT comment, comment only). 978b4d1 then a970d6a answer Copilot's review, test first (item 6). c230f4c merges main daca0b89, the landed packet. 65565ee ticks § 3.1–3.4. No commit message carries a closing keyword; openxFactory Estate inventory: admit a code leg nested under a pinned assembly root #1150 closes at the ARCHIVE, per the packet's § 5.3.
  6. Copilot's review at c8e70d79 opened no threads. Its overview flagged one item: the object-store read decoded git's output by the locale (text=True), while the working-tree read of the same file decodes UTF-8. Measured under an ASCII locale, a pinned commit whose .gitmodules names its submodule in UTF-8 left the leg NOT RE-CHECKED, with the report saying the store "cannot produce the .gitmodules blob", which is false. 978b4d1 pins the read (case 9 above, failing at c8e70d79), and a970d6a makes _git decode UTF-8 strictly. In a UTF-8 locale nothing moves. Copilot's review at a970d6a3: "Findings: None", no threads.

Landing word

Brett Heap, 2026-09-25 approximately 13:40Z, in the lane's terminal to lane openXfactory-5, verbatim: "land #1163 when the verifier clears it" (RULED against #1163 in opensoft/brett-wip lanes/log/openXfactory-5.md). The lane's independent verifier cleared head 65565ee at approximately 14:50Z: LAND, B-list empty (verify-1156-report.md, Phase 2: 15/15 check-runs success, pytest-suite 36141345097 failures=0, 0 unresolved threads, closing-keyword rescan rc=1 over body, title and all 9 commits, trial merge onto main c415c3d clean). Previously this section read that the pull request waited only for that word; #1156 landed at daca0b8 on 2026-09-25T13:21:58Z. Landed by lane openXfactory-5 under Rule 6.

🤖 Generated with Claude Code

brettheap and others added 5 commits September 24, 2026 18:26
…ling against the unwidened judge

The realization's tests, pinned BEFORE the arm they judge, on the packet's
own fails-then-passes obligation (tasks.md § 3.4). One case per new scenario
class of the `## MODIFIED` block over *The estate's repositories are
enumerated in a governed inventory*:

- a leg row carried by a pin-admitted `pinned` root LOADS (and an
  `external` leg too: the class bound refuses `governed` only, D4);
- a `pinned` carrier admitted by NO pin, and one admitted by TWO, are
  REFUSED naming the row, the carrier and the condition;
- a leg declaring `governance: governed` is REFUSED;
- a row carried by a leg is REFUSED, one hop and no further, including a
  leg that also carries a pin of its own;
- a verified tree whose PINNED commit names the leg is NAMED while its HEAD
  and working `.gitmodules` do not, and the reverse is a FINDING;
- a `blob:none` clone with a REACHABLE promisor is NOT RE-CHECKED and the
  blob is STILL ABSENT afterwards (design.md D0.6 as a test), the transport
  refusal alone holding it;
- a carrier pin naming no commit, or one the tree never fetched, leaves the
  leg NOT RE-CHECKED;
- the live file carries the four legs, and nothing pins or mounts one.

Every refusal case asserts the CONDITION it names and loads the lawful shape
beside it, because the unwidened loader refuses every pinned carrier and a
bare "it raises" would pass against it.

`test_a_gitlink_CARRIER_must_resolve_to_a_GOVERNED_row` keeps every
assertion; its docstring's clause "or from one it carries as `pinned`" is
corrected here, the widened bound making it false as written.

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in the openXdox pin 2f3f857d -> 069fe471 with its gitlink (#1157)
and the openXdox pin resync runbook (#1154). Neither touches the four files
this realization edits; the openXdox leg re-check is measured at the commit
the pin NOW names.

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… and green locally; gates partial; no PR)

Checkpoint commit on the coordinator's word ahead of an account swap. What
this commit holds, and what it does not:

DONE
- scripts/estate_inventory.py (§ 3.1 i-iv): the widened carrier bound
  (`_pinned_carrier_refusal`: external, no pin, two pins, ONE HOP checked
  directly, the class bound), `pinned_commit` (the carrier's one pin read
  through the strict loader, `revision_kind: commit` and 40 hex, a value or a
  reason, never raised), `gitmodules_addresses_at` / `_gitmodules_at`
  (`cat-file -t`, `ls-tree --full-tree -- :(literal).gitmodules`, a regular
  file only, `cat-file blob`), `carrier_members`, and `GIT_ALLOW_PROTOCOL=none`
  with `GIT_NO_LAZY_FETCH=1` in `_sanitized_git_environment` for every git call.
- scripts/validate-estate-inventory.py (§ 3.2): `--estate-tree` reads a pinned
  carrier at its pinned commit through `carrier_members`; NOT RE-CHECKED names
  the pin and the commit; a PINNED-carriers report block; the governed read and
  its report strings unchanged.
- scripts/estate-repository-inventory.yaml (§ 3.3): rows 34-37, the four legs,
  each `pinned` and admitted by one gitlink in its root; the header's gitlink
  definition, re-check paragraph and population note re-measured by six
  commands.
- tests/estate_inventory/test_estate_inventory.py (§ 3.4): a ninth case (a
  pinned carrier's tree that does not verify is NOT RE-CHECKED though it holds
  the pinned commit) and a section note naming whose design.md is cited.

VERIFIED LOCALLY ON THIS TREE
- tests/estate_inventory, tests/code_surface, tests/scope_globs: 326 passed.
- the nine pinned-root cases fail against main 138a472's scripts/ (9 failed,
  64 passed) and pass here.
- validate-estate-inventory.py . exit 0 (37 rows, 34 NOT RE-CHECKED); with
  --estate-tree opensoft/openDox=openDox --estate-tree opensoft/openXdox=openXdox
  exit 0, all four legs named at dc7aa08f and 069fe471.
- validate-code-surface.py . exit 0; validate-sequenced-after.py . exit 0;
  doc-health.py --single-repo . exit 0, no finding names these four files.

NOT DONE
- the full pytest suite (not started);
- the doc-health comparison against a main baseline;
- the DRAFT pull request, its check-runs and Copilot's review.

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ed commit

The ninth pinned-root case asserted only that the pinned commit is absent
from the report, which a realization reading the impostor's object store and
printing nothing would also pass (the verifier's N5 on the packet, #1156:
"the pinned-commit read must not be attempted"). The validator's own git
calls are now traced (`GIT_TRACE`, which the module's sanitized environment
passes through): the unverified run's trace holds the binding's reads and no
object read at all, and the verified run's trace holds `cat-file -t` of
exactly the pinned commit, so the trace cannot pass by recording nothing.

Measured in a scratch worktree at 06651cb: a validator that ATTEMPTS the
pinned read on the unverified tree and discards the result passes the case
as it stood and fails it now; one that SKIPS the binding for a pinned
carrier fails both, while all eight earlier pinned-root cases pass under it.
Test file only; no script moves.

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…build-dependent extra

The `_NO_TRANSPORT` comment still carried the old reading of the packet's
D0.6, "a 2.43.0 that fetched anyway". The packet's A2 head (f9e3d01, on
#1156) corrects it: on the Ubuntu 1:2.43.0-1ubuntu7.3 build of git,
GIT_NO_LAZY_FETCH=1 ALSO refuses the fetch (exit 128, "lazy fetching
disabled", the blob still absent), but whether a git honours it is
build-dependent, so GIT_ALLOW_PROTOCOL=none is the guard relied on. The
comment now says exactly that. Comment only; no behaviour moves.

Refs #1150

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

sourcery-ai Bot commented Sep 24, 2026

Copy link
Copy Markdown

Reviewer's Guide

The PR realizes pinned assembly-root gitlink support across the loader, validator, inventory, and tests: pinned roots are admitted exactly once, their .gitmodules evidence is read at the pinned commit from the supplied tree’s local object store with network access disabled, and the two roots contribute four one-hop pinned legs.

State diagram for pinned carrier validation

stateDiagram-v2
    [*] --> VerifyTree
    VerifyTree --> NotRechecked: carrier_identity fails
    VerifyTree --> ReadPin: carrier_identity succeeds
    ReadPin --> NotRechecked: no commit or invalid pin
    ReadPin --> ReadCommit: exactly one valid commit pin
    ReadCommit --> NotRechecked: object unavailable locally
    ReadCommit --> CheckGitmodules: commit and .gitmodules blob available
    CheckGitmodules --> Named: gitlink present at pinned commit
    CheckGitmodules --> Gone: gitlink absent at pinned commit
    NotRechecked --> [*]
    Named --> [*]
    Gone --> [*]
Loading

File-Level Changes

Change Details Files
Widen gitlink admission to support pinned assembly roots while enforcing exact pin ownership, governance, and one-hop reachability constraints.
  • Allow a gitlink carrier when its carrier row is pinned and admitted by exactly one pin.
  • Reject external carriers, unpinned or multiply pinned carriers, governed legs, and nested leg carriers with explicit diagnostics.
  • Add pinned-commit and carrier-member data models and preserve the existing governed-carrier path.
scripts/estate_inventory.py
scripts/estate-repository-inventory.yaml
Re-check pinned-root gitlinks against the pinned commit using only locally available object-store data.
  • Parse and validate exactly 40-hex commit pins through the strict loader and verify the pin still names the carrier.
  • Read root-level .gitmodules via cat-file and ls-tree at the pinned commit, rejecting non-regular files and avoiding working-tree reads.
  • Disable all Git transports and lazy fetching, reporting unavailable objects as NOT RE-CHECKED rather than fetching or failing the run.
scripts/estate_inventory.py
scripts/validate-estate-inventory.py
Add the four pinned assembly-root legs to the live estate inventory and update its evidence documentation.
  • Add openDox and openXdox spec/code legs as pinned rows admitted by their respective root gitlinks.
  • Document pinned-commit evidence, one-hop semantics, and the expanded six-site population measurement.
scripts/estate-repository-inventory.yaml
Cover the new admission and verification rules with focused scenario and integration tests.
  • Add nine fails-then-passes cases covering lawful pinned roots, pin cardinality, governance and hop refusals, commit-bound reads, blobless clones, failed identity verification, and the live four-leg inventory.
  • Assert that unverified trees do not trigger pinned-commit reads and that transport refusal prevents promisor fetching.
tests/estate_inventory/test_estate_inventory.py

Tips and commands

Interacting with Sourcery

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

Customizing Your Experience

Access your dashboard to:

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

Getting Help

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

The object-store Git read needs explicit strict UTF-8 decoding to avoid rejecting valid non-ASCII .gitmodules content.

Review effort: Lite
Findings: None

What changed in this PR

Adds one-hop gitlink support under exactly-once-pinned roots, with offline pinned-commit validation and expanded inventory coverage.

Changes:

  • Validates pinned carriers and one-hop boundaries.
  • Reads .gitmodules from pinned commits without network access.
  • Adds four pinned leg entries and comprehensive tests.
File Description
tests/​estate_inventory/​test_estate_inventory.py Tests admission, rechecking, isolation, and edge cases.
scripts/​validate-estate-inventory.py Validates and reports pinned-root membership.
scripts/​estate-repository-inventory.yaml Documents and records four new legs.
scripts/​estate_inventory.py Implements pinned carrier validation and commit-based Git reads. Moderate finding: object-store reads should explicitly use strict UTF-8 decoding.

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

brettheap and others added 2 commits September 24, 2026 21:47
…cale

Copilot's review of #1163 at c8e70d7 flagged the object-store read as
decoding git's output by the locale, while the working-tree read of the same
file decodes UTF-8. Measured: under an ASCII locale (LC_ALL=C, with locale
coercion and Python's UTF-8 mode off), a pinned commit whose .gitmodules
names its submodule in UTF-8 leaves the leg NOT RE-CHECKED, the report
saying the store "cannot produce the .gitmodules blob", which is false.
This case pins the read and asserts its ASCII-locale precondition rather
than assuming it; it fails against c8e70d7's _git.

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
`_git` decoded by the locale (text=True), so the pinned-commit read of a
non-ASCII .gitmodules failed under a non-UTF-8 locale and reported a store
that "cannot produce" the blob. It now decodes UTF-8 strictly, as the
working-tree read of the same file does; output that is not UTF-8 is still
a failure and so a None. In a UTF-8 locale nothing moves. The case pinned
beside it now passes.

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings September 24, 2026 21:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

The changes span inventory semantics, Git object-store reads, validation ordering, and live repository metadata; human review is warranted.

Review effort: Lite
Findings: None

Brings in the packet this pull request realizes, now landed by squash as
daca0b8 (#1156, ratified): openspec/changes/admit-code-leg-under-pinned-root/.
Also brings in the refresh lane's validator seal (#1162, 57af692). Neither
touches the four files this realization edits.

Refs #1150

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Fix the test fixture’s protocol environment handling before approval.

Review effort: Lite
Findings: None

…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]>
Copilot AI review requested due to automatic review settings September 25, 2026 13:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Reconcile or remove the OpenSpec task update, which conflicts with the declared four-file scope.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Low severity

Open (1)

@sonarqubecloud

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 3 days and 6 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-5 (openXfactory-5)

LANDING — lane openXfactory-5, session b254fdd5-0bdf-44e0-bb45-5a780234009f@Eagle, 2026-09-25T14:47:32Z, PR #1163 into opensoft/openxFactory main

@brettheap
brettheap merged commit 1c6662e into main Sep 25, 2026
17 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-5 (openXfactory-5)

LANDED — lane openXfactory-5, session b254fdd5-0bdf-44e0-bb45-5a780234009f@Eagle, 2026-09-25T14:47:51Z, PR #1163 into opensoft/openxFactory main → merge 1c6662e; Realize admit-code-leg-under-pinned-root § 3: the widened gitlink carrier, its pinned-commit re-check, and the four legs

brettheap added a commit that referenced this pull request Sep 26, 2026
…1a (T003, T005, T006) (#1167)

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

## What this is

Phase 1's gate for plan 034 (#1155 → `c415c3d1`): **T003, T005 and T006**, as
one bookkeeping PR. Their evidence is under
`specs/034-opendox-standalone-operation/evidence/`, and the re-plans they
cause are in the feature's own files.

- It adds no code, moves no pin, and touches no `openspec/` path: `git diff
  --stat c415c3d -- openspec/` is empty. No file of #1144 changes.
- Besides the feature directory, it changes one line: the feature's entry in
  the README's Documentation index, which now links the three evidence notes.
  That entry sits outside the OpenSpec Records block, so the PR needs no Rule 6
  window.
- It is bookkeeping, so none of its five commits carries an `Arc:` trailer
  (R1Q20 (a), `5817152735`).

The holder lands it, on Brett Heap's word as the holder relays it: *"land
#1155 when green and fan out phase 1"*.

## T003: ARC_BASE (`evidence/arc-base.md`)

No repository holds an arc landing yet, so each base is that repository's
`main` at 13:34:54Z. All seven were read again at 14:02:10Z, with the same
answers.

| repository | ARC_BASE |
|---|---|
| openDox-code | `1e4a57fb3c550339e25bb2fcc8da8e3a7817650f` |
| openXdox-code | `e28930bf052febff0c7bdd0463a72ce3c4f5e8fe` |
| openDox | `36ded1cd97ca8f23b0eb9ea03d1d9def79a40d3c` |
| openXdox | `069fe471f2ef5d23ea4461c0e0abd9f2768b6a31` |
| openxFactory | `c415c3d16663a8b17da5ae4f5e599f0971bf552f` |
| openDox-spec | `8fe8c4c71c4da8d363394441ad9e2c9547e540a3` |
| openXdox-spec | `f088b09732e236279898b53ab9fb0f5ebc89509a` |

The trailer count is 0 in every repository, on the first-parent line and over
all history. `PACKET_MERGE` is `94b6f7f13b45c351b9142345738965c974b7dd37`
(#1144), which lies on openxFactory `main`'s first-parent line.

## T005: the re-measure (`evidence/remeasure-2026-09-25.md`)

Research R1–R15 were re-run at the then-current `main`s, and openXdox-code's
WHOLE suite was run for the first time. openDox-code, the openDox root and both
spec legs are unchanged, and so is every figure the openDox-code slices use.
R10, R11, R12 and R13 moved.

- **`tests/test_snapshot.py` after C3.** One of research R11's three failures
  cleared. The other two still fail, because C3's validator reaches its
  schemas only through `CONTRACTS_DIR`. So T061's contingency applies, and 7.3
  moves into phase 1.
- **5.4a's glob now selects seven suites.** C3's
  `test_snapshot_validator_home.py` is one of them, which R1Q14's answer has to
  take into account.
- **The whole suite** (Group 2 simulated, `rfc3339-validator` installed) has
  292 red results. A classifier puts each in one of eleven classes. Six are
  carve residue, which T040 clears (four of them new to it). Two reach
  openxFactory without `doc_health`, and they became **R1Q24**.
- **T019** is a new holder round that applies those answers before T061 or
  T043 starts.

## T006: analyze round 1a (`evidence/analyze-round-1a.md`)

The prerequisite check ran in a fresh clone. Without `SPECIFY_FEATURE_DIRECTORY`
it refuses (exit 1). With it, it prints this feature's `FEATURE_DIR` (exit 0).
`/speckit-analyze` ran twice: once by the author, and once by an independent
read-only verifier over a copy of the same commit. A second verifier then
re-ran it over `5192201c`, the commit that carried the first dispositions, and
checked that each was carried.

**CRITICAL: 0, in both passes.**

- The first pass found 7 HIGH, 20 MEDIUM and 8 LOW findings. The second
  commit carries their fixes.
- The second pass found 2 HIGH, 1 MEDIUM and 12 LOW (V1–V15). Copilot's first
  review found 1 MEDIUM (CP1), and the author 1 LOW (U5). The third commit
  carries their fixes, and the fourth corrects V2's third caller against a
  measurement (below).
- Copilot's review of `88a43004` found 2 MEDIUM. The fifth commit carries
  their fixes.
  - CP2: the plan checks read `T007 (batches C and F)` as all of T007, so a
    batch-level cycle could hide in prose. T007's `After` is now given by
    batch, and the checks read each batch as its own node.
  - CP3: the spec's acceptance lines now carry R1Q25's possible exclusion of
    `tests/test_snapshot.py`, without answering it.

Each finding is dispositioned in the note. The ones that change the phase-1
fan-out:

- **Four falsifiers could not pass at their own task's landing**: T015's
  F3.1, T020's F4.1 block and named test, T035's F9.1, and T041's F9.1. Each
  moves to the task that makes it reachable, and each of the four gets a
  falsifier it can pass.
- **Until T011 lands, `opendox.serve` and `opendox.cli` do not import** in a
  lone checkout, and any run with the root conftest in play fails.
  - Tests that can land earlier import neither module, and their PRs quote a
    `--noconftest` run.
  - T010's test drives the facet in `src/route_extension.py`, and T011 adds a
    `build_server` case.
  - No slice edits openDox-code's `validate.yml` before T036.
- **T015 carries `RuntimeSubcommand`** from its first landing, so main never
  builds an empty default between T016 and T038.
- **T025 lists the scope the host registers.** At `c415c3d1`, the host's
  adapter lists 794 documents under `all`, and exactly the session notebook's
  398 under `documents`. Listing `all` would have changed the hosted set.
- **T011's PR moves `opendox.cli` and `opendox.serve` into
  `tests/test_consumer_reach.py`'s `NEUTRAL_MODULES`** (V1). openDox-code's
  required `validate` job runs that file by name, and the file fails as soon
  as the two modules import. T034 re-derives the rest of it.
- **T021 waits on T011** (V7), because its named test runs with the root
  conftest in play.

The ones that change phase 1's openXdox-code tail and its close:

- **R1Q25 (new).** 7.3's move into phase 1 departs from #1144's RULED release
  map, which puts Group 7 in phase 2. So R1Q25 puts the move to Brett.
  - It recommends (b): 7.3 stays in phase 2 (V2). Narrowing the consumer's
    validator to its three schemas reaches phase-1 callers that validate
    other kinds through it. Two do today: openxFactory's
    `doxbench_contracts.delegated_semantic_validation`, and the conftest
    helper `test_lens.py` uses. The third, openDox-code's `workbench.py:442`,
    gets no validator today, because `find_validator` answers `None` from a
    start outside the product (measured at openXdox-code `e28930bf`). It
    would get the narrowed one once T061's lookup resolves the installed
    distribution. openDox's own validator arrives in phase 2.
  - R1Q25 blocks T043 as well as T019 and T061 (U5), since under (b) T043's
    exclusion declares `tests/test_snapshot.py`.
  - Under (b), T019 restores T061 to phase 2 and F7.1 to T063 (CP1).
- **R1Q12 no longer holds T061.** T061 packages the three schemas where they
  stand. R1Q24 now holds T061, because F7.1's second named test goes into a
  contract-family file.
- **openxFactory's nightly and refresh lanes read the lookup T061 changes.**
  None of their files is an 11.1 surface. R1Q14's text and T019 now weigh
  that.
- **T007 gains two batches.** Batch E adds composition tests before T047, and
  batch F carries T019's amendments before T061 and T043. Batch B amends 9.2
  too.

## Files

| file | change |
|---|---|
| `evidence/arc-base.md` | new (T003) |
| `evidence/remeasure-2026-09-25.md` | new (T005), with the classifier in full |
| `evidence/analyze-round-1a.md` | new (T006), with both passes |
| `tasks.md` | T003, T005 and T006 ticked; T019; T061 in phase 1; the dispositions |
| `plan.md`, `spec.md`, `clarify-questions.md`, `research.md`, `checklists/requirements.md` | the re-plan and the dispositions; R1Q24 and R1Q25 |
| `README.md` | the feature's index entry links the evidence |

## Checks run on the head

- `OPENSPEC_TELEMETRY=0 openspec validate --all --strict`: `111 passed, 1
  failed (112 items)`. The failure is `add-chain-attestation`, an accepted
  disposition, and `scripts/validate-openspec-cli-pin.py --all` prints
  `0 UNDISPOSITIONED failures`.
- `scripts/validate-document-catalog.py` and
  `scripts/validate-pin-registrations.py` pass.
- The plan-consistency tools pass:
  - 0 question-header mismatches;
  - no cycle in the `After:` graph, and none with the Lands-with groups
    merged (88 tasks; 94 nodes, since T007's six batches are nodes of their
    own; 186 edges);
  - 0 arrow mismatches of 54, now including the two that break across a
    line;
  - every task comes before its phase's checkpoint;
  - 0 single-writer chain gaps (25 pairs DIRECT, 2 transitive).
- The added lines hold no host-absolute path and no closing keyword.
- `main` has gained only #1163 since `c415c3d1`. It touches none of this PR's
  paths, and the branch merges cleanly.

## Persisted tools

T005's classifier, `classify_whole_suite.py`, and the updated plan-consistency
checks (`qmap.py` to R1Q25, and the widened chains in `chaincheck.py` and
`chaindirect.py`) are persisted to the lane's workspace repository,
`opensoft/brett-wip`, in its lane-4 tool directory. They landed at `c3c69e9c`.
`2ed71007` widened `qmap.py` to R1Q25, and `805c6688` added
`tests/test_consumer_reach.py`'s chain (T011 → T034) for the second pass.
`8874a361` gave the six checks one batch-aware parser, `aftergraph.py` (CP2).

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


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 26, 2026
…o the direct hop rule (R1) (#1165)

Amends admit-code-leg-under-pinned-root's one-hop parenthetical to the direct hop rule on Brett Heap's word of 2026-09-26, verbatim "(a) recommended, land #1165 when green", ruling R1 of the lane's verifier on its recommended path: a pinned row that is not itself admitted by a pin, and every row a pinned root's gitlink admits whether or not it also carries a pin of its own, SHALL carry no row's gitlink, so the reach ends one hop from an openxFactory pin. One sentence in the packet's spec delta plus a non-normative amendment record in proposal.md; the ratified packet (daca0b8, #1156) and its realization (1c6662e, #1163), which already enforces the strict reading, are otherwise unchanged. Refs #1150. The section 5 archive follows on its own word.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 27, 2026
…d of 2026-09-27

On Brett Heap's archive word, verbatim "archive it when the draft is up"
(2026-09-27, approximately 00:32Z, in the lane's terminal to lane
openXfactory-5, session b254fdd5; RULED in opensoft/brett-wip
lanes/log/openXfactory-5.md at 2026-09-27T00:32:46Z against #1150,
brett-wip commit 7bbff3ab).

tasks.md § 5.1 records the merged-plus-green realization evidence the
non-empty code_surface requires, each leg cited: the packet #1156 ->
daca0b8, the realization #1163 -> 1c6662e (squash from 65565ee), the R1
amendment #1165 -> b5ec389, and pytest-suite SUCCESS on main at 1c6662e
itself (run 36149875028) and at b5ec389 (run 36274413446), with the
ancestry chain checked by git merge-base --is-ancestor.

§ 5.2 is ticked BEFORE the run because the governed wrapper refuses an open
box ("change has incomplete tasks"); the promotion itself is the wrapper's
act in the next commit, which moves this directory and records the
wrapper's decisive lines and the two-sided hash under § 5.2.

§ 5.3 records that the one keyword that shuts #1150 is placed in the
archive pull request's body and in no commit message, scanned: 0 matches
over this branch, over the 18 commits of #1156, #1163, #1165 and #1168,
and over their squash commits.

§ 5's heading records the word. §§ 1-4 and § 6 are untouched; § 6's six
- [~] boxes stay - [~].

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 27, 2026
… carrier onto release-realization

On Brett Heap's archive word, verbatim "archive it when the draft is up"
(2026-09-27, approximately 00:32Z, in the lane's terminal to lane
openXfactory-5, session b254fdd5; RULED in opensoft/brett-wip
lanes/log/openXfactory-5.md at 2026-09-27T00:32:46Z against #1150,
brett-wip commit 7bbff3ab). code_surface is non-empty, so under
release-realization the packet archives on merged-plus-green realization
evidence, which is in hand: the packet landed as #1156 -> daca0b8 and its
R1 amendment as #1165 -> b5ec389; the realization landed as #1163 ->
1c6662e (squash from 65565ee); and pytest-suite decided SUCCESS on main
at 1c6662e itself, run 36149875028, and at b5ec389, run 36274413446
(https://github.com/opensoft/openxFactory/actions/runs/36149875028).

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

    TZ=UTC python3 scripts/proposal-support.py . archive \
        admit-code-leg-under-pinned-root --yes

exit 0: "ORIGIN RETAINED admit-code-leg-under-pinned-root (declaration
unchanged since the ratifying commit daca0b8)", "Totals: 1 passed, 0
failed (1 items)", "Task status: Complete", "Applying changes to
openspec/specs/release-realization/spec.md: ~ 1 modified", "Totals: + 0,
~ 1, - 0, -> 0", "Change 'admit-code-leg-under-pinned-root' archived as
'2026-09-27-admit-code-leg-under-pinned-root'", "NO SUPPORTING DOCS ...
(origin retained, nothing to package)", over the content-addressed
@fission-ai/[email protected] pin and not the 1.13.1 on PATH. THE DATE IS
THE WRAPPER'S CLOCK RULE AND NOT A CHOICE: --date was not passed, so the
wrapper took utc_today() (datetime.now(timezone.utc)), 2026-09-27, ran the
pinned CLI (which has no date option) under TZ=UTC, and asserted after the
run that the directory the CLI named carries that date. The run started
at 2026-09-27T00:42:19Z; this commit is the directory's adding commit and
carries the same UTC day, which is what archive-date-vs-commit measures.

ORIGIN RETAINED WITH NO RECORD OWED: the origin block has not moved since
the ratifying commit daca0b8 (the only commit that ever touched
.openspec.yaml), so openspec/origin-dispositions.yaml is not edited.

THE PROMOTION IS THE DELTA AS WRITTEN, measured on both sides: the block
extracted by its heading from the archived delta and from canon, and
hashed. release-realization is the only capability the delta touches. The
MODIFIED block "The estate's repositories are enumerated in a governed
inventory" was 12,297 bytes / 160 lines / 8 scenarios in canon (sha256
3020c2c916df22bb...) and is now 19,044 bytes / 230 lines / 11 scenarios,
sha256 0bbd1aa2d631e8cf... on BOTH the archived delta and canon. It carries
the R1 amendment's direct hop sentence (#1165) and not the pre-amendment
parenthetical, which appears nowhere in canon. Requirements 21 -> 21,
scenarios 122 -> 125; canon's preamble and the other twenty requirement
blocks are raw byte-identical, hashed one by one, every hunk lying inside
the promoted block; --numstat +71 -1, and -w the same. The CLI diverged
from the delta nowhere.

The five packet files move as R100 pure renames. Also in this commit: the
README OpenSpec Records bullet moves from Active to the head of Archived,
its pull-request link the ARCHIVE-PR-NUMBER-PENDING marker that a later
commit replaces once the pull request exists. No modified-block-currency
_LEDGER_SUBJECTS row names this block, so no self-gate row retires. The
record of this run under tasks.md § 5.2 follows in the next commit, so
this one carries exactly the wrapper's moves plus the README record.

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

Refs #1150
Refs #1156
Refs #1163
Refs #1165
Refs #1168

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 27, 2026
… carrier onto release-realization (#1174)

Archives admit-code-leg-under-pinned-root on Brett Heap's word of 2026-09-27, verbatim "archive it when the draft is up": the ratified packet (daca0b8, #1156) with its section 3 realization merged and green (1c6662e, #1163) and the R1 amendment (b5ec389, #1165) is promoted onto release-realization through the governed archive wrapper, carrying the section 3.5 and 4 evidence ticks (#1168) and the section 5 ticks; the estate inventory's gitlink admission now reaches a code leg nested under a pinned assembly root, one hop, re-checked at the pinned commit with every transport refused. Refs #1156, #1163, #1165, #1168.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 27, 2026
…s missing or unreadable (#1169)

Names the real reason in the pinned-carriers summary of scripts/validate-estate-inventory.py when a pin file is missing or unreadable (the verifier's P-2 nit on the admit-code-leg-under-pinned-root realization), test-first, on Brett Heap's word of 2026-09-27, verbatim "land #1169 and #528 when green". One branch of the summary line now prints the reason pinned_commit already returns; the per-row line and every other report string are byte-identical. Refs #1150, #1163.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@brettheap
brettheap deleted the realize/1150-pinned-root-code-leg branch September 27, 2026 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants