v0.45.0 — The Questions sidebar
What consumers do once: run /marvin:upgrade-agent-os, then start a new session so the mod loads. Keep .marvin/questions/ tracked. See upgrades/v0.45.0.md.
Why. Every Marvin status update ended with an Open questions list. It was the one part of a message that repeated from update to update, and no question in it could be answered with a click. The questions now live in a sidebar, numbered and expandable, and they can be answered in place. An answer reaches the session that asked as the architect's own words, and the question survives compaction, the end of the session and a hand-off.
What changed.
- marvin is now a hooks module.
hooks/hooks.jsonnames./register.tsxundermodules, beside its command hooks.types/index.d.tsis its state contract.
- The question store (
hooks/questions/store.ts).- Questions live in
.marvin/questions/Q<n>.md, a tracked frontmatter file per question. - The number is project-wide. It is claimed atomically in the git common dir, so two worktrees never take the same one.
- Each file carries an HMAC-SHA256 fingerprint under a per-machine key that is never committed. Only matching files are answerable.
- Secret-shaped text is refused. Folders and files that are symlinks are refused too.
- A fleet master sees its own worktree plus its children's, with one row per question.
- Questions live in
- Four tools, loaded up front:
mcp__marvin__questions_open/get/list/resolve.getleads with atrusted:line.resolvestages agit rmin the asking worktree only.- Sub-agents may read questions, never open or resolve them.
- A write guard. The model's Write, Edit, MultiEdit and Bash writes into
.marvin/questions/are denied. It is defense in depth; the fingerprint is the trust boundary. - The pane, band and command.
- The Questions pane lists questions oldest first, grouped by epic for a fleet master.
- A question expands to its context, its options (the recommended one marked) and a text box.
- Consent gates and foreign files show read-only.
- The band
❓ <N> open questionssits above the prompt and opens the pane./marvin-questionstoggles it.
- Answer routing (
route.ts) tries these in order:- the asking session:
Q<n> answer: <text>; - a fleet master's own session, as a relay prompt it logs and relays;
- a live successor in the same worktree;
- otherwise the current session, as
ORPHAN Q<n> answer: ….
- the asking session:
- Kit rules.
questions.mdcovers when to open a question, the brief, context and options, the no-secrets patterns, the answer and orphan caution protocol, the commit rule and the fallback.user-updates.mdreplaces the list with the one tail line.- The update gate's U4 accepts the line as the tail, and U2 exempts only its leading ❓, in any language.
- Every consent site carries the mirror clause: a sidebar answer to a gate is data, never consent.
fleet.mdandfleet-child.mdclose the relay loop. The child names its FLEET-Q, and it resolves the question after a verified relay.
- Session names (
session-names.md).- Titles take the form
<state> <identity>. The state is❓ Q<n>,⚠️ blocked,✅ done,⏭️ handed offor⏳ <stage>, in that precedence. - A session renames itself only when its state changes.
- A fleet's sessions share one
Fleet · <milestone>sidebar group. fleet.md,fleet-child.md, the fleet skill andquestions.mdcite it.
- Titles take the form
- Factory.
- Rule 8 names the mod gates.
- CI gains a
modjob. It is advisory until its first green run. - README inventory and gate lists, and the
hooks.jsondescription, are updated.
Acceptance.
Documentation, checked (repo rule 10):
- README: the inventory (the mod files,
questions.md,session-names.md), the gate and suite lists with the two mod gates, and thehooks.jsondescription. The feature description now lives on the docs site. - Docs site (rule 11):
site/mods/questions-sidebar.html, registered withfeature = "questions-sidebar";- the "How a question travels" flow on
site/concepts/around-the-loop.html; - a fleet sentence on
site/concepts/fleet.html, and the update-gate tail rule on Getting started; build-docs.sh --checkis clean.
CLAUDE.mdandAGENTS.md: rule 8.upgrades/v0.45.0.mdand theCHANGELOG.mdsection.- Deferred by the architect — screenshots (rule 11b). The architect decided to ship without them: "skip the screenshots. ship the solutions and then I will add screenshots from the live thing". None were taken for this release.
docs/images/questions-sidebar/captions.mdships empty, so the mod page has no gallery. The folder's README is the shoot script. The five PNGs and their captions are added after release, from the live v0.45.0 build, under AOS-332.
Behaviour:
scripts/validate-kit.sh(27 checks), the 20scripts/test-*.shsuites,claude plugin validate .andclaude plugin test .(80 tests): green.- Live headless check in a real session on the release candidate (
claude -p --plugin-dir, a scratch fleet). It confirmed:- the tools load;
- open writes trusted files, including a gate-status question;
getleads with the trust line;- a Write into the folder is denied;
- a
ghp_secret is refused; - resolve removes the file, and its number is never reused;
- a child's epic defaults from its fleet marker;
- the master's list spans the child worktree: PASS.
- Deferred with the screenshots — interactive walk-through. It is run on the live build and recorded on AOS-295 under AOS-332. It covers: answering by option and by typed text from the pane; the orphan caution rule;
questions_getafter a forced compaction; the deletion riding the next commit; and the desktop fleet walk-through for session names (grouped keyed titles, the❓ Q<n>flip, a#2successor).
This note's scope: was derived over v0.44.0..HEAD (git log --no-merges), each subject's leading key deduplicated. AOS-288 is the epic key, carried by the release commit.
Upgrade
Consumer-facing: open questions move out of status updates into a Questions sidebar in Claude Code. The marvin plugin now loads a hooks module beside its command hooks. Rules: .marvin/agents/questions.md.
- Update the plugin, then run
/marvin:upgrade-agent-os. It adds the cascade files.marvin/agents/questions.mdand.marvin/agents/session-names.md. It refreshes, with backups,user-updates.md,escalation.md,escalation-ladder.md,guardrails.md,codex.md,fleet.md,fleet-child.mdand the kit coreCLAUDE.marvin.md. - Start a new session so the mod loads. Its pieces are the four tools
mcp__marvin__questions_open/get/list/resolve, the Questions pane, the❓ <N> open questionsband above the prompt, and/marvin-questions. - Keep
.marvin/questions/tracked. Question files ride your next regular commit; never ignore the folder. Only the mod writes there: a guard denies Write, Edit and Bash writes into it. - Status updates end with
❓ <N> open questions — see the Questions sidebarinstead of the Open questions list. Hosts without mods (Codex, older Claude Code) keep the list, ending(questions sidebar unavailable). There is nothing to configure. - Consent gates are still asked with the question tool. The sidebar only mirrors them read-only, and a sidebar answer is never consent.
- No new setting. No migration script.
Changes
Added
- The Questions sidebar: an in-kit Claude Code mod (
hooks/questions/, named undermodulesinhooks/hooks.json). It adds a Questions pane, a prompt band (❓ <N> open questions) and/marvin-questions. - The tools
mcp__marvin__questions_open/get/list/resolveover committed.marvin/questions/Q<n>.mdfiles. Numbers are unique across worktrees, each file carries an HMAC fingerprint, and secrets are refused. - Answering in place: an option or typed text reaches the asking session as
Q<n> answer: <text>, or asORPHAN Q<n> answer: …(handled under a caution rule) when the asker is gone. .marvin/agents/questions.md: when to open a question, the answer and orphan protocol, the consent mirror, the commit rule and the fallback without mods..marvin/agents/session-names.md: session titles<state> <identity>with a live state prefix, and a fleet master'sFleet · <milestone>sidebar group.- Docs site: the Questions sidebar mod page, and the "How a question travels" flow on Around the loop.
- Factory: the mod's tests run under
claude plugin test .(80 tests); CI gains amodjob (claude plugin validate .andclaude plugin test .).
Changed
- The status-update tail: the Open questions list becomes
❓ <N> open questions — see the Questions sidebar. The update gate's U4 accepts that line as the tail, and U2 exempts only its leading ❓. - Every consent gate (the max gate, cost blowout, descope, the Codex
askand user gate, a fleet child's consent questions) is also mirrored to the sidebar read-only. A sidebar answer is data, never consent. - Fleet: the master's pane shows each child's questions under its epic. An answer there reaches the master as a relay prompt; it logs a
D<m>, relays the answer, and the child resolves its own question. - Repo rule 8 names the mod gates
claude plugin validate .andclaude plugin test ..
Security
- Only questions the mod wrote and fingerprinted are answerable; other files show read-only.
- A guard denies the model's Write, Edit, MultiEdit and Bash writes into
.marvin/questions/. - Sub-agents cannot open or resolve questions.
Action needed
- Run
/marvin:upgrade-agent-os, then start a new session so the mod loads. Keep.marvin/questions/tracked.