Repository navigation
Spec mode: gated requirements/design/tasks artifacts per thread (#269) - #352
Merged
currentbits merged 8 commits intoAug 17, 2026
Merged
Conversation
Shared types and the services-level gate only; runner, MCP tool, IPC and UI wiring land on top of this in parallel worker branches. Co-Authored-By: Claude Opus 5 <[email protected]>
…prompt (#269) Append specNoteFor after the hypothesis note in startRun so spec-mode threads see the current stage without storing it as a user message. Expose spec_submit on coder-threads (same project-gate as hypothesis_record) and cover the handler in spec-mcp.test.js.
Handlers sit next to threads:setNotes. startSpec and reviewSpec broadcast threads:changed; reviewSpec then dispatches the returned prompt via runner.startRun. specArtifact is a read and does not broadcast.
…into coder/spec-driven-threads-gated-requirements-d-f0a746
Add the thread-view spec card (stage strip, artifact markdown, approve / request-changes gate) and a header Spec mode button. Wire startSpec, reviewSpec, and specArtifact through useCoder the same way setNotes updates thread state from the returned ThreadInfo.
…into coder/spec-driven-threads-gated-requirements-d-f0a746
The card lives in ThreadView, so its CSS belongs in ThreadView.module.css — ThreadView was the only component reaching into App.module.css. Co-Authored-By: Claude Opus 5 <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
currentbits
deleted the
coder/spec-driven-threads-gated-requirements-d-f0a746
branch
October 3, 2026 16:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Optional spec mode for a thread: the agent writes
requirements.md, thendesign.md, thentasks.md, and a human approves each artifact before the next stage opens. Closes the headline of #269.Why
Kicking an agent straight at a vague prompt is where most bad runs start. A gate between "what are we building", "how", and "in what order" puts a human decision in front of each one, and keeps the answers as reviewable files rather than buried transcript. Artifacts land in
<worktree>/.solenta/specs/<slug>/so they diff, review, and merge like code — the shape #269 asked for.What changed
ThreadInfo.spec { slug, stage, awaitingApproval }(src/shared/ipc.ts);startSpec/submitSpec/reviewSpec/readSpecArtifact/specNoteForinelectron/services.js.reviewSpecnever starts runs itself: it returns the next prompt for the caller to dispatch.specNoteForrides every dispatched prompt (CLI only, never the stored message) until the stage reachesbuild, telling the agent which artifact to write and to change nothing else.spec_submiton thecoder-threadsserver: the agent writes the artifact, submits, and stops. The gate is never inferred from the transcript.threads:startSpec,threads:reviewSpec,threads:specArtifactplus preload passthroughs. Approving advances the stage and dispatches the follow-up run; "request changes" keeps the stage and hands the feedback back.docs/ARCHITECTURE.md.Deliberately not in scope
tasks.md→ dependency-wave dispatch to worker forks, theconvergeaction, the bugfix root-cause variant, and the quick-spec skip — all still open on #269.Known ceiling: the gate is procedural (the standing
[Spec mode]prompt note plus the human's Approve click), not sandboxed. Nothing stops an agent that decides to edit source early; acan_use_tooldeny inelectron/runner.jsis the upgrade if that shows up in practice. Marked with aponytail:comment inservices.js.Testing
electron/test/spec-mode.test.js(stage machine, note, artifact read),spec-mcp.test.js(tool + project guard),spec-ipc.test.js(handlers + run dispatch),test/specCard.test.tsx(card and gate buttons). Full suites: core 38, renderer 838, electron 1005/1006, memory 151 — the one electron failure is the pre-existingweb-integrationreconnect baseline on main. Also exercised end to end against a realStore: the spec field survives reload, the note names the right file, approve advancesrequirements→design.Built by three parallel grok workers off a shared contract commit, with disjoint file ownership.