session-retry-policy: Lock an account for 15 minutes after 5 consecutive failed logins, reset the counter after a successful login, and keep frontend and backend lock status consistent;dashboard-export: Let the operations dashboard export CSVs matching active filters, switch large exports to an async background job, and display progress with failure retry.

First confirm: independent Changes or a Supervisor Change?
Even if two requirements came out of the same planning meeting, keep them as separate independent Changes whenever they can be verified and shipped on their own.
Two ways to start in parallel
Option A: Plan both Shapes on one branch, then split into worktrees at Build time
If you prefer clarifying and confirming both specs before coding, propose them sequentially in chat on your current Git branch:--defer-build in the background to save your approval), then introduce the second requirement:
session-retry-policy.” When you are ready to build and tell the Agent “Start implementing session-retry-policy”, because another active Change (dashboard-export) exists in the planning directory, the Runtime automatically creates a dedicated branch comet/session-retry-policy and worktree .worktrees/session-retry-policy, hands off the original Run, formal artifacts, and approval, and returns the new execution directory (executionCwd). Ensure tracked code edits outside the planning directory are committed before handoff; handoff itself never auto-commits or pushes.
Option B: Create dedicated worktrees from the start
If you want to open two windows right away and let two Agents run Shape through Archive concurrently, tell the Agent in chat “Create this change in a dedicated worktree” (or select Option Cworktree when prompted for an isolation mode because uncommitted changes or another active change already exist). The Runtime provisions .worktrees/session-retry-policy, .worktrees/dashboard-export, and their branches automatically.
Developing in two windows without interference
Once the worktrees are ready, open two separate Agent sessions:- Isolated Run storage: Local SDK Runs live in your user Comet data directory, strictly isolated by workspace—submissions in Session A can never write to Session B’s Run.
- Explicit task ownership: Each workspace’s
.comet/current-change.jsontracks the selected change. If you need to make a quick unrelated edit in the main directory, tell the Agent “Step out of the current task selection so I can edit an unrelated file” (runsselect --nonein the background, permitting ordinary code edits while still protecting workflow files); tell it to resume when you return. - Hook Guard against cross-directory miswrites: Once
session-retry-policyhas handed off to.worktrees/session-retry-policy, any attempt to edit its files from the old main directory is blocked immediately with the right path. - Main directory edits preserved: Worktree isolation scopes only to the change itself and never wipes personal debug files left in your main checkout.
Handling the wrong directory or branch
To prevent cross-directory mistakes, ordinary status checks and diagnostics inspect only the current workspace and do not automatically scan every worktree on your machine.- If you accidentally try to advance
session-retry-policyfrom.worktrees/dashboard-export, the Runtime detects the directory and branch mismatch, blocks the action, and reports the expected path and branch. Switch back to.worktrees/session-retry-policyinstead of creating a duplicate change in the wrong directory. - If you accidentally switch branches inside a worktree, switch back to the bound branch. If you intentionally want to take over the same idle Run on the current branch, tell the Agent to rebind it to the current branch (the Agent calls
--rebindin the background after confirming norunningorunknownactions exist).
Resolving same-capability Spec conflicts at Archive
session-retry-policy (modifying authentication) and dashboard-export (modifying dashboard) touch different capabilities and archive completely independently.
Suppose a third parallel task session-device-limit (concurrent device cap) also modifies specs/authentication/spec.md. When either one reaches Archive, Native protects the official Spec from silent overwrites:
1. Requirement-level merging and conflict detection
When modifying an existing capability, each change records operations (add, modify, remove, rename) by Requirement ID in delta.yaml:
- If the two changes touch non-overlapping Requirement IDs inside
authentication, once the first change merges into the canonical Spec, the later change’sdelta.yamlstill merges directly; - If both modify the same Requirement ID and cause a structural conflict, Archive preflight pauses for the later change and lists the conflicting Requirement IDs without overwriting the canonical Spec.
2. The first Change merges directly into the canonical Spec
Oncesession-retry-policy passes verification first, it can archive directly (no --serial-first flag is needed on the SDK path):
- After Archive preflight passes, the Runtime merges
session-retry-policy’sdelta.yamlinto the project’s officialspecs/authentication/spec.md; - Completes directory archiving and performs Git delivery according to your confirmation.
3. Revise, reconcile, and re-verify the later Change on conflict
When advancingsession-device-limit to Archive next, if Archive preflight pauses due to a structural conflict on the same Requirement ID, tests run against the old baseline cannot be carried straight into Archive. The Agent walks through four steps with you:
- Pull and re-read the updated official
specs/authentication/spec.md; - Combine it with your
brief.mdto preserve both intentions, and have the Agent initiate a requirement revision back to Shape to updatedelta.yamland the target Spec and re-confirm; - Adjust affected implementation code to match the new baseline and rerun relevant tests via platform tools;
- Pass Verify again before completing Archive.
Interruption recovery and cross-device switching with multiple tasks
- Resume a specific task locally: Open the target worktree directory and name the task in chat (for example, “Continue
dashboard-export”). - Natural-language resume in a fresh session: When multiple active changes exist in the same workspace and you simply say “continue what I was working on”, the read-only
comet resume-probereturns the candidate list for you to choose instead of guessing. - Continue on another device: Stop advancing on the old device, commit and push each branch’s code,
.comet/config.yaml, and the change directory’scomet-state.yaml(containingrun_checkpoint),brief.md, and target Specs. On the new device, pull the branch and ask the Agent to run diagnostics and restore the original Run from the checkpoint (see Native task recovery).
Independent Archive and Git delivery
Archive and Git delivery are completely independent per Change: you can pushsession-retry-policy and open a pull request while keeping dashboard-export on a local branch without pushing yet.
Once SDK Archive finishes (Run status completed, workflow status done), verify local commits, merges, pushes, or pull requests against each change’s confirmed delivery scope (see Archive and delivery). After archiving, clean up clean temporary worktrees with Git once you confirm they are no longer needed; directories with uncommitted edits are always preserved.
Underlying command reference (normally run by the Agent; optional for terminal troubleshooting)
Underlying command reference (normally run by the Agent; optional for terminal troubleshooting)

