Skip to content

Land T035's held aggregation ignore-file case; EXPECT_SKIPPED 5 -> 6 (plan 034, for T049) - #1203

Merged
brettheap merged 1 commit into
mainfrom
build/034-t049-held-gitignore-case
Sep 29, 2026
Merged

brettheap merged 1 commit into
mainfrom
build/034-t049-held-gitignore-case

Conversation

@brettheap

@brettheap brettheap commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

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

T035's held aggregation ignore-file case lands, and EXPECT_SKIPPED moves 5 → 6. This is a prerequisite of plan 034's phase-1 checkpoint, T049. It is not an arc landing, so it carries no Arc: trailer, and F11.1 never reads it. It touches no openspec/changes/ path, so it needs no Rule 6 window. Claim: #656 comment 5891975603.

Why now

T049 checks that every case T034 and T035 moved out of openDox-code arrived where its PR sent it, "so none is dropped from both suites (requirement 9, second scenario)". It found 18 of 19. The missing one was opensoft/openDox-code#51's (T035) test_worktree_container_is_gitignored_in_the_aggregation_repo. T035 moved it out of openDox-code, where a lone checkout had only ever skipped it. T007 batch E (#1144's tasks.md) then held it out of #1181 so that pytest-suite's EXPECT_SKIPPED could stay put: "Held, not decided against; a later task takes it up." git grep found its def in none of openxFactory e81eed62, openXdox-code 6158151e and openDox-code 2d116415.

The holder's decision (2026-09-29), relayed to T049's writer, is option (b). A moved case that exists in no suite breaks requirement 9's second scenario, and "a later task" is now. It only skips on a runner, so nothing risky lands with it. T049's own PR follows this one, and its evidence quotes all 19 cases found.

The change (2 files, against main e81eed62)

  • tests/domain_profile/test_session_worktree_book_scan.py, on F11.1's HOST_TESTS surface, beside T035's other two session cases:
    • the case, with find_aggregation_root and _check_ignore, verbatim from openDox-code 68be484a tests/test_session_harness.py:229-260, and the two imports they need (subprocess, pytest);
    • the module docstring's hold note, which now records the landing, why the case skips on a runner, and where its synthetic half stayed (test_the_worktrees_pattern_covers_the_sessions_sub_path, still in openDox-code's tests/test_session_harness.py).
  • .github/workflows/pytest-suite.yml: EXPECT_SKIPPED "5" → "6", with a MOVED 5 -> 6 paragraph beside the pin, in the form of the entries above it. MIN_SELECTED and MIN_PASSED are floors and do not move: the case adds one selected test and no passed one.

Measured

On a runner's layout (this checkout beside the pinned decision core, and no .gitmodules above it), the case SKIPS with the guard string pytest-suite.yml's header names. pytest tests/domain_profile -q -m "not postgres" -rs:

tree result
main e81eed62 80 passed
this change 80 passed, 1 skipped: SKIPPED [1] tests/domain_profile/test_session_worktree_book_scan.py:90: no aggregation checkout reachable from this tree

Inside a real aggregation checkout it PASSES. The checkout was a fresh clone of opensoft/xFactory (main 6c4032fc), with this change as its openxFactory submodule and that submodule's openXwallet, openXdox and openDox initialized as pytest-suite initializes them. The aggregation was only read, never written: its git status was M openxFactory (the submodule HEAD set up for the run) before and after. python3 -m pytest tests/domain_profile/test_session_worktree_book_scan.py -v -rA:

tests/domain_profile/test_session_worktree_book_scan.py::test_worktree_container_is_gitignored_in_the_aggregation_repo PASSED [ 33%]
tests/domain_profile/test_session_worktree_book_scan.py::test_session_worktrees_never_reach_a_lifecycle_book PASSED [ 66%]
tests/domain_profile/test_session_worktree_book_scan.py::test_pinned_factory_paths_never_admits_a_worktree_container PASSED [100%]
============================== 3 passed in 0.16s ===============================

What the case reads there, and it is exactly the finding it encodes (research R7: the existing *-worktrees/ pattern covers the container):

git check-ignore -v xFactories/codexFactory-worktrees/ -> .gitignore:9:*-worktrees/	xFactories/codexFactory-worktrees/
git check-ignore -v xFactories/codexFactory-worktrees/sessions/draft__demo-topic/ -> .gitignore:9:*-worktrees/	xFactories/codexFactory-worktrees/sessions/draft__demo-topic/
git check-ignore -v xFactories/codexFactory-worktrees/sessions/draft__demo-topic/a.md -> .gitignore:9:*-worktrees/	xFactories/codexFactory-worktrees/sessions/draft__demo-topic/a.md
git check-ignore -v openxFactory-worktrees/sessions/draft__demo-topic/ -> .gitignore:9:*-worktrees/	openxFactory-worktrees/sessions/draft__demo-topic/

It can fail. In that same throwaway clone, with the aggregation's *-worktrees/ line deleted, the case fails: AssertionError: xFactories/codexFactory-worktrees/ is NOT gitignored — FR-005 broke (1 failed, 2 deselected). The file was then restored, and its sha256 (9790ff86…) was the same as before.

The whole suite, as pytest-suite runs it. Both trees were in the job's layout: openxFactory/ with openXwallet initialized, openXdox and openDox initialized recursively, and the decision core b21f0100 beside it as PINNED_CORE_CHECKOUT. The suite ran from the lock's venv, with the pinned OpenSpec CLI 1.12.0 on PATH, under python3 -m pytest tests/ -q -m "not postgres" --junitxml=…:

tree pytest's summary line JUnit totals
main e81eed62 8907 passed, 5 skipped, 338 deselected, 9 warnings, 412 subtests passed in 1910.89s (0:31:50) tests=9324 failures=0 errors=0 skipped=5
this change (a41bd6d5, see the note below) 8907 passed, 6 skipped, 338 deselected, 9 warnings, 412 subtests passed in 1842.47s (0:30:42) tests=9325 failures=0 errors=0 skipped=6
this change, pushed head bfcc50b3 8907 passed, 6 skipped, 338 deselected, 9 warnings, 412 subtests passed in 1551.79s (0:25:51) tests=9325 failures=0 errors=0 skipped=6

main's five skipped nodes, as JUnit classname::name with each skip's message:

tests.notebooklm.test_sync_notebooklm_books  [collection skipped]
tests.notebooklm.test_workbench_sweep_wiring  [collection skipped]
tests.conformance-gate.test_conformance_checks::test_inventory_real_repo_is_consistent  [publisher checkout is not a domain repo; the self-gate runs in domain repos]
tests.conformance-gate.test_conformance_checks::test_parity_all_real_pairs_pass  [publisher checkout is not a domain repo; the self-gate runs in domain repos]
tests.domain_pin_setter.test_set_domain_openxfactory_pin::test_the_fixture_still_matches_the_live_ledgerx_shape  [no sibling LedgerxFactory checkout reachable from this tree]

diff of the skipped lines, main → this change. Node for node, it is main's 5 and this case:

5a6
>   SKIP tests.domain_profile.test_session_worktree_book_scan::test_worktree_container_is_gitignored_in_the_aggregation_repo  [no aggregation checkout reachable from this tree]

Across every testcase node in the two reports, this change adds exactly one (8912 → 8913), and none is found only in main. passed stays at 8907, so neither floor moves.

Note on the head. a41bd6d5 was this branch's first cut, and it was never pushed. The pushed head bfcc50b3 differs from it in pytest-suite.yml only: two comment passages that summarize the runner number (the file header's, and the pin's first comment line) now end at 6 as well. A grep finds no test that reads either passage. The whole suite was run again at bfcc50b3, from a fresh clone of this branch (the table's third row), and it skipped the same six nodes as a41bd6d5. The held case was also re-run inside the aggregation with its submodule at bfcc50b3, fetched from this branch: 3 passed, with the same four check-ignore lines.

This PR's own pytest-suite run at bfcc50b3 (run 36585369006, green in 22m48s) prints the same test line, and the pin step reads:

selected=9325 passed=9319 skipped=6 failures=0 errors=0
floors: selected>=7050 (margin 2275) passed>=7044 (margin 2275) skipped==6

Checks

  • .github/workflows/pytest-suite.yml parses as YAML, and its pin step's env reads EXPECT_SKIPPED=6, MIN_SELECTED=7050, MIN_PASSED=7044. The floors are unchanged.
  • Every added line in the diff is at most 80 columns.
  • The diff and the commit message contain no host path. The commit message has no closing keyword.
  • lane-line: the body's first non-empty line is the Lane line.

No closing keyword appears in this body or in the commit.

🤖 Generated with Claude Code

Summary by Sourcery

Restore T035’s held aggregation ignore-file coverage and adjust the CI skip-count pin to account for its runner-only skip.

New Features:

  • Restore T035’s aggregation ignore-file regression test to verify that worktree containers and their contents remain covered by the existing ignore pattern when an aggregation checkout is available.

Bug Fixes:

  • Prevent the moved T035 case from being absent from all test suites.

Enhancements:

  • Update the domain-profile test documentation to reflect that all three T035 session cases are now present and clarify runner versus aggregation-checkout behavior.

CI:

  • Update the pytest suite’s exact skipped-test expectation from 5 to 6 while leaving selected and passed-test floors unchanged.

Tests:

  • Add coverage for aggregation-level gitignore behavior across worktree containers, sessions, and files.

…(plan 034, for T049)

T049, plan 034's phase-1 checkpoint, found one case in no suite. The case
is openDox-code#51's (T035)
test_worktree_container_is_gitignored_in_the_aggregation_repo. T035 moved
it out of openDox-code, and T007 batch E held it out of #1181 ("held, not
decided against; a later task takes it up"). On the holder's decision
(2026-09-29) it lands now, before T049's own PR.

- tests/domain_profile/test_session_worktree_book_scan.py (F11.1's
  HOST_TESTS surface): the case, with find_aggregation_root and
  _check_ignore, verbatim from openDox-code 68be484a
  tests/test_session_harness.py:229-260. The docstring's hold note now
  records the landing.
- .github/workflows/pytest-suite.yml: EXPECT_SKIPPED 5 -> 6, with the
  accounting beside the pin. On a runner the case skips ("no
  aggregation checkout reachable from this tree"). Inside an aggregation
  checkout it runs and asserts. The file's two running summaries of the
  runner number (its header, and the pin's own first comment line) now
  end at 6 as well. MIN_SELECTED and MIN_PASSED are floors and do not
  move.

This is not an arc landing, so it carries no Arc: trailer.

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

sourcery-ai Bot commented Sep 29, 2026

Copy link
Copy Markdown

Reviewer's Guide

The PR restores T035’s previously held aggregation ignore-file test in the domain-profile suite, where it validates the existing *-worktrees/ ignore rule inside real aggregation checkouts and skips safely on standalone runners; CI’s exact skip pin is consequently raised from 5 to 6 while pass/selection floors remain unchanged.

Sequence diagram for aggregation ignore-file test execution

sequenceDiagram
    participant Pytest
    participant Test as test_worktree_container_is_gitignored_in_the_aggregation_repo
    participant Repo as Aggregation checkout
    participant Git as git check-ignore

    Pytest->>Test: test_worktree_container_is_gitignored_in_the_aggregation_repo()
    Test->>Test: find_aggregation_root()
    alt no aggregation checkout reachable
        Test-->>Pytest: SKIP
    else aggregation checkout found
        Test->>Git: _check_ignore(worktree paths)
        Git->>Repo: Check existing *-worktrees/ rule
        Repo-->>Git: Paths are ignored
        Git-->>Test: Ignore matches
        Test-->>Pytest: PASS
    end
Loading

Flow diagram for restored aggregation ignore-file coverage

flowchart LR
    A[Held T035 test] --> B[Restore in domain-profile suite]
    B --> C{Aggregation checkout reachable?}
    C -->|No| D[Skip on standalone runner]
    C -->|Yes| E[Check worktree container and session paths]
    E --> F{*-worktrees/ rule present?}
    F -->|Yes| G[Pass]
    F -->|No| H[Fail and expose FR-005 regression]
    B --> I[EXPECT_SKIPPED 5 to 6]
    I --> J[MIN_SELECTED and MIN_PASSED unchanged]
Loading

File-Level Changes

Change Details Files
Restores T035’s aggregation ignore-file regression test to the domain-profile suite.
  • Adds aggregation-root discovery by walking ancestors for .gitmodules and openxFactory/.
  • Adds git check-ignore -v assertions for factory worktree containers, nested sessions, and files.
  • Preserves runner behavior by skipping when no aggregation checkout is reachable; documents the held-case history and synthetic-test boundary.
  • Adds the required subprocess and pytest imports.
tests/domain_profile/test_session_worktree_book_scan.py
Updates the CI skip-count contract for the newly restored runner-skipped case.
  • Changes EXPECT_SKIPPED from 5 to 6.
  • Documents the T035/T049 rationale and measured runner-versus-aggregation behavior.
  • Leaves MIN_SELECTED and MIN_PASSED unchanged because the test is selected but skips on runners.
.github/workflows/pytest-suite.yml

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

🟢 Approval recommended

The restored test and CI accounting are consistent with the documented runner and aggregation behaviors.

Review effort: Balanced
Findings: None

What changed in this PR

Restores the held aggregation ignore-file regression case and updates CI skip accounting.

Changes:

  • Adds aggregation .gitignore coverage with runner-safe skipping.
  • Updates EXPECT_SKIPPED from 5 to 6.
File Description
tests/​domain_profile/​test_session_worktree_book_scan.py Restores the aggregation ignore-pattern test.
.github/​workflows/​pytest-suite.yml Records and applies the new skip count.

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

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap marked this pull request as ready for review September 29, 2026 15:13
@brettheap

Copy link
Copy Markdown
Contributor Author

READY at bfcc50b — Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

@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 1 day and 2 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-09-29T15:16:03Z, PR #1203 into opensoft/openxFactory main

@brettheap
brettheap merged commit 08e97c2 into main Sep 29, 2026
16 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

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

LANDED — lane openxfactory-4, 2026-09-29T15:16:14Z, PR #1203 → 08e97c2 (opensoft/openxFactory main; squash)

brettheap added a commit that referenced this pull request Sep 29, 2026
… notes (plan 034) (#1204)

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

**Plan 034 T049, phase 1's checkpoint.** This PR runs every check T049 names, at the commits phase 1 pinned, and quotes each one. Every check passes except F9.2, which is red as ruled. On the holder's decision (2026-09-29), phase 1 closes with F9.2 quoted red, and T049 is ticked. This PR is bookkeeping, so it carries no `Arc:` trailer (R1Q20 (a), `5817152735`). Claim: #656 comment `5891522563`.

**This PR is in the Rule 6 window.** It touches `openspec/changes/`: `add-neutral-product-standalone-operability/tasks.md` gets two one-sentence record corrections in T007 batch E. So it lands under a Rule 6 `LANDING`/`LANDED` window.

The record is [`specs/034-opendox-standalone-operation/evidence/checkpoint-phase1.md`](specs/034-opendox-standalone-operation/evidence/checkpoint-phase1.md). Each falsifier in it was extracted byte-for-byte from #1144's `tasks.md` at `e81eed62` and run from a fresh clone of its leg at the pinned commit, with an empty `git status`, in the foreground.

## Verdict

| # | T049's check | where | result, quoted |
|---|---|---|---|
| 1 | F2.1 | openDox-code `2d116415` | **PASS**, exit 0: `every module of opendox imports with no sibling`, and the named test `1 passed` |
| 2 | F3.1, line 2 as amended (batch A) | openDox-code `2d116415` | **PASS**, exit 0: `OK`, `OK opendox.default_profile`, `51 passed` |
| 3 | F9.1 (openDox-code), with the database's DSN exported | openDox-code `2d116415` | **PASS**, exit 0: `2468 passed, 11 skipped, 1 warning in 222.25s`. That is CI's own triple, 2479/2468/11, and the database's `xact_commit` went from 3 to 2566 |
| 4 | F9.1 (openXdox-code), as batches B and F amend it, with batch J's one ruled `--deselect` (`5870594693`) | openXdox-code `6158151e` | **PASS**, exit 0: `881 passed, 4 skipped, 1 deselected`. `count 67 == 67 entries`, the title line `open extraction: the declared exclusion` is printed, and `tests/test_declared_exclusion.py` gives `208 passed` |
| 5 | F9.2 | openXdox-code `6158151e` | **RED, AS RULED**, exit 1, on one test (below) |
| 6 | `opendox --help` (F10.1's first assertion) | openDox-code `2d116415` | **PASS**, exit 0, after a plain `pip install .`. `opendox runtime --help` exits 0 too |
| 7 | F4.1's scan: only `openxdox` targets | openDox-code `2d116415` | **PASS**: 19 deferred reaches, all `openxdox` (`branch_session.py` 7, `serve_workbench.py` 7, `serve.py` 2, `serve_project.py` 2, `cli.py` 1). The same scan names 27 at `1e4a57fb`, and the 8 into openxFactory are gone |
| 8 | every case T034 or T035 removed, found where its PR's list sends it | all three legs | **PASS**: `ALL FOUND`, 19 of 19, at `08e97c27` |
| 9 | T043's R1Q24 (a) files and `tests/test_snapshot.py`, in the declared exclusion with their reasons | openXdox-code `6158151e` | **PASS**: 9 of 9 `OK` |
| 10 | T018's interim F11.1 | openxFactory `e81eed62` | **PASS**: the record quotes it, and it was re-run with the same line, `requirement 1 holds: 0 note(s) annotated, every other path a declared surface (11.1)` |

**F9.2, red as ruled.** RULED `5859927858` (Brett Heap, 2026-09-27, "(b) Exclude it until T008's arc (Recommended)") says "F9.2 is unchanged". The run installs openDox at the pinned `commit_id` `2d116415…`, and `test_assembled_bundle.py` gives `4 passed`. Then `test_assembled_surface.py` fails, and `set -e` stops F9.2 there:

```
E       AssertionError: at openDox-code@2d116415159b721b55613fe20a159afc46202d1f: the assembled command line could not be built. The child ended with: ModuleNotFoundError: No module named 'doc_health'
E           File "<workdir>/tmp/tmp.7JYzzP8feC/v9i/lib/python3.12/site-packages/openxdox/cli_gate.py", line 47, in <module>
E           File "<workdir>/tmp/tmp.7JYzzP8feC/v9i/lib/python3.12/site-packages/openxdox/gate_console.py", line 63, in <module>
FAILED tests/integration/test_assembled_surface.py::test_the_assembled_help_tree_is_the_31_entry_tree_the_manifest_records
1 failed, 1 passed in 0.69s
```

The steps `set -e` did not reach were then run on their own, each with its exit code, as the holder asked. `test_declared_composition.py` gives `5 passed`, and the final named-test line gives `1 failed`, on the same test. So the help-tree test is the only red.

## The holder's decisions this PR applies

1. **F9.2 is quoted red, as ruled, and phase 1 closes (2026-09-29).** F9.2's box moves from T049 to "after T008" in plan 034's box table and in T049's text, with one line citing `5859927858` and this decision. This is a plan (spec 034) edit only, and #1144's F9.2 text is not touched. T049 is ticked because every other check passes.
2. **The one case in no suite landed first (option (b), 2026-09-29).** `test_worktree_container_is_gitignored_in_the_aggregation_repo` landed by #1203 → `08e97c27`. This branch is `08e97c27` plus one commit, and check 8 finds all 19 there.
3. **Batch E's record nit is fixed with one sentence.** T035's fresh case `test_the_browser_ceiling_equals_the_servers_ceiling` lives in openDox-code's own `tests/test_doxbench_chat_view.py` (`:4148` at `2d116415`), not in openxFactory's `tests/domain_profile/test_doxbench_chat_ceiling.py`.
4. **T092's phase-1 notes ride here (2026-09-28).** There are six `edits[].note`s on five rows of `docs/opendox-carve-manifest.yaml` (two added, four extended), for the ten reaches phase 1 closed. Each reach is byte-identical to its carve line (a difflib `equal` block over `carve_lines.text_records()`), and each note sits on the one `edits[]` entry whose `lines` hold it. F11.1's content rule holds: `6 note(s) annotated, nothing else in the manifest moved`. F11.1 never counts these notes, because this PR has no `Arc:` trailer.

## What changed (7 files)

- `specs/034-opendox-standalone-operation/evidence/checkpoint-phase1.md` (new, `Status: record`), linked from the feature 034 entry in `README.md`.
- `specs/034-opendox-standalone-operation/tasks.md`:
  - T049 is ticked. Its text gains the F9.2 paragraph and one line on the held case's landing.
  - The box table reads `F9.2 → after T008`.
  - T092 records that phase 1's notes rode in this PR.
  - Two counts move with the box, beyond the two places the holder named. The class table goes from 63 to 62 and gains an "after T008" row (still 69 in total). T097 goes to 62, and leaves F9.2 open until T008.
- `specs/034-opendox-standalone-operation/plan.md`: the phase table drops F9.2 from phase 1's closes and adds an "after T008" row.
- `specs/034-opendox-standalone-operation/spec.md` (`Status: draft`): US1's independent test and SC-001 leave F9.2 out of the checks that pass, and each says it is run and quoted red until T008. SC-006 goes to 64, with T097's share at 62. These are the same cascade, so each figure matches the table.
- `docs/opendox-carve-manifest.yaml`: T092's six notes. `scripts/validate-carve-manifest.py` prints `OK … 456 row(s) … verified at 08e97c2`.
- `openspec/changes/add-neutral-product-standalone-operability/tasks.md`, T007 batch E, one sentence each: the correction in decision 3 above, and a pointer after the `HELD OUT` paragraph naming #1203 → `08e97c27`. The pointer is my own addition, to keep batch E's record true.

## Validation

- `OPENSPEC_TELEMETRY=0 openspec validate add-neutral-product-standalone-operability --strict` (pinned CLI 1.12.0): `Change 'add-neutral-product-standalone-operability' is valid`.
- `openspec validate --all --strict`: `110 passed, 1 failed`. The one failure is `add-chain-attestation`, which `main` already carries, and this change shows `✓`.
- `scripts/validate-openspec-cli-pin.py --all`: exit 0, `0 UNDISPOSITIONED failures`. Its one dispositioned finding is that same pre-existing `add-chain-attestation` exception, and this change appears in no finding.
- doc-health, `--single-repo . --as-of 2026-09-29`, run from each of two same-kind fresh clones, `main` `08e97c27` and this branch: **delta zero**. Both report `31 critical, 22 error, 50 warning, 21 info`, and the two reports are byte-identical once each clone's own directory label is normalized.
- `scripts/validate-sequenced-after.py . --ledger-diff`: `per-change sweep ledger consistent with the corpus (229 rows)`.
- The tests that read the changed files, run in `pytest-suite`'s layout (lock venv, pinned OpenSpec CLI, decision core `b21f0100`): `tests/carve_manifest`, `tests/carve_arrival`, `tests/carve_conformance`, `tests/carve_test_mapping`, `tests/domain_profile`, `tests/sequenced_after`, `tests/openspec_cli_pin`, `tests/code_surface`, `tests/proposal-support`, `tests/citation_remainder`, `tests/ideation-dashboard/test_dashboard_source_seal.py` and `test_lens.py`. The result is `2055 passed, 1 skipped, 303 subtests passed`, and the one skip is the aggregation case, as on any runner.

## Review round 1 (`8b170b63` → `151851da`)

Copilot's review of `8b170b63` recommended changes, with two findings, and both are fixed in `151851da`. Each thread has a reply and is resolved.

- **The spec's pass lists** (`spec.md:266`, `:625`). US1's independent test and SC-001 still listed F9.2 among the checks that pass, and then excepted it a sentence later. Each list now leaves F9.2 out and says it is run and quoted red until T008.
- **A host path and a credential in the record** (`checkpoint-phase1.md:82`, `:164`). The environment note named the interpreter by its absolute path, and § 3 quoted the test database's DSN with its password, host and port. The interpreter is now named without a path, and the DSN is `postgresql://opendox:<password>@<host>:<port>/opendox`. The runs are unchanged. `8b170b63`, in this branch's history, still carries both.

Copilot's re-review of `151851da` was requested through the reviewer API. It reads "Needs a closer look", with **Findings: None**, and it lists both findings as resolved. Its one note is that "F9.2 lacks a concrete task responsible for rerunning and closing it after the direction arc lands". That is left to the holder, because naming an owner for F9.2's close is a plan decision. RULED `5870594693` already has T008 remove the help-tree test's deselect. doc-health at `151851da` is still a zero delta against `main`.

No closing keyword appears in this body or in the commit. The host path in the quotes is written `<workdir>`.

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


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Oct 2, 2026
…1218)

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

**Plan 034 T063, phase 2's checkpoint.** This PR runs every check T063 names, at the commits phase 2 pinned, and quotes each one.
- Every check passes except F5.2, which is red on three pre-arc carve-residue tests of one suite.
- Brett Heap ruled on those three at this checkpoint (`5962785556`, item 1). F5.2 is quoted red, **T063 is ticked, and phase 2 closes with this PR.** T086 repairs the three, and F5.2's box closes at T089.
- This PR is bookkeeping, so it carries no `Arc:` trailer (R1Q20 (a), `5817152735`; T091). Claim: #656 comment `5962431234`.

Ruled, as T063 cites: R1Q23 (a), R1Q25 (b), `5850003126`; R1Q27 (a), `5851950767`; `5916000030`, item 4. F5.2's close: `5962785556`, item 1.

**No Rule 6 window.** This PR touches nothing under `openspec/changes/`.
- T049's PR (#1204) did touch #1144, because its checkpoint found two facts that made T007 batch E's record in #1144's `tasks.md` wrong. One was a case filed in the wrong suite; the other was a held-out case that had since landed (#1203). So it made two one-sentence corrections there.
- This checkpoint finds no record in #1144 that is wrong. The batch C, F, G, I and K texts are what the runs exercise.
- The ruling keeps #1144's text unchanged ("Plan 034 records the move. #1144's text is unchanged."), so #1144's `tasks.md` is untouched.

The record is [`specs/034-opendox-standalone-operation/evidence/checkpoint-phase2.md`](specs/034-opendox-standalone-operation/evidence/checkpoint-phase2.md).
- Each falsifier in it was extracted byte for byte from #1144's `tasks.md` at `2656e8c2`. That file is identical at `9093fdee` and `1f670bc3`, sha256 `dbd52691…`.
- Each was run from a fresh clone of its leg at the pinned commit, with an empty `git status`, in the foreground.

## Verdict

| # | T063's check | where | result, quoted |
|---|---|---|---|
| 1 | F5.1 | openXdox-code `6a3b93b9`, openDox-code `047bb4fa` installed over it | **PASS**, exit 0. A marked re-run prints what it asserted: completion `implemented` in `short` and `label`, the neutral word `completed`, and the other five stages neutral. |
| 2 | F5.2, as batches C, F, G and K amend it, its last step passing `--chains` | openXdox-code `6a3b93b9`, openDox-code `047bb4fa`, with `OPENXFACTORY` at T064's landing `fcb45380` (and at `2656e8c2` before it) | **RED, AS RULED** (`5962785556`), exit 1, on `tests/test_session_snapshot.py` alone: `3 failed, 20 passed`. The steps `set -e` did not reach all pass: the six other suites (45, 18, 6, 40, 9 and 12 passed), `test -s` over eight arc landings, and the `--chains` step, which prints `ok: 4 protected edit(s), each entered and holding`. |
| 3 | F5.3 | openDox-code `047bb4fa` | **PASS**, exit 0: `documents: 8` |
| 4 | F7.1, the second test read as batch I records R1Q27 (a) | openXdox-code `6a3b93b9` | **PASS**, exit 0: `2 passed` |
| 5 | F7.2 | openDox-code `047bb4fa` | **PASS**, exit 0. A marked re-run prints the refusal: `[title-and-summary-are-text] /documents/1/title: '' is shorter than 1`, by `opendox.validator` over its packaged copy |
| 6 | a standalone `generate-and-open` serving `tests/fixtures/plain-documents` | openDox-code `047bb4fa`, a plain install, short `OPENDOX_STATE_DIR` | **PASS**, exit 0. It serves `opendox-snapshot` with 8 documents, validated with 0 violations. `/index.html`, `/snapshot.json` and `/capabilities` answer; `/source/<doc>` is byte-identical; `/source/.git/config` gives 404. It stops on an interrupt with status 0, and the port is closed. |
| 7 | T065's interim F11.1 | openxFactory, `ARC_TIP` `fcb45380` | **PASS**: quoted from [`f11.1-phase2.txt`](specs/034-opendox-standalone-operation/evidence/f11.1-phase2.txt) (#1217 → `1f670bc3`), and re-run here with the same line, `requirement 1 holds: 0 note(s) annotated, every other path a declared surface (11.1)` |

## F5.2, red as ruled

The three reds:
- `test_a_new_serve_process_re_registers_the_session_at_startup`: `opendox.serve` has no `SNAPSHOT_INDEX_ROUTE`.
- `test_a_session_key_is_validated_against_the_roster_before_url_composition`: the node probe cannot find `./display.js`.
- `test_the_hosted_session_arrival_path_is_recorded_and_not_built`: `IndexError`, because `_handle_refresh_action` is not on openXdox's serve surface.

They are the three that openXdox-code#35's body records as ruled (a), item 6, and they are the same at `2656e8c2` and `fcb45380`.

RULED `5962785556` (Brett Heap, 2026-10-02, item 1, *"Fix in T086, close at phase 3 (Recommended)"*): *"T063 quotes F5.2 red, names the three tests, and is ticked, so phase 2 closes. T086, openXdox-code's phase-3 landing, repairs the three tests under R1Q7 (a)'s allow-list. F5.2's box closes at phase 3's checkpoint (T089), so the pins move only once more, at T094. Plan 034 records the move. #1144's text is unchanged."*

What this PR records, in plan 034 only:
- **`tasks.md`.**
  - T063 is ticked, and its run bullet quotes the ruling.
  - T086 gains the three repairs, each its own R1Q7 (a) allow-list entry. F5.2 whole joins its Falsifier, and `5962785556` joins its Ruled line. Its Realizes line gains F5.2 (with T089).
  - T089 runs and quotes F5.2 whole, and gains a Ruled line.
  - Group 5's box map reads `F5.2 → T086, T089 (T063 quotes it red; RULED 5962785556 moves its close to phase 3)`, in F9.2's form.
  - The P3-X and both checkpoint slice rows follow.
- **`plan.md`.** F5.2 leaves phase 2's closes for phase 3's, and phase 3's exit gains it. The R1Q23 paragraph says F5.2 runs in phase 2 and closes at T089.
- **`spec.md`.** US2's and US4's independent tests, SC-002 (F5.2 quoted red until T086) and SC-003 (F5.2 exits 0 at phase 3's exit).
- **The box split does not change: 62 / 1 / 1 / 1 / 4.** F9.2 left release 1's tasks, so it has its own class row. F5.2 still closes inside release 1 (T086, T089), so it stays in the 62 that T097 ticks. Only its closing tasks move. Group 5 still counts 12, and SC-006's 64 (62 by T097) stands.

## The holder's other decisions this PR applies

1. **T092's phase-2 notes ride here.** This is decision (b) of 2026-09-30, recorded in T064's PR (#1215), and follows T049's precedent.
   - There are three `edits[].note`s on three rows of `docs/opendox-carve-manifest.yaml`: `branch_session.py` `edits[0]` and `cli.py` `edits[0]` are added, and `serve.py` `edits[0]`'s phase-1 note is extended.
   - They cover the eight reaches into openXdox that T055 closed (openDox-code#59 → `fa140875`). F4.1's scan drops 19 → 11 at that landing and nowhere else in `2d116415..047bb4fa`.
   - Each reach was rewritten at the carve, so it sits in a one-line `difflib` `replace` block against its carve line. That carve line is in exactly one `import rewrites` entry, whose note records the close.
   - F11.1's content rule holds, run with T049's script byte for byte: `3 note(s) annotated, nothing else in the manifest moved`.
   - `validate-carve-manifest.py` prints OK, with 456 rows.
   - **They match the T064 writer's mapping** (`T092-phase2-notes.md`) entry for entry: the same eight reaches, carve lines (1555, 2092, 2138, 2215, 3560; 577; 534, 1639), entries and landing. The only difference is the reference numbering. That mapping cites the reaches at `2d116415` (`cli.py:628`, `serve.py:648` and `:2118`). These notes cite them at `1e4a57fb` (`:610`, `:629` and `:1993`), where #1144 names them, as T049's did.
2. **T065's output is quoted from its landed record.** #1217 landed as `1f670bc3`, and this branch merged `main` (`55410016`). § 7 links the file, which is byte-identical to the copy at #1217's head `69ab396d`.
3. **T059's stale clause is corrected.** In T059's registration-path bullet, "so that T064 needs no host line (openDox-code#54)", was the reading of 2026-09-27, revised at T059's landing. It now says T064 owed one host line, and that openxFactory#1215 → `fcb45380` carries it.

## What changed (6 files)

- `specs/034-opendox-standalone-operation/evidence/checkpoint-phase2.md`: new, `Status: record`. It is linked from the feature 034 entry in `README.md`, beside T065's F11.1 record, and from `plan.md`'s evidence tree.
- `docs/opendox-carve-manifest.yaml`: T092's three notes.
- `specs/034-opendox-standalone-operation/tasks.md`:
  - T063 ticked; T086, T089, the box map and the slice rows, as above; T092's record line; T059's clause.
  - **T007's stale batch-L text**, in four places: batch L landed as #1212 → `2140f5a7`, and "Batch L has not landed yet" and "It is open for batch L" are gone.
  - **T007 is not ticked.** Its text names twelve batches, A to L, and before this PR said the bookkeeping after L "ticks T007 again". But Brett's `5962785556`, item 2 (*"Trust per machine (Recommended)"*), rules a batch M, which T007 records, and a new phase-3 task, T100. T007 now says so, and that this plan lists neither yet.
- `specs/034-opendox-standalone-operation/plan.md` and `spec.md`: F5.2's move, as above, and the evidence tree.
- `README.md`: the checkpoint link.

## Validation, at the merged head against `main` `1f670bc3`

- **`python3 scripts/validate-openspec-cli-pin.py --all --strict`** (pinned CLI 1.12.0): rc 0, `Totals: 110 passed, 1 failed (111 items)`, `0 UNDISPOSITIONED failures`. The one failure is the accepted `add-chain-attestation` exception, and `main` gives the identical summary.
- **doc-health `--single-repo . --as-of 2026-10-02`**, in one clone, at `1f670bc3` and at `55410016`: **delta zero**. Both read `31 critical, 22 error, 64 warning, 20 info`, and the two reports are byte-identical. (A comparison against a clone named differently is not valid: a clone named `openxFactory` runs `register-lifecycle-consistency`, so its counts differ by the directory label alone.)
- **The plan-graph checks the T008 writer used.** These are `aftergraph.py`, `depcheck.py`, `chaincheck.py`, `arrowcheck.py`, `phasecover.py` and `sharedfiles.py`, from a read-only clone of brett-wip `main`. Their output is the same on this branch and on `1f670bc3`:
  - 90 tasks, 102 nodes and 225 edges, with `cycles: none`;
  - `single-writer chain gaps: 0`;
  - `arrow mismatches: 0` (67 arrows);
  - `phase 2 → T063: 17 tasks; not before the checkpoint: []`;
  - the four known phase-1 shared-file pairs.
- Every 8-character sha in the record and the plan diff was checked with `git rev-parse --short=8` in its own repository.

## Review round 1 (`4fcc1c8f`)

Copilot's review of `4fcc1c8f` recommended changes, with two findings. Each has a reply and is resolved.
- **T065's evidence was unmerged** (`checkpoint-phase2.md`). #1217 has landed, `main` is merged in, and § 7 links the file.
- **"Mark T007 complete"** (`tasks.md`). Left open, with its text now naming the reason: `5962785556` item 2 rules a batch M for T007. Ticking T007 is the holder's act.

Host paths in the quotes are written `<workdir>`, and the user `<user>`. No closing keyword appears in this body or in any commit.

🤖 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