Skip to content

T070: file realize-doc-health-direction-arc, the doc_health direction arc's own change (plan 038) - #1247

Merged
brettheap merged 7 commits into
mainfrom
r2/t070-arc-change
Oct 6, 2026
Merged

brettheap merged 7 commits into
mainfrom
r2/t070-arc-change

Conversation

@brettheap

@brettheap brettheap commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

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

T070: author the doc_health direction arc's own change (plan 038)

This PR files openspec/changes/realize-doc-health-direction-arc/, the OpenSpec change that ARC-Q3 (a) rules (#656 6003918488, "Own change, beside phase 5 (Recommended)"). It is Status: draft until Brett Heap's ratify word (plan 038 T071), and no realization slice starts before that word.

This is the AUTHORING of a governance change, so the PR carries no Arc: line. The change's own value, Arc: realize-doc-health-direction-arc (ARC-4), is for its later realization landings.

What the change says

  • The realization (ARC-Q1 (a)). openXdox-code's eight DOC_HEALTH_SURFACE modules (13 statements at openXdox-code 56e1c238) stop importing openxFactory's doc_health:
    • the generic lines slice, and the generator's one RealGit read (head_sha), are re-authored in openDox-code;
    • the governed names are reached through four seams that openXdox-code declares and openxFactory's host wiring registers, in the pattern of scripts/opendox_host.py:518-533;
    • the 7 test files that import doc_health directly are respelled; none is among 12.5's 16 or F5.2's 7 protected suites.
  • The front matter.
    • code_surface: opensoft/openXdox-code, opensoft/openDox-code and openxFactory (host wiring).
    • target_release: implemented.
    • sequenced_after: [].
  • .openspec.yaml. skip_specs: true. The origin is kind: staged (openxFactory:staging:doc-health-direction-arc), with drafting provenance and no approval pair.
  • The tables the staged topic's exit path requires. "Class by class" for the declared exclusion, and "module by module" for corpus-adapter-seam Requirement 1.
  • Decisions for the ratify read. design.md § 11 puts seven, D1–D7, each with its alternative and the cost of a veto.

Was an openXdox-spec delta needed? No. The four seams are in-process registration points inside openXdox-code, and they cross no file, wire or schema boundary. Release 1's seams of the same kind landed with no spec-leg text:

  • openDox-spec promotes no capability;
  • openXdox-spec's one capability governs rendering, and its last commit (f088b097, 2026-09-17) predates every one of those seams.

design.md § 5 states this, and the condition under which T074 would stop and the change would gain a delta.

Files (6 files, +1043)

file lines
openspec/changes/realize-doc-health-direction-arc/proposal.md 196
openspec/changes/realize-doc-health-direction-arc/design.md 450
openspec/changes/realize-doc-health-direction-arc/tasks.md 297
openspec/changes/realize-doc-health-direction-arc/.openspec.yaml 73
README.md (one Active changes bullet, at the head of the list) +26
tests/sequenced_after/corpus-ledger.yaml (this change's row, moved_by: "#1247") +1

Gates at 2a79d329

The pinned gate. python3 scripts/validate-openspec-cli-pin.py --all --strict, run from the openxFactory root, exits 0:

change/realize-doc-health-direction-arc
  ℹ [INFO] file: skip_specs is set in .openspec.yaml: change declares no spec-level behavior changes, zero deltas accepted
...
Totals: 112 passed, 1 failed (113 items)
openspec-cli-pin: DISPOSITIONED FINDINGS in openxFactory (1 applied) — this run is NOT a clean tree:
  ✗→D add-chain-attestation / signed-execution-chain/spec.md
OK openspec-cli-pin: @fission-ai/[email protected] verified against its content address; every target validated --strict with 0 UNDISPOSITIONED failures. THIS IS NOT A CLEAN TREE: 1 finding(s) are ACCEPTED EXCEPTIONS, named above.

On main (92010d3e) the gate gave Totals: 111 passed, 1 failed (112 items), with the same single dispositioned finding. This change adds one passing item.

The other validators, all exit 0:

command result
validate-sequenced-after.py . --ledger-diff "per-change sweep ledger consistent with the corpus (231 rows)"
validate-sequenced-after.py . passed
validate-code-surface.py . passed, membership arm included
validate-target-release.py . passed
proposal-support.py . verify realize-doc-health-direction-arc "proposal support verification ok"

doc-health. scripts/doc-health.py --single-repo . was run on this head and on main, in the same clone with the gitlinks initialized. The two reports are byte-identical: 31 critical, 26 error, 69 warning, 20 info.

pytest.

  • CI's pytest-suite: selected=9833 passed=9827 skipped=6 failures=0 errors=0, floors met, freshness verifier passed.
  • A local whole-suite run as pytest-suite runs it: 1 failed, 9206 passed, 7 skipped.

The one local failure is tests/hermes_runtime_contracts/test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository, and it is environmental and pre-existing:

  • On main in the same clone it fails identically, 3 of 3 runs, with subprocess.TimeoutExpired.
  • The validator returns the expected rc=2, but takes 36.2s on this head and 34.7s on main in this container, past the test's timeout=30.
  • CI runs the test green.

CI: 15 of 15 check runs succeed at 2a79d329.

Copilot

There were seven rounds, one at each head. Every inline finding was fixed, answered and resolved: 5 threads, 0 unresolved.

  • The missing ledger row.
  • 4.4 as a realization landing.
  • 7.2's evidence revisions.
  • The opendox @ pin naming the openDox-code commit (two threads).

Body-only "previously missed" items were also fixed in the rounds they appeared:

At 2a79d329 (review 5427373153): Needs a closer look, Findings: None. Four "previously missed" items stand in the body, with no thread. Under the convergence rule (#656 5988818366) they are left to the holder, each with a proposed class:

  1. T072's falsifier: assert that only CR, LF and CRLF split rows, not only the round trip. Proposed: falsifier strengthening, folded before T071.
  2. 3.1's falsifier: the empty-seam refusal must also name its registrar (D3 says it does). Proposed: as 1.
  3. 4.1's test: refuse a leg declaring only some of the four new seams (D7). Proposed: as 1.
  4. 4.3's openXdox-code oracle freezes 12.5's 16 names. 12.5 itself computes the set with git grep -l -e 'open-pr' -e 'open_pr' -e 'FakePullRequests' -- 'tests/test_*.py' and a floor of 16. Proposed: a guard gap with a simple payload (reuse 12.5's selector and floor), fixed before T071.

What is NOT done

  • No code anywhere, no realization slice, no pin move. Those are T072, T074 and T075, after T071.
  • The staged topic ideation/staging/doc-health-direction-arc/ stays staged. T077 exits it (D6).
  • Plan 038 is not amended. design.md § 10 records, for the holder, six openXdox-code files the realization must also edit that plan 038's T074 Files line does not name. Among them, at 56e1c238 the help-tree --deselect lives in .github/workflows/validate.yml:161-164, and composed.yml does not exist yet.
  • The PR stays a DRAFT until the holder says Feature 038: the Speckit specification for release 2 of add-neutral-product-standalone-operability (#1144) #1245 has landed. It lands under the holder's Rule 6 window.

🤖 Generated with Claude Code

… arc's own change (plan 038)

Authors the OpenSpec change ARC-Q3 (a) rules (#656 6003918488): proposal,
design, tasks and .openspec.yaml (skip_specs: true; origin kind: staged),
and its README Active changes bullet. Status: draft until Brett Heap's
ratify word (plan 038 T071). code_surface: opensoft/openXdox-code,
opensoft/openDox-code and openxFactory (host wiring); target_release:
implemented (ARC-1, #656 6013547504). No openXdox-spec delta: the seams
need no contract text (design.md section 5). Authors no code byte.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 6, 2026 10:06
@sourcery-ai

sourcery-ai Bot commented Oct 6, 2026

Copy link
Copy Markdown

Reviewer's Guide

This PR files a draft, implementation-oriented OpenSpec change for removing openXdox-code’s direct doc_health dependency: generic functionality will be re-authored in openDox-code, governed functionality exposed through four host-registered seams, tests and integration guards updated, and realization verified through pins, trailers, protected-suite checks, F9.2 evidence, and eventual staged-topic archival.

Sequence diagram for host seam registration and governed use

sequenceDiagram
    participant Host as openxFactory host
    participant XD as openXdox-code
    participant Mod as openXdox module
    participant Gov as openxFactory governed implementation

    Host->>XD: register S1-S4
    XD-->>Host: accept registrations
    Mod->>XD: read governed seam at use
    XD->>Gov: invoke registered implementation
    Gov-->>XD: return governed value
    XD-->>Mod: return value
    Host->>XD: column_contributions.register()
    XD-->>Host: governed columns registered
Loading

Flow diagram for realization gates and landing order

flowchart TD
    A[Draft OpenSpec change filed] --> B[Brett Heap ratifies D1-D7]
    B --> C[openDox-code re-authors generic slice]
    C --> D[openXdox-code declares seams and retargets 8 modules]
    D --> E[openxFactory registers seams and advances pins]
    E --> F[Run F9.2 and protected-suite checks]
    F --> G[Collect green evidence]
    G --> H[Move staged topic and archive by merge commit]
Loading

File-Level Changes

Change Details Files
Adds a draft OpenSpec architecture change that defines how the doc_health dependency-direction arc will be realized across three repositories.
  • Records rulings, provenance, lifecycle state, release target, related work, and skip_specs: true metadata.
  • Documents measured dependency surfaces, four proposed seams, registration and fail-closed rules, test respelling, pin ordering, F9.2 handling, and archive gates.
  • Presents seven ratification decisions with alternatives and veto costs.
openspec/changes/realize-doc-health-direction-arc/.openspec.yaml
openspec/changes/realize-doc-health-direction-arc/design.md
openspec/changes/realize-doc-health-direction-arc/proposal.md
openspec/changes/realize-doc-health-direction-arc/tasks.md
Publishes the new change in the repository's active-change index with its intended realization scope and governance constraints.
  • Adds the draft change to the README active changes list.
  • Summarizes the eight-module retarget, generic code re-authoring, host wiring, test updates, evidence requirements, and staged-origin lifecycle.
  • States that realization is gated on ratification and does not gate release or related change closure.
README.md

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 required ledger row is missing, and group 4.4 is omitted from the realization-trailer scope.

Review effort: Balanced
Findings: 1 High severity · 1 Medium severity

Open (2)
What changed in this PR

Adds the draft governance packet for realizing the doc_health dependency-direction arc across openDox, openXdox, and openxFactory.

Changes:

  • Defines the architecture, seams, sequencing, and validation gates.
  • Records implementation and archive tasks.
  • Adds the change to the active-change index.
File Description
README.md Indexes the draft change.
.openspec.yaml Declares staged origin and no spec delta.
proposal.md Defines scope and intended outcomes.
design.md Documents architecture and decisions.
tasks.md Specifies realization and validation steps.

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

…ilot)

Seeds realize-doc-health-direction-arc's row in
tests/sequenced_after/corpus-ledger.yaml (moved_by #1247). Task 4.4, the
openXdox-code PR that advances the composed pin and removes 3.7's interim
registration, is a realization landing: it now carries the arc's trailer
and joins the trailer census (tasks.md, design.md section 8). Group 3's
falsifier asserts git grep's no-match exit instead of masking an error.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 6, 2026 10: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.

Copilot review overview

🔵 Needs a closer look

The task plan incorrectly combines cross-repository changes into one PR and leaves the trailer census incomplete.

Review effort: Balanced
Findings: None

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

In code that hasn't changed since last review

Medium severity Split cross-repository pin changes into executable PRs

openspec/​changes/​realize-doc-health-direction-arc/​tasks.md:128

A pull request cannot span the openXdox and openxFactory repositories. As written, “SAME PR” groups both repositories' pin changes and contradicts design §9 steps 5–6, which makes the openXdox-root update an earlier landing and groups only openxFactory's pins with the host registration. Split the repository PRs explicitly so this task is executable.

This issue also appears on line 242 of the same file.

…pilot)

A pull request cannot span opensoft/openXdox and openxFactory. Task 4.2
now lands the openXdox root's pins in their own PR first, then ONE
openxFactory PR carries the host registration with openxFactory's pin
pairs (design.md section 9, steps 5 and 6). The trailer census (6.1) now
expects the openXdox root's landing, and the openDox root's and the
opendox @ pin commit's where 2.2 brings the arc's own pins.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 6, 2026 10:33

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 trailer rules and landing census conflict for the conditional T061 pin path.

Review effort: Balanced
Findings: None

Previously missed (1)

In code that hasn't changed since last review

Low severity Exclude ride-on commits from the arc trailer requirement

openspec/​changes/​realize-doc-health-direction-arc/​tasks.md:10

“Groups 2” also includes 2.2’s ride-on path through plan 038 T062/T063. Those are plan 038/#1144 realization landings with Arc: neutral-product-standalone-operability; this packet’s design §8 assigns the new trailer only to the arc’s own root/pin commits. Narrow the rule so the ride-on commits are not given conflicting trailer requirements.

This issue also appears on line 249 of the same file.

… pin-step fixes

A 2.2 that rides plan 038's T062 and T063 rides #1144's realization
landings, which keep #1144's trailer so #1144's own guards still find
them; only the arc's own pin commits carry this change's trailer. The
census expects 2.1's openDox-code landing whichever pin it rides. The
openXdox root's opendox-pin.yaml moves only when 2.2 brings the arc's own
root commit. design.md section 10 counts six of seven files outside plan
038's T074 Files line.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 6, 2026 10:40

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

Lifecycle bookkeeping, repository-specific evidence revisions, and rollback after reordered host registration need correction.

Review effort: Balanced
Findings: None

Previously missed (3)

In code that hasn't changed since last review

Medium severity Rollback governed seams when column registration fails

openspec/​changes/​realize-doc-health-direction-arc/​tasks.md:128

Filling the new governed seams before column_contributions.register() introduces a later failure point after those seams have been written. The current host intentionally calls column registration first so its refusal leaves no host seam behind (scripts/opendox_host.py:920-929,949-957); without an explicit cross-call rollback, a false return or exception from the reordered column call leaves a partially hosted process. Require and test taking back the four governed seams when that subsequent call fails.

Low severity Update README status and cite ratification

openspec/​changes/​realize-doc-health-direction-arc/​tasks.md:42

The README entry filed by 1.1 explicitly says Status: draft and that T071 is still pending, but this ratification task never updates it. Completing 1.2 would therefore leave the active-change index contradicting the packet's ratified headers; the established ratification record also treats the README status as part of the same act (openspec/changes/add-neutral-product-standalone-operability/review/ratification-2026-09-24.md:96-103). Update the README entry and cite the ratification here.

This issue also appears on line 278 of the same file.

Low severity Record repository-specific revisions for each run

openspec/​changes/​realize-doc-health-direction-arc/​tasks.md:271

ARC_TIP is defined by the openxFactory surfaces command, but the three required runs belong to different repositories and therefore cannot share one commit SHA. As written, the archive evidence cannot identify which openXdox-code and openDox-code revisions were tested. Require each run at that repository's own final realization landing.

…(Copilot)

Filling the four governed seams before the host's column call reverses
today's order in register_openxfactory() (opendox_host.py:920-957), which
makes that call before register_seams() so its refusal leaves no host
seam written. Task 4.1 and design.md section 4.3 now require a cross-call
take-back and a host-wiring test of it. Task 1.2 moves the README bullet
to Status: ratified, 7.4 moves it to Archived changes, and 7.2 cites each
repository's run at its own last realization landing.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 6, 2026 10:48

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 archive evidence incorrectly associates an openDox-code validation job with a commit from the separate openDox root repository.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)

Task 7.2 no longer asks for an openDox-code run at the openDox root's pin
commit, which lives in another repository; the root's own make pins
result is recorded separately where 2.2 brought the arc's own root commit.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 6, 2026 10:52

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 pin instructions incorrectly use an assembly-root commit for an openDox-code direct dependency.

Review effort: Balanced
Findings: 2 High severity

Open (2)
Resolved since last review (1)

… (Copilot)

openXdox-code's direct reference is
opendox @ git+https://github.com/opensoft/openDox-code@<sha>, so it takes
2.1's code-leg commit, the one the openDox root's code-pin.yaml records,
and never the root's own commit (tasks.md 2.2, design.md section 9).

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 6, 2026 10:57

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

Several acceptance checks are incomplete or use a stale protected-suite list, allowing planned behavior to remain unverified.

Review effort: Balanced
Findings: None

Resolved since last review (2)
Previously missed (4)

In code that hasn't changed since last review

Medium severity Add explicit CR, LF, and CRLF boundary assertions

openspec/​changes/​realize-doc-health-direction-arc/​tasks.md:56

The round-trip assertion does not prove the stated real-line rule: str.splitlines(keepends=True) followed by "".join(...) also round-trips form feed and U+2028 while incorrectly treating them as row boundaries. Require explicit boundary assertions showing that only CR, LF, and CRLF split rows.

Medium severity Require empty-seam refusal to name its registrar

openspec/​changes/​realize-doc-health-direction-arc/​tasks.md:79

D3 requires the empty-seam refusal to name both the seam and what registers it, but this falsifier checks only the seam name. An implementation can therefore omit the actionable registrar detail while all required tests pass.

Medium severity Test refusal of partially declared new seam groups

openspec/​changes/​realize-doc-health-direction-arc/​tasks.md:136

D7 adds a distinct all-or-none group, but the listed refusal cases exercise rollback after registration starts and after the column call; they do not exercise a pinned leg that declares only some of the four new seams. Add that case so the implementation cannot accidentally fold the new group into the existing six-seam group or accept a partial new leg.

Medium severity Compute protected filenames dynamically instead of freezing the set

openspec/​changes/​realize-doc-health-direction-arc/​tasks.md:224

This freezes 12.5's protected set at today's 16 filenames, although the governing 12.5 falsifier explicitly computes the set from open-pr/open_pr/FakePullRequests at run time (openspec/changes/add-neutral-product-standalone-operability/tasks.md:2681-2708). A governed suite added or renamed before T074 would be absent from this oracle and could be edited by the arc undetected; reuse 12.5's selector and retain its floor check.

@sonarqubecloud

sonarqubecloud Bot commented Oct 6, 2026

Copy link
Copy Markdown

@brettheap
brettheap marked this pull request as ready for review October 6, 2026 14:35
@brettheap

Copy link
Copy Markdown
Contributor Author

READY at 2a79d32

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

Holder, at READY (T070, plan 038): file realize-doc-health-direction-arc under a Rule 6 window.

  • After set met: T004 (Feature 038: the Speckit specification for release 2 of add-neutral-product-standalone-operability (#1144) #1245) landed as 260234b5. Batch Q (T005: batch Q, the release-2 answers' amendments in #1144 (plan 038) #1248) landed as 91e961a0.
  • Gates at the head:
    • all 13 checks pass;
    • the pinned gate exits 0, adding one passing item;
    • doc-health matches main;
    • Copilot's review 5427373153 reads "Needs a closer look", with no inline findings;
    • all 5 threads are resolved;
    • no closing keywords;
    • this is the change's filing, not a realization landing, so no Arc: line (ARC-4 applies to the realization PRs).
  • Copilot's four items in the review body have no thread. Each is folded into ONE amendment PR to this change BEFORE T071 puts the change to Brett, so his ratify word covers the final text. They are:
    1. T072's falsifier asserts that only CR, LF and CRLF split rows.
    2. 3.1's falsifier requires the empty-seam refusal to name its registrar.
    3. 4.1 tests a leg that declares only some of the four seams.
    4. 4.3 computes 12.5's protected set as 12.5 does, with git grep and the floor of 16, instead of freezing the list. This one is a real guard gap.
  • Plan 038's T074 Files line gains the six openXdox-code files this change's design.md § 10 measures. T002's bookkeeping PR adds them.
  • The hermes test timeout seen locally is pre-existing and environmental: it fails the same way on main in the same clone, and CI's pytest-suite is green.

@sourcery-ai

sourcery-ai Bot commented Oct 6, 2026

Copy link
Copy Markdown

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

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

@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-10-06T14:38:27Z, PR #1247 into opensoft/openxFactory main

@brettheap
brettheap merged commit 5145683 into main Oct 6, 2026
17 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

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

LANDED — lane openxfactory-4, 2026-10-06T14:38:45Z, PR #1247 → 5145683 (opensoft/openxFactory main; squash)

brettheap added a commit that referenced this pull request Oct 6, 2026
…c before the ratify word (plan 038) (#1253)

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

## T070b: fold Copilot's four items into `realize-doc-health-direction-arc` before the ratify word (plan 038)

#1247 filed `openspec/changes/realize-doc-health-direction-arc/` (now on `main` at `51456835`). Copilot's review `5427373153` at its head `2a79d329` listed four "previously missed" items with no thread. The holder ruled that all four are folded in BEFORE T071 puts the change to Brett Heap, so that his ratify word covers the final text. This PR makes exactly those four amendments, to the change's own `Status: draft` text, and nothing else.

This is the change's own pre-ratification text, not a realization landing, so the PR carries no `Arc:` line.

- **Realizes:** none. It amends governance text and no code byte.
- **Ruled / Decisions:** the holder's fold-before-T071 ruling (#1247's READY note). No new ruling is asked of Brett Heap: D1 to D7 are unchanged, and each amendment makes a falsifier carry what `design.md` already states.

## The four items, as Copilot words them, and the amendment

| # | Copilot's item | Amendment |
|---|---|---|
| 1 | `tasks.md:56`: "Add explicit CR, LF, and CRLF boundary assertions". The round trip alone also passes for `str.splitlines(keepends=True)`, which round-trips form feed and U+2028 while splitting on them. | `tasks.md` 2.1's falsifier gains explicit boundary assertions that ONLY CR, LF and CRLF split rows (`"a\rb"`, `"a\nb"`, `"a\r\nb"` give two rows, CRLF as ONE ending; form feed, U+2028 and the other `str.splitlines()` separators leave ONE row). `design.md` § 3 ("Its falsifier is behavioural") states the same. |
| 2 | `tasks.md:79`: "Require empty-seam refusal to name its registrar". D3 requires the seam AND what registers it. | `tasks.md` 3.1's falsifier: the empty-seam error names the seam AND what registers it (D3; `design.md` § 4.2), and each seam's test asserts the message carries both, so an error naming only the seam fails. |
| 3 | `tasks.md:136`: "Test refusal of partially declared new seam groups". D7's all-or-none group has no test for a leg declaring only some of the four. | `tasks.md` 4.1's host-wiring test shows THREE refusals, each leaving no governed seam written: a leg declaring only SOME of the four (D7), a refusal part-way through the seams, a refusal at the column call. |
| 4 | `tasks.md:224`: "Compute protected filenames dynamically instead of freezing the set". 12.5 computes its set with `git grep`; a typed list of 16 misses a governed suite added or renamed before T074. A real guard gap. | `tasks.md` 4.3's oracle replaces the typed 16 names with 12.5's own selector, `git grep -l -e 'open-pr' -e 'open_pr' -e 'FakePullRequests' -- 'tests/test_*.py'`, and 12.5's floor, `-ge 16`. Round 2 (Copilot's review `5432328728`, below): the set is computed from the tree BEFORE the arc's first landing in that repository AND from the final tree, the floor holds on each, and the oracle takes their UNION, so a landing cannot strip a suite's markers and drop it out of its own protection. `design.md` § 8 states the same. |

Two readings, both ruled by the holder (item 2's reading stands as inferred):
- **Item 2.** "What registers it" is read as the seam's registration call, the one 3.1 already requires each seam to declare (`design.md` § 4.1). That reading is inferred; `design.md` § 4.2 says only "the seam and what registers it".
- **Item 3.** Beside the some-of-four refusal, 4.1 also says a leg declaring openDox's six and NONE of the four is accepted. `design.md` § 4.3 and D7 already state it ("a leg, not a gap"), and without it the test could not catch Copilot's other stated risk, the four folded into the six's group. The holder ruled it KEPT.

## Files changed (2, +48 -15 against `main` at `e6380965`)

| file | change |
|---|---|
| `openspec/changes/realize-doc-health-direction-arc/tasks.md` | 2.1, 3.1, 4.1 and 4.3 (items 1 to 4) |
| `openspec/changes/realize-doc-health-direction-arc/design.md` | § 3 (item 1) and § 8 (item 4), to keep it consistent with `tasks.md` |

`proposal.md`, `.openspec.yaml`, the README bullet and the ledger row are untouched: the ledger row carries no digest, so editing the change's text moves no row.

## Falsifier

All at head `e4f3f1db`, which is `main` (`e6380965`) merged into the branch. The pinned gate, from the openxFactory root, exits 0:

```
$ python3 scripts/validate-openspec-cli-pin.py --all --strict
change/realize-doc-health-direction-arc
  ℹ [INFO] file: skip_specs is set in .openspec.yaml: change declares no spec-level behavior changes, zero deltas accepted
...
Totals: 113 passed, 1 failed (114 items)
OK openspec-cli-pin: @fission-ai/[email protected] verified against its content address; every target validated --strict with 0 UNDISPOSITIONED failures. THIS IS NOT A CLEAN TREE: 1 finding(s) are ACCEPTED EXCEPTIONS, named above.
```

The one dispositioned finding is `add-chain-attestation / signed-execution-chain/spec.md`, the same as on `main`. `main` itself reports one more passing item than at #1247's head, because `prefer-triad-project-shape` landed (#1249); this PR adds none.

The other validators, all exit 0:

| command | result |
|---|---|
| `validate-sequenced-after.py . --ledger-diff` | "per-change sweep ledger consistent with the corpus (232 rows)" |
| `validate-sequenced-after.py .` | passed, archive-date checks included |
| `validate-code-surface.py .` | passed |
| `validate-target-release.py .` | passed |
| `proposal-support.py . verify realize-doc-health-direction-arc` | "proposal support verification ok" |

**doc-health.** `scripts/doc-health.py --single-repo .` on `main` (`e6380965`) and on this head, in the same clone: `31 critical, 22 error, 69 warning, 20 info` on both, and the sorted finding lists are identical (empty diff). No new finding.

**Local pytest** (a subset that reads the change corpus: `tests/sequenced_after`, `code_surface`, `target_release`, `proposal-support`, `scope_globs`, `packet_reference`): `866 passed, 307 subtests passed`. CI's `pytest-suite` runs the whole suite.

**Item 4's block, run and mutated.** The openXdox-code block of 4.3 was extracted from `tasks.md` itself and run in a separate clone of openXdox-code at `56e1c238`, on synthetic arc landings (local, never pushed). `scripts/protected_suites.py` is the real oracle there.
- The computed set at `56e1c238` is 16 files, IDENTICAL to the 16 names the typed list carried (`diff` empty), so the swap changes nothing today.
- A benign landing carrying the trailer: rc 0, "0 protected edit(s)".
- **Round 1's selector (final tree only) is bypassable.** A governed suite was added before the arc (count 17), then one landing strips every marker from `tests/test_session_verbs.py` (count back to 16, floor met): rc 0, the strip is undetected. This is Copilot's finding, reproduced.
- **The amended block (union) kills it.** The same history: rc 1, `FAIL: the arc edited protected suites outside the reviewed allow-list: tests/test_session_verbs.py`.
- Floor mutant, a governed proof removed BEFORE the arc (pre-arc set 15): rc 1 at `test ... -ge 16`. Killed.
- A new suite that injects `FakePullRequests` joins the computed set, and the typed list does not carry it. The gap round 0 named, closed.

## Copilot

- Review `5427373153` at #1247's head named the four items.
- This PR's first head, `02e3d706`: review `5432328728`, *Changes recommended*, 2 findings, both on item 4 and both the same point: the selector read only the final tree, so a landing could remove its own protection. **Fix-now**: reproduced above (a simple payload: strip the markers), and it is a regression against the typed list, which was immune. Fixed in `15137889` (the union). Both threads are answered and resolved.

## What is NOT done

- No code anywhere, no realization slice, no pin move. Those are T072, T074 and T075, after T071.
- Plan 038's `tasks.md` is not amended. Its T072, T074 and T075 `Falsifier` lines are terse ("the module's own tests") and name none of these four; the change's `tasks.md` is where they are stated. Whether to mirror them there is the holder's act.
- The change stays `Status: draft`. Brett Heap's ratify word is T071.
- The PR stays a DRAFT. The holder lands it under a Rule 6 window (it touches `openspec/changes/`).

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


Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Oct 6, 2026
…n 038) (#1251)

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

**T002, plan 038: release 2's base (`evidence/r2-base.md`), and plan 038's `tasks.md` bookkeeping, items 1 to 15.** Bookkeeping and evidence, so this PR carries no `Arc:` line. It touches no `openspec/changes/` path, so no Rule 6 window applies.

## From plan 038's `tasks.md`, T002

- **Task**: T002, "Release-2 base, and the re-measure at the ruling". Record in `evidence/r2-base.md` every repository's `main` (research.md's R0 command), the box census, and `PACKET_MERGE=94b6f7f1` for F11.1, with lane 3's composed re-run quoted against R2-INV-P4F's 174. **README**: links `evidence/r2-base.md`. **After**: T004. **Lane**: 4 (lane 3 for the composed run).
- **Realizes**: none (bookkeeping; FR-025). **Falsifier**: T002 names none. Its gates are the brief's, and are quoted under "Gates" below.
- **Ruled / Decisions**: T002 carries none. Part 2 encodes rulings already posted on `#656`, each cited by comment id, and takes no decision of its own.

## Part 1: `evidence/r2-base.md` (new), linked from the README's feature-038 entry

Each figure is a command quoted with its output, or lane 3's measurement quoted and attributed.

- **Every repository's `main`** (the R0 command, run 2026-10-06T16:09:44Z to 16:10:31Z, and again at 16:26:12Z): `openDox-code 34c20641`, `openXdox-code 56e1c238` (then `c6d15b27`, T020's #39, committed 16:10:44Z), `openDox d77f8cbf`, `openXdox 9564d5d9`, `openDox-spec 7db9438b`, `openXdox-spec f088b097`, `openxFactory 5145683`, `xFactory 1047586d`, `codexFactory 563212a1`. The file gives each full SHA with its commit date and subject, against the R0 values of plan time, and what moved.
- **The box census**: plan 034's `box_census.py` over #1144's `tasks.md` at `51456835` reads `total 125 Counter({'x': 74, ' ': 42, '~': 9})`. At `ce64afc9` it reads the same, and `diff` of the two full outputs is empty: delta 0. Batch Q (#1248) landed between them, adding 526 lines and removing none.
- **`PACKET_MERGE=94b6f7f1`** (`94b6f7f13b45c351b9142345738965c974b7dd37`), on `origin/main`'s first-parent line; 83 first-parent commits since, 3 with the `Arc:` trailer (release 1's consumer pins).
- **Lane openXfactory-3's composed re-run**, quoted from `lane3-to-lane4.log` (09:52:07Z and 09:52:31Z), claimed on `#656` `6013610393`: "174 red vs 174 (170 failed + 4 errors, 668 passed ...)"; "moved: none"; "5 suites / 210 cases"; openDox installed from openDox-code `main` `a9ac96f9` while openXdox-code's `pyproject.toml:126` and openxFactory's nested `openDox/code` pin `dede32b4` (v0.1.0); openxFactory `main` `0f2a87f6` to `92010d3e`. I verified one thing there: of the 48 files that differ, the two under `scripts/` are `scripts/ideation_dashboard/nightly_lane.py` and `scripts/validate-factory-mcp.py`. Nothing was re-run.

## Part 2: plan 038's bookkeeping

Every item is a holder ruling or a Brett ruling already posted on `#656`, encoded as worded. The files are `tasks.md`, `plan.md`, `data-model.md`, `contracts/health-finding.md`, `contracts/cli-http-health.md` and `checklists/requirements.md`.

| # | Task | What changed | Record |
|---|---|---|---|
| 1 | T022 | Files gain new `tests/test_composed_placements.py` (openXdox-code#41) | holder `6016356225` |
| 2 | T023 | Files gain new `tests/test_swb_session_transport.py` (the bound and unbound probes in one committed file; #42) | holder `6016676145` |
| 3 | T026 | Files gain `tests/test_protected_suite_check.py`, and T020's `tests/conftest.py` and `tests/test_host_plane.py` after T020 lands; 'cluster' respells to "group neighbourhood"; the single-writer table's chain | holder `6016356225`, Brett `6016648451` |
| 4 | T029 | Files gain the two floor lines `MIN_SELECTED` and `MIN_PASSED` of openXdox-code's `validate.yml`, raised ONCE at its final head after merging `main`; no other PR raises them; a new single-writer row | holder `6017860539` |
| 5 | R-1 (a), widened | SIX spans of `tests/test_staging_workbench.py` (`_CREATE_HARNESS`, `_SESSION_HARNESS`, `_run_create`, `_run_session`, `_hostile_descriptors`, `_HOSTILE_HARNESS`), served display, in T026, plan.md § R-1 and the ruled-answers row | Brett `6016648451` |
| 6 | F12.1 | `--chains`, carried out by T026 and T029; the amendments table gains the row | Brett `6016648451` |
| 7 | T073 | After gains T095+; new T094 (lane 3, read-only, claimed `6017801219`) and T095+; T073's PR stays a DRAFT until they land; the lane table, the critical path, the slice tables and the dependency list follow | holder `6016982816` |
| 8 | T073 `open_until` | `doc_health` keeps its words plus lane 3's clause; `status-exemption-rail` and `openxfactory-contracts` read the ruled sentence, quoted | holder `6016982816` |
| 9 | T076 / F9.2 | the WRITTEN DISPOSITION naming `realize-doc-health-direction-arc` as F9.2's carrier, in T076, T084, the box-accounting row and plan.md's ARC-5 | holder, ARC-5 (a) `6013547504` |
| 10 | T003 | ticked, CLOSED ON THE RE-CHECK | holder `6017901451` |
| 11 | T074 | Files gain the six openXdox-code files of the arc change's `design.md` § 10; the single-writer table: `validate.yml` T029 (floors) then T074 (`LEFT_OUT`) | holder, from #1247's `design.md` § 10 |
| 12 | `identity` | stored (a `health_findings` column, canonical sorted-key JSON, capped) and emitted, bounded as T040's schema bounds it: `contracts/health-finding.md`, `data-model.md` § Finding, `contracts/cli-http-health.md`, plan.md, T041, T042 and T046; the cross-run collision stays an accepted limit, detectable now, whether the engine reports it being T046's | holder `6018624750` |
| 13 | ticks | T005 #1248 `91e961a0`; T008 codeXfactory/codeXfactory#515 `f1b019fe`; T010 openDox-code#89 `34c20641`; T040 openDox-spec#17 `7db9438b`; T070 #1247 `51456835`; and, on the coordinator's later word, T020 openXdox-code#39 `c6d15b27` and T024 openXdox-code#38 `8b64fae0`. Each was verified with `gh pr view <n> -R <repo> --json mergeCommit` | landed 2026-10-06 |
| 14 | T073 | Files gain new `tests/test_declared_rail_registration.py` (the conftest rail block's 5 lone cases with stand-in rails) | holder `6020698021`, answering `6020683941` |
| 15 | T026 | the H-2 in-test respellings move from 17 to 20: `test_gate_off_descriptor_is_the_real_cli_invocation`, `test_gate_off_session_affordances_are_the_real_cli_invocations` and `test_the_notebook_refresh_is_a_descriptor_in_BOTH_gate_postures`, admitted under CF-4; plan.md's CF-4 row notes it | holder `6020859092` |

T002 itself is ticked.

**Items skipped because already present: none.** Each was searched for at `origin/main` (`git show origin/main:<file> | grep -c`), and none was in place.

**Where an item could not be encoded exactly as worded, or needed a reading:**
- **Item 9**: no task of § "Close" archives #1144 (the archive act stays the holder's, ARC-5 (a)). The coordinator accepted placing the disposition in T084, the last task to edit #1144's `tasks.md`, and in T076 and the F9.2 accounting row.
- **Item 3, the chain**: the rulings order T020 before T026, and T020 before T021, but not T021 against T026. The table says "T021 and T026, in landing order", as the coordinator confirmed.
- **Item 12's grep**: the brief's `\|` is a markdown-table escape, so I ran it with plain `|`. Four hits remain, each the note that reverses the old wording ("reversing the engine-internal refinement"). The ruling gives no cap value, so none is written: the engine caps it, and the cap is T041's.
- The commit trailer names the model that wrote it, `Claude Sonnet 5.5`, as the session's attribution rule requires, where the writer rules spell `Claude Opus 5.5 (1M context)`.

## The holder's answers on this PR's four open questions

1. **`tests/test_declared_exclusion.py`** is NOT in T073's Files: T073 measured its lone CI green while touching only its own four files. It IS in T074's Files (item 11).
2. **FR-011 and an `identity` response-shape falsifier** are DEFERRED to the holder's next bookkeeping batch, with T094's T095 to T104 entries. This PR keeps to its list, so `spec.md` is as `origin/main` has it. (Copilot asked; the edit was made at `76b9428b` and taken back at `7ddfda5e`.)
3. **The `identity` cap is T041's**: the contract module owns the field bounds, and T042 stores what T041 bounds. T041's and T042's entries, `data-model.md` § Finding and `contracts/health-finding.md` say so (`80c6fee7`). No value is written.
4. **T003**: the constitution's analyze gate was met by round 1 (`evidence/analyze-round-1.md`) and its re-check (`6013547504`). T003 was a discretionary second round, so the closure (`6017901451`) stands.

## Review and gates

| Copilot at | verdict | findings | answered |
|---|---|---|---|
| `8b0a535d` | Changes recommended | 5: FR-011 and the identity's response shape; an exact aggregate cap; the T003/T004 states; the F9.2 disposition against ARC-5; the task count | the T003/T004 states, ARC-5 and the count were fix-now, fixed in `76b9428b`. The cap is an accepted limit (no value is written, by the holder's word); FR-011 is the holder's (open question 2) |
| `da00b298` | Changes recommended | 3 new: FR-011 against the bookkeeping scope; T003 without a fresh analyze; T020's tick against the old body | FR-011 taken back in `7ddfda5e`; T003 is the holder's (open question 4); the body is corrected (item 13) |
| `7ddfda5e` | Needs a closer look | 0 new threads; the 2 it listed as "previously missed" are those two | answered, see the threads |
| `80c6fee7` | Needs a closer look | 2 body-level findings: `identity` should be NOT NULL in the store's model; `r2-base.md` called its figures an input to T004's ruling, but T002 follows T004 | both fix-now, fixed in `fb57b851` |
| `f0f6923d` (final) | Changes recommended | 1: the "stored identity makes a collision detectable" sentence overstates it for an exception-only finding, which is never stored | accepted limit (#656 `5988818366`): the sentence is the holder's own wording (`6018624750`), and what T046 can detect from stored rows is T046's. Answered and resolved; no push |

9 threads, 0 unresolved. Every reply cites its commit or ruling.

- **`python3 scripts/validate-openspec-cli-pin.py --all`**, in the clone named `openxFactory`, at `f0f6923d`: exit 0, `Totals: 113 passed, 1 failed (114 items)`, `0 UNDISPOSITIONED failures`. The one failure is the dispositioned `add-chain-attestation` finding, the same on `main`.
- **openxFactory pytest**, locally at `8b0a535d` (CI venv, `-m "not postgres"`, TMPDIR under `~/.local/state`): `1 failed, 9206 passed, 7 skipped, 338 deselected, 9 warnings, 598 subtests passed in 2589.39s`. The one failure is `tests/hermes_runtime_contracts/test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization]`, a 30s `TimeoutExpired`. It fails the same way on `origin/main` in the same clone (`1 failed, 1 passed in 54.40s`), and the CI job passes it, so it is pre-existing and environmental. My later commits change documents only.
- **Doc-health**, `scripts/doc-health.py --single-repo .`, branch `f0f6923d` against `origin/main` `c44c1610` in the same clone: the two reports are byte-identical (sha256 `3b2e1f59db747178…`; `Findings: 31 critical, 26 error, 69 warning, 20 info. New regressions vs previous report: 0.`). So no new error.
- **CI at `f0f6923d`**: all 15 check runs completed at the head: `pytest-suite` success (19:00:34Z to 19:27:22Z), `SonarCloud Code Analysis` success, `doc-health-py314`, `openxdox-consumer-gate`, `openspec-cli-pin`, `wallet-validation`, `clearing-dispatch-gate`, `signed-execution-chain-gate`, `former-id-arrival-gate`, `release-tag-gate`, `openreposhape-pin` and the three `lane-line` runs all success. One is RED, `merge-master-approval`, and it is inherited from `main`: its floor evaluation stops at `floor_incomplete`, "4 covered-pending path(s) exceed the tolerance of 3", the four being `openspec/specs/corpus-adapter-seam`, `domain-mapping-declaration`, `factory-mcp-conformance` and `packet-citation-report`, each `added_to_base_after_pin`. This PR touches no `openspec/specs` path. #1252 (the archive that promoted `factory-mcp-conformance`) merged at 18:58:07Z, and this run (18:59:37Z) is the first gate run after it; every other open PR's last run predates it. It passed on this PR at `7ddfda5e` and `80c6fee7`. A rerun reads the same base, so the pin or floor refresh (#1138, "Advance the pinned decision core") is what clears it; the holder rules on landing over it.
- **`main` moved once more after these gates**, to `a2dc658d` (#1254, which touches `contracts/schemas/project-register.schema.yaml`, `docs/project-repo-schema.md` and `openspec/changes/prefer-triad-project-shape/tasks.md`). It shares no file with this PR, and `git merge-tree` reports a clean merge. I did not merge it in, since each merge restarts the 27-minute gate; the holder can run `gh pr update-branch` before landing if wanted.

## Files changed

- `specs/038-opendox-document-tool-self-maintenance/evidence/r2-base.md` (new)
- `specs/038-opendox-document-tool-self-maintenance/tasks.md`, `plan.md`, `data-model.md`, `checklists/requirements.md`
- `specs/038-opendox-document-tool-self-maintenance/contracts/health-finding.md`, `contracts/cli-http-health.md`
- `README.md` (the feature-038 entry's evidence list, one link)

## What is NOT done

- No requirement, scenario or spec delta is touched: `spec.md` is as `origin/main` has it, and nothing is under `openspec/changes/`.
- No box of #1144 is ticked, and T071 and the other tasks are left as they stand.
- T046's falsifier is unchanged: whether the engine reports a cross-run collision is named as its concern in `contracts/health-finding.md` only.
- Lane 3's composed run is quoted, not repeated.

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


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 Oct 9, 2026
…23375303) (#1261)

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

Refs #656 (stays OPEN).

**THE RATIFICATION RECORD for `realize-doc-health-direction-arc`** (plan 038's T071), the doc_health direction arc's own change. It landed as a draft through #1247 → `51456835` and #1253 → `fc4fa0ff`. No requirement, decision or task text moves: the change has no spec delta (`skip_specs: true`). It lands through the holder's lander in a Rule 6 window; this actor merges nothing.

## The word

RULED by Brett Heap, 2026-10-06 at about 18:59Z, by interactive multi-choice, verbatim *"Ratify it (Recommended)"*, recorded at #656 comment [`6023375303`](#656 (comment)) (created 2026-10-06T19:00:45Z).

The option text he saw read *"I post your word on #656 and land the ratification record (Status: ratified, Ratified by) under a Rule 6 window. T072 can start right away; T074 and T075 then follow in order."*

## The form followed

`cd494e4c` / #1151, "Ratify add-neutral-product-standalone-operability on Brett Heap's word (#656 5815412869)", file for file and field for field. The holder's ruling at #656 [`6023619783`](#656 (comment)) confirms the one choice that differs from the change's as-filed text (below).

## What is ratified, and what the word authorizes

- **Ratified:** the change as landed on `main` at `fc4fa0ff` (#1253, merged 2026-10-06T18:56:42Z). Its change-directory tree, `02d362f6ebcaf49e18aa107f7ce2b3a409ca2275`, is identical at #1253's final head `e4f3f1db` and on current `main`, and the last commit on `main` that touches it is `fc4fa0ff`. Copilot's review at `e4f3f1db` read "Approval recommended", Findings: None.
- **D1–D7 stand as recommended.** `tasks.md` 1.2 provides that the word rules `design.md` § 11's D1–D7 as recommended unless it says otherwise, and the word does not. The record says that this applies 1.2's own rule and does not claim Brett Heap was shown the seven one by one.
- **Authorized:** per the ruling record, the realization in plan 038's order: T072 (opportunistic, ARC-6), then T074 and T075. None of it happens by the word itself.
- **Nothing archives or promotes.** The change stays ACTIVE until its realization is merged and green, and it gates neither release 2's close nor #1144's archive (ARC-Q3 (a)).

## What this PR changes

Six files. None of the changes is requirement or scenario text.

**`openspec/changes/realize-doc-health-direction-arc/proposal.md`**
- `Status: ratified`, with a `Ratified:` citation.
- A qualifier above the filing's "DRAFT. FILING IS NOT RATIFYING" paragraph, which is kept verbatim as the filing's record.
- A `## Ratification record` section.
- A read-at-ratification note after the D1–D7 list.

**`design.md` and `tasks.md`**
- `Status: ratified`, with a `Ratified by:` citation. This is the citation split #1144's record carried.
- `design.md` § 11: the same read-at-ratification note.
- `tasks.md` 1.1 (the filing, citing #1247 → `51456835` and #1253 → `fc4fa0ff`) and 1.2 (this act) are ticked. Boxes go from 0 `[x]` / 23 `[ ]` to **2 `[x]` / 21 `[ ]`**.
- 1.2 keeps its as-filed wording and gains a marked italic note on the one divergence (below), as #1151 did for its own 1.8.

**`.openspec.yaml`**
- `approved_by` / `approved_on` are ADDED after `proposed_on`. `kind`, `id`, `path`, `reason`, `proposed_by` and `proposed_on` do not move.

**New record:** `review/ratification-2026-10-06.md` (`Status: ratified`, `Kind: report`, one `Ratified:` citation).

**`README.md`:** the *Active changes* entry's status, now linking the record.

The sequenced-after ledger row does not move.

**The one divergence from the text as filed.** `tasks.md` 1.2 says the record carries `Status: record`. It carries `Status: ratified` with a `Ratified:` citation, as #1144's record did. `document-lifecycle` sanctions both spellings, the option put to Brett read "(Status: ratified, Ratified by)", and a `Status: record` file trips `record-immutability` (CRITICAL) on any later edit, such as a Copilot fix commit on this PR. Confirmed by the holder at #656 `6023619783`.

## Gate state at `f9f71063`

The tree is `main` at `40d6e5c1` plus this PR's twelve commits (the change itself, five merges of `main` and six re-measurements of the record), with the submodules initialised. After the first head, `main` moved five times: the archive of `add-worker-input-budget` (#1258), then #1266 and #1264, then the archive of `amend-worker-input-budget-dispatch-wording` (#1269), then #1263, #1270, #1271 and #1267 (renew-resolved-council-protocol), then #1272, #1275 (the archive of `correct-naming-families-count`) and #1277 (a bot review-lane repin). They touch `README.md`, `docs/`, the sweep ledger, other changes, the review-lane contracts and workflows and the doc-health and project-repo-schema specs, and not the change directory (its tree is still `02d362f6ebcaf49e18aa107f7ce2b3a409ca2275` on `main`, last commit `fc4fa0ff`). So `main` was merged in, never rebased, and everything below was re-measured. `main` has since moved again, to `b4b9d903` (a new change, `refresh-install-repository-enumerations-opsxfactory-gateway`: its own directory, a README entry and a ledger row). It is not merged here, per the holder's one-merge instruction, and a trial merge with it is clean.

```
OPENSPEC_TELEMETRY=0 openspec validate realize-doc-health-direction-arc --strict → valid (the pinned 1.12.0)
validate-openspec-cli-pin.py --all --strict   → exit 0, 0 UNDISPOSITIONED failures
                                                113 passed, 1 failed (114 items); the 1 = the accepted exception, as on main alone
validate-code-surface.py . / validate-target-release.py .  → passed
validate-sequenced-after.py . / --ledger-diff → pass; ledger consistent (235 rows), this row unmoved
proposal-support.py . verify realize-doc-health-direction-arc → ok
doc-health.py --single-repo .                 → 31 critical, 26 error, 69 warning, 19 info
                                                report byte-identical to main alone (same clone kind); 0 findings name this change
doc-health families (1.2's falsifier)         → proposal-origin 0 findings, status-validity 0 findings
                                                (negative control: dropping proposal.md's Ratified: line takes ratified-provenance 27 → 28 critical, naming proposal.md)
pytest -m "not postgres" -k "ledger or records or sequenced or openspec"  → 615 passed, 3 skipped
pytest sequenced_after code_surface target_release proposal-support scope_globs packet_reference → 866 passed, 311 subtests passed
pytest tests/doc-health                       → 2157 passed
```

An earlier `tests/doc-health` run showed 8 failures in `test_neutrality_dispatch.py`. They were this actor's own environment, not the tree: an exported `REPO` variable collided with the fake scout worker's `REPO`. With it unset the file gives 25 passed, and the whole directory is green above.

## Copilot

- **First head `0039a47e`:** review `5436306140`, "Approval recommended", Findings: None, 0 threads.
- **Head `739da6e0`** (after the first merge of `main`): review `5440756736`, "Approval recommended", Findings: None, 0 threads.
- **Head `69479c77`** (after the second merge of `main`): review `5459920482`, "Approval recommended", 0 threads.
- **Head `83e3511e`** (after the third merge of `main`): review `5460937374`, "Approval recommended", 0 open findings, 0 threads.
- **Head `b186eb62`** (after the fourth merge of `main`): review `5462168108`, "Needs a closer look", **0 open findings**, 0 threads. Its stated reason is that final approval depends on human validation of the governance authority and the historical provenance assertions. The holder ruled at #656 [`6069024568`](#656 (comment)), item 5, that this is NOT a block, because that authority is Brett Heap's ratify word `6023375303`.
- **Checks at `b186eb62`:** the rollup was SUCCESS with 15 status checks, all SUCCESS, including `merge-master-approval`, `pytest-suite` and SonarCloud Code Analysis. 0 threads unresolved.
- **Head `f89fc853`** (after the fifth merge of `main`): review `5464071466`, "Needs a closer look", **0 open findings**, 0 threads. Its stated reason is that the exact-head checks and the Codex review were then pending, and that final approval also depends on governance provenance, which the holder's ruling at #656 `6069024568`, item 5, covers.
- **Final head `f9f71063`** (a record-only correction of the corpus subtest figure, 312 to 311, which the completed run measured): Copilot requested through the reviewer API after the push. Its result, the checks and the thread count are recorded here once the exact final head has been reviewed.

## Codex

- At `b186eb62`, `@codex review` was posted twice (comments `6067925769` and `6069046343`), and the `chatgpt-codex-connector[bot]` answered both with the usage-limit message (comments `6067927988` and `6069048581`). No Codex review existed at that head.
- At `f89fc853`, `@codex review` (comment `6071059884`) was answered with a review: **Reviewed commit `f89fc853cb`**, "Didn't find any major issues" (comment `6071083487`; summary comment `6071062721`, Code Review completed at 2026-10-08T23:29:24Z).
- At the final head `f9f71063`, `@codex review` was posted once after the push (comment `6071252263`). The bot's reply is recorded here once it arrives. READY needs a Codex "Reviewed commit" at the exact head, or Brett Heap's explicit waiver (#656 `6069024568`, item 4).

## What is NOT done

- No code, pin, gitlink, contract bundle or release tag moves. T072, T074 and T075 are the realization, and none of them starts by this PR.
- Plan 038's `specs/038-…/tasks.md` is not edited here. T071's tick there goes in the holder's own bookkeeping batch.
- Nothing archives or promotes.

**Rule 6:** this PR touches `openspec/changes/` and the README OpenSpec Records block, so it lands in a declared window by the holder, and not by this actor.

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


Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[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