Playbook overview

Operating rules and briefs for agents and operators

Guide, operating model and reference

These are copyable starting points adapted from V4.1. Substitute your own names, paths, permissions and checks. Give each session the brief that fits the current task. Keep approvals and mandatory checks enforced by the systems that perform them.

Agent operating rules

Use this when handing one approved change to a worker. Fill in the scope and checks for the actual change before you pass it over.

Required context. Approved brief, repository guide, starting revision, allowed actions and required checks.
Permitted actions. Investigate and change the assigned slice within the stated permissions. Record unrelated findings for triage.
Expected outputs. Candidate revision, focused diff, observed check results and a handoff with open decisions.
When to stop. Stop at an unclear requirement, restricted operation, failed gate needing an owner or budget limit.

Read the repository guide and the approved task. Confirm the scope,
decision owner, starting revision and required checks.
Choose the direct, rapid or full spec-driven route with the team’s policy.
Find the owning code and callers. Reproduce an existing failure before
editing where practical. Use a focused source or runtime query first.
Work on one bounded change. Preserve unrelated edits and existing
behaviour. Record out-of-scope findings for triage.
If the brief, permissions or acceptance checks need to change, pause
and leave the decision, options, evidence and next step.
Run the agreed checks and inspect the diff. Record the revision and
observed results, including failed, inconclusive and omitted checks.
Leave independent acceptance to the verifier and authorised reviewer.

Existing repository assessment

Use this on a repository you’ve just picked up, when you want to find out what a fresh session can already run.

Required context. Repository at a known revision, a representative journey, and access to inspect setup and CI configuration.
Permitted actions. Inspect and run existing read-only diagnostics in an approved environment. Propose changes for review.
Expected outputs. Report with file references, commands run, observed gaps and one reproducible improvement proposal.
When to stop. Stop after the report or if a diagnostic requires access or changes outside the assessment.

Read the repository without editing it. Trace one representative
user journey from entry point to the owning module, callers and tests.
Find existing setup, navigation, architecture, runtime diagnostics,
verification and CI policy. Identify what is already useful, missing
or redundant. Record what you ran and what you could only infer.
Propose one gap to fix. Include the failure to reproduce, the smallest
change that could help and the evidence we would accept.
Get approval before changing tools, workflow policy or architecture.

Local task coordination

Use this when you can answer questions as the work progresses and want to agree where the agent should bring you back in.

Required context. Approved task and checks, repository context, engineer availability and the agreed checkpoints.
Permitted actions. Start scoped investigation, implementation or review sessions where separation helps.
Expected outputs. Task decisions, candidate revision, verification evidence and the next question for the engineer.
When to stop. Pause at the agreed checkpoint or at a change to scope, dependency, design or risk.

Read the approved task and agree where the engineer wants a checkpoint.
Inspect the code and return any decision that changes scope or risk.
Use a fresh session for a bounded investigation or implementation.
Split work only when the next session needs different context, tools
or judgement. Keep the brief, source and current evidence together.
Bring the engineer the focused diff, check results and any open
decision. Leave the handoff where a fresh session can read it.

Remote project bootstrap and delivery

Use this when the next person to see a new project needs to be able to run its first feature from a clean checkout.

Required context. Approved product brief, acceptance ledger, selected slice, workspace policy and runtime limits.
Permitted actions. Bootstrap the approved environment or implement the selected slice. Keep independent verification in the protected job.
Expected outputs. Runnable bootstrap and first journey, or an integrated revision, ledger evidence and a recovery handoff.
When to stop. Stop when the slice is verified, a required check stays unresolved, the budget expires or approval is needed.

Read the product brief, approved requirements and acceptance ledger.
Confirm the workspace policy, protected check configuration and budgets.
For bootstrap, leave a runnable skeleton, synthetic data, documented
commands, an architecture map and an independent CI check. Demonstrate
one representative journey from a clean checkout.
For delivery, take one approved slice. Start a fresh session with the
task contract and an isolated workspace. Check the integrated revision,
record verified evidence in the ledger and leave the next decision.
Hold deployment and scope changes for the appropriate approval.

Persistent work orchestration

Use this once a team has decided that moving a work item into an approved state can start a run. The tracker and runtime need to enforce that agreement.

Required context. Trusted work tracker, eligibility policy, claim store, execution capacity, Git and verification adapters.
Permitted actions. Claim eligible work and start fresh sessions. Recover, route decisions and publish through the trusted write paths.
Expected outputs. Durable run and claim records, linked code and evidence, and decision requests or acceptance transitions.
When to stop. Stop the affected run on lost authority, exhausted limits or a human decision. Keep other authorised work eligible.

Read approvals, priority and dependencies from the shared work record.
Read code revisions from Git and verification from the trusted build.
React to readiness events and reconcile periodically for missing events.
Claim approved, unblocked tasks atomically before starting a session.
Create one fresh session per bounded task with its approved revisions,
checkout, permissions, checks and stop conditions.
Persist the claim, candidate revision, evidence and next decision.
Reject late writes at all authoritative boundaries. Recover from the
saved state and start a fresh session when a run is superseded.
Route consequential questions to Requires Human with the options,
evidence and safe next step. Keep unrelated eligible work moving.
Advance to review only when the required independent result matches
the current code, build, policy and claim. Apply the acceptance policy.

For copyable data formats, see the task and verification contract, verification result, claim and decision packet, OpenSpec schema and evaluation fixture.