Skip to content

split-opendox § 5.2: the SHED — phase post-shed + 319 deletions, with Q2/Q6/Q7 (RULED (a), refs #656) - #940

Merged
brettheap merged 32 commits into
mainfrom
change/split-opendox-section-5-shed
Sep 11, 2026
Merged

brettheap merged 32 commits into
mainfrom
change/split-opendox-section-5-shed

Conversation

@brettheap

@brettheap brettheap commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

Refs #656 (stays OPEN).

What this PR is

§ 5.2 of split-opendox-two-layer-product — THE SHED — on Brett Heap's
RULED (a) post-shed mode (#656 comment 5625573095), the Q2/Q6/Q7 words
(5626248666, 5626260214) and the Q-L1 fold (5628560136):

  • docs/opendox-carve-manifest.yaml: phase: carve → phase: post-shed,
    plus the seven Q-L1 declared-edit annotations (each citing 5628560136).
  • The 319 not_moved rows deleted from the tree (381 files changed,
    179,308 deletions) — derived from the manifest, not by hand.
  • Retained tests, scripts and workflows now read the moved sources from
    the two pinned code legs (openDox/code/src, openXdox/code/src)
    through the manifest-derived resolver scripts/carved_reach.py.
  • profile_openxfactory importers xfail with the § 4.3 reason (RULED
    ASK-2, 5628886636).
  • The two conftests register the reach suite-wide.
  • Hermeticity seams renamed to match.
  • .github/workflows/pytest-suite.yml initializes the two moved legs
    --recursive and pins the new floors.

The class ledger

  1. 5 retained ideation-dashboard tests re-pointed through carved_reach.source().
  2. PUBLISHER_MARKERS / VALIDATOR_IN_CHECKOUT derived from shed_relpath();
    _composed_validator() restored so openxFactory reads as a publisher again.
  3. hermes-runtime catalog + release sources re-pointed (_WorkingTreeSource,
    _CommitSource).
  4. doc-health, test_human_seen, test_manifest_digest_sweep,
    test_intent_apply_lane — verified green through the reach, no code change
    needed.
  5. gate-action-record readers (test_release_boundary) re-pointed.
  6. carved_reach.shed_commit_object() + _CommitSource.{exists,read_member};
    tests/ideation-dashboard/conftest.find_openxfactory_validator() composed
    from the leg.
  7. carved_reach.OPENXDOX_COLUMN_BINDINGS + bind_openxdox_column() — a PEP
    562 __getattr__ shim on the openxdox namespace package for the three
    gate_routes.py import sites that mix a moved module with a not-moved one
    (the pinned openXdox leg still carries the old import statements verbatim;
    OWED: openXdox-code rewrites those 3 lines + a pin bump, recorded in the
    code comment — RULED (a) post-shed mode moves no leg in this PR).
  8. catalog.py _contained_regular_file and release.py _CommitSource.{read_member,exists}
    made shed-destination-authoritative unconditionally, so a stale or
    reintroduced file at a pre-shed path can never stand in for the validated
    bytes.
  9. The three required-suite pins (MIN_SELECTED, MIN_PASSED,
    EXPECT_SKIPPED) moved with the reason recorded in the workflow: 111
    test_*.py files physically moved (71 openXdox-code, 40 openDox-code),
    shrinking the collected set by a fixed, explained amount.
  10. Floor margins re-seated (1 → 4) after the suite's subtest-count emitter
    was found to jitter run to run while the test count held steady.
  11. Merge of origin/main (see below) plus two Copilot-found security fixes
    (see below).

Verification

Head ac2ac2ad (git rev-parse HEAD == origin/change/split-opendox-section-5-shed).

pytest-suite run 34625674311 at ac2ac2a: completed success
(6876 passed, 6 skipped, 338 deselected, 9 warnings, 172 subtests passed in 1013.19s). Prior green runs on this branch: 34623031205 @ c7d290d,
34619904256 @ a6e0afc, 34610094133 @ 91beb08 — all completed success.

CI counts (34625674311 @ ac2ac2a, unchanged since 91beb08): selected=7054 passed=7048 skipped=6 failures=0 errors=0 vs floors MIN_SELECTED=7050 /
MIN_PASSED=7044 / EXPECT_SKIPPED=6 (.github/workflows/pytest-suite.yml)
— margin 4 on both floors.

Delta vs the pre-shed baseline: −104 skipped, −18 errors, 151 subtests and 338
deselected unchanged.

Local full suite: 1 failure = the known local-only subprocess timeout
(test_release_mode_field_is_preserved_on_the_real_repository[...], a
subprocess.TimeoutExpired under local host load, not reproduced in CI).

python3 scripts/validate-carve-manifest.py →

OK docs/opendox-carve-manifest.yaml: phase post-shed, 456 row(s) at
opensoft/openxFactory@b075fd91dc8f (opendox-carve-0), verified at ac2ac2adec1b
— 169 moved_verbatim, 149 moved_with_declared_edit, 138 not_moved; 318
digest(s) recomputed; 456 file(s) in the declared surface with none
undeclared; 319 shed row(s) absent at source as declared

OPENSPEC_TELEMETRY=0 openspec validate split-opendox-two-layer-product --strict
→ "Change 'split-opendox-two-layer-product' is valid".

OPENSPEC_TELEMETRY=0 openspec validate --all --strict → 99 passed, 2 failed
(101 items); both failures (change/disposition-codexfactory-declared-renames,
change/disposition-codexfactory-floor-relocation-retitle) are pre-existing
and untouched by this branch (git diff --name-only origin/main...HEAD — 381
files, none under either change's path).

python3 scripts/proposal-support.py . verify split-opendox-two-layer-product
→ "proposal support verification ok".

43 review threads / 0 unresolved (the 43rd, Copilot's scripts/validate-manifest-digests.py
shed_aware() concern re: moved_with_declared_edit rows, checked against the
actual bytes — the redirect's live digest for both flagged rows already
matches contracts/manifest.yaml's recorded value, kept in sync by the merged
#970/contract-v3.7 cut — answered and resolved, no code change). Closing
references: 0. No closing keyword in any branch commit.

Independent verification

GREEN-WITH-NOTES at 0acfd13 by the lane's verifier (own clone; manifest,
deletions, adapter re-points, full suite re-derived; arrival OK at
opendox_spec / openxdox_spec / opendox_code and both roots; openxdox_code
needs two --allow-created admissions for files added by openXdox-code #7 — a
runbook admission-list register item, not CI-gating). Delta verification on ac2ac2a (merge of main, the two Copilot security fixes in the carve resolver): GREEN-WITH-NOTES, no gating item — merge scope, tasks.md union, validate-carve-manifest exact match, adversarial case table 9/9 on both closed-relative-path predicates, openspec strict, CI floors, 43/0 threads and every body figure re-derived in an independent clone; two register notes (validate-carve-manifest.py's own _git() helper is unsanitized, pre-existing; the shed_aware disposition fragility Copilot raised is forward-looking, not a current defect).

Ticks

This PR ticks NO tasks.md box: 5.2 says "four dashboard contract schemas"
while the manifest moves five (recorded as a defect by task 5.6a in #970).
5.2a/5.3/5.4/5.5 stay open with their own reasons.

OWED, failing CLOSED

  • The corpus seal over the 199 moved rows under CORPUS_SEAL_PATHS (repair =
    the § 4.3 composition).
  • The release-inventory bundle cut (the two hermes-runtime release members
    this PR edits report error until a bundle is cut).

Merged main

a6e0afc6 (contract-v3.7; tasks.md now carries 5.6a and the corrected 5.8
sentence beside this PR's amendments).

Landing

Rule 6 window (touches openspec/changes/); lands on the lane's verifier's
green under RULED (a) per ASK-8 (5635150678); the squash body is the lane's.

🤖 Generated with Claude Code

brettheap and others added 3 commits September 10, 2026 22:10
Records RULING (a) ("rule (a) post-shed mode, merge 924 when green",
#656 comment 5625573095) at design.md § D6 (1): the § 5.2 shed's own
prerequisite as measured (the unmodified validator refuses any tree
with a deleted manifest source path, carve-path-absent, 319 rows by
construction), exit (a) POST-SHED MODE's semantics, exits (b)/(c)
named and why not taken, and the PR-1 (#928) / PR-2 (the shed) split.
New record: review/amendment-2026-09-10-shed-exit-post-shed-mode.md.

Corrects two evidentiary-precision notes owed from #924's landing
(comment 5625808031): tasks.md § 5.1's aside about commit 7f76f97
("nothing else in that diff") is overstated -- it also carried
.gitmodules, pin_class.py and verify-openxdox-pin.py; and a dated
status paragraph under § 5.2 points at the immutable reality-check
record's Probe 1 "4 errors" figure, stating the measured 27 without
editing that Status: record file. The same § 5.2 paragraph names
PR-1/PR-2 status and the three sub-questions ((2), (6), (7)) gating
PR-2's start.

refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…DME, and record RULED Q7's two direct upstreams

Completes the packet-side footprint the 2026-09-10 amendment record itself
named as owed ("a later hand extending this amendment to proposal.md's
header and eleven-acts list and to README.md's OpenSpec Records row ...
would be completing the convention"): a third `Amended:` line on
proposal.md, an inline clause on eleven-acts item 12's FLOOR PART 1, and a
third amendment clause in README's OpenSpec Records row. FLOOR PART 1 is
not reopened by any of them -- carve_commit, all 456 rows, every digest and
every disposition are unchanged and the one optional `phase:` key is
symmetric.

Records RULED Q7 where the packet still said the opposite. design.md's
D12 pin discussion and proposal.md code_surface items (1) and (3) carried
RULING F's "openxFactory ... never separately declared, pinned or mounted
here"; openxFactory now mounts and pins the openDox assembly root directly
(#932 -> f4fb4ff, Brett Heap "SECOND SUBMODULE -- openxFactory mounts the
openDox assembly root", #656 comment 5626248666). Every original sentence
is kept and annotated, none deleted: what survives of RULING F is RULING
OQ-2's one chain, now held as the LOCKSTEP invariant rather than as an
absence.

Corrects the ordinal in the ruling comment's item (4): REFUSAL_CODES stood
at eleven members, so carve-shed-incomplete is the 12th of 12, not the
seventh.

Refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…e 319 shed paths (RULED (a), #656)

The phase and the deletions are ONE ACT and this commit is that act. The
manifest's only edit is `phase: carve` -> `phase: post-shed`; the 319 paths
are DERIVED from the manifest's own rows by the same rule the validator
uses -- every row whose disposition is moved_verbatim or
moved_with_declared_edit (318), plus the one row whose not_moved reason is
deleted_at_carve (scripts/ideation_dashboard/profile_openxfactory.py) --
and never from a hand-copied second list.

carve_commit stays b075fd9 (tag
opendox-carve-0), all 456 rows stay, every sha256 stays, and zero rows
change disposition. The 137 retained rows -- 103 stays_openxfactory_adapter,
20 replicated_at_destination, 14 stays_openxfactory_governance -- are
required PRESENT and are untouched here.

Refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 11, 2026 02:15

@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, we are unable to review this pull request

The GitHub API does not allow us to fetch diffs exceeding 300 files, and this pull request has 325

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.

🟡 Changes recommended

Retained dependencies, manifest registrations, deleted assets and validators, and CI floors still need coordinated updates.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This pull request flips the OpenDox carve manifest to post-shed and removes 319 dashboard/OpenDox files intended for destination repositories. Retained imports, manifest registrations, assets, validators, and CI expectations still reference removed files.

Changes:

  • Sets the manifest phase to post-shed.
  • Deletes migrated dashboard code, tests, fixtures, examples, schemas, and governance artifacts.
  • Removes local surfaces in favor of destination repositories.
File summaries
File Summary
tests/ideation-dashboard/test_snapshot_determinism.py Deleted dashboard test.
tests/ideation-dashboard/test_register.py Deleted dashboard test.
tests/ideation-dashboard/test_header_value_readers.py Deleted dashboard test.
tests/ideation-dashboard/test_aggregation_register_instance.py Deleted dashboard test.
tests/ideation-dashboard/fixtures/negatives/uncited-rejection.register.yaml Deleted dashboard fixture.
tests/ideation-dashboard/fixtures/doxbench_scope_cases.json Deleted dashboard fixture.
tests/ideation-dashboard/fixtures/doxbench_hash_vectors.json Deleted dashboard fixture.
tests/ideation_dashboard/test_project_action_contracts.py Deleted dashboard contract test.
scripts/ideation_dashboard/web/views/notebook.js Deleted web asset.
scripts/ideation_dashboard/web/views/model.js Deleted web asset.
scripts/ideation_dashboard/web/views/helpers.js Deleted web asset.
scripts/ideation_dashboard/web/views/edit.js Deleted web asset.
scripts/ideation_dashboard/web/vendor/.gitkeep Deleted web artifact.
scripts/ideation_dashboard/web/index.html Deleted web artifact.
scripts/ideation_dashboard/profile_openxfactory.py Deleted profile; retained adapter tests still import it.
scripts/ideation_dashboard/openxdox_surface.py Deleted surface; retained runtime and collection references remain.
scripts/ideation_dashboard/fixtures.py Deleted dashboard module.
scripts/ideation_dashboard/doxbench_scope_types.py Deleted dashboard module.
scripts/ideation_dashboard/doxbench_hash.py Deleted dashboard module.
scripts/ideation_dashboard/corpus_root.py Deleted module; retained adapter imports it.
scripts/ideation_dashboard/cli_project.py Deleted dashboard module.
scripts/ideation_dashboard/boundary.py Deleted dashboard module.
scripts/ideation_dashboard/action_errors.py Deleted module; retained adapter dependencies remain.
scripts/ideation_dashboard/__init__.py Deleted package marker.
README.md Deleted dashboard documentation.
openspec/changes/split-opendox-two-layer-product/tasks.md Deleted change task record.
examples/ideation-dashboard/workbench-model-catalog-routing-rule.example.yaml Deleted example.
examples/ideation-dashboard/workbench-model-catalog-routing-rule-wider-than-a-non-resolved-member.example.yaml Deleted example.
examples/ideation-dashboard/workbench-model-catalog-multimodal.example.yaml Deleted example.
examples/ideation-dashboard/workbench-model-catalog-local.example.yaml Deleted example.
examples/ideation-dashboard/workbench-model-catalog-hosted-zero-retention.example.yaml Deleted example.
examples/ideation-dashboard/workbench-model-catalog-empty.example.yaml Deleted example.
examples/ideation-dashboard/workbench-chat-turn-v2-success.example.yaml Deleted example.
examples/ideation-dashboard/workbench-chat-turn-v2-reduced-context.example.yaml Deleted example.
examples/ideation-dashboard/workbench-chat-turn-v2-provider-retry.example.yaml Deleted example.
examples/ideation-dashboard/workbench-chat-turn-v2-loaded-set.example.yaml Deleted example.
examples/ideation-dashboard/workbench-chat-turn-v2-full-context.example.yaml Deleted example.
examples/ideation-dashboard/snapshot-index.example.yaml Deleted example.
examples/ideation-dashboard/negative/workbench-pinned-not-checked.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-override-without-reason.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-routing-self-reference.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-routing-rule-wider-than-its-resolution.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-routing-rule-unavailable-resolution.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-routing-rule-chained.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-routing-resolved-outside-routes-to.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-routing-dangling-target.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-routing-badge-inverted-substring.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-routing-badge-incidental-word.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-routing-badge-holds-the-separator.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-routing-badge-gap.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-raw-endpoint.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-plain-entry-resolves-elsewhere.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-modality-outside-the-vocabulary.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-modality-image-only.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-modality-empty-set.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-model-catalog-exposed-credential.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-excluded-without-reason.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-untyped-proposal.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-unknown-model.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-unbound-buffer.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-reserved-key-path.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-provider-retry-carries-a-token.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-over-budget.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-identity-subject.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-hash-mismatch.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-escaping-path.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-context-unknown-posture.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-context-reduced-without-reason.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-context-reason-on-full.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-context-reason-leaks-a-credential.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-context-null-reason-on-full.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-context-extra-field.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-context-empty-reason-on-full.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-chat-turn-unrecognized-kind.negative.yaml Deleted validation example.
examples/ideation-dashboard/negative/workbench-candidate-in-members.yaml Deleted validation example.
examples/ideation-dashboard/negative/snapshot-index-duplicate-repo-ref.yaml Deleted validation example.
examples/ideation-dashboard/negative/snapshot-index-carries-projection-data.yaml Deleted validation example.
examples/ideation-dashboard/negative/snapshot-dangling-option-set-member.yaml Deleted validation example.
examples/ideation-dashboard/negative/snapshot-dangling-document-edge.yaml Deleted validation example.
examples/ideation-dashboard/negative/snapshot-dangling-claiming-cluster.yaml Deleted validation example.
examples/ideation-dashboard/negative/snapshot-bad-date-format.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-ratify-without-ratification-artifact.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-kickoff-without-workflow-job.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-kickoff-unratified-target.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-dispose-rejected-uncited.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-demote-without-reason.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-action-research-brief-without-workflow-job.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-action-promote-to-staging-without-workflow-job.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-action-open-pr-no-pull-request-artifact.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-action-edit-document-no-ref.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-action-edit-document-no-commit-artifact.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-action-derive-possibles-without-workflow-job.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-action-derive-possibles-without-cluster-id.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-action-cleanup-scope-mismatch.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-action-cleanup-machine-empty-evidence.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-action-cleanup-explicit-release-without-reason.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-action-approve-model-without-approval-block.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-action-approve-model-shared-install-without-consent.yaml Deleted validation example.
examples/ideation-dashboard/negative/gate-action-abandon-session-unreasoned.yaml Deleted validation example.
examples/ideation-dashboard/negative/duplicate-turn-pair/turn-b.yaml Deleted validation example.
examples/ideation-dashboard/negative/duplicate-turn-pair/turn-a.yaml Deleted validation example.
examples/ideation-dashboard/negative/demotion-execution-receipt-unsafe-path.yaml Deleted validation example.
examples/ideation-dashboard/negative/demotion-execution-receipt-destination-mismatch.yaml Deleted validation example.
examples/ideation-dashboard/ideation-workbench-cluster-seeded.example.yaml Deleted example.
examples/ideation-dashboard/ideation-workbench-adhoc-human-seen.example.yaml Deleted example.
examples/ideation-dashboard/ideation-dashboard-snapshot.example.yaml Deleted example.
examples/ideation-dashboard/gate-action-record-research-brief.example.yaml Deleted example.
examples/ideation-dashboard/gate-action-record-ratify.example.yaml Deleted example.
examples/ideation-dashboard/gate-action-record-promote-to-staging.example.yaml Deleted example.
examples/ideation-dashboard/gate-action-record-open-pr.example.yaml Deleted example.
examples/ideation-dashboard/gate-action-record-kickoff.example.yaml Deleted example.
examples/ideation-dashboard/gate-action-record-edit-project.example.yaml Deleted example.
examples/ideation-dashboard/gate-action-record-edit-document.example.yaml Deleted example.
examples/ideation-dashboard/gate-action-record-dispose-possible.example.yaml Deleted example.
examples/ideation-dashboard/gate-action-record-derive-possibles.example.yaml Deleted example.
examples/ideation-dashboard/gate-action-record-demote.example.yaml Deleted example.
examples/ideation-dashboard/gate-action-record-create-project.example.yaml Deleted example.
examples/ideation-dashboard/gate-action-record-cleanup-abandoned-branch.example.yaml Deleted example.
examples/ideation-dashboard/gate-action-record-approve-model.example.yaml Deleted example.
examples/ideation-dashboard/gate-action-record-abandon-session.example.yaml Deleted example.
examples/ideation-dashboard/demotion-execution-receipt.example.yaml Deleted example.
docs/opendox-carve-manifest.yaml Declares post-shed; dependent references and manifest follow-up remain unresolved.
Review details

Suppressed comments (4)

contracts/schemas/ideation-dashboard-snapshot.schema.yaml:1

  • contracts/manifest.yaml still registers this schema with a required SHA-256 at lines 1611–1616, while scripts/validate-manifest-digests.py explicitly fails on a missing registered file. Deleting the schema without updating the manifest and the related release/consumer records makes the manifest-digest check fail immediately. Remove or repoint every registration atomically, or retain the schema.
    docs/opendox-carve-manifest.yaml:171
  • The phase flip makes the manifest's own contract text contradictory: the preceding carve paragraph still says this file is currently in carve and stays there until §5.2 runs, but the active declaration is now post-shed. Rewrite that paragraph to describe the pre-shed/carve state rather than the current state, otherwise readers are told the opposite of the phase this manifest declares.
    scripts/ideation_dashboard/action_errors.py:1
  • tests/ideation-dashboard/test_doxbench_routes.py is retained as an adapter test but imports this module, doxbench_hash, branch_session, doxbench_packet, doxbench_turns, and serve at module scope. Deleting this row leaves that retained test uncollectable; the manifest's justification only mentions doxbench_contracts and does not provide replacements for these dependencies. Move/rewrite the test with the destination suite or keep the required compatibility surface before shedding it.
    scripts/ideation_dashboard/corpus_root.py:1
  • tests/corpus-adapter/test_openxfactory_adapter.py:59 imports corpus_root at module scope, but this deletion is the manifest's moved_with_declared_edit row with no local replacement. As a result the retained openxFactory adapter suite fails during collection even though the adapter itself is supposed to remain in this repository. Repoint the test to the adapter-owned implementation or retain a compatibility module before deleting this row.
  • Files reviewed: 131/325 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 docs/opendox-carve-manifest.yaml Resolved
…nned legs (RULED Q6/Q7, #656)

ONE resolver, scripts/carved_reach.py, and it is the only place the reach is
spelled. It puts openDox/code/src and openXdox/code/src -- and this
repository's own scripts/, which is what makes the doc_health importers among
those modules resolve -- on sys.path, or REFUSES naming the leg that is
missing. It never degrades to a skip: EXPECT_SKIPPED is pinned as an exact
sum precisely because a directory that quietly turned into skips reports as a
green bar, and tests/clearing/conftest.py already refuses this way for
openXwallet. Both legs together is measured, not preference: 3 of 17 openxdox
modules resolve with the openXdox leg alone, 7 of 17 with doc_health
reachable, 17 of 17 only with both legs' src/ present (#929 -> 72c0fa6).

106 import statements across 36 files, rewritten MECHANICALLY from the
manifest's own destination_path per row -- never by hand, never from a second
list. Every ideation_dashboard.<mod> whose row moved becomes opendox.<mod> or
openxdox.<mod> with the same leaf name, because that is what the rows say; a
mixed statement splits by destination; the retained siblings in the statement
keep the ideation_dashboard spelling they still have.

RULED Q6: tests/ideation-dashboard/conftest.py's session_fixtures import needs
no rename -- the resolver APPENDS both legs' own tests/ trees, so the bare
name resolves at the pinned openDox leg while the 20 replicated_at_destination
rows whose basenames exist on both sides still resolve here first. Editing a
retained row is lawful in both phases, so the repair is in the file rather
than in its disposition.

pytest-suite.yml now initializes openDox and openXdox RECURSIVELY. The comment
that said --recursive was unnecessary is kept in place with the reason it
changed: it was true of #932 and this is the pull request it named as the one
that would need the legs. Pin digests are unaffected -- ls-tree -r still reads
nested gitlinks as opaque 160000 records.

Collection: 2 errors / 5,715 collected before this commit, 3 errors / 6,744
after. The three that remain are the profile_openxfactory family and they are
a FINDING, not an oversight -- see the pull request body.

Refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 11, 2026 02:27

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.

🟡 Changes recommended

One or more issues must be addressed before approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (6)

Previously missed (1) — in code that hasn't changed since the last review.

openspec/changes/split-opendox-two-layer-product/tasks.md:1028

  • This newly added status block explicitly says PR-2 (the phase flip and 319 deletions) is NOT STARTABLE until questions (2), (6), and (7) are answered, yet the same pull request performs PR-2's act. Leaving the task in this state makes the active packet self-contradictory and will keep the lifecycle task open even if the code is green. Answer/record those questions and update the task status before marking this PR ready.

.github/workflows/pytest-suite.yml:385

  • Recursive initialization makes the destination code available, but this job still executes only pytest tests/ and retains MIN_SELECTED: 7090, MIN_PASSED: 7070, and EXPECT_SKIPPED: 21. The shed deletes 3,404 test functions from that tree while the moved destination suites are not collected by this command, so the required job loses coverage and will fall below its existing floor; run/count the destination suites here or update the pinned post-shed collection values from a measured green run.
    docs/opendox-carve-manifest.yaml:171
  • After this line flips the document to post-shed, the preceding carve-phase note still says carve is “where this file is now” until §5.2 runs. That is no longer true in the committed manifest and makes the manifest's own phase documentation contradictory. Change the note to describe carve as the pre-shed phase.
    docs/opendox-carve-manifest.yaml:171
  • This phase flip deletes scripts/validate-ideation-dashboard-contracts.py, but the manifest deliberately retains scripts/ideation_dashboard/dashboard_refresh_lane.py, whose strict seal contract still requires that exact file and refuses when it is absent. The scheduled dashboard refresh will therefore fail on every run after the shed; retain/re-home the validator or update the adapter and its seal protocol before enabling post-shed.
    openspec/changes/split-opendox-two-layer-product/review/amendment-2026-09-10-shed-exit-post-shed-mode.md:14
  • The decision record presents 2026-09-10T21:1xZ and 2026-09-10T20:3xZ as provenance timestamps. The x placeholders are not valid timestamps, so this record cannot be used to reproduce or audit the ruling/addendum; replace them with the recorded UTC values or omit the time component.
    openspec/changes/split-opendox-two-layer-product/tasks.md:1025
  • This status block still says PR-1/#928 is “landing” and “not yet merged,” but the current lane prerequisites record #928 merged at 0e76e789. Because this is the packet's authoritative realization status, update the historical state before using it to gate PR-2 readiness.
  • Files reviewed: 133/365 changed files
  • Comments generated: 18
  • Review effort level: Lite

Comment thread .github/workflows/pytest-suite.yml Resolved
Comment thread scripts/sync-notebooklm-books.py Resolved
Comment thread tests/conftest.py Resolved
Comment thread tests/ideation-dashboard/conftest.py Resolved
Comment thread tests/ideation-dashboard/conftest.py Resolved
Comment thread tests/hermeticity.py Resolved
brettheap added a commit that referenced this pull request Sep 11, 2026
…ox copy; the replica row stays until its disposition is ruled (#872, RULED OQ-Q) (#934)

Successor of RULING OQ-Q (Brett Heap, 2026-09-09), started on his word 2026-09-10 "#872: START NOW, LAND WHEN GREEN" (#656 comment 5626248666), unblocked by #932 (openDox mounted as the second submodule). RE-POINT ONLY: every executable reader of the corpus-adapter interface's dataclasses — `scripts/corpus_adapter_openxfactory/` (adapter, check, classify, home, shape), `tests/corpus-adapter/test_conformance.py`, `tests/corpus-adapter/test_openxfactory_adapter.py` — now imports the pinned `openDox/code/src/opendox/corpus_adapter.py` (byte-identical to the replica, sha256 `a0d971d6…`) through the repository's existing submodule reach, instead of the local replica. `scripts/corpus_adapter.py` itself STAYS in tree: its manifest row is `not_moved / replicated_at_destination`, and `validate-carve-manifest.py`'s `carve-path-absent` check refuses deleting a retained row's path in both phases (measured on this branch in a throwaway commit). Two exits retire the file later: Brett Heap flips the row's disposition, or the shed (PR #940) takes the path with it. `scripts/ideation_dashboard/authoring.py` is NOT re-pointed (a shed row; stays byte-identical to the carve commit). `.github/workflows/pytest-suite.yml` now initialises the nested `openDox/code` gitlink so the required suite can collect (proven in run 34554403633: `Submodule path 'code': checked out 'ce53b489…'`). Owed to PR #940's manifest touch: the row evidence text at `docs/opendox-carve-manifest.yaml:1132` cites `test_conformance.py:51` as a replica reader — the import now lives at line 65 and targets `opendox.corpus_adapter`. Validators at 9776eff: `validate-carve-manifest.py` `OK … phase carve, 456 row(s) … 318 digest(s)`; `tests/corpus-adapter` 89 passed; carve suites 247 passed; pytest-suite run 34554403633 success; six required checks green; 5 Copilot threads resolved; 0 closing references in body and commits.

Refs #872. Refs #656 (stays OPEN).

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
#934 (RULED OQ-Q, #872) landed a second, openDox-scoped `git -C openDox
submodule update --init code` step in `pytest-suite.yml` for the same reason
this branch made the openXdox/openDox init recursive: openxFactory's own
corpus-adapter readers import the pinned `opendox.corpus_adapter`, which a
one-level init leaves off the runner. The two are one act, so the resolution
keeps ONE recursive init — `git submodule update --init --recursive openXdox
openDox` — which covers both legs' `code` submodules, and folds #934's reason
into the retained comment rather than dropping it. `scripts/corpus_adapter.py`
stays: #934 keeps it as a replicated row until its disposition is ruled.

Refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 11, 2026 03:32

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.

🟡 Changes recommended

Unresolved critical and moderate findings affect workflow setup, test collection, runtime imports, and post-shed asset paths.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 133/365 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread tests/conftest.py Resolved
…dit lines (RULED, #656)

RULED 2026-09-10, Brett Heap, `#656` comment `5628560136`, verbatim "rule the
two Q-L1 annotations, fold into PR-2": both Q-L1-family amendments recorded as
owed on the issue JOIN the § 5.2 shed as ROW ANNOTATIONS. Seven existing rows
gain declared edit lines; no digest moves, no re-cut, `opendox-carve-0` stays
the label, and the validator still answers `318 digest(s) recomputed`.

BUILD slice 1 (`5626818451`), the stale citations at the two spec legs:

  * openDox-spec `docs/ideation-dashboard-session-runbook.md` — a SECOND
    `path constants` edit, 10 targets over 20 lines (5, 462-466, 487, 536,
    642, 746, 751, 777, 884-886, 967, 969, 998, 1089, 1100).
  * openXdox-spec `examples/ideation-dashboard/README.md` (10, 207, 208, 302,
    318, 321, 325), `contracts/schemas/ideation-dashboard-snapshot-index.schema.yaml`
    (44) and `contracts/schemas/ideation-dashboard-snapshot.schema.yaml` (108)
    — converted `moved_verbatim` -> `moved_with_declared_edit`, since a
    citation the leg can correct only by editing the arrived bytes has nowhere
    else to be declared.

BUILD slice 2 (`5627894065`), the nine openDox-code back-imports: a new
`import rewrites` edit on `scripts/ideation_dashboard/cli.py` (80-81, 83-84,
980-987), `serve.py` (176-177, 192-198, 626-630, 1282, 1286, 1380-1381) and
`branch_session.py` (1740, 1859, 1878, 4179, 4217, 4254, 4287, 4504, 4991), so
slice 2b can take the nine through the § 2.4 seams and lower openXdox-code's
ratchet in ONE act. Class `import rewrites` because every one of those lines
exists only to serve an import the row already declares: a continuation line of
the rewritten statement, or an IMPORT-TIME name site — a mixin base, a default
argument — which is precisely why the reach cannot be late-bound at the import
line alone. No fourth class: the validator asserts `edit_classes:` EQUAL to the
ruled three.

TWO NUMERALS IN THE RULING'S LISTS ARE THE ARRIVED FILE'S, NOT THE REFERENT'S,
and the rows declare the referent's, with the arithmetic recorded in the notes:

  * `serve.py` "1283, 1287" are the two `registry_mod.<CONSTANT>` DEFAULT
    ARGUMENTS as they sit in openDox-code at `da8aae96`. In the blob at
    `carve_commit` — the numbering every line in this manifest uses — they are
    1282 (`index_name: str = registry_mod.DEFAULT_INDEX_NAME`) and 1286
    (`peek_ttl_seconds: float = registry_mod.PEEK_TTL_SECONDS`); 1283 and 1287
    are `source_roots: dict | None = None,` and `snapshot_source=None,`, which
    name no consumer and need no edit. Declaring the ruled TARGET at the lines
    the referent actually has is what keeps slice 2b's edit declared.
  * `cli.py` "980-989" runs two lines past the statement it continues: the
    declared `:979` `from .cli_gate import (` closes at 987, and 988-989 are
    the head of the adjacent `from .cli_model_binding import (`, which stays
    relative at the destination (openDox-code `da8aae96:987`). The declaration
    stops where the statement does.

Counts, re-derived from the file and not transcribed: 456 rows still, 138
`not_moved` still, `moved_verbatim` 172 -> 169 and `moved_with_declared_edit`
146 -> 149 for the three conversions, declared lines 794 -> 862 (`path
constants` 132 -> 161, `import rewrites` 636 -> 675, `adapter calls` 26
unmoved), rows carrying `edits:` 147 -> 150, replicas 20. The three tools that
state the declared-line total in their own prose move with it, and
`tests/carve_manifest/test_carve_manifest.py` re-sums both figures rather than
trusting either.

VERIFIED. `validate-carve-manifest.py` -> `OK … phase post-shed, 456 row(s) …
169 moved_verbatim, 149 moved_with_declared_edit, 138 not_moved; 318 digest(s)
recomputed; … 319 shed row(s) absent at source as declared`.
`pytest tests/carve_manifest tests/carve_arrival tests/carve_conformance -q` ->
`247 passed`. `verify-carve-arrival.py` run per destination BEFORE and AFTER
the annotation, same invocation: byte-identical output at `opendox_code`,
`openxdox_code` and `opendox_spec` (whose phase-A digest mismatches are the
pre-existing post-commit-B property slice 1 recorded), and at `openxdox_spec`
phase B the only delta is the intended one — `47 row(s) arrived, 44 digest(s)
verified … 3 unapplied` where it read `47 digest(s) verified … 0 unapplied`,
exit 0 either way, because an UNAPPLIED declared edit is not a refusal.

Refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 11, 2026 03:46

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.

🟡 Changes recommended

Unresolved critical and moderate findings affect manifest integrity, imports, fixtures, and test collection.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (3)

contracts/schemas/gate-action-record.schema.yaml:1

  • This deletion leaves the live contracts/manifest.yaml entry for this path (with a sha256) pointing at a missing file. scripts/validate-manifest-digests.py explicitly fails on missing recorded files, and tests/manifest_digests/test_manifest_digest_sweep.py runs that check on every required-suite pass. Remove or update the manifest row as part of the split, or retain a verified copy; otherwise CI is guaranteed to fail.
    contracts/schemas/xfactory-workbench-chat-turn.schema.yaml:1
  • Removing this schema breaks retained code/tests that still treat contracts/schemas as the adapter's authority: doxbench_contracts.py hard-codes it in SCHEMA_DIGESTS and _verified_bytes, while test_doxbench_bound_buffer.py:39-40 reads it directly. Since the manifest keeps both the adapter and that test in openxFactory, the post-shed tree cannot load or verify this contract. Either retain a coherent copy or re-point the retained loader and tests to the pinned destination in this change.
    examples/ideation-dashboard/workbench-chat-turn-v2-loaded-set.example.yaml:1
  • This fixture is removed, but the retained test_doxbench_bound_buffer.py opens this exact path unconditionally at lines 111-114; it is not under a released-root skip. The test therefore fails with FileNotFoundError after the shed. Keep or re-home the fixture and resolve the new location, or rewrite the retained test to construct/use the destination fixture.
  • Files reviewed: 134/369 changed files
  • Comments generated: 3
  • Review effort level: Lite

Comment thread scripts/carved_reach.py Resolved
brettheap and others added 2 commits September 11, 2026 05:52
…d openxFactory a post-shed composition point

TWO HOLES THE 106-SITE IMPORT RE-POINT LEFT, both measured rather than argued:
`pytest tests/ideation-dashboard` reported `257 failed, 643 passed` on the
branch before this commit and `70 failed, 939 passed` after it.

ONE — THE COMPOSITION POINT, 404 OF THOSE 257 FAILURES.
`opendox.serve.build_server` (`serve.py:1377`) and `opendox.cli.build_parser`
(`cli.py:915`) name `profile_openxfactory` as a BARE GLOBAL with no import
anywhere: it is the line the § 3 carve deleted rather than moved, and the § 4.1
register recorded it dangling. Every retained test that builds a server or a
parser therefore raised `NameError: name 'profile_openxfactory' is not
defined`. RULED ASK-2 option (2) (`#656` comment `5628886636`) answers it with
a LAZY PROXY at openDox-code that openxFactory REGISTERS THE REAL MODULE with.

This commit builds openxFactory's half and only that half:

  * `scripts/profile_openxfactory.py` — the real module, at a path OUTSIDE the
    carve surface (`moved_paths:` covers `scripts/ideation_dashboard/`, not
    `scripts/`), carrying the same two tuples with each column named at the leg
    it now lives on. The deleted file's RELATIVE imports do not survive and
    say why: they existed because `scripts/__init__.py` made the old tree
    importable under two spellings that are two different module objects, and
    after the shed each column has exactly one. `SUBCOMMAND_EXTENSIONS` and
    `cli_gate` stay behind PEP 562 for the reason that did not change — a
    server must not pay for `cli_gate -> authoring -> workbench -> PyYAML`.
  * `carved_reach.bind_composition_point()` — the registration. Idempotent,
    binds a consumer already imported AND one imported later (a meta-path
    finder that decorates the loader and binds after `exec_module`, so it
    shadows nothing and resolves nothing differently), and it imports NEITHER
    consumer, which is what keeps the CLI column out of a server process.

§ 4.3's box is NOT ticked and nothing here is the proxy. When the proxy lands
this collapses to the single `register()` call the ruling describes.

TWO — THE PATHS, NOT ONLY THE MODULES. A dozen retained tests assert over a
moved file's SOURCE TEXT through a per-DIRECTORY constant
(`REPO_ROOT / "scripts" / "ideation_dashboard"`), which is exactly the bug: that
one directory split across BOTH legs and partly stayed. `carved_reach.source()`
answers "where is the file that used to be at <pre-shed path>" by READING THE
ROW — moved rows at their destination's mount and their own
`destination_path` (not a prefix substitution: the relative path changes), a
`not_moved` row here, the one `deleted_at_carve` row a named refusal, a path in
no row a `NotACarvedPath` rather than a silently wrong answer.
`sources_under()` is the same question for a tree walk.

AND THE REFUSAL MOVES TO THE POINT OF USE. `install()` refused eagerly, which
made `tests/conftest.py` — in EVERY pytest invocation's conftest chain — break
targeted lanes that reach nothing the carve moved; `review-lane-repin.yml` runs
`pytest tests/review_lane_pin` over a plain checkout with no gitlinks
(Copilot, `PRRT_kwDOTAvnrs6hVRyB`). `install()` now registers `_LegMissing`,
which refuses `opendox`/`openxdox`/the leg test helpers BY NAME with the same
sentence and the same init command, so a run that needs the carve still fails
loudly and one that does not still passes. `require()` keeps the eager form for
a production entrypoint, which has no such ambiguity.

The reach and the registration are installed in the two conftests a TARGETED
run makes the rootdir as well — `tests/ideation-dashboard/` (whose own
`session_fixtures` import is a moved row; Copilot `PRRT_kwDOTAvnrs6hUpud`) and
`tests/doc-health/` (Copilot `PRRT_kwDOTAvnrs6hVRyV`) — for the same reason
both already register the hermeticity guard twice.

Refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 11, 2026 09:59

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.

🟡 Changes recommended

Unresolved runtime bootstrap and post-shed path/loader issues block reliable execution and test coverage.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (4)

scripts/carved_reach.py:242

  • install(tests=True) only puts opendox/openxdox in the missing-name set. It never registers the bare moved helper names (session_fixtures, test_gate_console, etc.), although the module docstring says those imports refuse by name. With an uninitialized leg, the targeted dashboard conftest therefore raises a generic ModuleNotFoundError at from session_fixtures instead of the promised CarveReachUnavailable with the recursive-init command. Include the test-helper names in the missing finder or validate the test trees explicitly.
    scripts/ideation_dashboard/authoring.py:1
  • tests/ideation-dashboard/test_authoring_classify_derivation.py still reads scripts/ideation_dashboard/authoring.py at lines 153 and 253, but this row is moved to opendox/src/opendox/authoring.py. Those source-based tests will fail after the deletion; resolve the manifest source path before reading it.
    scripts/ideation_dashboard/boundary.py:1
  • This shim is removed by the shed, but tests/ideation-dashboard/test_b4_boundary_repoint.py::test_the_shim_stays_for_its_opendox_readers still asserts scripts/ideation_dashboard/boundary.py exists at line 179. The retained test therefore fails immediately after this deletion; update it to inspect the declared opendox.boundary destination (or otherwise change the test's post-shed contract).
    scripts/ideation_dashboard/cli.py:1
  • The retained CLI tests still launch the deleted pre-shed path: test_cli_column_split.py:581 runs scripts/ideation_dashboard/cli.py, and its module mode launches ideation_dashboard.cli in a subprocess without installing carved_reach. Both documented subprocess modes therefore fail after this move; update the launcher/tests to the post-shed CLI and its bootstrap.
  • Files reviewed: 133/371 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread scripts/carved_reach.py Resolved
Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 11, 2026 10:38
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

🟡 Changes recommended

One or more issues must be addressed before approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 138/381 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread scripts/validate-manifest-digests.py Resolved
@brettheap
brettheap marked this pull request as ready for review September 11, 2026 17:26

@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, we are unable to review this pull request

The GitHub API does not allow us to fetch diffs exceeding 300 files, and this pull request has 381

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

LANDING — lane openxfactory-4-opendox-extraction, session openXfactory-4 (5) [0e15a7], 2026-09-11T17:33:27Z, PR #940 into openxFactory main

Gate: head ac2ac2adec1b52b97670c62d776f4d0722c2b867, MERGEABLE, required checks SUCCESS, closingIssuesReferences 0, unresolved threads 0, auto-merge off; independent verification on this PR. Landing on Brett Heap's word.

@brettheap
brettheap merged commit cc4ae9d into main Sep 11, 2026
14 of 15 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

LANDED — lane openxfactory-4-opendox-extraction, 2026-09-11T17:33:41Z, PR #940 → cc4ae9d

Window closed; other lanes may resume merges into openxFactory main.

brettheap added a commit that referenced this pull request Sep 11, 2026
…erged-into-empty-tail-standing

origin/main had moved to cc4ae9d (past the branch's 3402d93 base, and
past 07a8a45 which had already landed while the first merge was in
flight) while this PR sat open: PR #959 (amend-kill-switch-to-declared-
test-companion, filed DRAFT, touches README.md and
tests/sequenced_after/corpus-ledger.yaml) and PR #940 (split-opendox § 5.2
shed, a large deletion of the retired ideation_dashboard module plus its
tests, contracts/schemas and examples, plus edits to
.github/workflows/pytest-suite.yml, docs/opendox-carve-manifest.yaml,
several validate-*.py scripts and openspec/changes/split-opendox-two-layer-
product/).

Only README.md conflicted, at the same site as the earlier merge: HEAD had
already moved amend-merged-into-empty-tail-standing's row out of Active
changes (this archive PR does that move), while origin/main still carried
it there unarchived. Resolved the same way — kept origin/main's new
amend-kill-switch-to-declared-test-companion row and dropped the stale
active amend-merged-into-empty-tail-standing row entirely; it survives
only in Archived changes, where this branch already placed it with the PR
#973 citation. The archived directory
openspec/changes/archive/2026-09-11-amend-merged-into-empty-tail-standing/
is untouched (`git diff HEAD -- <dir>` empty after this commit).

Every other file that both sides touched (or origin/main deleted)
auto-merged clean, none of it under this packet's own path.
tests/sequenced_after/corpus-ledger.yaml auto-merged clean: this branch's
one row (amend-merged-into-empty-tail-standing: archived, moved_by "#973")
and origin/main's new row (amend-kill-switch-to-declared-test-companion:
active, moved_by "#959") both stand.

refs #914

Lane: openxfactory-1
Co-Authored-By: Claude Sonnet 5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 12, 2026
…nges with an ideation-dashboard delta (bookkeeping, RULED) (#982)

Lane: openxfactory-4-opendox-extraction
Refs #656 (stays OPEN).

split-opendox-two-layer-product § 5.9: the thirty archived changes whose
tree carries specs/ideation-dashboard/ are ANNOTATED with the carry-forward,
never edited into agreement — the wallet arc's treatment and the
highest-volume bookkeeping in the realization. Under document-lifecycle's
"An archived record is edited only as a bookkeeping correction under a
recorded ruling", on Brett Heap's rulings by interactive multi-choice
(#656 comments 5640246046 and 5640938010, recorded BEFORE the edit), each
packet's tasks.md gains one dated "Bookkeeping correction (2026-09-11,
split-opendox-two-layer-product § 5.9) — carry-forward" section stating
that its specs/ideation-dashboard/spec.md delta stays the record; that the
capability's artifacts were SHED from openxFactory by § 5.2 (#940 →
cc4ae9d) and are consumed at a pin from the openDox/openXdox legs per
docs/opendox-carve-manifest.yaml; and that the five contract schemas,
deprecated at contract-v3.7 (#970 → 45bd9ee, tag ec3c172), leave the
bundle at contract-v4.0 (§ 5.7, PR #983 → ce5c054, tag 9e6c0ae). The rule's neutral-minimum line
"Edited (bookkeeping): 2026-09-11 by split-opendox-two-layer-product —
carry-forward annotation" sits inside the existing lifecycle-header block
of the two packets that carry one (add-model-capability-vocabulary,
add-project-repo-schema) and, as ruled, as the first line of the appended
section in the twenty-eight that carry none. Nothing any packet asserts
changed (git diff -U0 shows only the appended hunks and, in two files, one
header line). doc-health does not scan tasks.md, so no record-immutability
finding fires; the thirty dispositions in opensoft/xFactory #445 stand as
the governance record regardless, with that correction stated.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 12, 2026
…nion count docstrings (Copilot, PR #995)

Two Copilot threads on #995, both taken:

`tests/carve_manifest/test_carve_manifest.py:1934` — the aggregate
`(lines, carrying) == (866, 150)` assertion in
`test_the_real_manifest_carries_the_ruled_q_l7_amendment` would still pass
if the four new ASK-7 lines had landed on the wrong rows, under the wrong
class, or as a different four line numbers summing to the same total.
Added two pinned assertions, on the same `(class, lines)` idiom the
function's own replica-row check already uses two paragraphs above: the
`cli.py` row's `edits` entry for `[834]` is exactly
`("path constants", [834])`, and the `serve.py` row's for
`[155, 725, 1338]` is exactly `("path constants", [155, 725, 1338])`.

`docs/opendox-carve-manifest.yaml:297` — the manifest's declared-line
total moving 862 -> 866 leaves three prose mentions of "862" stale:
`scripts/carve_lines.py:3`, `scripts/verify-carve-arrival.py:98` and
`scripts/validate-carve-manifest.py:115`, each a standalone module-docstring
sentence ("the manifest declares N edit lines BY NUMBER") with no attached
arithmetic. Bumped all three to 866 — the companion-count-fix idiom this
lane already established (precedent: `cc4ae9d3` / PR #940 made the
identical 794->862 edit to these same three lines, in the same commit as
its own Q-L1 row annotations).

Not fixed, and replied to instead with the evidence: `docs/opendox-cutover-
runbook.md:147/:183/:259` also still say 794/793, but `git blame` shows
those lines were last touched by `b08b62804` (2026-09-10, RULED Q-L7 (a)),
BEFORE `d963df48`/`cc4ae9d3` first moved the manifest's total past 794 to
862 the next day — i.e. that staleness pre-dates this PR and is unrelated
to the ASK-7 window's 862->866 move; #940 itself (the PR that caused the
first gap) left the runbook alone and register-noted a different staleness
there rather than editing its prose inline. Fixing the runbook's own
historical narrative (it never grew the paragraph documenting the Q-L1
STALE CITATION amendment that produced 862 in the first place) needs a new
section, not a find-replace, and is out of scope for a four-line
declared-edit window.

Also re-verified the manifest:297 thread's own claim directly: ran
`scripts/verify-carve-arrival.py --destination opendox_code --phase B`
against the leg branch `docs/ask7-lazy-proxy-docstrings` @ 5d50eef2 (with
ad-hoc `--allow-created` for six pre-existing, unrelated files that
destination's admissions block has never been seeded for —
consumer_reach.py, defaults.py, domain_profile.py, profile_proxy.py,
test_consumer_reach.py, test_profile_registration.py, all landed at
openDox-code by earlier PRs #9/#10/#11, none touched here). Result: OK,
61 declared-edit rows diffed within their declared lines, 1 unapplied
(`doxbench_scope_types.py`, unrelated, pre-existing, not an ASK-7 row).
Per-row check confirms both ASK-7 rows individually:
`scripts/ideation_dashboard/cli.py` (declared lines include 834) and
`scripts/ideation_dashboard/serve.py` (declared lines include 155, 725,
1338) both report DIFFED-DECLARED-ONLY — the destination bytes differ from
the carve blob ONLY on declared lines, zero `arrival-undeclared-edit`
refusals.

tests/carve_manifest tests/carve_arrival tests/carve_conformance: 269
passed (unchanged from the PR's own reported baseline — the two new
assertions land inside an existing test function, not a new one).
validate-carve-manifest.py: OK, same row counts as main (456: 169/149/138).

Lane: openxfactory-4-opendox-extraction
Refs #656

Co-Authored-By: Claude Sonnet 5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 12, 2026
…nt review

Lane: openxfactory-4-opendox-extraction
Refs #656

Copilot's review of this PR (2 suppressed comments at tasks.md:1170 and
:1173) caught a real overclaim in the first commit's 5.2 STATUS line: it
said #940 "executed every clause above" and that the five dashboard
governance docs and scripts/ideation-dashboard-nightly.py were "gone from
the tree". Verified directly against origin/main, that is false for most
of the box's own listed clauses.

git ls-tree origin/main confirms: scripts/ideation_dashboard/ still holds
10 of 48 modules, tests/ideation-dashboard/ 42 of 125 files,
examples/ideation-dashboard/ 44 of 142, and
scripts/ideation-dashboard-nightly.py is unchanged -- all carry `not_moved`
rows in docs/opendox-carve-manifest.yaml (stays_openxfactory_adapter /
stays_openxfactory_governance) under RULING DQ-1, which the manifest's own
nightly-script row says outright: "tasks.md 5.2's deletion list predates
DQ-1 and is recorded as a disagreement in the pull request." Of the
governance docs, only docs/ideation-dashboard-session-runbook.md actually
left (moved_with_declared_edit); docs/d10-hosted-refresh-marker.md, both
doxbench-runtime-refresh-dogfood* records, docs/openxdox-naming.md and
docs/project-repo-schema.md are all still present. Confirmed actually gone:
web/, tests/ideation_dashboard/ (underscore spelling),
scripts/validate-ideation-dashboard-contracts.py, and the five contract
schemas 5.6a's defect (a) names.

Rewrites the 5.2 STATUS line to state this precisely: the box stays open on
TWO defects, not one -- 5.6a's four-vs-five schema wording defect, and this
fuller pre-DQ-1 staleness across most of the box's own listed clauses --
neither fixed here; reconciling is for a sweep at Sec 8, the archive gate.
No other box, tick, or STATUS line touched. Tick count unchanged at 39/32
of 71. proposal-support verify ok; strict openspec validate valid.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
…tion split, a global claim on one tree's evidence, and three citations

Six suppressed findings and two threads at 9bfcf23. Every one is right. The two
that matter most were both this amendment's own defect turned back on it.

§ 5.2 — THE DISPOSITION SPLIT `160 / 158 / 138` REPRODUCES AT NEITHER HEAD, and
the paragraph claimed a re-read at cb2d3a2 it had not taken for that line.
Measured: at cc4ae9d (#940's merge) the split is 169 / 149 / 138; at main
cb2d3a2 and on this branch it is 143 / 175 / 138. Twenty-six rows crossed from
moved_verbatim to moved_with_declared_edit between them — 169-143 = 26 = 175-149
— moved by the § 3.4 slice annotations ee251d6 (S5), b3a7553 (S7) and e589645
(S8), each declaring edit lines on rows that had been verbatim. Both heads are
now in the box as a table, with the runbook (:143-145) and the manifest test's
176 edit-carrying rows cited. `not_moved` is 138 at both heads and so is every
one of its four reasons, which is why the error survived three rounds: 117 is
read from the reasons, and the kept set never depended on the moving half.

§ 7.1 — the census covered codexFactory while the box ticks a GLOBAL conclusion.
All FIVE registered domain trees of § 1.7 are now censused the same three ways
at their own main: codexFactory 761f49d0 (1,995 files), MedxFactory 9f125a6a
(8,562), LedgerxFactory 090d1f50 (1,245), AdxFactory e794dc2f (85), OpsxFactory
6aa1512c (2,164). 14,051 tracked files: zero `kind: domain-profile`, no `kind:`
naming dox, no `mapping_id:` or `domain_label:` anywhere, and NO SINGLE FILE
reaching two of the five axes. artifact_kinds/evidence_classes/authorities are
absent from all five; gates/lifecycle/acts occur alone, in those domains' own
templates and fixtures. NONE YET now holds for every registered domain, not just
the one R-3 reasoned from.

Also: § 5.2's audit sentence said the old list was wrong in "five of its own six
counts" — it is six of seven, each now named, with only the four-file underscore
spelling exact. § 7.3's proposal-support citation is :4609-4610, not :4592 (the
base merge moved the file). § 8.9's "nowhere else in tasks.md at all" read as a
claim of zero occurrences in the file when the box itself has several — it now
says "no further occurrence outside this box" and says why it is scoped that
way. And § 8.9's AFTER run is bound like its BASELINE: it names the archive PR's
own HEAD sha, or the merge commit, so the pair is BASE→HEAD of one pull request
and neither end can be swapped for a convenient tree.

Gates: `openspec validate split-opendox-two-layer-product --strict` valid ·
`proposal-support verify` ok · `pytest tests/doc-health tests/sequenced_after
tests/proposal-support tests/carve_manifest tests/carve_arrival
tests/carve_conformance tests/opendox_pin tests/openxdox_pin tests/scope_globs
tests/pin_registrations -q -m "not postgres"` → 2891 passed, 289 subtests, 0
failed. 47 [x] / 23 [ ] / 1 [~], unchanged.

Refs #656 (stays OPEN).

Lane: openxfactory-4

Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 17, 2026
…coded, four ticks by ruling and three on evidence (#1058)

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

Refs #656 (stays OPEN). Encodes RULINGS R-1..R-6 (#656 comment 5690428146, Brett Heap, 2026-09-16, by interactive multi-choice) into `split-opendox-two-layer-product/tasks.md`, and discharges three § 8 archive-gate lines on the evidence comment 5690559647.

FOUR ticks by ruling — § 4.1 (R-1, the residue accounting re-derived at today's heads), § 5.2 (R-2, re-scoped to DQ-1's kept set and ticked on #940 → cc4ae9d), § 7.1 and § 7.2 (R-3, "ruled: not yet", on the § 7.2 empty-boundary REPORT 5690553188 posted before the boxes moved).

THREE ticks on evidence 5690559647 — § 8.1 (six repositories, six ACTIVE rulesets, 265 validate runs), § 8.6 (ideation-intent-plane in canon, seven requirements, change archived), § 8.8 (417 repositories enumerated across four estate orgs, six dox-named, all six the product's own).

ONE marker change — § 7.3 → `[~]`, the house's reserved DEFERRED form, because `scripts/proposal-support.py`:4609-4610 refuses an archive whose tasks.md still matches `^- \[ \]`.

TEXTUAL amendments without ticks — § 5.1 and § 8.7 (R-5, BOTH gitlinks; the aggregation re-point xFactory #453 → 514605fb landed 2026-09-16T12:46Z and the equality was KEPT through it, not restored), § 5.3 (R-4, a NEW openxdox-consumer-gate.yml; the act is #1059), § 8.9 (R-6, "records and explains", given a falsifiable BASE→HEAD form).

Ledger 40/31/0 → 47 [x] / 23 [ ] / 1 [~]. 23 Copilot reviews were submitted on this pull request and nineteen were taken as numbered rounds. Rounds 14-17 were answered together at landing in comment 5702227094 — eighteen suppressed comments, ten distinct findings, four fixed because they falsify a landed fact and six answered by measurement and registered for tasks.md amendment #5 — and rounds 18 and 19 in comments 5702473458 and 5702674145, four more fixed and two more registered. Not one round opened a thread; threads stand at 14 total, 0 unresolved, which is why every round was read as a BODY. Every finding measured rather than conceded, including several counts of this amendment's own that did not reproduce. What the later rounds added: § 7.1's census is now FOUR axes over all five registered domain trees — the `kind:` literal, the ten literals actually declared, the five-axis STRUCTURE, and the MODIFIED delta's own COMMITTED TENANT INSTALL (290 tenant/client/install records across the five, zero declaring a descendant instance); § 5.2's kept set reconciles row by row (107 of the 117 inside the old deletion list's nine surfaces, ten outside, with the units named); § 7.2's empty-boundary report is backed by a four-org live enumeration (417 repositories, six dox-named, all six the product's own). ONE question is REGISTERED rather than resolved: scenario 4 of the MODIFIED `domain-descendant-boundary` delta, read alone, would make OpsxFactory's committed openDox plane for the estate's own tenant a profile artifact, while the requirement's own body, scenario 2, `design.md`:741-743 and `proposal.md`:297-300 all read it as an install OF A DESCENDANT. Both readings are written into § 7.1, the tension is named as a defect in this packet's own delta text, and the live reading is filed at § 7.4. §§ 7.1/7.2 tick on RULED R-3. It was RULED while this amendment was open — #656 comment 5700622683, 2026-09-16T16:06:59Z, Brett Heap by interactive multi-choice — as a delta-text defect whose repair is owed from a later SPEC-DELTA amendment, which is the disposition the box had already taken and now cites.

AT LANDING. #1035 (amendment #3) merged as c5f6845, this pull request was retargeted from its branch to main, and main was merged in at f7a1572 — never rebased — resolving eight conflicts in tasks.md: six took main (amendment #3's own final text) and two took this branch (§ 4.1's "5 routed to openDox", never "lawfully", because R-1 ruled the accounting, and § 4.1's R-1 STATUS block, which main does not carry). The ledger was then re-derived against the landed file: main carries 40 [x] / 31 [ ] / 0 [~], this branch adds exactly amendment #4's seven ticks and moves § 7.3 to [~]. Seven fixes in the last four rounds answer findings that falsify landed facts rather than prose, and nothing else was edited: § 8.6's tick, which claims an archive gate is still true of main today, re-read at c5f6845 — the main this branch merged, a commit in this pull request's own history, so the claim cannot go stale before the merge — with the same 7,606 bytes and seven requirement headings (feb34a4); § 5.2's "deletes 117 rows DQ-1 keeps" corrected to the 107 its own reconciliation measures, 94 in the five surfaces the old list names by directory and 13 in the four it names by file, with the other ten outside its reach (feb34a4); and § 7.1's census command, which the box promises is pasteable, rewritten in POSIX classes with both halves of its union quoted, because on the macOS grep this packet names twice the GNU \s is a literal s and the kind: half silently returns zero — the POSIX form returns the byte-identical file list, so the 290-record census is unmoved (27a4f6e). Then round 18: § 4.1's self-reference named tasks.md:1164-1176 for "§ 3.7's own evidence" when that range is § 3.7's box header — the measurement is at :1194-1205 and the quoted closing sentence is line :1206 — and the last two GNU-only escapes left the packet's quoted commands, so that no command in it carries a non-POSIX escape (d1314f4). And round 19: § 5.3 described its own discharging act as open when #1059 had merged as 7ab3dd8 at 16:27:36Z, with the workflow on main under the single token openxdox-consumer-gate and the gate reporting SUCCESS on this very pull request; the status records the merge and both halves of the box's tick condition, and the box still does NOT tick, because it says in its own words that it ticks on that pull request and not on this one (cbc3a2c). Four findings are registered rather than fixed for exactly one reason — they are not this amendment's text, and git diff against main proves it: § 7.3's "When the ruling lands", the § 1 census's tasks.md:347 and design.md:868 cites (measured: :595 and :981), § 1.8's README position "at this amendment's own head" (measured: :1708, not :1813), and § 4.1's "green in EVERY destination" criterion clause. Every replacement value is measured and written down so amendment #5 re-derives nothing.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…tag, and register two byte-drifted bundle validators as section 8.9 residue

Section 8.3 names three clauses and the tick is decided by reading its own
text, not the evidence's summary of it. Each clause is met: the shed merged
(#940, MERGED 2026-09-11T17:33:38Z, cc4ae9d); the MAJOR cut merged and TAGGED
(#983, 2026-09-11T23:51:05Z, ce5c054; annotated tag contract-v4.0, object
9e6c0ae, peeling to ce5c054 exactly); and the tag verified from an
independently refreshed checkout.

Clause 3 is re-derived in this lane's own clone rather than transcribed from
the cited comment: verify-tag and verify-commit each return
{"findings":[],"status":"pass"} at exit 0, the second against inventory
contracts/releases/contract-v4.0.digests.yaml. Two independent checkouts now
agree, which is what the clause asks for.

Three readings that could be mistaken for defects are disposed of on the page
rather than passed over. (a) The tag is unsigned -- but it is a genuine
annotated tag, and all 56 contract-v* tags are the same unsigned annotated
form, so it matches standing practice; the box asks for verified, not signed.
(b) verify-promotion returns 4 findings, but it is a PRE-CUT gate read after
the cut, per its own docstring at scripts/hermes_runtime_validation/
release.py:1197; once the tag exists HGR-RELEASE-TAG-EXISTS is guaranteed by
construction, so it answers a question this box does not ask. (c) A harness
error can impersonate a tag finding: with shallow or partial openDox/openXdox
legs, verify-tag raises ReleaseDependencyError and exits non-zero emitting NO
finding. Reproduced here, then cleared with git submodule update --init
--recursive. The failure shape is the tell -- a tag defect is a findings entry,
a leg defect is a traceback -- and a plain gh repo clone does not init
submodules, so the next person to re-run clause 3 meets this first.

One cited figure is clock-bound and is restated as measured rather than copied:
the comment records ce5c054 as 438 commits behind origin/main; here it is 452.
The ancestry is the durable fact (merge-base --is-ancestor exits 0); the
distance moves whenever anyone lands anything.

Section 8.9 gains residue row (iv), REGISTERED AND NOT RESOLVED: the BEFORE
baseline flags two of the release bundle's own validator files as byte-drifted
against the digest set they belong to (hermes_runtime_validation/catalog.py and
release.py), because the bundle froze their digests at the cut and their sources
kept moving. It is not a finding against 8.3 -- clause 3 reads the HISTORICAL
commit ce5c054, this drift is measured against today's working tree, and both
are true. It is also not the three HGR-RELEASE-SURFACE-DRIFT paths disposed of
at 8.3(b), so the two drift reports must not be collapsed into one.

No merge from main is taken: main is still red on the archive-date finding.
Ledger 52 [x] / 19 [ ] / 1 [~] of 72; one file; exactly three marker changes
against main (5.2a, 6.4, 8.3). openspec validate --strict valid,
proposal-support verify ok, --ledger-diff clean (219 rows), verify-opendox-pin
OK.

Refs #656 (stays OPEN). CLAIM 5728937703.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…5, § 6.1, § 6.3, § 6.4, § 6.5, § 8.3), two landing-form INCIDENTS, and six residue rows (#1104)

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

Refs #656 (stays OPEN). CLAIM [`5728937703`](#656 (comment)).

**`split-opendox-two-layer-product` `tasks.md` AMENDMENT #6 — EIGHT ticks, the rulings of 2026-09-18 encoded, two INCIDENTS registered, and six residue rows booked.**

Claimed after a clean sibling search. Branch off `main`; amendment #5 landed at `cb0f8544`. `origin/main` is merged in. **Rule 6 applies.**

**Ledger 49 `[x]` / 22 `[ ]` / 1 `[~]` of 72 → 57 / 14 / 1 of 72.** One file. **Exactly EIGHT marker changes — § 3.5, § 5.2a, § 5.5, § 6.1, § 6.3, § 6.4, § 6.5, § 8.3.** Both gitlinks untouched.

> **This description has been rewritten as the amendment grew.** It previously declared *one* tick, then *two*; each figure was superseded by evidence that landed after it was written. Copilot correctly flagged the mismatch against heads `d323b9b5` and `fe9e5e6f` — the ledger was right and the description was stale, and this is the repair. The counts above are measured at head `7ac75a4e`.

## Eight ticks

**§ 5.2a — on RULED R-A** ([`5728607038`](#656 (comment))). `repromote-engineering-vocabulary` is **RATIFIED**, filed by **#1071 → `e83f8cd7`**. The box owed an **authored id**, and `openxfactory-engineering-adapter` is authored, filed and ratified. **Its archive is not this box's condition and is not claimed as one.**
> **The ratification is on the word; its ENCODING is owed and is now registered at the box.** Copilot raised across three heads that the successor packet still reads `draft`. **Measured true**: `Status: draft` in `proposal.md`, `design.md` *and* `tasks.md`, ratification tasks **1.1–1.6 all `[ ]`**, no `review/ratification-<date>.md`. **The tick stands** — what ratifies a change here is Brett Heap's word, and a packet's headers *record* a ratification rather than perform one — **but the encoding belongs to that packet's owner under its own claim**, and this amendment must not edit a neighbouring packet's lifecycle headers on its way past.

**§ 6.4 — on #1056's closure.** **#1056 → `3e32d987`**, merged **2026-09-18T10:50:06Z**, closing `add-composed-view-authoring` as re-homed to openDox under **RULING Q6**. Its destination half, `openDox-spec` **#12 → `edeed08c`**, was byte-identity verified at both ends by amendment #5.

**§ 6.3 — on #1057's closure.** **#1057 → `4ccab7b9`**, merged **2026-09-18T13:31:51Z**, closing `add-doxchat-model-intake` as re-homed to openDox under **RULING Q6**. Recorded Rule 6 window 13:31:44Z → 13:32:00Z, and **the measured merge time falls inside it** — the check worth making on a window rather than reading it back.

**§ 8.3 — on Brett Heap's word and the live evidence** at [`5729935756`](#656 (comment)). The box names **three clauses** and the tick is decided by reading its own text, each clause on its own artifact: the shed merged (**#940 → `cc4ae9d3`**); the MAJOR cut merged and **TAGGED** (**#983 → `ce5c054e`**; annotated tag `contract-v4.0`, object **`9e6c0ae4`**, peeling to `ce5c054e` **exactly**); and the tag verified from an independently refreshed checkout — **re-derived in this lane's own clone rather than transcribed**, `verify-tag` and `verify-commit` each returning `{"findings":[],"status":"pass"}` at exit 0. **Two independent checkouts agree**, which is what the clause asks for.
> **Three readings that could pass for defects are disposed of on the page**: the tag is **unsigned**, but it is a genuine annotated tag and **all 56 `contract-v*` tags are the same unsigned annotated form**, and the box asks for *verified*, not *signed*; **`verify-promotion`'s 4 findings** are a **pre-cut gate read after the cut** per its own docstring at `release.py:1197`, so `HGR-RELEASE-TAG-EXISTS` fires by construction; and **a harness error can impersonate a tag finding** — with shallow legs `verify-tag` raises `ReleaseDependencyError` and emits **no** finding. *The failure shape is the tell: a tag defect is a `findings` entry, a leg defect is a traceback.*

**§ 5.5 — FLOOR PART 4, on the runner the ruling asked for.** **#1105 → `02967478`**, merged **2026-09-18T14:59:28Z**. The box's condition was a **gated runner, not a recorded run**, and both halves are measured present: `scripts/verify-snapshot-equivalence.py` and `tests/snapshot_equivalence/test_snapshot_equivalence.py` are the two files the commit adds, `pytest-suite` runs `python3 -m pytest tests/ -q` (`pytest-suite.yml:599`) so the suite is inside the gate **by construction** rather than by a wiring entry that could be dropped, and it **collects 60 tests** in this branch's own tree (48 before `#1110` added its watchdog suite — the figure is bound to this head, not carried). *That is exactly why Q-P1 (a) refused a one-shot run: the post-split side is a pin that moves, so what holds the equality is a gate that re-proves it every time.*
> **One STATUS clause is owed, and it is a REVIEW DEBT rather than a runner defect.** Copilot's review at the landed head `9ed3def3` (review `5249196044`) carries **four suppressed findings** the holder's gate script did not surface before landing; **`floor55b` takes them as a follow-up act**. The tick is not held on that — this box asked for a gated runner and the gated runner is on `main`, and conflating an owed review act with the box's stated condition would leave the floor's fourth part unticked for a reason the box never stated. **Second occurrence in this packet of a per-push review body going unread**, which is why the clause names the review ID.

**§ 8.2 stays `[ ]` and gains part 4's referent** — it owes one evidence line *per part* and is discharged by all four, not by the fourth.

**§ 6.1 — on #1060's closure, and it is the landing rule's first clean pass end to end.** **#1060 → `e3647b6d`**, merged **2026-09-18T17:30:27Z**, closing `add-nightly-dashboard-refresh` as re-homed to openXdox, destination `openXdox-spec` **#15 → `f088b097`**. **Both clauses of the amended rule were exercised and both held**: clause 1 — two parents, and the `2026-09-16-` directory keeps a `2026-09-16T01:28:33Z` adding commit; clause 2 — the archive-date arm re-run on **`origin/main` merged with the candidate** exits **0**, so INCIDENT 2's stacked-history trap is measured absent rather than assumed absent.
> **One item registered for the successor, not booked as residue**: the self-gate `_REHOMED_AND_STILL_WHOLE` **cannot carry a row for a PARTIAL carriage** — this closure re-authored the proposal at the destination while the `doc-health` delta deliberately did not travel. A partial-carriage pin is owed (`#1060` comment `5733632291`). It sits at § 6.1 because it is a property of *this closure's shape*, and § 6.1 is where the next partial carriage will be read from.

**§ 6.5 — on #1065's closure, the awkward one.** **#1065 → `81903286`**, merged **2026-09-18T17:54:08Z**, RULINGS **Q6 + DQ-1**. The landing rule held on both clauses again (two parents; the `2026-09-16-` directory keeps a `2026-09-16T13:29:40Z` adding commit; the arm on main-plus-candidate exits 0). **The SPLIT is what makes this box awkward and the closure names it rather than eliding it** — the set-builder half re-homes while the `doc_health.staging_seed` drafter and route stay in `openxFactory`'s own adapter, so the requirement is divided *within itself*. A re-home that moved the whole requirement would have been the easier record and the false one.

**§ 3.5 and § 3.6 take a STATUS and deliberately do NOT tick** (RULED 2026-09-18 17:55Z, `#656` comment `5734029578`): `openDox-code` **#25** and **#26** take a third mini-batch for three security items and then land on that word. The word authorizes the **landing**, and the box ticks on the landing — the same two-act ordering § 6 uses for a disposition. **Item (4), the `OPENDOX_SERVED_DATABASE` declaration, is a follow-up act under the same claim and is not in batch 3**, written into both sentences so its absence from #25/#26 is not read as an omission.

## Two INCIDENTS registered

**INCIDENT 1 — the squash (§ 6.4).** #1056 landed by **squash**, so the archive directory named `2026-09-16` took a **2026-09-18** adding commit and reddened `main`. **Measured, not taken on report**: `3e32d987` has exactly one parent. **The rule this packet now carries: archive closures land by `gh pr merge --merge`, never squash** — written into the ledger because the ledger is what the next closure's author reads.

**INCIDENT 2 — the merge (§ 6.3), and it is why the rule gained a second clause.** #1057's branch was stacked on #1056's **pre-squash** tip, so landing it by merge commit carried #1056's original archive commit **`d8ff2ec2`** (2026-09-16) into `main`'s history. The checker then reads `d8ff2ec2` rather than the squash, the directory name agrees, and **#1106's disposition row — correct when it landed — is reported STALE**. `main` went red again at `4ccab7b9`.
> **Measured**: `d8ff2ec2` is not an ancestor of `bbd1cca8` (13:28Z) but is an ancestor of `main` after `4ccab7b9` (13:32Z); it arrives through #1057's **second parent**, **not** the first-parent line. The row was correct for about four minutes, then became wrong **with no edit to it and none to the directory**.
>
> **The lesson is not that the squash was fine.** A disposition row is a statement about **which commits are reachable from `main`**, not about a directory. Squash caused INCIDENT 1 by **mis-dating**; merge caused INCIDENT 2 by **re-parenting**. So the rule **gains a second clause** rather than being withdrawn: land stacked archive closures by merge commit, **and re-run the archive-date arm on `origin/main` merged with the candidate before opening the window**. The clauses answer the incidents **one each** — clause one would not have caught INCIDENT 2, and clause two could not have caught INCIDENT 1, since the squash commit does not exist until the landing happens.

## Three rulings encoded, moving no box

**§ 5.5 — RULED Q-P1..Q-P4** ([`5728856581`](#656 (comment))), over helper actor `floor55`'s read-only measurement. **The fourth floor part already holds**, so what is owed is a **RUNNER, gated in `pytest-suite`**, not a recorded run — *because the post-split side is a pin that moves, and an equality proved once is not an equality held.* The pre-split tree is the published annotated tag **`opendox-carve-0` → `b075fd91`**, `git archive`d into a temp tree. The snapshot **validator is not part 4's** (§ D6 (4) asks for equal digests; `canonical_bytes` reaches no validator). § 4.4's profile fidelity earns **one sentence** here and one in § 8.2's line, **and moves no box**.

**§ 5.6 — RULED R-B, R-C, R-D** ([`5728607038`](#656 (comment))), over helper actor `defloor56`'s measurement, spot-checked at codexFactory `main` `22d44b09`. **R-B, the ORDER EXCEPTION**: the order this box writes is **jointly unsatisfiable** with `assert_landed_pin` for a removal, and has never been exercised because no floored path has ever been removed. **The measured cost decides it** — de-floor-first reds `openxFactory`'s **REQUIRED** `pytest-suite` repo-wide; archive-first reds only codexFactory's **ADVISORY** merge-master lane, which that spec's own design intends (*"the deleting PR carries the failure"*). **No REQUIRED check goes red at any step of the ruled order.** **R-C** reads the `SPECS_FLOOR_PATHS` clause as satisfied by the regeneration, since codexFactory #232 made the constant computed at import — **the reading is recorded, the clause is not edited**, in this packet's no-deletion style. **R-D** records the additions-only test fixed inside the de-floor PR as a test-scope correction: it asserts `removed == set()` over the live document, was **proven RED on the dry run**, and is **broader than its own canon**.

**§ 4.5a — RULED [`5728368325`](#656 (comment) `xdoxbuild`'s **seven bot commits are ACCEPTED AS DISPOSITIONED and the episode is registered as a process breach**, with the verdict-at-HEAD table (one content-reverted — it deleted the listing cache and took 801 documents from 0.07 s to 58.85 s; one finding-kept-implementation-replaced; five kept) and **the relay lag named as the cause, not the actor's judgment**. **Q-A, the dirty-work-tree reader: LEAVE AS IS** — both readers resolve HEAD over a dirty tree consistently, and a refusal would make an editor's swap file render the corpus unreadable.

## Four records

* **§ 3.4** books `openXdox-code` **#22 → `fa792cbb`** (09:53:32Z), completing the **Q7 trio**. The box is already `[x]`; the record does not move it.
* **§ 4.5a** takes its exit sentence from `openXdox-code`#23's own body **with `--dest-root` ADDED, and not as offered**. This lane measured twice — amendment #5's rounds 15 and 25 — that the runner refuses `conformance-unreadable — --dest-root is required` and **exits 2** without it. **The sentence as offered would record a passing run of a command that cannot run**, which is the defect § 4.5a spent two rounds removing.
* **§ 8.9** books the snapshot validator's **three** defects as residue rows on Q-P3: `SCHEMAS_DIR` resolving to an absent directory; `VALIDATOR_RELPATH` naming a path `openxFactory` shed at `cc4ae9d3`; and `find_validator`'s parent walk adopting an enclosing pre-shed checkout — **`floor37` § 6's defect class for the second time in this packet**, which is why it is named as a class.
* **§ 3.7** registers **Q-T1** rather than performing it: the correction is owed as one append **when that box ticks**.

## A correction that corrected itself

Q-T1 named **two** stale figures in § 3.7, and this amendment answered twice — the second answer overturning the first.

**At this branch's base** only ONE had moved: **35** `def test_` against the recorded 34, with *"five refusal codes"* still five.

**At the immutable sha `83a055a6`, BOTH have moved, and one moved while the amendment was being written**: the suite carries **79** `def test_`, and the refusal codes are **SIX** — `#1086` added **`conformance-corpus-unfaithful`**, the refusal carrying FLOOR PART 3's transposition contract. The corpus is **still 17 checks**.

*The registered paragraph predicted precisely this* — it says a test count *"is exactly the kind of figure that moves under acts with nothing to do with it"* — and was then overtaken by it inside a single amendment. **Re-measure all three at YOUR head; a count in this row is a reading, never a fact.**

**Q-T2** (list-versus-tuple `list_documents`, `5716870896`) is recorded as RULED (a): **no change, the seventeen stay closed.**

## Records that move no box

* **§ 3.4** books the **Q7 trio** (`openXdox-code` **#22 → `fa792cbb`**) and the **S7 residue pair** — **#1085 → `1da7ea6e`** (13:29:34Z) with `openDox-code` **#28 → `52b237e8`** (13:30:20Z). **Guarded explicitly**: Q-L1's annotation-first rule holds again in form, 46 s apart, but **the holding count stays SEVEN** — it counts one holding per *annotated slice*, and this is residue to S7, already counted. Counting it would restate a figure this packet has already had to correct once.
* **§ 4.5a** takes its exit sentence from `openXdox-code`#23's own body **with `--dest-root` ADDED, and not as offered**. The sentence as offered would record a passing run of a command that **cannot run**.
* **§ 3.7** registers **Q-T1** rather than performing it, owed as one append **when that box ticks**.

## Six residue rows booked, none resolved

* **(i)–(iii)** the snapshot validator's three defects on Q-P3 — `SCHEMAS_DIR` absent; `VALIDATOR_RELPATH` naming a path shed at `cc4ae9d3`; `find_validator` adopting an enclosing pre-shed checkout, **`floor37` § 6's class for the second time in this packet**.
* **(iv)** two of the **release bundle's own validators** byte-drifted against their digest set. **Not a finding against § 8.3** — clause 3 reads the *historical* commit `ce5c054e`, this drift is measured against *today's working tree*, and both are true. Also **not** the three `HGR-RELEASE-SURFACE-DRIFT` paths, so the two reports must not be collapsed.
* **(v)** `validate-sequenced-after.py` claims **"124 of the 143"**; measured at merged head `c2d5ce92` it is **128 of 172**. **The live claim lives at THREE sites** — `:42`/`:402` the pair and `:739`, an **argparse help string** and so user-visible CLI text. *This row first "corrected" three to five by adding `:36`/`:396`; that was wrong and is retracted in the ledger — both read "before it was made a gate" and are **historical evidence**, which renumbering would destroy.* **A dated claim is not a stale claim.** **A bare renumber is the wrong repair**: the denominator moved **three times in one afternoon** (170 → 171 → 172) while the numerator held at 128, because a closure archived on its own directory's date lands in the *equal* bucket. **The denominator rots by construction.**
* **(vi)** the `archive-date-vs-commit` arm is **history-shape sensitive** (INCIDENT 2 is the demonstration), owed to the owner of `tests/sequenced_after`. Two candidates, neither chosen: a **first-parent walk**, or dispositioning by the **(directory, adding commit) pair** so a displaced row reads **SUPERSEDED** rather than STALE. **Candidate (1) is measured to work on this case** — `d8ff2ec2` is not reachable along main's first-parent line — **but that is one case and not a proof of the general rule.**

## What this amendment deliberately does not do

§ 3.5, § 3.6 and § 4.5a keep their `[ ]` and wait for their own landings. **#1060, #1065 and #1066 (§ 6.1 / § 6.5 / § 6.2) are not ticked here**; their ticks are left to a later amendment unless they land before this one's window opens.

## Gates

`OPENSPEC_TELEMETRY=0 openspec validate split-opendox-two-layer-product --strict` **valid** · `proposal-support.py verify` **ok** · `validate-sequenced-after.py --ledger-diff` **clean (219 rows)** · `verify-opendox-pin.py` **OK, lockstep confirmed**.

**The gate is GREEN.** The `add-composed-view-authoring` STALE finding that reddened `main` was INCIDENT 2's, and it is retired: **#1109 → `dc242f3a`** (merged 14:26:58Z). Verified in this branch's own merged tree, not taken on report — `validate-sequenced-after.py` exits **0** with *"archive-date-vs-commit agreement passed … 13 disposition(s) in force"*, and the retired key is genuinely absent (13 live keys, none of them that one; the four remaining name-hits are all comments recording why). The corpus reconciles at **172 archived / 13 dispositioned / 159 agreeing**.

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


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…e, and ITS delta promotes (#1066)

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

Refs #656 (stays OPEN). CLAIM [`5698423421`](#656 (comment)).

**RE-POINTED TO `main`** (2026-09-18, after #1056 → #1057 → #1060 → #1065 all landed by merge commit). It was stacked on `change/rehome-lens-document-selection`; it is not any more, and the full gate runs. **Rule 6 applies** (this touches `openspec/changes/` and README's OpenSpec Records block): the landing lane posts the LANDING line first.

# § 6.2 — the fifth box, and the only one that is not a re-home

`split-opendox-two-layer-product` `tasks.md` § 6.2 and `design.md` § D9 use the same words: this change *"archives in `openxFactory` on its own evidence, and only its FORWARD half — the surviving `-v2` family's requirements — re-homes to openDox."*

**The packet's own spec counts FOUR, not five.** *"Under RULING Q6 those **four** changes stop where they stand, so their `## ADDED` blocks never promote HERE."* This is the fifth — the exception that sentence is counting around. Its realization **merged in this repository** (PR #564, squash `6856f502`) and its `contract-v3.0` cut **is published** (annotated tag `59f4f51f`, peeling from the remote to `ff9ed815`). So it archives the ordinary way, and **its delta PROMOTES.**

## What is in the diff

| | |
| --- | --- |
| `openspec/changes/retire-doxbench-chat-turn-v1/` → `openspec/changes/archive/2026-09-16-…/` | 6 files, `.openspec.yaml` included, a true rename — verified `git ls-tree HEAD openspec/changes/` carries nothing at the old path |
| `openspec/specs/ideation-dashboard/spec.md` | **+224 lines, 0 deletions** — **157** the promotion, every byte taken from the ratified delta by script; **67** the dated ERRATUM added below the first requirement, which is marked as not part of the ratified text and says so in its first line. The erratum carries THREE corrections, each measured on the landed text: the `typed_proposal` clause (§ 2.1), the v1-served scenario bounded by the removal this cut performs, and the short release count — the last two found by Copilot at `c431a3e3`. Every figure here is RE-MEASURED where it is written, never adjusted from the one before it: **157** with no erratum, **186** with the first correction, **213** with all three, **224** after the third was itself corrected — Copilot having caught at `91644a2d` that it still counted the unpublishable `contract-v2.6` as a release. The published run from the deprecation to the removal is **twenty** releases, measured by TAG (`git ls-remote --tags origin 'contract-v*'`), the versioning policy § *`contract-v2.6` — Instance Six* ruling an untaggable bundle *"permanently unreleased"*. A stale insertion count in an evidence table is the same defect this pull request keeps correcting in other people's prose, and it has now been this pull request's defect twice. |
| `review/archive-2026-09-16.md` | the closure record, `Status: record` |
| `README.md` | active bullet retired (89 lines), archived-ledger entry added newest-first |
| `tests/sequenced_after/corpus-ledger.yaml` | the one live coupling — `--seed-ledger`, in the commit that follows this PR's number |

`tasks.md` is **not edited and no box is ticked**: in this lane every `tasks.md` tick rides the bookkeeper's single amendment, and this record exists so that amendment can tick from a measurement rather than a memory.

## The promotion, measured both ways

Every promoted byte is taken from the ratified delta **by script**, not retyped: both `## ADDED` requirements appended, and the `## MODIFIED` block replacing the promoted requirement of the same title — which gains three paragraphs and three scenarios and loses nothing, so the diff is insertions only.

| doc-health `promotion-fidelity`, `--single-repo` | errors |
| --- | ---: |
| this closure's head, **move alone, no promotion** | **23** |
| this closure's head, **as pushed** | **20** |

Twenty is what the four re-homed closures already owe, and **none of the twenty is this packet's**. So this change takes **no** `health/dispositions.yaml` entry, and the aggregation companion ([xFactory #454](opensoft/xFactory#454)) carries a header comment forbidding one by analogy.

**And one block can land nowhere else.** The forward half carries two of the three requirements into `opensoft/openDox` as `carry-doxbench-chat-turn-v2-family` ([openDox-spec #15](opensoft/openDox-spec#15)). The third — *The doxBench chat-turn v1 envelope family is REMOVED at `contract-v3.0`* — travels nowhere, openDox having removed nothing. Closed the way the other four closed, that ratified requirement would exist in **no** promoted specification anywhere.

## The seven open boxes: six discharged BY MEASUREMENT, one named

Every command and its output is in the closure record.

**7.1 — the validator at the tag. MET, three conjuncts.** The tag read *from the remote* (`git ls-remote --tags origin contract-v3.0` → `59f4f51f…`), checked out detached: `0 error(s), 0 warning(s)`; `--strict` exit 0; and a packaged instance whose `kind` is the **retired** `workbench-chat-turn` refused `[kind] unrecognized document (no known kind, no 'possibles_register' section)`.

**7.2 — the fallback against the RUNNING SERVE, both directions. PERFORMED.** An earlier session reported this box no longer performable here, because § 5.2's shed (`cc4ae9d3`, PR #940) took `serve.py` off `main`. **That report was about the wrong tree**: § 7.1 already directs the verification AT THE TAG, and the tag still carries the serve. Taken there, on a real loopback `ThreadingHTTPServer` driven over a real socket by `http.client` — the suite's own `build_server` harness, so the thing answering is the server and not a handler called in-process:

```
DIRECTION 1  kind="workbench-chat-turn" (RETIRED), client_turn_id="turn-0001"   -> HTTP 400
{"schema_version": 1, "kind": "workbench-chat-turn-v2-failure", "client_turn_id": "turn-0001", "error": "unrecognized_turn_kind", "message": "this route does not serve the chat-turn kind the request declared"}

DIRECTION 2  same kind, NO wire-valid client_turn_id                            -> HTTP 400
{"ok": false, "error": "unrecognized_turn_kind", "message": "this route does not serve the chat-turn kind the request declared"}

CONTROL      kind="never-was-a-kind", with identity                             -> HTTP 400
… byte-for-byte direction 1's body but for the correlation key the client itself sent
```

Direction 1 is the surviving family's closed failure envelope; direction 2 the pre-identity shape with **no fabricated `client_turn_id`**, which is the half the requirement says must stay unchanged. The injected model port recorded **zero calls** in all three — the refusal never reaches a provider. The control is the requirement's central claim answered on the wire: *"after the removal a retired kind and a kind that never existed are the same fact about the wire."*

**8.1 — merged, and the merge commit's suite. HALF MET, AND THE OTHER HALF IS NOT THIS PACKET'S.** §§ 2-5 merged: PR #564, squash `6856f502`, an ancestor of `main`. Its `pytest-suite` (check run `100000861624`) is **failure**: `1 failed, 8576 passed` — one assertion, `assert 18 == 19` in `tests/sequenced_after/test_sweep.py::test_the_live_sweep_reproduces_the_AUTHORING_measurement`.

It is **proven inherited, not argued to be**. The same assertion fails identically at `a951be76`, the merge's **parent**, run here in a detached worktree at that commit — one commit before this packet's bytes reached `main`. `main`'s own remedy `d308c012` (PR #568) re-derives why, per commit: PR #563's archive of `add-release-tag-publication-check` moved `active_co_modified` 19 → 18, PR #567 then landed a test carrying an authoring measurement taken three minutes earlier, and `6856f502` was merely the first pytest run the concurrency group did not cancel.

The proposal disclosed an inherited red in advance and attributed it to *"PR #510's carriage-ledger subject"*. **That attribution is not what stood at the merge**, and the record says so rather than smoothing it; the class the proposal named — a carriage-ledger count pinned in a test, moved by somebody else's archive — is exactly right.

**8.3 — `openspec validate --all --strict`. MET.** `validate-openspec-cli-pin.py --all` → exit 0, `Totals: 101 passed, 1 failed (102 items)`, **0 UNDISPOSITIONED failures**. The one failure is the accepted `add-chain-attestation` exception, which reads the same on `main`; the item count falls 103 → 102 because this packet leaves the active corpus.

**8.4 — the 4.7 run at `0 error(s), 0 warning(s)`. MET, with an erratum.** § 4.7's parenthetical records *"81 negative example(s)"*; the validator says **80** — at `6856f502`, the very commit 4.7 measured, and at the tag, with `examples/ideation-dashboard/` byte-identical between them. The box counted **files** and the validator counts **checks**: 81 files, of which `negative/duplicate-turn-pair/` is two files forming **one** paired check. The line § 8.4 asks for is exact.

**8.5 — the seven refusal-class dispositions. MET, in § 4.4's own table.** All seven re-expressed as named `-v2` fixtures, **zero stated losses**; all seven present at the tag and inside the 80 the validator confirms invalid.

**1.8 — the adversarial review. OPEN, and routed by the packet itself**: *"A CODEX PASS REMAINS OWED and is blocked by nothing in this packet — it and those four route to the amendment lane, not to doubt about the ratification."* Named here so the move does not lose it.

## Why the governed archive route is not available

`scripts/proposal-support.py archive`'s `archive_change` raises **`change has incomplete tasks`** on any `- [ ]` line *before* it ever resolves the CLI, and this packet has seven. The pinned CLI (**1.12.0**) does expose `--skip-specs` — that is not the obstacle, and it would be the wrong flag here anyway: **this closure wants the promotion.**

## Coupling sweep

`grep -rn "retire-doxbench-chat-turn-v1" --include='*.py' --include='*.yaml' --include='*.yml' --include='*.json'` over the tree: thirty hits outside the packet, **exactly one a live coupling** — the sweep-ledger row. The rest are historical prose in test comments naming the change as the authority for a re-pin already taken; the move falsifies none of them. `_LEDGER_SUBJECTS` does **not** move, exactly as § 6.3's closure predicted in the constant's own comment. No `openspec-cli-pin.yaml` disposition and no `target-release-register.yaml` entry exist for this id.

## Gate

CI on this repository runs `pull_request: branches: [main]` only, so a stacked PR shows lane-line, merge-master-approval and Sonar and cannot show a full green gate until its base is re-pointed. The local evidence above stands in until then.

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


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 24, 2026
…shed path (#1158) (#1162)

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

**The refresh lane's parent seal now takes the snapshot validator from the pinned openxdox product.** The validator has lived there since the split-opendox shed. Until now the seal asked the corpus for a path the shed removed. This is for #1158, which is referenced here but not closed: the holder closes it and lands this PR.

- **Authority:** Brett Heap's word, recorded in the CLAIMED comment on #1158, [5819559535](#1158 (comment)). #656 carries no separate ruling for #1158.
- **Design:** the lane coordinator approved it as written. It adds no parent-side generate-and-validate gate; that belongs with the child rework in #1161.
- **Base:** cut from `main` at `1edbb3dd`. That commit is #1157, the openXdox re-pin this consumes.

## The defect, measured at main `1edbb3dd`

`seal_source` asked `git archive` for `scripts/validate-ideation-dashboard-contracts.py`. openxFactory has not carried that file since `cc4ae9d3` (#940):

```
REFUSED: git archive failed at 1edbb3d: fatal: pathspec 'scripts/validate-ideation-dashboard-contracts.py' did not match any files
```

That is the archive call at `:1199`. The presence check at `:1221` named the same path, so no post-shed corpus could seal.

## The change

- **The corpus half is exactly the baked set.** The `git archive` pathspec is `CORPUS_BAKED_PATHS`, which no longer names the shed path. The decision's scope does not move, so no recorded pin reads as a scope change.
- **One resolver for the validator.** The seal uses the snapshot lane's own resolver, `nightly_lane._pinned_validator()` from #1157. That resolver returns openxdox's own validator, composed with its schemas by `doxbench_contracts._composed_validator`. It is called before anything is archived, so a refusal leaves no seal directory.
- **The composed unit is sealed under a new root.** It lands as regular files under `validator/`, with `scripts/` beside `contracts/schemas/`. The validator looks for `ROOT/contracts/schemas` first, so it finds its own schemas and `CONTRACTS_DIR` can never stand in. The unit sits beside the corpus, so it is sealed but never baked.
- **The parent runs the sealed copy once.** The run goes through the product's own `snapshot.validate_snapshot`, over a one-field snapshot-kind probe. The seal refuses unless the validator reached a verdict. The probe does not judge the corpus; that stays with the child's `--strict`.
- **The seal still fails closed, and every refusal names its cause:**
  - Nothing resolves: `the pinned openxdox validator was not found (<where>) — …`. `<where>` comes from `nightly_lane._pinned_validator_missing()`. That helper was extracted from `run_lane`'s skip, and both lanes now call it. The skip text is unchanged.
  - The carve legs are not materialized: `the pinned openxdox validator cannot be resolved on this parent (CarveReachUnavailable: …)`.
  - An entry in the composed unit is not a regular file, such as a dangling link or a directory: `the composed validator unit carries <name>, which does not resolve to a regular file (…)`. The seal refuses it rather than skipping it. A skip would seal a narrower unit than the snapshot lane validates with, and the probe could not see that, because the validator asks for a family schema only when an instance needs it.
  - The product tree's HEAD does not read as a full revision: `could not resolve the pinned product's revision at <tree> to a commit (read …) — the sealed validator's provenance would go unrecorded`. Only a unit with no product tree at all, an injected stand-in, records a null revision.
  - The sealed copy cannot run: `the sealed validator could NOT RUN, …`, followed by the validator's own last line.
- **Manifest.**
  - New fields: `validator_relpath`, `validator_revision` (the product leg's HEAD), `validator_schema_count` and `validator_probe`.
  - **`schema_version` moves to `2.0.0`** because the validator left the corpus. A 1.x reader therefore refuses on the major, not over a "missing" file.
  - `verify_seal`, the reference intake, looks for the validator only where a 2.x seal carries it, and refuses the 1.x layout. It requires the whole unit, not only the script:
    - at least one schema indexed under `validator/contracts/schemas/`;
    - `validator_schema_count` equal to the number indexed;
    - the snapshot schema the child validates against, among them;
    - `validator_probe` recording a verdict, either `validated` or `not-conformant`.

    It also rejects a `validator_revision` that is present but not a full revision.

## Measured over the real corpus

At this head, `9f37701f`, sealing that commit's own tree:

```
SEALED: 3976 files, 45055728 bytes, tree_digest e4581177e81d1ebd0e38e1021cb021336e08c7af7d738dcfa614f4ef189ab315
  schema_version: 2.0.0
  validator_relpath: validator/scripts/validate-ideation-dashboard-contracts.py
  validator_revision: e28930bf052febff0c7bdd0463a72ce3c4f5e8fe
  validator_schema_count: 55
  validator_probe: {"kind": "ideation-dashboard-snapshot", "outcome": "not-conformant", "returncode": 1}
verify_seal: 0 problem(s)
```

The first commit, sealing main's tree at `1edbb3dd`, gave the same verdict: 3976 files and 45,039,060 bytes, with the same validator revision, schema count and probe outcome, and 0 problems. `9800caf4` gave it too: 45,053,246 bytes, 0 problems. At every head the byte difference is this PR's growth of the two baked modules; between `1edbb3dd` and `9800caf4` it is exactly 14,186 bytes. The validator unit (56 files, 546,625 bytes) and the recipe are identical in every seal.

The probe is deliberately not a conformant snapshot, so `not-conformant` with exit 1 is the right verdict: it shows the validator ran against its schemas. An exit of 2, or "unavailable", would have refused the seal.

**The sealed unit's verdict on the corpus.** A snapshot rendered from the sealed tree has 397 documents. The sealed unit reports the same result with and without `--strict`, over both seals:

```
ERROR [snapshot-dangling-cluster-ref] …: possible 'pos-derived-cross-domain-persona-framework-package' claiming_clusters references unknown cluster 'cl-plane-1'
ERROR [snapshot-dangling-cluster-ref] …: possible 'pos-derived-cross-layer-cost-accountability-pipeline' claiming_clusters references unknown cluster 'cl-plane-1'
ERROR [snapshot-dangling-cluster-ref] …: possible 'pos-derived-roster-promotion-conformance-checklist' claiming_clusters references unknown cluster 'cl-plane-1'
validate-ideation-dashboard-contracts: 3 error(s), 0 warning(s)
```

These three are **#1159's data, expected, and out of scope**. This PR does not touch, suppress or disposition them. The seal does not judge corpus content, so they do not stop it sealing. The child's `--strict` is what reports them.

**Production shape.** The finalize job does not mount the openXdox and openDox gitlinks. A clone without them, running `--phase seal`, gives:

```
::warning::ideation-dashboard-refresh: NOT SEALED — the pinned openxdox validator cannot be resolved on this parent (CarveReachUnavailable: openxdox is read from a pinned carve leg, and no leg in this checkout carries it: the `openDox` and/or `openXdox` gitlinks are not materialized. […] Run `git submodule update --init --recursive openDox openXdox` from the repository root.) — the child's validator would be unreachable and --strict would fail with no finding to read; nothing dispatched, next run catches up in one hop
```

It reports `sealed: false` and creates no seal directory.

## Tests, each proven by mutation

The tests are in `tests/ideation-dashboard/test_dashboard_source_seal.py`, where 87 pass. For each row, the mutation was applied to the module and the named test was run. The module was then restored, with its sha256 checked after every run against `504cbac64947`, the module at this PR's head. **All seventeen mutations were caught.**

| test | mutation | how the test failed |
| --- | --- | --- |
| `test_a_post_shed_corpus_seals_with_the_products_own_validator` (real resolver, real legs) | main's module | `SealRefused: git archive failed … pathspec 'scripts/validate-ideation-dashboard-contracts.py' did not match any files` |
| `test_a_genuinely_missing_validator_still_refuses_naming_where_it_looked` (both params: `without-its-validator`, `not-a-source-checkout`) | main's module | the refusal names the shed path, not where it looked |
| same, both params | the `runnable is None` refusal removed | `TypeError` on `None` |
| same, both params | the where-clause dropped | the where-clause assertion fails |
| `test_unmaterialized_carve_legs_refuse_naming_the_legs` | the `ImportError` catch narrowed | a raw `CarveReachUnavailable`, not a `SealRefused` |
| `test_a_sealed_validator_that_cannot_run_is_refused` (both params) | the availability gate removed | `DID NOT RAISE SealRefused` |
| `test_the_one_run_is_of_the_sealed_copy_over_the_probe` | the probe runs the composed farm, not the sealed copy | the run's path assertion fails |
| `test_a_unit_entry_that_is_not_a_regular_file_is_refused_by_name` (both params: `a-dangling-link`, `a-directory`) | the refusal turned back into a skip | `DID NOT RAISE SealRefused` |
| `test_a_product_revision_that_cannot_be_read_refuses_the_seal` (both params: `git-fails`, `not-a-full-revision`) | the pre-review silent null restored | `DID NOT RAISE SealRefused` |
| `test_verify_refuses_a_validator_revision_that_is_not_a_full_revision` | the shape check removed | the verify assertion fails |
| `test_verify_refuses_a_validator_unit_that_is_not_whole` (params: `schemas-removed`, `count-disagrees`, `snapshot-schema-renamed`, `probe-unavailable`) | each of the four unit checks removed in turn (four mutations, each run against the one param it guards) | that param's exact problem list is not produced |
| `test_verify_refuses_the_1x_layout_that_sealed_the_validator_in_the_corpus` | the `validator_relpath` check removed; the carriage check removed; the major left at `1` (three mutations) | its exact seven problems are not produced |

The existing seal-set, decision-scope, confined-locator, bounded-seal and manifest tests now follow the new layout. `test_the_seal_speaks_only_git_and_never_builds_or_pushes` runs twice: over a stub unit and over the real resolver.

## Gates, versus main

**The required `pytest-suite` check, at this head `9f37701f`, is SUCCESS.** It ran as CI run [36050592000](https://github.com/opensoft/openxFactory/actions/runs/36050592000), over merge commit `2b5e7d8f`, which is this head merged into main `138a4722`:

```
selected=8878 passed=8872 skipped=6 failures=0 errors=0
freshness verifier: passed · vector replay: passed
floors: selected>=7050 (margin 1828) passed>=7044 (margin 1828) skipped==6
```

**The same suite run locally, branch against main.** This used the CI recipe[^1], with a TMPDIR whose ancestors hold no directory named `openxFactory`. The junit reports compare as follows:

| | this branch `9800caf4` | main `1edbb3dd` |
| --- | --- | --- |
| selected | 8874 | 8860 |
| passed | 8867 | 8853 |
| skipped | 6 | 6 |
| failed | 1 | 1 |
| freshness verifier, vector replay | passed, passed | passed, passed |

- **The one failure is the same on both trees.** It is `test_validator_cli::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization]`, which hit its 30-second subprocess timeout on a loaded host. It passes in CI.
- **The extra 14 selected and 14 passed are this PR's new seal tests** at `9800caf4`: 83 in the seal file against main's 69.
- **The head adds four more.** Those are the parameters of the intake-tamper test, so CI's 8878 is main's 8860 plus 18. `9800caf4` differs from this head only in `verify_seal` and the seal tests.
- **An earlier local run is superseded.** Its TMPDIR sat beside a clone named `openxFactory`, and four "no checkout anywhere" tests found that clone by walking up. Under a load average near 60, git also failed to spawn (`EAGAIN`), and together these read as 11 failures on the branch against 7 on main. All eleven were re-run with a clean TMPDIR and gave identical results on both trees.

| gate | this branch | main `1edbb3dd` |
| --- | --- | --- |
| `validate-openspec-cli-pin.py --all --no-cache`, locally at `17679e32` | exit 0: 0 UNDISPOSITIONED, 1 ACCEPTED EXCEPTION | exit 0, identical output |
| every required check at this head `9f37701f` | SUCCESS | — |

[^1]: The recipe: the checkout nested under `openxFactory/`, the venv from `requirements/hermes-runtime-contracts.lock`, the pinned openspec CLI, and `PINNED_CORE_CHECKOUT` at `b21f0100`. It runs `tests/ -q -m "not postgres"`.

**SonarCloud** is advisory, and its Quality Gate passed. It raises two new code smells, which this PR does not change:
- S3776: `seal_validator`'s cognitive complexity is 17, against an allowance of 15.
- S5778: one `pytest.raises` block in the seal tests wraps two calls.

**Targeted runs:**

| at | run | passed |
| --- | --- | --- |
| `9f37701f` | the seal file | 87 |
| `9f37701f` | the seal file, `test_nightly_lane`, `test_dashboard_refresh_lane`, `test_b4_boundary_repoint` and `test_import_direction` | 161 |
| `b1774bf2` | 17 files: the 14 that read `doc-health-reusable.yml`, plus `test_dashboard_refresh_lane`, `test_b4_boundary_repoint` and `test_import_direction` | 478 |

## Commits

- `17679e32` is the change.
- `b1774bf2` came out of self-review before this PR opened.
  - `seal_validator` used to skip, silently, a unit entry that is not a regular file. It now refuses it by name, with a test and a mutation for that.
  - Four comments were corrected to match what was measured. One had said "~35 MB"; the corpus half at `1edbb3dd` is 44,492,413 bytes.
- `9800caf4` answers Copilot's round-one finding.
  - A product tree whose HEAD cannot be read now refuses the seal, instead of recording a null `validator_revision`.
  - `verify_seal` rejects a recorded revision that is not a full one.
- `9f37701f` answers Copilot's round-two finding: the intake now requires the whole validator unit, as listed under Manifest.
  - The round-two overview also said "Narrow the ImportError handling". That item is answered by measurement in [a PR comment](#1162 (comment)), with no code change.
- Copilot's round three at `9f37701f` (review `5309433050`) reads 🔵 *Needs a closer look*, with **Findings: None**. It is answered by measurement in [a PR comment](#1162 (comment)), with no head move. All review threads are resolved.

## Not fixed here: #1161

This PR repairs the parent seal only. The refresh chain still cannot run end to end. The reasons below were measured today and are filed as #1161.

1. **The aggregation child cannot render since the shed.** In `opensoft/xFactory` `dashboard-image-worker.yml`, generate over the post-shed corpus exits 1 with `No module named ideation_dashboard.cli`. Its intake also hard-codes the 1.x layout: `openxFactory/scripts/validate-ideation-dashboard-contracts.py` and major `1`. It would therefore refuse a 2.0.0 seal on the major. That refusal is intended, because the child rework reads 2.x.
2. **Production never reaches the seal.** The `dfr-seal` step runs only when `dfr-readiness` reports ready. xFactory nightly run 35947804907 (2026-09-24) reports `SKIPPED — worker unavailable: heartbeat_labels_missing`.
3. **The finalize job does not mount openxFactory's openXdox and openDox gitlinks**, and the validator is resolved through them. Until the job mounts them, the seal step refuses and names them, as the production-shape measurement above shows. The step's comment in `doc-health-reusable.yml` now says so.

So **no production outcome changes.** The seal step is still skipped. If it ran, it would still refuse, naming the unmounted gitlinks instead of the shed path.

Also observed and not changed: the comment at `.github/workflows/pytest-suite.yml:153-164` cites `scripts/ideation_dashboard/snapshot.py::find_validator` and `tests/ideation-dashboard/test_snapshot.py::test_find_validator_locates_pinned_checkout`. Neither exists in openxFactory since the shed. openxdox's own `find_validator` has searched only its own product tree since `e28930bf`.

## Scope

- **Four files:**
  - `scripts/ideation_dashboard/dashboard_refresh_lane.py`
  - `scripts/ideation_dashboard/nightly_lane.py`
  - `tests/ideation-dashboard/test_dashboard_source_seal.py`
  - `.github/workflows/doc-health-reusable.yml`, a comment-only change
- **Touches nothing under `openspec/changes/` and not the README OpenSpec Records block**, so no Rule 6 landing window applies.
- **Moves nothing else:** no pin, gitlink or carve manifest, and not the split-opendox `tasks.md`.
- **Tools:** the measurement, mutation and gate tools are persisted in brett-wip at `handoffs/xFactory/attachments/lane-opendox/fix1158/`.


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