Skip to content

Translate an unreadable pinned leg in the working-tree direction: _shed_aware and the catalog site refuse as a dependency (exit 2), not a finding (exit 1) - #1117

Merged
brettheap merged 2 commits into
mainfrom
fix/shed-aware-working-tree-dependency-error
Sep 18, 2026
Merged

brettheap merged 2 commits into
mainfrom
fix/shed-aware-working-tree-dependency-error

Conversation

@brettheap

@brettheap brettheap commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-2 (openXfactory-2)

THE WORDS. Brett Heap, 2026-09-17T16:03:46Z, verbatim: "after 1094 lands, do 1070 fix" (#1070 comment 5717454392) — 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), REAFFIRMED 2026-09-18T12:41:38Z, verbatim: "after 1094 lands, do 1070 fix, merge when green, then archive 1045" (comment 5730133468). Both reaffirm the standing ruling of 2026-09-17T12:34:52Z, verbatim: "Merge when green" (comment 5714433303, 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. 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 8f93cbc0 4401e1aa 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

…ed_aware and the catalog site refuse as a dependency (exit 2), not a finding (exit 1); the release-inventory taxonomy counts six arms

Fix for #1070 on Brett Heap's words "after 1094 lands, do 1070 fix" and
"merge 1070 fix when green" (#1070 comments 5717454392, 5717476433,
5730133468). The working-tree direction (_shed_aware) and the catalog site
now translate CarveReachUnavailable into ReleaseDependencyError (exit 2)
exactly as _shed_aware_commit does since PR #1051 (53769f9); the taxonomy
summary in release_inventory.py counts the sixth arm #1051 added (Copilot on
#1051's landed head, RULED STAND-AS-FOLLOW-UP, comment 5717518184).
Measured by the author before this commit: tests/hermes_runtime_contracts
976 passed (36:08). The remaining validation and the PR body follow.

Lane: openxfactory-2
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Sep 18, 2026

Copy link
Copy Markdown

Reviewer's Guide

The PR closes the remaining unreadable-pinned-leg escape paths by translating CarveReachUnavailable into explicit dependency failures for working-tree release reads and catalog loading, preserving the 0/1/2 contract and adding realistic submodule-deinitialization regression tests.

Sequence diagram for unreadable pinned-leg dependency handling

sequenceDiagram
    participant Validator
    participant Catalog as ContractCatalog
    participant Shed as _shed_destination
    participant Carve as carved_reach
    participant Classifier as classify_exit_code

    Validator->>Catalog: load_contract_catalog(catalog_path, family_root)
    Catalog->>Shed: _shed_destination(candidate)
    Shed->>Carve: shed_destination(candidate)
    Carve-->>Shed: CarveReachUnavailable
    Shed-->>Catalog: CatalogDependencyError
    Catalog-->>Validator: dependency_error=True
    Validator->>Classifier: classify_exit_code(dependency_error=True)
    Classifier-->>Validator: exit code 2
Loading

Sequence diagram for working-tree release dependency refusal

sequenceDiagram
    participant Release as Release builder
    participant WorkingTree as _shed_aware
    participant Carve as carved_reach
    participant Classifier as validate-contract-release.py

    Release->>WorkingTree: _shed_aware(target)
    WorkingTree->>Carve: shed_destination(target)
    Carve-->>WorkingTree: CarveReachUnavailable
    WorkingTree-->>Release: ReleaseDependencyError
    Release->>Classifier: build result
    Classifier-->>Release: exit code 2
Loading

File-Level Changes

Change Details Files
Translate unreadable pinned-leg failures into dependency errors in the working-tree release path.
  • Import and catch CarveReachUnavailable separately from retired-row handling.
  • Raise ReleaseDependencyError with an actionable submodule initialization remedy and exit code 2.
  • Keep the lazy import guard separate so the ImportError subclass cannot be mistaken for an unavailable integration.
scripts/hermes_runtime_validation/release.py
Add a distinct catalog dependency-error type and propagate unreadable-leg failures through catalog loading.
  • Introduce CatalogDependencyError as a non-CatalogError with exit code 2.
  • Translate CarveReachUnavailable from catalog path resolution without conflating it with retired members or invalid catalogs.
  • Classify catalog dependency findings as dependency failures in the validator CLI.
scripts/hermes_runtime_validation/catalog.py
scripts/validate-hermes-runtime-contracts.py
Expand the release-inventory taxonomy documentation for the additional dependency-failure arm.
  • Update the documented taxonomy count from five to six arms.
scripts/doc_health/release_inventory.py
Add end-to-end regression coverage for deinited submodules across both working-tree reads and catalog loading.
  • Create real Git-submodule fixtures and deinitialize the pinned leg after verifying the healthy path.
  • Assert both exists and read_member raise ReleaseDependencyError with exit code 2 and actionable remediation.
  • Assert catalog loading raises the non-finding dependency exception and the CLI maps it to exit code 2 rather than 1.
tests/hermes_runtime_contracts/test_release_inventory.py

Possibly linked issues


Tips and commands

Interacting with Sourcery

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

Customizing Your Experience

Access your dashboard to:

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

Getting Help

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The functional changes consistently translate unreadable pinned-leg conditions into dependency failures (exit 2) and include targeted regression coverage; only a minor docstring-count clarity nit remains.

Pull request overview

This PR aligns Hermes runtime “working-tree” and catalog validation behavior with the established 0/1/2 exit-code contract by translating unreadable pinned-leg/submodule conditions into dependency failures (exit code 2) rather than leaving them as uncaught tracebacks (exit code 1).

Changes:

  • Translate carved_reach.CarveReachUnavailable into ReleaseDependencyError in the working-tree shed resolver (release._shed_aware), matching the existing commit-direction behavior.
  • Introduce CatalogDependencyError and translate unreadable pinned-leg failures during catalog member resolution to ensure catalog dependency failures are not reported as catalog invalidity findings.
  • Add regression coverage for deinited/uninitialized submodules across working-tree release reads, catalog loading, and CLI exit-code classification.
File summaries
File Description
tests/hermes_runtime_contracts/test_release_inventory.py Adds regression tests for working-tree and catalog pinned-leg unreadability translating to dependency failures and correct CLI classification.
scripts/validate-hermes-runtime-contracts.py Treats catalog dependency failures distinctly from catalog invalidity by catching CatalogDependencyError and marking dependency_error=True.
scripts/hermes_runtime_validation/release.py Translates unreadable pinned-leg failures in the working-tree direction into ReleaseDependencyError (exit code 2).
scripts/hermes_runtime_validation/catalog.py Adds CatalogDependencyError and translates CarveReachUnavailable into an exit-code-2 dependency failure during catalog member resolution.
scripts/doc_health/release_inventory.py Updates the taxonomy summary text to reflect the additional arm in the documented classification scheme.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Lite

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

Comment thread scripts/doc_health/release_inventory.py Resolved
@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap marked this pull request as ready for review September 18, 2026 19:02
Copilot AI review requested due to automatic review settings September 18, 2026 19:02

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

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

@brettheap
brettheap merged commit 0a5c131 into main Sep 18, 2026
14 checks passed
brettheap added a commit that referenced this pull request Sep 18, 2026
…lized at 8f93cbc, promoted as amended, ledger row retired (#1114)

Lane: openxfactory-2 (openXfactory-2)

**THE ARCHIVE OF `adopt-entry-grain-dispositions-form`, ON BRETT HEAP'S OWN ARCHIVE WORD AND ON MERGED-PLUS-GREEN REALIZATION EVIDENCE.** `code_surface:` is NON-EMPTY, so under *release-realization* this packet could never archive on landing: it archives only on its realization being MERGED AND GREEN, and only then on a further word. Both conditions are now met and both are cited below. Every word is Brett Heap's, first-hand, in session to lane `openxfactory-2`.

## THE WORDS, IN ORDER — ALL FIVE VERBATIM

1. [#1045 comment 5714433011](#1045 (comment)), 2026-09-17T12:34:52Z, an interactive multi-choice selection, TWO words: ***"Apply the partition"*** — the ratifier amending his OWN ratified `## MODIFIED` block, the positive-resolution scenario's WHEN gaining the entry-grain clause and its disjointness bullet the matching exclusion — and ***"Realize now, land when green"*** — the § 3 realization authored as ONE pull request, *"archive (§ 4) remains a later word on merged-plus-green evidence"*.
2. [#1045 comment 5716521100](#1045 (comment)), 2026-09-17T14:59:21Z: ***"merge 1051 when green, then 1088, then archive 1047"*** — the landing word that let the partition amendment (PR #1088 → `893abe97e0b0ad6166cf59408daabd812a933bc1`) merge.
3. [#1045 comment 5717398099](#1045 (comment)), 2026-09-17T15:59:46Z: ***"merge 1094 when green after 1089"*** — the landing word for the realization.
4. [#1045 comment 5717476696](#1045 (comment)), 2026-09-17T16:05:19Z — **THE ARCHIVE WORD**: ***"merge 1070 fix when green, then archive 1045"***, naming its own precondition chain, verbatim: *"Prerequisite chain: #1088 (amend) → #1089 → #1094 (realize; the code surface's merged + green evidence) → #1070 fix → archive."*
5. [#1045 comment 5730133649](#1045 (comment)), 2026-09-18T12:41:38Z — **THE ARCHIVE WORD REAFFIRMED**: ***"after 1094 lands, do 1070 fix, merge when green, then archive 1045"***, which also states the landing route — *"the archive PR lands by MERGE COMMIT under Rule 6 on green (so the directory's adding commit stays the wrapper's act)"*.

## THE EVIDENCE CHAIN, EVERY LINK MEASURED

| act | pull request | merge sha | when |
|---|---|---|---|
| FILED + RATIFIED | [#1050](#1050) | `fa39141cec2b` | 2026-09-16, on *"ratify 1052 when green, then 1050"* (5698480736) |
| AMENDED by the ratifier | [#1088](#1088) | `893abe97e0b0ad6166cf59408daabd812a933bc1` | 2026-09-17T16:09:55Z, on *"Apply the partition"* |
| predecessor archived (Rule 6 order) | [#1089](#1089) | `7d60f128d65d9c47b8ea1f58863c337d21d6104c` | 2026-09-18T14:57:04Z |
| **REALIZED — the code surface's merged + green evidence** | [#1094](#1094) | **`8f93cbc02597f149a9987ce8da5f1c227e66662d`** | **2026-09-18T15:56:55Z, `main` green at that commit** |
| the #1070 fix | to land first | ``0a5c1310` (PR #1117)` (the #1070 fix PR, to land first) | — |
| **ARCHIVED** | **this pull request** | — | 2026-09-18 |

## WHAT THE ARCHIVE DID

`python3 scripts/proposal-support.py . archive adopt-entry-grain-dispositions-form --yes` — **never bare `openspec`** — which printed **`ORIGIN RETAINED adopt-entry-grain-dispositions-form (declaration unchanged since the ratifying commit fa39141)`**.

- **Packet moved** to `openspec/changes/archive/2026-09-18-adopt-entry-grain-dispositions-form/` — all six files, git-detected as renames.
- **PROMOTION MEASURED BYTE-IDENTICAL, not asserted.** After the archive, canon's *Prose tagging marker hygiene* in `openspec/specs/document-lifecycle/spec.md` and this packet's `## MODIFIED` block are both **45,963 bytes, sha256 `2099a22f69cb23b0d333603996512f4daab6bb7bc3fa8518e7b75e4d23388f19`** (the requirement text from its `### Requirement:` line, the trailing blank separator before the next `### Requirement:` excluded on both sides — PR #1042's convention, which PR #1089 used). Canon's `git diff --numstat` reads **+11 −2**; the requirement's scenarios go **24 → 25**.
- **WHAT PROMOTED IS EXACTLY TWO THINGS.** (a) The RATIFIER'S partition amendment of the positive-resolution scenario *A marker names a capability of a pinned neutral product* — its WHEN's entry-grain clause and its disjointness bullet's matching exclusion (#1088, *"Apply the partition"*). (b) This packet's OWN new scenario *A pin record's optional dispositions member carries a malformed entry* — its title and its seven bullets. The **two units the carriage-ledger arm reported as UNCARRIED** against the ACTIVE block on `main` were that same amendment; the promotion is what discharges them, which is why the arm now names nothing.
- **`tasks.md` § 4.1–4.3 TICKED** with ARCHIVED annotations citing the word. § 4.1 records the merged-plus-green gate, § 4.2 the byte measurement, § 4.3 the row retirement. The `- [ ]` → `- [x]` flips, the § 4 heading and one § 3 preamble sentence are the ONLY five lines removed from that file; every other change is an appended annotation, and the RATIFIED task text of § 4.3 keeps its own `'#<archive PR>'` placeholder unedited.
- **THE SELF-GATE ROW RETIRED.** `("adopt-entry-grain-dispositions-form", "document-lifecycle", "Prose tagging marker hygiene")` in `_LEDGER_SUBJECTS` (`tests/doc-health/test_modified_block_currency_self_gate.py`), opened 2026-09-17 by the partition amendment under the condition *"Retires when the packet archives and its block is promoted"* — the condition this archive discharges. A note stands in its place. `len(_LEDGER_SUBJECTS)` **MEASURED at this head reads TWELVE** (13 literal entries, 12 unique, the pre-existing `add-chain-attestation` duplicate collapsing as it always has), down from THIRTEEN. The docstring gains a **dated re-measurement paragraph** rather than subtracting from another lane's numeral, and the failure-message chronology is EXTENDED, not edited.
- **README** — the `adopt-entry-grain-dispositions-form` bullet retired from *Active changes*; an archived-ledger entry added at the head of *Archived changes* in the house style.
- **`tests/sequenced_after/corpus-ledger.yaml`** re-seeded by the tool, never by hand: `python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#1114'` → **221 rows, ONE moved** — `active` → `archived`, `#1050` → `#1114`, `2026-09-15` → `2026-09-18`.
- **`Status:` headers unchanged** — `ratified` on `proposal.md`, `design.md`, `tasks.md` and the ratification record, exactly as PR #1089's archived packet carries them.

## THE ARCHIVE DATE, AND WHY THE LANDING MUST BE A MERGE COMMIT

The wrapper owns the clock (#797): it ran at **2026-09-18T17:19:50Z** and named the directory `2026-09-18-adopt-entry-grain-dispositions-form`. The archive-act commit is **`2cb6145b6c87af0b4500a1e2da038c4053cec5f9`**, committer-dated **2026-09-18T17:24:01Z UTC**, and `scripts/validate-sequenced-after.py`'s `archive-date-vs-commit` arm attributes the directory to exactly that commit — **the name and the adding commit AGREE**, so nothing is owed and no disposition may be written (`tests/sequenced_after/archive-date-dispositions.yaml`'s own header: *"ENTRIES ARE ADDED ONLY FOR A MEASURED DISAGREEMENT, AND NEVER IN ADVANCE"*).

**BOTH LANDINGS WERE SIMULATED IN A SCRATCH WORKTREE OFF `origin/main` (`049d54a9`), and the worktree removed afterwards.**

| route | sim commit | our directory attributed to | validator | `pytest tests/sequenced_after` |
|---|---|---|---|---|
| pristine `origin/main` (baseline) | `049d54a9` | not landed | **passed, 0 findings** | — |
| **MERGE COMMIT** (`git merge --no-ff`) | `eb5d0993` | **`2cb6145b…` — 2026-09-18** | **passed, 0 findings** | **286 passed** |
| SQUASH (`git merge --squash`) | `353e2c40` | the squash commit — 2026-09-18 | passed, 0 findings | 286 passed |

Both routes are clean **only while the landing falls on 2026-09-18 UTC**. A squash discards this branch's commits, so the squash commit becomes the only add of the directory — and a squash that lands after `2026-09-19T00:00Z` would name 2026-09-19 against a directory named 2026-09-18 and add exactly one `archive-date-vs-commit` finding. **A merge commit is immune to that slip**: the walk is `git log --diff-filter=A --reverse --no-renames` with no `--first-parent` and keeps the FIRST add, so `2cb6145b`/2026-09-18 stays the adder however long the landing is held. This pull request is held behind the #1070 fix, so the slip is live — **LAND IT WITH `gh pr merge --merge`**, which is also what the reaffirmed word says. And **RENAMING IS NOT THE REMEDY** if it ever slipped anyway (`docs/document-lifecycle.md:556`, issue #812): a date one day early is dispositioned in place, names untouched.

## THE `tasks.md` § 3 CITATIONS STAND — THE RE-POINT IS RECORDED, NOT APPLIED

§ 3's ticks cite `scripts/validate-openspec-cli-pin.py`'s `pinned_dispositions` at **`:787`**, as MEASURED at the realization's base `4b53ea99`. On `main` it now begins at **`:794`** — PR [#1056](#1056) → `3e32d987` moved that file by **+7 lines**. **RULED STAND by the lane at PR #1094** (comment 5729231240, 2026-09-18T12:57:01Z): a packet's `tasks.md` is RECORD TEXT, the ticks pair with the ratified task text directly above them which cites the same lines, and history is history — the principle `docs/document-lifecycle.md:556` states for archive directory names. The live fact is already carried where it is ASSERTED, in `tests/doc-health/test_pin_shape_adapter.py`. **The re-point is recorded in this archive's own note** — the archived `tasks.md` § 4.1 and the README archived-ledger entry — and NO byte of § 3 moves.

## VALIDATION — at head `baf695f0`, beside pristine `origin/main` `049d54a9`

| command | this branch | pristine `origin/main` |
|---|---|---|
| `OPENSPEC_TELEMETRY=0 openspec validate --all --strict` | **108 passed, 1 failed (109 items)** | 109 passed, 1 failed (110 items) |
| `python3 scripts/proposal-support.py . verify` | **ok** (rc 0) | ok |
| `python3 scripts/validate-sequenced-after.py .` | **passed** — 47 active, 17 declaring; archive-date agreement passed; archive-date-vs-commit passed, 13 dispositions in force | passed — 48 active, 18 declaring |
| `python3 scripts/validate-sequenced-after.py . --ledger-diff` | **consistent (221 rows)** | consistent (221 rows) |
| `python3 scripts/doc-health.py --single-repo . --family modified-block-currency` | **0 critical / 0 error / 0 warning / 12 info** — none naming this packet, none unnamed | 13 info (one of them this packet's) |
| `python3 scripts/doc-health.py --single-repo . --family promotion-fidelity` | **0 critical / 6 error / 0 warning / 0 info** — row-for-row identical to main, none naming this packet | 6 error |
| `pytest -q -p no:cacheprovider tests/doc-health/test_modified_block_currency_self_gate.py` | **20 passed** | 20 passed |
| `pytest -q -p no:cacheprovider tests/sequenced_after` | **286 passed** | 286 passed |

The ONE `openspec validate` failure is the pre-existing `add-chain-attestation`, identical on both sides; the one-item difference is this archive leaving the active corpus, and **no failure is added**. The six `promotion-fidelity` errors are `main`'s own, belonging to the `add-composed-view-authoring` and `add-doxchat-model-intake` closures of other lanes. The single `modified-block-currency` difference is this packet's own row retiring.

**THE WIDER LOCAL SUITE, AND ITS SEVEN FAILURES ARE NOT THIS BRANCH'S.** `pytest -q -p no:cacheprovider tests/doc-health tests/proposal-support` at `baf695f0` → **7 failed, 2089 passed, 1 skipped, 297 subtests passed**. The same four files run against **pristine `origin/main` `049d54a9`** fail the **BYTE-IDENTICAL SET OF SEVEN** — `test_ideation_readiness.py` (3), `test_readiness_dispatch.py` (1), `test_sentinel_vocabulary.py` (2), `test_status_reader_real_lines.py` (1). Every one is INHERITED and none touches this archive's surface — and **CI settles it**: `pytest-suite` is GREEN on this head (21m28s), so all seven are local to this container's environment and not repository failures at all.

**CI AT `baf695f0` — ALL GREEN.** The eight required checks (`signed-execution-chain-gate`, `lane-line`, `former-id-arrival-gate`, `openspec-cli-pin`, `wallet-validation`, `pytest-suite`, `release-tag-gate`, `openxdox-consumer-gate`) all pass, as do `clearing-dispatch-gate`, `merge-master-approval`, `openreposhape-pin` and SonarCloud. **Copilot: 🟢 Approval recommended** at the final head; its two earlier threads — both against the pre-reseed head, both about the `{PR}` / `#<ARCHIVE_PR>` placeholders this branch's own reseed commit filled — are RESOLVED, **0 open**.

**Lands under Rule 6 by MERGE COMMIT AFTER the #1070 fix PR has landed**, when the eight required checks are green and Copilot is clean. This pull request touches `openspec/changes/`, so it takes a LANDING/LANDED window. openxFactory #1045 closes by the lane's hand after the ARCHIVED record, not by a keyword.

refs #1045

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes consistently reclassify unreadable pinned-leg failures as dependency errors (exit 2) across all affected sites and include targeted regression tests validating both exception translation and CLI exit-code behavior.

Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants