Explore: Separate change intent from execution and task tracking

Aperta
#2,335 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start by reading the current custom-schema workflow without apply.tracks and the Apply completion behavior described in #2306, then compare them with the related issues listed here. Prototype an opt-in workflow and evaluate the single-pass, selective, resumed and multi-PR cases against intended behavior, missed work and honest verification. Done means the experiment shows what intent and execution information must be preserved and whether durable execution records are needed; this issue does not specify implementation files or tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What we're exploring

A change describes what we want to achieve. An agent's execution plan describes how it gets there. These do not have to be the same thing.

Today, OpenSpec changes typically contain a proposal, delta specs, design and a tracked task list. The agent is expected to work through the tasks, update checkboxes and use those checkboxes to report progress.

This works for many users, but couples the durable plan to a particular execution of it. Tasks can become obsolete as the agent learns about the codebase, duplicate information in specs and design, and create a second task-tracking system alongside the agent's own tools. A completed checklist also does not establish that the implementation satisfies the intended behavior.

What if OpenSpec focused more on the implementation contract and let users and agents choose how to execute it?

Imagine the experience

Plan a change once. Implement it with any agent, in one pass or in smaller pieces. Review the result against the intended behavior rather than the agent's checklist. Keep your existing workflow if you prefer tracked tasks.

flowchart LR
    subgraph Before["Today"]
        direction TB
        A["Change"] --> B["Requirements and decisions"]
        A --> C["Tasks and live progress"]
    end
    subgraph After["Possible direction"]
        direction TB
        D["Change: intended outcomes and constraints"] --> E["Agent execution"]
        D --> F["Review against intent"]
        E -->|code and evidence| F
    end

For a simple change, the user can still propose, review and apply it exactly as they do today. The agent reads the change, plans its work using the tools available to it, implements and verifies the intended behavior. It doesn't have to update the planning artifacts merely to record progress.

A meaningful revision to the agreed behavior, constraints, decisions or delivery scope should still be recorded. The change is not immutable; we are distinguishing revisions to intent from execution bookkeeping.

What about larger changes and phased implementation?

Not everyone wants to apply an entire change in a single session or PR. Some users explicitly plan work in phases, select individual tasks, delegate parts to different agents, or ship a change incrementally. We should preserve this flexibility rather than replace it with an all-or-nothing Apply.

Consider a passwordless login change:

  • Establish the authentication and token infrastructure.
  • Add the sign-in API and email flow.
  • Add the UI and complete integration verification.

The user might ask:

Implement the entire change.

Or:

Implement only the authentication infrastructure for now. Keep the other parts of the plan for later.

Or:

Break this into separately reviewable PRs and implement the first one.

flowchart TD
    C["One change: passwordless login"]
    C --> A["Infrastructure"]
    C --> B["API and email"]
    C --> D["UI"]
    A --> P1["PR 1"]
    B --> P2["PR 2"]
    D --> P3["PR 3"]
    P1 --> V["Review the complete outcome"]
    P2 --> V
    P3 --> V

These are alternative ways of executing the same change, not necessarily different OpenSpec artifact types.

A possible minimal primitive is execution scope: the whole change, a named section or a subset of its intended outcomes. The user should be able to express this in natural language using the existing skill. An agent can identify relevant dependencies, derive tasks for that scope and stop at the requested boundary.

An optional, durable work breakdown can be valuable when the team wants to review or reuse it, particularly when sequencing, compatibility, rollout boundaries or human responsibilities matter. Existing task lists can serve this purpose. We should not mandate a new phase, tile, task or execution object before demonstrating that it is necessary.

Separate the scope of a run from the scope of a change. Completing one selected portion, one agent session or one PR does not imply the whole change is implemented. Verification should report what was checked, what remains and what is unknown.

How does this fit with projects?

A project provides enduring context: requirements, designs, decisions, specs and other sources. A change describes a concrete intended modification within that context. Execution is how a team realizes that change.

flowchart TD
    P["Project: shared intent and context"]
    P --> C1["Change A"]
    P --> C2["Change B"]
    C1 --> R1["Execution scope 1"]
    C1 --> R2["Execution scope 2"]
    C2 --> R3["Execution"]
    R1 --> V["Implementation and evidence"]
    R2 --> V
    R3 --> V
    V -.->|feedback| P

Use one change with several execution scopes when the pieces contribute to one agreed outcome. Use several linked changes when the pieces need their own independently agreed outcomes, spec updates or lifecycle. A larger initiative can connect those changes through shared project documents and relationships (#2334); we need not introduce mandatory epics or a hierarchy.

A PR, a task, a session and a change are not necessarily one-to-one.

How we could try this

The current CLI already supports custom schemas without apply.tracks, and #2306 explicitly supports Apply completion actions for those schemas. Start there rather than building a new execution subsystem.

  1. Prototype an opt-in variant of the existing spec-driven workflow with the same proposal, specs and design, but no mandatory mutable checklist. Allow optional implementation guidance and named sections.
  2. Adapt Apply to implement the whole change or the requested scope. Use agent-native task tools if available; fall back to ordinary planning. Preserve the contract and surface decisions that materially change it.
  3. Make status and verification honest: no tracked tasks is not zero progress or proof of completion. Inspect implementation, tests and available evidence, and report unverified outcomes. Test resuming work with a fresh agent.
  4. Test staged delivery across multiple PRs. Establish how the agent knows which scope and plan revision each piece was implementing. Start with normal references and existing Git/PR/test evidence; only introduce durable execution records if they prove necessary.
  5. Revisit finishing a change. Separate verification, updating canonical specs and retaining history conceptually. Keep them together in the default experience if appropriate, but do not finalize the whole contract merely because one execution ended. Coordinate with #1968 and #2033 rather than redesigning archive in this experiment.

Existing tracked workflows and custom schemas should continue to work. No forced migration, new storage service, orchestration engine or mandatory CLI commands. Try this as an optional workflow first; only change the default if the results justify it.

What we should learn

Compare the existing tracked workflow with (a) the same plan without mutable tracking and (b) a lighter plan without a mandatory task breakdown.

Evaluate single-pass Apply, selective Apply, interrupted and resumed work, multi-agent handoff, and multi-PR delivery. Measure correctness against intended behavior, missed work, unintended scope changes, resumption accuracy, tool calls, tokens, elapsed time and human review effort. Include cases where the user explicitly chooses the work breakdown.

This is an exploration, not a commitment to remove tasks.md. The goal is to establish what information OpenSpec needs to preserve, what agents should manage themselves, and which boundaries make the product simpler.

Related

  • #2126: applying a subset of tasks
  • #1893: behavioral contract versus indicative implementation plan
  • #2303 / #2304: duplicated task data and per-task instruction refresh
  • #2215: overlapping content across artifacts
  • #1652 / #1790: completion checkboxes versus actual verification and archive readiness
  • #2242: extensible schemas and lightweight workflows
  • #1968 / #2033 / #1683: rethink spec sync, change completion and archive
  • #2323: connecting intent to implementation and verification evidence
  • #2334: projects, sources and relationships
  • #2310: evaluating agent workflows
Lingua principale
TypeScript
Stelle
76k
Fork
5.2k
Merge medio
1g 5h
PR unite (30g)
58

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Fission-AI/OpenSpec

Tutte le issue di Fission-AI/OpenSpec

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.