Skip to content

Declare the § 8.9 snapshot-validator residue window in the carve manifest (Q-L1 form; RULED 5815412869 C3) - #1153

Merged
brettheap merged 2 commits into
mainfrom
fix/snapshot-validator-carve-residue
Sep 24, 2026
Merged

brettheap merged 2 commits into
mainfrom
fix/snapshot-validator-carve-residue

Conversation

@brettheap

@brettheap brettheap commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

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

What this is

This is the row annotation RULED Q-L1 requires to land FIRST, for the leg PR opensoft/openXdox-code#28 (fix/snapshot-validator-carve-residue, 45825ff7, re-cut on that leg's main 626f2c8d). That PR's head is now 87e627c, after two review rounds of its own. Neither round moves this window (see Measured). That PR takes the three snapshot-validator defects the archived split-opendox-two-layer-product booked at tasks.md § 8.9 (amendment #6, RULED Q-P3 (a), #656 comment 5728856581; the box was DEFERRED at the archive by RULED 5778397686):

  • (i) the validator's SCHEMAS_DIR resolves to an absent directory;
  • (ii) snapshot.py's VALIDATOR_RELPATH names the path this repository shed at cc4ae9d3;
  • (iii) find_validator's parent walk adopts an enclosing pre-shed checkout.

RULED at #656 comment 5815412869 (item 3, C3, all (a)) and claimed at 5815613524. Two of the four rulings bind this PR:

  • Q-XDV2 (a): both new entries are filed under path constants;
  • Q-XDV3 (a): this annotation lands first, then openXdox-code.

Q-L1's binding clause (5642758731): "an edit to an ARRIVED file … outside its declared lines is an undeclared movement — each slice that edits such a file pairs its leg PR with an openxFactory row-annotation PR (the ASK-7 pattern) that lands FIRST".

This does NOT discharge #1144 task 7.3. 7.3's FALSIFIED BY asks the INSTALLED openXdox distribution to find its own validator from a start outside the product. The leg PR deliberately answers None for such a start. So phase 2's realization of 7.3 will revisit tests/test_snapshot_validator_home.py::test_a_start_outside_the_product_is_refused_not_walked. The holder is taking that tension to Brett as a phase-2 question. It does not block this act.

The arrived leg test tests/test_snapshot_validation_launch.py belongs to the same revisit (Copilot, openXdox-code#28 round 2). It launches from the corpus root, outside the product, so under the confinement it would report validation SKIPPED. It cannot be collected in that repository at the base or at the head, because the pinned openDox-code's serve.py imports ideation_dashboard, and it is not in that repository's required check.

The window

row before after
scripts/ideation_dashboard/snapshot.py → openxdox_code src/openxdox/snapshot.py moved_verbatim moved_with_declared_edit, path constants [13, 24, 29, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 133, 163, 167] — 16
scripts/validate-ideation-dashboard-contracts.py → openxdox_code the carve's own entry [114, 115, 116, 909, 1800], never applied plus a second path constants entry [14, 15, 16, 94, 224, 225, 226, 230, 237, 1822] — 10

The line numbers are the CARVE COMMIT's. They were computed with verify-carve-arrival.py's own algorithm (carve_lines.text_records + difflib opcodes, as _check_declared_lines reads them) against the re-cut leg head. They are identical to the helper bank's measurement against the first cut, because the four fix files are byte-identical and openXdox-code #26/#27 touched none of them. docs/opendox-carve-admissions.yaml admits the leg's two created suites (tests/test_snapshot_validator_home.py, tests/test_validator_schema_home.py, since: 45825ff7…).

The figures, summed rather than transcribed

  • Declared lines 2717 → 2743 (path constants 246 → 272).
  • Rows carrying edits: 176 → 177.
  • moved_verbatim 143 → 142; moved_with_declared_edit 175 → 176; not_moved 138, unchanged.
  • The runbook's openxdox_code row goes from 9 / 83 | 917 to 8 / 84 | 943.
  • The per-destination sum goes from 2715 to 2741, and the two replica lines make 2743.

Moved with them:

  • runbook § 2's tables and history;
  • the README index entry;
  • three script docstrings;
  • the aggregate pins in tests/carve_manifest and tests/carve_arrival;
  • the Q7 disposition digest (2c48fa07… → 4c4aecf1…), moved beside its conversion record as its own failure message asks.

A new test, test_the_real_manifest_carries_the_snapshot_validator_residue_declared_edits, pins the window by row, class and line. Main's manifest has not moved since the bank measured it at 2e222d98: no commit since then touches any carve file.

Measured

  • scripts/validate-carve-manifest.py: OK … 142 moved_verbatim, 176 moved_with_declared_edit, 138 not_moved; 318 digest(s) recomputed, rc=0.

  • scripts/verify-carve-arrival.py --destination openxdox_code --phase B, with the leg's six declared replicas:

    • leg 45825ff7 vs THIS manifest: OK. 96 rows arrived, 8 digests verified, 87 declared-edit rows within their lines, 3 unapplied, 34 declared admissions used.
    • leg 45825ff7 vs main's manifest: refused. arrival-digest-mismatch at src/openxdox/snapshot.py, so the annotation is required.
    • leg head 87e627c (after openXdox-code#28's two review rounds) vs THIS manifest at 9248478c: OK. 87 declared-edit rows within their lines, 3 unapplied, 34 declared admissions used, rc=0. Against the carve blob, the leg's diff still touches exactly lines 14, 15, 16, 115, 116, 224, 225, 226, 230 and 1822 of the validator row, plus insertions beside 94 and 237. Every one is declared.
    • leg 626f2c8d (today's pin) vs THIS manifest: OK. 85 within, 5 unapplied, and the two new admissions are reported STALE (declared but not needed) until the leg lands. So this PR lands ahead of the leg without reddening anything.
    • The window is tight. A copy without :1822 refuses arrival-undeclared-edit … [1822].
  • pytest tests/carve_manifest tests/carve_arrival: 408 passed on main → 409 passed here (the new window test).

  • The PR gates, main dd2466ad vs this branch at 9248478c (local, same-kind full clones at …/openxFactory, pinned CI lock, OpenSpec CLI 1.12.0, decision core b21f0100):

    gate main this branch
    the PR gates' scripts (verify-openxwallet-pin, validate-clearing-dispatch, verify-openxdox-pin, verify-opendox-pin, validate-release-tag-gate, validate-signed-execution-chain --require-pinned-wallet-vocabulary, wallet-yaml-syntax-gate, validate-openxwallet, validate-factory-identity, validate-openspec-cli-pin --all --no-cache, validate-openreposhape-pin, validate-carve-manifest, validate-sequenced-after) all rc=0 all rc=0
    validate-former-id-arrival.py --base dd2466ad --head HEAD — passed
    openxdox-consumer-gate pin suites 105 / 105 / 0, HOLDS 105 / 105 / 0, HOLDS
    openxdox-consumer-gate tests/ideation-dashboard 1137 / 1137 / 0, HOLDS 1137 / 1137 / 0, HOLDS
    pytest-suite in CI (the required check) 8857 / 8851 / 6 (main's test tree, from Ratify add-neutral-product-standalone-operability on Brett Heap's word (#656 5815412869) #1151's run) 8858 / 8852 / 6, freshness and vector replay passed (job 107696117836); +1 is the new window test
    pytest-suite locally, per test case 8446 cases 8447 cases: the one added is the window test, which passed
    doc-health --single-repo --as-of 2026-09-24 31 critical / 25 error / 52 warning / 20 info identical. The one delta is the draft-age info line, where min goes 2 → 0 because the cutover runbook is edited

    In the local per-test diff, the only outcome changes are three environment-bound tests/doc-health/test_pin_reachability.py cases, which depend on whether the retention ref namespace can be consulted from a local clone. Both local runs share two failures: a test_validator_cli.py subprocess timeout while several suites ran at once, and test_snapshot_equivalence.py::test_a_prefix_whose_path_cannot_be_resolved_is_replaced_not_raised_on. CI is green.

Touches

Nothing under openspec/changes/, and not the README OpenSpec Records block (only the cutover-runbook doc-index line), so no Rule 6 landing window.

Landing order (forced)

  1. This PR, on a plain gate.
  2. Resolve the snapshot validator and its schemas in this product's own tree (split-opendox § 8.9 residue (i)-(iii)) openXdox-code#28. It stays DRAFT until this one lands. Its commit 45825ff7 is what both admissions' since: name.
  3. OWED, separate PRs:

Review round

Summary by Sourcery

Declare the § 8.9 snapshot-validator residue window in the carve manifest and validate its admissions and aggregate counts.

Enhancements:

  • Declare the snapshot-validator residue edits for the openxdox_code destination, including validator path resolution and schema-home changes.
  • Update carve totals, destination tables, historical documentation, and aggregate digests to reflect the newly declared window.

Documentation:

  • Document the two newly admitted snapshot-validator test suites and the updated carve-manifest totals and landing history.

Tests:

  • Add manifest and admissions assertions that pin the residue's rows, edit classes, exact line ranges, conversion, and introducing commit.

🤖 Generated with Claude Code

…fest (Q-L1 form)

The archived split-opendox-two-layer-product booked three carve defects in
the snapshot validator at tasks.md § 8.9 (amendment #6, RULED Q-P3 (a), #656
comment 5728856581; the box was deferred at the archive by RULED 5778397686).
They are owed to a follow-up act with its own claim. That act was RULED at
#656 comment 5815412869 (C3, Q-XDV1 to Q-XDV4 all option a) and claimed at
comment 5815613524. The three defects:

(i) the validator's SCHEMAS_DIR resolves to a directory openxdox_code does
    not have. Its own :114-116 entry declared that rewrite and it was never
    applied: the arrived blob is byte-identical to the carve blob.
(ii) snapshot.py's VALIDATOR_RELPATH names the path this repository shed at
    cc4ae9d.
(iii) find_validator's parent walk adopts any enclosing pre-shed checkout.

The code change is opensoft/openXdox-code fix/snapshot-validator-carve-
residue (45825ff7, re-cut on that leg's main 626f2c8d). Under RULED Q-L1
(5628560136, binding clause 5642758731), an edit to an arrived file outside
its declared lines needs this repository's row annotation first (Q-XDV3 (a)).
So this commit declares that window and nothing else:

- scripts/ideation_dashboard/snapshot.py converts from moved_verbatim to
  moved_with_declared_edit, with 16 path-constants lines;
- scripts/validate-ideation-dashboard-contracts.py takes a second
  path-constants entry of 10 lines. Both are filed under `path constants`,
  per Q-XDV2 (a);
- docs/opendox-carve-admissions.yaml admits the leg's two created suites,
  since 45825ff7.

The figures move with it: declared lines 2717 -> 2743, carriers 176 -> 177,
moved_verbatim 143 -> 142, moved_with_declared_edit 175 -> 176, and
openxdox_code's runbook cells go from 9 / 83 | 917 to 8 / 84 | 943. The
runbook's § 2 tables, the README index entry, three script docstrings and
the pinned tests move beside them. A new window test pins the act by row,
class and line.

Measured with scripts/verify-carve-arrival.py --destination openxdox_code
--phase B and the leg's six replicas:
- the leg head 45825ff7 answers OK against this manifest (87 declared-edit
  rows within their lines, 34 admissions used), and refuses
  arrival-digest-mismatch at src/openxdox/snapshot.py against main's;
- the current leg main 626f2c8d answers OK against both, so this commit can
  land ahead of the leg.

This act does not discharge #1144 task 7.3, whose installed-distribution
falsification remains owed to that change's phase 2.

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

sourcery-ai Bot commented Sep 24, 2026

Copy link
Copy Markdown

Reviewer's Guide

This PR records the downstream snapshot-validator fix as a first-landing Q-L1 manifest annotation: it declares 26 path constants edits across two openxdox_code rows, admits the leg’s two new test suites, updates all derived documentation and aggregate pins, and adds exact row/class/line tests to prevent the window from drifting.

Flow diagram for the forced Q-L1 landing order

flowchart TD
    A["Land manifest annotation"] --> B["Validate declared edit window"]
    B --> C["Land openXdox-code fix"]
    C --> D["Land downstream pin bumps"]
    A -.->|admits tests and declares rows| C
    B -.->|prevents undeclared edits| C
Loading

File-Level Changes

Change Details Files
Declare the § 8.9 snapshot-validator residue as a Q-L1 carve-manifest annotation for the openxdox_code leg.
  • Convert the snapshot module row from verbatim movement to declared-edit movement and add 16 path constants line numbers.
  • Add 10 declared path constants lines to the validator-contracts row, preserving its prior declaration.
  • Document the residue rationale, landing order, and updated aggregate/per-destination totals.
docs/opendox-carve-manifest.yaml
docs/opendox-cutover-runbook.md
README.md
Admit the two validator test suites that will be created by the downstream leg.
  • Add both suite paths to openxdox_code admissions with the leg commit pin and residue rationale.
docs/opendox-carve-admissions.yaml
Update manifest validation documentation and tests to pin the new declared-edit window and revised counts.
  • Update tool docstrings from 2717 to 2743 declared lines.
  • Add row/class/exact-line assertions for the 26-line window, conversion, prior edits, admissions, and aggregate totals.
  • Refresh disposition counts, runbook totals, destination figures, and Q7 digest expectations.
scripts/carve_lines.py
scripts/validate-carve-manifest.py
scripts/verify-carve-arrival.py
tests/carve_manifest/test_carve_manifest.py
tests/carve_arrival/test_verify_carve_arrival.py

Tips and commands

Interacting with Sourcery

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

Customizing Your Experience

Access your dashboard to:

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

Getting Help

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Exact since provenance is not pinned for the two admissions, and one manifest-count explanation is stale.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Medium severity

Open (2)
What changed in this PR

Records the §8.9 snapshot-validator residue window in the carve manifest.

Changes:

  • Declares 26 path-constant edits.
  • Updates carve totals, documentation, and accounting.
  • Adds admissions and regression coverage for two validator suites.
File Summary
tests/​carve_manifest/​test_carve_manifest.py Pins residue-window edits and totals.
tests/​carve_arrival/​test_verify_carve_arrival.py Updates admission and aggregate checks.
scripts/​verify-carve-arrival.py Updates arrival-validation documentation.
scripts/​validate-carve-manifest.py Updates manifest-validation documentation.
scripts/​carve_lines.py Updates declared-line documentation.
README.md Updates carve index totals.
docs/​opendox-cutover-runbook.md Synchronizes carve history and accounting.
docs/​opendox-carve-manifest.yaml Declares residue edits and conversion.
docs/​opendox-carve-admissions.yaml Adds the two validator-suite admissions.

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

Comment thread docs/opendox-carve-admissions.yaml Resolved
…the thirteenth amendment

This answers Copilot's review of openxFactory#1153 at 580e468. That review
found that nothing pinned the two admissions to their introducing commit. The
generic admissions checks bound only the 40-hex shape and the alphabetical
order, so a dropped, swapped or re-provenanced entry stayed green.

tests/carve_manifest/test_carve_manifest.py: the § 8.9 window test now
compares a path-to-since mapping for both suites against
SNAPSHOT_VALIDATOR_RESIDUE_SINCE, 45825ff7. That is the leg PR's first
commit, and a later review round on that PR does not move it.

tests/carve_arrival/test_verify_carve_arrival.py: the committed-admissions
test gains a THIRTEENTH BUMP block. It pins each suite's path and since, the
way the corpus-adapter and RULED Q7 blocks pin theirs. It also requires the
set of entries carrying that since, across every destination, to equal
exactly the two. A third admission riding in on this act's commit therefore
fails.

The docstring's ordinal sequence was stale. It read "#1085 and THIS act,
twelve amendments", where "THIS act" was #1091. It now names #1091 and #1153:
thirteen amendments, ten of which bump opendox_code.

That count was recomputed from history the way the docstring says it is. The
walk diffs each first-parent commit's parsed created sets. It finds 13
amendments after the seed #979, ten touching opendox_code, and #1043 changing
no created set.

Both new pins were made to fail by moving one since to the later leg tip
0a1963f8, which gave 2 failed. They pass on the committed file:
tests/carve_manifest plus tests/carve_arrival, 409 passed.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings September 24, 2026 15:10
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4

Copilot review round 1 (580e4684, 🟡) is answered at 9248478c.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved review comments remain, and all reviewed changes are covered by regression tests and documentation updates.

Review effort: Lite
Findings: None

Resolved since last review (2)

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap marked this pull request as ready for review September 24, 2026 15:52

@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 18 hours and 16 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap

Copy link
Copy Markdown
Contributor Author

READY #1153 @9248478c

Lane: openxfactory-4

@brettheap

Copy link
Copy Markdown
Contributor Author

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

LANDING — lane openxfactory-4, session faabad8b-8c31-4958-abd5-b35bdc9cd282@Eagle, 2026-09-24T15:58:24Z, PR #1153 into opensoft/openxFactory main

@brettheap
brettheap merged commit 1d14fee into main Sep 24, 2026
16 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

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

LANDED — lane openxfactory-4, 2026-09-24T15:58:40Z, PR #1153 → 1d14fee (opensoft/openxFactory main; squash)

brettheap added a commit that referenced this pull request Sep 24, 2026
Copilot review 5306959435 at 85d6de4 raised five findings. Each is fixed:

- T084 now runs after T073, which is serve.py's single-writer order. The same
  audit found two more gaps: T016 now runs after T012, the last serve.py edit
  in Lane A, and T038 after T022 for cli.py. Every single-writer chain in
  plan.md is now ordered in the After graph.
- plan.md's phase-2 graph shows T050 -> T051. T025 and T051 lose the [P]
  marker, because each depends on an earlier task.
- quickstart.md: the prerequisites name R1Q12, and T095 is blocked by it.
  Step 1 now asserts that no identity broker is installed and no database
  listens, and step 2 asserts that neither repository holds a model binding.
- research.md R0 checks out all seven repositories at the commits its table
  names.

The in-flight table is also brought up to date. C1 landed as #1152, C3's first
PR as #1153, C3's second PR is openXdox-code#28, and C4 is #1154. A stale
"T004's amendments" is corrected to T007.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit to opensoft/openXdox-code that referenced this pull request Sep 24, 2026
…tree (split-opendox § 8.9 residue (i)-(iii)) (#28)

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

## What this repairs

The archived openxFactory `split-opendox-two-layer-product` booked three carve defects in this leg's snapshot validation at `tasks.md` § 8.9 (amendment #6, RULED Q-P3 (a), openxFactory #656 comment `5728856581`), "owed to a follow-up act with its own claim". The box took its `[~]` DEFERRED marker at the archive, by RULED `5778397686`. This PR is that act.

RULED at openxFactory #656 comment [5815412869](opensoft/openXfactory#656 (comment)) (item 3, **C3**, all (a)) and claimed at [5815613524](opensoft/openXfactory#656 (comment)):
- **Q-XDV1 (a):** `CONTRACTS_DIR` comes from the environment. The assembly root's export of it is a separate openRepoShape act, not this PR.
- **Q-XDV4 (a):** the two new suites stay OFF `validate.yml`'s named list.

The three defects:
- **(i)** `scripts/validate-ideation-dashboard-contracts.py`: `SCHEMAS_DIR` resolved to `ROOT / "contracts" / "schemas"`, a directory this leg does not have, "so as carved the validator cannot run from anywhere".
- **(ii)** `src/openxdox/snapshot.py`: `VALIDATOR_RELPATH` named `openxFactory/scripts/validate-ideation-dashboard-contracts.py`, which openxFactory shed at `cc4ae9d3`.
- **(iii)** `find_validator` walked every parent of its start (or of the cwd) and adopted whatever enclosing checkout still carried a pre-shed copy: "a reader adopting its enclosing tree".

**This lands AFTER opensoft/openXfactory#1153** (RULED Q-L1, `5642758731`: the row annotation for an edit to an arrived file lands first). **#1153 LANDED** as `1d14fee6`. Against openxFactory `main` at `1d14fee6`, `verify-carve-arrival.py --destination openxdox_code --phase B` with the six replicas answers **OK** for this head `3f32cb5d`: 96 rows arrived, 87 declared-edit rows within their lines, 3 unapplied, 135 files with none undeclared, 34 declared admissions used. Before #1153, `main`'s manifest refused this leg with `arrival-digest-mismatch` at `src/openxdox/snapshot.py`.

**Land it by squash, the way #16–#27 landed.** Both admissions' `since:` is `45825ff7`, this branch's first commit, which introduced both suites (`git log --diff-filter=A` on this branch). That stays true through a squash, as it does for the 17 existing admissions that name a pre-squash branch commit. It would stop being true only if this branch's history were rewritten, so it must not be.

**This does NOT discharge openxFactory#1144 (`add-neutral-product-standalone-operability`) task 7.3.** That box's FALSIFIED BY asks the INSTALLED distribution to find its own validator from a `start` outside the product. This PR's `find_validator` answers `None` for such a start. So when phase 2 realizes 7.3, it revisits `tests/test_snapshot_validator_home.py::test_a_start_outside_the_product_is_refused_not_walked`, and the holder is taking that tension to Brett as a phase-2 question.

The arrived `tests/test_snapshot_validation_launch.py` belongs to the same revisit (Copilot, round 2). It still writes its stub validator at `aggregation / VALIDATOR_RELPATH` and launches from the corpus root outside this product, so under this confinement its launch would report validation SKIPPED. It cannot be collected in this repository at the base or at this head: the pinned openDox-code `5c137a90`'s `serve.py` imports `ideation_dashboard`, which is not installed here. It is also not among `validate.yml`'s named files, so no gate's outcome moves.

Nothing changes for openDox-code's two live callers of `find_validator`, which are `workbench.validate_manifest` → `find_validator(path.parent)` and `cli._locate_validator` → `find_validator(written.parent) or find_validator(repo_root)`. Both pass a start outside this product. Both already get `None` at `main`, because the old relpath names the shed path. They still get `None` here.

## Before → after (re-cut on `main` `626f2c8d`; the four files are byte-identical to the helper bank's first cut `d3a90748` on `ab04453d`, and `#26`/`#27` touched none of them)

| | before (`626f2c8d`) | after |
| --- | --- | --- |
| (ii) `VALIDATOR_RELPATH` | `openxFactory/scripts/validate-ideation-dashboard-contracts.py` (absent everywhere since `cc4ae9d3`) | `scripts/validate-ideation-dashboard-contracts.py`, relative to this product's root |
| (iii) the product nested under a pre-shed openxFactory checkout | adopts the parent's validator | never looks up: the validator used is always the product's own. A dangling-edge snapshot is `not-conformant`, and `validate_or_raise` raises |
| (i) validator in the openXdox assembly root (`2f3f857d`, `code` at the test tree), `CONTRACTS_DIR=$PWD/spec/contracts` | rc=2 in every case: `ERROR harness failure: … code/contracts/schemas/ideation-dashboard-snapshot.schema.yaml` not found | snapshot example rc=0; `negative/snapshot-dangling-document-edge` rc=1 (1 error); `snapshot-index` example rc=0 |
| (i) the same without `CONTRACTS_DIR` | rc=2, as above | rc=2, now naming the channel: `… is not carried under …/code/contracts/schemas (this tree carries no contracts/ and CONTRACTS_DIR is not set; export it as the spec leg's contracts directory)` |
| the arrived, unedited `tests/test_snapshot.py`, in that assembly root with `CONTRACTS_DIR` | 3 failed / 14 passed | **17 passed** |

## How

- **(ii) and (iii).**
  - `product_root()` is fixed `parents[2]` arithmetic on the module's own path, confirmed by an explicit marker: the `src/openxdox/` layout and a `pyproject.toml` naming `openxdox`.
  - `find_validator(start=None)` keeps its signature, because openDox's `consumer_reach` binds it by name. It now CONFINES: a `start` outside the product answers `None`, a `scripts/` link that resolves out of the tree is refused, and neither the cwd nor the snapshot's own directory is a search root any more.
  - A validator from anywhere else must be passed explicitly (`validator=`).
- **(i).**
  - A resolved `schemas/` that carries NONE of the ten, or none at all, is refused before any mode runs: harness failure, exit 2 (`87e627c`, Copilot round 2). Otherwise an empty registry let a directory sweep that met no recognized instance exit 0 having loaded no schema.
  - An own `contracts/` or `contracts/schemas/` that resolves OUT of the tree is refused before any directory is chosen, whatever it reaches: a directory with `schemas/`, one without, or nothing, since a dangling link counts too (`3f32cb5d`, Copilot round 3). Otherwise a valid `CONTRACTS_DIR` let such a link pass unread.
  - The validator reads this tree's own `contracts/` when the tree carries `contracts/schemas/`. That covers the pre-shed layout and openxFactory's `doxbench_contracts._composed_validator` farm, both unchanged.
  - Otherwise it reads the directory **`CONTRACTS_DIR`** names. That is the channel the assembly root's `AGENTS-shape.md` declares for a contract the code reads but does not own: "the code leg's tooling now takes `CONTRACTS_DIR` from the environment … rather than each script guessing at `../`".
  - Nothing above the script's own root is read by position.
  - The registry loads the family schemas the resolved directory carries; three of the ten live in openXdox-spec since the carve. An instance of any other kind is refused with exit 2 and never passed. The refusal names the missing schema and the directory it read. For a possibles-register section, whose kernel stays with openxFactory, it is the registry's own `Unresolvable` naming that schema.

openXdox's root `Makefile` is a digest-pinned copy of openRepoShape's scaffold template. It does not export `CONTRACTS_DIR` today, so in the assembly root the validator still refuses by default, but it now says which variable supplies the contracts. Whether the root should carry that export is a shape question for openRepoShape (Q-XDV1 (a)), not this PR.

## Tests

Two created suites, both `--noconftest`-safe, each copying the REAL module or script into a `tmp_path` layout:

- `tests/test_snapshot_validator_home.py`, 12 tests.
  - (ii): the relpath and the own-tree answer.
  - (iii): none of these is ever adopted: an enclosing pre-shed validator, a pre-shed corpus, the cwd, a `start` outside the product, an installed copy, a `pyproject.toml` naming another distribution, and an escaping `scripts/` link.
  - The signature is kept.
- `tests/test_validator_schema_home.py`, 12 tests:
  - runs with `CONTRACTS_DIR` (exit 0);
  - a dangling edge is a finding (exit 1);
  - an uncarried kind is refused by name (exit 2);
  - both carved path constants follow the declared directory;
  - the refusal names the channel;
  - a declared directory without `schemas/` is refused;
  - an enclosing assembly root is never read by position;
  - a composed family's own tree still wins over `CONTRACTS_DIR`;
  - an own `contracts/` that is a LINK out of the tree is refused, with or without `CONTRACTS_DIR` (added at `0a1963f8` on Copilot's review);
  - a real `contracts/schemas/` of LINKED files (openxFactory's composed farm) is still the tree's own (a guard, same round);
  - no mode passes having loaded no schema: both sweeps, `--transition` and the default, with nothing resolved or with a `schemas/` of unrelated files, all exit 2 (added at `87e627c` on Copilot's review; it fails at `0a1963f8`, where the empty sweep exits 0);
  - an escaping own link is refused whatever it reaches: `contracts/` dangling, `contracts/` to an outside directory without `schemas/`, and `schemas/` dangling out of a real `contracts/`, each with and without `CONTRACTS_DIR` (added at `3f32cb5d`; it fails at `87e627c`, where the dangling link with `CONTRACTS_DIR` exits 0).

| measurement (python 3.12.3, pytest 8.4.2; venv from `pip install -e ".[test]"` as `validate.yml` installs, plus a second venv adding rfc3339-validator where noted) | `626f2c8d` | this head (`3f32cb5d`) |
| --- | --- | --- |
| **the required check replicated**: the 16 named files, `--noconftest`, no rfc3339-validator, as on the runner | 564 selected / 558 passed / 6 skipped / 0 / 0, **pin HOLDS** (floors ≥564, ≥558, ==6) | 564 / 558 / 6 / 0 / 0, **pin HOLDS** |
| the two created suites, with rfc3339-validator | 21 failed / 3 passed (the residues, the two link cases, the no-schema guard and the new marker's API; the 3 passes are guards) | **24 passed** |
| the two created suites, CI venv (no rfc3339-validator) | 11 failed / 1 passed / 1 skipped | 12 passed / 1 skipped (`test_validator_schema_home.py` skips at module level) |
| whole `tests/`, `--noconftest`, `--continue-on-collection-errors`, per-test JUnit diff | 174 F / 830 P / 10 S / 128 E of 1142 (with the two suites copied in) | 152 F / 852 P / 10 S / 128 E of 1142. **22 outcomes change, all fail → pass**: the 21 new-suite tests that fail on the base and `tests/test_snapshot.py::test_find_validator_locates_pinned_checkout`. **0 regressions.** The 128 collection errors (`No module named 'ideation_dashboard'` / `'doc_health'`) are carve residue on both sides |

## Not in this PR

- **The named list** (Q-XDV4 (a)). Both suites exercise carved modules, which RULED Q-L8 (b′) keeps off `validate.yml`'s list. `test_validator_schema_home.py` would also report as one module-level skip on a runner without rfc3339-validator (+1 against `EXPECT_SKIPPED == 6`).
- **rfc3339-validator is not declared** in `pyproject.toml`, yet the validator exits 2 at its FormatChecker guard without it. That is reported here, not fixed.
- **`tests/test_validate_ideation_dashboard_contracts.py`** keeps openxFactory's `parents[2]`, so it names the directory above this repository. That is another row's path constant, reported and not fixed.
- **The pin moves**, which are separate owed acts in the forced order:
  - first, the openXdox root's code pin (the `code` gitlink, `contracts/code-pin.yaml` `commit:` and `tree_sha256`, `contracts/manifest.yaml` and CHANGELOG, in the shape of openXdox#17/#18) at this PR's LANDED sha;
  - then openxFactory's openXdox pin, with the consumer updates it makes due (`test_dashboard_source_seal.py` asserts the old walk; `nightly_lane.py` calls `find_validator(agg_root)`).

## Review rounds

- **Round 1** (Copilot at `45825ff7`), fixed at `0a1963f8`. An own `contracts/` or `contracts/schemas/` that is a LINK out of the tree is refused with exit 2, with or without `CONTRACTS_DIR`. A real directory of linked schema files is still the tree's own.
- **Round 2** (Copilot at `0a1963f8`), fixed at `87e627c`. With no schema carried, a directory sweep that met no recognized instance exited 0 having loaded nothing. `build_registry` now refuses first. This also corrects my round-1 answer, which called that exit 0 pre-existing: measured, the base `626f2c8d` exits 2 there. The launch-harness finding is answered in its thread; it belongs to the #1144 task 7.3 revisit described above, and is not a change here.
- **Round 3** (Copilot at `87e627c`), fixed at `3f32cb5d`. The escaping-link check used to run only when `contracts/schemas/` was a directory, so a dangling link, or a link to an outside directory without `schemas/`, passed unread whenever `CONTRACTS_DIR` was valid. Both names are now checked as they resolve, before any directory is chosen. All eight probe cases exit 2; the composed farm still exits 0.
- **No round moves openxFactory#1153's window.** Against the carve blob, the diff still touches exactly lines 14, 15, 16, 115, 116, 224, 225, 226, 230 and 1822, plus insertions beside 94 and 237. `verify-carve-arrival.py --phase B`, with the six replicas, answers `OK` for `3f32cb5d` against the LANDED `main` `1d14fee6` (87 declared-edit rows within their lines, 34 admissions used). The two admissions' `since` stays `45825ff7`, the suites' introducing commit.


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit to opensoft/openXdox that referenced this pull request Sep 24, 2026
… validator's § 8.9 residue) (#19)

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

**C3's PR 3 in the forced order.** C3 was RULED at `opensoft/openXfactory#656` comment [5815412869](opensoft/openXfactory#656 (comment)) (item 3, **C3**, all (a)) and claimed at [5815613524](opensoft/openXfactory#656 (comment)). The forced order:
1. the openxFactory annotation, [opensoft/openXfactory#1153](opensoft/openXfactory#1153), **LANDED** `1d14fee6`;
2. the leg, [opensoft/openXdox-code#28](opensoft/openXdox-code#28), **LANDED** `e28930bf` (squash, 2026-09-24T16:10:03Z);
3. **this root pin**;
4. openxFactory's `openXdox` pin, with the consumers the leg makes due.

#28 closes the archived `split-opendox-two-layer-product` § 8.9 residue (i)–(iii) in the code leg. The validator and its schemas now resolve in the product's own tree, from its own `contracts/` or the directory `CONTRACTS_DIR` names. `find_validator` confines its search to the product and no longer adopts an enclosing checkout. It does NOT discharge openxFactory#1144 task 7.3. That box's installed-distribution falsification is phase 2's, and it revisits `tests/test_snapshot_validator_home.py::test_a_start_outside_the_product_is_refused_not_walked`.

## The lockstep, in one commit

| site | before | after |
| --- | --- | --- |
| `code` gitlink | `626f2c8d` | **`e28930bf`** |
| `contracts/code-pin.yaml` `commit:` | `626f2c8d55a8…` | **`e28930bf052febff0c7bdd0463a72ce3c4f5e8fe`** |
| `contracts/code-pin.yaml` `digests.tree_sha256` | `f46e5740…bae6` | **`9b687616f6d46a1cfb293267619085b48ed78ccc17c37fa9df663f820ef1ff69`** |

No `.github/workflows/*.yml` names the code leg by `@<sha>` (as at #17 and #18), so the README's third site does not exist here.

**What the leg advance carries.** `626f2c8d..e28930bf` is ONE first-parent commit, #28's squash, and it touches four files:
- **edited:** `scripts/validate-ideation-dashboard-contracts.py` and `src/openxdox/snapshot.py`;
- **added:** `tests/test_snapshot_validator_home.py` and `tests/test_validator_schema_home.py`.

The two added suites stay off the leg's `validate.yml` named list (Q-XDV4 (a)), so the leg's floors do not move (564 / 558 / 6). The landed tree equals #28's final head tree (`e28930bf^{tree}` = `3f32cb5d^{tree}` = `9608a84b`). So openxFactory's arrival verification of that head, **OK** against openxFactory `main` `1d14fee6`, is a verification of this commit.

## The digest, three ways

`sorted-ls-tree-r-v1` over the 149 records of `git ls-tree -r -z e28930bf`:

- `scripts/repo_shape.py` `tree_digest`: `9b687616…ff69`
- an independent `ls-tree` + `sha256` re-implementation: `9b687616…ff69`
- `repo_shape.tree_digest_from_gh` (the forge's own tree listing): `9b687616…ff69`

Control: the same method recomputes the old recorded `f46e5740…bae6` at `626f2c8d` (147 records).

## Prose kept true in the same commit

- **`contracts/manifest.yaml`.** "THE CODE LEG CONTRIBUTES NO ENTRY" is re-measured at `e28930bf`: no `contracts/` path among its 149 paths. None of the five entries moves, and the three earlier readings are kept.
- **`contracts/CHANGELOG.md`, `## Unreleased — 2026-09-23`.** It records the third advance beside #26's and #27's. It also states the one thing this root does not yet do: its `Makefile` does not export `CONTRACTS_DIR` (0 hits). Q-XDV1 (a) leaves that export to openRepoShape, so in this assembly root the validator still refuses by default, and the refusal names the variable. The closing sentence is true again as written: both legs' `main` are exactly the commits this root pins. No contract byte moves.
- **No tag moves.** `xdox-v1.0` stays over `2073e3a9` (code `ab04453d`, spec `f088b097`).

## Validators, as `validate.yml` runs them (at `c6c25edf`)

| check | result |
| --- | --- |
| `python3 scripts/validate-repository-naming.py --project project.yaml` | exit 0 |
| `python3 scripts/validate-manifest.py` | exit 0: `manifest ok: openXdox (openxdox), 3 legs` |
| `python3 scripts/validate-pins.py` | exit 0: `ok  code: gitlink == contracts/code-pin.yaml commit e28930bf052f`, `ok  code: tree digest recomputes (9b687616f6d4…)`, `ok  contracts/shape-pin.yaml: 10 copied shape file(s) match their digests`, `ok  openDox: pin commit dc7aa08fe48c digest recomputes`, `pins ok` |

## Cannot red openxFactory

`verify-opendox-pin.py` check 5 reads this root's `contracts/opendox-pin.yaml` as a blob, at whatever commit openxFactory's `openXdox` gitlink names. This PR does not touch that file, and its `commit:` stays `dc7aa08f`. openxFactory keeps reading `2f3f857d` until step 4 moves its gitlink.

Step 4 carries the consumer updates the leg makes due. A simulation of the bump alone reddens exactly one openxFactory test, `tests/ideation-dashboard/test_dashboard_source_seal.py::test_the_sealed_layout_is_the_one_find_validator_walks_up_to`. `scripts/ideation_dashboard/nightly_lane.py` also calls `find_validator(agg_root)`, a start outside the product.

## Landing

Plain gate: this repository has no `openspec/changes/`, so there is no Rule 6 window. If this PR is squash-merged onto an unmoved `main` (`2f3f857d`), the squash commit's tree equals this head's tree. Step 4 then re-points openxFactory's gitlink and `commit:` to the landed sha, and records that tree's digest. **This PR is not merged by the actor that opened it.**


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 24, 2026
…d → 069fe471, with its two consumers (RULED 5815412869 C3) (#1157)

Lane: openxfactory-4

**C3 PR 4 of 4**, on RULED `5815412869` (Brett Heap, `#656`, 2026-09-24: *"ratify #1144, land the follow-ons, (a) on C1–C5"*), claimed at `5815613524`. Landing word: *"land the C1, C3 and C4 PRs when green"*. The holder lands this PR. I do not merge it.

The upstream order held:
1. openxFactory #1153 declared the § 8.9 residue window (`1d14fee6`).
2. openXdox-code #28 landed the fix (`e28930bf`).
3. openXdox #19 re-pinned the root's code leg to it (`069fe471`).

This PR moves openxFactory's openXdox pin to that root, and fixes the two consumers the new locator makes due.

## The pin: runbook § 3, one commit

This follows `docs/openxdox-pin-resync-runbook.md` § 3 (#1154, not yet landed), step by step.

| What | Before | After |
| --- | --- | --- |
| `openXdox` gitlink | `2f3f857d…c925` | `069fe471f2ef5d23ea4461c0e0abd9f2768b6a31` |
| `contracts/openxdox-pin.yaml` :109 `commit:` | `2f3f857d…c925` | `069fe471…6a31` |
| `contracts/openxdox-pin.yaml` :127 `tree_sha256` | `149dc2cd…d1c5` | `3ad15b727b78c5b9815a89e2e0713312534657bb44f2db625bbe5bf0c29f3b48` |

- **Step 3**, the `&&` chain, printed `OK: openXdox is checked out at NEW_SHA, which is on its main`.
- **Step 4**: the digest is the same computed three ways:
  - the runbook's own command;
  - `scripts/verify-openxdox-pin.py`'s `tree_digest`;
  - openXdox's `scripts/repo_shape.py` `tree_digest_from_gh`, read from the forge.
- **Step 5**: only those two lines changed. The file stays at 154 lines. The lines other documents cite (`:76-79`, `:92-94`, `:106-108`, `:119-121`) are byte-identical to main. No line names `2f3f857d` any more.
- **§ 4**: `openXdox@069fe471 derives openDox dc7aa08fe48c8d17b596b0daa1ce87cdc0472aca; this repository pins dc7aa08fe48c8d17b596b0daa1ce87cdc0472aca`. The two agree, so the openDox side does not move.
- **Both verifiers**, from HEAD:
  - `OK openxdox-pin verified: openXdox@069fe471…, gitlink read from HEAD, … (3ad15b72…)`;
  - `OK opendox-pin verified: openDox@dc7aa08f…, … lockstep with openXdox confirmed`.

## The consumers

From openXdox-code `e28930bf`, `snapshot.find_validator` no longer walks up (split-opendox-two-layer-product § 8.9 residue (iii)). It answers only for the product's own validator. A start outside the product's tree answers None.

- **`scripts/ideation_dashboard/nightly_lane.py`.** The lane asked `find_validator(agg_root)`. That call can now never find anything. It was already finding nothing: the § 5.2 shed (`cc4ae9d3`) deleted the file the old walk looked for. At main, `run_lane` with no `validator=` skips with `pinned openxFactory validator not found (openxFactory/scripts/validate-ideation-dashboard-contracts.py under <agg>)`. I measured that over the real corpus at `1d14fee6`.
  - The default is now `_pinned_validator()`. That is the product's own validator, composed with its schemas by `doxbench_contracts._composed_validator`, as `delegated_semantic_validation` already does. Run in place from the code leg, it exits 2 (`… contracts/schemas carries none of the family's 10 schemas`), so composing it is required.
  - The skip reason and the `--validator` help now name the product tree.
- **`tests/ideation-dashboard/test_dashboard_source_seal.py`.** `test_the_sealed_layout_is_the_one_find_validator_walks_up_to` asserted the walk. It is replaced by `test_the_confined_locator_never_adopts_the_sealed_validator`, which runs the real locator over a real sealed tree and checks three things:
  - the seal still carries the validator where the child's verify step looks;
  - the locator never adopts it, from the corpus root or from its own directory;
  - passed explicitly, the sealed copy is the one that runs.
- **`tests/ideation-dashboard/test_nightly_lane.py`**, two new tests:
  - `test_the_default_validator_is_the_products_own_never_an_enclosing_copy`: with no `validator=`, the lane publishes. A decoy validator that rejects everything sits exactly where the old walk looked, and it is never adopted.
  - `test_a_product_without_its_validator_skips_naming_the_product_tree`.

  Each one fails against the code it replaces. I measured that by mutation: reverting line 261 to `find_validator(agg_root)` fails the first; restoring the old skip message fails the second.

## Gates

The kit replicates every PR-triggered gate from `.github/workflows/*.yml`. It ran over `ffcc6bbf`, beside `main` `1d14fee6` in a second full clone. Both clones are named `openxFactory`.

| gate | `main` `1d14fee6` | this PR |
| --- | --- | --- |
| both verifiers | `OK … openXdox@2f3f857d …`, `OK … openDox@dc7aa08f …` | `OK … openXdox@069fe471 … (3ad15b72…)`, `OK … openDox@dc7aa08f … lockstep with openXdox confirmed` |
| the other validator steps the PR gates run | 11, all rc 0 (the arrival gate needs a range, so it runs on the branch only) | 12, all rc 0 |
| consumer gate: pin suites | 105 / 105 / 0, 4 named verdicts passed | same |
| consumer gate: ideation | 1137 / 1137 / 0, named verdict passed | 1139 / 1139 / 0, named verdict passed |
| `pytest-suite`, local | 8440 passed, 6 skipped, 1 failed | 8442 passed, 6 skipped, 1 failed |
| doc-health `--single-repo --as-of 2026-09-24` | 31 critical, 25 error, 52 warning, 20 info | 31 critical, **26** error, 52 warning, 20 info |

- **No test changed outcome.** The per-test junit diff shows only the one test replaced and the three added, all named above.
- **The local `pytest-suite` failure is not this PR's.** It is `test_validator_cli::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization]`, and it fails identically at `main`.
- **CI is green.** All twelve checks pass at `ffcc6bbf`, `pytest-suite` and `openxdox-consumer-gate` included.
- **The doc-health +1 comes from this bump, and it is expected.** It is a `release-inventory-drift` error: `scripts/validate-ideation-dashboard-contracts.py` bytes differ from the digest `contract-v4.0` records.
  - The inventory records `39b8aca7…`, which is the validator at openXdox-code `626f2c8d`.
  - The pinned leg now carries `12b54185…`, which is #28's residue fix.
  - Three errors of the same class already stand at `main`: `catalog.py`, `release.py` and `validate-hermes-runtime-contracts.py`.
  - The checker's own remedy is the next release cut, never a hand-edit of an inventory.

## Copilot

The review at `ffcc6bbf` reads 🔵 *"The dependency pin and validator behavior changes warrant final human verification"*, with **Findings: None** and no thread.

## Scope

- **Rule 6: no landing window.** This PR touches neither `openspec/changes/` nor the README OpenSpec Records block.
- **It shares `contracts/openxdox-pin.yaml` with #1154, on different lines.** This PR edits `:109` and `:127`; #1154 edits `:152-153`. Whichever lands second merges main in.
- **Task 7.3.** This does not discharge `add-neutral-product-standalone-operability` task 7.3. Phase 2 revisits `test_a_start_outside_the_product_is_refused_not_walked`.

## Not changed here: found while doing it

- **The refresh lane's seal is broken in real life, and has been since `cc4ae9d3`.** `dashboard_refresh_lane.py` refuses any seal that lacks `scripts/validate-ideation-dashboard-contracts.py` (`:1221-1230`, and verify at `:1380`). openxFactory `main` has not carried that file since the shed. Its rationale comment (`:850`) also still says the locator walks up. That code belongs to another lane (`add-nightly-dashboard-refresh`, archived), so it is reported here rather than changed.
- **The real corpus renders a snapshot the pinned validator rejects.** At both `1d14fee6` and this head, the result is the same: 3 × `snapshot-dangling-cluster-ref`, where possibles reference `cl-plane-1` (defined at `ideation/cross-reference.yaml:8646`). So, once the aggregation re-pins, the nightly lane will skip with `snapshot rejected by the pinned validator: … 3 error(s)` instead of `validator not found`. The new reason is the true one.
- **Four comments still describe the walk:**
  - `scripts/ideation_dashboard/human_seen.py:54` and `:346` ("mirroring `snapshot.find_validator`");
  - `scripts/ideation_dashboard/doxbench_contracts.py:412`;
  - residue items 2 and 3 in `scripts/verify-snapshot-equivalence.py`'s docstring (`:112-119`);
  - openDox-code `src/opendox/cli.py:273`'s `_locate_validator`, at openDox `dc7aa08f`.


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 25, 2026
…d-neutral-product-standalone-operability (#1155)

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

## What this is

This PR is the Speckit plan for **release 1, "standalone operation"
(phases 1–3)**, of the ratified OpenSpec change
`add-neutral-product-standalone-operability` (#1144). It encodes **Brett Heap's
answers to the eleven questions that blocked phase 1**.

It adds planning only: no code, no pin, and no OpenSpec change. It edits no
file of #1144. Besides the feature directory, it changes one line: an entry in
the README's Documentation index that links the feature's seven documents.

Its authority comes from two comments on #656:

- The ratification word, comment `5815412869`: *"ratify #1144, land the
  follow-ons, (a) on C1–C5"*.
- The answers, comment `5817152735` (2026-09-24T15:31:46Z): *"(a) on all
  eleven, (d) on R1Q6"*.

The ratification record landed as #1151 → `cd494e4c`. This branch is cut from
it, and it merges `main` in at `1d14fee6`.

The feature is `specs/034-opendox-standalone-operation/`:

| file | what it holds |
|---|---|
| `spec.md` | User stories US1 (it runs), US2 (useful alone), US3 (installs) and US4 (the governed host unchanged). FR-001–FR-012, each mapped to a #1144 requirement and its boxes. § Clarifications, with the eleven answers as `Q: … → A: …`. The term-by-term definition of the AT-R1 acceptance test. |
| `plan.md` | Technical context. Constitution Check I–VII, where the one recorded deviation is now resolved for phase 1. The five target repositories. Where each box closes. The dependency graph and the single-writer surfaces. The pin and landing order (9.5). The trailer and Rule 6 rules. **§ Ruled answers and § Ruling needed (RN-1).** In-flight overlaps. |
| `research.md` | Every measurement, with the command that reproduces it (`W=$(mktemp -d)`; no host paths). Eight non-normative corrections to #1144 (R16). |
| `tasks.md` | 87 tasks, T001–T098. Each task carries its repository, the boxes it realizes, its falsifier, and its `Blocked by:`, `Ruled:` and `After:` lines. **T007** records the ruled amendments in #1144, and **T008** raises the `doc_health` direction arc. **T009** and **T069** open phases 2 and 3. **§ Ruled amendments**. Box accounting (69 of 124). **The phase-1 writer slices, in parallel groups G1–G6.** |
| `quickstart.md` | The AT-R1 procedure: the HTTP half (T095) and the browser half (T096). |
| `clarify-questions.md` | **R1Q1–R1Q23: 11 ANSWERED, 12 OPEN** |
| `checklists/requirements.md` | The spec-quality checklist. Its two open items are the constitution's own gates. |

## The answers (`#656` `5817152735`), and where they go

| question | answer | carried out by | #1144 amendment (T007) |
|---|---|---|---|
| R1Q22 | (a) the manifest records arrival only | every carved-file task; T038 corrects `runtime/cli.py:17-19` | an 11.1 addendum (batch A) |
| R1Q1 | (a) handler-contribution facet | T010, T011, T045; T084 and T086 in phase 3 | 2.2 and design.md § D4 addenda (A) |
| R1Q2 | (a) named composition tests join 11.1's surfaces | T045, T094 (`test_extension_point_parity.py`) | 11.1 and F11.1 widened (A) |
| R1Q3 | (a), with (i) and (ii) | T016, T022 | F3.1 line 2 and 3.2 (A); **(ii) is RN-1** |
| R1Q4 | (a) openDox's own verbs; the host asserts | T015, T038, T046 | none |
| R1Q5 | (a) `RuntimeSubcommand` via `SUBCOMMAND_EXTENSIONS`, with the `opendox-runtime` alias | T038, T042 | a 10.1 addendum (A) |
| R1Q6 | (d) a declared exclusion with its count and its reason | T041, T043, T044; T008 (the direction arc) | F9.1 for openXdox-code, and 9.4 (B) |
| R1Q7 | (a) a reviewed respelling-only allow-list | T043, T059, T086 | F5.2 and 12.5's falsifier (C) |
| R1Q8 | (a) `tests_runtime/` included, with a DB service in the required job | T036 | none (F9.1 unchanged) |
| R1Q9 | (a) `list_documents` in phase 1 | T025, T046 | 4.3's "four" (A) |
| R1Q20 | (a) bookkeeping carries no trailer | T091, and this PR | an 11.0 addendum (A) |

Each T007 batch is its own bookkeeping PR. Each lands under a Rule 6 window,
with no `Arc:` trailer, before the checkpoint that runs the amended falsifier.

## RULING NEEDED

**RN-1: requirement 3's fourth scenario, against R1Q3 (ii).** The scenario
reads *"the registered profile replaces the default for that process"*,
unconditionally. As ruled, (ii) refuses a host registration made after a parser
or server was built from the default. The recommendation is (a): the scenario's
WHEN gains *"before the product's parser or server has been built from the
default"*, plus a scenario for the refusal. RN-1 holds no task, because the
after-build refusal is today's `AlreadyRegistered` (plan.md § "Ruling needed").

## Still open (phases 2–3, and process)

- R1Q10–R1Q19 and R1Q21. Until they are answered, phases 2 and 3 are
  PROVISIONAL, and they authorize no implementation.
- **R1Q23 is new**, raised by R1Q6 (d). Four of 5.4a's six generator suites
  need `doc_health`, and F5.2 does not provide it. R1Q23 asks how F5.2 runs.
  It blocks T059 and T063, not phase 1.
- A watch item for the archive: under R1Q6 (d), requirement 9 stays an OPEN
  EXTRACTION for openXdox-code until the direction arc lands.

## Phase-1 fan-out (tasks.md § "Phase 1 writer slices")

Before any slice runs, the holder runs T003 (ARC_BASE) and T005 (the
re-measure), then T006 (round 1a's analyze), and claims the slice (T002). The
groups then run in order:

- **G1**: P1-A (route seam), P1-B (default profile), P1-C (home-corpus seam)
  and P1-E (openxFactory reaches).
- **G2**: P1-D (authoring, default adapter) and P1-H (console script).
- **G3**: P1-F (sweep and nine-file repair), then P1-G (whole suite in CI).
- **G4**: P1-R (the openDox root pin).
- **G5**: P1-I (the openXdox pin and residue), then P1-J (openXdox green
  alone).
- **G6**: P1-K (the consumer pins and host wiring), then P1-L (T017, T018),
  then the T049 checkpoint. T049 also waits on T007's batches A and B, and on
  RN-1.

A slice is one writer and one claim in one repository. Its tasks land in
their `After:` order, one PR each unless a `Lands with:` line joins them.

Each slice's repository, files, dependencies, falsifier and model (Opus or
Sonnet) are in the table in tasks.md.

## Copilot, round 1 (review `5306611493` at `437ca764`)

All five threads were answered and resolved at `85d6de45`:

- **T031/T036 cycle.** T031 is now `After: T035`, and it co-lands in T036's
  PR.
- **T040/T047 cycle, and the same in phases 2 and 3.** Each phase's pin
  advance is split into a root-pin task (T039, T062, T087) and a
  consumer-pin task (T047, T064, T094).
- **SC-006.** It now reads 65 of 69 at release-1 close.
- **T003.** It is no longer blocked, because R1Q20 is ruled.
- **The checklist.** Its repository item is narrowed to realization tasks.

## Copilot, round 2 (review `5306959435` at `85d6de45`)

All five threads were answered and resolved at `d3a33165`:

- **T084 after T073.** This is `serve.py`'s single-writer order. The same
  audit also put T016 after T012 and T038 after T022. All six single-writer
  chains in plan.md are now ordered in the `After:` graph.
- **The phase-2 graph** shows T050 → T051. T025 and T051 lose `[P]`.
- **The quickstart's prerequisites** name R1Q12, and so does T095's
  `Blocked by:` line.
- **The quickstart's step 1** now asserts that there is no identity broker and
  that no database listens. Step 2 asserts that neither repository holds a
  model binding.
- **R0** checks out all seven repositories at the commits its table names.

## Copilot, round 3 (review `5307043972` at `d3a33165`)

Both inline threads were answered and resolved at `701a4a1a`, and the three
"previously missed" items were answered in a PR comment:

- **The constitution's workflow gate.** Phases 2 and 3 are now PROVISIONAL.
  They authorize no implementation until each is re-planned on its answers
  and re-analyzed; since round 5 that is done by their round tasks, T009 and
  T069. Phase 1, the only phase the plan authorizes, has every material
  ambiguity resolved.
- **spec.md's catalog edge case** now separates the behaviour before T085
  from the behaviour after it.
- **The acceptance graph** is serial: T095 → T096 → T097.
- **T017 and T093** run after each phase's openxFactory landing.
- **T081** runs after T085, whose validators serve its catalog route.

## Copilot, round 4 (review `5307117274` at `701a4a1a`)

Both inline threads were answered and resolved at `0a5acd7c`, and the three
"previously missed" items were answered in a PR comment:

- **RN-1 against phase 1's close.** RN-1 now holds T049. Requirement 3 is not
  reported as realized until RN-1 is ruled and T016 matches the ruling.
- **T076 after T087.** The README documents the command the root pins.
- **T034 after T032, T047 after T007's batch A, and T059 after T007's batch
  C.** The same audit ordered every arrow in the plan's graph against the
  `After:` graph.

## Copilot, round 5 (review `5307230690` at `0a5acd7c`)

Both inline threads were answered and resolved at `0ad046ba`, and the two
"previously missed" items were answered in a PR comment:

- **T006 waited on the open-ended T004.** T004 is now round 1a, and it is DONE.
  T006 is round 1a's analyze, after T003, T004 and T005. Phases 2 and 3 open
  with their own round tasks, T009 and T069.
- **The quickstart's readiness probe.** It first checks that the port is free,
  and on every poll it checks that the launched PID is alive.
- **Constitution row V.** It records `main`'s baseline and the accepted
  `add-chain-attestation` disposition, and notes that the enforced
  `openspec-cli-pin` gate exits 0.
- **T053's trailer policy.** openDox-spec is a sixth repository of the arc
  only if T053 applies, and T091 then covers it.
- **The same audit:**
  - co-landings now use a `Lands with:` line;
  - T026 loses `[P]`;
  - `serve.py`'s single-writer chain starts at T010.

## Copilot, round 6 (review `5307694574` at `0ad046ba`)

Its one thread was answered and resolved at `2a57501c`:

- **FR-006** now carries requirement 9's own clause for a check that runs
  less than the whole suite. openXdox-code declares its `doc_health`
  exclusion with a count and a reason, and reports it as an open extraction.
- **Every other whole-suite claim** carries the same qualifier.
- **9.2's close moves to phase 3**, where T086 takes the ratchet to `(0, 0)`.

## Copilot, round 7 (review `5307775377` at `2a57501c`: Findings: None)

Its three "previously missed" items were answered in a PR comment and are
addressed at `abb2344e`:

- **T003** records openDox-spec's ARC_BASE unconditionally.
- **T093 is the interim F11.1 procedure.** Each phase runs it as its own
  task (T018, T065 and T098), and each checkpoint depends on its run.
- **Constitution row IV** records the README-index reading that every
  earlier Speckit feature follows.

## Copilot, round 8 (review `5307865432` at `abb2344e`)

Its one thread was answered and resolved at `0a859498`:

- **The README document index** (Principle IV). The README's Documentation
  section now carries an entry for feature 034, beside the openDox carve
  documents, and it links all seven documents. The entry sits outside the
  OpenSpec Records block, and Constitution row IV records it.

## Copilot, round 9 (review `5307941798` at `0a859498`: Findings: None)

Its two "previously missed" items were answered in a PR comment and are
addressed at `1522c4c7`:

- **T095 against T036's PostgreSQL service.** AT-R1's HTTP half is now a
  harness, `acceptance/at_r1_http.py`, run by its own `acceptance` job with no
  database service. It is not a pytest module, so it changes neither
  openDox-code's `testpaths` (which T036 sets in phase 1) nor F9.1, and
  FR-006's "no exclusion" still holds.
- **T072's falsifier** no longer names the procfs path, and the quickstart's
  null-device redirects are gone. The host-path scan now covers the system
  roots as well.

`2e4f3315` then merges `main` in at `1d14fee6`.

## Copilot, round 10 (review `5308148911` at `2e4f3315`)

Its two threads were answered and resolved at `34b7b2ca`:

- **The harness and T036.** The plan and T095 now say the harness changes
  neither `testpaths`, which T036 sets in phase 1, nor F9.1.
- **T073 after T055.** T073 reached T055 only through phase 2's checkpoint,
  and it now names T055 directly. The seven other single-writer pairs that
  relied on a transitive path are direct edges as well, so all 19 consecutive
  pairs of the six chains are direct.

## Copilot, round 11 (review `5308305662` at `34b7b2ca`: Findings: None)

Its one "previously missed" item was answered in a PR comment and is addressed
at `bc1bd20b`:

- **T095 after T076.** AT-R1 runs the root README's documented command, so
  T095 now waits for T076, the task that writes that README. So does T089,
  which leaves no phase-3 task outside phase 3's checkpoint.
- **The same check on every phase.** T049 now names T017, as the P1-L row
  already said. T017's `After:` line no longer lists its phase-2 and phase-3
  re-runs.

## Copilot, round 12 (review `5308403738` at `bc1bd20b`: Findings: None)

Its one "previously missed" item was answered in a PR comment and is addressed
at `a86ced35`:

- **T096 had no repository tag and no falsifier.** It now carries `[oxF]`,
  where its evidence lands, and names the oracle's verdict. The same check over
  every task found eight more gaps (T074, T077, T083, T090–T093), and each now
  names its repository and its falsifier. The checklist item names these
  classes.

## Copilot, round 13 (review `5308511992` at `a86ced35`)

Its one thread was answered and resolved at `49eb53ee`:

- **macOS could not run F13.1.** The plan's Target Platform now names Linux
  alone. 13.1 checks the "no TCP port" invariant in the Linux kernel's socket
  table, and no ratified falsifier covers macOS. Adding macOS would need a
  Darwin leg for 13.1's check and F13.1, which is an amendment to #1144 and so
  needs a ruling.
- From the same pass: T036 now comes after T038, because both edit
  openDox-code's `pyproject.toml`, and T046's range skips two undefined ids.

## Copilot, round 14 (review `5308583172` at `49eb53ee`)

Its one thread was answered and resolved at `e927069e`:

- **T092's note versus "no field changes".** T092 and its falsifier now state
  F11.1's own rule. With every `edits[].note` removed, the manifest is
  unchanged, and an existing note may only be extended.
- From the same pass: three checklist claims are now exact (FR-011 and FR-012,
  SC-006 and SC-007, and the edge cases).

## Copilot, round 15 (review `5308662086` at `e927069e`: Findings: None)

Its one "previously missed" item was answered in a PR comment and is addressed
at `9b86b920`:

- **R4 and R10 ran `ci_coverage.py` with the host's `python3`.** They now use
  the `od` and `ox` venvs, and so do R5's, R6's and R9's runs. From the same
  pass, T096 now also records T095's `acceptance` job for SC-004, and spec.md's
  `Status` header reads `Draft`, as the sibling features' headers do.

## Copilot, round 16 (review `5308754464` at `9b86b920`)

Its one thread and its one "previously missed" item were answered and are
addressed at `4d3c605b`:

- **US4's note condition** now admits a note added where an entry had none,
  as T092 and F11.1 do.
- **T053's condition** is now "R1Q11 (a) or R1Q12 (b)" in the plan's graph,
  its phase-2 lanes and Constitution row VI, as T053 itself says.

## Copilot, round 17 (review `5308830806` at `4d3c605b`)

**Findings: None**, and nothing listed as previously missed. All 23 inline
threads are resolved.

## The adversarial sweep (at `4d3c605b`), folded in at `1cb01e4c`

Round 17 was clean, and every check was green at `4d3c605b`. Each earlier round
had still found one or two new cross-document gaps, so a read-only Opus
reviewer swept all seven files, #1144 and the measured code. It reported 28
MUST and 23 NICE findings. Every MUST was verified against the text, the packet
or the code, and fixed; the exact NICEs were fixed too. The PR comment at
`1cb01e4c` lists them. The phase-1 ones were:

- T036 gives `validate` the `.[runtime,test]` install as well as its PostgreSQL
  service. Without it, `tests_runtime/conftest.py` fails every runtime case
  under `CI`.
- T043 waits for C3's PR 2, because `tests/test_snapshot.py` fails on the
  validator lookup, not on `doc_health`.
- openxFactory's `test_serve_column_split.py` is the second named composition
  test.
- A slice's tasks land in `After:` order, and T032 is the join of every lane.
- Batch D would carry RN-1's scenario text, only on Brett's ruling.

## Copilot, rounds 18–24

| round | review | head | result | addressed at |
|---|---|---|---|---|
| 18 | `5309539162` | `9f799f20` | 1 thread: show T026 → T025 in the graph | `902da25b`: the single-writer table lists every phase-1 shared file (`workbench.py`, openDox-code `pyproject.toml`, `tests/test_authoring_seam.py`) |
| 19 | `5309640972` | `902da25b` | 1 thread (how T035's six modules move) and 1 previously missed (`Status:` headers) | `224046c5`: each module is rewritten or re-landed by T042, and all seven files carry `Status: draft` |
| 20 | `5309742955` | `224046c5` | 1 thread: T049 must accept the openxFactory destination | `53a85ed9` |
| 21 | `5310503144` | `53a85ed9` | 1 thread (T006's feature context) and 1 previously missed (row V's base) | `09e81dc3`: `SPECIFY_FEATURE_DIRECTORY` and the prerequisite check; the gate is re-run on `main` at `138a4722` |
| 22 | `5310581314` | `09e81dc3` | 1 thread (the T043/T061 contingency cycle) and 2 previously missed (the outline-model route, openXdox-spec) | `02b1aa30`: the contingency is caught by T005 before phase 1; openXdox-spec is a conditional seventh repository |
| 23 | `5310647715` | `02b1aa30` | **Findings: None**, nothing previously missed | `243e460f`: a self-check found that T044 must re-pin openXdox's floors when a file joins the exclusion |
| 24 | `5310714316` | `243e460f` | **Findings: None**, nothing previously missed | — (the head) |

## Validation (head `243e460f`)

| gate | result |
|---|---|
| `OPENSPEC_TELEMETRY=0 openspec validate --all --strict` | `Totals: 110 passed, 1 failed (111 items)` at the head, and the same on `main` itself at `138a4722`, which the branch merges. The one failure is `add-chain-attestation`'s ratified disposition. |
| `python3 scripts/validate-openspec-cli-pin.py --all` | exit 0; `every target validated --strict with 0 UNDISPOSITIONED failures` |
| the `After:` graph in tasks.md, checked by DFS | no cycle; the same check reports the three pin-advance cycles at `437ca764` |
| plan.md's nine single-writer chains, each consecutive pair checked against the `After:` graph | 0 gaps; all 22 pairs are direct `After:` edges |
| the 50 arrows in plan.md's graph and tasks.md's Dependencies, each checked against the `After:` graph | 0 mismatches (6 at `d3a33165`) |
| every realization task outside Phase 0 names its repository and its falsifier; no `Lands with:` pair names each other on `After:` | 0 gaps |
| every task of each phase before its checkpoint (T049, T063, T089), a `Lands with:` pair counting as one landing | 0 gaps; T048, the holder's F4 re-measure, follows T049 by design |
| phase gates: every phase-1 task after T006, every phase-2 task after T009, every phase-3 task after T069 | 0 missing |
| root pins T039, T062, T087: every openDox-code task of their phase an ancestor (a `Lands with:` pair counts as one landing) | 0 missing |
| checkpoints T049, T063, T089 after their interim F11.1 runs T018, T065, T098 | all three |
| question headers against the tasks' `Blocked by:`/`Ruled:` lines | 23 headers, 0 mismatches |
| box table | 69 release-1 boxes, each naming defined tasks |
| host-absolute path scan (home, scratch and system roots) and closing-keyword scan (files and commit messages) | 0 hits |

## Process

- **No Rule 6 window is needed.** This PR touches no `openspec/changes/`
  directory and not the README's OpenSpec Records block: its one README line
  is in the Documentation index. T007's batches and T097's ticks will each
  need a window.
- **No `Arc:` trailer.** This PR is bookkeeping, and R1Q20 (a) is now ruled.
- **Sibling reads (Rule 1).**
  - #656: no claim on the release-1 planning object.
  - `gh pr list -R opensoft/openxFactory --state all --search 034-opendox`:
    only #1144.
  - `specs/034-*`: absent on `main`.
- **Lane 4's in-flight acts have all landed** (plan.md § "In-flight overlaps").
  - C1 landed as #1152 → `9afea8d7`.
  - C3's PR 1 landed as #1153 → `1d14fee6`, and its PR 2 as openXdox-code#28 →
    `e28930bf`. C3 overlaps 7.3 (T061) and the openXdox pin (T047). T061's
    `After:` condition on PR 2 is now met.
  - C3's openxFactory openXdox pin bump landed as #1157 → `1edbb3dd`, and C4's
    runbook as #1154 → `138a4722`. T090 follows the runbook.
- **Persisted tools.** Everything is in `opensoft/brett-wip`, under
  `handoffs/xFactory/attachments/lane-opendox/r1plan/tools/`:
  - the four measurement scripts and the shim, at `011b1586`;
  - the plan-consistency checks (`qmap.py`, `qcheck.py`, `depcheck.py`,
    `chaincheck.py`, `chaindirect.py`, `arrowcheck.py`, `phasecover.py` and
    `sharedfiles.py`), to re-run after every re-plan.

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


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
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