Repository navigation
Realize admit-code-leg-under-pinned-root § 3: the widened gitlink carrier, its pinned-commit re-check, and the four legs - #1163
Conversation
…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]>
Reviewer's GuideThe 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 validationstateDiagram-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 --> [*]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
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
.gitmodulesfrom 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.
…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]>
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]>
…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]>
|
There was a problem hiding this comment.
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.
|
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 |
|
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 |
…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]>
…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]>
…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]>
… 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]>
… 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]>
…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]>




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## MODIFIEDblock over The estate's repositories are enumerated in a governed inventory. It landed by squash asdaca0b89on 2026-09-25 at 13:21:58Z, ratified, and is merged into this branch atc230f4c2(a merge, never a rebase). On the #1119 precedent (2858747b, atasks.md-only commit inside that realization pull request after its packet had landed),65565eefticks the packet's § 3.1–3.4, each cited by its commits and by the evidence atc230f4c2. § 3.5 and § 4 are left for the lane, and nothing else underopenspec/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
gitlinkmay now be carried by apinnedASSEMBLY ROOT that openxFactory pins EXACTLY ONCE, with the root's.gitmodulesread 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 againstmainis exactly the four files the packet'scode_surface:names. The fifth path below is the packet's owntasks.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 underopenspec/are untouched:scripts/estate_inventory.pyload_inventorystill admits agovernedcarrier exactly as before. Any other carrier goes through_pinned_carrier_refusal, which refuses the file BY NAME (row, carrier, condition) in five cases: anexternalcarrier; a carrier that is itself a leg (ONE HOP, checked directly and first, see N1 below); apinnedcarrier admitted by NOpin; one admitted by two or more; and a leg that declaresgovernance: governed(the class bound). § 3.1 (iii).pinned_commitreads the carrier's one pin from THIS checkout through the strict loader. It returnsrevision_kind: commitand 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_atread.gitmodulesat that commit out of the supplied tree's OWN object store, never its working files. They checkcat-file -t(it must be a commit), thenls-tree -z --full-tree <c> -- :(literal).gitmodules(a regular-file blob only), thencat-file blob. They return()when the commit carries no.gitmodules, andNoneplus a reason when the store cannot produce it locally._sanitized_git_environmentnow gives EVERY git callGIT_ALLOW_PROTOCOL=none, so every transport is refused, withGIT_NO_LAZY_FETCH=1beside it.carrier_membersreads 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_gitnow decodes git's output as UTF-8, strictly, never by the locale, as the working-tree read already did.scripts/validate-estate-inventory.py--estate-treeverifies every supplied tree EXACTLY as before (carrier_identity, the "Bind the carrier identity" ruling), and only then reads it throughcarrier_members. For a pinned carrier, a pin naming no commit, or a tree that cannot produce the commit's.gitmoduleslocally, 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.gitmodulesAT , 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.yamlopensoft/openDox-spec,opensoft/openDox-code,opensoft/openXdox-spec,opensoft/openXdox-code), eachgovernance: pinnedand admitted by ONEgitlinkin its root. The header'sgitlinkdefinition 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-admittedpinnedrow's.gitmodulesat the commit its pin names.tests/estate_inventory/test_estate_inventory.pyFails-then-passes (§ 3.4, re-derived at the head)
This is the test file at
65565eef(unchanged since978b4d1b) run againstmaindaca0b89'sscripts/(treeaf17b0f2) in a scratch worktree: 10 failed, 64 passed, the same ten as against138a4722before main moved. The same file at65565eefgives 74 passed. Each case fails on the condition it asserts, never on a bare "it raises", because the unwidened loader refuses EVERY pinned carrier.main'sscripts/65565eeftest_a_code_leg_carried_by_a_PIN_ADMITTED_PINNED_root_LOADSestate_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 …test_a_PINNED_carrier_admitted_by_NO_pin_or_by_TWO_is_REFUSEDAssertionError: assert 'admitted by NO `pin`' in 'row 2 (opensoft/openDox-code) … THE KIND SAYS GOVERNED …'test_a_leg_declaring_governance_GOVERNED_is_REFUSEDAssertionError: assert 'SHALL NOT DECLARE `governance: governed`' in 'row 2 (opensoft/openDox-code) …'test_a_row_carried_by_a_LEG_is_REFUSED_one_hop_and_no_furtherAssertionError: assert ('(opensoft/openDox-code-vendored)' in 'row 2 (opensoft/openDox-code) …')test_a_pinned_roots_gitlink_is_rechecked_AT_ITS_PINNED_COMMIT_and_never_its_working_filesAssertionError: estate inventory validation CANNOT RUN: … assert 2 == 0test_a_BLOBLESS_clone_missing_the_pinned_gitmodules_is_NOT_RECHECKED_and_fetches_NOTHINGAssertionError: estate inventory validation CANNOT RUN: … assert 2 == 0test_a_carrier_pin_naming_NO_COMMIT_or_one_the_tree_LACKS_leaves_the_leg_NOT_RECHECKEDAssertionError: ('<pinned>', 'estate inventory validation CANNOT RUN: …') assert 2 == 0test_a_pinned_carriers_tree_that_does_NOT_VERIFY_is_NOT_RECHECKEDAssertionError: estate inventory validation CANNOT RUN: … assert 2 == 0test_a_pinned_roots_gitmodules_is_read_as_UTF8_whatever_the_localeAssertionError: estate inventory validation CANNOT RUN: … assert 2 == 0. Againstc8e70d79's_gitit also failed, on the false "cannot produce the.gitmodulesblob"test_the_live_inventory_carries_the_FOUR_legs_of_the_two_pinned_rootsAssertionError: opensoft/openDox-spec / assert None is not NoneThe verifier's N1 and N5 on #1156, confirmed by mutation (scratch worktrees, nothing committed)
_pinned_carrier_refusal, leaving only the pin count, case 4 FAILS. Loaded directly under that mutation, a leg that also carries apinof its own givesLOADED: 3 rows — a TWO-HOP chain through a self-pinned leg was ACCEPTED. With the check restored the same inventory isREFUSED: … THE REACH ENDS ONE HOP FROM AN openxFactory PIN ….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'sremote get-url origin(so it was recording), nocat-file, nols-treeand nothing naming the pinned commit. The verified run's trace must holdcat-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 at65565eef, with the trace showinggit 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
65565eefthe plain run's full output (all 34 NOT RE-CHECKED rows)
doc-health against a
mainbaseline.scripts/doc-health.py --single-repo . --as-of 2026-09-25was run in two SAME-KIND checkouts, git worktrees of the realization clone atmaindaca0b89and at65565eef. 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, thetasks.mdticks 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
df453ea5withpython3 -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 onmain138a4722, 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_nothingis PATH-DEPENDENT. It asserts that no spied argument contains the substringone,Upperordotted(line 499), and the realization clone's own directory isclone-1150-realize. Onmainit FAILS in a worktree whose path containscloneand 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 withsubprocess.TimeoutExpired … timed out after 30 secondson this host. Run ALONE it gives1 failed in 30.22sonmain138a4722and1 failed in 30.23satc8e70d79. Its--require-candidatetwin passes on both.Since
df453ea5the code has moved by a comment (c8e70d79), one test (978b4d1b) and_git's decoding (a970d6a3). The branch then tookmain(c230f4c2) and the ticks (65565eef). The requiredpytest-suitecheck ran the whole suite GREEN ata970d6a3(run36063680480, completed 2026-09-24T22:11:36Z), and it runs again at65565eef. Locally at65565eef, the nine test directories that read atasks.mdor reach the estate inventory give1181 passed, 304 subtests passed,openspec validate admit-code-leg-under-pinned-root --strictis valid, andscripts/validate-openspec-cli-pin.py --allexits 0.The
--estate-treere-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 from2f3f857dto069fe471, movingcontracts/openxdox-pin.yaml'scommit:and theopenXdoxgitlink together. At069fe471the root names the same two legs by the same URLs: specf088b097is unchanged, and the code leg moved626f2c8d→e28930bf. openDox is unmoved atdc7aa08f. D0.1 re-measured at this head: both pins still equal openxFactory's own gitlinks. D0.2 re-measured: openDox and openXdox each name aspecand acodeleg 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:
full output
With the aggregation carrier supplied as well, from a fresh shallow clone of
opensoft/xFactorymain(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:full output
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
main463 commits behindorigin/main, carrying 209 local handoff commits, and its working.gitmodulesstill spellsopensoft/codexFactoryandopensoft/LedgerxFactoryand has no openDox or openXdox entry. Supplied asopensoft/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)
test_a_gitlink_CARRIER_must_resolve_to_a_GOVERNED_rowkeeps every assertion, since its refused carrier isexternaland is still refused. Its docstring's clause "or from one it carries aspinned" is corrected, as § 3.4 requires, and the correction says why.pinof 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.git show <commit>:.gitmodules. The read here iscat-file -t, thenls-tree … -- :(literal).gitmodules, thencat-file blob: the same object-store read, but it also refuses a pin whose oid is not a commit, and a.gitmodulesthat is a symlink or not a blob. It runs through the same sanitized, time-bounded_git.GIT_NO_LAZY_FETCHis 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 Ubuntu1:2.43.0-1ubuntu7.3build it ALSO refuses the fetch (exit 128, "lazy fetching disabled", the blob still absent), but whether a git honours it depends on the build, soGIT_ALLOW_PROTOCOL=noneis the guard relied on. The_NO_TRANSPORTcomment says exactly that (c8e70d79). Case 6 proves that the allow-list ALONE holds, withGIT_NO_LAZY_FETCHremoved, in ablob:noneclone whose promisor remote stays reachable.main138a4722. 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_TRANSPORTcomment, comment only). 978b4d1 then a970d6a answer Copilot's review, test first (item 6). c230f4c mergesmaindaca0b89, 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.c8e70d79opened 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.gitmodulesnames its submodule in UTF-8 left the leg NOT RE-CHECKED, with the report saying the store "cannot produce the.gitmodulesblob", which is false. 978b4d1 pins the read (case 9 above, failing atc8e70d79), and a970d6a makes_gitdecode UTF-8 strictly. In a UTF-8 locale nothing moves. Copilot's review ata970d6a3: "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