Repository navigation
Read a pinned leg's object store where git keeps it, so a worktree reads the same release surface - #1051
Conversation
…kout happens to show it
doc-health's `release-inventory-drift` family reported four extra `error`
findings — `contracts/schemas/{gate-action-record,xfactory-workbench-chat-turn,
xfactory-workbench-model-catalog}.schema.yaml` and
`scripts/validate-ideation-dashboard-contracts.py`, each "absent at HEAD but
recorded in 'contract-v4.0'" — whenever the run's checkout was a `git worktree`
rather than the checkout it was made from. Measured at `8944758c`: 1 error from
the clone, 5 from `git worktree add ../wt HEAD` of that same commit. None of the
four files exists in either tree; all four are moved rows the § 5.2 shed put in
the openXdox legs, which `_shed_member` reads through `carved_reach`.
ROOT CAUSE, in `carved_reach.shed_commit_object`: it located each leg with
`(repo / ".git").exists()` and read it with `git -C <that working tree>`. That
asks whether the leg's WORKING TREE is checked out HERE, and `git worktree add`
never checks a submodule out — it writes the superproject's own tracked files
and leaves every gitlink an empty directory. The store is not missing there,
only elsewhere: git keeps a submodule's objects in the superproject's common
git directory at `modules/<name>`, which every linked worktree of that
superproject shares. So the walk raised `CarveReachUnavailable` for a checkout
that could read the leg perfectly well.
`_leg_object_store` now prefers the checked-out working tree, exactly as before,
and otherwise resolves `<git rev-parse --git-common-dir>/modules/<segment>`. The
common directory is asked OF GIT rather than assembled from `.git` by hand,
because the walk is a chain — `openXdox/spec` is a submodule of a submodule, so
past the first level the parent is itself a module store — and because this
repository is itself mounted as a submodule in the aggregation workspace.
THE SAME DEFECT'S OTHER HALF. `release_inventory._shed_member` caught
`CarveReachUnavailable` in a bare `except Exception` and answered `(None, None)`,
which `check_repo` reports as ABSENT AT THE COMMIT — this family's most severe
verdict, read off an uninitialized submodule rather than off the release. That
condition is the ratified taxonomy's sixth arm, "git unavailable ... SKIP, and
never per-member", so an unreachable leg is now a repository-level skip carrying
the leg's own remedy, and a seventh taxonomy line spells that out. A side clone
that never ran `git submodule update --init` now says so instead of naming four
files a reader cannot find in either tree.
MEASURED, `--family release-inventory-drift`, `8944758c` vs this branch:
before clone 1 error worktree 5 errors
after clone 1 error worktree 1 error
The one surviving error (`scripts/hermes_runtime_validation/release.py` bytes
differ) and the three editorial `info` rows are unchanged in both checkouts.
Three regression tests in `tests/doc-health/test_release_inventory.py` build a
superproject with a leg pinned two submodule levels deep — the `openXdox/spec`
shape — and assert that the checkout and a linked worktree of it return
identical findings, that `_leg_object_store` answers through the common
directory at both levels, and that a never-initialized side clone is a skip
rather than a phantom absence. All three fail against the reader they replace.
Finding #1048.
Lane: openxfactory-2
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Reviewer's GuideThe PR fixes release-inventory reads for linked worktrees by locating pinned submodule objects in Git's shared module stores, and prevents unreachable legs from being misreported as deleted members by converting them into repository-level skips. Real nested-submodule tests cover checkout parity, common-directory resolution, and uninitialized-clone behavior. Sequence diagram for release inventory reads across a linked worktreesequenceDiagram
participant Inventory as release_inventory
participant Reach as carved_reach
participant Git as Git object store
participant Leg as Pinned submodule leg
Inventory->>Reach: shed_commit_object(commit, path)
Reach->>Git: _git_object_id(repo, revision, segment)
Git-->>Reach: pinned gitlink commit
alt leg working tree is checked out
Reach->>Leg: _leg_object_store(repo, segment)
Leg-->>Reach: checkout path
else linked worktree has no leg checkout
Reach->>Git: _git_text(repo, rev-parse --git-common-dir)
Git-->>Reach: shared modules directory
Reach->>Git: resolve modules/segment store
Git-->>Reach: pinned blob and mode
end
Reach-->>Inventory: member bytes and mode
Sequence diagram for skipping an unreadable pinned legsequenceDiagram
participant Inventory as release_inventory
participant Reach as carved_reach
participant Check as check_repo
Inventory->>Reach: shed_commit_object(commit, path)
Reach->>Reach: _leg_object_store(repo, segment)
Reach-->>Inventory: CarveReachUnavailable
Inventory-->>Check: raise LegUnavailable
Check-->>Check: return Skip(FAMILY, remedy)
Check-->>Inventory: repository-level info finding
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Lane: openxfactory-2 (openXfactory-2) Lane review at Author's questions RULED: (1) skip is the ratified sixth arm applied — accept; (2) |
There was a problem hiding this comment.
🔵 Needs a closer look
Missing pinned commits can still produce phantom per-member absence errors instead of repository-level skips.
Pull request overview
This PR makes release-inventory checks consistent across linked worktrees and unavailable nested submodules.
Changes:
- Resolve pinned legs through Git’s shared object stores.
- Report unreadable legs as repository-level skips.
- Add real-Git regression tests.
File summaries
| File | Summary |
|---|---|
tests/doc-health/test_release_inventory.py |
Adds worktree and unavailable-leg regression coverage. |
scripts/doc_health/release_inventory.py |
Handles unavailable legs as repository-level skips. |
scripts/carved_reach.py |
Resolves pinned leg object stores across checkout layouts. |
Review details
Suppressed comments (2)
scripts/carved_reach.py:718
- This HEAD-file check does not prove that the commit named by the superproject's gitlink is readable. If a shallow or partially fetched module store has
HEADbut lacks that pinned commit,blobs_at()returns a per-pathNoneandtree_modes()returnsNone;_shed_member()then turns that into(None, None), socheck_repo()still emits a phantom “absent at the commit” error instead of the repository-level skip this change introduces for unreadable legs. Validate the pinned commit or propagate this read failure asLegUnavailablebefore treating the path as an established absence.
# `HEAD` is git's own first test for "this directory IS a git directory",
# and it is what separates a real module store from the empty `modules/`
# skeleton that a never-initialized submodule can leave behind.
return store if (store / "HEAD").is_file() else None
scripts/doc_health/release_inventory.py:207
- This only promotes
CarveReachUnavailableraised while locating the store. If the submodule store exists but the pinned gitlink commit is missing (for example in a shallow/partial submodule),_leg_object_storestill succeeds on itsHEADcheck;RealGit.blobs_atthen returns a per-pathNonefor<leg_commit>:<path>, and_shed_memberturns that into(None, None).check_repoconsequently reports a phantom per-memberabsent at HEADerror instead of the repository-level skip required for an unresolvable leg commit. Validate/propagate pinned-commit readability before treating per-pathNoneas release absence.
except CarveReachUnavailable as unreadable:
# THE ONE REFUSAL THAT MUST NOT BECOME `(None, None)`. It says the
# leg's object store could not be read AT ALL, so nothing was learned
# about this member; the caller's absence finding would announce a
# deleted normative member on the strength of an uninitialized
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
… is a git directory Fix round 1 on PR #1051 — Copilot's one suppressed comment at `90451378` (`carved_reach.py:718`), which is the author's own open question (3), RULED ACCEPT by the lane. `_leg_object_store`'s `HEAD` test proves the directory is a git directory. It proves nothing about its contents, and the walk moved on as though it did. A shallow clone, an interrupted fetch, or a gitlink advanced past what the store was ever fetched at all leave exactly that shape: a real module store that does not carry the commit the superproject pins. The walk then read a plain `None` — from the next level's `rev-parse`, or at the last level from the caller's own `blobs_at`/`tree_modes` — `_shed_member` answered `(None, None)`, and `check_repo` emitted the phantom `inventory member is absent at HEAD` this PR exists to remove, one layer lower than where it was fixed. `shed_commit_object` now probes the located store for the gitlink commit with `git -C <store> cat-file -e <sha>^{commit}` and raises `CarveReachUnavailable` naming the leg and the commit when it is not there, so `release_inventory` turns it into the same `LegUnavailable` and the same repository-level `Skip` that an unmaterialized leg already produced. Every level of the walk is probed, including the last, which is the one the caller reads blobs from. `cat-file -e` answers by EXIT CODE and prints nothing, which `_git_text` cannot report — an empty stdout there is indistinguishable from a failure, so a commit that IS present would have read as absent. The scrubbed, replacement-free invocation is therefore factored into `_git_run`, with `_git_text` (answers in stdout) and `_git_ok` (answers by exit code) over it; the two return types are what keep that confusion impossible. Measured unchanged on the real repository, `--family release-inventory-drift` at this branch: 1 error from the checkout and 1 from a linked worktree of it, so the probe adds no refusal where the legs do answer. One regression test, real git and a real gitlink pointing at a commit the store never fetched — a gitlink may name a commit its recording repository does not have, which is what a gitlink IS, so the fixture is the shape itself rather than a simulation. Against the pre-fix reader the same fixture returns `severity=error ... "inventory member is absent at HEAD but recorded in 'contract-v0.0-worktree-fixture'"`; with the probe it returns the Skip. Lane: openxfactory-2 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved moderate findings remain around partial-object handling, error propagation, caller compatibility, and preserving earlier findings.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (4)
scripts/carved_reach.py:801
- Returning
Nonehere still conflates an unanswerable Git query with an absent gitlink. The precedingcat-file -eonly proves that the parent commit object exists; in a partial/promisor store,rev-parse <commit>:<segment>can still fail because the tree or gitlink object is unavailable. ThatNonereaches_shed_memberas(None, None), socheck_reporeports a phantom member-absent error instead of the repository skip this change adds. Distinguish a missing path from a failed traversal and raiseCarveReachUnavailablefor the latter.
if gitlink is None:
return None
scripts/carved_reach.py:669
- Use the verb “reads” here; “read's” is a grammatical typo in the new helper docstring.
"""One `git -C <repo> ...` read's stripped stdout, or `None` when git
scripts/doc_health/release_inventory.py:299
- If an unreadable moved leg is encountered after an earlier member already appended a finding, this
return Skipdiscards those established findings andfam_release_inventory_driftemits only the skip info row. That makes a late submodule/object-store failure erase actionable drift that was successfully checked. Return a carrying skip (or otherwise preserve the accumulated findings) and have the family report both the skip and the findings, consistent with the repository's partial-skip handling.
except LegUnavailable as unreadable:
# SIXTH ARM, NOT THIRD. Version control could not be consulted
# about this member, which is a fact about this checkout and
# not about the release — so the repository is skipped with the
# leg's own remedy as the reason, and `fam_` below records that
scripts/doc_health/release_inventory.py:207
- This new exception boundary covers only failures from
shed_commit_object; the subsequent leg reads are still fail-open._shed_memberturnsgit.blobs_at(...)failures or missing objects into(None, None), and turnstree_modes(...)failure into{}, so an incomplete leg can still yield a phantom absent error or silently skip the mode check instead of becomingLegUnavailable. These reads need to distinguish a genuinely absent path from an unreadable leg and preserve the repository-level skip.
except CarveReachUnavailable as unreadable:
# THE ONE REFUSAL THAT MUST NOT BECOME `(None, None)`. It says the
# leg's object store could not be read AT ALL, so nothing was learned
# about this member; the caller's absence finding would announce a
# deleted normative member on the strength of an uninitialized
- Files reviewed: 3/3 changed files
- Comments generated: 2
- Review effort level: Lite
…er from failure in every leg read, and carry earlier findings past a late skip
The PR's own thesis, applied to the reads it had not reached: a git query
that CANNOT BE ANSWERED is a fact about the machine, and reporting it as an
ABSENCE states a fact about the release. Round 1 closed that at the leg's
object store and at the pinned commit; three reads past those probes still
failed open, and a fourth defect discarded findings the run had already
established. Ruling `findings/fix1051-round2.md`, four arms, all ACCEPT.
MEASURED FIRST, git 2.43.0, throwaway stores — the four shapes the new
discriminators turn on, quoted where the code reads them:
a path genuinely not in the tree
`rev-parse <commit>:<path>` exit 128, `fatal: path 'x' does not exist in
'HEAD'`; `git ls-tree <commit> -- <path>` EXIT 0 AND NO OUTPUT.
the commit's root tree object missing (`--filter=tree:0` clone, promisor
remote unreachable; or a pruned store)
`rev-parse` exit 128 again — `fatal: path 'leg' exists on disk, but not
in 'HEAD'`, the same empty stdout for the opposite fact; `ls-tree` exit
128 (`fatal: not a tree object`, or `could not fetch <tree> from
promisor remote`). `cat-file -e <commit>^{commit}` STILL EXITS 0, which
is why round 1's commit probe passes this straight through.
a subtree missing below a readable root tree
`ls-tree` exit 1, `error: Could not read <sha>` — while
`cat-file -e <commit>^{tree}` exits 0. That is why `ls-tree` is the
discriminator and the ruling's root-tree alternative is not: it passes
on a store that cannot answer for the path.
a blob the store cannot serve
`cat-file --batch` FAILS OUTRIGHT (exit 128) where a promisor remote is
configured and unreachable, and answers `<spec> missing` WITH EXIT 0
where nothing can fetch it — byte for byte what an absent path answers.
R1 `carved_reach.shed_commit_object` — the gitlink read. `_git_object_id`
returning nothing was read as "this commit records no such leg", so a leg
store with the commit and without its tree produced `None`, `(None, None)`,
and then a normative member reported ABSENT AT THE COMMIT. New
`_tree_entry_absent` asks `ls-tree`: exit 0 with no output is the tree's own
answer and still returns `None`; anything else — non-zero, or an entry
listed that `rev-parse` could not resolve — raises `CarveReachUnavailable`
naming the leg, the commit and git's own stderr.
R2 `carved_reach._git_text` — the flagged `read's` is gone. Reworded to "The
stripped stdout of one `git ...` read" rather than the literal `reads`
substitution, which would have left the sentence without a subject.
R3 `release_inventory._shed_member` — the reads after the probe.
`git.blobs_at(...) -> None` (git declined) and `tree_modes(...) -> None` (a
mode check that silently did not happen) no longer fail open, and a blob the
batch reports `missing` is put to the leg's TREE: listed there means a read
that FAILED, absent there means the leg answered and the member really is
gone — which still reports as drift, pinned by its own test.
R4 `release_inventory.check_repo` — a late skip no longer discards what the
earlier members established. The repository's carrying-skip form EXISTS
(`release_tag_publication._PartialSkip`, `#766`/PR #871) and is now promoted
to `doc_health.PartialSkip` beside `Skip`, the old name kept as the same
class object so every reference and test in the estate is unmoved. Members
are compared in sorted order, so the leg arm returns from the middle of the
comparison: it returns `_skip(reason, findings)`, plain where nothing was
established and carrying otherwise, and `fam_release_inventory_drift`
reports the `info` notice, the carried rows beside it, and — where every
repository in scope skipped, which `--single-repo` makes the everyday case —
a family-level skip that still carries them. The notice's action says PARTLY
evaluated when it carries, because "not evaluated" would be false of it.
TESTS, seven, on real git and real submodules two levels deep; six fail
against the reader they replace (verified by reverting both sources: the
only one that passes both ways is the negative control, which pins that a
READABLE leg not carrying the member is still reported ABSENT):
the tree probe separates a missing entry from an unreadable tree
a tree the store cannot read is a skip, not an absent gitlink
a leg store that cannot serve the blob is a skip, not an absence
a leg tree that lists a member it cannot serve is a skip
a member a READABLE leg does not carry is still reported absent
an unreadable leg does not discard the members already compared
a carrying skip is reported WITH its findings, not instead of them
The degraded stores are built rather than simulated: `--filter=tree:0` and
`--filter=blob:none` bare clones over `file://` (git ignores `--filter` on a
local-path clone and says so), with the promisor remote pointed at nothing
for the loud half and forgotten for the `missing`-with-exit-0 half.
VALIDATION. `tests/doc-health/test_release_inventory.py` 48 passed (41 + 7);
`tests/doc-health` 1835 passed; carve/pin suites 433 passed;
`tests/hermes_runtime_contracts` release-inventory + validator-CLI +
content-resolution 119 passed, 1 pre-existing environment failure
(`test_release_mode_field_is_preserved_on_the_real_repository
[--require-realization]`, a 30s subprocess timeout that reproduces
identically on the unmodified branch head). `doc-health --single-repo .
--family release-inventory-drift` reports 1 error + 3 info from the checkout
and byte-identically from a `git worktree` of it.
Lane: openxfactory-2
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
Three unresolved moderate findings remain in error propagation, tree reads, and partial-evaluation reporting.
Review details
Suppressed comments (4)
scripts/carved_reach.py:895
- This new incomplete-store branch raises
CarveReachUnavailableto callers outside doc-health. The othershed_commit_objectcaller,scripts/hermes_runtime_validation/release.py:_shed_aware_commit, does not translate that exception, andvalidate-contract-release.pycatches onlyReleaseDependencyError/ContentResolutionError; a partial linked-module store therefore escapes as an uncaught traceback instead of the documented dependency failure (exit 2). Catch and translate this exception at that caller, with a regression test for a missing pinned leg commit.
if not _git_ok(store, "cat-file", "-e", f"{gitlink}^{{commit}}"):
raise CarveReachUnavailable(
f"the pinned {row['destination']} leg is materialized but "
f"incomplete: {mount.relative_to(REPO_ROOT)}'s object store "
f"carries no commit {gitlink}, which is what the recorded "
scripts/carved_reach.py:746
leg_repocan be the shared module Git directory returned by_leg_object_store, whilepathis always repository-root-relative.git ls-treeresolves pathspecs relative to the current prefix unless--full-treeis supplied; against a module store this can make the tree probe miss a real entry and turn an unreadable/readable distinction into the wrong absence/skip verdict. Use the same root-relative form as the repository's other tree readers (for examplecontent.py:148-155).
done = _git_run(repo, "ls-tree", revision, "--", path)
scripts/doc_health/release_inventory.py:532
carriedis only non-empty when an earlier member produced a finding. If earlier members all match and a later moved member becomes unreadable,check_reporeturns a plainSkipwith no carried findings, so this branch emits_NOT_EVALUATED_ACTIONeven though part of the release surface was successfully compared. Track partial evaluation independently of whether it produced findings, and use the partly-evaluated wording for that case too.
carried = list(getattr(outcome, "findings", ()))
rule = f"not checked: {outcome.reason}"
if carried:
results.append(_finding(INFO, repo, MANIFEST, rule,
_PARTLY_EVALUATED_ACTION))
else:
results.append(_finding(INFO, repo, MANIFEST, rule,
_NOT_EVALUATED_ACTION))
scripts/doc_health/release_inventory.py:178
- The PR description says “No new action string,” but this change introduces
_PARTLY_EVALUATED_ACTIONand pins it as a sixth emitted action. Please reconcile the description with the carried-skip behavior (or remove the new action if that behavior is not intended).
_PARTLY_EVALUATED_ACTION = (
"no action on this line — the question it names could not be asked, and "
"the findings this repository HAD established before it are reported "
"beside it rather than discarded with it")
- Files reviewed: 7/7 changed files
- Comments generated: 0 new
- Review effort level: Lite
…-tree on the tree probe; partial-evaluation wording independent of findings Copilot at 42152fb, RULED ACCEPT x3 by the lane (findings/fix1051-round3.md). T2 was already answered by round 2 and is answered on the thread, not in code. T1 + S1 (carved_reach.py:895) — `shed_commit_object` has TWO callers and only one had a boundary. `scripts/doc_health/release_inventory._shed_member` turns `CarveReachUnavailable` into the repository-level skip; `scripts/ hermes_runtime_validation/release._shed_aware_commit` had none, its two readers (`_CommitSource.exists`, `.read_member`) catch only `ContentResolutionError`, and `scripts/validate-contract-release.py::main` catches only that and `ReleaseDependencyError` — so a module store lacking the pinned commit escaped every handler between the resolver and `main()` as a traceback instead of the documented exit-code-2 dependency failure. It is now translated there into `ReleaseDependencyError`, `from`-chained, carrying the leg's own remedy in the message. TRANSLATED, NEVER SWALLOWED: a `None` would send the reader to this repository's own tree for a member whose bytes are in the leg, which post-shed does not carry it — the phantom absence, in the release verifier this time. The call stays OUTSIDE the `try` that guards the import, because `CarveReachUnavailable` is an `ImportError` subclass and folding it in would produce exactly that `None`. S2 (carved_reach.py:746) — `git ls-tree` resolves its pathspec relative to the CURRENT PREFIX unless `--full-tree`; `git rev-parse <revision>:<path>`, the read `_tree_entry_absent` exists to explain, is root-relative always. Under a non-empty prefix the probe was answering about a DIFFERENT path than the read it arbitrates. MEASURED, git 2.43.0: in a module store whose `core.worktree` resolves to a directory containing the store, `rev-parse --show-prefix` answers `.git/modules/leg/` and `ls-tree <pin> -- spec` then exits 0 AND PRINTS NOTHING for a `spec` gitlink that tree really carries — git's own unambiguous "no such entry", returned for an entry that is there, which this function reads as the one shape that is an ANSWER. Now `--full-tree` with the `:(literal)` form `hermes_runtime_validation/content.py:148-155` already uses; measured too: `ls-tree --full-tree HEAD -- :!leg` exits 128 (`pathspec magic not supported by this command: 'exclude'`) where `:(literal):!leg` exits 0, so a segment beginning with `:` no longer arrives as an unreadable tree. S3 (release_inventory.py:532) — the per-repository `info` row said "this repository's release surface was not evaluated" whenever the skip carried nothing, which is false of the everyday case: members compared before the unreadable one that simply MATCHED establish nothing to carry. "Some member was EVALUATED" and "some member produced a FINDING" are now tracked apart. `check_repo` enumerates its sorted members and hands `_skip` the index the unreadable one stopped at; `_skip` answers `PartialSkip` when anything was carried OR anything was evaluated, and the plain `Skip` — byte-identical, down to its type — only where the very first member was the unreadable one. `fam_` reads the CLASS for "was anything evaluated" and `getattr(.., "findings", ())` for "what was established", and `_PARTLY_EVALUATED_ACTION` is reworded so it is true with or without carried rows. Both action names stay in the argument position so `action_pins.harvest_static` still resolves each to its literal. `PartialSkip`'s own docstring records that an empty `findings` is meaningful now; `runner.run_suite` and `report.py` both turn on the findings rather than on the class, so nothing outside this family sees a difference. S4 is the PR body's text and is the lane's to correct. Tests. `tests/doc-health/test_release_inventory.py` gains four (53 in the file): the tree probe answered from the root of the tree rather than from the prefix, and from the same prefixed module store a genuine absence still answers; a segment read as a NAME rather than as pathspec magic; members that MATCHED before the unreadable one still counting as evaluated; and its negative control, a repository whose FIRST member is unreadable still taking the plain `Skip`. One more in `tests/hermes_runtime_contracts/test_release_inventory.py` for the translated refusal, on a leg readable at one commit and pinned past its store at the next. Every new test but the labelled negative control was shown failing against the reader it replaces; the hermes one fails there with the untranslated `CarveReachUnavailable` escaping, which is the defect itself. Measured: `tests/doc-health` 1840 passed; carve/pin suites 433 passed; `tests/hermes_runtime_contracts` 635 passed with the one pre-existing environment timeout (`test_release_mode_field_is_preserved_on_the_real_ repository[--require-realization-realization]`, a 30s subprocess cap) reproduced identically on the unmodified base at 42152fb. Worktree vs checkout at this head: identical findings, 1 error and 3 info, byte-identical once `repo=` is normalized. Lane: openxfactory-2 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
Two moderate findings require remediation guidance to distinguish shallow stores from filtered or incomplete stores.
Review details
Suppressed comments (2)
scripts/carved_reach.py:921
- This new
CarveReachUnavailablemessage repeats the same invalid repair advice for a missing pinned commit: a filtered/partially fetched module store need not be shallow, sogit fetch --unshallowmay fail rather than restore the commit. The refusal should give separate guidance for shallow versus filtered/incomplete stores so the dependency error is actionable.
f"gitlink names, so {key} cannot be read at the commit that "
f"pins it. Run `{INIT_COMMAND}` from the repository root; a "
f"shallow or partially fetched store needs its own "
f"`git fetch --unshallow` first.")
scripts/doc_health/release_inventory.py:290
- The remediation advertised here is not valid for the partial-clone cases this code explicitly handles (
--filter=tree:0/blob:none): those stores are not shallow, sogit fetch --unshallowcan fail with “unshallow on a complete repository” instead of fetching the missing tree/blob. Please distinguish shallow stores from filtered/incomplete stores and direct the latter to fetch the pinned objects from a usable remote (or reinitialize the leg).
remedy = (f"Run `{INIT_COMMAND}` from the repository root; a shallow or "
f"partially fetched store needs its own `git fetch --unshallow` "
f"first.")
- Files reviewed: 9/9 changed files
- Comments generated: 0 new
- Review effort level: Lite
…h or re-init a filtered one Lane: openxfactory-2 Co-Authored-By: Claude Sonnet 5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Git probes lack bounded timeout handling, so stalled or credential-blocked promisor remotes may hang the reader.
Get a fresh assessment by requesting another Copilot review.
Review details
- Files reviewed: 9/9 changed files
- Comments generated: 1
- Review effort level: Lite
There was a problem hiding this comment.
🟡 Changes recommended
Each moved member repeats a full recursive Git tree scan; cache scans per pinned leg and commit before approval.
Get a fresh assessment by requesting another Copilot review.
Review details
- Files reviewed: 10/10 changed files
- Comments generated: 1
- Review effort level: Lite
`#1077`'s `shed_commit_object` fix and this branch's rewrite of the same walk are the whole conflict, and they compose: main reads `effective_arrival(row)` so a `re_destined:` row (RULED Q6) resolves at the leg the ruling names rather than at the raw `destination`, and this branch added the mount tracking, `_tree_entry_absent`, `_leg_object_store` and the store-completeness probe around that same loop. Resolved as BOTH — the loop walks `MOUNTS[destination]`, the return answers `destination_path`, and all three `CarveReachUnavailable` messages name `destination` rather than the raw `row['destination']` they were written against, so a re-destined row that cannot be read is refused about the leg it actually names. And the SEMANTIC reconciliation the textual merge could not see, the same one the previous merge needed: `#1077`'s new case `test_the_exact_commit_resolver_reads_the_effective_arrival_of_a_re_destined_row` builds four bare `.git` DIRECTORIES, not repositories, and was written against the pre-`#1048` walk that had no completeness probe — so the real `cat-file -e <gitlink>^{commit}` answers no and the walk refused `CarveReachUnavailable` for an INCOMPLETE STORE at `openDox` before the case could measure anything. `_git_ok` is stubbed exactly as `_git_object_id` beside it already was, and for the same reason: what that case measures is WHICH LEG the walk reaches, and git is not the question. Its assertion is untouched, and it still leaves the original leg materialized on purpose so that a resolver reading the raw `destination` answers wrongly rather than raising. Lane: openxfactory-2 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…Manifest provisioning shape, as a credential-contracts MODIFIED delta (RULED 5704187317) (#1073) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Refs #656 (stays OPEN). CLAIM: #656 (comment) RULED: **5704187317** (2026-09-16, option (1) SPLIT AND NARROW — clause (E) is this act, clauses (B) and (D) are what it refuses); **Q3** (2026-09-04T15:32Z, one instance and one database per tenant, always, in both cases); **5700622683** (the class in which § 7.4's delta-text defects are RECORDED rather than silently fixed — this packet opens a second one and fixes neither). ## What Proposes the OpenSpec change `add-per-tenant-app-manifest-provisioning`: **ONE `## MODIFIED` block, on ONE requirement of `credential-contracts`, over CANON.** Packet only — no schema, no validator arm, no contract cut, no code. It **takes the FIRST HALF of the declared exit path** of the staged topic `openxdox-install-app-provisioning` (staged 2026-08-14, gate met 2026-08-15, **exit unraised for thirty-three days**) by taking that topic's own OQ-1 **option (a)** — a MODIFIED `credential-contracts` delta — which is what RULED `5704187317` (E) chose over the new `install-app-provisioning` capability the topic offered beside it. **It does NOT close that topic**, and the claim is kept narrow on purpose: the topic's Exit path names Q1 (**RULED**), Q2 the managed-versus-self-hosted flow (**unruled, and neither decided nor waived here**), a named `Omnigent-Install` realization change (**owed, authored nowhere here**) and a further gate on the opensoft QA dispatch migration (**not asserted met**). What authorizes authoring with those open is clause (E) DIRECTING the authoring in the operator's own words, not a finding by this author that Q2 is dispensable — an author does not amend another document's gate from inside a packet. The fragment STAYS STAGED. ## Why The dispatch/content separation is **already canon** and this packet does not restate it as new. `openspec/specs/credential-contracts/spec.md:169` has said since `add-dispatch-credential-contract` archived on 2026-08-25 that the two credentials are DISTINCT bindings and that a zero-write-authority serving surface *"MUST NOT hold — nor hold key material capable of minting — a content-write credential."* **That requirement governs a credential that already exists. It says nothing about where the credential came from.** RULING Q3 makes that a gap: the pair is provisioned ONCE PER TENANT, N times, in N organizations this estate does not own. The two cheapest ways to lose the invariant at provisioning time both pass every check the promoted requirement makes, because it is not looking there — have an OPERATOR identity create the Apps inside the tenant's org, or create ONE App and widen it. ## Measured, not asserted | read | result | |---|---| | Base | branched off `origin/main` `4cef77af`; merged up to `a93d2682` at `5e84904b`, which carries `main`'s own repair of the inherited self-gate failure and no packet text | | Active changes carrying a `credential-contracts` delta | **2** — `add-credential-escrow-checkout` (MODIFIED *Canonical credential record shapes* + 9 ADDED), `add-requirement-ref-resolution-integrity` (2 ADDED) | | …of which write *Dispatch-only credential least privilege and serving-tier separation* | **0** → block is over CANON, **no `Modified over` marker owed** (stated in the delta's own preamble) | | Open openxFactory PRs read for their file lists | **13** (#1071 #1069 #1068 #1066 #1065 #1060 #1058 #1057 #1056 #1051 #1043 #594 #518) — **not one** touches `credential-contracts` or the staged topic | | `openspec validate add-per-tenant-app-manifest-provisioning --strict` | **valid** | | `openspec validate --all --strict` | 108 passed, **2 failed — both pre-existing** (`add-chain-attestation`, `add-composed-view-authoring`, each omitting a canon scenario); this change is not among them, which is the tool confirming the block carries every promoted scenario | | `"App Manifest"` in `opensoft/Omnigent-Install` | **0** occurrences — the mechanism is contracted nowhere today | | `"provisioning manifest"` under `contracts/ examples/ templates/ requirements/` | **0**, exit 0 over four roots that all EXIST — the record kind these clauses constrain exists in no corpus this repository validates, which is why `code_surface: none` and no validator arm is authored. (An earlier spelling of this command named a root `schemas/` that this repository does not have, so it warned on a missing path instead of proving the zero; schemas live at `contracts/schemas/`, inside the first root. Same conclusion, now actually measured.) | ## What the block adds Canon's body paragraph and all three promoted scenarios are restated **VERBATIM**; five clauses and ten scenarios are added — the first two being the provisioning rule and the scoping rider that keeps it case-neutral. 1. **Where the pair is provisioned THROUGH A MANIFEST, creation is in the tenant's OWN SEAT AT THE PROVIDER — their organization where they are organization-backed, their own account where canon's self-hosted individual applies — and the identity is never an operator-owned one installed into it**, and never one provisioned identity creating the other (which the promoted sentence already forbids the serving tier to be capable of). The clause binds WHERE the identity lives — not who drives the flow, and not who holds its material. 2. **One pair per tenant, never shared**, under a pattern-discoverable naming convention of the form `<product> — <tenant>` whose TENANT COMPONENT is an identifier unique in the provider's own namespace, canonicalized to what that provider's names admit — a display name two tenants may share is not one, and which grain carries the uniqueness (slug, handle, issued id) stays the install's choice. The convention is load-bearing twice: the provider's App name is a GLOBAL slug, so it is the only way the flow completes for the second tenant; and it makes "never shared" auditable from a binding without reading the tenant's organization. 3. **The dispatch identity's one named target is a repository that holds no governed content**, and that repository is part of the provisioning. The refusal is on the TARGET'S PROPERTY and never on a count: the identity still names exactly one repository, and what is wrong is that a trigger on a content-bearing one leaves the serving tier one workflow away from content-write authority it must not hold. 4. **Capture is time-bound, lands in the DECLARED custody by reference, and leaves whoever drives the flow not an UNDECLARED custodian** — the custody's operator being the per-install execution binding this capability already fixes rather than a party this contract names — and no manifest, record or template carries a secret value, private key or installation token. ### What the block does NOT repeal, asserted in two of the eight scenarios rather than argued in prose Canon keeps both operating models legitimate — *"Both cases SHALL remain legitimate. Self-hosted operation by an individual or a client is not a degraded form of operator-hosted operation"* (`openspec/specs/credential-contracts/spec.md:141`, scenario at `:164-167`) — `docs/openxdox-dispatch-credential-binding.md:31-37` records a **live** operator-hosted Case A in which the operator creates the dispatch App and holds its key in the OPERATOR's vault, and *An operated identity's credential is held in governed custody and reached only by reference* puts the custody party in the BINDING and forbids a contract artifact from naming one (`:216`). The added clauses are therefore scoped to the shape they introduce: they name no custody party, they leave who OPERATES the install to the per-install execution binding, and they do not retroactively refuse a pair already in service. Two added scenarios assert exactly that — *An operator-executed install drives the manifest flow* CONFORMS, and *A pair already in service was created without a manifest* is NOT refused. Whether Case A migrates to the manifest shape is the installer's act and the topic's unruled Q2. (This is round 3's correction: the first draft's clauses were unconditional and repealed both references in passing.) ## What this does NOT do - **It touches not one byte of `opensoft/OpsxFactory` or `opensoft/Omnigent-Install`**, the two repositories § 7.4 of `split-opendox-two-layer-product` tags. RULED `5704187317` **(B)**: § 7.4's `openxdox` DNS sentence is discharged by **NAMING**, per that packet's own `design.md` § Non-goals (*"…or the `openxdox` DNS record's ungoverned status, **beyond naming them**"*), leaving the ceremony-reach widening inside `opensoft/OpsxFactory`'s active `add-governed-dns-administration` on Brett Heap's OQ-E word (OpsxFactory #207 comment `5649809425`). RULED **(D)**: the `dox` workload set's per-tenant declaration waits for § 3.5 — there is one tenant and one plane subject today — and its requirement stands under lane opsXfactory-3's claim `5638511222`. - **It does not author the installer.** `Omnigent-Install` owns the flow under its own change and its own code surface; tasks § 3.1 names it as owed. That repository's README forbids the alternative in its own words — it *"should not contain … canonical shared contracts that belong in `openxFactory/contracts`"* — which is CLAUDE.md working rule 1 from the other side. - **It reserves no contract bundle number** and adds no schema field, warning code or validator arm. Both active siblings on this capability already owe an additive minor on the same schema file; a number written here is a number one of them is spending. - **It edits `split-opendox-two-layer-product/tasks.md` by not one byte.** § 7.4's tick, and the **second delta-text defect this packet RECORDS** — `design.md:133-134`'s *"beyond naming them"* against `tasks.md:1979`'s *"is governed here"*, in the class of `5700622683` — are the bookkeeper's amendment #5. ## Open questions carried, neither blocking - **OQ-1 (the topic's Q2, unruled): the managed `opsxfactory_executed` flow** — operator-driven or tenant click-through. The delta is written **CASE-NEUTRAL** *in its wording as well as its intent* after round 3: it binds WHERE the identity is created and WHOSE it is, and RULING Q3's *"in both cases"* plus the topic's claim 3 make both true either way. Q2 decides who clicks, which is the installer's sequence. - **OQ-2: the apply-workflow repository's provenance** — fresh per install or a forked template. The requirement binds the PROPERTY (the one named target holds no governed content), not the provenance. ## Gate note `tests/doc-health/test_modified_block_currency_self_gate.py` was **RED on `main` itself** over two carriage-ledger subjects opened by another lane — the one failure in this PR's run at `b383098d` (`35159631088`: `1 failed, 7715 passed, 6 skipped, 338 deselected`). It was **INHERITED and never this packet's**: this block carries every promoted unit of the requirement it modifies, so the carriage-ledger arm has nothing to report about it — which `openspec validate --all --strict` independently confirms by not listing this change among the two scenario-omission failures. **It is resolved at `5e84904b`.** `main` was repaired by #1075 → `a93d2682` and this branch merges it; the merge carries `main`'s two commits (`c6997f12`, `a93d2682`) and no packet text, and its tree `27b00694` is byte-identical to the tree of GitHub's own merge ref `4e479a48`. Locally on that exact tree, `pytest tests/doc-health/test_modified_block_currency_self_gate.py tests/carve_manifest tests/sequenced_after -q` reads **486 passed, 0 failed**. A re-run of the red suite would not have shown this: run `35159631088` fetched the PINNED merge commit `+9782db6aefa1d9d9a2be7b5d0af0782ec47d65cb:refs/remotes/pull/1073/merge` — `b383098d` merged with the OLD `main` `4cef77af` — and a re-run replays the same event SHA, so only a push makes CI read the current merge ref. ## Review rounds **Fifteen Copilot rounds, 38 findings — 8 arrived as inline threads and 30 as SUPPRESSED comments**, every one of which was read out of the review BODY. A gate reading "0 unresolved threads" alone would have seen a fifth of this PR's review. Threads: **9 total, 0 unresolved**. Each round's disposition is a comment on this PR: [rounds 1-2](#1073 (comment)) · [round 4](#1073 (comment)) · [round 5](#1073 (comment)) · [round 6](#1073 (comment)) · [round 7](#1073 (comment)) · [round 8](#1073 (comment)) · [round 9](#1073 (comment)) · [round 10](#1073 (comment)) · [round 11](#1073 (comment)) · [round 12](#1073 (comment)) · [round 13](#1073 (comment)) · [round 14](#1073 (comment)) · [round 15](#1073 (comment)). The findings worth the rounds were structural, not prose: the added clauses silently repealing canon's two operating models and the ratified operator-hosted Case A (round 2); a conformance scenario that read as a licence for the identity the clause above refuses (round 4); the self-hosted individual left with **no** conforming identity, against canon's *"Both cases SHALL remain legitimate"* (round 10); and a naming convention that bound the manifest but not the identity it names, whose check sat in an unreachable branch (round 11). Round 12's one suppressed finding — `declared custodian` used for an actor the sentence defines as *the operator the per-install execution binding declares* — is neither a canon contradiction nor a false statement, so under the severity gate declared at `1ea066ad` it is answered by measurement and **registered for the ratification read (`tasks.md` § 2.1)**, where this `Status: draft` packet's requirement wording is decided in any case. **Round 13, at the merge head `5e84904b`, raised two inline findings and both were factual errors in the landed text — the class the gate admits — so both are fixed at `a642a3c5`:** `design.md` D3 still counted TWO scenarios asserting the case-neutral reconciliation where the other three places in the packet read THREE, and the one it omitted was the self-hosted individual canon's *"Both cases SHALL remain legitimate"* rule turns on; and the `code_surface` evidence recorded a zero-occurrence `grep` as `exit 0`, where a clean zero is **exit 1** and **exit 2** is the error status the earlier `schemas/` spelling actually produced (both measured at this head, GNU grep and ugrep alike). **Nothing normative moved in either fix** — no clause, no scenario and no count in the delta block changed. Both threads are answered by measurement and resolved. **Round 14, at `a642a3c5`, suppressed two.** One is fixed at `00685387`: § 1.7's gate box still recorded the inherited failure and a repair *"in flight"* that had landed — corrected, and its FORM corrected with it, by recording each head with its own run id (`b383098d`/`35159631088` red-inherited; `5e84904b`/`35221707064` SUCCESS; `a642a3c5`/`35223896296` SUCCESS) and stating that the box is ticked at the ratification read against the head then current, which is the only way a head measurement is still true when it is read. The other — whether the added clauses are provider-neutral — is answered by measurement and **registered for the ratification read**: the added clauses name no provider at all (*the provider*, *the tenant's own seat*, *organization or account*, *the provider's namespace*), the block's single `GitHub` is canon's own promoted paragraph carried verbatim as a MODIFIED block must (`openspec/specs/credential-contracts/spec.md:170`), and the canon sentence cited governs the naming of a FIELD — `realm` versus `identity_namespace` at `:346-353` — not a clause describing a flow. Neither fix touched the delta block. **Round 15, at `00685387`, suppressed two of one class, and the head did not move for them.** The naming clause's rationale claims the identities of one tenant *"can be enumerated without reading that tenant's own account"*; a pattern makes a name RECOGNIZABLE, not LISTABLE, and the inventory source is the staged topic's own open question 5 (*"how does opensoft support enumerate them across tenant orgs it may not directly see?"*). The uniqueness half is untouched — a tenant component unique in the provider's namespace needs no inventory — and over the estate's own bindings and manifests the pattern does what the clause says; what it cannot reach is an identity in no binding at all. That is requirement wording, so it is [answered by measurement and registered for the ratification read](#1073 (comment)) with a recommended narrowing. **The stopping rule in force from `00685387`: the head moves only for a canon contradiction in the delta block** — rounds 13 and 14 moved it because each found a false statement in the landed text, and both classes are now closed by construction (counts are grepped; the gate box records heads and runs, so it cannot stale). **Rule 6 applies** (this PR touches `openspec/changes/` and the README **OpenSpec Records** block). Brought to READY, **not landed**; this lane never merges. Lane: openxfactory-4 Author opus-max, actor `ops74`, session `openxfactory-4` f3c8d406. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The new Git subprocess path can hang on an unreachable promisor, and the exception documentation is stale for newly handled incomplete stores.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (1)
scripts/carved_reach.py:822
- This shared helper now drives
ls-treeandcat-file -eagainst partial/promisor object stores, but the subprocess has no timeout and only catchesOSError. If an unreachable promisor blocks, doc-health/release validation can hang instead of reaching the intended skip/dependency failure; the exact Git reader already bounds commands at 30 seconds and mapsTimeoutExpiredto an unavailable dependency (scripts/hermes_runtime_validation/content.py:103-114). Add the same timeout handling here.
return subprocess.run(
["git", "--no-replace-objects", "-C", str(repo), *arguments],
capture_output=True,
text=True,
check=False,
- Files reviewed: 10/10 changed files
- Comments generated: 1
- Review effort level: Lite
…; memoize tree_modes per leg; CarveReachUnavailable covers missing, incomplete and unreadable stores Copilot on PR #1051, three unresolved threads on bded0f4: - PRRT_kwDOTAvnrs6jCXUX (carved_reach.py:826) — `_git_run` had no timeout, so a partial/promisor store's `cat-file -e`/`ls-tree` probe could hang the doc-health/release reader instead of reaching the repository-level skip. Bounded at `timeout=30`, the same bound `scripts/hermes_runtime_validation/content.py:103-116` already uses; `subprocess.TimeoutExpired` is caught beside `OSError` and answered with the same `None` a missing git binary already produces, so every existing reader above `_git_run` reaches its unchanged unavailable path. `_tree_entry_absent`'s message now names the timeout where it already surfaces git's own stderr. - PRRT_kwDOTAvnrs6jX5sg (release_inventory.py:325) — `git.tree_modes` ran once per moved member even when several members share one pinned `(leg_repo, leg_commit)`, repeating the leg's full recursive `ls-tree` needlessly. `check_repo` now creates one mode-map cache before its member loop and `_shed_member` consults it before calling `git.tree_modes` again; behaviour is unchanged. - PRRT_kwDOTAvnrs6jaMvW (carved_reach.py:1105) — `CarveReachUnavailable`'s docstring said only "a pinned leg is not materialized" while the class is also raised for a materialized-but-incomplete leg and an unreadable tree. Broadened to name all three paths. New tests: test_a_probe_that_times_out_is_UNAVAILABLE_never_absent (tests/carve_manifest/test_carve_manifest.py) and test_two_moved_members_on_one_leg_call_tree_modes_once (tests/doc-health/test_release_inventory.py). Lane: openxfactory-2 Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
There was a problem hiding this comment.
🟡 Changes recommended
Leg reads still use unbounded RealGit subprocesses, allowing blocked promisor remotes to hang instead of producing the promised skip.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (1)
scripts/doc_health/release_inventory.py:309
- This now relies on the injected
RealGitleg reads to turn an unreadable promisor-backed store intoLegUnavailable, butRealGit.blobs_atrunsgit cat-file --batchwithout a timeout (scripts/doc_health/corpus.py:579-585); its_run/ls_tree_paths/tree_modespaths are likewise unbounded. A blocked promisor can therefore hang before this skip is reached, so add equivalent timeout handling to the release-surface reader or use a timeout-aware Git reader.
blobs = git.blobs_at(leg_repo, leg_commit, [leg_path])
if blobs is None:
- Files reviewed: 10/10 changed files
- Comments generated: 1
- Review effort level: Lite
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 10 hours and 37 minutes by commenting @sourcery-ai review. Upgrade to get a review now.
|
Lane: openxfactory-2 (openXfactory-2) Copilot on |
|
Lane: openxfactory-2 (openXfactory-2) Follow-up finding filed as promised in the landing ruling above: #1098 — |
…nt, and #1051) into the archive — the carried adopt-entry-grain block keeps #1088's clause on the re-based base `origin/main` had moved to `5dd0a8dc` — PR #1051 (`53769f9e`, the release-inventory reader), PR #1088 (`893abe97`, the ratifier's partition amendment of `adopt-entry-grain-dispositions-form`) and PR #1076 (`5dd0a8dc`, lane `openxfactory-5`'s archive of `gate-code-surface-declarations`) — so GitHub read this pull request CONFLICTING. Merged plainly; three conflicts, all resolved by KEEPING BOTH WRITERS. - `openspec/changes/adopt-entry-grain-dispositions-form/specs/document-lifecycle/spec.md` merged with NO conflict and is the point of the exercise: #1088's partition clause on the positive-resolution scenario's WHEN and its disjointness bullet (main's wording, authoritative, byte-unchanged) sits on THIS branch's re-based sibling WHEN — "…and at least one selected root whose boundary was successfully searched", the text the archive promoted on "Apply the narrowing". - `.../review/ratification-2026-09-16.md` — BOTH addenda kept, ordered by their underlying ruling's timestamp, on PR #1088's own precedent: carriage (12:12:49Z) → this branch's "Addendum 2" (the narrowing, 12:34:53Z) → #1088's partition addendum (12:34:55Z). Neither addendum's text is edited. The "AMENDED SINCE" pointer, which counted TWO acts, counts THREE and gains a paragraph for the re-base; nothing else of it moves. - `README.md` — both archived-ledger entries kept, newest first: this archive (2026-09-17) then #1076's (2026-09-16). - `tests/doc-health/test_modified_block_currency_self_gate.py` — main's `adopt-entry-grain-dispositions-form` row and its audit comment kept whole; this branch's retirement of the `scope-pinned-arm-root-naming` row applied over them. `len(_LEDGER_SUBJECTS)` MEASURED 15 (16 raw literal entries, the pre-existing `add-chain-attestation` duplicate collapsing as before); the docstring and the failure-message chronology now read 15 → 16 → 15 rather than 15 → 14. - `tests/sequenced_after/corpus-ledger.yaml` merged with no conflict: this archive's row (`#1052`→`#1089`, active→archived) and main's new rows both stand. RE-MEASURED AFTER THE MERGE, and every stale figure corrected where the branch stated it (README entry, archived `tasks.md` § 3.2, archived `design.md` § 5(d), the self-gate's comment/docstring/message, the carried record's Addendum 2): the carriage ledger reads FIFTEEN info rows, not fourteen, and `adopt-entry-grain-dispositions-form` measures canon 215 units, block 223, TWO uncarried and TEN new — not ZERO/EIGHT. THE CARRIAGE IS WHOLE; the two uncarried units are the positive-resolution WHEN and disjointness bullet #1088's ratifier moved, which this archive neither authored nor moved. Validation, foreground, at this merge: `openspec validate --all --strict` 108 passed / 2 failed (110 items), the same pre-existing pair (`add-chain-attestation`, `add-composed-view-authoring`); `proposal-support.py . verify` ok; `validate-sequenced-after.py . --ledger-diff` consistent, 219 rows; `doc-health.py --family modified-block-currency` 0 critical / 0 error / 0 warning / 15 info, none naming this packet, none unnamed; `--family promotion-fidelity` 0 findings; `pytest tests/doc-health/test_modified_block_currency_self_gate.py` 19 passed; `pytest tests/doc-health` 1843 passed; `pytest tests/sequenced_after` 286 passed. Lane: openxfactory-2 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…ox § 6.4, RULING Q6) (#1056) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) **`split-opendox-two-layer-product` § 6.4 — `add-composed-view-authoring` is CLOSED AS RE-HOMED to `opensoft/openDox`.** The first of the five frozen changes RULING Q6 disposes of (Brett Heap, 2026-09-04T17:49Z, [#656](#656)), and the cheapest: one `## MODIFIED` requirement, *"`target_release: none`, no contract bytes"* in § 6.4's words — **the packet's own retained front matter declares `target_release: implemented`** (`proposal.md:3`), § 6.4's phrase being the split box's shorthand for *no named release to wait on*, and the two are reconciled in the record rather than run together. Receiving half: **[openDox-spec #12](opensoft/openDox-spec#12. **Rule 6** — this PR touches `openspec/changes/`. It is brought to READY and **NOT landed**; the lane orchestrator sequences the landing window against the other lanes' `openspec/changes/` PRs. ## What a § 6 closure is, and why this one is not an ordinary archive The packet's own delta states the two admissible dispositions and the obligation that orders them (`openspec/changes/split-opendox-two-layer-product/specs/ideation-dashboard/spec.md`, § THE SIBLING COLLISION): > this change SHALL NOT archive until each of the five is dispositioned — archived, or **closed as re-homed with its successor destination named in the receiving repository** (`tasks.md` § 6). This takes the second form, and **NO DELTA IS PROMOTED HERE**. That is the packet's instruction, twice: *"under RULING Q6 those four changes stop where they stand, so their `## ADDED` blocks never promote HERE and their content is re-authored in the receiving repository"*, and — in this requirement's own per-requirement successor row — *"the requirement is re-promoted in `opensoft/openDox`'s own OpenSpec instance"*. `tasks.md` § 8.5 is the gate it feeds. So the relocation is `git mv` and nothing else. **The governed wrapper REFUSES this packet outright**, which is a stronger reason than the one an earlier draft of this body gave: `archive_change` raises `change has incomplete tasks` for any packet whose `tasks.md` still carries a `- [ ]` line, before the CLI is even resolved — and RULING Q6 freezes all five WITH open boxes, this one at § 3.2. If it ran it would promote, exposing no skip mode (`proposal-support.py . archive --help` lists `--date`, `--final-import-complete`, `--yes`, `--path-mode` and nothing else). **The pinned CLI underneath it is different and this body no longer says otherwise:** `openspec archive` at `1.12.0` DOES take `--skip-specs` — measured on the pinned artifact's own `--help`, and enumerated in the wrapper's docstring at `scripts/proposal-support.py:4133-4135`. A non-promoting archive mode exists; it is reachable only by running the CLI around the wrapper, which that wrapper's own comment records as the failure it was extended to prevent. Running the wrapper and hand-reverting the promotion hunk would have produced this tree through an act whose record said the opposite. **What the wrapper guards is satisfied by hand and checked, not waived.** The packet DOES carry `.openspec.yaml` with an `origin:` block — `origin_errors` and `origin_retention_errors` read exactly that file at the archive gate — and the rename carries it byte-for-byte with no content hunk, so the declaration this closure retains is the one ORIGIN RETENTION would have compared. The directory name is the one the wrapper computes: `<today in UTC>-<id>`. Every byte of `proposal.md`, `tasks.md` and `specs/ideation-dashboard/spec.md` is the byte it carried at `cb2d3a2c` — the diff shows four pure renames — **including `Status: ratified`**. A closure is not a licence to restate what Brett ratified on 2026-08-08. ## The destination, named and measured | | | | --- | --- | | receiving repository | `opensoft/openDox-spec` (the spec leg; **its first OpenSpec change ever** — `openspec/changes/` held only `.gitkeep`) | | receiving change | `openspec/changes/add-composed-view-authoring`, PR [#12](opensoft/openDox-spec#12) @ `ee942e8` | | the delta | 3,557 B, `sha256 1754e5d3f9803ea80b4e8a177fda8359a96d6c4b1024fce69893ee3cb3d716e1` — **the same digest on both sides**, `diff` reports no difference | `tasks.md` § 3.2 — *"Brett creates the first real document from a project view"* — was this packet's one unticked box and **travels OPEN** as § 3.2 of the receiving change. ## THE STALE PIN DISPOSITION, RETIRED ON EXACTLY THE EVENT ITS OWN TEXT NAMED `contracts/openspec-cli-pin.yaml` carried an accepted exception for this change whose `retires_when:` read: > add-composed-view-authoring archives, which needs ONE open box (task 3.2, a Brett act). **ON THAT DAY THIS ENTRY GOES STALE AND EVERY RUN REFUSES until it is deleted.** That is the mechanism working, not a defect. Measured, in that order: ``` # with the packet moved and the entry still standing $ python3 scripts/validate-openspec-cli-pin.py --all REFUSE pin-disposition-stale: the pin disposes findings this run did not produce: • add-composed-view-authoring / ideation-dashboard/spec.md (repo openxFactory) ``` ``` # after deleting the entry $ python3 scripts/validate-openspec-cli-pin.py --all ; echo $? OK openspec-cli-pin: @fission-ai/[email protected] verified against its content address; every target validated --strict with 0 UNDISPOSITIONED failures. … 1 finding(s) are ACCEPTED EXCEPTIONS 0 ``` It did not archive by the route that text predicted — it was closed as re-homed, which freezes it where it stands and carries task 3.2 to the receiving repository — but the corpus effect is precisely the one predicted, and the refusal fired. The doctrine comment that used this change as its worked example is moved to the **past tense** and records that the prediction came true, rather than being re-pointed at some other live change nobody agreed to make an example of. `contracts/manifest.yaml` deliberately carries **no digest** for this pin so that a retirement is a one-file edit ("A digest here would make each of those a two-file edit whose omission reds the required suite on `main`"). ## The self-gates, RE-READ rather than renumbered **`tests/openspec_cli_pin/` — six entries become five.** The enumeration test is renamed (`…_six_dispositions_…` → `…_five_dispositions_…`) and its docstring records this as the **FOURTH movement and the first shrink this repository's own corpus caused**; the three per-entry maps (`DISPOSITION_MEASUREMENT`, `DISPOSITION_CLASS`, `DISPOSITION_AUTHORITY_PREFIX`) drop the key together, which is what `test_every_real_disposition_cites_canon_and_names_who_granted_it` exists to force. **The frozen capture and the live pin part company, and that is structural.** Two tests reconcile `contracts/openspec-cli-pin.yaml` against `tests/openspec_cli_pin/fixtures/openspec-1.12.0-validate-changes-strict-report-findings.json` — real bytes captured on the corpus of 2026-09-05, evidence, never re-cut. The capture still holds the finding; the pin has retired the entry. Before this PR the tests read that parting as a transcription slip, which is the one thing it is not. `DEPARTED_SINCE_THE_CAPTURE` accounts for it and **is not a suppression**: `_departed_since_the_capture()` asserts against the real tree that the active directory is **ABSENT**, that the named archive directory is **PRESENT**, and — from `7debbad5`, on Copilot's reading — that the undispositioned row IS the captured finding, compared through the verifier's own `normalized_finding`. So a live change cannot borrow the exemption, no OTHER finding at that path can borrow it either, and the captured total stays pinned at **two as a SUM** (`len(applied) + len(departed) == 2`). **`tests/doc-health/test_modified_block_currency_self_gate.py`** failed by name with its own WHAT-TO-DO message, exactly as designed, and is re-read the way #1042's third commit re-read the same file. The scenario-title arm's band is still EMPTY and still asserted; its second half — which asserts the DISCHARGE positively so an empty band cannot be mistaken for a broken reader — is re-aimed at the archived delta, read through the same `parse_delta` / `derive_units` pair `active_blocks` uses, so *"delete the marker and both halves fail"* survives the move. The **departure is asserted first**, because a test that read only the archive would pass on a tree where the packet never moved. The carriage ledger goes **fourteen → thirteen**, the row replaced by a note that states the distinction: this row retired **WITHOUT its block being promoted**, so it is a DEPARTURE rather than a DISCHARGE — a promoted row's obligation was carried, this row's obligation moved to another repository. ## THE ONE COST, STATED UP FRONT RATHER THAN DISCOVERED BY THE NIGHTLY `document-lifecycle`'s *Ratified spec deltas reach the promoted specification* (`openspec/specs/document-lifecycle/spec.md:1055`) attaches the promotion obligation to the ARCHIVE ACT and presumes ratification from that act unless the packet declares `draft` or lower. This packet declares `Status: ratified` and that header is not edited — so the obligation attaches, and `scripts/doc_health/promotion_fidelity.py` carries it at `_LAUNCH_SEVERITY = ERROR`. The checker's own action text names both discharges: > apply the ratified delta to the promoted spec through an OpenSpec change, **or record the non-promotion as deliberate** This closure takes the second. The recording vehicle is the one that checker reads — `health/dispositions.yaml` at the **xFactory aggregation root** (`load_dispositions()`, `promotion_fidelity.py:714-786`), keyed `family: promotion-fidelity` / `repo: openxFactory` / `path:` the archived delta, with a `cite`. **That entry is a companion act in the aggregation repository — it cannot live here — and it is filed ONCE for the five § 6 closures rather than five times.** It is NOT `tasks.md` § 6.6, which is the separate rule that no new dashboard change opens in `openxFactory`: the gate these closures feed is § 8.5 and the severity reading is § 8.9's. Named here so the obligation is on the record from the first closure. **The honest caveat, from the loader's own docstring:** a `--single-repo` self-gate run has no aggregation root, so no disposition applies in that scope. Both numbers are reported below; neither is suppressed. ## Evidence at head `7debbad5` (fresh clone of `main` `cb2d3a2c`, submodules initialized) | check | before (clean `main`) | at this head | | --- | --- | --- | | `openspec validate --all --strict` through the pin | `106 passed, 2 failed (108 items)` | `106 passed, 1 failed (107 items)` — one fewer change AND one fewer failure: the closed packet was one of the two pre-existing failures; the survivor is `add-chain-attestation`, untouched | | `scripts/validate-openspec-cli-pin.py --all` | exit 0, 2 accepted exceptions | **exit 0**, 1 accepted exception | | `pytest -q tests/openspec_cli_pin tests/doc-health tests/sequenced_after tests/pin_registrations tests/target_release` | — | **2430 passed**, 0 failed (452 s) | | doc-health `--single-repo . --family promotion-fidelity` | `0 critical, 0 error, 0 warning, 0 info` | **`0 critical, 1 error, 0 warning, 0 info`** — exactly one, this packet's own, quoted in the closure record and disposed by the aggregation companion | | `validate-sequenced-after.py . --ledger-diff` | consistent, 214 rows | **consistent, 214 rows**, the row re-seeded as `{state: archived, … moved_by: "#1056", moved_on: "2026-09-16"}` | ## Copilot's readings, taken at `7debbad5` Four corrections, each verified against this tree rather than conceded — and one of them is a real tightening of a test: 1. **`target_release`** — the record and the README reported `none`, the packet's front matter declares `implemented`; both now quote § 6.4 AS a quotation and report the packet's own declaration beside it. The stale lines are `tasks.md` § 6.4 and `design.md` § D9 — the packet's own amendment to make, flagged to this lane's bookkeeper. 2. **"Both of those always promote"** — false of the pinned CLI (`--skip-specs` measured at `1.12.0`); corrected above, with the stronger true reason stated. 3. **`.openspec.yaml`** — the record said the packet carries none; it carries one with an `origin:` block. Corrected. 4. **`tasks.md` § 6.6** — not the disposition gate; § 8.5 and § 8.9 are. Corrected in record and README. **And `DEPARTED_SINCE_THE_CAPTURE` is now keyed by its captured finding, not only by `(repo, item, path)`.** `reconcile` keys on the normalized finding TEXT as well, so an exemption keyed on the triple alone was WIDER than the matcher: any other blocking finding at that path in the frozen capture would have been swallowed while both tests read green — the exact class of failure that map's own header says a departure is not. The value is now `(archive directory, captured finding)` and the helper asserts the text through the verifier's own `normalized_finding` before exempting anything. **Proven** by mutating one word of the recorded finding (both tests fail) and restoring it (both pass). ## Sibling search 2026-09-16T00:5xZ Open PRs read in all three repositories: openxFactory #1052 #1051 #1050 #1044 #1043 #1035 #1032 #1031 #1029 #594 #518; openDox-spec #11 (`README.md`, `docs/front-end-package-boundary.md` only); openXdox-spec #3. **NOT ONE touches `openspec/changes/add-composed-view-authoring/`, `contracts/openspec-cli-pin.yaml`, the README "OpenSpec Records" block, or `tests/sequenced_after/corpus-ledger.yaml`.** Disclosed rather than skipped: the SHARED checkout at `/workspace/projects/xFactory/openxFactory` (detached, `6612d323`) carries stale uncommitted edits to `openspec/changes/add-nightly-dashboard-refresh/` dated 2026-09-01 — abandoned residue, not a lane's live work; § 6.1 is authored from a clean clone. Refs #656 (stays OPEN). CLAIM [`5690350779`](#656 (comment)). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…§ 6.3, RULING Q6) (#1057) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) **`split-opendox-two-layer-product` § 6.3 — `add-doxchat-model-intake` is CLOSED AS RE-HOMED to `opensoft/openDox`.** The SECOND of the five frozen changes RULING Q6 disposes of (Brett Heap, 2026-09-04T17:49Z, [#656](#656)), and **the first to exercise the harder half of the collision**. Receiving half: **[openDox-spec #13](opensoft/openDox-spec#13. **Rule 6** — this PR touches `openspec/changes/`. Brought to READY, **NOT landed**; the lane orchestrator sequences the window. > **STACKED on [#1056](#1056 (§ 6.4), because both closures edit the README "OpenSpec Records" block at the same anchor and both re-seed the sweep ledger. Base is `change/rehome-composed-view-authoring`; **re-point it to `main` before that branch is deleted** (the lane's standing rule for stacked PRs). The diff shown here is this closure's own. ## Why this one is not just § 6.4 again § 6.4 carried one `## MODIFIED` block, so it touched only half **(a)** of the split packet's § THE SIBLING COLLISION — the four promoted titles a sibling modifies. This packet carries **1 MODIFIED + 4 ADDED**, and the four ADDED are four of the **TWELVE** titles half **(b)** records as *"not in canon and NOT removed here"*: > A `## REMOVED Requirements` block over a title the promoted specification does not carry would be a removal of nothing … They are handled by the re-homing plan instead: under RULING Q6 those four changes stop where they stand, so their `## ADDED` blocks **never promote HERE** and their content is re-authored in the receiving repository. That is the whole argument for the form of this act. Had these four promoted, they would have entered a capability the split packet's `## REMOVED` block **cannot name and therefore cannot remove** — four requirements outliving the capability's exit. **This is the first time half (b) actually lands anywhere.** So the relocation is a `git mv` and nothing else: five pure renames, every byte unedited, `Status: ratified` header included (Brett Heap, 2026-08-21, *"proposal approved"*). **The governed wrapper REFUSES this packet outright** — `archive_change` raises `change has incomplete tasks`, and RULING Q6 freezes the five WITH open boxes (here § 4.1 and § 4.2) — and it exposes no `--skip-specs` if it ran. The PINNED CLI underneath it does take `--skip-specs`, measured at `1.12.0`; that mode is real and is reachable only by running the CLI around the wrapper, which is not this closure's route. (An earlier draft of this body said both commands "always promote"; that was wrong about the CLI and is corrected here and in the record.) ## The destination, named and measured | | | | --- | --- | | receiving repository | `opensoft/openDox-spec` | | receiving change | `openspec/changes/add-doxchat-model-intake`, PR [#13](opensoft/openDox-spec#13) @ `9925fd0` | | the delta | 16,813 B, `sha256 3168ad8f6f31c8dbacdc772d933508943f7b2c7cf373de2357eb8958d4bebee1` — **the same digest on both sides**, `diff` reports no difference | | subject edits owed | **none, and none made**: `grep -c openxFactory` over the delta → **0**. Its subjects are the dashboard backend, the browser, the selector and the adapter | ## What stays, what travels, and what is somebody else's box - **STAYS — the one additive schema enum member.** The approval act's `action` member in `contracts/schemas/gate-action-record.schema.yaml` is already openxFactory contract bytes at `contract-v1.45` and `tasks.md` § 6.3 says it STAYS. Nothing here adds, moves or reverts it; `contract-v1.45` stays true as published. - **TRAVELS OPEN — tasks 4.1 and 4.2** (live-console proof; realization evidence). RULING Q6 freezes the five WHERE THEY STAND, so a closure with open boxes is the ruled disposition rather than an exception to one — the same reading § 6.4 took for its § 3.2. - **NOT THIS CLOSURE'S — the built code**, which moves with the carve as `moved_with_declared_edit` rows of `docs/opendox-carve-manifest.yaml` (§ 3). No code moves here. ## Pinned references: checked BEFORE the move, because that is where § 6.4's real work turned out to be `grep -rn 'add-doxchat-model-intake' --include='*.py' --include='*.yaml' --include='*.yml' --include='*.json'` over `cb2d3a2c` returns **sixteen** hits. **One is a live coupling and it moves in this PR:** `tests/doc-health/test_modified_block_currency_self_gate.py`'s `_LEDGER_SUBJECTS` row, **thirteen named subjects → twelve**, replaced by a note that says it left by **DEPARTURE rather than DISCHARGE** — the block was never promoted, the row leaves because `active_blocks()` no longer reads it. The note also records that this is the LAST movement § 6 makes to that constant: two of the five closures held a row there and both are now gone; the other three hold none. **Two look like couplings and are not**, stated so the next reader does not re-derive them: - `tests/doc-health/test_modified_block_currency_fixtures.py`'s `DELTA351` is a path-shaped LABEL on a RECONSTRUCTED historical text under the synthetic repository `intakeFactory`; it never reads this tree. - `openspec/changes/retire-doxbench-chat-turn-v1/.openspec.yaml`'s `related:` comment naming this change ACTIVE is § 6.2's to re-read. **§ 6.2 carries no ordering against THIS box** — `tasks.md` § 6.2 reads *"Sequenced BEFORE § 8"* and `design.md` § D9 reads *"§ 6.2 sequences it BEFORE this change's archive"*, where *this change* is `split-opendox-two-layer-product` itself; § 8.5 repeats it. This lane running § 6.2 after § 6.3 is permitted, and the record now says so instead of asserting an order the packet does not state. **`contracts/openspec-cli-pin.yaml` carries NO disposition for this change** — checked, not assumed — so § 6.4's `pin-disposition-stale` refusal has no counterpart here. ## The one cost, stated up front Same as § 6.4 and for the same reason: `document-lifecycle`'s *Ratified spec deltas reach the promoted specification* (`openspec/specs/document-lifecycle/spec.md:1055`) attaches the promotion obligation to the ARCHIVE ACT; this packet declares `Status: ratified` and that header is not edited; `promotion_fidelity.py` carries the obligation at `_LAUNCH_SEVERITY = ERROR`. This closure takes the second discharge the checker's own action text names — *"or record the non-promotion as deliberate"* — through `health/dispositions.yaml` at the **xFactory aggregation root**, **filed once for the five closures rather than five times** — not `tasks.md` § 6.6, which is the separate rule that no new dashboard change opens here; the gate is § 8.5 and the severity reading is § 8.9's. Because this packet carries five requirements rather than one, its entry is the coarse path-keyed form, which disposes every finding the family raises against this one delta file. A `--single-repo` self-gate run has no aggregation root and applies no disposition (the loader's own docstring says so), so that run reports these findings until § 5 removes the capability; both numbers are reported, neither suppressed. ## Evidence at head `06e10e53` | check | § 6.4's head (`7debbad5`) | at this head | | --- | --- | --- | | `validate-openspec-cli-pin.py --all` | exit 0, `106 passed, 1 failed (107 items)` | **exit 0**, `105 passed, 1 failed (106 items)` — one fewer item, the survivor still `add-chain-attestation` | | `pytest -q tests/doc-health/test_modified_block_currency_self_gate.py` | 19 passed | **20 passed** — the extra is this PR's new departure test | | sweep ledger `--ledger-diff` | consistent, 214 rows | **consistent, 214 rows**, row re-seeded `{state: archived, … moved_by: "#1057", moved_on: "2026-09-16"}` | | doc-health `--single-repo --family promotion-fidelity` | **1 error** | **6 errors** — **five are this closure's**, one per authoritative requirement: four ADDED titles absent from canon, plus the MODIFIED block's one uncarried scenario. Each is quoted in the closure record, and all five are disposed by the single coarse path-keyed aggregation entry | ## Copilot's readings, taken at `06e10e53` - **The count was wrong and the correction is a measurement.** This body and the record carried ONE promotion-fidelity finding — § 6.4's number read across to a packet with five requirements. `promotion_fidelity` emits one per authoritative requirement, so this delta raises FIVE and the family reads 6 at this head. Corrected in both places, with the five findings quoted. - **§ 6.2's sequencing was stated backwards** and is now stated as the packet states it (above). - **The archive-route rationale is narrowed** to what is true of the pinned CLI (above). - **`tasks.md` § 6.6 is not the disposition gate** — § 8.5 and § 8.9 are. Corrected in record and README. - **The closure itself is now asserted, not implied.** `_LEDGER_SUBJECTS` loses a row identically whether a packet was RE-HOMED or DELETED, so the missing row was no evidence of the act RULING Q6 ordered. `test_the_re_homed_packets_left_the_active_corpus_and_stand_whole_in_the_archive` asserts, in this order: the packet is ABSENT from `openspec/changes/`; the archived delta EXISTS; and it still parses through the family's own `parse_delta` carrying the MODIFIED block AND each of the four ADDED titles whose non-promotion this closure records as deliberate. Those four are the same four `promotion_fidelity` reports absent from canon, so a drift in either shows up here. **Proven**: change one recorded title and the test fails; restore it and it passes. ## Sibling search 2026-09-16T01:2xZ Open PRs in all three repositories: openxFactory #1056 (this lane's § 6.4), #1052 #1051 #1050 #1044 #1043 #1035 #1032 #1031 #1029 #594 #518; openDox-spec #13 and #12 (this lane's), #11 (`README.md` + `docs/front-end-package-boundary.md` only); openXdox-spec #3. **NOT ONE touches `openspec/changes/add-doxchat-model-intake/`.** **Corrected on Copilot's reading:** the files shared with #1056 are the README "OpenSpec Records" block, the sweep ledger AND `tests/doc-health/test_modified_block_currency_self_gate.py` — #1056 re-aims its scenario-arm test at the archived composed-view delta and retires that row, this PR retires the doxchat row and adds the departure test, and #1060 inherits both. All three are this lane's own and sequenced by stacking rather than raced; the stack's landing order is #1056 → #1057 → #1060, each re-pointed to `main` as its base merges. Refs #656 (stays OPEN). CLAIM [`5690514951`](#656 (comment)). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
… the no-record WHEN narrowed (ratifier's amendment), the block promoted (PR #1052 → f8eba34; code_surface none); the archive directory keeps its 2026-09-17 ACT date — the re-date RULED out, the landing route measured instead (#1089) Lane: openxfactory-2 (openXfactory-2) **TWO ACTS OF THE SAME RATIFIER, IN THAT ORDER — an AMENDMENT, then the ARCHIVE.** `scope-pinned-arm-root-naming` was RATIFIED by PR #1052 → `f8eba3455c0a35d2f5e2be91edbe2526063085e4` and carried ONE open question into its own ratification record. Both words below are Brett Heap's, first-hand, in session to lane `openxfactory-2`, on 2026-09-17. **THE ARCHIVE WORD** — verbatim ***"merge 1051 when green, then archive 1047"***, recorded at [#1047 comment 5714241892](#1047 (comment)). **THE RULING** — an interactive multiple-choice selection, verbatim ***"Apply the narrowing"***, recorded at [#1047 comment 5714432684](#1047 (comment)), answering the RULING NEEDED this packet's record posted on 2026-09-16 (5701322989). ## (1) THE AMENDMENT, APPLIED BEFORE THE BLOCK PROMOTED The sibling scenario *A pinned target names a pin no resolution root carries*'s WHEN: **BEFORE** (as ratified at `92d3e0e2`): "…and no pin record for `<pin-id>` exists under any root of the run's precedence, **and at least one resolution root was selected for the run**" **AFTER** (as amended, and as promoted): "…and no pin record for `<pin-id>` exists under any root of the run's precedence, **and at least one selected root whose boundary was successfully searched**" **WHY.** `_pinned_arm` appends a root to `searched` only AFTER that root's `contracts/` directory clears `boundary_dir` (`scripts/doc_health/families.py:1604-1613`); a root whose boundary check fails draws its OWN finding instead and never reaches `searched`. Where EVERY root `_pin_roots` returns fails that check, `searched` stays empty, the `if searched:` guard (`:1633`) never fires, and NO aggregate no-record finding is emitted — so the round-1 WHEN described, on that one path, a finding the realized arm does not emit. Nothing is left uncovered: the independent scenario *A root's contracts directory is itself a symlink* already requires the per-root boundary finding for each refused root. It is BYTE-FOR-BYTE the text fix round 5 applied in the lane's own name (`7055e475`) and fix round 6 reverted (`d138a99d`) — now applied by the only authority that could. **Recorded as an AMENDMENT BY THE RATIFIER in the 2026-09-01 form** (`add-requirement-ref-resolution-integrity/review/ratification-2026-09-01.md`): an **"AMENDED SINCE"** pointer near the head of `review/ratification-2026-09-16.md` and a dated **Addendum, 2026-09-17** at its foot, with `Amended by:` header lines on `proposal.md`, `design.md` and `tasks.md`. The 2026-09-16 body and addendum are left EXACTLY as written, as the evidence of what was true before the word came. ## (2) WHAT THE ARCHIVE DID `python3 scripts/proposal-support.py . archive scope-pinned-arm-root-naming --yes` (never bare `openspec`). **`code_surface: none`**, so under `release-realization` the packet archives ON LANDING PLUS ITS OWN TASK LIST, and `tasks.md` § 3 was the whole of what was owed. - **ORIGIN RETAINED** — the tool's own line, "declaration unchanged since the ratifying commit `f8eba3455c0a`". Independently proven: `.openspec.yaml` is blob `4c0a92d1` at `f8eba345` and blob `4c0a92d1` here, and no commit touched the packet between that merge and this act. - **PROMOTION MEASURED BYTE-IDENTICAL** — canon's *Prose tagging marker hygiene* and the `## MODIFIED` block are both **41,984 bytes, sha256 `c009f5cc3e4aa5aa…`** (the requirement text from its `### Requirement:` line, canon's trailing blank separator excluded on both sides — PR #1042's convention); canon `--numstat` **+21 −8**. - Packet moved to `openspec/changes/archive/2026-09-17-scope-pinned-arm-root-naming/`; **§ 3.1 and § 3.2 ticked** with ARCHIVED annotations citing the word, and § 3's heading now reads ARCHIVED. - **§ 3.2's `_LEDGER_SUBJECTS` row DID exist and is RETIRED** with a note in its place, the gate's population narrative and docstring saying which subject moved and why (fifteen → fourteen). - **README**: the active bullet retired, the archived-ledger entry added. - **THE FIVE HISTORY-LABELLING CORRECTIONS RULED ACCEPT at round 7 of PR #1052** are folded here as non-normative: the figures labelled BY ROUND (at filing 2 hunks, 17/4, 1 uncarried, 7 new; after round 1's WHEN clause 3, 18/5, 2, 8; from round 5 onward 4, 21/8, 3, 9); `proposal.md` separating the filing generation from round 1's WHEN edit; the record's "ALL FOUR ARE NON-NORMATIVE" corrected to "no LASTING normative change — round 5 was the temporary normative edit, reverted in round 6"; and `tasks.md` § 2.1's "no approval pair claimed" marked as the at-authoring state of 2026-09-15. ## THE #1075 INTERACTION PR #1075 → `a93d2682` ordered `adopt-entry-grain-dispositions-form` AFTER this packet and carried this scenario into that packet's `## MODIFIED` block VERBATIM. **That carried copy is re-based to the amended WHEN in the same act, under the same ruling** — a carried copy left at the superseded wording would be the very drift the carriage was performed to prevent. Its record gains a dated **"Addendum 2, 2026-09-17"** entry, kept distinct from and pointing at the **"Addendum, 2026-09-17 — carriage on the ratifier's word"** that PR #1082 → `98b172e5` landed there earlier the same day (the merge below keeps BOTH, unedited, in the order the two words were given). **Nothing else of that packet moves** — it still adds EXACTLY ONE scenario of its own, *A pin record's optional dispositions member carries a malformed entry*. Measured against canon AS PROMOTED: **canon 215 units, that block 223, ZERO uncarried and EIGHT new** — its own scenario title and its seven bullets, and nothing else. ## VALIDATION (at `65357341`, after merging `origin/main` at `88a1047`) - `OPENSPEC_TELEMETRY=0 openspec validate --all --strict` → **Totals: 106 passed, 2 failed (108 items)**; `origin/main` reads **107 passed, 2 failed (109 items)** — ONE FEWER ACTIVE CHANGE, the same two pre-existing failures (`add-chain-attestation`, `add-composed-view-authoring`). - `python3 scripts/proposal-support.py . verify` → **ok**. - `doc-health.py --single-repo . --family modified-block-currency` → **14 info, 0 error/critical**; `origin/main` reads **15 info**, and the ONLY difference is this packet's retired row. None unnamed; none for `adopt-entry-grain-dispositions-form`. - `doc-health.py --single-repo . --family ratified-provenance` → **27 critical, ROW FOR ROW IDENTICAL to main** (compared in same-kind checkouts). - `python3 scripts/validate-sequenced-after.py .` → **passed** (46 active, 15 declaring); it raises no objection to any `sequenced_after` target now being archived. - `pytest -q -p no:cacheprovider tests/doc-health/test_modified_block_currency_self_gate.py` → **19 passed**. - `pytest -q -p no:cacheprovider tests/sequenced_after tests/doc-health/test_modified_block_currency.py tests/proposal-support` → **626 passed, 291 subtests, 3 failed** — the sweep-ledger staleness ONLY, BY DESIGN until the re-seed commit that needs this pull request's number, **and all three are green at `8c72d2ec`** (`tests/sequenced_after` → **286 passed**). - `pytest -q -p no:cacheprovider tests/doc-health` → **1826 passed**. **Re-run at the final head `8c72d2ec`:** `openspec validate --all --strict` → **106/2 (108)**; `proposal-support.py . verify` → ok; `--family modified-block-currency` → **14 info**, zero rows naming either `scope-pinned-arm-root-naming` or `adopt-entry-grain-dispositions-form`; `--family ratified-provenance` → **27 critical, row for row identical to main**; `--ledger-diff` → **"per-change sweep ledger consistent with the corpus (216 rows)"**; `pytest tests/doc-health/test_modified_block_currency_self_gate.py tests/doc-health/test_modified_block_currency.py tests/proposal-support` → **362 passed, 291 subtests**. **Commits.** `459d816a` performed the two acts (a previous author, who died before validating them); `572ff8a0` merges `origin/main` at `88a1047`, one conflict, one file, BOTH SIDES KEPT; `65357341` is the verification pass and its three corrections — § 3.1's byte figures were the PRE-amendment measurement (41,970 / `f4f2e807…`) and are re-measured to 41,984 / `c009f5cc…`, § 3's heading moved from OPEN to ARCHIVED, and the carried record's addendum is described as it now is; `8c72d2ec` re-seeds the per-change sweep ledger (`--seed-ledger --moved-by '#1089'` → 216 rows, ONE moved: `scope-pinned-arm-root-naming` active→archived, `#1052`→`#1089`, 2026-09-15→2026-09-17) and names PR #1089 in the README archived-ledger entry. **Lands under Rule 6 AFTER PR #1051 lands, on the word's order** ("merge 1051 when green, then archive 1047"). This pull request touches `openspec/changes/`. openxFactory #1047 closes by the lane's hand after the ARCHIVED record, not by a keyword. **Fix round 2 (`534f065a`)** — Copilot at `8c72d2ec` (one thread, one suppressed), both RULED ACCEPT, non-normative: the archived tasks.md header paragraph now states the archive act WAS performed and recorded in § 3 (word "merge 1051 when green, then archive 1047", citation 5714241892) with the old reading labelled as the at-filing state; design.md's verification commands are labelled PRE-ARCHIVE historical evidence with the heads they ran at, and a new § 5 gives post-archive equivalents run verbatim against the archived block and canon (0 hunks vs live canon; units now 215/215/0 uncarried/0 new; modified-block-currency 14 info naming nothing of this change; promotion-fidelity 0). Validation: `--all --strict` 106/2 (pre-existing); proposal-support ok; self-gate 19 passed; ledger consistent (216). Thread replied and resolved; 0 open. Lands AFTER PR #1051, on the word's order. **Merged origin/main `5dd0a8dc` (`062fc6de`)** — carrying `893abe97` (PR #1088, the ratifier's partition amendment of `adopt-entry-grain-dispositions-form`), `53769f9e` (PR #1051) and `5dd0a8dc` itself (PR #1076, lane `openxfactory-5`'s archive of `gate-code-surface-declarations`). THREE conflicts, every one resolved by KEEPING BOTH WRITERS; the carried packet's spec delta merged with NO conflict and carries BOTH — #1088's partition clause, byte-unchanged and authoritative, on this branch's re-based sibling WHEN. The ratification record keeps BOTH addenda, ordered by their rulings' timestamps (carriage 12:12:49Z → this branch's Addendum 2, the narrowing, 12:34:53Z → #1088's partition addendum 12:34:55Z), neither text edited; its "AMENDED SINCE" pointer now counts THREE acts rather than two. README keeps both archived-ledger entries. The self-gate keeps main's `adopt-entry-grain-dispositions-form` row whole and applies this archive's retirement of the `scope-pinned-arm-root-naming` row over it: `len(_LEDGER_SUBJECTS)` MEASURED **15** (16 raw literal entries, the pre-existing `add-chain-attestation` duplicate collapsing as before), so the chronology reads 15 → 16 → 15, not 15 → 14. **EVERY FIGURE THE MERGE INVALIDATED IS RE-MEASURED AND CORRECTED** wherever this branch stated it: the carriage ledger is **15 `info`** rows (was 14) and `adopt-entry-grain-dispositions-form` measures **canon 215 units, block 223, TWO uncarried, TEN new** (was ZERO/EIGHT) — the carriage itself is WHOLE, the two uncarried units being the positive-resolution WHEN and disjointness bullet that packet's OWN ratifier moved. Validation at `062fc6de`: `openspec validate --all --strict` **108 passed / 2 failed (110 items)**, the same pre-existing pair; `proposal-support.py . verify` ok; `--ledger-diff` consistent (**219 rows**); `--family modified-block-currency` **0 critical / 0 error / 0 warning / 15 info**, none naming this packet, none unnamed; `--family promotion-fidelity` **0 findings**; self-gate **19 passed**; `pytest tests/doc-health` **1843 passed**; `pytest tests/sequenced_after` **286 passed**. **RULED — THE RE-DATE IS REVERTED (`122fdda6`). THE DIRECTORY KEEPS ITS ACT DATE: `openspec/changes/archive/2026-09-17-scope-pinned-arm-root-naming/`, `moved_on: "2026-09-17"`.** `bd758b29` had moved the directory to `2026-09-18-…` so the landing would agree with the gate; lane `openxfactory-2` RULED that act back out on ratified doctrine. `docs/document-lifecycle.md:556` — *"RENAMING IS NOT THE REMEDY: history is history, every citation stands"* — and the four-cause paragraph at `:559-575` names this exact shape as CAUSE 2, *"a correct archive whose commit fell on the next UTC day … Each of those is a lawful disposition once MEASURED, naming its own cause"* (issue #812, Brett Heap 2026-09-08). A landing that slips a day is dispositioned, not renamed. The revert is byte-exact against the pre-re-date tree — `git diff 9f98270 HEAD` over those nine paths is empty — and `git grep '2026-09-18-scope-pinned'` returns nothing. Every reference came back with it: the README archived-ledger entry and its two links, the corpus-ledger row, `tasks.md` § 2.1/§ 3.1, `design.md` § 5's `ARCH` path and preamble, and the `modified-block-currency` self-gate's retirement note. **THE ACT ITSELF NEVER MOVED:** the wrapper owned the clock (#797) and named `2026-09-17-…` when it ran on Brett Heap's archive word; `459d816a`, committer-dated 2026-09-17T12:47:06Z, is that act. **THE LANDING ROUTE IS MEASURED, NOT ASSUMED — and the measurement changes the answer.** The earlier reasoning assumed a squash landing and therefore an unavoidable red `main`. `sequenced_after.adding_commits` runs ONE walk over the whole archive root — `git -c core.quotePath=false log --diff-filter=A --reverse --no-renames --format=%x00%H%x09%cI --name-only -- openspec/changes/archive` — oldest-first with `setdefault` keeping the FIRST add of each name, no `--first-parent`, and deliberately no `-M`. BOTH landings of this head were simulated in a scratch worktree, twice: first against `origin/main` at `cb0f8544` and then RE-MEASURED at `df466597` against `origin/main` at `3e32d987` after it moved. **The verdict is stable across both bases.** Re-measured figures: | route | sim commit | OUR directory attributed to | findings | |---|---|---|---| | pristine `origin/main` (baseline) | `3e32d987` | not landed | **1** — main's own | | **MERGE COMMIT** (`--no-ff`) | `f6d739ef4ec9dfc3961e7a78cc8d790f72148331` | `459d816a…` — **2026-09-17** | **1** — main's own, unchanged | | SQUASH | `5e2fff5f5c1daf77fd49d443f8a4f5e209c4ce71` | the squash commit — **2026-09-18** | **2** — main's own **plus ours** | - **MERGE COMMIT — adds NOTHING.** The merge is TREESAME to the branch parent for that path, so the path-limited walk follows the branch and the OLDEST add of the name remains the archive act: `adding_commits()` returns `('459d816a300634d1ad79e7f3a4ef733d69092b3f', '2026-09-17')`. `pytest -q tests/sequenced_after` → **3 failed, 283 passed**, the failure set BYTE-IDENTICAL to pristine `origin/main`'s. Against the earlier green base `cb0f8544` the same simulation (`38e49539…`) was **fully green: validator exit 0, 286 passed**. - **SQUASH — adds exactly ONE finding.** The branch's commits are absent from `main`, so the only add of the directory is the squash commit: `archive-date-vs-commit: 2026-09-17-scope-pinned-arm-root-naming: dated 2026-09-17, added 2026-09-18 by <squash sha> — undispositioned`. Same one finding against the earlier base (`a8c41db2…`). **THEREFORE: LAND THIS WITH `gh pr merge --merge`, AND NO DISPOSITION IS OWED.** Under a merge-commit landing the directory's name and its adding commit agree IN HISTORY, which is exactly what the arm asks. Only a squash landing makes the cause-2 disposition due — and only then can it be written, since `tests/sequenced_after/archive-date-dispositions.yaml` requires a FULL 40-character `adding_commit` (`DISPOSITION_KEYS` + `FULL_SHA`; the loader raises and the CLI answers CANNOT RUN / exit 2 on a missing or abbreviated one), there is no sha-less or directory-plus-PR key, and the record's own header refuses a pre-emptive entry in terms: *"ENTRIES ARE ADDED ONLY FOR A MEASURED DISAGREEMENT, AND NEVER IN ADVANCE"*. In that case the follow-up entry cites `directory: 2026-09-17-scope-pinned-arm-root-naming`, `directory_date: "2026-09-17"`, `adding_commit: <squash sha>`, `commit_date_utc: "2026-09-18"`, a `fact:` naming cause 2 (act `459d816a` on 2026-09-17T12:47:06Z UTC; the landing fell on the next UTC day) and this ruling — the exact row is staged in the lane's `findings/LANDING-ROUTE-1089.md`. Copilot's three threads asked for precisely this route; all three are **RULED ACCEPT, replied and resolved (0 open)**. **⚠️ `main` IS CURRENTLY RED ON THIS ARM, AND IT IS NOT THIS BRANCH.** `origin/main` at `3e32d987` fails `scripts/validate-sequenced-after.py .` on its own: `archive-date-vs-commit: 2026-09-16-add-composed-view-authoring: dated 2026-09-16, added 2026-09-18 by 3e32d98 — undispositioned`. [PR #1056](#1056) landed by SQUASH this morning and produced cause 2 in the live corpus. This branch INHERITS it through the merge of main; it is another lane's packet and another lane's ruling to cite, so nothing is written for it here. It is the #1076 → #1099 pattern repeating — and it is the live proof that a post-landing disposition is the routine, accepted remedy, which is what this ruling rests on. **Required CI on this PR will be red on those three inherited tests until #1056's finding is dispositioned on `main`; compare against pristine `origin/main` before attributing it here.** **VALIDATION at `df466597`** — the reverted head after merging `origin/main` at `3e32d987` (ONE conflict, README's "Archived changes:" block, resolved by KEEPING BOTH WRITERS: this branch's `scope-pinned-arm-root-naming` entry above main's `add-composed-view-authoring` entry, reverse-chronological as the block is, neither text edited): `OPENSPEC_TELEMETRY=0 openspec validate --all --strict` → **108 passed, 1 failed (109 items)** — the pre-existing pair is now a single pre-existing failure, `add-chain-attestation`, because main's #1056 closed `add-composed-view-authoring` out of the active corpus; `python3 scripts/proposal-support.py . verify` → **ok**; `python3 scripts/validate-sequenced-after.py . --ledger-diff` → **consistent (219 rows)**; `pytest -q -p no:cacheprovider tests/doc-health/test_modified_block_currency_self_gate.py` → **19 passed**; `pytest -q -p no:cacheprovider tests/sequenced_after` → **3 failed, 283 passed, ALL THREE INHERITED** (identical at pristine `origin/main`). At the pre-merge head `b8015cd0`, against the then-green `cb0f8544`, the same set was **FULLY GREEN**: validator green on both arms (`13 disposition(s) in force`), `--ledger-diff` 219 rows, `tests/sequenced_after` **286 passed**, self-gate 19 passed, `--all --strict` 108/2 (the pair), `proposal-support` ok. **THE BRANCH'S OWN ADDING COMMIT FOR THE DIRECTORY IS `459d816a` (2026-09-17 UTC) — IT AGREES WITH THE NAME**, so no entry is written here; an entry written now would be reported STALE and would red the run, which is the record's intended answer. **RE-MEASURED AT `4bcbde5d` AGAINST `origin/main` = `4ccab7b9`, AND THE ROUTE IS UNCHANGED.** `main` moved twice more since `df466597`: `bbd1cca8` ([#1106](#1106), lane `openxfactory-4`'s disposition row for `2026-09-16-add-composed-view-authoring`, citing squash `3e32d987`) and `4ccab7b9` ([#1057](#1057), that lane's archive of `2026-09-16-add-doxchat-model-intake`, landed as a MERGE COMMIT whose branch history carries `d8ff2ec2` — the ORIGINAL wrapper commit that created the composed-view directory). Because the arm walks `git log --diff-filter=A --reverse --no-renames` with NO `--first-parent` and keeps the FIRST add, that merge RE-ATTRIBUTED an already-landed directory: `2026-09-16-add-composed-view-authoring`'s adder is now `d8ff2ec2`/2026-09-16, which AGREES with its name, so #1106's row — written for the squash — reads STALE and `main` is red on its own arm (run 35350757712). **THE MERGE INTO THIS BRANCH:** ONE conflict, again the README "Archived changes:" block, resolved by KEEPING BOTH WRITERS — this branch's 2026-09-17 entry above main's two 2026-09-16 closures, main's order between those two untouched, neither text edited. One non-normative bookkeeping correction travels with it, in the practice `c5ddc0c3` set on the other side of the same file: three `_LEDGER_SUBJECTS` rows have now retired on THREE separate branches, and each of the self-gate docstring's three "MEASURED AT THIS HEAD" readings was taken on a tree that did not hold the other two retirements, so a dated paragraph RE-MEASURES at this merged head — THIRTEEN, 14 literal entries / 13 unique — instead of subtracting from a superseded numeral a third time. Neither lane's own paragraph is touched, and the exact-set assertion compares sets, not counts. **THE TWO SIMULATIONS, RE-RUN IN A SCRATCH WORKTREE OFF `4ccab7b9`.** MERGE COMMIT (`git merge --no-ff`, sim `8b22e9b1`): this branch's directory `2026-09-17-scope-pinned-arm-root-naming` attributes to **`459d816a300634d1ad79e7f3a4ef733d69092b3f` / 2026-09-17** — it AGREES with the name and emits nothing; the validator reports **1 finding, `main`'s own STALE**, and `pytest -q -p no:cacheprovider tests/sequenced_after` → **4 failed, 282 passed**, the failing set BYTE-IDENTICAL to pristine `4ccab7b9`'s. **THIS LANDING ADDS NOTHING.** The REVERTED `2026-09-18-scope-pinned-arm-root-naming` path (added by `bd758b29`, removed by `122fdda6`) does appear in `adding_commits()` — `('bd758b29…', '2026-09-18')` — but is NOT on disk, and `archive_commit_problems` measures only directories present on disk, so it produces **no finding**. SQUASH (`git merge --squash`, sim `2de88a9c`): the directory attributes to the squash commit, **2026-09-18**, and the run reds with **2 findings** — `main`'s STALE plus `archive-date-vs-commit: 2026-09-17-scope-pinned-arm-root-naming: dated 2026-09-17, added 2026-09-18 by 2de88a9c… — undispositioned` (4 failed, 282 passed, two findings inside). The recommendation is unchanged: **`gh pr merge 1089 --merge`**. **VALIDATION at `4bcbde5d`:** `OPENSPEC_TELEMETRY=0 openspec validate --all --strict` → **107 passed, 1 failed (108 items)**, the single pre-existing `add-chain-attestation`, measured beside pristine `4ccab7b9`'s **108 passed, 1 failed (109 items)** on the same item — the one-item difference is this archive leaving the active corpus, and no failure is added; `python3 scripts/proposal-support.py . verify` → **ok** (rc 0); `python3 scripts/validate-sequenced-after.py . --ledger-diff` → **consistent (219 rows)**, rc 0; `pytest -q -p no:cacheprovider tests/doc-health/test_modified_block_currency_self_gate.py` → **20 passed**; the plain `python3 scripts/validate-sequenced-after.py .` on this branch → the ONE inherited STALE finding and nothing else. **The required pytest suite is RED at this head and the red is `main`'s own** — #1057's merge-commit history re-dated `add-composed-view-authoring`'s adding commit and stranded #1106's disposition row. It is not this pull request's finding, this pull request adds none, and it clears when that row is removed on `main`. **Merged origin/main `dc242f3a` (`edcdb008`).** refs #1047 🤖 Generated with [Claude Code](https://claude.com/claude-code) ## Summary by Sourcery Apply the ratifier-approved narrowing, promote the validated requirement changes, and archive scope-pinned-arm-root-naming. Bug Fixes: - Narrow the pinned-target no-record scenario so it applies only when at least one selected root has been successfully searched, matching the realized health-check behavior. Enhancements: - Archive the ratified scope-pinned arm root-naming change while preserving its ratification history and 2026-09-17 archive date. - Promote the modified document-lifecycle requirements into canon and update the ordered carried copy in adopt-entry-grain-dispositions-form to match the ratifier's amendment. - Retire the archived change's modified-block currency ledger entry and update the corpus and README archive records. Documentation: - Update archived proposal, design, task, and ratification records with the amendment, archive evidence, and post-archive verification details. Tests: - Update modified-block currency self-gate expectations and corpus-ledger state for the archived change. Chores: - Preserve the archive date and document measured landing-route guidance without adding a premature archive-date disposition.
…endox § 6.1, RULING Q6) (#1060) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) **`split-opendox-two-layer-product` § 6.1 — `add-nightly-dashboard-refresh` is CLOSED AS RE-HOMED to `opensoft/openXdox`.** The THIRD of the five frozen changes RULING Q6 disposes of, **the only one whose destination is openXdox**, and the one § 6.1 itself calls *"the one genuine conflict RULING Q6 names"*. Receiving half: **[openXdox-spec #15](opensoft/openXdox-spec#15 — **the first change RE-HOMED INTO openXdox** (not that repository's first OpenSpec change: it already carries the archived `2026-09-11-add-openxdox-projection-surfaces` and the promoted `openspec/specs/openxdox-projection-surfaces/`, measured 2026-09-18). **Rule 6** — this PR touches `openspec/changes/`. Brought to READY, **NOT landed**; the lane orchestrator sequences the window. > **LANDING ORDER, SETTLED.** This PR was stacked on [#1057](#1057) (§ 6.3) and, through it, on [#1056](#1056) (§ 6.4), because all three edit the README "OpenSpec Records" block at the same anchor and each re-seeds the sweep ledger. **Both have LANDED** — #1056 at `3e32d987` (squash) and #1057 at `4ccab7b9` (merge commit) — and this PR's base **is already `main`**; the re-point is done, not owed. It needs no squashed-base recipe: #1057's merge-commit form left the chain's ancestry intact, so `git merge origin/main` was clean. **Land by `--merge`**: a squash would re-date this packet's archive directory and red `main`, which is exactly what #1106/#1109 had to repair after #1056's squash. ## Two capability deltas, disposed on different terms — that IS § 6.1 | delta | disposition | how it travelled | | --- | --- | --- | | `ideation-dashboard`<br>1 ADDED + 1 MODIFIED | re-homes whole to openXdox. The MODIFIED, *Runtime snapshot fetch with baked fallback and displayed freshness*, is one of the FOUR promoted titles the split packet's § THE SIBLING COLLISION table (a) names | **BYTE-IDENTICAL** — 6,663 B, `sha256 50fd14ba376b9c718b28d219ccdc402593ee93e65be619a950d8eed5923b56e6`, `diff`-verified against #15. `grep -c openxFactory` over it → **0**, so no subject edit was owed and none was made | | `doc-health`<br>7 ADDED | § 6.1: *"they do NOT travel and are NOT added to `openxFactory`"* | **Satisfied absolutely**: this closure promotes NO delta at all, and at the destination they land on openXdox's own `openxdox-refresh-lane` — never on a `doc-health` capability. Carried with **exactly one line changed**, the delta file's capability heading | `design.md` § D9 reads the refresh lane as **projection-mechanism work**, which is why this one goes to openXdox while the other four go to openDox. ## THE ONE SUBSTANTIVE JUDGEMENT IN THIS ARC, DECLARED RATHER THAN BURIED § D9 asks that the seven be *"re-authored against the adapter IN openXdox"*. **That re-authoring is NAMED at the destination, not performed.** § 6.4's and § 6.3's deltas contained the string `openxFactory` **zero** times and travelled untouched. These seven are openxFactory-nightly-specific in their **ANTECEDENTS**, not in a subject noun — *"The nightly doc-health run SHALL include an ideation-dashboard IMAGE REFRESH lane"*, *"the aggregation's `openxFactory` submodule pin"*, the Omnigent artifact worker, a named registry. Re-pointing that is not the carve seam's declared subject edit (*"the subject `openxFactory SHALL` becomes the receiving repository's"*); it is a rewrite of what each obligation is ABOUT. **And the adapter does not exist in any corpus today.** `corpus-adapter-seam` is an unpromoted delta of this same packet; the successor capability id is its § 5.2a, unbuilt. Seven requirements authored against an undeclared seam would have to be authored again the moment the seam is declared. So openXdox-spec #15 carries the re-authoring as a blocked open box (`tasks.md` § 2.1) and **bars ratifying the seven** until it lands (§ 2.2) — openXdox would otherwise be ratifying obligations about another repository's nightly run. **If Brett rules it should be performed now rather than named, this lane will take that ruling and re-do the receiving change under it.** ## THE LOCKSTEP PAIR THIS ARCHIVE RETIRES `scripts/target-release-register.yaml` carried an `implementation_pending` entry for this change. Its own `retires_when:` read: > the declaration is corrected to the target it realizes on, **or the packet archives**. It archived — by the **second limb**, and by a route its author did not have in view: closed as re-homed rather than realized. The register effect is exactly the one the text named: the declaration leaves the ACTIVE corpus the register scans, and **`Report.stale` REFUSES until the entry is deleted**, so the entry MUST go. **THE PAIR IS A DIFFERENT OBLIGATION, AND THIS BODY SAID OTHERWISE.** An earlier draft — and the record, the register comment and the test comment with it — attributed the `CLOSED_REGISTER` deletion to a rule in `scripts/target_release.py`. The module says the opposite in its own words: > **A BASELINE MAY BE A STRICT SUPERSET, AND USUALLY WILL BE**: removal is lawful (a corrected declaration or an archived packet retires its entry, and `Report.stale` REFUSES until the entry is deleted), so a pair stays here after its entry goes. **This is a ceiling, never a floor.** Its *"in the same pull request, where the diff shows the act for what it is"* sentence governs **ADDING** a pair the baseline does not carry — the addable direction the register refuses — not removing one. Copilot read that correctly, and all four places are corrected at `e24a63fc`. So the pair moves as a **DELIBERATE BASELINE SHRINK**: lawful, in the same diff as the entry because that is where the movement is legible, and taken at all because a ceiling left standing over a retired entry is a line nothing reconciles again. The baseline falls from **21 pairs to 20**, `tests/target_release/test_target_release_gate.py`'s size literal follows it, and each carries the reason beside it rather than being renumbered. `pytest -q tests/target_release` → **96 passed**. This is the same class of coupling § 6.4 found at `contracts/openspec-cli-pin.yaml`, and it was found the same way: **by grep before the move**, not by a red gate after it. ## The other twelve grep hits are citations BY IDENTITY, and none is edited `scripts/dashboard-refresh-nightly.py`, `scripts/ideation_dashboard/dashboard_refresh_lane.py`, `.github/workflows/doc-health-reusable.yml`, two `tests/ideation-dashboard/` suites, `tests/sequenced_after/test_sweep.py`'s MOVEMENT LOG narrative, this repository's own `modified-block-currency` note, and two archived `.openspec.yaml` files. Every one stays true unedited under `release-realization`'s *A packet reference resolves by identity, not by path* (landed 2026-09-15): the archive relocation moves the path and keeps the identity. **No archived byte is touched.** `contracts/openspec-cli-pin.yaml` carries no disposition for this change — checked, not assumed. ## What stays - **The aggregation-side artifact-only worker** (`tasks.md` § 6.1). No workflow moves, here or at the destination. - **`doc-health` itself**, unchanged in both directions: nothing added to it, nothing taken from it. ## Evidence — first taken at `e24a63fc`, RE-MEASURED since `e24a63fc` is HISTORICAL: it was this branch's tip when the figures below were first taken. The promotion-fidelity figure was **re-measured at `36ff06a9`** (the merge of `main` after § 6.3 landed) and reads the same — `0 critical, 15 error, 0 warning, 0 info`, nine of the fifteen this packet's. The current head is **`a677fa7b`**, where the plain `validate-sequenced-after.py .` is exit 0 and **402 passed** across the doc-health self-gate, `tests/sequenced_after` and `tests/target_release`. | check | clean `main` `cb2d3a2c` | at this head | | --- | --- | --- | | `validate-openspec-cli-pin.py --all` (`openspec validate --all --strict` through the pin) | exit 0, `106 passed, 2 failed (108 items)`, 2 accepted exceptions | **exit 0**, `104 passed, 1 failed (105 items)`, 1 accepted exception — three fewer items (the three closed packets), survivor still `add-chain-attestation` | | `pytest -q tests/openspec_cli_pin tests/doc-health tests/sequenced_after tests/pin_registrations tests/target_release` | — | **2431 passed**, 0 failed (452 s) | | `pytest -q tests/target_release` | — | **96 passed** | | sweep ledger `--ledger-diff` | consistent, 214 rows | **consistent, 214 rows**; this row re-seeded `{state: archived, … moved_by: "#1060", moved_on: "2026-09-16"}` | | doc-health `--single-repo --family promotion-fidelity` | `0 critical, 0 error, 0 warning, 0 info` | **`0 critical, 15 error, 0 warning, 0 info`** — 1 from § 6.4, 5 from § 6.3, **9 from this closure**, every one named below | **The nine, measured and named** (they are the two deltas read requirement by requirement): - `specs/doc-health/spec.md` — **seven**, one per ADDED title absent from `openspec/specs/doc-health/spec.md`. **These are the § 6.1 conflict seen from the checker's side**: the box says they are NOT added to `openxFactory`, the checker says the ratified delta did not reach canon, and both are true of this tree. The disposition records which one is the instruction. - `specs/ideation-dashboard/spec.md` — **two**: the ADDED *The served plane's baked artifacts are rebaked on a schedule at one revision*, absent from canon; and the MODIFIED *Runtime snapshot fetch with baked fallback and displayed freshness*, which reached canon without 2 of its 6 ratified scenarios. ## Copilot's readings, taken at `e24a63fc` (historical head; later rounds at `36ff06a9`, `b126e7b3` and `a677fa7b` are in the thread and the commits) - **The lockstep claim** — corrected in all four places it was made (above). The 21 → 20 assertion is unchanged and still sound; only the explanation beside it moves. - **The three `#1058` provenance references** — a pre-written PR number (#1058 and #1059 went to other lanes) — were corrected at `9dbb0599`, which also seeded the sweep-ledger row this review found stale. All four sites name **#1060**. - **The archive-route rationale** — "both always promote" is false of the pinned CLI (`--skip-specs` measured at `1.12.0`); narrowed to the true and stronger reason: the governed wrapper refuses this packet outright on its **thirteen** open tasks. - **`tasks.md` § 6.6 is not the disposition gate** — § 8.5 and § 8.9 are. ## The one cost, stated up front Same as §§ 6.4 and 6.3: `document-lifecycle`'s *Ratified spec deltas reach the promoted specification* attaches the promotion obligation to the ARCHIVE ACT; this packet declares `Status: ratified`, unedited; `promotion_fidelity.py` carries it at `_LAUNCH_SEVERITY = ERROR`. The discharge is the second one the checker's own action text names — *"or record the non-promotion as deliberate"* — through `health/dispositions.yaml` at the **xFactory aggregation root**, filed once for the five closures rather than five times — not `tasks.md` § 6.6, which is the separate rule that no new dashboard change opens here; the gate is § 8.5 and the severity reading is § 8.9's. **This packet needs TWO entries**, one per delta file. The second is worth reading twice: it disposes findings against a `doc-health` delta that RULING Q6 says must never reach `doc-health` — the disposition and the ruling agreeing, not a suppression. A `--single-repo` self-gate run applies no disposition (the loader's own docstring says so), so both numbers are reported. ## Sibling search 2026-09-16T01:4xZ Open PRs in all four repositories: openxFactory #1057 #1056 (this lane's), #1052 #1051 #1050 #1044 #1043 #1035 #1032 #1031 #1029 #594 #518; openDox-spec #13 #12 (this lane's), #11; openXdox-spec #15 (this lane's), #3 (`ideation/` documents only). **NOT ONE touches `openspec/changes/add-nightly-dashboard-refresh/`, `scripts/target-release-register.yaml` or `scripts/target_release.py`.** **Disclosed rather than skipped:** the SHARED checkout `/workspace/projects/xFactory/openxFactory` (detached at `6612d323`, no branch) carries **stale uncommitted edits to exactly this packet** — `design.md`, `proposal.md`, `tasks.md` and `specs/doc-health/spec.md`, +150/−38, file mtimes **2026-09-01**. Two weeks old and abandoned; not a lane's live work. This closure is authored from a clean clone of `main`. Named so that if anyone does claim them, the collision is already on the record. Refs #656 (stays OPEN). CLAIM [`5690599915`](#656 (comment)). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ed_aware and the catalog site refuse as a dependency (exit 2), not a finding (exit 1) (#1117) Lane: openxfactory-2 (openXfactory-2) **THE WORDS.** Brett Heap, 2026-09-17T16:03:46Z, verbatim: *"after 1094 lands, do 1070 fix"* (#1070 comment [5717454392](#1070 (comment))) — PR #1094 landed, and this is that fix. Brett Heap, 2026-09-17T16:05:19Z, verbatim: *"merge 1070 fix when green, then archive 1045"* (comment [5717476433](#1070 (comment))), REAFFIRMED 2026-09-18T12:41:38Z, verbatim: *"after 1094 lands, do 1070 fix, merge when green, then archive 1045"* (comment [5730133468](#1070 (comment))). Both reaffirm the standing ruling of 2026-09-17T12:34:52Z, verbatim: *"Merge when green"* (comment [5714433303](#1070 (comment)), THE CITATION). ## What this does, in the finding's own terms An unreadable pinned leg is a **fact about the machine**, not a verdict about the release. `#1070` measured the same one fault — `git submodule deinit -f openDox` — answered two ways at the same head: the COMMIT direction refused as a dependency (**exit 2**, one line carrying the leg's own remedy, since PR #1051 taught `_shed_aware_commit` to translate), while the WORKING-TREE direction escaped as a **25-line traceback and exit 1** — and 1 is the code that MEANS the release has findings (`docs/contract-versioning-policy.md:271-272`: "0 pass, 1 findings, 2 dependency/harness failure"). `build` is the FIRST act of a release cut, so the cut operator is who met it. A THIRD site of the same shape, `catalog._shed_destination`, did the same to `validate-hermes-runtime-contracts.py`. `CarveReachUnavailable` is now translated at both remaining sites, so the refusal is a **dependency refusal, exit 2, never a per-member finding and never a traceback** — and the leg's own remedy travels in the message. The translation stays OUTSIDE the lazy-import `try`, because `CarveReachUnavailable` IS an `ImportError` subclass and folding it in would answer this repository's PRE-shed `target` — the phantom absence `#1048` is about, manufactured inside the release builder. - `scripts/hermes_runtime_validation/release.py` — `_shed_aware` catches `CarveReachUnavailable` around `shed_destination(target)` and raises `ReleaseDependencyError` *from* it, exactly as `_shed_aware_commit` does; the `except` sits beside the `CarveRowRetired` one, outside the import guard. - `scripts/hermes_runtime_validation/catalog.py` — new `CatalogDependencyError` (`exit_code = 2`), deliberately **not** a `CatalogError` subclass: `CatalogError` is this family's FINDING (`HRC-CATALOG-INVALID`, exit 1) and a subclass would have been swallowed by the existing `except CatalogError` and published as a verdict nothing measured. `_shed_destination` raises it. - `scripts/validate-hermes-runtime-contracts.py` — `_validate_repository` catches `CatalogDependencyError` BEFORE `except CatalogError`, records `HRC-HARNESS-CATALOG-DEPENDENCY` and returns the `dependency_error` flag `classify_exit_code` turns into exit 2. - `scripts/doc_health/release_inventory.py` — one word: the taxonomy summary counts **six** arms, not five (provenance below). - `tests/hermes_runtime_contracts/test_release_inventory.py` — two regressions over a REAL pinned submodule and a real `git submodule deinit -f`, mirroring `test_a_leg_store_without_the_pinned_commit_refuses_as_a_dependency`. **The taxonomy count** is Copilot's first thread on PR #1051's landed head `ecd6237a` (`release_inventory.py:34`/`:308`: the summary's "five arms" is stale against the sixth arm that PR added), RULED **STAND-AS-FOLLOW-UP** and carried by "the next code PR on this reader" — comment [5717518184](#1051 (comment)). Documentation only; `grep` proves the file had exactly one such count. ## Failing, then passing The two new tests were run against the UNMODIFIED code first — the three fixed scripts restored from `origin/main` (verified `git rev-parse origin/main` == `git rev-parse HEAD~1` == `8f93cbc0`), the tests left as this branch writes them: | run | selection | result | | --- | --- | --- | | **before** — fix reverted | the two new tests | **2 failed**, 74 deselected in 3.26s | | **after** — `git checkout -- scripts/` | the two new tests | **2 passed**, 74 deselected in 2.60s | | **after** — whole file | `tests/hermes_runtime_contracts/test_release_inventory.py` | **76 passed** in 65.31s | The two failures are the defect itself. `test_an_unreadable_leg_in_the_working_tree_refuses_as_a_dependency` fails at `test_release_inventory.py:2470` inside `with pytest.raises(release.ReleaseDependencyError)`, through `release.py:185, in _shed_aware` → `carved_reach.py:783, in shed_destination` → `:656, in source`, with `E carved_reach.CarveReachUnavailable: the pinned leg_spec leg is not materialized: leg is empty, so contracts/moved.schema.yaml cannot be read …`. `test_an_unreadable_leg_refuses_as_a_dependency_at_the_catalog_too` fails at `:2579` with `E AttributeError: module 'scripts.hermes_runtime_validation.catalog' has no attribute 'CatalogDependencyError'`. ## The finding's reproduction recipe, end to end Two throwaway worktrees — one at `origin/main` `8f93cbc0`, one at this fix — each with `git submodule update --init --recursive openDox openXdox`, green first, then ONE fault: `git submodule deinit -f openDox` ("Cleared directory 'openDox'", the module store under `.git/modules/openDox` left intact). Green baseline on both sides: `build --tag contract-v4.1` → **exit 0, `entries=283`**, the same count `#1070` measured. **BEFORE — main `8f93cbc0`, at the fault:** `python3 scripts/validate-contract-release.py build --tag contract-v4.1 --output <path>` → **exit 1**, 25 lines, 1 traceback, last line verbatim: ``` carved_reach.CarveReachUnavailable: the pinned opendox_spec leg is not materialized: openDox/spec is empty, so contracts/schemas/xfactory-workbench-chat-turn.schema.yaml cannot be read from the destination the carve manifest declares for it. Run `git submodule update --init --recursive openDox openXdox` from the repository root. ``` **AFTER — this fix, the SAME one fault:** same command → **exit 2**, **one line**, no traceback, the whole output verbatim: ``` validate-contract-release: the pinned leg holding xfactory-workbench-chat-turn.schema.yaml could not be consulted in the working tree: the pinned opendox_spec leg is not materialized: openDox/spec is empty, so contracts/schemas/xfactory-workbench-chat-turn.schema.yaml cannot be read from the destination the carve manifest declares for it. Run `git submodule update --init --recursive openDox openXdox` from the repository root. ``` The third site, measured with the PLAIN `validate-hermes-runtime-contracts.py` (bare `--require-candidate` already exits 2 on a green tree for want of `--domain-repo`, so it cannot carry this proof alone): control on a green tree → **exit 0**, `Hermes runtime contracts: pass (51 contracts, 32 schemas, 110 fixtures, 17 requirements, 85 scenarios, 439 tests collected)`; BEFORE at the fault → **exit 1**, 31 lines, 1 traceback ending in the same `CarveReachUnavailable` (for `xfactory-workbench-model-catalog.schema.yaml`); AFTER at the fault → **exit 2**, **one line**, no traceback: ``` HRC-HARNESS-CATALOG-DEPENDENCY error path=contracts/hermes-runtime/contract-index.yaml: contracts[0]: the pinned leg holding xfactory-workbench-model-catalog.schema.yaml could not be consulted: the pinned opendox_spec leg is not materialized: openDox/spec is empty, so contracts/schemas/xfactory-workbench-model-catalog.schema.yaml cannot be read from the destination the carve manifest declares for it. Run `git submodule update --init --recursive openDox openXdox` from the repository root. ``` ## Validation | command | result | | --- | --- | | `pytest -q -p no:cacheprovider tests/hermes_runtime_contracts` | **976 passed (36:08)** — measured on this diff before the banking commit | | `pytest -q -p no:cacheprovider tests/hermes_runtime_contracts/test_release_inventory.py` | 76 passed (61.23s on the pushed head) | | the two new tests, fix reverted → restored | 2 failed → 2 passed | | `pytest -q -p no:cacheprovider tests/doc-health/test_release_inventory.py` | 57 passed (8.40s) | | `OPENSPEC_TELEMETRY=0 openspec validate --all --strict` | 107 passed, **1 failed** — the known pre-existing `change/add-chain-attestation`; this PR is code-only and carries no packet | | `python3 scripts/proposal-support.py . verify` | exit 0, `proposal support verification ok` | | `python3 scripts/doc-health.py --single-repo . --family release-inventory-drift`, main vs this head | see below | **The one doc-health delta, stated rather than buried.** Run in same-kind checkouts (two worktrees) at main `4401e1aa` vs this head, the `release-inventory-drift` reports differ by exactly ONE added line — `severity=error … path=scripts/validate-hermes-runtime-contracts.py rule="bytes differ from the digest 'contract-v4.0' records" … class="auto-fixable"` — taking the family from `0 critical, 2 error, 0 warning, 3 info` to `0 critical, 3 error, 0 warning, 3 info`, with `New regressions vs previous report: 0` on both sides. Main already carries the same error for `release.py` and `catalog.py`, the two sibling release members earlier merged work edited after the `contract-v4.0` cut; this adds the third member of that same already-drifting set, which the next cut clears. The family is report-only on pull requests: `.github/workflows/doc-health-reusable.yml` is `workflow_call` with `fail-on` defaulting to empty. Main was merged in plainly at `4401e1aa` (38 commits, no conflicts); `git diff --stat 8f93cbc 4401e1a` over the five files and `scripts/carved_reach.py` is empty, so the merge is orthogonal to the fix and every number above was re-measured on the pushed head. Lands under Rule 6 when the eight required checks are green and Copilot is clean, on the word. refs #1070 refs #1048 🤖 Generated with [Claude Code](https://claude.com/claude-code)



Lane: openxfactory-2 (openXfactory-2)
release-inventory-driftreported four phantomerrorfindings from inside agit worktree— and from any side clone whose submodules were never initialized — for members that exist in neither tree. Fixed at the reader; no tag, inventory or contract data is touched.Measured,
--family release-inventory-drift, same commit both sidesBaseline
8944758c(origin/main), clone withopenDox/openXdoxinitialized, thengit worktree add ../wt HEADof it:90451378)The four extra rows, all gone:
contracts/schemas/gate-action-record.schema.yaml,contracts/schemas/xfactory-workbench-chat-turn.schema.yaml,contracts/schemas/xfactory-workbench-model-catalog.schema.yaml,scripts/validate-ideation-dashboard-contracts.py— eachinventory member is absent at HEAD but recorded in 'contract-v4.0'.After the fix the two runs are byte-identical once
repo=is normalized (diffof the- severity=lines is empty): the one surviving error,scripts/hermes_runtime_validation/release.py"bytes differ from the digest", plus the three editorialinforows. The checkout's own verdict is unchanged from origin/main.Root cause
All four are
moved_*rows the § 5.2 shed put in the openXdox legs, sorelease_inventory._shed_memberreads them throughcarved_reach.shed_commit_object, which walks the gitlink chain down the mount.That walk located each level with
(repo / ".git").exists()and read it withgit -C <that working tree>. It asks whether the leg's working tree is checked out here — andgit worktree addnever checks a submodule out: it writes the superproject's own tracked files and leaves every gitlink an empty directory. The store is not missing there, only elsewhere: git keeps a submodule's objects in the superproject's common git directory atmodules/<name>, which every linked worktree shares. So the walk raisedCarveReachUnavailablefor a checkout that could read the leg perfectly well. Proven directly, from the worktree at8944758c:while
git -C <clone>/.git/modules/openXdox/modules/spec cat-file --batchreads that very blob._leg_object_storenow prefers the checked-out working tree — so an ordinary checkout resolves exactly what it always did — and otherwise resolves<git rev-parse --git-common-dir>/modules/<segment>. The common directory is asked of git rather than assembled from.gitby hand, because the walk is a chain (openXdox/specis a submodule of a submodule, so past the first level the parent is itself a module store) and because this repository is itself mounted as a submodule in the aggregation workspace.The same defect's other half
_shed_membercaughtCarveReachUnavailablein a bareexcept Exceptionand answered(None, None), whichcheck_reporeports as ABSENT AT THE COMMIT — the family's most severe verdict, read off an uninitialized submodule rather than off the release. That condition is the ratified taxonomy's sixth arm ("git unavailable or commit unresolvable → SKIP, and never per-member"), so an unreachable leg is now a repository-level skip carrying the leg's own remedy, recorded byfam_as the usualinfo"not checked: …". A seventh taxonomy line in the module docstring spells it out. ONE new pinned action string —_PARTLY_EVALUATED_ACTION, the partly-evaluated skip notice round 2 added as the family's sixth emitted action (Copilot at 42152fb, S4; corrected by the lane).Regression tests
tests/doc-health/test_release_inventory.pygains three, built on real git and a real submodule (a stub cannot have the on-disk shape the defect needs) with the leg pinned two submodule levels deep — theopenXdox/specshape, so the second level's parent is a module store rather than a working tree:test_a_linked_worktree_reads_the_same_release_surfacetest_the_legs_object_store_is_found_through_gits_common_directorytest_an_unreachable_leg_is_a_repository_skip_not_a_phantom_absenceAll three fail against the reader they replace — verified by reverting both source files and re-running:
3 failed, one of them on exactly theinventory member is absent at HEADfinding this PR removes.Validation
pytest -q tests/doc-health -p no:cacheprovider→ 1827 passed (5:42)pytest -q tests/carve_manifest tests/carve_arrival tests/carve_conformance tests/domain_profile tests/openxdox_pin tests/opendox_pin→ 433 passed (carved_reach's own suites)pytest -q tests/hermes_runtime_contracts/test_release_inventory.py test_validator_cli.py test_content_resolution.py→ 120 passed (the other caller ofshed_commit_object)python3 scripts/proposal-support.py . verify→proposal support verification okOPENSPEC_TELEMETRY=0 openspec validate --all --strict | tail -1→Totals: 106 passed, 2 failed (108 items)— the two pre-existing failures on origin/main,add-chain-attestationandadd-composed-view-authoringpython3 scripts/validate-sequenced-after.py . --ledger-diff→per-change sweep ledger consistent with the corpus (214 rows)python3 scripts/doc-health.py --single-repo . --as-of 2026-09-15 --family release-inventory-drift→ 1 error, 3 info, from both the checkout and a worktree of itCode-only, so no OpenSpec packet and no sweep-ledger row: the taxonomy is applied, not amended.
Fix round 1 (
5beda67c) — Copilot's suppressed comment on90451378(the author's own open question (3)), RULED ACCEPT by the lane (findings/fix1051-round1.md): theHEAD-file test proved a git directory, not that the superproject's pinned gitlink COMMIT is readable there.shed_commit_objectnow probes each located store withgit cat-file -e <gitlink>^{commit}(through the same scrubbed invocation;_git_okfor exit-code reads beside_git_text) and raisesCarveReachUnavailablenaming the leg and commit when absent, whichrelease_inventoryturns into the same repository-levelSkip. Regression: a module store that hasHEADbut lacks the pinned commit → Skip, not a phantom absence (behaviour shown failing pre-fix on the identical fixture).test_release_inventory.py41 passed;tests/doc-health1828; carve/pin suites 433; hermes 120; real repo still 1 vs 1.Fix round 2 (
42152fba) — Copilot's four suppressed comments on5beda67c, RULED ACCEPT ×4 by the lane (findings/fix1051-round2.md), each following the PR's thesis that an unanswerable git query is a fact about the machine and never an absence. Git behaviour MEASURED first (2.43.0, throwaway stores; quoted in the commit): an absent path givesls-tree <c> -- <p>exit 0 with no output; a missing root tree (--filter=tree:0, dead promisor, pruned) givesls-treeexit 128 whilecat-file -e <c>^{commit}still passes — which is why round 1's probe let it through; a missing subtree below a good root givesls-treeexit 1 whilecat-file -e <c>^{tree}passes — so the ruling's root-tree alternative would have missed it andls-treeis what is used; an unserveable blob readsmissingwith exit 0 where nothing can fetch, identical to a true absence, hence the tree probe. (R1)_tree_entry_absentclassifies the gitlink read: only exit 0 + empty is an ANSWER (None); everything else raisesCarveReachUnavailablenaming leg, commit and stderr. (R3)_shed_member:blobs_at → None,tree_modes → Noneandmissing-but-listed raiseLegUnavailable; a readable leg that genuinely lacks the member still answers(None, None)→ the absence error. (R4) a carrying form existed —release_tag_publication._PartialSkip(#766) — promoted todoc_health.PartialSkipbesideSkip(old name kept as the same class);check_reporeturns the skip WITH the findings collected so far, and the family reports both. (R2) the docstring reworded. Tests: 7 new (48 in the file); 6 shown failing against the reverted reader, the 7th a negative control.tests/doc-health1835 passed; carve/pin 433; other doc_health importers 1874 passed / 18 skipped; hermes 119 passed with one pre-existing environment timeout reproduced on the unmodified base. Worktree vs checkout at this head: identical findings (1 error, 3 info).Fix round 3 (
fde22531) — Copilot's pass on42152fba(one thread already answered by round 2; the rest RULED ACCEPT,findings/fix1051-round3.md): (T1/S1)hermes_runtime_validation/release.py::_shed_aware_commitnow catchesCarveReachUnavailableand re-raisesReleaseDependencyError(chained, exit 2) with the leg's remedy, so an unreadable pinned leg reachesvalidate-contract-release.py's documented dependency failure instead of a traceback — kept outside the importtrybecauseCarveReachUnavailablesubclassesImportErrorand folding it in would answer the phantom absence; (S2)_tree_entry_absentuses--full-treewith a:(literal)pathspec — MEASURED on git 2.43.0: in a module store with a non-empty prefix,ls-tree <pin> -- specexits 0 and prints nothing for a gitlink the tree really carries, whilerev-parse <rev>:<path>is always root-relative, so the two probes were asking about different paths; (S3)_skip(reason, findings, evaluated)—check_repopasses the stopping index, and the family reads the skip class for "some member was evaluated" and.findingsfor "some member produced a finding", with_PARTLY_EVALUATED_ACTIONreworded and re-pinned. Tests:test_release_inventory.py53 (was 49);tests/doc-health1840; carve/pin 433; hermes 636 (+1) with the pre-existing 30-second timeout reproduced on the unmodified base. Checkout and linked worktree: identical findings. Thread replied and resolved. Noted for a follow-up finding, not this PR's:_shed_aware(the working-tree direction,release.py:160) reachescarved_reach.source(), which raises the same exception into_WorkingTreeSource.existsuntranslated.Fix round 4 (
e63d0353) — Copilot onfde22531(0 new threads, 2 suppressed comments naming the same point in two places, RULED ACCEPT by the lane,findings/fix1051-round4.md): the remedy text "a shallow or partially fetched store needs its owngit fetch --unshallowfirst" is wrong for the filtered/partial-clone stores this code explicitly handles —--filter=tree:0/blob:noneare not shallow, and--unshallowon one of those only answersfatal: --unshallow on a complete repository does not make sense.INCOMPLETE_STORE_REMEDY(carved_reach.py) andrelease_inventory.py's ownremedynow split the advice: a GENUINELY SHALLOW store (git rev-parse --is-shallow-repositoryprintstrue) needsgit fetch --unshallow; a filtered or otherwise incomplete store needs the pinned objects fetched from a remote that still carries them (git -C <store> fetch origin <sha>, orgit fetch --refetch), or the leg re-initialized withINIT_COMMAND— one shared string, so the two sites cannot drift apart again. Tests (on the merged tree):tests/carve_manifest180;tests/carve_arrival158;tests/doc-health1842 (includingtest_release_inventory.py53 and the four carve/pin files, 163);tests/hermes_runtime_contractstop level 619 with the one known pre-existing failure (test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization], a 30-second subprocess cap on a real-repository validator run) reproduced identically before the merge.Fix round 5 (
a0ad3db4) — Copilot's three threads onbded0f49, RULED ACCEPT ×3 by the lane (findings/fix1051-round5.md): (T-A,carved_reach.py:826)_git_runhad no timeout, so a stalled or credential-blocked promisor on thecat-file/ls-treeprobes could hang the doc-health/release reader instead of reaching the repository-level skip; bounded attimeout=30, matchingscripts/hermes_runtime_validation/content.py:103-116, withsubprocess.TimeoutExpiredcaught besideOSErrorand answered with the sameNonea missing git binary already produces, so every existing reader above it (_git_object_id/_git_ok/_tree_entry_absent, andCarveReachUnavailable/LegUnavailable/repository-level skip above THEM) is unchanged — a timed-out probe is UNANSWERED, never the tree's own absence;_tree_entry_absent's message now names the timeout where it already surfaces git's stderr. (T-B,release_inventory.py:325)git.tree_modesran once per moved member even when several share one pinned(leg_repo, leg_commit), repeating the leg's full recursivels-tree;check_reponow creates one mode-map cache before its member loop and_shed_memberconsults it first, behaviour unchanged. (T-C,carved_reach.py:1105)CarveReachUnavailable's docstring said only "not materialized"; broadened to name all three raise paths — missing, incomplete, unreadable. New tests:test_a_probe_that_times_out_is_UNAVAILABLE_never_absent(tests/carve_manifest/test_carve_manifest.py) andtest_two_moved_members_on_one_leg_call_tree_modes_once(tests/doc-health/test_release_inventory.py). Validation (before → after this round's diff, same commit lineage):tests/carve_manifest/test_carve_manifest.py182 → 183;tests/doc-health1842 → 1843;tests/domain_profile/test_openxfactory_profile.py24 → 24 (unchanged);tests/hermes_runtime_contracts/{test_release_inventory.py,test_content_resolution.py,test_validator_cli.py}120 passed/1 failed → 121 passed — the one failure both times is the same pre-existing environment-dependent 30-second subprocess cap noted in round 4, not a regression, and it did not reproduce on the "after" run at all.python3 scripts/doc-health.py --single-repo . --family release-inventory-drift: before/after byte-identical. Re-verified after merging origin/main:test_carve_manifest.py185 passed (183 + 2 origin/main additions merged in cleanly); doc-health's release-inventory-drift finding lines unchanged (only unrelated corpus-wide word counts moved, from origin/main's own new documents). Threads replied and resolved.Merged origin/main 7e074ac (bded0f4) and 4b53ea9 (ecd6237).
refs #1048
🤖 Generated with Claude Code
Summary by Sourcery
Ensure release-surface validation distinguishes genuine release drift from pinned-leg data that Git cannot answer, while keeping worktree and checkout results consistent.
Bug Fixes:
Enhancements:
Documentation:
Tests: