Skip to content

Dashboard lane: skip uninitialised submodule checkouts and reach the nested product legs (#1208) - #1209

Merged
brettheap merged 13 commits into
mainfrom
fix/1208-dashboard-lane-checkout-resolution
Oct 5, 2026
Merged

brettheap merged 13 commits into
mainfrom
fix/1208-dashboard-lane-checkout-resolution

Conversation

@brettheap

@brettheap brettheap commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-5 (openXfactory-5)

The nightly ideation-dashboard snapshot lane (scripts/ideation_dashboard/nightly_lane.py) had two defects in how it resolves a register id to a checkout. Nightly 36660843271 showed both.

What was wrong

  1. Empty OK snapshots from uninitialised submodules. resolve_checkout accepted any existing directory. The finalize job initialises only ^(openxFactory|xFactories/) plus openxFactory's nested openDox/openXdox and their legs. Every other declared submodule is therefore an empty directory inside the aggregation's work tree. There, git -C <dir> rev-parse HEAD walks up and answers the aggregation's own head. run_lane took that as the checkout's revision and published. After run 36660843271, 11 snapshots on doc-health/nightly had documents=0 and source_revision=6c4032fc (the aggregation head), and they were counted as published.
  2. Nested product legs never reached. Only the aggregation root's .gitmodules was read, keyed by path basename. So openDox-spec, openDox-code, openXdox-spec and openXdox-code were always reported "no checkout found", although the job checks them out at openxFactory/openDox/{spec,code} and openxFactory/openXdox/{spec,code}.

What changed

(a) A checkout is used only when it is populated. A populated checkout has a .git entry of its own (a work tree's directory, or a submodule's gitfile), or git resolves its top level to the directory itself. _borrowed_toplevel() names the enclosing work tree otherwise, and _without_work_tree() refuses a repository with no work tree there (a bare repository, or a path inside a .git directory), where HEAD resolves but there are no files to snapshot.

  • When run_lane derives the anchor from HEAD, it now refuses to borrow it. It skips with submodule not initialised: the pinned checkout 'X' has no git checkout of its own, so its HEAD would be the aggregation root's, not this repository's revision before the generator runs. The reason contains no absolute path.
  • run_multi_lane records {"repository", "reason": "submodule not initialised", "paths": [...]} in index-status.json, and never generates or publishes for that id.
  • An explicit source_revision is still the caller's own statement. That keeps the symlinked fixture checkouts working as before.

(b) Register ids reach the nested legs.

  • declared_checkouts() reads the .gitmodules of every populated checkout the workspace declares, level by level from the aggregation root down. Each file is read by git's own config parser (git config --file <it> --no-includes --null --get-regexp), so headers, comments, quoting and escapes are exactly git's, and a file git refuses declares nothing. It keys each entry by its path basename (as before) and by the repository name its URL declares. So openDox-spec resolves to openxFactory/openDox/spec.
  • Every candidate path, from any source, that is absolute on either platform (a POSIX root, a Windows drive or UNC anchor, or any backslash) or climbs out with .. is ignored.
  • locate_checkout() takes the first populated candidate, in the old order first: the id as a path, then the root basename map. resolve_checkout() keeps its signature.
  • The aggregation root's empty openDox/openXdox falls through to the populated openxFactory/openDox/openxFactory/openXdox. Those are gitlink-equal to the root pins (RULING F and its 2026-09-10 extension to openDox). Measured on xFactory main: root openDox dc7aa08f and openXdox 069fe471 equal the nested gitlinks of the openxFactory commit it pins, b64ca540. Each snapshot records its own checkout's HEAD in any case.

The project register (xFactory project-register.yaml) is not touched.

Governing requirement checked (before any code)

  • openxFactory canon openspec/specs/doc-health/spec.md, Requirement: Ideation dashboard snapshot lane (:619-638): "A skipped or failed snapshot lane MUST be reported as skipped". Scenario: "WHEN snapshot generation errors or is unavailable THEN the run records the lane as skipped". An uninitialised checkout has nothing to snapshot, so SKIP is what the requirement already says. Publishing an empty OK contradicts it.
  • The per-repository requirements (Repository selector over the registered roster, Snapshot projection contract, Delivery and regeneration, Snapshot index contract; archived add-dashboard-repo-selector) were REMOVED from openxFactory canon by split-opendox-two-layer-product. Their re-promotion in openXdox/openDox is still owed; neither product's canon holds them yet. Their text says the lane regenerates "each registered repository's snapshot", and a snapshot scans "ONE repository at ONE ref". A snapshot of an empty directory under the aggregation's HEAD is neither.
  • No closed vocabulary constrains the change. lane-status.json and index-status.json have no schema, and nothing outside this module reads index-status.json. The new reason and the additive paths key are therefore compatible.
  • No spec change is needed: the code now does what the requirements already say.
  • nightly_lane.py is a not_moved / stays_openxfactory_adapter row in docs/opendox-carve-manifest.yaml (no digest pin). It carries none of the NO_IMPLICIT_PUSH_MODULES forbidden tokens.

Test evidence

  • tests/ideation-dashboard/test_nightly_lane.py: main 25 passed; branch 51 passed (26 new: 13 at the first head, 13 from the review rounds below). The modules that import the lane: 483 passed.

  • The 13 first-head tests all FAIL against main's nightly_lane.py. The two behavioural ones fail on behaviour: on main the generator ran over the empty directory. Each review-round defect test fails at the head its thread was raised on. The --null format pin passes there by design, because it documents behaviour that was already correct.

  • New coverage:

    • an empty submodule directory inside a git tree skips and never generates (single and multi lane);
    • the populated predicate (a .git directory, a gitfile, an empty directory, no work tree);
    • a fixture tree of the nightly's nested shape resolves openDox-spec/openDox-code and falls through for openDox;
    • uninitialised legs skip by name with their paths;
    • an end-to-end publish of the nested legs under their own revisions (real generator and validator);
    • ignored ../absolute declarations, quoted values, and URL-tail parsing;
    • containment of every candidate source, and an undecodable .gitmodules;
    • .gitmodules read with git's own grammar (inline comments, quoting, escapes, dotted names, includes not followed), and a file git refuses declaring nothing.
  • End to end, over a scratch aggregation root in the nightly's shape. It used the real xFactory .gitmodules and project-register.yaml, openxFactory at this branch with its products and legs initialised as the finalize job does, xFactories/* as populated stand-ins, and everything else declared but empty.

    published detail
    main 21/25 the same 11 ids as the nightly, each documents=0 at the scratch aggregation HEAD; the 4 legs "no checkout found"
    this branch 16/25 no snapshot carries the aggregation HEAD; the other 9 are named submodule not initialised skips (omnigent-install lists both depths it is declared at)

    On the final run, over this branch merged with main 0f2a87f6, the six product ids publish under exactly their nested pins. These are this branch's pins; the live nightly would read those of the openxFactory commit xFactory pins.

    id revision documents / changes
    openDox e1e3a3c3 1 / 0
    openDox-spec f7ee3c76 3 / 4
    openDox-code dede32b4 0 / 0
    openXdox 9564d5d9 1 / 0
    openXdox-spec f088b097 4 / 2
    openXdox-code 56e1c238 0 / 0
  • Full suite, as pytest-suite runs it (python3 -m pytest tests/ -q -m "not postgres"), last run locally on this branch merged with main 8a37a087, in a clone named openxFactory: 8972 passed, 7 skipped, 1 failed. CI's pytest-suite has been green at every head.

    • The one local failure, tests/hermes_runtime_contracts/test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization], is a 30-second subprocess timeout under host load (load average 21-28). It fails identically on a same-kind clone of main 8a37a087, and the validator never reaches the dashboard lane. It is not this change.
    • An earlier local run in a clone named clone-1208 also failed test_tag_hygiene_pinned_targets.py. That test asserts no read argument contains the substring one, so any checkout path containing it fails, on main too. Under a correctly named clone it passes; it is a latent path-sensitivity in that test, left for its owner.

Review rounds (Copilot)

Seven rounds, eleven findings. Nine were real: each defect was fixed with a test that fails at the head it was raised on, and the complexity and typing notes were fixed with behaviour unchanged. Two (the same claim, raised twice) were not real; they were answered with a measurement and then pinned by a test. Every thread was answered and resolved.

head finding fix
03136634 containment held only for nested declarations 5ee478bb: every candidate source is contained
03136634 an undecodable .gitmodules aborted the run before index-status.json 5ee478bb: it declares nothing
4d95979a any bracketed header opened a section ([include] path = ...) daff182e: only submodule sections declare
eb4e5aa7 the header was not anchored after ] 50ce2eb2: anchored (superseded next)
12d1f766 inline comments and quoting were kept inside values e1e8c99f: .gitmodules is read by git's own config parser
e1e8c99f --null output claimed to be key\0value\0 not a defect: git emits key\nvalue\0 (documented, and measured with od -c); no change
e1e8c99f the walk used list.pop(0) 969c6400: collections.deque, popleft()
969c6400 the --null claim, repeated not a defect; 1994a65a pins git's real output bytes in a test
969c6400 a Windows drive or UNC path is not absolute to PurePosixPath 1994a65a: backslashes and drive or UNC anchors are refused
969c6400 skipped typed as a bare list[dict] 1994a65a: a SkippedRepository TypedDict
1994a65a (overview, "previously missed") a bare repository read as a populated checkout 3e232026: _without_work_tree() refuses it

Held for

DRAFT, held for Brett Heap's landing word.

Closes #1208

🤖 Generated with Claude Code

Summary by Sourcery

Prevent the dashboard snapshot lane from publishing empty uninitialised submodules and resolve registered repositories through populated nested product checkouts.

New Features:

  • Resolve registered repositories through nested populated checkouts declared by workspace .gitmodules files, including nested product legs.
  • Record uninitialised submodule paths in multi-lane index status while skipping snapshot generation and publication.

Bug Fixes:

  • Prevent empty uninitialised submodule directories from publishing snapshots under the enclosing aggregation revision.
  • Ignore unsafe checkout declarations and handle malformed .gitmodules files without aborting lane status generation.

Enhancements:

  • Use Git’s config parser to interpret .gitmodules declarations and preserve checkout resolution order while requiring populated checkouts.

Documentation:

  • Update lane failure semantics and checkout-resolution documentation for nested checkouts and uninitialised submodules.

Tests:

  • Add coverage for populated-checkout detection, nested leg resolution, skipped uninitialised repositories, path containment, Git config parsing, and nested-leg publication.

brettheap and others added 2 commits September 30, 2026 17:19
…egs in the dashboard lane

The nightly ideation-dashboard lane resolved a register id to ANY existing
directory. A declared submodule the finalize job never initialises is an
empty directory inside the aggregation's work tree, and git rev-parse HEAD
there walks up and answers the aggregation's own head, so the lane published
empty snapshots stamped with the aggregation revision (11 on
doc-health/nightly after run 36660843271). The four nested product legs
(openDox-spec, openDox-code, openXdox-spec, openXdox-code) were never found,
because only the aggregation root's .gitmodules was read, by path basename.

(a) A checkout is used only when it is populated: a .git entry of its own, or
git resolving its top level to the directory itself. run_lane refuses to
derive a HEAD it would borrow from an enclosing repository and skips with
"submodule not initialised"; run_multi_lane records the same named reason
with the declared paths in index-status.json and never generates or publishes
for it.

(b) declared_checkouts walks the .gitmodules of every populated checkout the
workspace declares, breadth first, keying each by path basename and by the
repository name its URL declares, so openDox-spec resolves to
openxFactory/openDox/spec. locate_checkout takes the first populated
candidate; the aggregation root's empty openDox falls through to the
populated nested copy.

Refs #1208

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in 0b6d866 (#1207, plan 034 bookkeeping); no overlap with the
dashboard lane files.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings September 30, 2026 17:30
@sourcery-ai

sourcery-ai Bot commented Sep 30, 2026

Copy link
Copy Markdown

Reviewer's Guide

The lane now distinguishes populated checkouts from empty submodule directories that would incorrectly inherit the aggregation HEAD, skipping those repositories without generating or publishing. It also recursively follows populated workspace declarations to resolve nested product legs by both path and repository name, with additive skip-status reporting and comprehensive regression coverage.

Flow diagram for checkout resolution and snapshot skipping

flowchart TD
    A["Registered repository id"] --> B["locate_checkout"]
    B --> C{"Candidate directory exists?"}
    C -->|No| D["Try next declared candidate"]
    C -->|Yes| E{"_borrowed_toplevel finds enclosing work tree?"}
    E -->|Yes| F["Record submodule not initialised"]
    E -->|No| G["Use populated checkout"]
    D --> H{"More candidates?"}
    H -->|Yes| B
    H -->|No| I{"Uninitialised paths recorded?"}
    I -->|Yes| J["run_multi_lane records skipped status with paths"]
    I -->|No| K["Record checkout not found"]
    F --> H
    G --> L["run_lane derives checkout HEAD"]
    L --> M["Generate and publish snapshot"]
Loading

File-Level Changes

Change Details Files
Prevent snapshots from using an uninitialised submodule directory as a valid checkout.
  • Detect whether the checkout has its own Git metadata instead of borrowing an enclosing repository’s HEAD.
  • Skip before generation when the revision would come from the aggregation root, with a path-safe diagnostic.
  • Record repository-level skips in index-status.json with the reason and attempted declared paths.
  • Preserve explicit source_revision behavior for caller-specified or fixture checkouts.
scripts/ideation_dashboard/nightly_lane.py
tests/ideation-dashboard/test_nightly_lane.py
Resolve registered repositories through nested .gitmodules declarations.
  • Walk populated declared checkouts breadth-first and collect nested submodule declarations.
  • Resolve candidates by path basename and repository name parsed from the submodule URL.
  • Ignore absolute and parent-climbing declarations while preserving existing resolution order.
  • Fall through from empty root-level product directories to populated nested product checkouts.
scripts/ideation_dashboard/nightly_lane.py
tests/ideation-dashboard/test_nightly_lane.py
Add regression and end-to-end coverage for checkout population and nested product legs.
  • Verify empty directories never invoke generation or publish snapshots.
  • Cover work-tree .git directories, submodule gitfiles, missing work trees, nested resolution, malformed declarations, quoted values, and URL-tail parsing.
  • Validate nested legs publish under their own revisions and uninitialised legs are indexed as skipped.
tests/ideation-dashboard/test_nightly_lane.py

Assessment against linked issues

Issue Objective Addressed Explanation
#1208 Prevent uninitialised or empty submodule directories from being treated as valid checkouts and publishing vacuous snapshots using the aggregation repository's HEAD. ✅
#1208 Resolve registered repositories located in nested submodules, including the openDox/openXdox product legs declared by nested .gitmodules files. ✅
#1208 Report skipped uninitialised repositories with an explicit reason and avoid generating or publishing snapshots for them. ✅

Possibly linked issues


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

Checkout containment and .gitmodules parsing defects can scan unintended paths or abort snapshot discovery.

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

Open (2)
What changed in this PR

Prevents invalid dashboard snapshots from uninitialised submodules and discovers nested product checkouts.

Changes:

  • Detects borrowed Git roots and skips uninitialised checkouts.
  • Traverses nested .gitmodules declarations.
  • Adds regression and end-to-end coverage.
File Description
scripts/​ideation_dashboard/​nightly_lane.py Adds checkout validation, recursive discovery, and skip reporting.
tests/​ideation-dashboard/​test_nightly_lane.py Tests uninitialised and nested checkout behavior.

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

brettheap and others added 2 commits September 30, 2026 17:57
Copilot review on PR #1209 at 0313663, both threads:

- Containment was applied only to nested declarations. The register id used
  as a path and the root .gitmodules basename map were tried unchanged, so an
  id or root declaration such as ../outside could resolve to a populated
  checkout outside the aggregation root. locate_checkout now passes both
  through the same _declared_rel containment and never tries a candidate that
  is absolute or climbs out.
- UnicodeDecodeError is not an OSError, so one malformed .gitmodules in a
  pinned repository aborted the multi-repository run before index-status.json
  was written. _gitmodules_entries now treats an undecodable file as
  declaring nothing, and the walk also survives the RuntimeError that
  Path.resolve raises on a symlink loop.

Both new regression tests fail at 0313663 on exactly the reported behaviour.

Refs #1208

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in 6fe0ee7 (#1200, scripts/doc_health/catalog.py and its test); no
overlap with the dashboard lane files.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings September 30, 2026 17: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

🟡 Changes recommended

Checkout detection conflates non-Git directories with populated repositories, and section parsing can create false submodule declarations.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
Resolved since last review (2)

brettheap added a commit that referenced this pull request Oct 5, 2026
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

**Plan 034's phase-3 ticks, the third.** It ticks T076, T086, T087, T101 and T104, which landed in opensoft/openDox-code, opensoft/openDox and opensoft/openXdox-code, in `specs/034-opendox-standalone-operation/tasks.md`, in the form #1221 and #1226 used: the box, and a "Landed" bullet drawn from the landed PR's own body.

- **Based on `main` `ba6bb870`** (#1230, batch P), merged up to `ca1c1486` (#1234). If `main` moves again, I merge it in (no rebase, no force-push).
- **Four commits and a merge.** `9a27b080` ticks the five tasks. `eee9e38f`, `252ef9f8` and `3f1790ee` each answer Copilot's findings at the head before (see "Review"). `3991b3a8` merges `main` `ca1c1486` (#1234, a tests-only PR with no `tasks.md` change) as a merge commit, never a rebase.
- **Bookkeeping only.** It edits one file. `git diff origin/main --stat` shows `tasks.md` alone, 374 insertions and 7 deletions: five box flips, five bullets, and one cell each of the P3-X and P3-C slice rows (below). Nothing under `openspec/` changes, so there is no Rule 6 window.
- **No `Arc:` trailer** (R1Q20 (a)), and no closing keyword in the commit message or in this body (both scanned with `/usr/bin/grep`).
- **Claim:** #656 comment `5994472613`.
- **T099 is NOT ticked.** The PyPI publish has not run. T101 is "T099's release step", and its bullet says what stays for T099.
- It stays a DRAFT until the holder marks it ready.

## The ticks, each with its evidence

Each sha is the merge commit of the named PR, read from the forge with `gh pr view <n> -R <repo> --json state,mergeCommit,baseRefName` (all six `MERGED`, base `main`), then checked in a bare clone of its repository. Each is a single-parent squash on `main`'s first-parent line. Each squash's tree equals its PR's final head's tree (`b92a2aa0` for openDox-code#84 at `c5fcdfa4`, `027edaf6` for #78 at `07cc8f36`, `0b1a2abc` for openDox#18 at `f451f68c`, `8b175f71` for openDox#17 at `4fddf62f`, `78ef1ed1` for openXdox-code#37 at `57bebd8b`). #79 is the one exception, as it must be: its head `9519cd8e` is `main` `651c35fe` plus the bump, so its tree lacks #78, which landed first. The squash's diff against its parent is the head's diff against `651c35fe`: `pyproject.toml` alone, 6 insertions and 1 deletion. The table is in landing order.

| task | landed | note |
|---|---|---|
| T104 | openDox-code#84 → `32943cbf` (2026-10-05T02:56Z) | The console token travels in the opened URL, not `/capabilities`, on a standalone plane only. The private copy at `<OPENDOX_STATE_DIR>/console/<port>.html`, its safe write, the two-way served-root boundary, the page's fragment reader, and the limits the holder and Brett accepted (B3's hint line, B7, the stale tab). The bullet also records what the composed hosts show, for T086 and T094. |
| T101 | openDox-code#78 → `d59f3f26` (11:41Z) and #79 → `dede32b4` (11:50Z) | #78 is the release workflow, with its hash-locked tools and `tests/test_release_workflow.py`. #79 is the version bump to 0.1.0, the last phase-3 openDox-code landing. The bullet records the pin and environment gates, the artifact checks, the publishing order and the accepted limits, and says that T099 keeps its box. |
| T087 | openDox#18 → `e1e3a3c3` (11:58Z) | The openDox root's code gitlink and `contracts/code-pin.yaml` move from `047bb4fa` to `dede32b4`, in one commit (two files). |
| T076 | openDox#17 → `504324de` (12:07Z) | The root README's "Install and run" section: the two lines, the browser limit, and the dated paragraph for the first line until T099 publishes. The bullet states what the tick means. |
| T086 | openXdox-code#37 → `56e1c238` (12:23Z) | openXdox's four governed columns at openDox's seams, the two route columns through the facet, `OPENDOX_BACK_IMPORTS` at `(0, 0)` and the pin at `dede32b4`, with F5.2's three repairs and the host-plane stand-in. |

Each task also carries a `**Landed**` bullet in `tasks.md`. The facts in each come from the landed PR's body, and where a bullet states a falsifier outcome I re-ran the falsifier at the merge sha (the next section but one). With these five, 83 of the 96 boxes are ticked (78 on `main`).

**Left as they are:** T002, T007, T089, T090 to T093, T094, T095, T096, T097, T098 and T099.

**What the T076 and T101 ticks mean.** Both bullets say so in `tasks.md`, as T088's does. T076's falsifier is review, and AT-R1 step 4 follows the README literally, but the first line, `pip install "opendox[local]"`, cannot be followed literally until T099 publishes. PyPI and TestPyPI both answered 404 for `opendox` when I read them (2026-10-05T12:38Z), the repository has no tag and no release, and `release.yml` has never run. So T076's box is the landing of a README that meets the review's criteria, and AT-R1 step 4, run at T095 and T096, keeps its own falsifier. T101's box is the landing of the release workflow and the version bump. T099, the publish, keeps its box.

## T086's files outside its slice row (Q7 (a))

- **Whose list this is.** Only openXdox-code#37's body carries one ("Files outside T086's slice row (Q7 (a)), to record in the next plan bookkeeping round"). The bodies of openDox-code#84 (T104), #78 and #79 (T101), openDox#18 (T087) and openDox#17 (T076) carry no such list: I read all five for "outside", "slice row", "bookkeeping round" and "single-writer", and for any list of files. Q7 is T086's prep question 7, which the holder ruled (a) on 2026-10-02: *"T086 also touches … recorded in the next plan bookkeeping round"*.
- **Checked against the forge.** `gh pr view 37 -R opensoft/openXdox-code --json files` lists 18 files. All 13 the body names are among them (12 edited, one created). Four of the 12 are already in the P3-X row since #1225: `tests/test_session_snapshot.py`, `tests/protected_suite_respellings.yaml`, `tests/integration/test_assembled_surface.py` and `.github/workflows/validate.yml`'s `LEFT_OUT`. The other five of the 18 are in the row (`pyproject.toml`, `tests/test_dependency_direction.py`) or are its "gate and projection contributions" and their tests.
- **The precedents I found, and used.** (1) #1225 rewrote the P3-E row's files cell to record what T075 did outside it: *"T075 (openDox-code#73, landed) edited `pyproject.toml`'s package data … and its tests; no server module."* (2) Landed bullets name the files a task touched beyond its row: T059's records that it joined the declared exclusion file's single-writer chain, and T075's lists the four files its PR changes. So the nine files not yet in the row are recorded in **both**: T086's `**Landed**` bullet, and the P3-X row's files cell, in P3-E's form (`T086 (openXdox-code#37, landed) also edited, outside the files above (Q7 (a)), … and created …`). The cell also says T086 edited neither route harness the row names, since the stand-in host in `tests/conftest.py` serves T104's token. That is true of the 18 files.
- **What the row edits do to the tools.** `sharedfiles` gains one file name on one line, `conftest.py` in P1-J against P3-X, which stays `ordered A<B`. The P3-C edit moves nothing, because the row keeps the three names. No other tool output moves (see Validation). If the holder would rather leave the row alone, it is one cell to revert, and the bullet keeps the list.
- **Not done here.** `plan.md` is outside this PR's file. Its single-writer table names openXdox-code's declared exclusion file as T041 → T043 → T044 → T061, and does not name T086's addition to it (65 → 66, `tests/test_column_contributions_governed.py`); T059's addition (67 → 66) was recorded in `tasks.md` only too. I noticed it and left it for the holder.
- **A T104 observation, not a list.** T104's body says the one page reader the PR edits is `web/views/notebook.js`, not the three files the task text and the P3-C row name (`app.js`, `edit.js`, `staging-workbench-model.js`), which are untouched. The T104 bullet says so. Copilot's first finding (below) asked for the P3-C row to say so too, and `eee9e38f` does, in P3-E's form: `T104 (openDox-code#84, landed) edited `src/opendox/web/views/notebook.js` instead, … and created `src/opendox/console_access.py``. `plan.md`'s single-writer row for `staging-workbench-model.js` (T102 → T104) still names T104, and I left it with the other `plan.md` item.

## Review

Copilot's reviews, each answered and each thread resolved (3 inline findings in all, 0 open):
- **At `9a27b080`** (2 findings, low). **r4184226463, the P3-C row** still named the three readers T104 did not edit: fixed in `eee9e38f`, as above. **r4184226530, `plan.md`'s single-writer chain** for openXdox-code's declared exclusion file ends at T061 and omits T086 (and T059): an accepted limit, since this PR is `tasks.md` alone and `plan.md` is the holder's to order. It is the "Not done here" item above, and the reply says so.
- **At `eee9e38f`** (no inline finding; two "previously missed" items on my T101 bullet): the release tag `v0.1.0` is made at the openDox-code commit T087 pins (`dede32b4`), not at T087's own commit in the openDox root, and the digests are recorded right after the artifact checks, before the wheel smoke test, not "before any third-party code" (the hash-locked tools and the package's own build have run by then). Both fixed in `252ef9f8`.
- **At `3991b3a8`** (1 finding, r4184414419): the T101 bullet's preflight sentence read as if a yanked file were an exception. Fixed in `3f1790ee`: the preflight tolerates only a verified file at its verified digest and refuses any other file of the version, and any yanked one.

## Re-run at each merge sha

My own runs, one sha at a time, each in a detached worktree of a bare clone, with a fresh venv per sha installed as that repository's `validate.yml` installs it (openDox-code: `pip install --only-binary :all: -c constraints-cpython312-linux.txt -e ".[runtime,test]"`; openXdox-code: `pip install -e ".[test]"`, which takes `opendox` from git at `dede32b4`). Python 3.12.3, pytest 8.4.2, node v24.21.0, `LANG=C.UTF-8`, run under `env -i` (no `GIT_*`, `XF_*`, `PG*` or `OPENDOX_*` variable inherited), an empty scratch `HOME`, and `TMPDIR` and pytest's `--basetemp` under `~/.cache/ticks-p3c-tmp`, outside `/workspace/projects/xFactory` (`git rev-parse` fails there). T104's red-first run was repeated with both under `~/.local/state/ticks-p3c/tmp` and read the same. There was no PostgreSQL service. I published, dispatched and approved nothing: my only calls to the forge and the indexes were reads (`gh pr view`, `gh run list`, `gh release list`, and two `GET`s of the indexes' JSON APIs).

| task | at | what I ran | result |
|---|---|---|---|
| T087 | `e1e3a3c3` | `make pins`, then `make validate`, in the openDox root with both legs initialised (`git submodule update --init`) | both rc 0. `make pins` prints `ok  code: gitlink == contracts/code-pin.yaml commit dede32b4b6f3`, `ok  code: tree digest recomputes (c2672463b4d8…)`, the same two lines for `spec` (`f7ee3c763b3a`, `e81f8530d93e…`), `ok  contracts/shape-pin.yaml: 10 copied shape file(s) match their digests`, and `pins ok`. `make validate` adds `manifest ok: openDox (opendox), 3 legs`. The commit changes `code` and `contracts/code-pin.yaml` only (2 files, 3 insertions, 3 deletions) |
| T076 | `504324de` | `make validate` in the openDox root, legs initialised | rc 0, the same output as above. The commit changes `README.md` alone (82 insertions) |
| T076 | `504324de` | the README's two lines, byte for byte, against batch H's 10.3 addendum in the ratified change's `tasks.md` at `ba6bb870` (`openspec/changes/add-neutral-product-standalone-operability/tasks.md:1535-1537`), extracted by a script | the addendum's commands are `pip install "opendox[local]"` and `opendox generate-and-open --local …`. Each is a README line exactly equal, once. The `…` is `e2 80 a6` (U+2026), after one ASCII space |
| T076 | now | **the published-package caveat.** `GET https://pypi.org/pypi/opendox/json` and `https://test.pypi.org/pypi/opendox/json`; `gh release list` and the tags of opensoft/openDox-code; `gh run list --workflow release.yml` | 404 and 404 (2026-10-05T12:38Z); no release; 0 tags; no run. So the first line cannot be followed literally today, and the README's dated paragraph names the stand-in, `pip install "./code[local]"` from a recursive clone. I did not run the stand-in, nor the README's start |
| T101 | `d59f3f26` | `tests/test_release_workflow.py` (the falsifier: "in the required check"), alone | `129 passed in 35.65s`. It is the only test the PR added |
| T101 | `dede32b4` | `pyproject.toml`'s version | `version = "0.1.0"` (line 23), against `0.0.0` at `d59f3f26`. `readme = "README.md"` is there too |
| T104 | `32943cbf` | `tests/test_console_token_delivery.py` and `tests/test_console_token_view.py` (the falsifier: "its PR's test, on the standalone serve"), alone, in one invocation | `166 passed in 87.97s` (the second file runs its node cases) |
| T104 | `38d3350e` (#84's base: the commit before the squash) | the same two test files and `tests/standalone_child.py` (the helper #84 extends), taken from `32943cbf`, run against the base's own tree in a venv installed there. The task text does not ask for this run. I made it as #1226 did for T103 | `158 failed, 1 passed, 7 errors` in 128s, of the 166. The one pass is `test_a_server_outlives_no_killed_run`, a case of the tests' own server helper, which does not touch the product. The 7 errors are the node file's. Two cases hang at the base, and I cut each at 60s with `pytest-timeout` 2.4.0, which I added to that venv only. My first run, without it, hung at the 23rd case and I killed it |
| T086 | `56e1c238` | `validate.yml`'s `pytest` step, lone: `python -m pytest -q --junitxml=pytest-report.xml --deselect "$LEFT_OUT"` with `LEFT_OUT` the 32-entry node, then the step's own triple script over the report | `1095 passed, 4 skipped, 1 deselected`. Triple: `selected=1099 passed=1095 skipped=4 failures=0 errors=0`; pins `selected>=1099 (margin 0) passed>=1095 (margin 0) skipped==4` |
| T086 | `56e1c238` | `tests/test_dependency_direction.py`, alone | `17 passed` |

**Not re-run, and why.**
- **The whole openDox-code suite at any sha**, and so the whole-suite numbers in the T101 and T104 bullets (`4005 passed, 11 skipped` and the like). They are the PRs' own, read from their bodies. They need PostgreSQL and hours.
- **T101:** the workflow itself. I ran none of its jobs or steps, its linters, its mutants, or its live reads (the environment and approval steps). The falsifier's other half, the `build` job over the pinned commit, is T099's. Nothing was dispatched.
- **T104:** the PR's 90 mutants, its Chromium run, and its composed runs against openxFactory and openXdox-code (they need those checkouts composed with `scripts/`).
- **T086:** F5.2 whole, F9.1's other readings, and the composed runs (F5.2's seven suites, the declared-excluded files, 12.5's governed set, the two harness modules as #84 ran them, the 32-entry digest). I tried F5.2's pytest loop composed with `scripts/` from my openxFactory clone, and all seven suites stop at collection (`corpus_adapter_openxfactory.adapter: the pinned openDox corpus-adapter interface is not at …`), because the clone's nested openDox leg is not initialised. I did not pursue it: F5.2 closes at T089. So the bullet's composed numbers are the PR's own.
- **T087:** the PR's three other digest recomputations, and its half-move experiments. `make pins` recomputes the tree digest itself.
- **T076:** the PR's fresh-venv install and start of the stand-in, and its checks against the pin (the bundled PostgreSQL's lifecycle, the `Host` check, the printed lines).

## Validation

- **`python3 scripts/validate-openspec-cli-pin.py --all --strict`**, the pinned CLI 1.12.0, from the openxFactory root, at this head and at `main` `ca1c1486`: both rc 0, `Totals: 110 passed, 1 failed (111 items)`, `0 UNDISPOSITIONED failures`. The one failure is the accepted exception for `add-chain-attestation` (Brett Heap, 2026-09-05). The two outputs are identical line for line but the working directory in the third.
- **The plan-graph tools** (`depcheck`, `chaincheck`, `chaindirect`, `arrowcheck`, `phasecover`, `sharedfiles`, `qcheck`, from the lane's `plantools`), this branch against `main` `ca1c1486`: the output is identical except two things. The box count moves, 78 ticked of 96 on `main` and 83 here. And one `sharedfiles` line gains `conftest.py` from the P3-X row edit (above): `P1-J … vs P3-X … share ['.github/workflows/validate.yml', 'conftest.py', 'test_assembled_surface.py', 'validate.yml']: ordered A<B`. Both read 96 tasks, `cycles: none`, `single-writer chain gaps: 0`, `arrow mismatches: 0` (83 arrows), and `qcheck` reads `headers checked: 27 of 27; mismatches: 0`.
- **Tests that read plan 034's `tasks.md`:** none. `git grep -nE 'specs/034|opendox-standalone-operation' -- tests scripts .github` finds nothing, and this PR touches no code.
- **Every 8-character sha in the added text resolves** with `git rev-parse` in openDox-code, openDox, openXdox-code or openxFactory: 17 of 19. The other two, `c2672463` and `97536dbe`, are tree digests, and I read both in the openDox root's `contracts/code-pin.yaml` (at `e1e3a3c3` and `d5098297`).
- **The open PRs that edit the same file.** None edits `specs/034-opendox-standalone-operation/`. `git merge-tree --write-tree` of the head before the merge of `main` (`eee9e38f`) with each open PR's head reported no conflict (rc 0), and `main` has since taken #1234, which touches four test files only. The open PRs now are #1233 (T097's DRAFT, which edits the openspec change's `tasks.md`, not this file), #1211, #1209, #1138, #594 and #518.

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

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


Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap and others added 2 commits October 5, 2026 17:52
Copilot review on PR #1209 at 4d95979 (thread PRRT_kwDOTAvnrs6npmTu): the
parser opened a candidate section for every bracketed header, so a path line
under [include], [core] or a malformed header became a checkout declaration,
and a register id could resolve to a directory no submodule declares.

_gitmodules_entries now opens a section only for git's submodule headers,
[submodule "name"] and the legacy [submodule.name] (case-insensitive), and
every header closes the section before it, so keys under any other header
are dropped. Every caller (submodule_paths, declared_checkouts and through
them locate_checkout) reads through this one helper.

The new test fails at 4d95979 with the [include] path leaking in as
'repo': 'nested/repo'.

Refs #1208

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in origin/main 8a37a08 (34 commits, including the openDox and
openXdox pin moves). It overlaps nothing in nightly_lane.py or
test_nightly_lane.py. Merged clean.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 5, 2026 18:49
Brings in origin/main 12753f2 (#1233, plan 034 docs only). It overlaps nothing
in the dashboard lane files or the product pins.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>

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 encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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 .gitmodules parser still accepts malformed submodule headers as declarations.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
Resolved since last review (1)

brettheap and others added 2 commits October 5, 2026 19:50
Copilot review on PR #1209 at eb4e5aa (thread PRRT_kwDOTAvnrs6pLFEi): the
header pattern was not anchored after the closing bracket, so a line such as
[submodule "fake"] trailing-junk opened a submodule section and its path and
url became a checkout declaration.

_SUBMODULE_HEADER now matches the whole stripped line. After the closing
bracket only a # or ; comment may follow; git-config allows both there
(measured with git 2.43). The interior follows git's own grammar: no
whitespace after the opening bracket or before the closing one (git refuses
both as a bad config line), whitespace between the section and the quoted
name, and backslash escapes inside it.

git itself would read other trailing text as a same-line variable, for
example [submodule "a"] path = x. git never writes that form, and the lane
deliberately declares nothing for it, so such a section can only skip as
checkout not found, never resolve.

The new test fails at eb4e5aa: the four bad headers leak in as x, y, z
and w.

Refs #1208

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in origin/main 0f2a87f (#1211 doc-health catalog fail-closed with a
Python 3.14 leg, #1244 plan 034 bookkeeping). It overlaps nothing in the
dashboard lane files. Merged clean.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 5, 2026 19:51

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

Valid inline comments in .gitmodules values can still prevent initialized nested repositories from resolving.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
Resolved since last review (1)

Copilot review on PR #1209 at 12d1f76 (thread PRRT_kwDOTAvnrs6pMNwW): a legal
inline comment or a quoted value was kept inside path and url, so an
initialised leg declared as path = spec # product leg resolved as missing.
This was the third review round in which the hand parser drifted from
git-config's grammar.

_gitmodules_entries now asks git itself: git config --file <it> --no-includes
--null --get-regexp for submodule.*.path and url. Section headers, comments,
quoting, escapes, case and dotted submodule names are exactly git's, and
include directives are not followed. A section git reads as a submodule is
read the same way here, including the one-line form; this supersedes the
deliberately stricter anchor of 50ce2eb. Every resulting path still passes
the lane's containment and populated-checkout checks. A file that is
missing, that git refuses (rc 128) or that matches nothing (rc 1) declares
nothing. Non-UTF-8 bytes are carried through surrogateescape.

The round-4 whole-line test is replaced by two tests of git's grammar. Both
fail at 12d1f76. Lane module: 43 passed; importer modules: 483 passed. The
nightly-shaped run is unchanged at 16/25.

Refs #1208

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 5, 2026 20:11

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.

Note

Copilot was unable to run its full agentic suite in this review.

Copilot review overview

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

Open (2)
Resolved since last review (1)

Copilot review on PR #1209 at e1e8c99 (thread PRRT_kwDOTAvnrs6pM49c): the
breadth-first walk in declared_checkouts used list.pop(0), which is O(n) per
pop. It now uses collections.deque and popleft(). Behaviour is unchanged:
shallowest-first order is already pinned by
test_nested_product_legs_resolve_through_the_declaring_gitmodules
(declared["openDox"] == ["openDox", "openxFactory/openDox"]).

Lane module: 43 passed; importer modules: 483 passed.

Refs #1208

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 5, 2026 20:35

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.

…'s --null shape

Copilot review on PR #1209 at 969c640, three threads:

- PRRT_kwDOTAvnrs6pNhIO: PurePosixPath does not see a drive or UNC anchor as
  absolute, so on Windows root / rel could leave the aggregation root.
  _declared_rel now also refuses any backslash and any Windows drive or UNC
  anchor (C:\x, C:/x, \\srv\share). git writes .gitmodules paths with forward
  slashes only, so nothing git declares is lost. Five new cases fail at
  969c640, one of them through a real .gitmodules with a populated checkout
  at C:/x.
- PRRT_kwDOTAvnrs6pNhIi: the index-status skipped entries are now typed as
  a SkippedRepository TypedDict (repository and reason required, paths
  optional) instead of a bare dict. This has no runtime effect.
- PRRT_kwDOTAvnrs6pNhHz repeated the claim that git config --null emits
  key NUL value NUL. It does not; it emits key NEWLINE value NUL. A new test
  pins the exact bytes against the real git, so a change in git's output
  would fail there instead of silently emptying the roster. It passes at
  969c640 too, because the parser was already right.

Lane module: 49 passed; importer modules: 483 passed.

Refs #1208

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 5, 2026 21:49

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

No-work-tree Git repositories can still be mistaken for populated checkouts and publish empty snapshots.

Review effort: Balanced
Findings: None

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

In code that hasn't changed since last review

Medium severity Reject bare repositories when locating populated checkouts

scripts/​ideation_dashboard/​nightly_lane.py:184

None currently conflates “this directory owns a work tree” with “Git found no work tree.” A bare repository has no .git child and rev-parse --show-toplevel fails, but rev-parse HEAD succeeds; locate_checkout therefore accepts it and run_lane can publish an empty snapshot of the bare object-store directory. It can also stop before a later valid candidate. Please use a separate populated-checkout predicate (the stated .git entry or top-level-equals-directory test) so no-work-tree candidates are rejected/fall through rather than treated as populated.

Copilot review on PR #1209 at 1994a65 (overview, "previously missed": reject
bare repositories when locating populated checkouts). A bare repository has
no .git child and rev-parse --show-toplevel fails there, so
_borrowed_toplevel answered None and the directory read as populated. Yet
rev-parse HEAD succeeds there, so the lane could publish an empty snapshot
under the bare repository's HEAD. The same holds inside a .git directory.
This was a gap against the brief's own definition of populated: a .git entry
of its own, or a top level equal to the directory.

_without_work_tree asks git rev-parse --is-inside-work-tree, which answers
false in exactly those places. run_lane skips such a checkout as submodule
not initialised (no work tree) before the generator runs, and
locate_checkout records it as uninitialised. The _borrowed_toplevel
docstring no longer claims HEAD fails in every no-work-tree directory.

Both new tests fail at 1994a65: the generator ran over the bare
repository. Lane module: 51 passed; importer modules: 483 passed; the
nightly-shaped run is unchanged at 16/25.

Refs #1208

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 5, 2026 22:08

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 implementation addresses both reported defects with fail-closed behavior and comprehensive regression coverage.

Review effort: Balanced
Findings: None

@sonarqubecloud

sonarqubecloud Bot commented Oct 5, 2026

Copy link
Copy Markdown

@brettheap
brettheap marked this pull request as ready for review October 5, 2026 22:34
@sourcery-ai

sourcery-ai Bot commented Oct 5, 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 1 day and 19 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-5 (openXfactory-5)

LANDING — lane openXfactory-5, session bbe4d255-02db-4578-840b-09924442e544@Eagle, 2026-10-05T22:37:05Z, PR #1209 into opensoft/openxFactory main

@brettheap
brettheap merged commit ba89e04 into main Oct 5, 2026
17 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-5 (openXfactory-5)

LANDED — lane openXfactory-5, session bbe4d255-02db-4578-840b-09924442e544@Eagle, 2026-10-05T22:37:35Z, PR #1209 into opensoft/openxFactory main → merge ba89e04; Dashboard lane: skip uninitialised submodule checkouts and reach the nested product legs (#1208)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants