Skip to content

Spec-driven threads: gated requirements/design/tasks artifacts inside a thread #269

Closed

Description

@currentbits

Inspired by AWS Kiro (three gated spec artifacts + task dependency waves), GitHub spec-kit (/speckit.clarify, /speckit.analyze, /speckit.converge), and OpenSpec (spec deltas ADDED/MODIFIED/REMOVED).

Add an optional spec mode for threads: the agent produces requirements.md (acceptance criteria), design.md, tasks.md as reviewable artifacts with an approval gate between phases (quick-spec skip for small work). Then:

  • tasks.md is parsed into a DAG and independent tasks dispatch to parallel worker forks in dependency waves (intra-thread complement to Planboard card dependency chains (card B blocked on card A) #251).
  • A 'converge' action compares the codebase against the spec and generates the remaining tasks, making specs living documents.
  • Bugfix variant: structured root-cause doc (current / expected / unchanged behavior) feeding a fix plus regression-test task.

Artifacts live in the worktree (e.g. .solenta/specs/) so they review and diff like code. Tessl's pivot and Amazon Q's death say 'spec as the product' fails standalone; spec as a workflow layer inside an orchestrator is exactly where it wins.

Activity

  1. added
    enhancement
    plan:todo
    on Aug 17, 2026
  2. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Research note (Lovable): add partial plan revision — highlight any section of the spec/plan, describe the change for just that part, and the revised plan renders as a diff (strikethrough/highlight) with a show-changes toggle. Surgical plan editing instead of regenerate-the-whole-plan. Nobody in the CLI-orchestrator space has this.

  3. added
    plan:doing
    and removed
    plan:todo
    on Aug 17, 2026
  4. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Gated artifacts landed in #352 (three parallel grok workers off a shared contract commit). Thread carries spec { slug, stage, awaitingApproval }; artifacts live in <worktree>/.solenta/specs/<slug>/. Stage machine in electron/services.js, spec_submit MCP tool, threads:startSpec|reviewSpec|specArtifact IPC, and a SpecCard with Approve / Request changes (approve advances the stage and dispatches the next run).

    Still open here: tasks.md dependency-wave dispatch, the converge action, the bugfix root-cause variant, and the quick-spec skip. The gate is procedural (prompt note + human click), not sandboxed.

  5. added a commit that references this issue on Aug 17, 2026
  6. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Deep-dive detail (Copilot upgrade agent): resumable markdown-state workflows — a committed .solenta/workflows/{id}/ folder with assessment.md/plan.md/tasks.md per-task notes that survives restarts and machine switches, diffable and reviewable in the PR itself. Teammate visibility for free via git.

  7. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Research note (Yadda 3.0, 'BDD in the Age of AI Agents'): given-when-then scenarios as the spec format — BDD scenarios are unambiguous, testable acceptance criteria, and map directly onto the requirements artifact. Worth considering as the spec template for behavior-heavy tasks.

  8. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 25 demand validation: "Add native session goals with /goal" is a top OpenCode request (anomalyco/opencode#27167, 72 comments), Copilot CLI shipped /autopilot objectives, and Claude Code kept plan mode while killing Ultraplan. Users want a durable objective attached to the session that survives compaction and steering, not just a plan artifact. Solenta's spec-driven thread artifacts should treat the objective/requirements doc as the load-bearing piece: it is what gets re-injected after compaction and what the verification loop (#296) checks against.

  9. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Verified: the gated spec pipeline is done — requirements/design/tasks artifacts in .solenta/specs/, approval gate between stages, spec_submit MCP tool, spec card UI, tests (spec-mode/spec-ipc/spec-mcp/specCard). NOT done: parsing tasks.md into a DAG with dependency-wave worker dispatch, and the converge action — src/devCoder.ts explicitly marks DAG parsing out of scope, so this appears deliberately narrowed. Splitting the remainder into a follow-up and closing this one.

  10. added
    plan:done
    and removed
    plan:doing
    on Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions