Repository navigation
doxBench annotation round 2: intuitive state over status text, chat model selector - #201
Conversation
…odel selector
Two more annotations from Brett on the live surface (2026-08-18). Both say the
same thing in different places: the surface should be legible from its controls,
not from standing prose.
ANNOTATION A, on `div.doxbench-statusbar`: "remove these lines. the UI must be
intuitive and not rely on this text to inform the user." Its captured text read
"Outline: no unsaved changesDocument: no unsaved changesSave persists only the
changed buffers, in th…" — three things stood there, answered three ways:
* THE DIRTY/CLEAN STATE BECOMES CONTROL STATE. Save is reachable when any
buffer is dirty and unreachable when none is; Cancel when the ACTIVE buffer
is. That is a better statement than the sentence, because it also says what
the human can do about it. Save's other gates are untouched: an in-flight
Save still withdraws both controls, and a missing seam still makes Save
unreachable for its own stated reason.
* THE "Save persists only the changed buffers…" NOTE IS REMOVED outright. It
explained what the control now demonstrates.
* THE PER-BUFFER SENTENCES GO SR-ONLY, which is the load-bearing part. Those
regions are the per-buffer verdict surface the ratified buffer contract
requires a PARTIAL Save to be readable in, they are where every stated
refusal on this canvas lands, and they are `aria-live`. Removing them would
remove a contract obligation and an accessibility surface at once. They stay
under `.doxbench-sronly` — the same recipe `.doxchat-announce` uses one
region over, never `display: none` and never `hidden`, either of which takes
a live region out of the tree along with the text.
* EVENTS GET ONE TRANSIENT VISIBLE LINE. A refusal, or a Save that did not
wholly land, must still reach a sighted human — and it is an event, not a
state, so it must not stand there afterwards. `.doxbench-eventnote` names the
buffer it is about and clears itself after `eventNoteMs` (injectable, like
`previewDelayMs`, because a timer a test cannot pin is a timer nobody can
trust). A COMMITTED buffer gets no event: Save going unreachable and the
buffer going clean IS the report.
ANNOTATION B, on `div.swb-posture-note` ("chat is unavailable — no approved
model is configured; both editors remain fully usable."): "add a model selector
down next to the send button. make this text the hover text for the send button
if no model selected."
Inspected the model machinery first, and it decided the shape: the server
exposes models on `GET /workbench/model-catalog` from an injected
`WorkbenchModelPort` (`serve.py`'s `model_port_factory`) — no CLI flag, no config
file, no env-var read; with no factory injected (the shipped default, and this
serve's posture) the route answers `EMPTY_CATALOG` as a SUCCESS, the ratified
editor-only posture. And the chat-turn request ALREADY carries `model_id` in the
released envelope's own required list, which the rail already fills from
`state.selectedModelId`.
So this is a MOVE, not a new feature — no wire change, no contract touched:
* the existing selector joins Send in a `doxchat-sendrow`: same element, same
`selectModel` binding, same `canSend` authority, three regions closer to the
control its choice governs;
* with nothing selectable it renders EMPTY AND DISABLED rather than hiding,
which is the honest shape of this plane (the server answers with a catalog
and the catalog is empty). This replaces T104 F5-9's selector-XOR-note
trade, whose reason — never look live when you are not — a visibly inert
control serves better than an absent one;
* the unavailability sentence becomes the send button's `title` AND its
`aria-describedby` target, so the reason is programmatically associated and
not tooltip-only; the note itself goes sr-only. One selector
(`unavailabilityNote`) still chooses WHICH sentence, so the tooltip and the
F10-1 vocabulary cannot drift;
* the shell's standing note now renders only for the PLANE rungs. The three
CHAT rungs are marked `chat: true` in `presentationPosture` and their
sentence lives on the send button; the plane rungs explain a WITHHELD canvas
where no such control exists, so they keep the inline note.
NO SPEC AMENDMENT. No ratified scenario pins the statusbar's standing text, the
posture note's placement, or the selector's position. The one clause that comes
close is the gate-absent rule — "both controls SHALL state that absence as
visible text beside them rather than only in a hover title" — and it is honoured
UNCHANGED: `SAVE_UNAVAILABLE_REASON` still renders as visible text beside Save
wherever there is no seam. It is the WIRED posture's standing note that went, and
no requirement ever asked for that one.
Two of this round's changes were caught by existing absence pins rather than by
me, and both were fixed on my side rather than by loosening the pin: a comment
using the word "delete" tripped FR-037's no-delete-verb grep, and a comment
reading `from "nothing to save"` read as a static import to the renderer's
import-graph pin. Both reworded.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
This PR implements “annotation round 2” UX changes for doxBench: it removes standing explanatory/status prose, makes state legible via control enablement, adds a transient visible event line for refusals/non-landing outcomes, and relocates the chat model selector next to Send while associating unavailability reasons programmatically for accessibility.
Changes:
- Move dirty/clean “state” signaling from status text into Save/Cancel enabled/disabled state, while keeping per-buffer
aria-livestatus regions sr-only. - Add a transient, visible
doxbench-eventnotelive region for events (refusals / non-committed outcomes) that clears aftereventNoteMs. - Move the chat model selector into a
doxchat-sendrowbeside Send; make the unavailability sentence sr-only and bind it to Send viatitle+aria-describedby; restrict inline posture notes to “plane” postures only.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/ideation-dashboard/test_staging_workbench.py | Adds pin asserting only plane postures render as inline note; chat postures are marked chat: true. |
| tests/ideation-dashboard/test_doxbench_view.py | Adds scenarios/pins for control-carried state, sr-only per-buffer sentences, and transient event note behavior; updates existing save/load posture pins. |
| tests/ideation-dashboard/test_doxbench_chat_view.py | Updates DOM stubs and pins for selector-in-send-row, sr-only unavailability note, and Send tooltip/aria-describedby. |
| tests/ideation-dashboard/test_doxbench_accessibility.py | Adds a11y pins ensuring sr-only regions remain in the tree, event note is its own live region, and send-row semantics/associations exist. |
| scripts/ideation_dashboard/web/views/staging-workbench.js | Centralizes inline posture-note visibility decision via showPostureNote(plane) (plane-only). |
| scripts/ideation_dashboard/web/views/staging-workbench-model.js | Marks chat-related postures with chat: true for downstream rendering rules. |
| scripts/ideation_dashboard/web/views/doxbench-editor.js | Retires wired “Save does…” note, adds transient eventNote, moves per-buffer status regions to sr-only, and makes Save/Cancel reflect dirty state. |
| scripts/ideation_dashboard/web/views/doxbench-chat.js | Introduces send-row layout, makes unavailability note sr-only, adds aria-describedby, adjusts Send tooltip logic, and disables (vs hides) model selector when empty. |
| scripts/ideation_dashboard/web/styles.css | Adds sr-only styling for doxBench and doxChat, styles event note line, and styles doxchat-sendrow. |
| openspec/changes/add-doxbench-editing-phase-a/design.md | Documents annotation round 2 rationale and constraints (no spec amendments). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| // The reason is a MODEL reason only while no model is actually selectable or | ||
| // selected; once one is chosen, an empty composer is a different reason and | ||
| // must not borrow this sentence. | ||
| const modelReason = state.selectedModelId ? null : unavailabilityNote(state); | ||
| sendBtn.title = sendTitle(inFlight, sendBtn.disabled, modelReason); |
| display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; | ||
| padding: 4px 0 6px; | ||
| } | ||
| .doxbench-eventnote { font-size: 12px; } |
… record realization evidence (#228) * Phase A task 9.1: record the realization evidence at the archive gate Derived from git log over the change directory, not from recollection: the realization is PR #196 / 6ac42ed plus this change's own annotation round at #199 / 224bf22 and #201 / 96975c1. PR #207 realized Phase B's core and touched no file here — named in the block only to say so. Green at landing: this change's own five pinned files 487 passed exit 0; tests/ideation-dashboard 3699 passed / 15 skipped. The block also states what Phase B has since done to the surface, so the archived spec is not read as current two-buffer truth. Co-Authored-By: Claude Fable 5 <[email protected]> * proposal-support: archive a change that has no supporting documents The promoted rule scopes packaging to a change WITH supporting documents, and verify() already reads it that way on both sides — but archive_change called package() unconditionally, so a staged-origin change that legitimately never took its topic with it could not archive through the sanctioned path at all. Fifteen archived staged-origin changes already have that shape, so the wrapper was the only thing that could not produce it, which is precisely what pushes an operator toward a bare 'openspec archive' and around the gate. Found archiving add-doxbench-editing-phase-a, whose task 9.2 deliberately kept the topic staged for Phase B. --final-import-complete with no bundle is now refused rather than silently ignored. Co-Authored-By: Claude Fable 5 <[email protected]> * Land doxbench Phase B wave 2: archive Phase A, exit the staged topic, record realization evidence Phase A archived via proposal-support as 2026-08-21-add-doxbench-editing-phase-a (+5 ADDED, ~2 MODIFIED promoted). 13.7 verified against the promoted text, not assumed: the three Phase-A-relative names are present to amend, and the promoted F2 deferral sentence is the one Phase B's MODIFIED block replaces — the hazard was real. 13.6 exits the staged topic into Phase B's supporting-docs with the origin byte-identical, and dispositions the two parked items (Headroom's five gates, the graph graduation trigger) to live code that refuses adoption. 13.8 records the evidence and stays OPEN: the gate is written over the whole code surface and share-session is not built. §12 adjudication recorded against 12.6 — Phase B stays ACTIVE, NOT archived; the call between realizing §12 and carving it out is Brett's. Co-Authored-By: Claude Fable 5 <[email protected]> * Repoint the two references to Phase A's now-archived path The README's active-block entry linked a directory that no longer exists; it now points at the archive, records the realization evidence and the discharged F2 obligation, and drops the 'archive gate still needs 9.1' sentence that has stopped being true. add-staged-topic-outline-template's cross-change citation is repointed too — the finding it cites is unchanged, only its location is. Co-Authored-By: Claude Fable 5 <[email protected]> * Review round: correct the precedent count, align the predicate, make the F4 test bite F1 the comment said fifteen; sixteen archived staged-origin changes had the bundle-less shape before this one, and fifteen is the count of the complement. Corrected, with the recount method stated so it cannot be miscounted again. F3 .exists() rather than .is_dir(), so this predicate is the same one verify() applies and the two readers cannot disagree. F4 the final-import-complete test asserted a bare SupportError, which the PRE-fix path also raised — tightened to assertRaisesRegex on the message. Co-Authored-By: Claude Fable 5 <[email protected]> * F5 the full open ledger for Brett; F2/F3 recorded as a follow-up item F5 the recorded exit note named §12 alone, which would have put a partial ledger in front of the ruling. Nine tasks are open across three families — 10.7 and 11.7 each need a contract release, 12.1-12.6 need a realization slice, 13.8 follows whichever lands last — so carving §12 out narrows the blocking set from three families to two rather than clearing it. F2/F3 recorded in docs/support-bundle-scope-open-item.md and linked in the README doc index: the staged-origin scenario reads more absolutely than the requirement it illustrates (the fix is a spec-text change, not authorized here), and the deleted-supporting-docs surface stays open with its predicate half already closed. Status is 'record' per the controlled taxonomy — the open-item doc I modelled it on uses a free-form status that doc-health flags. Co-Authored-By: Claude Fable 5 <[email protected]> * Reconcile the outline-template's 5.3 enumeration and 6.3 path with the doxbench topic exit The merge of origin/main brought add-staged-topic-outline-template's gate records onto the same branch that exits doxbench-editing-model from staging, so two of its recorded claims now describe a corpus that moved under them. Neither is wrong; both would rot silently if left alone. 6.3 cited the handoff note at its staging path. The note is unchanged and still present -- it rode with the fragment into Phase B's support bundle, so the citation is repointed and the reasoning noted as strengthened, not weakened: the note existed so "Phase B inherits it" and now sits inside Phase B. 5.3's sha-pinned enumeration is unaffected in substance: doxbench-editing-model is not one of its 29 findings (it carries both required headings), and a doc-health run on the merged tree is byte-identical to its base at the new main tip -- 3/8/76/3, new findings [], empty finding-by-finding diff. What moved is the corpus size, so the real post-exit figures are recorded for the next re-run rather than leaving the pin to be discovered stale. Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: brettheap <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
Brett left four vibe-annotations on the live UI (2026-08-18). Two are
implemented here; the other two are Phase B design input handled separately
(no multi-doc loading, no tile verbs, no rail dropdown in this PR).
Both of mine say the same thing in different places: the surface should be
legible from its controls, not from standing prose.
Annotation A — on
div.doxbench-statusbarThe annotated element's captured text was
Outline: no unsaved changesDocument: no unsaved changesSave persists only the changed buffers, in th…— three thingsstood there, and each is answered differently.
What the refusal surface became
The two per-buffer regions are not decoration: they are the surface the ratified
buffer contract requires a partial Save to be reported in, they are where
every stated refusal on this canvas lands, and they are
aria-live. Removingthem would remove a contract obligation and an accessibility surface at once.
So they stay in the DOM under
.doxbench-sronly— the same recipe.doxchat-announceuses one region over (position: absolute+clip-path: inset(50%)), neverdisplay: noneand never thehiddenattribute, either of which takes a live region out of the accessibility tree
along with the text. Every sentence, and every rule pinned on one, survives.
And because an event must still reach a sighted human without standing there
afterwards,
.doxbench-eventnotecarries exactly those: a refused edit, arefused selection, a failed load, a seam that threw, and any per-buffer Save
verdict that is not
committed(refused / not attempted / a commit thecanvas could not adopt). It names the buffer it is about and clears itself after
eventNoteMs— injectable likepreviewDelayMs, because a timer a test cannotpin is a timer nobody can trust. A committed buffer gets no event: Save going
unreachable and the buffer going clean is the report.
The division: state on the controls, durable detail in the sr-only regions,
events on a transient line.
Annotation B — on
div.swb-posture-noteWhat the model-config inspection found (feeds Phase B)
Inspected before implementing, and it decided the shape:
GET /workbench/model-catalog, gated on the sameloopback +
session+ resolved-actor verdict the session capability uses;WorkbenchModelPort—serve.py'smodel_port_factoryseam. There is no CLI flag, no config file and noenv-var read:
ideation_dashboard.serve --helphas no model argument;— the route answers
EMPTY_CATALOGas a success, not an error. That is theratified editor-only posture (FR-025 / SC-008), so the selector genuinely has
zero entries here by design;
model_id, in the releasedenvelope's own
requiredlist, and the rail already sendsstate.selectedModelIdthere.That last point is the important one for Phase B: carrying a per-turn model
choice needs no wire change at all. The mechanism, the selector and
canSend's refusal already exist. This annotation was a move, not a feature.Implementation
doxchat-sendrow— same element,same
selectModelbinding, samecanSendauthority, three regions closer tothe control its choice governs;
That is the honest shape of this plane: the server answers with a catalog and
the catalog is empty. This replaces T104 F5-9's selector-XOR-note trade, whose
reason — never look live when you are not — a visibly inert control serves
better than an absent one;
titleand itsaria-describedbytarget, so the reason is programmatically associated andnot tooltip-only; the note goes sr-only. One selector (
unavailabilityNote)still chooses which sentence — stale token / unreadable catalog /
configured-none — so the tooltip and the F10-1 vocabulary cannot drift;
three chat rungs are marked
chat: trueinpresentationPostureand theirsentence lives on the send button; the plane rungs (hosted, gate-off, unkeyed,
source-unavailable) explain a withheld canvas where no such control exists,
so they keep the inline note. One rule, in one function, both callers through it.
The wire limitation, flagged
Everything above fits inside the released contract because
model_idis alreadya field. What does not fit without a contract release is anything the closed
envelope has no room for — per-turn model metadata beyond the id (a provider
hint, a selected-model echo in the response) would hit the same
additionalProperties: falsewall as the F2 turn-record obligation. If alater round wants it, it rides Phase B's chat-turn contract release alongside
F2 rather than forcing a release of its own. Recorded in
design.md.Spec amendments: none
No ratified scenario pins the statusbar's standing text, the posture note's
placement, or the selector's position. The one clause that comes close is the
gate-absent rule — "both controls SHALL state that absence as visible text
beside them rather than only in a hover title" — and it is honoured
unchanged:
SAVE_UNAVAILABLE_REASONstill renders as visible text besideSave wherever there is no seam (
test_save_unavailable_reason_is_visible_text_not_only_a_hover_titlepasses untouched). It is the wired posture's standing note that went, and no
requirement ever asked for that one.
design.mdrecords the analysis.Test re-pins (reason in each test)
test_with_a_save_seam_the_control_becomes_enabledtest_the_busy_posture_is_cleared_when_the_save_settlesaria-busy+ the status sentence, not the disabled flagstest_the_loading_and_failed_load_postures_disable_the_refusing_controlsafterDirtyControlsprobe (dirtying the active buffer)test_the_shell_posture_note_follows_the_catalog_failuretitle+aria-describedby; asserts the standing line is emptytest_an_empty_catalog_mount_renders_the_in_rail_unavailability_notesendTitle == noteText,aria-describedbyset..._stale_console_token_...,..._unreadable_catalog_...,..._throwing_catalog_...,..._configured_none_...noteSrOnly+sendTitle == noteTextgetAttributeandparentNodeon appendNew pins: the standing text is gone and the controls carry the state; the
per-buffer sentences survive sr-only; an event refusal is visible transiently and
then clears while the durable verdict remains; the sr-only recipe is the house
one and not
display: none; the event note is its own live region; the selectoris labelled, sits in the send row, and the disabled Send's reason is
programmatically associated; only the plane postures still stand as an inline note.
Two changes were caught by existing absence pins, and both were fixed on my
side rather than by loosening the pin: a comment using the word "delete"
tripped FR-037's no-delete-verb grep, and a comment reading
from "nothing to save"read as a static import to the renderer's import-graph pin. Both reworded.Gates
python3 -m pytest tests/ideation-dashboard/ -q→ 2892 passed, 6 skipped in319.96s, exit 0.
OPENSPEC_TELEMETRY=0 openspec validate --all --strict→Totals: 60 passed, 0 failed (60 items); the change validates--strictclean.scripts/doc-health.py --single-repo .→ 82 findings on a clean0816313worktree, 82 on this branch — zero NEW, zero resolved.
scripts/validate-ideation-dashboard-contracts.py→ 0 errors, 0 warnings.🤖 Generated with Claude Code