Skip to content

doxBench prompt panel: model picker and effort slider inside the composer - #65

Closed
brettheap wants to merge 1 commit into
mainfrom
change/doxbench-prompt-panel
Closed

brettheap wants to merge 1 commit into
mainfrom
change/doxbench-prompt-panel

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Re-homed from codexFactory. This was opened as codexFactory#71 about two
hours after adopt-neutral-tooling-home tranche C moved the ideation
dashboard here, so it targeted paths codexFactory main no longer has. Same
commit, applied clean — all four touched files were byte-identical between
the two repos at the time of the move. codexFactory#71 is closed in favour of
this.

"make this look like the prompt panel from chatgpt desktop. it should allow
the model slection and then a slider for the effort level just like
codex/chatgpt desktop app. this will give us more space removing this
dropdown from the top of the panel."
— Brett, 2026-08-03

The model <select> sat above the transcript at full rail width, spending
the rail's scarcest axis on a control touched once a session. It is now a pill
inside a bordered prompt panel at the foot of the rail, beside an effort slider
and Send.

It bought the space — measured, not assumed

Same viewport, same tile, both trees served side by side:

transcript share of rail
before (02a8d53) 342px 46%
after 405px 54%

The surprise: the dropdown was only 32px of it. The bigger win was the handling
disclosure, 101px → 30px.

Why effort is a model_id and not a field

The released chat-turn request envelope is closed and its properties are
fixed — there is no effort value in it, and the catalog entry is closed too. So
effort cannot travel as its own field without changing the released contract.
model_id is the one channel whose meaning the catalog owns, so the operator
adapter advertises <family>.<effort> as separate entries and the console
groups them into one menu row plus a slider.

That is the stronger arrangement, not a workaround: a slider over catalog
entries can only reach a configuration the plane already published as approved
and available — withdraw an entry and the position disappears (pinned by a
test). An effort field would have been a free parameter the console asserted.

Two rules keep the grouping honest, both pinned:

  1. the console only ever sends an id it was handed — it never composes one;
  2. when the catalog advertises no variants, no slider renders at all.

The separator is the schema's choice. : was the obvious marker, and the
catalog route refused all ten entries with it: model_id is constrained to
^[A-Za-z0-9][A-Za-z0-9._-]*$. A dot is legal, and safe only because of the
membership guard — claude-haiku-4.5 has the suffix 5, which is not an
effort level, so it stays one family exactly as it should.

What measuring found — twice, with a green suite both times

  • Selecting a model grew the panel 121px → 246px, taking the transcript
    from 63% to 47% — the exact opposite of the point. The handling text is a
    ~250-character paragraph rendered in full. It is clamped, not truncated:
    the whole text stays in the DOM so the live region still announces every
    word, title returns it on hover, and the menu shows it in full before
    selection.
  • Escape in the model menu tore down the whole workbench. The handler
    called preventDefault but not stopPropagation, so the key reached the
    overlay's own close handler — the rig found .doxchat-menu itself gone from
    the DOM. "Never mind, close this little menu" must never mean "discard my
    authoring session".

A third came from the screenshot rather than a number: the pill collapsed to
Claude … in a ~250px rail, so the tools row wraps — the pill keeps its own
line when narrow, and the single-row ChatGPT layout when there is room.

The terms did not survive by accident

The old <option> concatenated a 200-character handling paragraph onto the
label, producing a line nobody could read. Each menu row now gives the terms
their own line under the model name, reviewable before selection; the
send-moment disclosure is unchanged in content.

Also updated

test_doxbench_view.py's shell harness picked a model by setting .value on
the select and counted <option> children. It opens the menu and activates a
row now, and counts menu rows — an empty catalog renders zero selectable
rows plus a stated "no approved model" line, where it used to render one
placeholder option.

Verification

  • Suite (in openxFactory): 2543 passed, 23 skipped — 21 new guards, no regressions.
  • Rendered: ~/browser-ui-operator/measure_prompt_panel.py. Menu opens upward
    inside the pane, 10 catalog entries collapse to 2 rows, keyboard select
    works, slider max=4 with aria-valuetext tracking the level, Escape closes
    only the menu and returns focus to the pill, zero page errors.

🤖 Generated with Claude Code

Brett, 2026-08-03: "make this look like the prompt panel from chatgpt desktop.
it should allow the model slection and then a slider for the effort level just
like codex/chatgpt desktop app. this will give us more space removing this
dropdown from the top of the panel."

The model <select> sat ABOVE the transcript at full rail width, spending the
rail's scarcest axis on a control touched once a session. It is now a pill
inside a bordered prompt panel at the foot of the rail, beside an effort slider
and Send — the ChatGPT/Codex arrangement, wrapped to two rows because a third
of a panel is about 250px and a pill that collapses to "Claude ..." fails at
the one job it has: naming what will answer you.

WHY EFFORT IS A MODEL_ID AND NOT A FIELD. The released chat-turn request
envelope is CLOSED and its properties are fixed; there is no effort value in
it, and the catalog entry is closed too. So effort cannot travel as its own
field without changing the released contract. `model_id` is the one channel
whose MEANING the catalog owns, so the adapter advertises `<family>.<effort>`
as separate entries and the console groups them.

That is the stronger arrangement rather than a workaround: a slider over
catalog entries can only reach a configuration the plane already published as
approved AND available — withdraw an entry and the position disappears, which
a test pins. An effort field would have been a free parameter the console
asserted. Two rules keep the grouping honest, both pinned: the console only
ever sends an id it was handed (never composes one), and when the catalog
advertises no variants NO SLIDER RENDERS at all.

THE SEPARATOR IS THE SCHEMA'S CHOICE. `:` was the obvious marker and the
catalog route refused all ten entries with it — `model_id` is constrained to
`^[A-Za-z0-9][A-Za-z0-9._-]*$`. A dot is legal, and safe here only because of
the membership guard: `claude-haiku-4.5` has the suffix `5`, which is not an
effort level, so it stays one family exactly as it should.

WHAT MEASURING FOUND, twice, with a green suite both times.

  * Selecting a model grew the panel 121px -> 246px, taking the transcript
    from 63% of the rail to 47% — the exact opposite of what this change was
    for. The handling disclosure is a ~250-character paragraph rendered in
    full. It is CLAMPED now, not truncated: the whole text stays in the DOM so
    the live region still announces every word, `title` returns it on hover,
    and the menu shows it in full before selection. 191px and 54% after.
  * Escape in the model menu tore down the WHOLE WORKBENCH. The handler called
    preventDefault but not stopPropagation, so the key travelled on to the
    overlay's own close handler — the rig found `.doxchat-menu` itself gone
    from the DOM. "Never mind, close this little menu" must never mean
    "discard my authoring session". Both are pinned.

The handling terms did not survive by accident: the old <option> concatenated
a 200-character paragraph onto the label, which nobody could read. Each menu
row now gives the terms their own line under the model name, so they are
reviewable BEFORE selection, and the send-moment disclosure is unchanged.

Also updated: test_doxbench_view.py's shell harness picked a model by setting
`.value` on the select and counted `<option>` children. It opens the menu and
activates a row now, and counts menu rows — an empty catalog renders ZERO
selectable rows plus a stated "no approved model" line, where it used to
render one placeholder option.

Suite: 2407 passed, 6 skipped (+21 new guards, no regressions).

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 4, 2026 06:45

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

Pull request overview

This PR updates the doxBench chat rail UI to move model selection into a new “prompt panel” composer footer (ChatGPT-desktop-like), adding a model “pill” menu and (when available) an effort slider driven by catalog model_id variants, along with corresponding styling and test updates.

Changes:

  • Replaces the top-of-rail model <select> with a menu-button “model pill” inside a bordered prompt panel, alongside Send and an optional effort slider.
  • Introduces catalog-family/effort grouping helpers in doxbench-chat-model.js (including selection logic for effort variants).
  • Adds/updates tests to validate the new UI structure, keyboard behavior, and “no slider when no variants” degradation; updates styles including disclosure clamping.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/ideation-dashboard/test_doxbench_view.py Updates shell harness expectations from <select>/<option> to menu row behavior.
tests/ideation-dashboard/test_doxbench_prompt_panel.py New probe + source-structure tests covering family grouping, slider rules, and menu/escape behavior.
scripts/ideation_dashboard/web/views/doxbench-chat.js Implements prompt panel UI, model menu interactions, and effort slider wiring.
scripts/ideation_dashboard/web/views/doxbench-chat-model.js Adds model family/effort parsing + selection helpers used by the new UI.
scripts/ideation_dashboard/web/styles.css Styles the prompt panel, model menu, slider, and clamps the disclosure block.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +375 to +381
// WHY EFFORT IS A MODEL_ID AND NOT A FIELD. The released chat-turn request
// envelope is CLOSED and its properties are fixed; there is no effort field,
// and the catalog entry is closed too. So an effort level cannot travel as its
// own value without changing the released contract. `model_id` is the one
// channel whose MEANING the catalog owns, so an effort level is advertised as
// a separate entry: `<family>:<effort>`.
//
Comment on lines +724 to +727
// Clicking anywhere else closes the model menu, as a menu button must.
doc.addEventListener("click", (ev) => {
if (menuOpen && !modelWrap.contains(ev.target)) closeMenu(false);
}, true);
@brettheap

Copy link
Copy Markdown
Contributor Author

Closing this without merging.

This branch is 496 commits behind main and carries content conflicts in
scripts/ideation_dashboard/web/styles.css and
scripts/ideation_dashboard/web/views/doxbench-chat.js (7 conflicting hunks
between the two files) — a plain rebase is not the blocker, the design
premise underneath it is gone.

Main's rail no longer has a doxchat-menu or any effort token at all: Phase
A/B rebuilt the rail into a selector surface (see doxbench-chat.js around
L588, the loaded-document dropdown work). This PR's own core contract
argument — "effort cannot travel as its own field, the released envelope is
closed, so model_id has to carry <family>.<effort>" — no longer holds
either: contract-v1.34 shipped a co-resident v2 envelope family, and
contract-v1.38 added model-catalog routing rules. Both premises this design
leaned on have moved.

A successor to this idea should re-derive the prompt-panel design against
today's surface rather than rebasing this diff forward. See issue #84, which
this panel work pairs with — I'm leaving a note there pointing back here.

@brettheap

Copy link
Copy Markdown
Contributor Author

Decision 3 (Brett, 2026-08-26): discard. The one untracked artifact left in the dead prompt-panel worktree (branch change/doxbench-prompt-panel @ 36b5773) was this 19-line contract-pin stub stack.yaml, recorded here verbatim before the worktree and branch are removed:

xfactory:
  contract_repo: github.com/opensoft/openxFactory
  contract_name: openxFactory
  contract_ref_type: commit
  contract_ref: ff64e81a967b75f92b3f5af9204aeb54c59a15d3
  contract_schema_version: 1
  contract_declared_at: '2026-08-02'
  contract_source: xFactory-submodule-pin
  promoted_from:
  - artifact: contracts/schemas/xfactory-workflow.schema.yaml
    candidate_id: DTN-001
  - artifact: contracts/schemas/xfactory-workflow.schema.yaml
    candidate_id: DTN-002
  specializes:
  - neutral_artifact: contracts/schemas/hermes-job-envelope.schema.yaml
    overlay: schemas/engineering-job-envelope.overlay.schema.yaml
  - neutral_artifact: docs/roles-and-authority.md
    overlay: docs/engineering-roles-and-authority.md

No consumer exists; the rail this branch built (model picker + effort slider in the composer) was superseded by the chat rail catalog on main.

🤖 Filed via Claude Code

@brettheap
brettheap deleted the change/doxbench-prompt-panel branch August 26, 2026 23:10
brettheap added a commit that referenced this pull request Oct 5, 2026
…, with phase 3's host wiring: openXdox's columns and the governed binding-trust policy (plan 034) (#1236)

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

Plan 034, task **T094**: phase 3's consumer pins (T090 step 6) with phase 3's host wiring, `specs/034-opendox-standalone-operation/tasks.md` at openxFactory `main`. The precedents are T047 (opensoft/openXdox#20, then #1181) and T064 (opensoft/openXdox#21, then #1215).

- **Claim:** #656 (comment) (it covers T087 and T094).
- **Landing order, done:**
  - T087: opensoft/openDox#18 → `e1e3a3c3` (openDox-code `dede32b4`, the 0.1.0 commit T099 publishes).
  - T086: opensoft/openXdox-code#37 → `56e1c238`.
  - T090 step 5: opensoft/openXdox#22 → `9564d5d9`.
  - Lane openXfactory-3's ahead PR (D2, non-arc: the CLI help golden, the usage line and the rebound-Host case at both pins) → #1234, `ca1c148646f1111bc8049bc9cceb3c14ef276967`. This branch merges `main` in at `9cd1bf23` (a merge, never a rebase).
- **Holder decisions in force (2026-10-05):**
  - (a) both pin pairs move in ONE commit, as in T047 and T064 (below);
  - (b) T092's phase-3 `edits[].note` annotations ride in T089's checkpoint PR (lane openXfactory-3's D3; #656 comment `5987195870`, D5), NOT here. This PR touches no manifest note;
  - (c) the stale `src/opendox/consumer_reach.py` admission is removed and asserted ABSENT;
  - (d) the 4 + 3 carve-time files the walk still names stay as T064 left them;
  - (e) the merge of `main` (`9cd1bf23`) carries the `Lane:` line and no `Arc:` line. T091's trailer belongs on realization commits and on the landing, and the squash landing writes `Arc:` from this body. On the merge, F11.1's guard would charge #1234's non-arc files to the arc.
- It stays a DRAFT until the holder marks it READY.

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

| pair | gitlink | pin file `commit:` | `digests.tree_sha256` |
| --- | --- | --- | --- |
| openDox | `d5098297` → **`e1e3a3c3`** | same (`contracts/opendox-pin.yaml`:118) | `2815ca23…57cc` → **`55a110f49d268e22d382d47d778dfaf9298c93b555e3c4fcb621afc99f9d011b`** (28 records) |
| openXdox | `f257e021` → **`9564d5d9`** | same (`contracts/openxdox-pin.yaml`:109) | `52f0598e…6959` → **`11585eadf4fef2ffcb4419194fa6a52444f56759cfc427d41c352a6b8803cbd2`** (29 records) |

- **`e1e3a3c3` is opensoft/openDox#18's squash (T087), one commit above `d5098297`.** It moves `code` `047bb4fa` → `dede32b4` with `contracts/code-pin.yaml` and changes no other path, so openDox's `contracts/manifest.yaml`, its `spec` gitlink and the bundle (`dox-v1.1`) are unchanged. openDox's `main` has since moved to `504324de` (opensoft/openDox#17, T076, the root README only). Step 2's root commit is the one T090 pins, and no check reads `main`'s tip.
- **`9564d5d9` is opensoft/openXdox `main`, where #22 squash-landed** (its tree equals #22's head `db6cc2a4`). It moves `code` `6a3b93b9` → `56e1c238`, which is openXdox-code `main` after #37 (T086), and `contracts/opendox-pin.yaml` `d5098297` → `e1e3a3c3` (T090 step 5).
- Every digest was recomputed three ways: `repo_shape.tree_digest`, an independent `ls-tree` + `sha256`, and the forge's tree listing (`repo_shape.tree_digest_from_gh`). Controls: the same three methods reproduce the recorded `52f0598e…6959` at `f257e021` and `2815ca23…57cc` at `d5098297`.
- **Why one commit and not "one commit each" (T090 step 6).** #22 changes the openDox pin that `verify-opendox-pin.py` check 5 reads through the openXdox gitlink, and `docs/openxdox-pin-resync-runbook.md` § 4 prints DIFFERENT. Each split order was measured on this branch's base, and `verify-opendox-pin.py` exits 2 in both:
  - the openDox pair alone: `REFUSE opendox-pin-lockstep-mismatch: this pin names openDox@e1e3a3c3f8dd38214510412b71a2e858c6179532, but openXdox's own openXdox/contracts/opendox-pin.yaml names openDox@d5098297a5c262f9977193305210bccb4ec51e89; two direct declarations of one product's bytes disagree.`
  - the openXdox pair alone: `REFUSE opendox-pin-lockstep-mismatch: this pin names openDox@d5098297a5c262f9977193305210bccb4ec51e89, but openXdox's own openXdox/contracts/opendox-pin.yaml names openDox@e1e3a3c3f8dd38214510412b71a2e858c6179532; two direct declarations of one product's bytes disagree.`

  So "one commit each" cannot be met without an intermediate red commit. **The holder ruled the single commit for phase 3 on 2026-10-05**, as for phase 1 (T047, #1181) and phase 2 (T064, #1215, decided 2026-09-28). This PR therefore departs from T090 step 6's "one commit each" for the third time. Each pair still moves as one unit (box 9.5).
- Both pin files are edited in place, keeping their line counts (216 and 154). The openDox `migration:` block keeps `range` (`0001..0002`) and `reversible` (`false`): no migration path changes over openDox-code `047bb4fa..dede32b4`. Its `runbook` names the new code leg `dede32b4`, and the block is identical to openXdox's derived copy at `9564d5d9`, which `tests/opendox_pin` asserts.
- **Gates.**
  - `verify-opendox-pin.py`: `OK opendox-pin verified: openDox@e1e3a3c3f8dd38214510412b71a2e858c6179532, gitlink read from HEAD, sorted-ls-tree-r-v1 tree digest recomputed (55a110f4…011b), lockstep with openXdox confirmed`.
  - `verify-openxdox-pin.py`: `OK openxdox-pin verified: openXdox@9564d5d9462ffd1a3155d9177206368e5061efa8, gitlink read from HEAD, sorted-ls-tree-r-v1 tree digest recomputed (11585ead…cbd2)`.

## What else it carries

| commit | what | F11.1 surface |
| --- | --- | --- |
| `3c1c1146` | **The host wiring.** `scripts/opendox_host.register_openxfactory()` calls `openxdox.column_contributions.register()` (T086) after the projection line, and refuses by name when it registers nothing. **`GovernedBindingTrust`** (RULED #656 `5970369724`, "Governance approval (Recommended)") is the sixth `seams()` entry, before the home seam, with its take-back row. Its verdicts: a binding pending in the governed declarations is untrusted (host basis, the governed reason); an unreadable declarations document admits nothing; otherwise trusted, host basis. It answers the console intake's own question, `intake_verdict`, as plan 034's T100 entry says a host policy must. Its `record()` writes nothing and returns None, which openDox-code#86 reads as "no record" (`doxbench_trust.recording_for`; #656 `5986391296`, applied to T094 by `5988088910`), so a failed `add` or `edit` write is refused as the write's own failure and never with `REASON_NO_WITHDRAWAL`. `tests/domain_profile/test_host_registers_binding_trust.py` (new, 9 tests, 11 cases at `7e31eca1`) and `test_openxfactory_host_wiring.py` (six seams; the three columns the facet composes; each declared once) cover it. They pin openDox-code#86's final `REMEDY_NOT_BY_TRUST` and `INTAKE_HOST_NOT_ADMITTED` strings. Planted mutants, measured over the draft rounds of this same code, are each killed: M1-M3 and M5 by `test_host_registers_binding_trust.py`, the column line removed (M4) by `test_doxbench_routes`, `intake_verdict` removed or admitting everything (M6, M7), and `record()` returning the verdict, returning True, or writing MachineTrust's store (M8, M9, M11). | HOST, HOST_TESTS |
| `3c1c1146` | **Composition tests**, amended in the arc: `test_extension_point_parity.py` (the `/capabilities` arm of T073 and T103, and the MRO's T084 layout), `test_serve_column_split.py` (the snapshot arm's four handlers are the core's own after T086's trim; every column method is the column's own), and `test_doxbench_status_exemption.py` (T085's `register_default_status_exemption` joins the readers of the registered rail). | COMPOSITION_TESTS |
| `1c5f8edb` | The render lane's `RENDER_LEG_MODULES` and the seal test's `RENDER_UNIT_IMPORTS` gain `opendox/doxbench_trust.py`, `opendox/doxbench_intake.py` and `openxdox/column_contributions.py`, which the host bootstrap now imports. The seal carries a leg's whole `src/`, so no sealed artifact changes. `scripts/profile_openxfactory.py`'s note on the two openXdox columns moves to the past tense. | ADMITTED_ARC_EDITS (both paths); HOST |
| `24215223` | `test_ruling_q7_two_direct_upstreams_in_lockstep`'s snapshot literal moves `d5098297` → `e1e3a3c3`, as its comment says it does on every bump. | ADMITTED_ARC_EDITS |
| `eda75977` | **The lane route's predicate check** (T086's Q8 (a)). openXdox-code's `test_the_hosted_session_arrival_path_is_recorded_and_not_built` no longer reads openxFactory's `_handle_refresh_action` (opensoft/openXdox-code#37 narrowed its loop to the leg's own routes), so `tests/domain_profile/test_lane_route_asks_the_hosted_ref_predicate.py` (new, 2 tests) asserts it here: the route's body calls `hosted_ref_refused(` (openXdox's predicate), and on a hosted plane a refresh naming a session ref is refused with `session_unavailable` before it runs, while a ref-less one runs. Three planted mutants are each killed: the check removed, the call kept but not deciding, and the call asked as loopback. | HOST_TESTS |
| `b3a4b6e0` | **29 `created:` admissions** in `docs/opendox-carve-admissions.yaml`, pinned in `tests/carve_arrival` by path, `since` and count, as T047's 37 and T064's 129 are, **and one removed** (below). | ADMITTED_ARC_EDITS (both paths) |
| `16136990` | The admissions test's ordinal paragraph and its sixteenth-bump docstring and comment name this PR, #1236 (a follow-up commit: the number did not exist before the PR). | ADMITTED_ARC_EDITS |
| `9cd1bf23` | Merge of `main` at `ca1c1486` (lane openXfactory-3's ahead PR). It merged with no conflict, and its four files are byte-identical to the ahead commits this branch was measured over. It is not a realization commit, so it carries the `Lane:` line and no `Arc:` line (T091): F11.1's guard selects commits by that line, and walked over this branch it would otherwise charge #1234's two non-arc files to the arc. | (not on `main`'s first-parent line) |
| `7e31eca1` | **Copilot's finding at `16136990`, and the pre-review's six fix-now findings.** (Copilot) A refusal now gives back the unread defaults this call replaced: `_DEFAULTS` names the two globals and the default-registration call of each default-holding seam (T085's doxBench pair, T100's trust default). A write that replaced an unread default is recorded with it, and the take-back registers it again as the unread default, as `openxdox.column_contributions` does. The pre-review's six: (1) the no-columns refusal is tested, and no host seam is written; (2) a refusal at the trust seam is tested on fakes and on the pinned leg; (3) "five seams" becomes six where the count is meant; (4) `GovernedBindingTrust`'s docstring names the one case that changed; (5) the failed-write case skips as root; (6) `__all__` is in ASCII order and names `GOVERNED_PENDING_REASON`. The give-back case, the six-seam message and the exports case each failed before the fix. Planted mutants M12-M19 are each killed. | HOST, HOST_TESTS |

The 29 admissions, each `since` the leg's own squash landing (`git log --diff-filter=A`), each path present at the new pin, and none placed by a row or declared before:

- **`opendox_code`, 25**: #65 (T088) 1, #67 (T070) 1, #69 (T072) 1, #71 (T085) 2, #72 (T073) 1, #74 (T081) 1, #77 (T084) 9, #78 (T099) 1, #80 (T103) 1, #81 (T102) 1, #82 (T100) 2, #84 (T104) 3, #85 (T102 follow-on) 1. All are openDox-code landings over `047bb4fa..dede32b4`.
- **`openxdox_code`, 4**: #37 (T086) at `56e1c238`: `src/openxdox/column_contributions.py`, `tests/test_column_contributions.py`, `tests/test_column_contributions_governed.py` and `tests/test_host_plane.py`.
- **One leaves: `src/opendox/consumer_reach.py`** (openDox-code#9, `da8aae96`). openDox-code#77 (T084) deleted it at `e49b17c3` when it retired the reach module, so the walk at `dede32b4` never consumes the admission and the verifier would report it stale (`declared_admissions_unused`). It is removed, as split-opendox § 3.4 slice S5 removed its two re-homed modules', and `tests/carve_arrival` asserts it ABSENT. openXdox-code's own `src/openxdox/consumer_reach.py` (the RULED seed) is still at `56e1c238`, and its entry stays.
- Neither spec leg moved (`f7ee3c76`, `f088b097`), so neither admits anything.
- **Derived, not run green, for the `-code` legs**, as at T047 and T064: the walk, with every rule `verify-carve-arrival.py` applies, reports stale 0 and only the carve-time files that are unchanged since the old pins (4 at `opendox_code`, 3 at `openxdox_code`), which T064 left as well (decision (d)).

## T094's "Owed elsewhere" list from opensoft/openXdox-code#37, each item to the file that carries it

- [x] `scripts/opendox_host.register_openxfactory()` calls `column_contributions.register()` after T064's projection line (Q6 (a)): `scripts/opendox_host.py` (`3c1c1146`).
- [x] The module seals: `scripts/ideation_dashboard/dashboard_refresh_lane.py` and `tests/ideation-dashboard/test_dashboard_source_seal.py` (`1c5f8edb`). The carve admissions (`created:` gains `src/openxdox/column_contributions.py`, `tests/test_column_contributions.py`, `tests/test_column_contributions_governed.py` and `tests/test_host_plane.py`): `docs/opendox-carve-admissions.yaml` and `tests/carve_arrival/test_verify_carve_arrival.py` (`b3a4b6e0`).
- [x] The parity test's MRO layout and `test_serve_column_split.py`'s four snapshot rows, which move to the core: `tests/ideation-dashboard/test_extension_point_parity.py` and `tests/ideation-dashboard/test_serve_column_split.py` (`3c1c1146`).
- [x] `test_openxfactory_host_wiring.py`'s "second copy of the column" check and its contributed tuple, which now has three entries: `tests/domain_profile/test_openxfactory_host_wiring.py` (`3c1c1146`): `test_no_route_extension_declares_a_second_copy_of_the_column` holds each column to one declaration, and `CONTRIBUTED_COLUMNS` is `LaneRoutes`, `GateRoutes`, `ProjectionRoutes`.
- [x] The lane route's `hosted_ref_refused(` check (Q8 (a)): `tests/domain_profile/test_lane_route_asks_the_hosted_ref_predicate.py` (`eda75977`).
- [x] The trust policy at T100's seam (openXdox registers none; "Governance approval", #656 comment `5970369724`): `GovernedBindingTrust` in `scripts/opendox_host.py`, tested by `tests/domain_profile/test_host_registers_binding_trust.py` (`3c1c1146`).

## F11.1, on the real commits

`PACKET_MERGE=94b6f7f1… ARC_TIP=<this branch's head>` over the guard extracted from `openspec/changes/add-neutral-product-standalone-operability/tasks.md` prints:

> `requirement 1 holds: 0 note(s) annotated, every other path a declared surface (11.1)`

Every path this PR touches is on a declared surface:

- PIN_PAIRS: `openDox`, `contracts/opendox-pin.yaml`, `openXdox`, `contracts/openxdox-pin.yaml`;
- HOST: `scripts/opendox_host.py`, `scripts/profile_openxfactory.py`;
- HOST_TESTS: `tests/domain_profile/test_host_registers_binding_trust.py`, `tests/domain_profile/test_lane_route_asks_the_hosted_ref_predicate.py`, `tests/domain_profile/test_openxfactory_host_wiring.py`;
- COMPOSITION_TESTS: `tests/ideation-dashboard/test_extension_point_parity.py`, `tests/ideation-dashboard/test_serve_column_split.py`, `tests/ideation-dashboard/test_doxbench_status_exemption.py`;
- ADMITTED_ARC_EDITS: `scripts/ideation_dashboard/dashboard_refresh_lane.py`, `tests/ideation-dashboard/test_dashboard_source_seal.py`, `tests/openxdox_pin/test_openxdox_pin_verifier.py`, `docs/opendox-carve-admissions.yaml` and `tests/carve_arrival/test_verify_carve_arrival.py`.

The admitted list does not grow, and no manifest note is annotated here (decision (b)).

## The falsifiers, at the COMMITTED pins

| run | head | verifiers | `pytest-suite` | other checks |
| --- | --- | --- | --- | --- |
| **CI** | `16136990` | OK, OK | **`selected=9362 passed=9356 skipped=6 failures=0 errors=0`**, floors met (margin 2312), run `37315023063` | all success, `openxdox-consumer-gate` included |
| local | `eda75977` (`16136990` changes only a docstring and a comment) | OK, OK | **8943 passed, 7 skipped, 0 failed** (`pytest tests/ -q -m "not postgres"`) | the composition, `domain_profile`, carve-mapping, both pin dirs and `carve_arrival`: 569 passed |
| **CI** | `7e31eca1` | | PENDING | PENDING |
| local | `7e31eca1` | OK, OK | PENDING | `domain_profile`, the seal and the carve mapping: 626 passed; mutants M12-M19 killed |

Each local run uses Python 3.12.3, with `TMPDIR` and `--basetemp` under `~/.local/state`, outside the aggregation tree, in a checkout named `openxFactory`. A local run skips 7 where CI skips 6: the work tree sits inside an aggregation checkout, so the aggregation ignore-file case runs and passes there (#1215's reason).

- `validate-carve-manifest.py` prints OK (456 rows), and `validate-former-id-arrival.py --base origin/main --head HEAD` passes.

## Accepted limits

- A leg from before T100 now fails with an ImportError, because `seams()` imports `doxbench_trust`, rather than with `HostSeamsIncomplete` by name. The pins only move forward.
- A directory at the declarations path reads as "no document". That is openDox's own store rule (`document_present` checks for a regular file), and the change opens no new hole.
- Under the governed host, `model-binding trust` prints `trusted "m1" on this machine` although `record()` records nothing. That wording is openDox-code's (`cli_model_binding._trusted_line` ignores `recording.recorded`), and it is deferred to an openDox-code follow-on after release 1.
- The trust seam's take-back entry cannot fire today. Only the home seam follows it, and the home seam refuses nothing. Nit: `_TAKE_BACK` is keyed by the bare call name `"register"`.

## What this leaves for the aggregation

This PR does not do the opensoft/xFactory root pin-sync. When it runs, it needs:

- the root `openDox` gitlink → `e1e3a3c3f8dd38214510412b71a2e858c6179532`;
- the root `openXdox` gitlink → `9564d5d9462ffd1a3155d9177206368e5061efa8`;
- the root `openxFactory` gitlink → this PR's landed sha, with `.github/clearing/openxfactory/PIN.yaml` in the same commit (CLAUDE.md rule 2);
- `.github/workflows/dashboard-image-worker.yml`'s `RENDER_LEG_MODULES` and its mirror in `tests/test_dashboard_image_worker_contract.py` gain the same three modules as this PR's `1c5f8edb`.

Arc: neutral-product-standalone-operability

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


Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Oct 5, 2026
…and staging-workbench-model.js row (bookkeeping) (#1244)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Authored by lane openXfactory-3, delegated by lane openxfactory-4 (#656 6000631668)

**Plan 034, the single-writer table in `plan.md`: two rows that the landed history no longer shows (bookkeeping).** openxFactory#1235's writer recorded both under "Not done here" and left them for the holder. This is release-1 follow-on slice C, on Brett Heap's word (#656 comment 6000582654, "openDox-code follow-ons first"). It carries no Arc trailer.

The diff is two table cells in `specs/034-opendox-standalone-operation/plan.md` (one commit, 2 insertions, 2 deletions). No other line of `plan.md` and no other file changes.

## What changes

**1. openXdox-code's declared exclusion file.** The chain read `T041 → T043 → T044 → T061`. It now reads `T041 → T043 → T044 → T059 → T061 → T086`, with each new link carrying its effect on the file:
- T059 (`tests/test_seam_assembly_beside_gate_and_projection.py`'s entry leaves, 67 → 66)
- T086 (`tests/test_column_contributions_governed.py` joins under `doc_health`, 65 → 66)

**2. openDox-code `src/opendox/web/views/staging-workbench-model.js`.** The row read `T102 → T104 (the console token's reader)`. It now names T102 alone, the one phase-3 slice that edits the file, and says where T104's reader went: `web/views/notebook.js` instead (openDox-code#84), so no writer follows T102 here.

## Every fact, checked against tasks.md and the landed PRs

The file named by row 1 is `tests/declared_exclusion.yaml` in openXdox-code. Its history on `main` (the GitHub commits API for that path, newest first) lists exactly five commits. The first created the file with 66 files (its message, and tasks.md's landing note), and the patches of the other four (T044, T059, T061, T086) move it as the third column says. T043's PR (#32) is not in that history: it moved no entry, as the row already said.

| task | openXdox-code PR → commit | what it did to the file | tasks.md says |
|---|---|---|---|
| T041 | #30 → `5fbd188e` | created it: 66 files, four reasons | "66 files under all four reasons" |
| T043 | #32 → `4610bca5` | not in the file's history | "a re-run at T040's pin, which moved no entry" (the row's own words, kept) |
| T044 | #33 → `6158151e` | `count` 66 → 67; `tests/test_seam_assembly_beside_gate_and_projection.py` joins under `doc_health` | "the declaration holds 67 files" |
| T059 | #35 → `839492d9` | `count` 67 → 66; that same entry leaves | "(67 → 66), and T059 joined that file's single-writer chain, T044 → T059 → T061" |
| T061 | #36 → `6a3b93b9` | `count` 66 → 65; `tests/test_snapshot.py` leaves, and its `consumer-schemas` reason with it | "(66 → 65)" |
| T086 | #37 → `56e1c238` | `count` 65 → 66; `tests/test_column_contributions_governed.py` joins under `doc_health` | "65 → 66, Q9 (a)" |

Row 2. openDox-code's history for `src/opendox/web/views/staging-workbench-model.js` ends at T102 (#81 → `0116293a`); T104 (#84 → `32943cbf`) is not in it. The same API read for `src/opendox/web/views/notebook.js` lists #84 as its only edit since the adoption. tasks.md's T104 landing note says the same: "`web/views/notebook.js`, the one reader the PR edits … `app.js`, `edit.js` and the staging workbench's JS, which the task text names as the readers, are untouched". I also read the neighbouring `lens.js` row (T088 → T102). It agrees with the history (#65 → `d0d3cee6`, then #81 → `0116293a`), and I left it.

## Plan tools, before and after

The seven tools are lane 4's copies (`depcheck`, `chaincheck`, `chaindirect`, `arrowcheck`, `phasecover`, `sharedfiles`, `qcheck`, with `aftergraph.py` and `qmap.py`), run from the feature directory, `specs/034-opendox-standalone-operation/`, at `main` `12753f27` and at this head `4847b890`, each in a full clone. `qcheck` takes `qmap.py` as its argument.

| tool | `main` `12753f27` | head `4847b890` |
|---|---|---|
| `depcheck` | `tasks: 96 nodes: 108 … edges: 270`, `cycles: none`, `cycles with the Lands-with groups merged [['T011', 'T030'], ['T031', 'T036'], ['T045', 'T046', 'T047']] : none` | byte-identical |
| `chaincheck` | `single-writer chain gaps: 0` | byte-identical |
| `chaindirect` | 42 lines, including `openXdox-code exclusion file T044->T061: transitive ['T061', 'T059', 'T052', 'T049', 'T047', 'T044']` | byte-identical |
| `arrowcheck` | `arrow mismatches: 0`, `arrows checked: 83` | byte-identical |
| `phasecover` | `phase 1 → T049: 32 tasks; not before the checkpoint: []; after it: ['T048']`; `phase 2 → T063: 17 tasks; not before the checkpoint: []; after it: []`; `phase 3 → T089: 29 tasks; not before the checkpoint: []; after it: ['T099']`; T095, T096, T097 each `ancestors include T076? True`, `T089? True` | byte-identical |
| `sharedfiles` | 87 lines: 82 `ordered`, 5 `NOT ORDERED` (P1-A/P1-B, P1-A/P1-D, P1-B/P1-D, P1-H/P1-G, P3-I/P3-E); `P3-S edit and chat by scope [T102] vs P3-C the console token [T104] share ['staging-workbench-model.js']: ordered A<B` | byte-identical |
| `qcheck` | `headers checked: 27 of 27; mismatches: 0` | byte-identical |

Each of the seven outputs was compared with `cmp`, and each is identical. That is the expected reading, and it is the reason this section carries two more checks below, because none of the seven can see the two rows:
- `chaincheck.py` and `chaindirect.py` hold their chains as literals in a `CHAINS` dict (the exclusion file's is still `["T041", "T043", "T044", "T061"]`), so they test tasks.md's After graph against a copy of the plan's chains, never against `plan.md`'s table;
- `depcheck`, `phasecover`, `sharedfiles` and `qcheck` read `tasks.md` and `clarify-questions.md` only;
- `arrowcheck` reads `plan.md`'s `## Dependency graph` section, which ends before `## Parallel slices`, where the table sits.

So the stale spots cannot leave a tool's output, and the unchanged outputs show that this edit moved nothing the tools read. Two supplementary runs, from copies kept outside the repository, test the new rows themselves:

1. **`chaincheck` and `chaindirect` with the exclusion chain set to the new row's `["T041", "T043", "T044", "T059", "T061", "T086"]`** (the one literal changed in a copy of each). `chaincheck`: `single-writer chain gaps: 0`. `chaindirect`, the five exclusion-file pairs:
   ```
   T041->T043: DIRECT
   T043->T044: DIRECT
   T044->T059: transitive ['T059', 'T052', 'T049', 'T047', 'T044']
   T059->T061: DIRECT
   T061->T086: DIRECT
   ```
   Every pair is ordered by the After graph. T044 → T059 is transitive (T059's After list does not name T044), and the order holds through T052 ← T049 ← T047 ← T044. That is an ordering the graph already carried, not a new edge, and tasks.md's T059 note states the pair.
2. **A row check** (`rowcheck.py`, a short script of mine that reads the two rows straight from `plan.md` and tests the exclusion row against the After graph and against the order of the landed commits above):
   ```
   main 12753f2                                             head 4847b89
   chain in plan.md: T041 -> T043 -> T044 -> T061            T041 -> T043 -> T044 -> T059 -> T061 -> T086
   equals the landed order: False                            True
   chain gaps: 0                                             0
   staging row names T104 as a following writer: True        False
   writers named before the colon: ['T102', 'T104']          ['T102']
   ```

## Gates, at `main` `12753f27` and at this head `4847b890`

Each in its own full clone named `openxFactory`, with the `openXwallet`, `openXdox` and `openDox` submodules initialized recursively as `pytest-suite` does. The venv was built by CI's own `pip install --require-hashes -r requirements/hermes-runtime-contracts.lock`; Python 3.12.3, node v24.21.0, the pinned OpenSpec CLI 1.12.0, `LANG=C.UTF-8`, every `GIT_*` and `XF_*` variable unset.

| gate | `main` `12753f27` | head `4847b890` |
|---|---|---|
| `python3 scripts/validate-openspec-cli-pin.py --all --strict`, and CI's form `--all --no-cache` | rc 0 each: `Totals: 110 passed, 1 failed (111 items)`; `every target validated --strict with 0 UNDISPOSITIONED failures`; 1 accepted exception (`add-chain-attestation`, accepted by Brett Heap 2026-09-05) | identical, but for the clone path in the CLI's command line |
| `scripts/doc-health.py --single-repo . --as-of 2026-10-05` | rc 0: `Findings: 31 critical, 26 error, 69 warning, 20 info. New regressions vs previous report: 0.` | identical, byte for byte but for the clone path |
| the validators `.github/workflows/` invokes on a pull request: `validate-former-id-arrival.py`, `validate-clearing-dispatch.py`, `validate-factory-identity.py`, `validate-signed-execution-chain.py --require-pinned-wallet-vocabulary` | rc 0 each | identical |
| `validate-release-tag-gate.py` | rc 0: `no release surface change: none of the 2 changed path(s) between 8a37a08 and 12753f2 …` | rc 0, the same verdict over this PR's range: `none of the 1 changed path(s) between 12753f2 and 4847b89 …` |
| the repository's other validators, run directly: `validate-sequenced-after.py --ledger-diff`, `validate-code-surface.py`, `validate-target-release.py`, `validate-pin-registrations.py`, `validate-document-catalog.py`, `validate-scope-globs.py` | rc 0 each | identical |

`openreposhape-pin-gate` needs a checkout of its own pin and is left to CI. The one output line that differs between the two columns is the release-tag gate's own commit range.

The doc-health reading depends on how far the submodules are materialized, and the same on both sides. With the nested legs initialized (`git submodule update --init --recursive openXdox openDox`, as `pytest-suite` does) it reads 26 errors, at `main` and at this head. Without `openXdox/spec` it reads 22, at both, because `release-inventory-drift` then skips its comparison and the four extra findings (`scripts/hermes_runtime_validation/catalog.py`, `…/release.py`, `scripts/validate-hermes-runtime-contracts.py` and `scripts/validate-ideation-dashboard-contracts.py`, each "bytes differ from the digest 'contract-v4.0' records") do not appear. They are on `main` already, and this PR touches none of those files.

## pytest

**CI's `pytest-suite` at the exact head** (run 37358868274): completed, success. `selected=9376 passed=9370 skipped=6 failures=0 errors=0`; `floors: selected>=7050 (margin 2326) passed>=7044 (margin 2326) skipped==6`; the freshness verifier and the vector replay both `passed`.

**My own full run**, CI's command (`python3 -m pytest tests/ -q -m "not postgres"`, with `GIT_CONFIG_GLOBAL=/dev/null` and `GIT_CONFIG_NOSYSTEM=1` set as `pytest-suite.yml`'s header describes, and no other `GIT_*` or `XF_*` variable), once at `main` `12753f27` and once at this head `4847b890`, in the two clones above:
- both read `1 failed, 8956 passed, 7 skipped, 338 deselected, 9 warnings, 391 subtests passed` (2235 s at `main`, 2231 s at this head);
- the one failure is the same node at both: `tests/domain_profile/test_hermeticity_probe_routes.py::test_the_bare_unittest_route_is_detected_as_unguarded` (`assert 0 != 0`). It is an artifact of how I ran: the test makes its child "bare" by stripping the `PATH` entries under the system temp directory, and I had put pytest's `--basetemp` beside `TMPDIR` instead of under it, so the guard's shim directory stayed on the child's `PATH`. Re-run alone with `--basetemp` under `TMPDIR`, it reads `3 passed` at `main` and `3 passed` at this head. CI, with the default basetemp, reads 0 failures.

## Observations, not changed

The brief limits this change to exactly these two spots, so these stay as they are, for the holder:
- `plan.md` line 190 (the "Source layout" map, outside the single-writer table) still lists `src/opendox/web/app.js, web/views/edit.js, staging-workbench-model.js` against T104. It is the plan's statement of the surface T104 was cut to edit. tasks.md's P3-C row and T104's landing note record the divergence.
- The tools' `CHAINS` literals carry the old exclusion chain, as above. They are lane 4's copies and I did not edit them.
- The ratchet row (`tests/test_dependency_direction.py`, `T040 → T059 → T086`) is about the ratchet's values, and I read the two other edits of that file in the history, T043 (#32, docstring and comment text) and T061 (#36, a census of scripts under `src/`). Neither moves a ratchet value, so I left the row.

## Review

CI, read from the check-runs API at the exact head `4847b890`: every check-run listed is `completed` and `success`: `SonarCloud Code Analysis`, `clearing-dispatch-gate`, `copilot-pull-request-reviewer`, `former-id-arrival-gate`, `lane-line`, `merge-master-approval`, `openreposhape-pin`, `openspec-cli-pin`, `openxdox-consumer-gate`, `pytest-suite`, `release-tag-gate`, `signed-execution-chain-gate` and `wallet-validation`. (`lane-line` runs again on each edit of this description, so the API lists it more than once.)

Copilot: the repository's `copilot_code_review` ruleset (`review_on_push`, `review_draft_pull_requests`) requested it when the draft opened, and a GraphQL read of the PR's `reviewRequests` already listed `copilot-pull-request-reviewer` before I made any request, so I made none. Its review is at the exact head `4847b890`, state `COMMENTED`: "Approval recommended", "Both documentation corrections match the recorded task outcomes, with no unresolved issues", `Findings: None`. It left 0 inline comments and the PR has 0 review threads, so there was nothing to classify under the convergence rule (#656 comment 5988818366) and no thread to act on.

Main moved after this branch's base: `12753f27` → `0d143582` (#1211, the doc-health catalog's probe-error handling: `scripts/` and `tests/` only, no `specs/` file). The strict-up-to-date policy is off in the ruleset (`strict_required_status_checks_policy: false`) and GitHub reports the PR mergeable, so I did not merge main, and every result above is at the base it names.

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


Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants