Skip to content

Repoint the shed-stale hermeticity probe; install carved reach in the guarded unittest runner - #1195

Merged
brettheap merged 5 commits into
mainfrom
build/034-hermeticity-probe
Sep 28, 2026
Merged

brettheap merged 5 commits into
mainfrom
build/034-hermeticity-probe

Conversation

@brettheap

@brettheap brettheap commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

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

Update — review round 1 (commit 2ba81209)

Copilot found a real bug: a bare find_spec("opendox.workbench") ERRORS
(doesn't skip) on a checkout where the openDox/openXdox gitlinks are
genuinely uninitialized, because carved_reach.install()'s _LegMissing
finder raises CarveReachUnavailable for a carved root name instead of
returning None. Fixed with try/except ImportError around both lookups
(opendox.session_pr and opendox.workbench), mirroring
runner_seams()'s own guard exactly — reproduced with both legs hidden
before and after (now skips cleanly instead of erroring).

That fix exposed a second, separate, pre-existing bug in the recovered
tests/domain_profile/test_hermeticity_probe_routes.py's own negative
control: its bare-unittest child inherits the OUTER pytest session's own
hermeticity-guard PATH shim via subprocess.run's default environment
inheritance (this file's own 3 tests are collected under tests/, so that
guard is already active). Previously masked because the OTHER bug above
always made that same child report FAILED regardless. Fixed with
_bare_environ() (PATH minus any entry under the system temp directory).
Full details, including re-measurement of both fixes together across three
directories, are in the commit message.

Both CI (all 12 checks, including pytest-suite at 19m59s) and Copilot's
next review round (Findings: None, prior finding marked "Resolved since
last review") are green at this head.

What was broken

tests/notebooklm/test_hermeticity_guard.py:87's layer-2 case probed
find_spec("ideation_dashboard.workbench") to decide whether the dashboard
package had arrived yet (pre-shed, self-healing design). The § 5.2 shed moved
workbench.py and session_pr.py to the pinned openDox leg and repointed
tests/hermeticity.py's own runner_seams() to find_spec("opendox.*")
accordingly — but this probe, one file over, was not repointed with it. It has
answered None FOREVER since the shed instead of self-healing, so the case has
been skipping silently rather than asserting anything: one of
pytest-suite.yml's EXPECT_SKIPPED skips (P1-G decision 5, "the find_spec
probe goes silent"; surfaced concretely by plan 034 T047's re-measurement,
which held the recovered route-cases test rather than land it, per T007 batch
E's finding that it belongs in its own, separate, non-Arc PR — this one).

The repair (4 commits)

  1. Repoint the probe — find_spec("ideation_dashboard.workbench") →
    find_spec("opendox.workbench"), the same name the two imports three lines
    down already use and the same name runner_seams() itself already patches.
  2. Install the same carved reach in tests/hermetic_unittest.py.
    runner_seams() can't find opendox.workbench/opendox.session_pr to
    patch unless the openDox leg's src/ is already on sys.path. The pytest
    route gets that for free from tests/conftest.py
    (carved_reach.install(tests=True), run before any test module imports
    anything); the guarded-unittest runner had no conftest to load it from,
    so it silently guarded less than the pytest route over the identical
    tree — measured before this fix: python3 tests/hermetic_unittest.py tests/notebooklm/ ERRORED (ModuleNotFoundError: No module named 'opendox') on exactly the case that needs it, rather than running it or
    skipping cleanly. install_guard() now calls the identical
    carved_reach.install(tests=True) before building the binary shim or
    reading runner_seams().
  3. Add the recovered hermeticity route-cases test (three cases, held at
    p1/P1-K/held/test_hermeticity_probe_routes.py, carried out of
    tests/test_hermeticity.py when that file moved to openDox-code by T035 —
    T035: empty collect_ignore; the seven modules run in a lone checkout (plan 034) openDox-code#51, landed 80acead1). See "Where it landed, and why"
    below for the one adaptation from test step 9 #51's text.
  4. Move EXPECT_SKIPPED 6 → 5 in .github/workflows/pytest-suite.yml,
    with the full accounting (including the two sibling files explicitly left
    alone) recorded beside the pin.

Where the recovered test landed, and why

Not at the pre-shed tests/ideation-dashboard/: that directory is a declared
moved_paths: prefix in docs/opendox-carve-manifest.yaml, and
scripts/validate-carve-manifest.py refuses (carve-file-undeclared) any
file under a moved_paths: prefix that carries no manifest row — the same
reason T034/T035's four sibling relocated cases land under
tests/domain_profile/ instead (T007 batch E finding 5). I measured this
directly (committed the file at the original location first, in a scratch
check, re-ran the validator, got the refusal; moved it, re-ran, got OK) and
placed it at tests/domain_profile/test_hermeticity_probe_routes.py instead.
That directory has no manifest row and no conftest of its own, so REPO_ROOT
is computed locally (Path(__file__).resolve().parents[2], the same pattern
tests/domain_profile/test_openxfactory_profile.py already uses in this same
directory) rather than imported from conftest import REPO_ROOT as #51's text
does — that import resolved through tests/ideation-dashboard/conftest.py,
which this directory doesn't have. The three test bodies are otherwise
verbatim. It is not added to docs/opendox-carve-manifest.yaml's
COMPOSITION_TESTS — T007 batch E (openxFactory#1183) already reversed this
file's provisional membership there after a Copilot finding (it pins nothing
about the composition, and that set is a permanent allow-list) — and it is not
an F11.1 surface.

Scope discipline: two siblings left alone, on purpose

While measuring, I found tests/notebooklm/test_workbench_sweep_wiring.py and
tests/notebooklm/test_sync_notebooklm_books.py carry the identical
stale-name defect (find_spec("ideation_dashboard.workbench") /
find_spec("ideation_dashboard.branch_session"), both raised as a
module-level unittest.SkipTest at import time). Both target modules
(opendox.branch_session, opendox.session_git, opendox.workbench) exist
at the pinned leg — I checked. Fixing them is real, valuable, low-risk
follow-up work (each file's several test methods currently collapse into a
single silent module-level skip), but it's outside this task's declared scope
("the hermeticity-probe repair" — the one file, the one runner, the one pin),
so I left them alone and am flagging them here explicitly rather than quietly
expanding the diff. This is also why EXPECT_SKIPPED moves to exactly 5 and
not further: those two skips are still present in the new total.

Measured (all three routes; no background runs left going)

Isolated probe file, before → after (pytest route):

# before
.s
1 passed, 1 skipped in 0.06s
# after
..
2 passed in 0.04s

tests/notebooklm/ (full directory), before → after (pytest route):

# before: 107 passed, 3 skipped, 30 subtests passed
# after:  108 passed, 2 skipped, 30 subtests passed

(the 2 remaining skips are the two sibling files above, unchanged)

tests/hermetic_unittest.py route, before → after, same directory:

# before: FAILED (errors=1, skipped=2)   [ModuleNotFoundError: No module named 'opendox']
# after:  OK (skipped=2)

Bare python3 -m unittest discover (the negative control), unchanged by
design — still correctly detects the unguarded route:

FAILED (failures=1, errors=1)

The recovered test file itself, at its final location:

$ python3 -m pytest tests/domain_profile/test_hermeticity_probe_routes.py -q
...
3 passed in 2.48s

scripts/validate-carve-manifest.py at the final commit: OK ... 456 file(s) in the declared surface with none undeclared.

Full local suite, all three routes, at HEAD (no background runs left going):

  • pytest (python3 -m pytest tests/ -q -m "not postgres" --junitxml=pytest-report.xml, matching pytest-suite.yml exactly):
    selected=9238 passed=9216 skipped=20 failures=2 errors=0 in 1435s. Both
    numbers that aren't 5/0 are accounted for, not hand-waved:
    • 2 failures, both in test_dashboard_source_seal.py ("reads nothing
      outside the render/serve unit"), both citing
      .venv-hermetic/lib/.../yaml — my own venv sits inside this scratch
      clone (CI's Python comes from actions/setup-python, outside the
      checkout). Reproduced identically on origin/main with none of this
      PR's 4 commits applied (git checkout --detach origin/main, same venv,
      same 2 failures, same file). Not this PR's doing.
    • 20 skipped, not 5 — 15 of the 20 are two more artifacts of running
      outside real CI, not of this PR: 13 are find_openxfactory_validator/
      find_cross_reference_validator walking up for a directory literally
      named openxFactory (this scratch clone is named repo; confirmed by
      re-running the same lookups from a git worktree literally named
      openxFactory — both resolve non-None there), and 2 are
      review_lane_pin's TheFreshnessVerifier/TheVectorReplay skipping for
      lack of PINNED_CORE_CHECKOUT (I have no token for the private
      codeXfactory/codexFactory cross-org checkout CI mints; both are
      documented in pytest-suite.yml itself as skipping under exactly this
      condition). The remaining 5 are real and match the pin exactly: the
      2 conformance-gate self-gate tests that always skip in openxFactory's own
      checkout (DOMAIN_SHAPED = (REPO_ROOT / "stack.yaml").is_file() — always
      False here by construction), the 1 test_set_domain_openxfactory_pin
      LedgerxFactory guard this pin's own history already names as the
      surviving post-shed skip, and the 2 known tests/notebooklm/ siblings
      from the section above.
  • tests/hermetic_unittest.py, run per-directory (its own documented
    usage — the whole tests/ tree in one process hits pre-existing,
    unrelated unittest.discover() cross-package collisions with mixed
    package/non-package directories; verified identical with and without this
    PR's changes via git stash): 48/48 directories completed; the 6
    directories with non-zero results (avatar_runtime and its two
    subpackages, hermes_runtime_contracts and its postgres subdirectory,
    intent-compliance) fail identically on origin/main with none of this
    PR's changes applied (ModuleNotFoundError: No module named 'xfactory' for
    the avatar_runtime case, checked directly) — this runner's own
    pre-existing gap in replicating pytest's import-path setup, not something
    this PR touches or changes.
  • bare python3 -m unittest discover (negative control), same
    per-directory method: most directories report NO TESTS RAN (this repo's
    suite is overwhelmingly pytest-style, not unittest.TestCase-style, which
    bare unittest discover simply can't see); tests/notebooklm is the one
    directory where the negative control matters and it fails as designed.

Constraints honored

  • Fresh clone under scratch, never /workspace/projects/xFactory/*.
  • Checked git diff --stat origin/main... against the T047 branch
    (p1/P1-K/oxf, build/034-p1k-t045-t046-host-wiring) before editing: zero
    file overlap with any of the 25 files it touches.
  • No force-push; no closing keywords anywhere; explicit pathspecs on every
    commit; never git add -A.
  • Opened as DRAFT.

🤖 Generated with Claude Code

Summary by Sourcery

Repair hermeticity probing across pytest and unittest routes after the openDox module relocation.

Bug Fixes:

  • Repoint the hermeticity probe to the relocated openDox modules and handle uninitialized carved legs without turning expected skips into errors.
  • Ensure the guarded unittest runner installs the same carved module reach as the pytest route.
  • Add route coverage for guarded pytest, guarded unittest, and unguarded unittest execution.

Enhancements:

  • Reduce the expected CI skip count from six to five while retaining the two intentionally unchanged sibling skips.

Tests:

  • Add regression coverage validating both guarded routes and the bare unittest negative control.

brettheap and others added 4 commits September 28, 2026 18:22
tests/notebooklm/test_hermeticity_guard.py's layer-2 case probed
find_spec("ideation_dashboard.workbench") to decide whether the dashboard
package had arrived yet. The § 5.2 shed moved workbench.py and session_pr.py
to the pinned openDox leg and repointed tests/hermeticity.py's own
runner_seams() to find_spec("opendox.*") accordingly, one file over — but
this probe was not repointed with it, so it has answered None FOREVER since
the shed instead of self-healing, and the case has been SKIPPING silently
rather than asserting anything (one of pytest-suite.yml's EXPECT_SKIPPED
skips; found measuring plan 034, P1-G decision 5, "the find_spec probe goes
silent").

Repointed to find_spec("opendox.workbench") — the same name the two imports
three lines down already use, and the same name runner_seams() itself
already patches. Measured: `python3 -m pytest tests/notebooklm/
test_hermeticity_guard.py` moves from "1 passed, 1 skipped" to "2 passed".

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

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
tests/hermeticity.py's runner_seams() patches opendox.workbench and
opendox.session_pr, and finds them with find_spec — which finds nothing in a
process where the openDox leg's src/ was never put on sys.path. The pytest
route gets that for free from tests/conftest.py, which every pytest
invocation under tests/ loads (via carved_reach.install(tests=True)) before a
single test module imports anything. tests/hermetic_unittest.py has no
conftest to load it from, so it silently guarded LESS than the pytest route
over the identical tree: measured before this change,
`python3 tests/hermetic_unittest.py tests/notebooklm/` ERRORED
(ModuleNotFoundError: No module named 'opendox') on the one case that needs
the leg, rather than installing layer 2 or skipping cleanly — the same shape
of gap PR #49 finding 17 was about in the first place.

install_guard() now calls the identical scripts/carved_reach.install(tests=True)
tests/conftest.py calls, before building the binary shim or reading
runner_seams(), so the two routes cannot drift apart on what "hermetic" means
between them. Measured: the same command now reports "OK (skipped=2)" (was
"FAILED (errors=1, skipped=2)"), and all 110 tests under tests/notebooklm/
still pass through this route.

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

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Three cases proving finding 17's two fixed routes and the negative control
that makes them meaningful, held at
.../lane-opendox-w8/p1/P1-K/held/test_hermeticity_probe_routes.py since
plan 034 T035 (opensoft/openDox-code#51, landed 80acead1) carried them out of
tests/test_hermeticity.py when that file moved to openDox-code — these three
drive openxFactory's OWN not_moved artifacts (tests/notebooklm/
test_hermeticity_guard.py, the repo-root pytest.ini, tests/hermetic_unittest.py)
and touch no openDox file, so #51 recorded they are not compositions.

T007 batch E (openxFactory#1183) already reversed this file's provisional
COMPOSITION_TESTS membership after a Copilot finding — that set is a
PERMANENT allow-list and this file pins nothing about the composition — and
named its landing as "its own plain, non-Arc-trailered openxFactory PR"
(T066's precedent): this commit.

Placed at tests/domain_profile/, not the pre-shed tests/ideation-dashboard/:
that directory is a declared moved_paths: prefix in
docs/opendox-carve-manifest.yaml, and scripts/validate-carve-manifest.py
refuses (carve-file-undeclared) any file there with no manifest row —
measured, and the same reason T034/T035's four sibling relocated cases also
land under tests/domain_profile/ (T007 batch E finding 5). One adaptation
from #51's text follows from the new location: REPO_ROOT is computed locally
(Path(__file__).resolve().parents[2], matching test_openxfactory_profile.py's
own pattern in this same directory) rather than imported `from conftest
import REPO_ROOT` — tests/ideation-dashboard/conftest.py exported that name;
tests/domain_profile/ has no conftest of its own. The three test bodies are
otherwise verbatim.

Two of the three cases were RED before this repair's other two commits
(P1-G decision 5, "the find_spec probe goes silent"); this file is the
re-measurement proving it. Measured: `python3 -m pytest tests/domain_profile/
test_hermeticity_probe_routes.py` — 3 passed. `scripts/validate-carve-manifest.py`
still reports OK with this file present.

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

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…epair

One of the pinned 6 was never a stand-down at all: tests/notebooklm/
test_hermeticity_guard.py's layer-2 case carried the same shed-name defect
this pin's own history is already full of — a stale find_spec probe that
answers None forever after the § 5.2 shed instead of self-healing, so it
SKIPPED silently instead of asserting anything. Repointed in this same
change, plus the matching carved-reach install in tests/hermetic_unittest.py
so the guarded-unittest route agrees with the pytest route on this case
instead of one of them erroring.

Two sibling files in the same directory (tests/notebooklm/
test_workbench_sweep_wiring.py, tests/notebooklm/test_sync_notebooklm_books.py)
carry the identical stale-name defect and are NOT touched here — out of this
repair's declared scope, left as a follow-up — which is why the pin falls to
5 rather than further. MEASURED, not estimated: `pytest tests/notebooklm -q
-rs` moves from "3 skipped" (this case plus those same two siblings) to
"2 skipped" (the two siblings alone) over an unchanged 108 passed / 30
subtests passed.

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

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings September 28, 2026 18:45
@sourcery-ai

sourcery-ai Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

The PR restores hermeticity coverage after the openDox package relocation by repointing readiness checks, installing carved reach in the standalone unittest runner, and adding route-level regression tests. It also updates CI’s expected skip count while explicitly leaving two related sibling skips out of scope.

Sequence diagram for hermeticity probe setup across test runners

sequenceDiagram
    participant Runner
    participant CarvedReach as carved_reach
    participant Guard as install_guard
    participant Probe as hermeticity probe
    participant OpenDox as opendox modules

    alt pytest route
        Runner->>CarvedReach: install(tests=True)
        Runner->>Probe: runner_seams()
    else guarded unittest route
        Runner->>Guard: install_guard()
        Guard->>CarvedReach: install(tests=True)
        Guard->>Probe: runner_seams()
    end
    Probe->>OpenDox: find_spec(opendox.session_pr)
    Probe->>OpenDox: find_spec(opendox.workbench)
    OpenDox-->>Probe: module spec or ImportError
    Probe->>OpenDox: import opendox.session_pr
    Probe->>OpenDox: import opendox.workbench
Loading

File-Level Changes

Change Details Files
Repoint the hermeticity probe to the relocated openDox modules and make missing carved legs skip cleanly.
  • Probe both opendox.session_pr and opendox.workbench instead of the removed dashboard path.
  • Handle ImportError from carved-reach lookup failures before deciding to skip.
  • Keep the in-process runner imports aligned with the readiness probe.
tests/notebooklm/test_hermeticity_guard.py
Align the guarded unittest runner with pytest’s carved module path setup.
  • Add the scripts directory to the runner’s import path.
  • Install carved_reach before creating the hermeticity shim and applying runner seams.
  • Allow uninitialized openDox legs to be guarded or skipped instead of failing with ModuleNotFoundError.
tests/hermetic_unittest.py
Add regression coverage for hermeticity behavior across all execution routes.
  • Cover pytest execution from the conftest-less notebook directory.
  • Cover the guarded unittest runner’s refusal behavior.
  • Use a PATH-sanitized environment for a bare-unittest negative control and assert that it remains unguarded.
tests/domain_profile/test_hermeticity_probe_routes.py
Update the CI skip-count pin and document the intentional scope boundary.
  • Change EXPECT_SKIPPED from 6 to 5 with accounting for the repaired probe.
  • Document the two sibling notebook tests that retain their stale-name skips.
.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

🟡 Changes recommended

An unresolved critical issue can cause route tests to error when the openDox leg is unavailable.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

This PR restores hermeticity coverage after the openDox shed and aligns pytest and guarded-unittest import paths.

Changes:

  • Repoints the stale module probe to opendox.
  • Installs carved reach in the guarded unittest runner.
  • Adds route coverage and updates expected skip accounting.
File Review
tests/​notebooklm/​test_hermeticity_guard.py Critical (4 votes): carved_reach.install() may raise instead of reaching the skip branch when openDox is unavailable; catch ImportError during probing.
tests/​hermetic_unittest.py Installs carved import reach before applying guards.
tests/​domain_profile/​test_hermeticity_probe_routes.py Nit (1 vote): Clarify that these tests are intentionally outside COMPOSITION_TESTS.
.github/​workflows/​pytest-suite.yml Updates expected skip-count accounting.

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

Copilot (PR #1195, tests/notebooklm/test_hermeticity_guard.py:100): a bare
find_spec("opendox.workbench") errors rather than skips on a checkout where
the openDox/openXdox gitlinks are genuinely uninitialized.
carved_reach.install() arms sys.meta_path with _LegMissing whenever a leg is
missing, and _LegMissing.find_spec() RAISES CarveReachUnavailable (an
ImportError) for a carved root name rather than returning None -- Reproduced:
with both legs hidden, the pytest and guarded-unittest routes both ERRORED
instead of skipping. Fixed the same way tests/hermeticity.py's own
runner_seams() already guards against this: try/except ImportError around
both find_spec lookups (session_pr and workbench, matching the two imports
this case goes on to make), skip cleanly on either outcome. Re-measured with
both legs hidden: both routes now skip cleanly ("1 passed, 1 skipped" /
"OK (skipped=3)"); with both legs present, unchanged ("2 passed" /
"OK (skipped=2)").

That fix exposed a second, separate, pre-existing gap in
tests/domain_profile/test_hermeticity_probe_routes.py's own negative control
(not part of Copilot's finding; found while re-verifying it). This file's
three tests are collected under tests/, so tests/hermeticity.py's
session-scoped hermetic_binary_path fixture is already active for the OUTER
pytest process by the time any of them runs, and subprocess.run inherits
os.environ -- PATH included -- by default. The bare-unittest negative
control's child therefore resolved `nlm` to the OUTER session's OWN shim
instead of the real binary, and "the guarded binaries resolve to a real
binary" assertion inside it started passing for the wrong reason. This was
invisible before this same commit's other half: the in-process-runners case
ALSO reliably errored on the bare find_spec above for an unrelated reason,
which alone made the bare-unittest child report FAILED regardless of the
PATH-inheritance bug. Once that error started skipping cleanly instead, the
masked bug surfaced: measured, the negative control started passing (`OK
(skipped=1)`, rc=0) instead of failing. Fixed with `_bare_environ()`: PATH
minus any entry under the system temp directory, where every hermeticity
guard shim lives and no real installed binary ever does. Re-measured: 3
isolated runs, all deterministic "3 passed"; combined with
tests/notebooklm/, tests/ideation-dashboard/ and this file together (the
broadest realistic collection), 2 failed / 1596 passed / 15 skipped -- the
2 failures are the already-documented, already-proven-unrelated
.venv-hermetic-inside-the-checkout artifact in test_dashboard_source_seal.py
(identical on origin/main with none of this PR's commits applied).

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

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

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

Address the two moderate route-test assertions and the noted documentation contradiction.

Review effort: Lite
Findings: None

Resolved since last review (1)

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap marked this pull request as ready for review September 28, 2026 22:21
@brettheap

Copy link
Copy Markdown
Contributor Author

READY at 2ba8120 — 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.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@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-28T22:24:23Z, PR #1195 into opensoft/openxFactory main

@brettheap
brettheap merged commit b64ca54 into main Sep 28, 2026
17 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

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

LANDED — lane openxfactory-4, 2026-09-28T22:24:36Z, PR #1195 → b64ca54 (opensoft/openxFactory main; squash)

brettheap added a commit that referenced this pull request Sep 28, 2026
…s branch

Since e369cb2, `main` has gained two commits:
- #1195: the shed-stale hermeticity probe is repointed; the guarded unittest
  runner installs the carved reach; T035's three route cases are added as
  `tests/domain_profile/test_hermeticity_probe_routes.py`; and
  `EXPECT_SKIPPED` moves from 6 to 5;
- #1183: batch E's amendments to #1144's tasks.md.

No file overlaps this branch. Both gitlinks are unchanged by the merge:
openDox 663ac683 and openXdox 57e2b8f2.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 29, 2026
…57e2b8f2, with T045 and T046's host wiring (plan 034) (#1181)

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

Arc: neutral-product-standalone-operability

**T047, and it stays DRAFT.** This PR is plan 034's task **T047**: phase 1's consumer pins, carrying the host wiring of **T045** and **T046** (slice P1-K) as T047's task text requires (*"openxFactory then moves both pin pairs in ONE PR, which also carries T045 and T046"*). Per `#656` comment `5856475254` finding 3, it lands after T007 batch E (#1183). Batch E has now landed as `b9742534`, and it is merged into this branch at `96ca2b06`.

- **Plan**: `specs/034-opendox-standalone-operation/tasks.md` at `main`. The T045–T047, T090 and T092 lines are unchanged since `468863d1` (checked at `main` `e369cb25`).
- **Claim**: T047, `#656` comment `5873306432` (P1-K's was `5852803348`).
- **Ruled**: R1Q1 (a), R1Q2 (a), R1Q4 (a), R1Q9 (a) (`5817152735`); P1-K's three questions, all (a) (`5856475254`).
- **Rule 6**: the net diff against `main` touches no `openspec/` path. The `openspec/` changes on the branch are all main's, merged in: batch B (#1194) at `f79a72f3`, and batch E (#1183) at `96ca2b06`. Both touch `openspec/changes/add-neutral-product-standalone-operability/tasks.md`.
- **Landing order, done**:
  - Batch E has landed (`b9742534`).
  - opensoft/openXdox#20 has landed, squashed to `57e2b8f2`.
  - `1a32fe8d` re-points this PR's `openXdox` gitlink and `contracts/openxdox-pin.yaml` to that LANDED sha (runbook § 3 step 1: *"NEW_SHA must be on opensoft/openXdox main"*).
  - The PR stays DRAFT until the coordinator marks it READY.

## The pins: both pairs in ONE commit (`b4e701cb`)

| pair | gitlink | pin file `commit:` | `digests.tree_sha256` |
| --- | --- | --- | --- |
| openDox | `dc7aa08f` → **`663ac683`** | same | `adc049c9…7cee` → **`ec826603…9d5d`** (28 records) |
| openXdox | `069fe471` → `6495ba98` (`b4e701cb`) → **`57e2b8f2`** (`1a32fe8d`) | same | `3ad15b72…3b48` → `ff568ab3…8e31` → **`e52c1383a0fcc71a4abd7fa75821f6f2473c52ac1211e448acf0a2ba0c1a6390`** (29 records) |

- `663ac683` is openDox root `main`, two commits ahead of `dc7aa08f`:
  - opensoft/openDox#12 (`36ded1cd`) changes only `contracts/CHANGELOG.md`;
  - opensoft/openDox#13 (`663ac683`, T039) moves `code` `d816cf06` → `2d116415` with `contracts/code-pin.yaml`.

  Nothing else changes. `dox-v1.0` still tags `dc7aa08f`, which is an ancestor of `663ac683`.
- **`57e2b8f2` is opensoft/openXdox `main`, where #20 squash-landed.**
  - #20 moves `code` `e28930bf` → `6158151e`. That is openXdox-code `main` after #29–#33, which are T040–T044; T044 landed as #33 → `6158151e`.
  - #20 also moves `contracts/opendox-pin.yaml` `dc7aa08f` → `663ac683` (T090 step 5).
  - `b4e701cb` pinned #20's head at the time, `6495ba98`.
  - `1a32fe8d` re-points to the landing. Its tree is #20's final head, `4b7555f3`, whose two review commits change only `contracts/CHANGELOG.md` and `contracts/manifest.yaml` prose. So only the digest moves, and the derived `contracts/opendox-pin.yaml` is the same blob.
- Every digest was recomputed three ways, with controls on the old values: `repo_shape.tree_digest`, an independent `ls-tree` + `sha256`, and the forge's tree listing. `57e2b8f2`'s digest was recomputed the same way.
- **Why one commit and not "one commit each" (T090 step 6).** The runbook's § 4 comparison prints `DIFFERENT`: `openXdox@6495ba98 derives openDox 663ac683c04c…; this repository pins dc7aa08fe48c…`. So § 3 step 8 moves the openDox pair *"in the SAME commit"*. Each pair still moves as one unit (box 9.5). Split, the first commit would fail `verify-opendox-pin.py` check 5. **The holder confirmed the single commit** (answer 1 below). This PR therefore deliberately departs from T090 step 6's "one commit each".
  - The re-point, `1a32fe8d`, moves the openXdox pair alone. At `57e2b8f2`, § 4 prints `openXdox@57e2b8f2 derives openDox 663ac683…; this repository pins 663ac683…`, so the openDox pair does not move.
- Both pin files are edited in place, keeping 216 and 154 lines. The openDox `migration:` triple keeps `range` and `reversible` (`2d116415`'s `migrations/` holds the same two files). Its `runbook` names the new code leg. The block is identical to openXdox's derived copy, which `tests/opendox_pin` asserts.
- **Gates**:
  - At `96ca2b06`, `verify-openxdox-pin.py` prints `OK openxdox-pin verified: openXdox@57e2b8f2…, gitlink read from HEAD`, with digest `e52c1383…`.
  - `verify-opendox-pin.py` prints `OK … openDox@663ac683…, lockstep with openXdox confirmed`.
  - On the staged index before `1a32fe8d`, both printed `OK`, the openXdox one reading `gitlink read from the index`.
  - In the openXdox root, `make pins` and `make validate` exit 0 at `4b7555f3`, whose tree `57e2b8f2` carries.

## What else it carries

| commit | what | F11.1 surface |
| --- | --- | --- |
| `b31829d3`…`c4dcaba8` | P1-K's host wiring (T045, T046): below, under "History" | HOST, HOST_TESTS, batch A's two COMPOSITION_TESTS |
| `4303e67c` | `scripts/route_extension.py` resynced `34802071` → `7781665d` (62817 B, sha256 `d81124e6…87515`). `scripts/sync-notebooklm-books.py`'s `session_source_set()` calls `opendox_host.register_openxfactory()` first. A test holds that order. | named arc edits, `5856475254` items 1–2 (batch E) |
| `7cd76cdb` | T034's 4 moved cases and 9 of T035's 13, in six files under `tests/domain_profile/` | HOST_TESTS |
| `e54d8253` | 37 `created:` admissions in `docs/opendox-carve-admissions.yaml`, pinned in `tests/carve_arrival` | **none**: batch E admits it (answer 2) |
| `a5898490` | the two batch-E composition tests, each moved to the seam phase 1 put in place | batch E's COMPOSITION_TESTS |
| `b05175f7` | two tests that record the pins' own values: the openXdox pin suite's snapshot literal, and the seal's by-name leg modules (with the lane's `RENDER_LEG_MODULES`) | **none**: batch E admits it (answer 2) |
| `f79a72f3` | merge of `main` `e369cb25` (batch B, #1194) | none (main's own change) |
| `42a998dc` | `scripts/opendox_host.py` names the home seam as the one seam that overwrites, and says why that overwrite never reaches another host's home (Copilot, at `f79a72f3`). Two subprocess tests pin both cases. No behaviour change. | HOST, HOST_TESTS |
| `16134cc9` | `register_seams()` checks every declared seam's take-back calls before anything is written, so a later refusal's take-back never meets a missing call (Copilot, at `42a998dc`). One parametrized test with four cases. No change at the pinned leg. | HOST, HOST_TESTS |
| `1a32fe8d` | the re-point: the `openXdox` gitlink and `contracts/openxdox-pin.yaml` move `6495ba98` → `57e2b8f2`, #20's landing, with the new `tree_sha256`. The file keeps 154 lines. | PIN_PAIRS |
| `96ca2b06` | merge of `main` `b9742534`: #1195 (the hermeticity probe; `EXPECT_SKIPPED` 6 → 5) and batch E (#1183) | none (main's own change) |
| `091a32f9` | a clean-interpreter test of the standalone NotebookLM sync (Copilot, at `96ca2b06`). Loading the script imports neither `opendox` nor the host. The first `session_source_set()` installs the pinned reach, registers, and reads; the second reads the same documents through the same profile. It catches both planted breaks. The measurement is in comment `5880677597`. | HOST_TESTS |
| `6de2b407` | `test_workbench_manifest_validation.py`'s import-time resolution answers None for `CarveReachUnavailable` (a leg not on disk), so its three cases skip rather than failing collection (Copilot, at `091a32f9`). Two tests pin it. | HOST_TESTS |

**The `route_extension` row has no note to extend.** Batch E admits the resync *"provided the row's `note` is EXTENDED, never rewritten"*. The row (`docs/opendox-carve-manifest.yaml:2993`) is `not_moved / replicated_at_destination` with no `edits[]` entry at all, so it has no `note`. F11.1's content check refuses any other field change, so the manifest is untouched. Its `evidence` records the `carve_commit` blob, which is still true. Batch E records the unchanged row (answer 2).

## The falsifiers, at the COMMITTED pins

T047's falsifiers are `make pins` in the openXdox root, `verify-opendox-pin.py` and `verify-openxdox-pin.py` (all above), and `pytest-suite`.

Every run below is the `pytest-suite` step exactly: `pytest tests/ -q -m "not postgres"`, Python 3.12.3, the hash-pinned lock, node 24, `PINNED_CORE_CHECKOUT` at codexFactory `b21f0100`. It runs in a checkout named `openxFactory`, whose gitlinks are the committed pins, recursively initialized: openDox/code `2d116415`, openDox/spec `8fe8c4c7`, openXdox/code `6158151e`, openXdox/spec `f088b097`. This is the first run that can adjudicate `tests/snapshot_equivalence/`, and it passes 115 of 115.

| run | tree | result |
| --- | --- | --- |
| T1a | the pins commit alone, `b4e701cb` (with P1-K's wiring) | **interrupted: 1 error during collection** |
| T1 | the same, with `--continue-on-collection-errors` | **266 failed, 1 error**, 8547 passed, 6 skipped |
| T3 | `b05175f7` | **8886 passed, 6 skipped, 0 failed, 0 errors**, 412 subtests (JUnit counts 9304 = 8886 + 6 + 412) |
| T4 | `f79a72f3` (adds main `e369cb25`) | **8886 passed, 6 skipped, 0 failed, 0 errors**, 412 subtests |
| CI | `f79a72f3` | `pytest-suite`: `8886 passed, 6 skipped`, read as `selected=9304 passed=9298 skipped=6 failures=0 errors=0`; floors met with margin 2254, `skipped==6`. All 12 checks pass. |
| CI | `42a998dc` | `openxdox-consumer-gate` passes (105/105/0 and 1480/1480/0), and so do the other checks. |
| CI | `16134cc9` | **All 12 checks pass.** `pytest-suite`: `8892 passed, 6 skipped` (the six added cases), read as `selected=9310 passed=9304 skipped=6 failures=0 errors=0`, with margin 2260 and `skipped==6`. `openxdox-consumer-gate`: 105/105/0 and 1480/1480/0. Copilot's review here has no findings. |
| T5 | `96ca2b06` (head: the landed pin, with main `b9742534`) | **8896 passed, 5 skipped, 0 failed, 0 errors**, 412 subtests. The consumer gate chain: both verifiers `OK`, 105/105/0, 1480/1480/0. |
| CI | `96ca2b06` | **All 12 checks pass.** `pytest-suite`: `8896 passed, 5 skipped`, read as `selected=9313 passed=9308 skipped=5 failures=0 errors=0`, with margin 2263 and `skipped==5`. `openxdox-consumer-gate` passes. |
| CI | `6de2b407` (head) | **All 12 checks pass.** `pytest-suite`: `8899 passed, 5 skipped`, read as `selected=9316 passed=9311 skipped=5 failures=0 errors=0`, with margin 2266 and `skipped==5`. Copilot's review here: "Needs a closer look", with no findings and no open thread. |

- **The skips are main's own, node for node.**
  - Through `16134cc9` there were 6. T4's skipped set equals the one from a run of `main` `468863d1` at the old pins.
  - At `96ca2b06` there are 5, `main`'s `EXPECT_SKIPPED: "5"` since #1195. The one case that left the set is #1195's own: `test_hermeticity_guard`'s in-process-runner case now asserts. No case entered it.
- **`openxdox-consumer-gate`** (CI at `f79a72f3`, and locally at `b05175f7`): both verifiers print `OK`. The pin suites give 105 / 105 / 0 (margin 0). `tests/ideation-dashboard` gives 1480 / 1480 / 0 against floors of 1137 and exactly 0 (margin 343).
- **The other PR gates** exit 0 at `b05175f7`: `validate-carve-manifest`, `validate-sequenced-after`, `validate-clearing-dispatch`, `validate-release-tag-gate`, `validate-signed-execution-chain --require-pinned-wallet-vocabulary`, `verify-openxwallet-pin` and `validate-former-id-arrival`. At `42a998dc` and at `16134cc9`, `validate-carve-manifest` (`456 file(s) in the declared surface with none undeclared`) and `validate-former-id-arrival --base main --head HEAD` pass again. At `16134cc9`, `tests/domain_profile` gives 74 passed, and the suites that import the host give 643 passed: the cli and serve column splits, route_extension, the source seal, the display facet and snapshot_equivalence.

## The red list, for batch E (#1183)

Every red at the committed pins (T1), and what answers it. T1's 267 entries are 260 in A1, and 1 error and 6 failures in A2. One more red was hidden behind the collection error. The exact node ids are in the lane's `PROGRESS-T047.md`. At the head, the list is empty (T3, T4, and CI at `f79a72f3`).

**A1. 260 reds, one cause.** Every one raises `AttributeError: module 'route_extension' has no attribute 'collect_handler_contributions'`. openxFactory's stale replica is found ahead of the leg's copy. `4303e67c` cures all 260, and no test is edited. The 260 are spread over these files:

| reds | file |
| ---: | --- |
| 148 | `tests/ideation-dashboard/test_doxbench_routes.py` |
| 52 | `tests/ideation-dashboard/test_gate_routes.py` |
| 20 | `tests/ideation-dashboard/test_serve_column_split.py` |
| 15 | `tests/ideation-dashboard/test_route_extension.py` |
| 8 | `tests/ideation-dashboard/test_intent_feed.py` |
| 5 | `tests/ideation-dashboard/test_snapshot_abstract_noninterference.py` |
| 4 | `tests/ideation-dashboard/test_staging_seed.py` |
| 3 | `tests/ideation-dashboard/test_shared_identity.py` |
| 2 | `tests/ideation-dashboard/test_intent_plane_boundary.py` |
| 2 | `tests/domain_profile/test_openxfactory_host_wiring.py` |
| 1 | `tests/test_engineering_profile_display_facet.py` |

**A2. The other seven: one collection error and six failures.**

1. **`tests/ideation-dashboard/test_doxbench_status_exemption.py`: a COLLECTION ERROR**, which in CI interrupts the whole suite.
   - Its `from test_doxbench_packet import …` executes openXdox-code `6158151e`'s `from conftest import assert_not_at_this_leg, carved_module_path`. In this process `conftest` is this directory's, which has neither name.
   - `a5898490` lends both names as refusals for that one import and takes them back.
   - **Batch E names this file, but does not yet record this edit.**
2. `tests/domain_profile/test_openxfactory_host_wiring.py::test_the_lanes_column_arrives_where_the_pinned_leg_binds_it` names the stale replica, as designed. `4303e67c` cures it.
3. `tests/ideation-dashboard/test_extension_point_parity.py::test_the_mixins_precede_simplehttprequesthandler_in_the_mro`: the same as item 2.
4. `tests/ideation-dashboard/test_authoring_classify_derivation.py::test_the_gate_reaches_the_corpus_only_through_the_two_public_names`: *"authoring.py binds [] out of the adapter package"* (T020/T021). The assertion becomes `bound == []`, and the two public names are asserted as `DocumentId` and `home` (`a5898490`).
5. `tests/openxdox_pin/test_openxdox_pin_verifier.py::test_ruling_q7_two_direct_upstreams_in_lockstep`. Its snapshot literal moves `dc7aa08f` → `663ac683`, and its comment says it *"is expected to move on every future bump"* (`b05175f7`). **Not an F11.1 surface.**
6. and 7. `tests/ideation-dashboard/test_dashboard_source_seal.py::test_the_render_leg_modules_are_what_the_render_unit_imports_by_name` and `::test_the_serve_leg_modules_are_what_the_serve_entry_imports_by_name`.
   - #1166's seal (on `main`) holds the render unit's by-name leg imports to an `ast` read of the entry and its host bootstrap. T046's `opendox_host.seams()` imports four more modules: `corpus_adapter`, `doxbench_packet`, `serve_wire` and `workbench`.
   - `b05175f7` adds the four to `RENDER_UNIT_IMPORTS` and to the lane's `RENDER_LEG_MODULES` (`scripts/ideation_dashboard/dashboard_refresh_lane.py`). The seal carries a leg's whole `src/`, so no sealed artifact changes.
   - This red is #1166 merging with the host wiring, and it appears at any pin. **Neither file is an F11.1 surface.**

**Hidden behind item 1.** `tests/ideation-dashboard/test_doxbench_status_exemption.py::test_the_dependence_on_the_carved_rail_sits_at_exactly_one_line` could not run in T1, and it is red once the file collects.
- It asserts exactly one import of `ideation_dashboard.doxbench_status_exemption` in the leg's `doxbench_packet.py`.
- openDox-code `d816cf06` has that import once, at line 177. `2d116415` has none, because T027 removed it.
- `a5898490` moves the pinned count from one to none, and asserts `_status_exemption()` as the one reader of the registered rail.

**C. Where the proposed destinations would have been red.**

- **The carve surface refuses a new file.** `tests/ideation-dashboard/` is inside the manifest's `moved_paths:`. So `validate-carve-manifest.py` refuses `carve-file-undeclared` for each of the six moved-case files at their proposed paths (measured). F11.1 forbids the row that would declare them.
  - So they land under `tests/domain_profile/`, with the proposed basenames. That directory is outside the surface and is F11.1's HOST_TESTS prefix.
  - Batch E's two T034 COMPOSITION_TESTS entries, `tests/ideation-dashboard/test_outline_template_agreement.py` and `…/test_memory_gateway_roster.py`, name files that cannot exist there. Batch E records the relocation (answer 2).
- **Held: T035's three hermeticity route cases.** In openxFactory, two FAIL: `test_a_pytest_run_started_inside_a_conftestless_directory_is_guarded` (`1 passed, 1 skipped`, where `2 passed` is expected) and `test_the_bare_unittest_route_is_detected_as_unguarded` (the bare route exits 0).
  - The cause is `tests/notebooklm/test_hermeticity_guard.py:87`, which still asks `find_spec("ideation_dashboard.workbench")`. That is None since the shed, so the probe's layer-2 case silently skips, and it is one of the six `EXPECT_SKIPPED`. This is P1-G decision 5's "find_spec probe goes silent".
  - Measured: with `find_spec("opendox.workbench")`, the pytest route and the negative control pass. The `tests/hermetic_unittest.py` route then errors (`No module named 'opendox'`), because that runner installs no reach.
  - A repair touches that probe, `tests/hermetic_unittest.py`, and `EXPECT_SKIPPED` 6 → 5. None of the three is an F11.1 surface. These cases are now on #1195 (answer 2).
- **Held: T035's `test_worktree_container_is_gitignored_in_the_aggregation_repo`.** It skips wherever no xFactory aggregation checkout encloses the tree, CI included, so it would move `EXPECT_SKIPPED` 6 → 7. Batch E records it as held (answer 2).

## The admissions (`e54d8253`)

The coordinator's step 4: `docs/opendox-carve-admissions.yaml` gains 37 `created:` entries. Each `since` is the file's introducing commit, the leg's own squash landing, checked with `git log --diff-filter=A`. Each path is present at the new pin.

- **`openxdox_code`, 24.**
  - openXdox-code#29 (T040), `d84b5048`: 15 files. The `base-repo` fixture is listed file by file, because the verifier matches exact paths (`if relpath in allow_created`).
  - #30 (T041), `5fbd188e`: 4.
  - #31 (T042), `4e16db95`: 4.
  - #33 (T044), `6158151e`: 1, the coordinator's entry, verbatim.
- **`opendox_code`, 13, beyond the coordinator's list.**
  - 11 are the files openDox-code #33 and #37–#49 added after `d816cf06`.
  - 2 are openDox-code#31's (`93ccc3dd`). The arrival run at `d816cf06` already needed them as `--allow-created`, and no earlier bump admitted them.
  - **Kept** (answer 3).
- **Derived, not run green.** At both new pins, `verify-carve-arrival.py --phase B` refuses `arrival-undeclared-edit` before it reaches the created-file walk. Phase 1's arc edits to carved files carry no declared-edit act (batch A's addendum to 11.1). So each list is the set of files added between the last pin where the run was green (openXdox-code `e28930bf`, which is OK with 34 admissions; openDox-code `d816cf06`) and the new pin.
- **The pinning test.** `tests/carve_arrival`'s committed-admissions test records the fourteenth amendment, and pins all 37 by path and `since`, counted in the committed file. A moved `since` fails it, and so does a planted extra entry (both measured). `tests/carve_arrival` and `tests/carve_manifest` together: 409 passed.

## Copilot, on T047

Copilot raised eleven threads at `b05175f7`, `f79a72f3` and `42a998dc`. Each is answered and resolved, and two changed code:

- **The home seam's overwrite** is answered in `42a998dc`. Its documentation changes, two tests are added, and there is no behaviour change.
- **The take-back calls** are now checked before any write, in `16134cc9`.
- **The `openXdox` gitlink and the openXdox-code replica** were already moved and resynced, in `b4e701cb` and openXdox-code#29.
- **The pin-scope pair** is answered by this description.
- **The admissions order** was already sorted: `c` < `d`.
- **The two composition assertions** always sit on the new leg, because the pin move precedes them in this PR.
- **The `route_extension` replica** stays byte-identical to both legs. The nested-scope point is recorded for openDox-code's owner.
- **The arrival verifier** needs no manifest change (answer 2).

## The holder's answers (relayed by the coordinator, 2026-09-28)

1. **One commit for both pin pairs**, as the runbook requires (§ 3 step 8, § 4 `DIFFERENT`). `b4e701cb` is that commit. It deliberately departs from T090 step 6's "one commit each".
2. **Batch E (#1183) records the rest**:
   - the five paths edited outside every F11.1 surface, as admitted arc edits:
     - `docs/opendox-carve-admissions.yaml`;
     - `tests/carve_arrival/test_verify_carve_arrival.py`;
     - `tests/openxdox_pin/test_openxdox_pin_verifier.py`;
     - `tests/ideation-dashboard/test_dashboard_source_seal.py`;
     - `scripts/ideation_dashboard/dashboard_refresh_lane.py`;
   - the status-exemption collection fix;
   - the unchanged `route_extension` manifest row;
   - the relocation of the moved cases to `tests/domain_profile/`;
   - the held hermeticity and aggregation `.gitignore` cases.

   The hermeticity cases are now on #1195 (READY). This answers questions 2 to 5.
3. **Keep** the 13 `opendox_code` admissions.
4. **T092's phase-1 notes go to the T049 checkpoint bookkeeping**, not to this PR.

## History: P1-K (T045, T046)

P1-K's measurements, from `b31829d3` to `c4dcaba8`, were verified with a local composition that points at openDox-code main, as a measurement only, never committed.

- **The wiring.**
  - `profile_openxfactory.HANDLER_CONTRIBUTIONS = (LaneRoutes,)`, which `opendox_host.FACETS` forwards (T045).
  - One process-start call, `register_openxfactory()`, fills openDox-code phase 1's five seams (T046): the home corpus, the session-notebook scope `documents`, the scoped health check, the doxBench validators and the status-exemption rail.
  - It asserts that its profile is the registered one (R1Q4 (a)). It fills all five seams or none, and it takes back its own partial writes on a refusal.
- **Tests.** `tests/domain_profile/test_openxfactory_host_wiring.py` held 28 tests at `c4dcaba8`. `42a998dc` adds two and `16134cc9` adds one parametrized test with four cases, for 34 cases. Batch A's two composition tests move with the facet.
- **CI at `c4dcaba8`** (the current pins then): `8500 passed, 6 skipped`.
- **The red list at openDox-code `main`**, then: comment `5853319553`.
- **Copilot.** Five threads, each answered and resolved. The last review, at `c4dcaba8`, had no findings.

## Rulings

Brett answered P1-K's three questions at (a), recorded in `#656` comment `5856475254` (2026-09-27T13:54:40Z):

1. The stale `route_extension.py` copies are resynced to openDox-code #40's, and batch E admits both as named arc edits. openxFactory's copy is resynced in T047's PR, which is `4303e67c` here. openXdox-code's was resynced in openXdox-code#29.
2. The NotebookLM sync's missing `register_openxfactory()` call goes in T047's PR, which is `4303e67c` here.
3. F11.1's `COMPOSITION_TESTS` arm lands as a bookkeeping PR with batch E, before T047.

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


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 29, 2026
…2), tick both (plan 034) (#1202)

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

T017/T018 (P1-L, after P1-K): plan 034's phase-1 interim F11.1, and the read-only 3.3 check that rides on it.

**Rule 6**: this PR touches `openspec/changes/add-neutral-product-standalone-operability/tasks.md`, so it lands under a Rule 6 `LANDING`/`LANDED` window. The holder's lander handles that. It carries **no `Arc:` trailer** — evidence and bookkeeping never do (R1Q20 (a)).

## What happened, in order

1. **Step 0.** Polled `gh pr view 1181 -R opensoft/openxFactory` until it merged. `ARC_TIP = f56c87c` (#1181, T047 — squash-merged, on `main`'s first-parent line, carries `Arc: neutral-product-standalone-operability`).
2. **First F11.1 run FAILED.** Reconstructed the guard from `openspec/changes/add-neutral-product-standalone-operability/tasks.md`'s executable block, widened only by T007 batch A's `COMPOSITION_TESTS` (the ratified widening in force at the time), with batch E's final four-path set. At `ARC_TIP`, it failed (exit 1), breaching on exactly seven paths — the same seven T007 batch E's own text already named "ADMITTED arc edits, not a composition test" and flagged as having "no guard-code mechanism... yet".
3. **Stopped and reported**, per this task's own instruction: did not "fix" F11.1 or the manifest, did not tick either box, did not open a PR — reported the exact output to the coordinator.
4. **Brett ruled.** #656, comment [5890601202](#656 (comment)), 2026-09-29T12:46:55Z: *"Named closed list (Recommended)"* — F11.1 gains an `ADMITTED_ARC_EDITS` set naming exactly those seven paths, each with batch E's recorded reason; any other path still fails the guard; later phases extend the list only by a further ruling.
5. **Carried out the ruling** (this PR):
   - `openspec/changes/add-neutral-product-standalone-operability/tasks.md`: 11.1's `FALSIFIED BY` executable block now defines `COMPOSITION_TESTS` (batch A/E's widening — landed in code for the first time; it had only ever been prose until now) and the new `ADMITTED_ARC_EDITS`, and the `elif` arm admits both. Batch E's three "UNRESOLVED"-flavoured callouts are replaced with pointers to the ruling. **Nothing in the historical record is deleted** — the per-path reasons, the measured figures and the landing shas are untouched, and the original "UNRESOLVED, plainly" finding is kept verbatim, quoted, and marked superseded, right beside its replacement.
   - Re-ran F11.1 at the **same** `ARC_TIP`, extracting the guard **byte-for-byte from the committed file** (not hand-copied) this time: **PASS** — `requirement 1 holds: 0 note(s) annotated, every other path a declared surface (11.1)`.
   - **Negative control**: planted an eighth touched path on a scratch, detached, never-pushed local git-worktree commit (parent `f56c87c6`, carrying the `Arc:` trailer, touching one file on no declared surface), ran the same extracted guard against it: **FAIL**, naming exactly that one planted path. The worktree and its commit no longer exist on any branch, local or remote.
   - All three runs (original FAIL, amended PASS, negative-control FAIL) are recorded verbatim in `specs/034-opendox-standalone-operation/evidence/f11.1-phase1.txt`, along with the ruling as independently re-read from `#656` (not just relayed).
   - **T017** (3.3, read-only): independently confirmed — beyond F11.1's own per-landing diff, which never touches `docs/opendox-carve-manifest.yaml` for this landing at all — that the `profile_openxfactory.py` `deleted_at_carve` row is byte-identical between its introducing commit (`17167481e9d69dec9347f1d26699b6218a697f53`, the manifest's own genesis; its `carve_commit:` field predates the manifest file's own introduction by ~4h the same day, so a literal "at `carve_commit`" read of this file is impossible) and `ARC_TIP`, via `git log -S` (exactly one commit ever touches that row's identifying line) plus a direct diff of the row.
   - `README.md`: links the evidence file from this feature's entry (Principle IV).
   - `specs/034-opendox-standalone-operation/tasks.md`: **ticks T017 and T018**.
6. **Bookkeeping, folded in per the coordinator** (unrelated to F11.1 itself):
   - `tests/domain_profile/test_session_worktree_book_scan.py`: the stale `EXPECT_SKIPPED "6"` docstring is now `5` (#1195 already moved the live pin 6→5).
   - `openspec/changes/add-neutral-product-standalone-operability/tasks.md`: batch E's text for the held aggregation-`.gitignore` case, "`EXPECT_SKIPPED` from 6 to 7", is corrected to "from 5 to 6", for the same reason.

## Falsifiers

- **T017**: rides on F11.1 (tasks.md: *"Falsifier: F11.1 (interim: T018, T065, T098)"*) — see T018.
- **T018**: F11.1, as amended, prints `requirement 1 holds` at `ARC_TIP f56c87c`. **Verified**, verbatim in `evidence/f11.1-phase1.txt`.

## Validation

- `OPENSPEC_TELEMETRY=0 openspec validate add-neutral-product-standalone-operability --strict` → `Change 'add-neutral-product-standalone-operability' is valid` (exit 0).
- `scripts/validate-openspec-cli-pin.py --all` → `0 UNDISPOSITIONED failures` (the one dispositioned finding, `add-chain-attestation`, is a pre-existing accepted exception unrelated to this change; this change appears in no finding at all). Exit 0.
- doc-health, `--single-repo`, compared against `origin/main` at `51887c6f` (this branch merges main in, no conflicts, one unrelated file `add-worker-input-budget/tasks.md`): **delta zero** — the two reports are byte-identical once each clone's own directory-name label is normalized.

## Constraints followed

Draft PR; no force-push; no closing keyword anywhere; explicit pathspecs staged and committed (no `git add -A`); commits end `Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>`; posting no READY line — the holder's lander takes it from here once CI and Copilot are clear.

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


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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants