feat-dev-small

0.3.0 Sealed

Take an approved plan and run it to a reviewed diff in an isolated worktree, then tear down.

Default model
anthropic/claude-sonnet-5
License
Apache-2.0
External version
7c1e4b2a-9d3f-4e6a-b8c0-2f5d1a9e3b47
Authors
OpenAWF
Tags
developmentreview

Tasks7

worktree-setup2.2.1 Create an isolated git worktree for this task. start sealed
Model
anthropic/claude-sonnet-5
Next

Input

properties:
  plan:
    type: string
required:
  - plan
type: object

Worktree Setup

Create a dedicated git worktree for this task, isolated from the main checkout and any other in-flight work. Return the worktree path and the plan unchanged so the following tasks can act on it.

setup-stack1.4.0 Bring up a local stack scoped to this worktree. sealed
Model
anthropic/claude-sonnet-5
Next

Setup Stack

Bring up a full local stack scoped entirely to this worktree through the setup-stack port. The stack is self-contained and shares nothing with other environments. If it fails it can be retried without recreating the worktree. Return the stack details and the plan.

create-diff3.0.1 Implement the plan against the worktree as a committed diff. sealed
Model
anthropic/claude-sonnet-5
Next

Create Diff

Implement the approved plan against the isolated worktree, producing the change as a diff committed to the task's branch. If this task received test failures as input, correct the diff to address them. Return the diff.

testing2.1.0 Run compile, unit, integration, and e2e checks on the diff. sealed
Model
anthropic/claude-sonnet-5
Next

Outcome pass

properties:
  diff:
    type: string
required:
  - diff
type: object

Outcome fail

properties:
  errors:
    items:
      type: string
    type: array
required:
  - errors
type: object

Testing

Validate the diff through four checks in order: compile, unit tests, integration tests, e2e tests. If any check fails, emit fail and return the failures so the diff can be corrected. Only if all four pass, emit pass and return the diff.

agentic-review1.2.3 Review the passing diff for correctness and quality. sealed
Model chain
  1. anthropic/claude-opus-5-5
  2. anthropic/claude-sonnet-5
Next

Outcome pass

properties:
  diff:
    type: string
required:
  - diff
type: object

System

You are a senior reviewer. Judge the diff against the plan, not your own preferences. Never edit the diff yourself.

Body

Agentic Review

Review the diff for correctness, quality, and adherence to the plan. Catch design problems, missed requirements, and risky changes that the tests do not. Emit pass and return the diff.

teardown-stack1.4.0 Tear down the stack brought up for this worktree. sealed
Model
anthropic/claude-sonnet-5
Next

Teardown Stack

Tear down the stack through the teardown-stack port: stop its processes, drop its database, and remove its generated config. Return confirmation.

remove-worktree2.0.0 Remove the git worktree, leaving the branch intact. sealed
Model
anthropic/claude-sonnet-5
Next
terminal

Remove Worktree

Remove the git worktree. This deletes the working checkout only; the branch and its committed diff remain in the repository. Return confirmation.

Show source
openawf: 0.1.0
name: feat-dev-small
summary: Take an approved plan and run it to a reviewed diff in an isolated worktree, then tear down.
model: anthropic/claude-sonnet-5
metadata:
  tags: [development, review]
  authors: [OpenAWF]
license: Apache-2.0
version: 0.3.0
external-version: 7c1e4b2a-9d3f-4e6a-b8c0-2f5d1a9e3b47
sha: sha256-abaa0bb90e227396d78be062a737e6a4b2cd96cf2980566bef97b871dfb7fbd1

start: worktree-setup
orchestration:
  worktree-setup: setup-stack
  setup-stack: create-diff
  create-diff: testing
  testing:
    pass: agentic-review
    fail:
      task: create-diff
      retries: 2
      session: resume
  agentic-review:
    pass: teardown-stack
  teardown-stack: remove-worktree
  remove-worktree: null

tasks:
  worktree-setup:
    version: 2.2.1
    sha: sha256-4207f150da965878d0fa6273dce20bc86a20de54cac3738dc35a2780be851520
    summary: Create an isolated git worktree for this task.
    input:
      type: object
      properties:
        plan:
          type: string
      required: [plan]
    body: |
      # Worktree Setup

      Create a dedicated git worktree for this task, isolated from the main
      checkout and any other in-flight work. Return the worktree path and the
      plan unchanged so the following tasks can act on it.

  setup-stack:
    version: 1.4.0
    sha: sha256-997dfbbefe636e55c494976805866b0a1a640308a3ad3e4b3f92921647aad177
    summary: Bring up a local stack scoped to this worktree.
    body: |
      # Setup Stack

      Bring up a full local stack scoped entirely to this worktree through the
      setup-stack port. The stack is self-contained and shares nothing with
      other environments. If it fails it can be retried without recreating the
      worktree. Return the stack details and the plan.

  create-diff:
    version: 3.0.1
    sha: sha256-34f88c52a41abdbfab4924cdd0a02b6ad08251e2baac49e4a01af1d93e4808fc
    summary: Implement the plan against the worktree as a committed diff.
    body: |
      # Create Diff

      Implement the approved plan against the isolated worktree, producing the
      change as a diff committed to the task's branch. If this task received
      test failures as input, correct the diff to address them. Return the diff.

  testing:
    version: 2.1.0
    sha: sha256-3e81d869c79d2a1148cef0dba8f2f9155df2a7ce09e46d03924bb71ab3a4150a
    summary: Run compile, unit, integration, and e2e checks on the diff.
    outcomes:
      pass:
        type: object
        properties:
          diff: { type: string }
        required: [diff]
      fail:
        type: object
        properties:
          errors: { type: array, items: { type: string } }
        required: [errors]
    body: |
      # Testing

      Validate the diff through four checks in order: compile, unit tests,
      integration tests, e2e tests. If any check fails, emit `fail` and return
      the failures so the diff can be corrected. Only if all four pass, emit
      `pass` and return the diff.

  agentic-review:
    version: 1.2.3
    sha: sha256-4adb2ca20aa9fcc74fccc9f460e119e254380c1b79c5202586e54add51e505e4
    summary: Review the passing diff for correctness and quality.
    model: [anthropic/claude-opus-5-5, anthropic/claude-sonnet-5]
    system: |
      You are a senior reviewer. Judge the diff against the plan, not your
      own preferences. Never edit the diff yourself.
    outcomes:
      pass:
        type: object
        properties:
          diff: { type: string }
        required: [diff]
    body: |
      # Agentic Review

      Review the diff for correctness, quality, and adherence to the plan.
      Catch design problems, missed requirements, and risky changes that the
      tests do not. Emit `pass` and return the diff.

  teardown-stack:
    version: 1.4.0
    sha: sha256-df55b6b985f45728bb4fbe16b36ef334859c95bd41b337ab6a9b3de7a3e235bf
    summary: Tear down the stack brought up for this worktree.
    body: |
      # Teardown Stack

      Tear down the stack through the teardown-stack port: stop its processes,
      drop its database, and remove its generated config. Return confirmation.

  remove-worktree:
    version: 2.0.0
    sha: sha256-3eb86c40d716f67fa889976ed348cfd604a59642b059790bbe027dcb80ae4e04
    summary: Remove the git worktree, leaving the branch intact.
    body: |
      # Remove Worktree

      Remove the git worktree. This deletes the working checkout only; the
      branch and its committed diff remain in the repository. Return confirmation.