Skip to content

doxBench Phase A annotation round: retire the chrome section, inline Save/Cancel with the view tabs - #199

Merged
brettheap merged 1 commit into
mainfrom
change/doxbench-phase-a-annotation-round
Aug 18, 2026
Merged

brettheap merged 1 commit into
mainfrom
change/doxbench-phase-a-annotation-round

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Brett used the live Phase A canvas and left two vibe-annotations on it
(127.0.0.1:8765, both on the doxBench canvas). Each is quoted verbatim below
with what it became.

Annotation 1 — on div.doxbench-chrome

"we do not need this section now that the left panel will let us select the
active document. remove this but place the save and cancel in line with the
tabs."

The annotated section held the "Active document" picker, the two per-buffer
status regions, Cancel and Save. Its screenshot text — Active documentproposal-b.mdproposal.mdtasks-b.mdtasks.mdno unsaved changesno unsaved changesCancelS… — contains the second finding by itself: two identical,
unattributable status sentences.

Annotation clause Implementation
"we do not need this section" div.doxbench-chrome is gone. The canvas builds a tab row and a status row instead.
"now that the left panel will let us select the active document" The canvas's own document picker is retired. Phase A design D3 kept it because its dirty-buffer guard was load-bearing — true at the time: the guard, the revert-on-refusal and the refusal sentence lived partly in the picker's own change handler. The PR #196 review moved all three into selectDocument (F4/F6), which is what made the control removable without losing a rule, and why the two changes had to happen in that order. The context region's docs wheel is now the sole human selection route — what "left selects" always meant.
"place the save and cancel in line with the tabs" One Save and one Cancel now sit in a doxbench-actions group inside the view-tab row, outside the role=tablist element. A button inside a tablist is announced as a tab and joins the roving-tabindex arrow cycle — the exact two-level confusion the naming resolution exists to prevent.

What the status/refusal surface became. A compact doxbench-statusbar row
directly under the tab row, carrying both per-buffer status regions
unchanged
— still aria-live="polite", still one per buffer, still the place
every stated refusal lands — plus the Save note. Per-buffer reporting is
load-bearing (the ratified buffer contract requires a partial Save to be
separately readable, and my own tests pin it), so it was relocated, not merged.

One thing did change, and the annotated screenshot is why: each line now
names its buffer visibly
(Outline: no unsaved changes /
Document: no unsaved changes). Stacked unlabelled in the old chrome, a clean
canvas rendered "no unsaved changes" twice with nothing to attribute either
sentence to — precisely the case a partial Save has to report. The accessible
name carried the buffer already; now the visible text does too. The loading
posture, the refusal sentences and the failed-load line take the same prefix.

G-1's outline-only posture was stated twice — on the picker's label and in
the Document buffer's status. The status keeps it: it is a fact about the
BUFFER, not about a control.

No spec text needed amending for this annotation. The ratified rule is one
Save and one Cancel "placed outside both view tabs so that each control and
its answer are on screen whichever view the human is standing on"
— a row
carrying the tabs left and the controls right satisfies that literally; the
controls are outside both tabpanels and scoped to neither view.

Annotation 2 — on h2.doxbench-heading

"why do we need this line? i do not see what it is adding to our UI."

Nothing an assistive technology did not already get. A role=region is
announced by its accessible name on entry, and the h2 rendered that
identical string ("doxBench · <scope>") a second time, visibly, costing a
row of a narrow panel.

The heading is removed; the region keeps its aria-label. That is the house
idiom
, not a new one — the two sibling regions, swb-context and
doxbench-rail, have always been named exactly that way, with aria-label and
no heading of their own. A visually-hidden h2 was considered and rejected
for the same reason the visible one was: inside a region that already has a
name, it is simply announced twice.

The one collision with ratified text — amended, not silently diverged

doxBench surface identity's scenario read "its visible heading and
accessible surface name MUST use the exact name doxBench"
, and this canvas's
heading was the surface's only visible statement of it (the overlay's own title
strip shows the scope, not the product). The change delta now carries that
requirement as MODIFIED, directed by Brett's 2026-08-15 annotation
round
:

  • the exact casing is required wherever the surface names itself — visible
    product copy, navigation, heading text where a heading exists, and
    accessible names;
  • a region whose accessible name already carries the product name SHALL NOT
    be required to restate it as visible heading text
    , with the reason stated
    (announced twice, costs visible space);
  • a new scenario pins the limit: "the accessible name MUST NOT be dropped in
    exchange — removing the heading is only permitted while the region stays
    named."

Tests re-pinned (each with its reason in the test)

Test Re-pin Why
pickerDuringLoadScenario → selectDuringLoadScenario drives selectDocument directly the rule it pinned (refuse during load, state it) lives in selectDocument now; the picker was only a caller
test_the_document_picker_reaches_select_document_and_reverts_when_blocked → test_the_canvas_renders_no_document_picker_and_the_route_still_guards asserts the control is absent and every rule it carried still holds the guard/refusal/reconcile moved in F4/F6; the reverting half is the wheel's and is pinned live
test_the_loading_and_failed_load_postures_disable_the_refusing_controls measures the two controls that remain the rule is unchanged: a control whose handler drops its refusal must be one the browser physically refuses
oversizedSwitchScenario (F6) second promise-dropping caller is now the guard's discard arm the picker's change handler was the old one; the class of defect is identical
test_an_outline_only_tile_states_that_posture_instead_of_an_empty_picker → ..._in_the_buffers_own_status reads the buffer's status, asserts selects == 0 the posture belonged to the buffer, not to a control
test_an_unavailable_source_is_reported_inline_with_context_retained selects >= 1 → selects == 0 the assertion inverted with the control
test_the_canvas_region_carries_the_exact_product_name asserts the accessible name + no heading restates it the accessible name is what names a region
test_authoring_surfaces_disable_autofill_and_derive_text_direction picker's autofill line dropped it went with the control
test_a_blocked_selection_leaves_wheel_picker_and_canvas_agreeing → ..._wheel_and_canvas_... two surfaces, third asserted absent there are two now
test_the_document_picker_label_stays_a_compact_row → test_the_retired_picker_leaves_no_orphan_rules_behind asserts no orphaned CSS for retired controls append-wave discipline leaves duplicate blocks around; a retired control must not leave unreachable rules

New a11y pins: the region is named without a duplicate visible heading (with
the sibling-region idiom asserted alongside); the panel controls sit in the tab
row but outside the tablist; each buffer status names the buffer it reports.

Gates

  • python3 -m pytest tests/ideation-dashboard/ -q → 2885 passed, 6 skipped
    in 310.63s
    , exit 0.
  • OPENSPEC_TELEMETRY=0 openspec validate --all --strict → Totals: 60 passed, 0 failed (60 items); the change itself validates --strict clean.
  • scripts/doc-health.py --single-repo . → 82 findings on a clean 6ac42ed
    worktree, 82 on this branch, zero NEW / zero resolved.
  • scripts/validate-ideation-dashboard-contracts.py → 0 errors, 0 warnings.

🤖 Generated with Claude Code

…Save/Cancel

with the view tabs

Brett used the live Phase A canvas and left two annotations on it.

ANNOTATION 1, on `div.doxbench-chrome`: "we do not need this section now that
the left panel will let us select the active document. remove this but place
the save and cancel in line with the tabs."

  * The canvas document picker is RETIRED. Phase A design D3 kept it because
    its dirty-buffer guard was load-bearing — and it was, until the PR #196
    review moved that guard, the refusal sentence and the wheel reconcile INTO
    `selectDocument` (F4/F6). That is what made the control removable without
    losing a rule, and it is why the two changes had to happen in this order.
    The context region's docs wheel is now the sole human selection route,
    which is what "left selects" always meant.
  * G-1's outline-only posture used to be stated twice, on the picker's label
    and in the Document buffer's status. The status keeps it: it is a fact
    about the BUFFER, not about a control.
  * Save and Cancel move into the view-tab ROW, in their own group inside the
    row but OUTSIDE the `role=tablist` element (a button inside a tablist is
    announced as a tab and joins the roving-tabindex cycle). The ratified
    "one Save and one Cancel ... outside both view tabs so that each control
    and its answer are on screen whichever view the human is standing on" is
    satisfied literally by that placement, so no spec text changed for it.
  * THE PER-BUFFER VERDICT SURFACE SURVIVES, in a compact status row under the
    tab row: both regions, still `aria-live`, still per buffer — partial saves
    and stated refusals are load-bearing. One change: each line now NAMES its
    buffer visibly. Stacked unlabelled in the old chrome they rendered as "no
    unsaved changesno unsaved changes" (visible in the annotated screenshot):
    two identical sentences a reader could not attribute, which is exactly the
    case a partial Save has to report.

ANNOTATION 2, on `h2.doxbench-heading`: "why do we need this line? i do not see
what it is adding to our UI."

  * Nothing an assistive technology did not already get. A `role=region` is
    announced by its accessible name on entry, and the h2 rendered that same
    string again, visibly, costing a row of a narrow panel. The heading goes;
    the region keeps its `aria-label`, which is the house idiom rather than a
    new one — `swb-context` and `doxbench-rail` have always been named exactly
    that way, with no heading. A visually-hidden h2 was considered and rejected
    for the same reason: inside a region that already has a name it is simply
    announced twice.

ONE COLLISION WITH RATIFIED TEXT, AMENDED RATHER THAN IGNORED. `doxBench
surface identity`'s scenario read "its visible heading and accessible surface
name MUST use the exact name `doxBench`", and this canvas's heading was the
surface's only visible statement of it. The change delta carries that
requirement as MODIFIED, directed by Brett's 2026-08-15 annotation round: the
name is required wherever the surface names itself and in the ACCESSIBLE name;
a region already carrying it need not restate it visibly; any heading that IS
rendered must still use the exact casing; and the accessible name may never be
dropped in exchange. A new scenario states that last clause so the removal
cannot be read as permission to leave a region unnamed.

Tests re-pinned honestly, each with its reason in the test: the picker-route
scenarios now drive `selectDocument` (where the rules moved) and assert the
control is genuinely absent; the loading/failed-load posture is measured on the
two controls that remain; the second promise-dropping caller in the F6 probe is
now the guard's discard arm; the outline-only posture is read from the buffer's
own status; the region-name test asserts the accessible name and that no
heading restates it; and the styles pin flips from "the picker label lays out
as a row" to "a retired control leaves no orphan rules behind".

Gates: pytest tests/ideation-dashboard 2885 passed / 6 skipped; openspec
validate --all --strict 60 passed / 0 failed; doc-health 82 findings on a clean
6ac42ed worktree and 82 on this branch, zero NEW;
validate-ideation-dashboard-contracts 0 errors / 0 warnings.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 18, 2026 04:56

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

@brettheap
brettheap merged commit 224bf22 into main Aug 18, 2026
1 check passed
@brettheap
brettheap deleted the change/doxbench-phase-a-annotation-round branch August 18, 2026 04:58

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 applies Brett’s 2026-08-15 Phase A canvas annotations by removing the now-redundant doxBench “chrome” (including the canvas document picker), inlining Save/Cancel into the view-tab row (but outside the role=tablist), and removing the duplicate visible h2 heading while preserving the region’s accessible name. It also re-pins the relevant test suite and updates OpenSpec delta text to reflect the amended “surface identity” requirement.

Changes:

  • Retire div.doxbench-chrome and the canvas document picker; keep guarding/refusal behavior in selectDocument.
  • Move Save/Cancel into a doxbench-actions group within the tab row and add a separate status bar row; prefix per-buffer status text with the buffer name.
  • Remove the visible h2.doxbench-heading while keeping aria-label naming; update tests/spec/design docs accordingly.

Reviewed changes

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

Show a summary per file
File Description
tests/ideation-dashboard/test_doxbench_workspace.py Replaces the old picker-label CSS pin with assertions about absence of retired-picker/chrome rules and presence of tabrow/statusbar styling.
tests/ideation-dashboard/test_doxbench_view.py Re-pins scenarios/tests away from the retired picker to selectDocument and asserts the picker/heading are truly absent.
tests/ideation-dashboard/test_doxbench_accessibility.py Adds accessibility pins for “named region without duplicate heading”, actions outside tablist, and buffer-named status lines.
scripts/ideation_dashboard/web/views/doxbench-editor.js Implements UI restructuring (tab row + status bar), removes picker + heading, and prefixes visible status lines by buffer.
scripts/ideation_dashboard/web/styles.css Adds styling for the new tab row/actions + status bar and removes picker/chrome/heading styling.
openspec/changes/add-doxbench-editing-phase-a/tasks.md Records the annotation round and marks the resulting tasks complete.
openspec/changes/add-doxbench-editing-phase-a/specs/ideation-dashboard/spec.md Amends/expands the “doxBench surface identity” requirement to allow no visible heading when the region is already named accessibly.
openspec/changes/add-doxbench-editing-phase-a/design.md Documents that D3 (“picker stays”) is revisited/reversed and captures the annotation-round rationale.

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

Comment on lines 201 to +208
styles = STYLES.read_text(encoding="utf-8")
last = styles.rfind(".doxbench-picker-label {")
assert last != -1, "the picker-label rule is gone"
block = styles[last:styles.index("}", last)]
assert "flex-direction: row" in block, (
"the winning picker-label block still inherits column from the "
"earlier wave's block")
assert "flex: none" in block, (
"the winning picker-label block still competes for the pane's height")
for orphan in (".doxbench-picker-label", ".doxbench-document-picker",
".doxbench-chrome", ".doxbench-heading {"):
assert orphan not in styles, f"orphaned rule for a retired control: {orphan}"
# …and the rows that took their place are styled in both waves, so the
# later block cannot silently inherit the earlier one's layout again
assert styles.count(".doxbench-tabrow") >= 2
assert styles.count(".doxbench-statusbar") >= 2
Comment on lines 1575 to +1581
/* the panel chrome: the document picker, one status region per buffer, and the
one Save / one Cancel — all OUTSIDE both view tabs, so each control and its
answer are on screen from either view. */
.doxbench-chrome { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: none; }
/* The status row: each buffer's own live region plus the Save note, under the
tab row. The chrome block this replaces also carried the document picker and
the two controls; the picker is retired and the controls moved into the tab
row (Brett's 2026-08-15 annotation round). */
brettheap added a commit that referenced this pull request Aug 21, 2026
… 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]>
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