Repository navigation
Realize the working-subject default: seed from the tile's title - #240
Conversation
The requirement has been ratified and promoted since Phase A ("The working
subject SHALL default from the tile's title or summary, remain editable"), and
nothing ever built it: `createChatState` seeded `workingSubject: ""` and no
caller filled it. Brett's 2026-08-21 annotation measured it from the running
surface -- "what is the box used for? i do not know how to use it" -- and
add-doxbench-editing-phase-b's Amendment 2 recorded it as a realization gap
needing its own slice. This is that slice; no OpenSpec change, because the
requirement is already ratified.
WHICH HALF OF "title or summary". `scope.title` is the resolution:
`workbenchScope` derives exactly one display title per tile kind (a cluster's
`name`, a possible's `title`, a staged topic's `staging_id`) and no tile in the
snapshot family carries a summary field for the other half to name. So no
second derivation and no unreachable summary branch is invented -- the shell,
which holds the tile record, hands the rail the same value the canvas is
already given and the header already renders.
THE SEED OBEYS THE HUMAN EDIT'S OWN RULE, by going through it. `editSubject`
refuses a non-string or over-512-byte value by returning the state unchanged,
so an over-long title seeds NOTHING and the box opens empty with its
placeholder. A bounded prefix was considered and rejected: the bound is
refused-never-truncated on both sides, a clipped title is text the human never
typed, and a seeded value the field would itself refuse is incoherent. Empty is
always sendable, so nothing seeded can leave Send refusing a value nobody
entered.
A STORED VALUE ALWAYS WINS, empty included. The rail mounts seeded and the
restore lands after it, so a persisted subject overrules the default. The
snapshot spells the subject as a plain string with no absent/null marker, so
the stored form cannot tell an emptied box from one nothing was ever put into;
the human's reading is the one worth being wrong about, because putting the
title back over a box someone emptied on purpose overrules a person, while
leaving an unfilled box empty costs one keystroke. With the seed in place that
ambiguity barely exists in practice, and the module says so.
A re-key threads the default too: FR-011 gives a moved scope key a fresh
conversation, and a fresh conversation is seeded exactly like a mount, so a
Save moving this tile onto its session ref comes back with the tile's subject
rather than an empty box.
The server needs nothing: `validate_working_subject` already refuses over-512
and truncates nothing, the wire declares `working_subject` with no minLength,
and `_working_subject_section` renders whatever string arrives.
Twelve tests, mutation-validated. Disabling the seed kills six (including the
mounted-rail probe); making the default clobber a stored value kills the
precedence pair in both directions; truncating the seed to the bound kills
three, one of them the byte-vs-code-point discrimination; cutting the shell's
wiring kills the composition pin. The accessibility docstring that recorded the
default as unrealized is corrected rather than left standing.
Gates: tests/ideation-dashboard 3761 passed / 14 skipped (exit 0);
tests/doc-health exactly the four known client-identity worktree artifacts;
`openspec validate --all --strict` 64 passed, 0 failed.
Co-Authored-By: Claude Fable 5 <[email protected]>
The comments claimed no tile carries a summary field for the requirement's other half to name — literally true of the field NAME, but possible.claim is a required one-line prose field and the closest thing any tile has to a summary. Both comments now name it and say why the title still wins: it is the one field all three tile kinds share, and a disjunction is satisfied by either half. Prose only. Co-Authored-By: Claude Fable 5 <[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 the previously-promoted “working subject defaults from the tile’s title (or summary)” requirement by having the staging workbench shell pass the tile’s resolved display title down to the doxBench chat rail, and by teaching the chat model to seed fresh chat state from that default (while preserving all existing precedence and size/bounds semantics).
Changes:
- Pass
subjectDefault: scope.titlefromstaging-workbenchintomountDoxBenchChatRail, so the rail doesn’t re-derive the title and the three surfaces (header/canvas/rail) stay consistent. - Update the chat model so
createChatState(key, subjectDefault)seedsworkingSubjectthrougheditSubject, and thread the same default throughrekeyChatState(..., subjectDefault)for fresh-conversation semantics on key changes. - Add/extend test coverage to pin the defaulting behavior at both the view mount level and the pure model level, including “stored always wins (empty included)” and “never truncate; refuse over-512-byte defaults”.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/ideation-dashboard/test_staging_workbench.py | Pins that the shell passes scope.title down as subjectDefault when mounting the rail. |
| tests/ideation-dashboard/test_doxbench_chat_view.py | Adds integration + model harness assertions covering seeding, editability, precedence, and byte-bound refusal behavior. |
| tests/ideation-dashboard/test_doxbench_accessibility.py | Updates narrative docs to reflect that the subject placeholder/label affordances remain valid after seeding landed. |
| scripts/ideation_dashboard/web/views/staging-workbench.js | Supplies subjectDefault: scope.title when mounting the chat rail (shell resolves the tile title). |
| scripts/ideation_dashboard/web/views/doxbench-chat.js | Threads subjectDefault into createChatState and rekeyChatState at rail mount/rekey points. |
| scripts/ideation_dashboard/web/views/doxbench-chat-model.js | Implements seeded defaults in createChatState and carries the default through rekeyChatState, while keeping restore precedence intact. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…mitted bytes
The flag this packet raised in the previous commit is ANSWERED, not open.
Measured by lane hermes-wallet-exercise and re-verified against OpsxFactory
origin/main:
git cat-file -p origin/main:tenants/opensoft-codexfactory-mcp-hosting-plan.yaml \
| sha256sum
-> 4e1a4b763cf911134ac222e0ee7ee52afb2f902b36fabc1dbe4b3e2d7ac9f992
The plan's own `plan_digest` block (lines 880-892) defines the digest exactly
that way — algorithm sha256, "over: the exact bytes of this file, as committed",
"canonicalization: none — the raw file bytes", computed_by sha256sum — and
DELIBERATELY DOES NOT STORE THE VALUE: `value_recorded_here: false`, reason "a
digest over this file's bytes cannot be a line in this file". Self-referential,
so the absence is arithmetic rather than an omission. The bytes at a83e1d95 (the
last amendment, committed 2026-09-05T18:32:59-04:00 = 22:32:59Z, ~34 minutes
before the 23:06Z approval) hash to exactly that value today.
8abb0e96... is NOT a live digest of anything. It is the superseded orphan that
codexFactory #164's review/ratification.md once named for a document that never
existed (measured across 1,732 tree paths, OpsxFactory, and gh search code over
the opensoft owner: one occurrence, in that record itself). It survives only as
history at plan header lines 10 and 24, at plan_digest.supersedes.digest (904)
and in owed_acts seq 2 (1167) — an owed act codexFactory PR #240 (a4aa41b0,
2026-09-06) discharged, that ratification.md now citing 4e1a4b76 as superseding
it. THE 4.2 TICK'S PHRASE "the digest offered by codexFactory" DESCRIBES THE
SUPERSEDED INPUT, NOT THE APPROVAL, which the same tick names two sentences
later. 8abb0e96 must never be reused or cited as "offered".
Consequence for the ceremony: the re-approval after the org-move amendment is
taken over the NEW sha256sum of the amended bytes, computed the same way. The
runbook's step 9.2a therefore COMPUTES AND PRINTS it and Brett's re-approval
word quotes the printed value — an approval is over bytes, and a ruling quoting
a stale digest approves a document that no longer exists.
openspec validate --strict green; --all --strict 98 passed / 1 failed
(unchanged); validate-sequenced-after.py green.
Lane: provenance-autonomous-merge
Realizes the promoted-but-unbuilt requirement "The working subject SHALL default from the tile's title or summary, remain editable" — the gap surfaced by Brett's "what is the box used for?" annotation and recorded in phase-b's Amendment 2.
possible.claim, is acknowledged and deliberately not used — the title is the one field all three kinds share). The shell hands the rail the samescope.titlethe canvas and header already render, so the three cannot drift.editSubjectitself — an over-long title seeds nothing (never a truncated prefix, pinned by a byte-vs-code-point discriminating test: 171 three-byte chars = 513 bytes), and nothing seeded can cause a send refusal.Gates:
tests/ideation-dashboard3761 passed, exit 0; doc-health exactly the four known location artifacts;openspec validate --all --strictgreen; doxBench privacy trap clean.🤖 Generated with Claude Code