Skip to content

Write the openXdox pin resync runbook the pin said was owed (D-16, RULED 5815412869 C4) - #1154

Merged
brettheap merged 9 commits into
mainfrom
docs/openxdox-pin-resync-runbook
Sep 24, 2026
Merged

brettheap merged 9 commits into
mainfrom
docs/openxdox-pin-resync-runbook

Conversation

@brettheap

@brettheap brettheap commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

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

What this is

This is D-16 of the owed-acts register. contracts/openxdox-pin.yaml said "A resync runbook written for THIS consumption is owed and does not yet exist", and its resync_runbook: named openXdox's own README.md#the-lockstep-invariant as a stand-in. RULED at #656 comment 5815412869 (item 3, C4, option (a): "the openXdox-pin resync runbook lands as one small PR after review") and claimed at 5815620605. Landing word: "land the C1, C3 and C4 PRs when green". The holder lands this PR. I do not merge it.

What changes

file change
docs/openxdox-pin-resync-runbook.md new, Status: draft, Kind: runbook, eight sections. It started as the helper bank's draft, re-verified against main dd2466ad command by command, and then went through eight Copilot rounds (below). Every command it gives fails closed or fails fast, and every one has been run as committed.
README.md one doc-index entry, beside the openXdox dispatch-credential binding runbook
contracts/openxdox-pin.yaml resync_runbook: now names the runbook, and the owed-gap paragraph above it is rewritten. The paragraph above verify_pin: still said the verifier was "not yet wired into any required check". It is corrected in the same lines (:152-153), because openxdox-consumer-gate is a required check (ruleset 23554310) and has run it on every PR since #1059. The commit, the digest and the gitlink do not move.
scripts/verify-openxdox-pin.py The REMEDIATION trailer now names docs/openxdox-pin-resync-runbook.md. neutral-product-pin requires every refusal to name "the path of the pin-resync runbook", and the openXwallet verifier's trailer already names its own. Four stale docstring blocks are corrected in place: :89-90, :99-101, :103-105 and :155-157.
tests/openxdox_pin/test_openxdox_pin_verifier.py The one assertion that pins that trailer follows it. The docstring's dirty-checkout sentence (:859-860) gets the same correction as the verifier's.

No cited line moves.

  • The promoted openspec/specs/document-lifecycle/spec.md cites contracts/openxdox-pin.yaml:76-79,92-94 and scripts/verify-openxdox-pin.py:257 through :329.
  • The active add-neutral-product-standalone-operability design cites the pin's :106-108.
  • amend-neutral-product-pin-source-tree-digest cites verify-openxdox-pin.py:19, :158-163 and the test's :264-265.
  • scripts/doc_health/pin_shapes.py cites verify-openxdox-pin.py:186-187.

All three edited files keep their exact line counts (154, 626 and 1036), and every edit is in place, so each cited line still holds the content it held.

What the re-verification corrected in the draft

  • § 2 (the verifier). The draft said "four checks". The verifier runs shape guards first: _pinned_commit refuses openxdox-pin-tag-only, and _pinned_tree_digest refuses a malformed tree_sha256. Then come the four ordered checks, with five refusal codes in all, plus pin-unreadable outside the vocabulary. Check 2 reads the INDEX when the gitlink is staged, so after git add openXdox the verifier reports gitlink read from the index.
  • § 3 (the advance). The draft gave only a pseudo-code digest recipe. The section now has three things:
    • an independent recompute that can be run, reproducing the recorded digest at each of four openXdox commits;
    • the forced leg → root → openxFactory order, with openXdox#18's re-point from PR head 39d8937e to landed 626f2c8d as the precedent;
    • the grep for the old sha in the pin's prose, and the by-line citations that make line count and position matter.
  • § 4 (the lockstep). This now has the exact comparison, and the measured history: openXdox 646f1dc0, cd2596a2 and 2f3f857d all derive openDox dc7aa08f. That is why DISPLAY: serve openDox's completion stage as "implemented" from openXdox (RULED #656 5784683830); openXdox pin 646f1dc0 → cd2596a2 #1146 and DISPLAY: serve the completion stage's item nouns as "implemented item(s)" from openXdox (RULED #656 5801057769); openXdox pin cd2596a2 → 2f3f857d #1148 moved this pin alone. Pin lockstep #3: openDox and openXdox advance to the S8 landings and the opendox dependency bump #1084 is the DIFFERENT precedent.
  • § 5 (the gates). The draft reported "105 tests, 90 passed, 15 failed" from an uninitialized clone. This section now gives the environment both workflows set up, then their exact command blocks, floors and named verdicts. It also records a local gotcha: a checkout under any other directory name than openxFactory skips 13 ideation tests.
  • § 6 (the migration triple). The facts are re-measured, and the check is now fail-closed. The one UNCONFIRMED is kept as the draft stated it.

Copilot rounds

Every thread is resolved with its measurement, and each overview's other items are answered in a PR comment.

round review at overview fixed at
1 d7afc3c2 🟡: two threads (whether the consumer gate is required; PyYAML's failure behaviour); the digest read could pass on a failed ls-tree; sibling staging; stale verifier docstrings 4a050955
2 4a050955 🟡: two threads (step 3 did not fail closed; an abbreviated sha in an example); the step 5 heading contradicted its bullet d06bb121
3 d06bb121 🟡: one thread (a failed git call left a traceback, not REFUSE); § 4 accepted two malformed equal commits as lockstep (measured: rc 0 on "abc" == "abc") 5ae23f96
4 5ae23f96 🔵, no findings. I re-read every command against its workflow and found three § 5 mismatches, plus § 6's shell-unsafe placeholder 3302e814
5 3302e814 🟡: one thread (a host-absolute placeholder); § 6 did not validate COMMIT baddd6f3
6 baddd6f3 🔵, no findings; one "previously missed" item: § 5 did not give the workflows' environment setup 51fd78d2
7 51fd78d2 🔵, no findings: "unresolved fail-closed error-handling issues and documentation corrections". I re-audited every block and pasted § 3 into an interactive zsh: two blocks carried # comments, which zsh passes on as arguments, and § 2's success line was inexact db09c2c4
8 db09c2c4 🔵, no findings: "pinned-core validation, dependency handling, and migration-range comparison". All three were real: nothing checked the pinned core's commit; § 4 needed PyYAML before § 5's setup; § 6 checked one commit, not the bump's range bc36cc09

At bc36cc09 the overview reads 🟢 "Approval recommended — only minor documentation nits remain, with no approval-blocking issues identified", with Findings: None.

Measured (local full clones named openxFactory)

The kit replicates every PR-triggered gate from .github/workflows/*.yml. It ran over baddd6f3, beside main dd2466ad, this branch's base. 51fd78d2, db09c2c4 and bc36cc09 change only the runbook's text. Those changes are re-measured by doc-health and by running each changed block as committed.

gate main dd2466ad this branch
both verifiers OK … openXdox@2f3f857d … (149dc2cd…), OK … openDox@dc7aa08f … same
the other twelve validator steps the PR gates run: openXwallet pin, clearing dispatch, release-tag, signed chain, wallet syntax and validation, factory identity, OpenSpec CLI pin --all, openRepoShape pin, carve manifest, sequenced-after, former-id arrival rc 0 (the arrival gate needs a range, so it runs on the branch only) rc 0
consumer gate: pin suites 105 / 105 / 0, 4 named verdicts passed same
consumer gate: ideation 1137 / 1137 / 0, named verdict passed same
pytest-suite, local 3 failed, 8 skipped 2 failed, 6 skipped, 0 new failures
doc-health --single-repo --as-of 2026-09-24 31 critical, 25 error, 52 warning, 20 info identical, apart from the draft-age info line (this runbook is a new draft)
  • The local pytest-suite failures are not this PR's. The two left are test_validator_cli::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization] and test_snapshot_equivalence::test_a_prefix_whose_path_cannot_be_resolved_is_replaced_not_raised_on. Both fail identically at main dd2466ad. The per-test junit diff shows no test whose outcome worsened. The three that changed are network-dependent test_pin_reachability cases, which improved.
  • CI is green. pytest-suite passes at baddd6f3, and all twelve checks pass at bc36cc09.
  • § 5's blocks, run as committed (fences extracted from the file):
    • the setup chain gave rc 0;
    • the consumer chain gave rc 0 (both OK lines, 105 passed, 1137 passed);
    • the pytest-suite chain with CORE_CHECKOUT unset stopped at its first link with rc 1;
    • the pytest-suite chain with it set ran through to the end, as it stood at 51fd78d2, before round 8 added the pinned-core link:
      • the installer put openspec 1.12.0 on PATH, so none of the three tests/proposal-support tests skipped;
      • 8857 cases: 8850 passed, 6 skipped, 1 failed, the same local-only test_validator_cli failure as main;
      • both named verdicts, the freshness verifier and the vector replay, passed.
  • § 3, run end to end in an interactive zsh -f -i under a pty, in a simulation clone with push disabled, with NEW_SHA=069fe471…:
  • § 5's pinned-core check: the codexFactory core at b21f0100 gives OK, rc 0. An openDox-code checkout, a directory that is not a git checkout, or an unset CORE_CHECKOUT each refuse with rc 1.
  • § 4 and the core check without PyYAML each refuse with rc 1, naming the setup block.
  • § 6's range check:
    • over the advance to 069fe471 it reports 0 changed and 0 present for the root (2f3f857d → 069fe471), for code (626f2c8d → e28930bf) and for spec (unchanged);
    • over openDox-code 52b237e8 → aca94ecb it lists six added migration paths;
    • an abbreviated, empty or absent commit gives REFUSE, rc 1.

Touches

Summary by Sourcery

Document and wire in the dedicated procedure for safely resynchronizing openxFactory’s openXdox consumption pin.

New Features:

  • Add a draft runbook documenting how to resynchronize the openXdox consumption pin, including verification, lockstep handling, required gates, and migration considerations.

Bug Fixes:

  • Correct the pin contract and verifier documentation to reflect that the openXdox verifier runs as a required consumer check.
  • Update verifier remediation guidance to point to the dedicated resync runbook.

Enhancements:

  • Replace the temporary lockstep-invariant reference with the dedicated openXdox pin resync runbook and document the related contract behavior.
  • Add a test assertion covering the updated remediation path.

Documentation:

  • Index the new openXdox pin resync runbook in the repository README.

Tests:

  • Update verifier tests to assert that remediation output names the dedicated resync runbook.

🤖 Generated with Claude Code

contracts/openxdox-pin.yaml has said that "a resync runbook written for THIS
consumption is owed and does not yet exist", and its resync_runbook: named
openXdox's own README.md#the-lockstep-invariant as a stand-in. That is D-16
of the owed-acts register. It was RULED at #656 comment 5815412869 (item 3,
C4, option a: "the openXdox-pin resync runbook lands as one small PR after
review") and claimed at comment 5815620605.

docs/openxdox-pin-resync-runbook.md (Status: draft, Kind: runbook) is the
banked draft, re-verified against main dd2466a and corrected where it had
gone stale. The verifier runs shape guards before its four ordered checks,
and there are five refusal codes, not four checks alone. It is also run by
the required openxdox-consumer-gate check. The runbook records the forced
leg -> root -> openxFactory order (openXdox#17/#18 -> #1146/#1148), the
lockstep consequence verify-opendox-pin.py's check 5 can raise on the
sibling pin (openXdox 646f1dc0, cd2596a2 and 2f3f857d all derive openDox
dc7aa08f), the gates that read the pin with their floors, and the fact
that this file and the verifier are cited BY LINE from a promoted spec.

With the runbook written, three things point at it:
- the pin's resync_runbook: and the comment paragraph above it. The
  paragraph above verify_pin:, which still said the verifier was "not yet
  wired into any required check", is corrected in the same three lines;
- the verifier's REMEDIATION trailer. neutral-product-pin requires a
  refusal to name "the path of the pin-resync runbook", as the openXwallet
  verifier's trailer already does;
- the one test assertion that pins that trailer.

Every line that another document cites by number stays where it was:
contracts/openxdox-pin.yaml keeps its 154 lines, scripts/verify-openxdox-
pin.py its 626 and the test its 1036. The pin's commit, digest and gitlink
do not move. README.md gains one doc-index entry.

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

sourcery-ai Bot commented Sep 24, 2026

Copy link
Copy Markdown

Reviewer's Guide

This PR fulfills the owed openXdox pin resync documentation by adding a draft, openxFactory-specific runbook and wiring it into the README, pin contract, verifier remediation, and corresponding test without changing the pinned commit, digest, gitlink, or cited line positions.

Sequence diagram for advancing the openXdox pin

sequenceDiagram
    participant Operator
    participant Upstream as opensoft/openXdox
    participant Repo as openxFactory
    participant Verifier as verify-openxdox-pin.py
    participant Sibling as verify-opendox-pin.py

    Operator->>Upstream: Confirm NEW_SHA landed on main
    Operator->>Repo: git -C openXdox checkout --detach NEW_SHA
    Operator->>Repo: Recompute tree_sha256
    Operator->>Repo: Edit commit and tree_sha256
    Operator->>Repo: git add openXdox contracts/openxdox-pin.yaml
    Operator->>Verifier: verify()
    Verifier-->>Operator: OK or PinRefusal
    Operator->>Sibling: Check openDox lockstep
    alt openDox derived commit differs
        Sibling-->>Operator: opendox-pin-lockstep-mismatch
        Operator->>Repo: Move openDox gitlink and sibling pin in same commit
    else lockstep holds
        Sibling-->>Operator: Verification succeeds
    end
Loading

Flow diagram for openXdox pin verification

flowchart TD
    A[Load openxdox pin] --> B{Shape guards valid?}
    B -- No --> R[Refusal with remediation]
    B -- Yes --> C{Submodule initialized?}
    C -- No --> R
    C -- Yes --> D{Gitlink equals commit?}
    D -- No --> R
    D -- Yes --> E{Checked-out revision equals commit?}
    E -- No --> R
    E -- Yes --> F{Tree digest recomputes?}
    F -- No --> R
    F -- Yes --> G[Print OK]

    R --> H[Follow docs/openxdox-pin-resync-runbook.md]
Loading

File-Level Changes

Change Details Files
Adds and publishes the dedicated openXdox pin resynchronization runbook.
  • Documents verifier shape guards, ordered checks, refusal behavior, digest recomputation, staging, lockstep handling, gates, migration considerations, and prior bump examples.
  • Adds the runbook to the core README index.
  • Points the pin contract's resync_runbook field at the new draft and updates the verifier-status prose.
docs/openxdox-pin-resync-runbook.md
README.md
contracts/openxdox-pin.yaml
Aligns verifier remediation guidance with the new runbook.
  • Changes the remediation trailer to name the new runbook while preserving the non-recursive initialization guidance.
scripts/verify-openxdox-pin.py
Updates verifier tests for the remediation-path change.
  • Asserts that the remediation trailer names docs/openxdox-pin-resync-runbook.md.
tests/openxdox_pin/test_openxdox_pin_verifier.py

Tips and commands

Interacting with Sourcery

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

Customizing Your Experience

Access your dashboard to:

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

Getting Help

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The runbook has unresolved command-safety and lockstep-staging issues, and related contract and verifier documentation needs correction.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Low severity

Open (2)
What changed in this PR

Adds a draft openXdox pin resynchronization runbook and wires it into the contract, verifier remediation, README, and regression test.

Changes:

  • Adds the resynchronization procedure and operational guidance.
  • Updates contract and verifier references.
  • Adds documentation indexing and test coverage for the new remediation path.
File Summary Review notes
tests/​openxdox_pin/​test_openxdox_pin_verifier.py Verifies the updated remediation path. No final comments.
scripts/​verify-openxdox-pin.py Points remediation guidance to the new runbook. Nit (1 vote): update stale top-level documentation about required checks and owed work.
README.md Adds the runbook to the documentation index. No final comments.
docs/​openxdox-pin-resync-runbook.md Adds the draft resynchronization procedure. Moderate (1 vote): fail closed when reading the new digest and correctly use NEW_SHA. Nit (1 vote): include sibling staging, and describe the PyYAML failure behavior accurately.
contracts/​openxdox-pin.yaml Names the runbook and updates verification metadata. Nit (2 votes): describe openxdox-consumer-gate as advisory rather than required.

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

Comment thread contracts/openxdox-pin.yaml Resolved
Comment thread docs/openxdox-pin-resync-runbook.md Resolved
…e, and correct the required-check prose

This answers Copilot's review of openxFactory#1154 at d7afc3c.

docs/openxdox-pin-resync-runbook.md:
- A missing PyYAML is described as it behaves. The import guard prints
  "ERROR PyYAML is required to read contracts/openxdox-pin.yaml" and exits 2
  before verify() runs, so there is no PinRefusal, no code and no trailer.
  Measured by blocking the import: rc=2 and that one line. pin-unreadable now
  lists exactly what raises it: load_pin, submodule_path, the algorithm and
  definition, digests, and a failing ls-tree at check 4.
- § 3 sets NEW_SHA as a real shell variable, and every command reads "$NEW_SHA".
  The step 4 digest is a Python step that fails closed. It refuses a sha that is
  not 40 lowercase hex, raises on a failing ls-tree (check=True) and refuses an
  empty listing. The old pipe hashed empty input to e3b0c442... and exited 0.
- § 4's comparison is fail-closed Python too, and exits 1 with DIFFERENT on a
  disagreement.
- The steps are reordered: § 4's check comes before staging. Staging names the
  openDox pair, commented and conditional, and runs BOTH verifiers.
- § 7 adds #1084 as the worked example of the DIFFERENT case, and a table in
  which the step 4 command reproduces four recorded tree_sha256 values.
- Both Python steps were extracted verbatim from the document and run in bash
  and zsh. At 2f3f857d, cd2596a2, 646f1dc0 and 88a1047e step 4 matched
  149dc2cd, eb367f68, 47f50184 and cdbe7573, the values the pin recorded.
  § 4 exited 0, 0, 0 and 1 (DIFFERENT). An uppercase sha or an unknown commit
  exits 1 and prints no digest.

contracts/openxdox-pin.yaml:152-153: the verify_pin comment now cites what
requires the check, ruleset 23554310. GET repos/opensoft/openxFactory/rules/
branches/main lists that ruleset's required_status_checks as
["openxdox-consumer-gate"].

scripts/verify-openxdox-pin.py and the verifier test's docstring: four stale
passages are corrected in place, each block the same number of lines:
- :89-90 and the test's :859-860 (task 5.3's gate carries no dirty-checkout
  refusal);
- :99-101 (PyYAML);
- :103-105 (the tool is not the gate; the required gate runs it);
- :155-157 (the gate reads the exit code only).

The files are still 154, 626 and 1036 lines long. Every line another document
cites is byte-identical to main: the pin's :76-79,92-94,106-108,119-121; the
verifier's :19,158-163,186-187,257,266-291,276,284,307,314,322,329; and the
test's :264-265.

Measured: both verifiers print OK. tests/opendox_pin plus tests/openxdox_pin
give 105 passed. doc-health --single-repo gives 31 critical, 25 error,
52 warning and 20 info, the same as main dd2466a; the one delta is the
draft-age info line, where n goes from 69 to 70.

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

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4

Copilot review round 1 (d7afc3c2, 🟡) is answered at 4a050955. The two threads are resolved, each with its measurement. These are the overview's other items:

  • Moderate: "fail closed when reading the new digest and correctly use NEW_SHA". Fixed.

    • § 3 now sets NEW_SHA as a real shell variable, and every command reads "$NEW_SHA".

    • Step 4 is a Python step. It refuses a sha that is not 40 lowercase hex, raises on a failing git ls-tree (check=True), and refuses an empty listing.

    • The old ls-tree | python3 -c pipe, given an unknown commit, printed e3b0c44298fc… (the sha256 of empty input) and exited 0. The document now says so.

    • I extracted both of the document's Python steps verbatim and ran them in bash and zsh:

      input step 4 § 4
      2f3f857d 149dc2cd…, rc 0 rc 0
      cd2596a2 eb367f68…, rc 0 rc 0
      646f1dc0 47f50184…, rc 0 rc 0
      88a1047e cdbe7573…, rc 0 rc 1, DIFFERENT
      an uppercase sha rc 1, no digest rc 1
      an unknown commit rc 1, no digest rc 1

      Each step 4 digest is the one the pin recorded at that commit.

  • Nit: "include sibling staging". Fixed.

  • Nit: "describe the PyYAML failure behavior accurately". This is the second thread, fixed.

  • Nit, verifier: "update stale top-level documentation about required checks and owed work". Fixed in place, each block keeping its line count:

    The verifier test's docstring :859-860 gets the same dirty-checkout correction.

No cited line moves. The files are still 154 / 626 / 1036 lines. Every cited line is byte-identical to main:

  • the pin's :76-79,92-94,106-108,119-121;
  • the verifier's :19,158-163,186-187,257,266-291,276,284,307,314,322,329;
  • the test's :264-265.

Measured at 4a050955:

  • both verifiers print OK;
  • tests/opendox_pin tests/openxdox_pin: 105 passed;
  • doc-health --single-repo --as-of 2026-09-24: 31 critical / 25 error / 52 warning / 20 info, identical to main dd2466ad. The one delta is the draft-age info line, where n goes from 69 to 70 because this is a new draft.

Left alone and flagged to the holder, as out of this PR's scope:

  • the consumer-gate workflow header's dated "ADVISORY ON THE DAY IT LANDS" paragraph;
  • the same stale "not wired into any required check" sentence in scripts/verify-opendox-pin.py:78 and in the sibling contracts/opendox-pin.yaml.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The runbook contains workflow and example issues that could cause unsafe or incomplete resynchronization steps.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity · 1 Low severity

Open (2)
Resolved since last review (2)
Previously missed (1)

In code that hasn't changed since last review

Low severity Allow edits to same-line prose referencing the old SHA

docs/​openxdox-pin-resync-runbook.md:171

The heading says only the two pin values may be edited, but the next bullet correctly requires updating prose that still names the old SHA. Following the stated edit scope leaves stale instructions; include same-line prose references in the allowed in-place edits.

Comment thread docs/openxdox-pin-resync-runbook.md Resolved
Comment thread docs/openxdox-pin-resync-runbook.md Resolved
brettheap added a commit that referenced this pull request Sep 24, 2026
Copilot review 5306959435 at 85d6de4 raised five findings. Each is fixed:

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

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

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… shas wherever a command reads NEW_SHA

This answers Copilot's review of openxFactory#1154 at 4a05095.

- Step 3 was not fail-closed: its "|| echo REFUSE" returned 0 when the
  checkout was wrong. It is now ONE && chain covering submodule init, fetch,
  NEW_SHA being on openXdox's main (step 1, now checked rather than only
  stated), checkout and the checked-out revision. It prints OK only when
  every link succeeded; otherwise it prints REFUSE and returns non-zero. It
  uses false, not exit, so an interactive shell stays open. I extracted the
  block verbatim and ran it in bash and zsh:
  - 2f3f857d (on main): OK, rc=0;
  - e706d26a (a fetched openXdox commit that is not on main): REFUSE, rc=1,
    and the checkout does not move;
  - 0000...: REFUSE, rc=1.
- Step 4's example set NEW_SHA to the abbreviated 2f3f857d, which the
  snippet's own 40-hex guard refuses. It now reads
  NEW_SHA=2f3f857daccce6ade3a15e0f3d0e926f9ff7c925 and says that an
  abbreviated sha exits 1. § 4's measured table lists the full shas it was
  run with.
- Step 5's heading said to edit commit: and tree_sha256: "only", while its
  first bullet requires rewriting prose that names the old sha. The heading
  now names both. This was the overview's "previously missed" item.
- § 6's migration trigger was "git ls-tree ... | grep -i migrat", which
  reads a failing ls-tree as no hit. It is now a fail-closed Python check.
  Run verbatim, it prints "0 path(s) containing migrat" at openXdox
  2f3f857d, openXdox-code 626f2c8d and openXdox-spec f088b097, and 6 at
  openDox-code, so it does find paths where they exist.

Measured: tests/opendox_pin plus tests/openxdox_pin give 105 passed.
doc-health --single-repo --as-of 2026-09-24 gives 31/25/52/20, identical to
main dd2466a apart from the draft-age info line. The document has 14
fences and headings 1-8 in order.

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

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4

Copilot review round 2 (4a050955, 🟡) is answered at d06bb121. Both threads are resolved, each with its measurement. The overview's other item:

  • "Previously missed": the step 5 heading allowed only the two pin values while its bullet requires prose edits. Fixed. The heading now reads: "Edit contracts/openxdox-pin.yaml in place. Edit commit: and digests.tree_sha256:, and any prose line that still names the OLD sha; nothing else." The bullet says the header sentence is rewritten on its own lines, which keeps the by-line citations still.

In the same spirit as the step 3 fix, § 6's migration trigger, git ls-tree … | grep -i migrat, read a failing ls-tree as "no hit". It is now a fail-closed Python check. Run verbatim it prints:

  • 0 path(s) containing migrat at openXdox 2f3f857d, openXdox-code 626f2c8d and openXdox-spec f088b097;
  • 6 path(s) at openDox-code, so it finds paths where they exist;
  • a traceback with exit 1 at an unknown commit.

Re-measured at d06bb121:

  • tests/opendox_pin tests/openxdox_pin: 105 passed;
  • doc-health --single-repo --as-of 2026-09-24: 31 / 25 / 52 / 20, identical to main dd2466ad apart from the draft-age info line;
  • the document has 14 fences and headings 1–8 in order.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The runbook’s pre-staging comparison can accept malformed equal commit values, and several documentation-scope corrections remain.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Low severity

Open (1)
Resolved since last review (2)

Comment thread docs/openxdox-pin-resync-runbook.md Resolved
…formed commits in the lockstep comparison

This answers Copilot's review of openxFactory#1154 at d06bb12.

- The section intro promised that every failed step prints REFUSE, but the
  Python steps used check=True, so a failing git call left a bare traceback.
  Step 4, the § 4 comparison and § 6's migration check now catch both an
  OSError (git cannot run) and a non-zero return, and print "REFUSE: ...
  failed: <git's own error>". The intro now says what is guaranteed: a
  command that cannot do its job prints REFUSE, returns non-zero, and prints
  nothing that could pass for a result. § 4's DIFFERENT is named as the one
  other non-zero outcome, and it is a result, not a failure.
- The § 4 comparison accepted two malformed but equal commit: values. I
  measured it on a scratch openXdox whose pin and this repository's pin both
  said commit "abc": it printed "derives openDox abc; this repository pins
  abc" and exited 0. Both sides must now be 40 lowercase hex, and an
  unreadable pin or one with no commit: key is refused.

Every command was extracted verbatim and run in bash and zsh:
- step 4 prints 149dc2cd... at 2f3f857d, and reproduces 47f50184, eb367f68
  and cdbe7573 at 646f1dc0, cd2596a2 and 88a1047e;
- the abbreviated 2f3f857d and an unknown commit give REFUSE, rc=1;
- § 4 gives rc 0 at 2f3f857d, DIFFERENT rc 1 at 88a1047e, REFUSE rc 1 for an
  unknown commit, and REFUSE rc 1 for the malformed-equal case;
- § 6 prints 0 paths at openXdox 2f3f857d and 6 at openDox-code, and REFUSE
  rc 1 for an unknown commit.

tests/opendox_pin plus tests/openxdox_pin give 105 passed. doc-health is
31/25/52/20, identical to main apart from the draft-age info line.

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

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4

Copilot review round 3 (d06bb121, 🟡) is answered at 5ae23f96. The thread (REFUSE vs traceback) is resolved. The overview's other items:

  • "The pre-staging comparison can accept malformed equal commit values". You were right. I measured it on a scratch openXdox whose own contracts/opendox-pin.yaml and this repository's both said commit: "abc". The § 4 block printed derives openDox abc; this repository pins abc and exited 0. Both sides must now be 40 lowercase hex before they are compared, and an unreadable pin or one with no commit: is refused. The same scratch case now gives REFUSE: openXdox's derived opendox-pin commit 'abc' is not 40 lowercase hex, rc=1. The real cases are unchanged:

    • 2f3f857d… gives rc 0, one line;
    • 88a1047e… gives rc 1, DIFFERENT.
  • "Several documentation-scope corrections remain". No thread names them. The ones I know of are deliberately outside this PR, which is a runbook PR under C4:

    • the consumer-gate workflow header's dated "THE GATE IS ADVISORY ON THE DAY IT LANDS" paragraph;
    • the sibling scripts/verify-openxdox-pin.py-era sentence "not wired into any required check" that scripts/verify-opendox-pin.py:78 and contracts/opendox-pin.yaml:213 still carry;
    • the verifier docstring's RULING F paragraph, which predates RULED Q7's second direct pin.

    Each is reported to the holder as an adjacent finding, for a PR of its own.

Re-measured at 5ae23f96:

  • tests/opendox_pin + tests/openxdox_pin: 105 passed;
  • doc-health: 31 / 25 / 52 / 20, identical to main apart from the draft-age info line;
  • 14 fences.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Correct the three moderate runbook command issues and address the remaining documentation inconsistencies.

Review effort: Lite
Findings: None

Resolved since last review (1)

… and make § 6's placeholder shell-safe

This answers Copilot's overview of openxFactory#1154 at 5ae23f9: "Needs a
closer look ... correct the three moderate runbook command issues and address
the remaining documentation inconsistencies". It came with no thread, so
these are the command defects I found by re-reading each command against the
workflow it describes:

1. § 5 gave the pin suites as "pytest tests/opendox_pin tests/openxdox_pin".
   The gate runs "python3 -m pytest ... -q -m "not postgres""
   (openxdox-consumer-gate.yml:313), and the floors belong to that selection.
2. § 5 gave the ideation suite without -m "not postgres" either (:480).
3. § 5 described pytest-suite without the one environment its named verdicts
   need. PINNED_CORE_CHECKOUT must name a checkout of codeXfactory/codexFactory
   at b21f0100 (pytest-suite.yml:524-601); without it the freshness verifier
   and the vector replay skip, and the skipped count and named verdicts break
   locally.

§ 5 now carries both workflows' exact command blocks, the floors
(105/105/0, 1137/1137/0, 7050/7044/6), and every named verdict by full id.
Previously only two of the pin suites' four were named, and the ideation
suite's one was missing. The consumer-gate block was run verbatim in a
checkout named openxFactory: both verifiers print OK, the pin suites give
105/105/0 and the ideation suite 1137/1137/0.

Documentation consistency:
- § 6's placeholder "<full 40-hex commit>" is shell input redirection if
  pasted. The check now reads "$COMMIT", set beforehand. Run verbatim in bash
  and zsh it gives 0 paths at openXdox 2f3f857d and REFUSE, rc=1, for an
  unknown commit.
- § 8's "three things move in one commit" now also names the prose lines § 3
  step 5 moves.

doc-health --single-repo --as-of 2026-09-24 gives 31/25/52/20, identical to
main apart from the draft-age info line.

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

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4

Copilot's overview at 5ae23f96 read 🔵 "Needs a closer look — correct the three moderate runbook command issues and address the remaining documentation inconsistencies", with Findings: None and no thread. So I re-read every command in the runbook against the workflow it describes. Fixed at 3302e814:

The three command issues I found, all in § 5:

  1. The pin suites were given as pytest tests/opendox_pin tests/openxdox_pin. The gate runs python3 -m pytest tests/opendox_pin tests/openxdox_pin -q -m "not postgres" --junitxml=pin-suites-report.xml (openxdox-consumer-gate.yml:313), and its floors are that selection's.
  2. The ideation suite was given without -m "not postgres" either (:480).
  3. pytest-suite was described without the one environment its named verdicts need. PINNED_CORE_CHECKOUT must name a checkout of codeXfactory/codexFactory at b21f0100 (pytest-suite.yml:524-601). Without it, the freshness verifier and the vector replay skip, and the skipped count and named verdicts break locally.

§ 5 now carries both workflows' exact command blocks and their floors. It names every named verdict by full id; before, it named only two of the pin suites' four, and the ideation suite's one was missing. I ran the consumer-gate block verbatim in a checkout named openxFactory:

  • OK openxdox-pin verified … and OK opendox-pin verified …;
  • pin suites 105 / 105 / 0;
  • ideation 1137 / 1137 / 0.

Documentation inconsistencies:

  • § 6's placeholder <full 40-hex commit> is shell input redirection if pasted. The check now reads "$COMMIT", set beforehand. Run verbatim in bash and zsh, it gives 0 path(s) at openXdox 2f3f857d and REFUSE, rc=1, for an unknown commit.
  • § 8's "three things move in one commit" now also names the prose lines that § 3 step 5 moves.

doc-health is still 31 / 25 / 52 / 20, identical to main apart from the draft-age info line.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Address the missing full-40-hex COMMIT validation; also replace the absolute-path placeholder.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Low severity

Open (1)

Comment thread docs/openxdox-pin-resync-runbook.md Resolved
…eckout by variable

Copilot round 5 on 3302e81 (review 5307674366).

- § 6: the migration check now refuses any COMMIT that is not 40 lowercase
  hex characters, before git runs. An unset or empty COMMIT is refused the
  same way. Measured: the full 2f3f857d and 069fe471 each print
  "0 path(s) containing migrat" with rc 0. An abbreviated, empty, unset or
  uppercase COMMIT prints REFUSE with rc 1. A 40-hex sha absent from the
  repository is refused by git ls-tree, also rc 1.
- § 5 (thread 4096335692): the pytest-suite example no longer commits a
  host-absolute placeholder. It reads the caller-supplied CORE_CHECKOUT
  through ${CORE_CHECKOUT:?...}, which stops before pytest when the variable
  is unset or empty. Measured under sh, bash and zsh: unset and empty stop
  with rc 2/1/1 and pytest never starts; set, it runs. The prose also names
  the test's own fallbacks, .merge-master-core inside or beside the checkout.

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

Copy link
Copy Markdown
Contributor Author

Copilot round 5 (review 5307674366, at 3302e81): body item answered, fixed in baddd6f

Address the missing full-40-hex COMMIT validation

Fixed. § 6's migration check now refuses a COMMIT that is not 40 lowercase hex characters before git runs. That covers an unset or empty one, since "$COMMIT" then passes ''. Measured with the committed fence extracted byte-for-byte:

COMMIT rc last line
openXdox 2f3f857d…c925 (full) 0 0 path(s) containing migrat
openXdox 069fe471…6a31 (full) 0 0 path(s) containing migrat
2f3f857d (abbreviated) 1 REFUSE: COMMIT is not a full 40-hex commit: '2f3f857d'
empty 1 REFUSE: COMMIT is not a full 40-hex commit: ''
unset (env -u COMMIT) 1 REFUSE: COMMIT is not a full 40-hex commit: ''
uppercase full 1 REFUSE: COMMIT is not a full 40-hex commit: '2F3F…'
40-hex absent from the repository 1 REFUSE: git ls-tree 0123…4567 failed: fatal: not a tree object
openDox-code 1e4a57fb (full) 0 6 path(s) containing migrat, including migrations/0001_identity_and_coordination.sql

The inline finding (thread 4096335692, the host-absolute placeholder) is answered on its thread and resolved.

Lane: openxfactory-4

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

The runbook has unresolved setup, fail-fast, error-handling, and migration-verification issues.

Review effort: Lite
Findings: None

Resolved since last review (1)
Previously missed (1)

In code that hasn't changed since last review

Medium severity Document required environment setup before gate commands

docs/​openxdox-pin-resync-runbook.md:313

Following §5 from the fresh clone required by §3 is not actually runnable: the workflow first sets up Python 3.12, Node 22, and the hash-pinned dependency lock, while this section lists only the later commands. Without that setup, pytest/PyYAML may be unavailable and missing Node makes the consumer suite report skips even though the documented floor requires exactly zero. Add the required setup commands (or explicitly state the required precondition and its validation) before presenting these as the gate commands.

… set up, as fail-fast chains

Copilot round 6 (review 5307765248 on baddd6f, "previously missed"): § 5
listed the gate commands without the setup the workflows run first.

- A new first block builds a virtual environment outside the checkout, with
  a runtime-derived path (mktemp -d). It installs the hash-pinned lock with
  the consumer gate's own flags, and ends with `node --version`, so a
  missing node stops it. The prose says why each piece matters: pytest and
  PyYAML come from the lock, and without node the test_lens DOM/JS probes
  SKIP, which fails the exact-0 skip floor.
- The consumer-gate block is one && chain, because the job stops the same
  way: no step runs after a failed one.
- The pytest-suite block checks CORE_CHECKOUT first, so nothing runs when it
  is unset. It installs the pinned OpenSpec CLI through
  scripts/install-pinned-openspec-cli.py, which prints the executable's path,
  and puts that on PATH for the pytest run. Without it the three
  tests/proposal-support tests that need openspec SKIP.

Measured verbatim at baddd6f in a full clone named openxFactory:
- the setup chain: rc 0 (the lock installed; node v24.21.0);
- the consumer chain: rc 0 (both verifiers OK; 105 passed; 1137 passed);
- the pytest-suite chain with CORE_CHECKOUT unset: rc 1 on its first link,
  and nothing else ran.

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

Copy link
Copy Markdown
Contributor Author

Copilot round 6 (review 5307765248, at baddd6f): the "previously missed" item is fixed in 51fd78d

Document required environment setup before gate commands (docs/openxdox-pin-resync-runbook.md:313)

Fixed. § 5 now opens with the setup both workflows run before any gate step. It is one fail-fast chain:

  • it creates a virtual environment outside the checkout, at a runtime-derived path (mktemp -d);
  • it installs requirements/hermes-runtime-contracts.lock with the consumer gate's own --require-hashes --only-binary :all:;
  • it ends with node --version, so a missing node stops it.

The prose says why each part matters. pytest and PyYAML come from the lock. Without node, the DOM and JS probes in tests/ideation-dashboard/test_lens.py (NODE = shutil.which("node"), :88) SKIP, and the exact-0 skip floor fails.

The two gate blocks became fail-fast chains too:

  • The consumer gate. It is one && chain, because the job stops the same way: no step runs after a failed one.
  • pytest-suite. It checks CORE_CHECKOUT first, so nothing runs when it is unset. It then installs the pinned OpenSpec CLI through scripts/install-pinned-openspec-cli.py, which prints only the executable's path on stdout, and puts that on PATH for the pytest run. Without openspec, the three tests/proposal-support/test_proposal_support.py tests that need it (:657, :765, :848) SKIP, and the exact-6 skip floor fails.

Measured verbatim at baddd6f, with the fences extracted from the committed file, in a full clone named openxFactory:

block result
setup chain rc 0: the lock installed, node --version printed v24.21.0
consumer chain rc 0: OK openxdox-pin verified …, OK opendox-pin verified …, 105 passed, 1137 passed
pytest-suite chain, CORE_CHECKOUT unset rc 1 on its first link (CORE_CHECKOUT: set CORE_CHECKOUT to your codexFactory checkout at b21f0100); nothing else ran
pytest-suite chain, set running verbatim now; I will add its result here

Lane: openxfactory-4

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

The runbook has unresolved fail-closed error-handling issues and documentation corrections.

Review effort: Lite
Findings: None

…one fail-closed chain

Copilot's overview at 51fd78d (review 5308174892) read 🔵 "unresolved
fail-closed error-handling issues and documentation corrections", with no
finding. I re-audited every fenced block, and pasted § 3 into an interactive
zsh in a real pty. Two blocks failed there:

- § 3's NEW_SHA line carried a trailing `# a placeholder` comment.
  Interactive zsh does not treat `#` as a comment unless INTERACTIVE_COMMENTS
  is set. So the line printed "zsh: command not found: #" and never set
  NEW_SHA. The comment moves to prose.
- Step 7's staging block was five separate commands, two comment lines and
  three trailing comments. In zsh the trailing comments became arguments to
  git diff and to the verifiers. A failing `git add` also printed git's own
  error, not the REFUSE line § 3 promises. It is now one && chain that ends
  in `|| { echo "REFUSE: ..." >&2; false; }`. The conditional openDox staging
  moves to the prose above it.
- § 2's success line said `gitlink read from <HEAD|index>`. The verifier
  prints `HEAD` or `the index (staged, not yet committed)`, and the runbook
  now says so.
- § 3's intro says no block carries a `#` comment, and why.

Measured in the simulation clone (push disabled), fences extracted from the
committed file. § 3 ran end to end in `zsh -f -i` under a pty, with
NEW_SHA=069fe471:
- step 3: OK;
- step 4: 3ad15b72…, the digest #1157 records;
- § 4: equal, dc7aa08f;
- step 7: both verifiers OK, the openXdox one "gitlink read from the index
  (staged, not yet committed)".
With openXdox checked back out at 2f3f857d, step 7 prints
openxdox-pin-gitlink-mismatch and then "REFUSE: staging or a pin verifier
failed; stop here", rc 1.

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

Copy link
Copy Markdown
Contributor Author

Copilot's overview at 51fd78d (review 5308174892): answered in db09c2c

🔵 The runbook has unresolved fail-closed error-handling issues and documentation corrections. Findings: None

No thread or item named a line, so I re-audited all ten fenced blocks. I also pasted § 3 into an interactive zsh -f -i in a real pty, as a reader on zsh would. Two blocks failed there, and one line of § 2 was inexact:

  • § 3's NEW_SHA=… # a placeholder: replace it. Interactive zsh does not treat # as a comment unless INTERACTIVE_COMMENTS is set. So the line printed zsh: command not found: #, and NEW_SHA stayed empty (measured: NEW_SHA=[]). The comment is now prose, and the block is the bare assignment.
  • Step 7's staging block. It was five separate commands, with two comment lines and three trailing comments. In zsh the trailing comments became arguments to git diff and to both verifiers. A failing git add also printed git's own fatal: line, not the REFUSE line § 3 promises for every command. It is now one && chain ending in || { echo "REFUSE: staging or a pin verifier failed; stop here" >&2; false; }. The conditional openDox staging moved into the prose above it.
  • § 2's success line said gitlink read from <HEAD|index>. The verifier prints HEAD or the index (staged, not yet committed) (scripts/verify-openxdox-pin.py:440-443), and the runbook now says so.

The § 3 intro now also says that no block carries a # comment, and why. A scan of every sh block for a shell comment finds none.

Measured in a simulation clone with push disabled, fences extracted from the committed file. § 3 ran end to end in zsh -f -i under a pty, with NEW_SHA=069fe471f2ef5d23ea4461c0e0abd9f2768b6a31:

step result
the NEW_SHA block SET NEW_SHA=[069fe471f2ef5d23ea4461c0e0abd9f2768b6a31]
step 3 chain OK: openXdox is checked out at NEW_SHA, which is on its main, rc 0
step 4 3ad15b727b78c5b9815a89e2e0713312534657bb44f2db625bbe5bf0c29f3b48, rc 0, the digest #1157 records
§ 4 openXdox@069fe471 derives openDox dc7aa08f…; this repository pins dc7aa08f…, rc 0
step 7 chain both verifiers OK, the openXdox one gitlink read from the index (staged, not yet committed), rc 0
step 7, with openXdox checked back out at 2f3f857d REFUSE openxdox-pin-gitlink-mismatch: …, then REFUSE: staging or a pin verifier failed; stop here, rc 1

Lane: openxfactory-4

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

The runbook needs corrections for pinned-core validation, dependency handling, and migration-range comparison.

Review effort: Lite
Findings: None

…migrations over the bump's range

Copilot's overview at db09c2c (review 5308252991): 🔵 "pinned-core
validation, dependency handling, and migration-range comparison", with no
finding. Each of the three is real:

- Pinned-core validation. The pytest-suite chain accepted any CORE_CHECKOUT.
  The freshness verifier only compares one file's bytes, so a core at
  another commit could pass for the pinned one. A new link refuses unless the
  checkout's HEAD is contracts/review-lane-pin.yaml's core_commit.
  test_the_required_suite_checks_out_the_pinned_core holds that equal to
  pytest-suite.yml's ref. Measured: the pinned core gives OK, rc 0; an
  openDox-code checkout gives REFUSE, rc 1; a directory that is not a git
  checkout gives REFUSE, rc 1.
- Dependency handling. § 3 ran before § 5's setup, but § 4's comparison
  imports PyYAML. Step 2 now sets up the environment first. § 4, and the new
  core check, refuse a missing PyYAML by name instead of raising a traceback.
  Measured with a venv without PyYAML: REFUSE, rc 1, each.
- Migration-range comparison. § 6 listed migration paths at ONE commit. Whether
  a bump crosses a migration is a question about the range, so the check now
  diffs OLD_COMMIT..NEW_COMMIT and prints each migration path the range
  changes, then two counts. It says how to get each leg's pair from the two
  root commits, with braces, because zsh reads "$OLD_ROOT:code" as a :c
  modifier. Measured:
  - openXdox 2f3f857d → 069fe471, code 626f2c8d → e28930bf and spec
    f088b097 → f088b097 each give 0 changed and 0 present;
  - openDox-code 52b237e8 → aca94ecb lists its six added paths;
  - an abbreviated, empty or absent commit gives REFUSE, rc 1.

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

Copy link
Copy Markdown
Contributor Author

Copilot's overview at db09c2c (review 5308252991): answered in bc36cc0

🔵 The runbook needs corrections for pinned-core validation, dependency handling, and migration-range comparison. Findings: None

All three were real.

  • Pinned-core validation. The pytest-suite chain accepted any CORE_CHECKOUT. The freshness verifier compares one file's bytes, so a core at another commit could pass for the pinned one. A new link refuses unless the checkout's HEAD is contracts/review-lane-pin.yaml's core_commit. test_the_required_suite_checks_out_the_pinned_core holds that value equal to pytest-suite.yml's ref:. Measured:

    CORE_CHECKOUT rc output
    the codexFactory core at b21f0100 0 OK: … is the pinned core b21f010013fa51960c77377a8582943435b6db32
    an openDox-code checkout 1 REFUSE: … is not the pinned core b21f0100…: 1e4a57fb…
    a directory that is not a git checkout 1 REFUSE: … is not the pinned core …: fatal: not a git repository …
    unset 1 CORE_CHECKOUT: set CORE_CHECKOUT to your checkout of the pinned codexFactory core
  • Dependency handling. § 3 comes before § 5's setup, but § 4's comparison imports PyYAML. Step 2 now sets up the environment first. § 4, and the new core check, refuse a missing PyYAML by name instead of leaving a ModuleNotFoundError traceback. Measured with a venv that has no PyYAML: REFUSE: PyYAML is not installed; run the setup block in section 5 first, rc 1. With PyYAML, § 4 still prints its one line with rc 0 at 069fe471.

  • Migration-range comparison. § 6 listed migration paths at ONE commit. Whether a bump crosses a migration is a question about the range, so the check now diffs OLD_COMMIT..NEW_COMMIT. It prints each migration path the range adds, changes, deletes or renames, then two counts. It also says how to get each leg's pair from the two root commits. The braces in "${OLD_ROOT}:code" are required: zsh reads "$OLD_ROOT:code" as a :c modifier. Measured:

    repository range changed present at new
    openXdox 2f3f857d → 069fe471 0 0
    openXdox-code 626f2c8d → e28930bf 0 0
    openXdox-spec f088b097 → f088b097 0 0
    openDox-code 52b237e8 → aca94ecb 6 (A, including migrations/0001_… and migrations/0002_…) 6

    An abbreviated, empty or absent commit gives REFUSE, rc 1.

No sh block carries a # comment. The document still has ten fenced blocks and headings 1–8 in order.

Lane: openxfactory-4

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

Only minor documentation nits remain, with no approval-blocking issues identified.

Review effort: Lite
Findings: None

brettheap added a commit that referenced this pull request Sep 24, 2026
…d → 069fe471, with its two consumers (RULED 5815412869 C3) (#1157)

Lane: openxfactory-4

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

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

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

## The pin: runbook § 3, one commit

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

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

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

## The consumers

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

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

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

## Gates

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

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

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

## Copilot

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

## Scope

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

## Not changed here: found while doing it

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


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap marked this pull request as ready for review September 24, 2026 18:32

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

You can request another review in 15 hours and 36 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap

Copy link
Copy Markdown
Contributor Author

READY #1154 @bc36cc09

Lane: openxfactory-4

@brettheap

Copy link
Copy Markdown
Contributor Author

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

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

@brettheap
brettheap merged commit 138a472 into main Sep 24, 2026
16 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

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

LANDED — lane openxfactory-4, 2026-09-24T18:33:39Z, PR #1154 → 138a472 (opensoft/openxFactory main; squash)

brettheap added a commit that referenced this pull request Sep 24, 2026
Brings in the openXdox pin 2f3f857d -> 069fe471 with its gitlink (#1157)
and the openXdox pin resync runbook (#1154). Neither touches the four files
this realization edits; the openXdox leg re-check is measured at the commit
the pin NOW names.

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 24, 2026
A read-only Opus sweep of all seven feature files at 4d3c605 reported
28 MUST and 23 NICE findings. Each MUST was checked against the text,
the packet, or the measured code, and is fixed here. So are the NICEs
that were exact.

Phase 1, the only authorized phase:
- T036: `tests_runtime/conftest.py` fails or skips every runtime case
  without the `runtime` extra. So the `validate` job gets the
  `.[runtime,test]` install as well as the PostgreSQL service. F9.1
  stays unchanged, so the `test` extra gains the runtime packages.
  Changing F9.1's install line instead would go to Brett.
- T043: `tests/test_snapshot.py` fails on the validator lookup, not on
  `doc_health`, and as a protected suite it cannot be edited. T043 now
  comes after C3's PR 2 (openXdox-code#28, landed), and T005 records
  whether its three failures cleared.
- T045 and T094: openxFactory's `test_serve_column_split.py` resolves
  six `LaneRoutes` methods on `DashboardHandler`, and T011 removes them.
  Batch A names it as the second composition test. T047's
  `pytest-suite` run finds any others.
- Slices: a slice's tasks land in `After:` order, one PR each unless
  `Lands with:` joins them. T025 comes after T026 (`workbench.py`).
  T032 is the join of every lane. T045 and T046 co-land with T047.
- The batch-ordering rule is now exact. Batch D carries RN-1's scenario
  text, only if Brett rules (a). T003's ARC_BASE is a commit before the
  first landing, and it covers openXdox-spec too.

Everywhere else:
- The box table, R1Q22's governed tasks (openXdox-code's T061 and
  T086), T077's R1Q16 block, T026's remedy, T044's margin and FR-006's
  pin citation are corrected.
- T061's named test would land in a protected suite, which F5.2
  refuses. That now goes to Brett with R1Q14.
- The quickstart's catalog fetch now sets a git identity and presents
  the console token, and T095 asserts the broker's absence.
- FR-007 keeps the `opendox-runtime` alias. R1Q21 is filed as a process
  question. Lane 4's C3 and C4 are recorded as landed (#1157,
  openXdox-code#28, #1154).

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

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 25, 2026
…d-neutral-product-standalone-operability (#1155)

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

## What this is

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

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

Its authority comes from two comments on #656:

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

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

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

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

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

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

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

## RULING NEEDED

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

## Copilot, rounds 18–24

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

## Validation (head `243e460f`)

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

## Process

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

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


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants