Skip to content

Re-home serve_wire.hosted_index into serve_projection.py (pre-carve S-3, § 3.1) - #835

Merged
brettheap merged 4 commits into
mainfrom
change/opendox-split-s3-hosted-index
Sep 9, 2026
Merged

brettheap merged 4 commits into
mainfrom
change/opendox-split-s3-hosted-index

Conversation

@brettheap

@brettheap brettheap commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

Refs #656 — pre-carve split S-3 of the § 3.1 scout memo
(opendox-carve-3-1-spec-memo-2026-09-08.md § 4). Base 56e69a11.

split-opendox-two-layer-product § 3.1's carve manifest files every path with
ONE disposition and ONE sha256, under ONE destination column. A file whose
halves belong to two columns cannot be filed. serve_wire.py goes whole to
openDox
; hosted_index is an openXdox FR-048 index-confinement rule with
exactly one in-tree reader. So the minority half moves first, inside
openxFactory, and the carve stays a pure per-file move.

serve_wire.py's own docstring named this obligation before this PR existed:
"hosted_index has exactly one in-tree reader, serve_projection.py's
_serve_index (an openXdox FR-048 index-confinement rule; the § 3 carve will
have to re-home it out of this shared module alongside its column)."

Mechanical relocation: no behaviour change, no public-name change, no
signature change.

What moved

symbol hosted_index(document: dict) -> dict
from scripts/ideation_dashboard/serve_wire.py:1387-1433 (at base 56e69a11)
to scripts/ideation_dashboard/serve_projection.py:94-140
size 47 lines, 2,715 bytes
sha256 of the moved text, BEFORE 9a8262046e292ca96b2d7236732d2fffbdf72283a5b8813986fc03e5db182e41
sha256 of the moved text, AFTER 9a8262046e292ca96b2d7236732d2fffbdf72283a5b8813986fc03e5db182e41 — byte-identical

File sha256, base → head:

file before after lines
serve_wire.py 8d68aac4…8bac ae032ee1…0f4e 1,433 → 1,393
serve_projection.py 420a887c…9203 780b6d41…4da3 275 → 334
serve.py da863ab1…dc0f 9fd3440f…f642 1,748 → 1,748

hosted_index's own imports. The body reaches exactly one module-level
name, registry_mod.is_publishable_ref (3 call sites) — and
serve_projection.py already imported snapshot_registry as registry_mod at
its line 53, for resolve_source_path and _serve_source. Nothing had to be
imported from serve_wire's private helpers
, so the destination gained no
serve_wire name and no new module edge.

No re-export is left in serve_wire.py — that is the point of the split.
serve.py imports the name back from serve_projection instead (a re-export
block serve.py already had, at :191-197), so serve.hosted_index resolves
exactly as before for the suites that call it directly, and serve.py's own
:163-169 claim about its namespace stays true.

Repointing the one in-tree reader. serve_projection._serve_index
(:238 at head) is the reader; it now calls the module-local definition, so its
from ideation_dashboard.serve_wire import (…) list drops hosted_index and
keeps the other three. That import statement — the serve_projection →
serve_wire module edge — remains; it is not S-3's to remove.

OQ-B untouched. serve_openxfactory_lanes.py:52-57 still imports its four
serve_wire names (HOSTED_SESSION_REFUSAL, JSON_CTYPE,
JSON_OBJECT_BODY_REQUIRED, hosted_ref_refused) unchanged — memo § 7 OQ-B is
unruled and this PR does not touch it.

Cross-column import edges: BEFORE == AFTER, and that is correct

Measured with a 55-line AST scan over all 60 modules of
scripts/ideation_dashboard/, tagging each module by D3's column table plus the
twelve § 2.4 additions of memo § 8. Counting UNIQUE (source module, target module) pairs:

edge BEFORE (56e69a11) AFTER memo § 2.3 (at d758a6df)
core→oD 23 23 27
core→oXd 11 11 12
core→oxF 4 4 4
oD→oXd 14 14 14
oXd→oD 17 17 15
oD→oxF 5 5 1
oXd→oxF 2 2 2
oxF→oXd 15 15 14
oxF→oD 7 7 4

Counting import STATEMENTS instead of pairs gives 24 / 14 / 5 / 21 / 19 / 7 / 3
/ 16 / 7 — also identical before and after.

S-3 removes no cross-module edge, and memo § 4 does not claim one. S-1
("removes 4 of 14 oD→oXd edges") and S-2 ("removes the single oD→oxF edge") are
edge-removing; S-3's entry says only that the wire module's rest goes whole to
openDox, and that it "does not resolve serve_openxfactory_lanes.py:52".
What S-3 removes is column-mixing WITHIN one file: after this PR
serve_wire.py's DEFINITIONS are all openDox (it still IMPORTS
doxbench_packet, doxbench_contracts and snapshot_registry, unchanged
from base and not S-3's to remove) and hosted_index sits in the openXdox
module that reads it. That is a manifest property (one path, one column), not an
import-graph property, which is exactly why § 4 files it as a pre-carve split
rather than as an import rewrites edit class.

Where my BEFORE differs from memo § 2.3 the cause is (a) drift from d758a6df
to 56e69a11 and (b) my own column tags for the twelve § 2.4 modules, which the
memo does not publish per-module. Three of the nine reproduce the memo exactly.
The BEFORE/AFTER comparison is sound regardless: both columns are the same
script over the same tags, run twice.

Residual for the manifest author (no action here): serve_projection.py:54
still imports HOSTED_SESSION_REFUSAL, JSON_CTYPE and hosted_ref_refused
from serve_wire — one surviving oXd→oD pair, by design (hosted_ref_refused
is read by all three columns, per serve_wire.py's docstring).

Every non-relocation line change

  1. serve_wire.py:37-39 → :37-44 — the docstring sentence that named the
    obligation, rewritten to record that S-3 discharged it. This is the one
    non-relocation change to shipped code. Before:

    it. hosted_index has exactly one in-tree reader, serve_projection.py's
    _serve_index (an openXdox FR-048 index-confinement rule; the § 3 carve will
    have to re-home it out of this shared module alongside its column). Leaving

    After:

    it. hosted_index NO LONGER LIVES HERE: pre-carve split S-3 (§ 3.1 of this
    same change) re-homed it into serve_projection.py beside its one in-tree
    reader _serve_index, which is what this paragraph asked for before the split
    existed — an openXdox FR-048 index-confinement rule inside a module that goes
    WHOLE to openDox is a file the carve manifest cannot file under one column. So
    the group above is this module's HISTORY and two of the three names are its
    contents; serve.py imports hosted_index back from serve_projection, and
    serve.hosted_index resolves exactly as it did. Leaving

1b. serve_wire.py:29-31 → :29-34 (commit 892c9423, on the Copilot
round below) — the same paragraph's opening, which still said the hosted-plane
group "moves here", so a reader met that claim several lines before the
sentence saying hosted_index does not. The widening is now stated with its
narrowing before the group is named, and the arrival is past tense:

WIDENED BY PR 3 OF 4 for exactly the same reason this module exists, and
NARROWED AGAIN by pre-carve split S-3 — read the two together, because the
group described next is no longer all of it. The hosted-plane confinement —
HOSTED_SESSION_REFUSAL, hosted_ref_refused, hosted_index (FR-048) —
ARRIVED here as a group, but the three names are not read alike, and that is
what eventually sent one of them on.

The group is still NAMED in full rather than trimmed to two: this docstring is
the record of why the hosted-plane confinement was filed here, and PR 3 of 4
did file all three. :50-52's "serve.py imports all three back by name, so
… serve.hosted_index still resolve" is deliberately left alone and is still
literally true — one of the three now comes from serve_projection, which the
S-3 sentence says.
1c. serve_wire.py:54-55 → :54-56 (commit fb50536f, fix round 1's
NOTE 1) — the same paragraph's closing sentence, which still said serve.py
"imports all three back by name"; after S-3 only two of the three
(HOSTED_SESSION_REFUSAL, hosted_ref_refused) come from this module, and
the third, hosted_index, is re-exported from serve_projection instead.
Reworded to name that split; no other code edit.
2. serve_wire.py — lines :1385-1433 deleted (two blank separators plus
the function). The file now ends at what was :1384.
3. serve_projection.py:57 — hosted_index, dropped from the
from ideation_dashboard.serve_wire import (…) list. Nothing else in that
statement changed.
4. serve_projection.py:83-92 — an 88-character section banner in the
module's existing style (# ——— hosted-plane index projection (pure) ———,
matching # ——— source-path containment (pure) ——— at :69) plus a nine-line
comment recording the S-3 arrival, the source range, and that registry_mod
was already present. Comment only; no code.
5. serve.py — hosted_index, moved from the serve_wire re-export block
(:290) into the serve_projection re-export block (:195), in isort position.
Net zero lines; both blocks already existed and already carried
# noqa: E402,F401.
6. tests/ideation-dashboard/test_serve_column_split.py — "FOUR THINGS" →
"FIVE THINGS" plus a fifth docstring item; serve_wire added to an existing
from ideation_dashboard import … line; and section 5, two tests (below).

Nothing was renamed, reordered or reformatted outside the moved block. No
openspec/**, contracts/** or .github/** file is touched; D3's table is not
updated (the manifest author re-measures).

The test that keeps it done

test_serve_column_split.py is where § 2.4's moves are pinned, so the pre-carve
one goes there, at the same strength:

  • test_the_hosted_index_projection_belongs_to_the_projection_column —
    hosted_index is callable on serve_projection and getattr(serve_wire, "hosted_index", None) is None. One getattr catches a re-export and a
    re-definition alike, since both set the same module attribute.
  • test_serve_re_exports_the_hosted_index_from_its_new_home —
    serve.hosted_index is serve_projection.hosted_index: the public surface is
    preserved AND sourced from the new home, not from a second copy.

The four existing behavioural tests
(test_session_confinement.py:1454,1604,1632 and the aggregate case) are
UNMODIFIED and still read serve_mod.hosted_index through the preserved
re-export — which is the actual proof the move changed no behaviour.
conftest.py's SERVE_SURFACE_MODULES and NO_IMPLICIT_PUSH_MODULES already
list serve_projection.py, so every source-level sweep over the serve surface
still sees this code; neither tuple needed widening.

Evidence

  • python3 -m pytest -q tests/ideation-dashboard — 5,095 passed, 31 skipped,
    1 failed in 680s
    . The one failure is
    test_snapshot.py::test_find_validator_locates_pinned_checkout, which is
    PRE-EXISTING and environmental: reproduced identically on a clean
    worktree at base 56e69a11 (find_validator looks for a sibling
    openxFactory checkout, which a scratchpad worktree has no sibling for).
    Unrelated to this change.
  • python3 -m pytest -q -p no:cacheprovider (whole suite, that one
    environmental test deselected) — passed 35 minutes locally without
    finishing, because three lane worktrees are sharing this box; abandoned per
    the split brief's ~15-minute rule in favour of the authority below.
  • CI pytest-suite — PASS in 20m47s at head 892c9423, and every other
    required check green: lane-line, openspec-cli-pin, openreposhape-pin,
    release-tag-gate, clearing-dispatch-gate, signed-execution-chain-gate,
    wallet-validation, merge-master-approval. That is the whole-suite
    evidence for this PR.
  • python3 scripts/proposal-support.py . verify — proposal support verification ok, byte-identical to the same command at base.
  • python3 scripts/doc-health.py --single-repo . — 92 findings, and 92 at
    base; the two reports diff ONLY on the worktree directory name in the
    repo= / Repo-Identity: fields. Parity exact.

Review

One copilot-pull-request-reviewer round, one thread, taken as FACTUAL and
fixed in 892c9423 (docstring prose only, no code): the paragraph opening still
read as though hosted_index lived here. Replied on the thread naming the fix
commit and resolved. A second Copilot round ran on 892c9423 and raised
nothing; no unresolved threads remain. Change 1b above is that fix; the affected suites
(test_serve_column_split, test_session_confinement, test_hermeticity,
test_session_snapshot, test_extension_point_parity) run 146 passed at
892c9423.

NOT DONE

  • No carve. No docs/opendox-carve-manifest.yaml (it does not exist and this PR
    does not create it).
  • No openspec/** edit — not D3's table, not the ratified change, not a
    disposition.
  • No behaviour change, no public-name change, no signature change.
  • OQ-B untouched: serve_openxfactory_lanes.py's four serve_wire names,
    human_seen.py's from .workbench import slug, and
    intent_apply_lane.py's branch_session.bootstrap_sessions are all unruled
    and all unchanged.
  • Nothing in doxbench_scope.py or lens.py — those are S-1 and S-2, separate
    PRs in this lane.

Asking for Brett Heap's separate word to land this.

🤖 Generated with Claude Code

https://claude.ai/code/session_012LiNG5Ume1boEfxSNeCmpu

brettheap and others added 2 commits September 9, 2026 04:10
`split-opendox-two-layer-product` § 3.1's carve manifest files every path
under exactly ONE column with one disposition and one sha256. `serve_wire.py`
goes WHOLE to openDox; `hosted_index` is an openXdox FR-048 index-confinement
rule with exactly one in-tree reader, `serve_projection._serve_index`. A file
with halves in two columns cannot be filed, so the minority half moves first
and the carve stays a pure per-file move.

The 47 lines at `serve_wire.py:1387-1433` are relocated BYTE-IDENTICAL
(sha256 9a826204…82e41 before and after) to `serve_projection.py:94-140`.
`registry_mod` — the only name the body reaches — was already imported by
`serve_projection.py`, so nothing had to be imported back from `serve_wire`'s
private helpers. NO re-export is left in `serve_wire.py`: `serve.py` imports
the name back from `serve_projection` instead, in a block it already had, so
`serve.hosted_index` resolves exactly as before for the suites that call it.

The one non-relocation change is `serve_wire.py`'s own docstring sentence at
:37-39, which named this obligation in advance; it is rewritten to record that
split S-3 discharged it. No behaviour change, no public-name change, no
signature change. `serve_openxfactory_lanes.py`'s four `serve_wire` names are
deliberately untouched (memo § 7 OQ-B, unruled).

Refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012LiNG5Ume1boEfxSNeCmpu
`test_serve_column_split.py` is where the § 2.4 moves are pinned, so the
pre-carve one goes there too, at the same strength: `hosted_index` is callable
on `serve_projection` and is NOT reachable on `serve_wire` — `getattr` catches
a re-export and a re-definition alike, since both set the same module
attribute — and `serve.hosted_index` is the projection column's function
rather than a second copy left behind.

Without this, re-adding the name to the wire module for a caller's convenience
would silently put openXdox content back into an openDox row with nothing else
red. The existing `hosted_index` behavioural tests
(`test_session_confinement.py`, four of them) are UNMODIFIED and still read
`serve_mod.hosted_index` through the preserved re-export, which is the actual
proof that the move changed no behaviour.

Refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012LiNG5Ume1boEfxSNeCmpu
Copilot AI lite review requested due to automatic review settings September 9, 2026 08:12

@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.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

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.

🟢 Approval recommended

The change is a low-risk, mechanically verified relocation with explicit tests preserving the public surface, and only minor docstring cleanup suggested.

Pull request overview

This PR mechanically relocates the hosted_index(document: dict) -> dict hosted-plane index projection from serve_wire.py into serve_projection.py to keep the upcoming carve manifest “one path, one column”, while preserving the public surface via serve.hosted_index.

Changes:

  • Moved hosted_index implementation from scripts/ideation_dashboard/serve_wire.py into scripts/ideation_dashboard/serve_projection.py (intended to be byte-identical).
  • Updated scripts/ideation_dashboard/serve.py re-export to import hosted_index from serve_projection instead of serve_wire.
  • Added/extended column-split tests to assert hosted_index is not reachable on serve_wire and that serve.hosted_index points to the new home.
File summaries
File Description
tests/ideation-dashboard/test_serve_column_split.py Adds invariants that hosted_index lives in serve_projection, is absent from serve_wire, and remains re-exported via serve.
scripts/ideation_dashboard/serve.py Re-points the hosted_index re-export import source to serve_projection.
scripts/ideation_dashboard/serve_wire.py Removes hosted_index and updates module docstring to reflect the re-home.
scripts/ideation_dashboard/serve_projection.py Adds hosted_index definition and removes it from the serve_wire import list.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

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

Copilot review finding on PR #835: the "WIDENED BY PR 3 OF 4" paragraph still
said the hosted-plane group "moves here", so a reader met the claim that
`hosted_index` lives in this module several lines before the sentence saying it
does not. Factual as a matter of reading order, and it is the failure mode the
S-3 sentence exists to prevent.

The widening is now stated with its narrowing in the same breath, and the
group's arrival is past tense. No code change: docstring prose only, in the
module whose whole remaining content is openDox.

Refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012LiNG5Ume1boEfxSNeCmpu
Copilot AI review requested due to automatic review settings September 9, 2026 08:17

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.

🟢 Approval recommended

The change is a verified mechanical relocation with call sites updated consistently and new tests enforcing both the new home and preserved public re-export.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)
INDEPENDENT VERIFICATION of head 892c94237b9b0d2b6f5038a7e993090d35e499c8 — PASS WITH NOTES

VERDICT: PASS WITH NOTES at head 892c94237b9b0d2b6f5038a7e993090d35e499c8, base 56e69a11c59d473da23eab455cb9848dc083fac3. The relocation is byte-identical, the public surface is preserved, the cross-column edge sets are identical base↔head (I reproduced all nine of the body's BEFORE numbers with my own scan, and all nine STATEMENT numbers too), no forbidden-direction edge appeared, OQ-B is untouched, and doc-health parity is exact. One SHOULD-FIX and three NOTEs, none of them about code: the body's file-level sha256 table was not refreshed after the Copilot fix commit.

I did not author this PR. Nothing was merged, approved, pushed, dispatched or resolved; this comment is my only act on GitHub.

The twelve items

# item verdict evidence
1 Scope PASS exactly 4 files (serve.py, serve_projection.py, serve_wire.py, tests/ideation-dashboard/test_serve_column_split.py); git log --merges origin/main..HEAD empty; origin/main is an ancestor of HEAD (clean fast-forward, merge-base == 56e69a11); no openspec/**, contracts/**, .github/**, no carve manifest
2 Byte-identical relocation PASS AST-extracted by symbol: base serve_wire.py:1387-1433 and head serve_projection.py:94-140, both 2,715 bytes / 47 lines, both sha256 9a8262046e292ca96b2d7236732d2fffbdf72283a5b8813986fc03e5db182e41 — the value the body states, and IDENTICAL: True
3 Nothing else moved PASS serve_wire.py diff is exactly two hunks: the :26-47 docstring paragraph and the deletion of :1385-1433; serve.py is one line out / one line in (isort position correct); numstat 1/1, 60/1, 14/55, 36/2 reconciles line-for-line with 47 relocated + 2 blanks + a 10-line banner/comment + the docstring
4 Public surface PASS serve.hosted_index is serve_projection.hosted_index → True; hasattr(serve_wire,'hosted_index') → False; grep -rn hosted_index over scripts/ tests/ (and repo-wide) finds no remaining importer or reference of the old path — the five hits left in serve_wire.py are all docstring prose
5 The edge claim PASS my own 60-module AST scan (below) — the edge sets are identical base↔head, not merely the counts
6 OQ-B untouched PASS git diff over human_seen.py, intent_apply_lane.py, serve_openxfactory_lanes.py is empty; serve_openxfactory_lanes.py:51-57 is byte-identical at base and head, still importing HOSTED_SESSION_REFUSAL, JSON_CTYPE, JSON_OBJECT_BODY_REQUIRED, hosted_ref_refused from serve_wire
7 Circularity PASS fresh interpreters: serve_projection alone, serve_wire alone, wire→projection, projection→wire, and serve alone all import cleanly; py_compile clean on all four files
8 Tests PASS see below
9 Parity PASS proposal-support.py . verify → proposal support verification ok at both; doc-health.py --single-repo . → 92 findings at head, 92 at base, and the two reports diff to nothing once the worktree directory name is normalised; validate-openspec-cli-pin.py identical refusal-without-target at both, and CI's openspec-cli-pin is green
10 Hygiene PASS body line 1 is the lane line; no closing keyword in body or in any commit message (grep -inE '(close[sd]?|fix(e[sd])?|resolve[sd]?)[[:space:]]*#' → none); GraphQL closingIssuesReferences.totalCount == 0; all three commits carry the exact Lane: / Co-Authored-By: Claude Fable 5.1 / Claude-Session: trailers; each commit touches only in-scope paths; autoMergeRequest null; no APPROVED review (all four are COMMENTED)
11 Copilot round PASS one thread, serve_wire.py:44, factual, taken, fixed in 892c9423, replied naming the commit, resolved. Second Copilot round on 892c9423: 4/4 files reviewed, 0 comments, "Approval recommended". sourcery-ai is the private-repo upsell stub, not a finding
12 Over-reach PASS no workflow, ruleset, contract, openspec or manifest path in any of the three commits; docs/opendox-carve-manifest.yaml does not exist and was not created

The edge scan (mine, written independently)

60 modules under scripts/ideation_dashboard/, all tagged (0 untagged): D3's 48 plus memo § 8's twelve, tagged from the memo's own prose (serve_wire oD per § 4 S-3; serve_projection oXd per § 2.4 (h); serve_openxfactory_lanes, doxbench_status_exemption, profile_openxfactory, intent_feed oxF per § 2.4 (a)/(j) and OQ-F; cli_gate, serve_gate oXd; serve_workbench, serve_project, cli_model_binding, cli_project oD). Unique (source, target) pairs, then import statements:

edge BEFORE pairs AFTER pairs BEFORE stmts AFTER stmts body's BEFORE
core→oD 23 23 24 24 23 / 24
core→oXd 11 11 14 14 11 / 14
core→oxF 4 4 5 5 4 / 5
oD→oXd 14 14 21 21 14 / 21
oXd→oD 17 17 19 19 17 / 19
oD→oxF 5 5 7 7 5 / 7
oXd→oxF 2 2 3 3 2 / 3
oxF→oXd 15 15 16 16 15 / 16
oxF→oD 7 7 7 7 7 / 7

Every number reproduces the body exactly, from an independently written script and independently derived tags. Stronger than the body claims: diff of the two full edge sets (source module, target module, both columns) is empty — no edge was added, removed or retargeted. Specifically, oXd serve_projection → oD serve_wire survives (three names still imported, as the body says), and core serve → oXd serve_projection already existed at base, so the repoint added no pair and no statement. No new oD→oXd and no new oD→stays edge. The claim under test — "S-3 removes no cross-module edge; what it removes is column-mixing inside one file" — is confirmed, and it is consistent with memo § 4, which claims an edge removal for S-1 and S-2 and none for S-3.

Tests

  • python3 -m pytest -q tests/ideation-dashboard at head: 1 failed, 5,095 passed, 31 skipped in 652s — the failure is the pre-existing one below. Identical to the counts the body reports.
  • Collected: 5,127 at head vs 5,125 at base — exactly the two new tests, nothing else added or lost.
  • Revert-detection proved, not argued. I copied the head's test_serve_column_split.py into a clean base worktree and ran it: test_the_hosted_index_projection_belongs_to_the_projection_column FAILS at base (assert <function hosted_index …> is None), then restored the worktree. The guard does what it claims.
  • test_snapshot.py::test_find_validator_locates_pinned_checkout fails at base too in a scratchpad worktree — I reproduced it on the untouched base tree. Pre-existing and environmental, exactly as the body says.
  • CI at head 892c9423: pytest-suite success (20m47s), and lane-line, openspec-cli-pin, openreposhape-pin, release-tag-gate, clearing-dispatch-gate, signed-execution-chain-gate, wallet-validation, merge-master-approval all success.

Defects

SHOULD-FIX — the body's file-level sha256 table is stale by one commit. It states serve_wire.py after = 137cd04f…fdf9, 1,433 → 1,389 lines. That is the value at 69d8cc78/1c0954b7. At head 892c9423 the file is 06e83ed3…2768, 1,392 lines — the docstring fix added three lines and the table was not refreshed. Reproduce: git show 892c9423:scripts/ideation_dashboard/serve_wire.py | sha256sum. The serve_projection.py (780b6d41…4da3, 334) and serve.py (9fd3440f…f642, 1,748) rows are correct, and the load-bearing figure — the moved block's 9a826204…82e41 — is correct at head. Documentation only; but this is the arc whose whole premise is one sha256 per path, so a stated sha that does not match the head is worth one edit.

NOTE — one sentence of the same docstring is still pre-split. serve_wire.py:54-55 reads "serve.py imports all three back by name, so serve.hosted_ref_refused and serve.hosted_index still resolve". The effect is true (I verified both resolve), but the provenance no longer is: serve.py imports two of the three back from this module and the third from serve_projection. The body discloses the decision and calls it "still literally true"; it is the same reading-order class Copilot flagged one paragraph earlier and the author accepted there, and the fix is one clause. Author's call.

NOTE — only one of the two new tests is revert-detecting. test_serve_re_exports_the_hosted_index_from_its_new_home also PASSES at base, because at base serve_projection.hosted_index is serve_wire.hosted_index and the identity holds trivially. It is a surface-preservation assertion, not a direction one — which is fine, since the first test carries the direction — but the pair should not be read as two independent guards against a revert.

NOTE — "serve_wire.py is an all-openDox file" is true of its definitions, not of its reach. At head it still imports doxbench_packet (:70, :79) and doxbench_contracts (:1341, function-local) from the openxFactory adapter column and snapshot_registry (:75) from openXdox — three outbound cross-column pairs, all identical at base and none of them S-3's to remove. Flagging it only so the manifest author does not read the phrase as "no outbound column reach".

Shared checkout

git -C /home/brett/projects/xFactory/openxFactory rev-parse --short HEAD = 6612d323 and git diff --cached --name-only | wc -l = 0 at START and at END (6612d323, staged=0). Only fetch / worktree prune / worktree add --detach / worktree remove --force were run against it, on my own two worktrees (wt-verify-s3, wt-verify-s3-base), both removed.

Copilot AI review requested due to automatic review settings September 9, 2026 09:06
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

Fix round 1 on the independent verifier's PASS WITH NOTES review. One commit, fb50536f (892c9423..fb50536f, fast-forward), touching only scripts/ideation_dashboard/serve_wire.py:

  • Took NOTE 1 (the stale docstring sentence): :54-55 said serve.py "imports all three back by name"; after S-3 only two of the three (HOSTED_SESSION_REFUSAL, hosted_ref_refused) come from this module, and the third, hosted_index, is re-exported from serve_projection. Reworded to name that split, one sentence, no other code edit.
  • PR body refreshed: the file-level sha256 table's serve_wire.py row now reads the new head's values (ae032ee1…0f4e, 1,393 lines); the "serve_wire.py is an all-openDox file" sentence now says its DEFINITIONS are all openDox while it still imports doxbench_packet, doxbench_contracts and snapshot_registry (unchanged from base, not S-3's to remove); this round's docstring change is recorded as new item 1c in "Every non-relocation line change".

Not taken: the SHOULD-FIX's other two NOTEs are documentation-only observations already addressed by the body text (the two-tests-independence NOTE and the "reach" NOTE) — no action needed beyond what the body already said, and the SHOULD-FIX (stale table row) is the one this round fixes.

python3 -m pytest -q tests/ideation-dashboard/test_serve_column_split.py tests/ideation-dashboard/test_session_confinement.py — 81 passed.

Nothing merged, approved, or resolved; no thread touched; no file besides serve_wire.py edited.

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.

🟢 Approval recommended

The change is a verified symbol move with consistent import rewiring and targeted tests ensuring the symbol’s new home and preserved public surface.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap
brettheap merged commit 9fa79cf into main Sep 9, 2026
11 checks passed
brettheap added a commit that referenced this pull request Sep 9, 2026
…S-1/S-3, and true-up lens_submission's docstring after B-1; B-2's relocation measured and held for a ruling (split-opendox § 3.1) (#848)

The owed line-citation refresh after the § 3.1 pre-carve splits, sequenced before the carve manifest because every manifest row carries a sha256 — on Brett Heap's word "merge 848 when green" (2026-09-09). Prose only; every changed file's AST (docstrings stripped) is identical to main.

- Eight citation numbers across four files (`scripts/ideation_dashboard/serve_wire.py`, `tests/ideation-dashboard/test_doxbench_abstract_route.py`, `test_doxbench_scope.py`, `test_doxbench_turns.py`) refreshed to the symbols' locations after S-1 (#837, −71 lines in `doxbench_scope.py`) and S-3 (#835); one historical S-3 citation and three archived-change hits correctly left; the `staging-workbench-model.js` citation family is out of scope.
- `lens_submission.py:36-38`'s docstring trued up after OQ-B B-1 (#843: `human_seen` reads `slug` from the neutral `scripts/path_slug.py`).
- B-2's relocation was measured and HELD for a ruling, not performed: `hosted_ref_refused` reaches `snapshot_registry` (openXdox) and cannot be neutral; the recommended home (i′) is `serve_projection.py` beside `hosted_index`, which keeps the serve-surface location pin green with no test edits (verified). The three string constants take the neutral module when B-2 is ruled.
- Independent verification PASS WITH NOTES (8/8 citations exact by three instruments); body corrections taken.

Landed after the estate freeze lifted (required `pytest-suite` red on every openxFactory PR since the codexFactory org transfer until #801 repointed the pinned-core token); the advisory `merge-master-approval` red of the same cause is disclosed, not a finding against this change.

Refs #656 (stays OPEN).

Lane: openxfactory-4-opendox-extraction
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