Playbook overview

A worked OpenSpec change

Guide, operating model and reference

Use this example if a team has chosen OpenSpec. The booking service is fictional. You can keep the same documents and decisions in plain Markdown if your team already has a way to review them.

CLI checked 21 November 2026. OpenSpec 2.1.0 created and archived both changes in a disposable project. The rapid schema validated and the full change’s delta appeared in the canonical spec after archive. OpenSpec 2.1.0 release notes

Configure a rapid workflow

The commands below use OpenSpec 2.1.0. In a repository with OpenSpec set up, keep spec-driven as the project default if the team wants the full workflow for ordinary OpenSpec proposals. Select rapid explicitly when both the outcome and the approach are understood. The schema below is project-local. It goes in the project repository, so the next person can see what rapid means there.

openspec schema init rapid \
  --description "Short proposal and task list for a well-understood change" \
  --artifacts proposal,tasks \
  --no-default

Edit the scaffold at openspec/schemas/rapid/schema.yaml and its two templates.

name: rapid
version: 1
description: Short proposal and task list for a well-understood change
artifacts:
  - id: proposal
    generates: proposal.md
    description: Intent, scope, acceptance and verification
    template: proposal.md
    instruction: |
      Record the reason for the change, included and excluded behaviour,
      observable acceptance criteria, and how each criterion will be checked.
      Keep important compatibility and rollout constraints with the proposal.
    requires: []
  - id: tasks
    generates: tasks.md
    description: Implementation and verification checklist
    template: tasks.md
    instruction: |
      Use the agreed proposal to plan small, reviewable steps.
      Include verification and any documentation or configuration changes.
    requires: [proposal]
apply:
  requires: [tasks]
  tracks: tasks.md
  instruction: |
    Work through the tasks in order, using the proposal and existing project
    conventions. Pause for approval if an agreed behaviour needs to change.

The template files go in openspec/schemas/rapid/templates/. Start proposal.md with an H1 and headings for Why, What Changes, scope, acceptance, verification and operational notes. OpenSpec 2.1.0’s archive check expects the first two headings even with this rapid schema. Start tasks.md with an H1 and sections for implementation, verification and documentation. Have the person responsible for the change review the proposal before the worker starts. Schema dependencies only tell OpenSpec which planning files are present.

openspec schema validate rapid
openspec new change booking-cancellation --schema rapid
openspec status --change booking-cancellation
openspec instructions proposal --change booking-cancellation

The change lives under openspec/changes/booking-cancellation/. Follow status and the artifact instructions to draft the files. Schema commands are documented as experimental, so check the CLI version used by the project and its command help before putting them in a script. OpenSpec custom schemas · CLI reference

Fill in the rapid proposal

Use the following opening in proposal.md. Keep the two headings when adapting it.

# Proposal

## Why

Give customers a consistent cancellation deadline for future bookings.

## What Changes

Record and apply the 24-hour cutoff to new bookings. Preserve existing
terms. Keep refund and permission behaviour as it is.

Add the following acceptance and verification table.

IDAcceptanceVerification
C01A new booking can be cancelled exactly 24 hours before it starts.Domain test with a fixed clock.
C02Cancellation is refused just inside the cutoff.Domain test at the application’s supported time precision.
C03A booking created under the old policy keeps its terms.Integration test using a record that predates the new policy field.
C04Repeating a successful cancellation produces one cancellation event.Integration test that inspects persisted events.
V01The confirmation, displayed deadline and refusal explain the same policy.Walk the customer journey on the build under review.

Operational note. Treat 24 hours as elapsed time. Ask the owner how to handle any old booking whose terms can’t be established from the record.

Write the tasks

  • Inspect how existing bookings store or resolve their terms. Stop for a decision if the legacy rule cannot be established.
  • Record the policy for new bookings and exercise the cutoff with a fixed clock.
  • Check that legacy records and repeated cancellations behave as agreed.
  • Align customer wording and walk through V01 on the build under review.
  • Run the repository checks and attach the evidence for the exact revision.

Review and verify the work before closing it. Once the team accepts the result, archive the change with openspec archive booking-cancellation. If a lasting behavioural requirement belongs in the project’s canonical specs, keep it there using the project’s spec-update process. The two-file rapid schema does not produce a delta spec by itself.

Work through a full spec-driven change

Now suppose the booking service has to support refunds after cancellation. Start a separate change. Find the existing capability before deciding whether to add or modify a spec.

openspec list --specs
openspec new change refund-cancelled-bookings --schema spec-driven
openspec status --change refund-cancelled-bookings

In proposal.md, explain that eligible cancellations will request a refund and that the customer needs a way to see its status. Name the affected capabilities. If booking-cancellation is already a capability and the following requirement is new to it, its delta could include this section in specs/booking-cancellation/spec.md.

# Booking cancellation delta

## ADDED Requirements

### Requirement: Request one refund per eligible cancellation

When an eligible booking is cancelled, the service SHALL record one refund request for that cancellation and show its status to the customer.

#### Scenario: The customer cancels an eligible booking

- **WHEN** the customer successfully cancels a booking eligible for a refund
- **THEN** one refund request is recorded for that cancellation
- **AND** the customer sees that the refund is pending

#### Scenario: The customer repeats a successful cancellation request

- **WHEN** the same successful cancellation is submitted again
- **THEN** the service returns the existing cancellation and refund status
- **AND** no additional refund request is recorded

If you’re replacing an existing requirement, use a modified delta and include the complete resulting requirement and scenarios. In design.md, record how you identify the same cancellation, where its refund state lives, and what happens when a payment response is delayed. Put compatibility and rollout decisions there as well. Then split the tasks so the team can review the state transition and its tests before relying on the payment integration.

Run OpenSpec’s structural check and review the actual proposal, scenarios and design.

openspec validate refund-cancelled-bookings --strict

Apply the approved tasks with the project’s coding agent, run the agreed verification, and archive only once the team accepts the result. In projects with a delta spec, inspect the resulting canonical spec when archiving. OpenSpec’s full schema and delta formats · OpenSpec quickstart

Back to the task contract.