@starlein/paperclip-plugin-company-wizard 0.4.22 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/CHANGELOG.md +120 -0
  2. package/README.md +29 -15
  3. package/dist/manifest.js +24 -9
  4. package/dist/manifest.js.map +2 -2
  5. package/dist/ui/index.css +636 -589
  6. package/dist/ui/index.css.map +2 -2
  7. package/dist/ui/index.js +365 -60
  8. package/dist/ui/index.js.map +4 -4
  9. package/dist/worker.js +22374 -5375
  10. package/dist/worker.js.map +4 -4
  11. package/docs/PAPERCLIP-COMPATIBILITY.md +66 -0
  12. package/package.json +10 -10
  13. package/templates/ai-wizard/interview-system.md +2 -0
  14. package/templates/ai-wizard/single-shot-system.md +2 -0
  15. package/templates/bootstrap-instructions.md +3 -3
  16. package/templates/modules/accessibility/agents/engineer/skills/accessibility-audit.fallback.md +2 -2
  17. package/templates/modules/accessibility/agents/ui-designer/skills/accessibility-audit.fallback.md +2 -2
  18. package/templates/modules/accessibility/module.meta.json +1 -1
  19. package/templates/modules/accessibility/skills/accessibility-audit.bar.md +1 -1
  20. package/templates/modules/accessibility/skills/accessibility-audit.md +1 -1
  21. package/templates/modules/architecture-plan/agents/ceo/skills/architecture-plan.bar.md +2 -2
  22. package/templates/modules/architecture-plan/agents/ceo/skills/architecture-plan.fallback.md +2 -2
  23. package/templates/modules/architecture-plan/agents/engineer/skills/design-system.fallback.md +2 -2
  24. package/templates/modules/architecture-plan/agents/ui-designer/skills/architecture-plan.md +2 -2
  25. package/templates/modules/architecture-plan/agents/ui-designer/skills/design-system.md +3 -3
  26. package/templates/modules/architecture-plan/module.meta.json +2 -2
  27. package/templates/modules/architecture-plan/skills/architecture-plan.bar.md +1 -1
  28. package/templates/modules/architecture-plan/skills/architecture-plan.md +3 -3
  29. package/templates/modules/architecture-plan/skills/design-system.md +5 -5
  30. package/templates/modules/auto-assign/README.md +4 -4
  31. package/templates/modules/auto-assign/agents/ceo/heartbeat-section.md +1 -1
  32. package/templates/modules/auto-assign/agents/ceo/skills/auto-assign.fallback.md +6 -6
  33. package/templates/modules/auto-assign/agents/product-owner/heartbeat-section.md +1 -1
  34. package/templates/modules/auto-assign/module.meta.json +1 -1
  35. package/templates/modules/auto-assign/skills/auto-assign.md +3 -2
  36. package/templates/modules/backlog/agents/ceo/heartbeat-section.md +1 -1
  37. package/templates/modules/backlog/agents/ceo/skills/backlog-health.fallback.md +9 -9
  38. package/templates/modules/backlog/agents/product-owner/heartbeat-section.md +1 -1
  39. package/templates/modules/backlog/docs/backlog-process.md +36 -21
  40. package/templates/modules/backlog/docs/backlog-template.md +10 -9
  41. package/templates/modules/backlog/module.meta.json +2 -2
  42. package/templates/modules/backlog/skills/backlog-health.bar.md +3 -3
  43. package/templates/modules/backlog/skills/backlog-health.md +16 -15
  44. package/templates/modules/brand-identity/agents/ceo/skills/brand-identity.fallback.md +2 -2
  45. package/templates/modules/brand-identity/agents/cmo/skills/brand-identity.fallback.md +2 -2
  46. package/templates/modules/brand-identity/module.meta.json +1 -1
  47. package/templates/modules/brand-identity/skills/brand-identity.bar.md +1 -1
  48. package/templates/modules/brand-identity/skills/brand-identity.md +3 -3
  49. package/templates/modules/build-api/skills/api-design.bar.md +1 -1
  50. package/templates/modules/build-api/skills/api-design.md +1 -1
  51. package/templates/modules/ci-cd/agents/devops/skills/ci-cd.md +1 -1
  52. package/templates/modules/ci-cd/agents/engineer/skills/ci-cd.fallback.md +2 -2
  53. package/templates/modules/ci-cd/module.meta.json +1 -1
  54. package/templates/modules/ci-cd/skills/ci-cd.bar.md +1 -1
  55. package/templates/modules/ci-cd/skills/ci-cd.md +6 -4
  56. package/templates/modules/codebase-onboarding/agents/ceo/skills/codebase-audit.fallback.md +5 -5
  57. package/templates/modules/codebase-onboarding/module.meta.json +1 -1
  58. package/templates/modules/codebase-onboarding/skills/codebase-audit.bar.md +1 -1
  59. package/templates/modules/codebase-onboarding/skills/codebase-audit.md +2 -2
  60. package/templates/modules/competitive-intel/agents/ceo/skills/competitive-tracking.fallback.md +2 -2
  61. package/templates/modules/competitive-intel/agents/cmo/skills/competitive-tracking.fallback.md +2 -2
  62. package/templates/modules/competitive-intel/agents/customer-success/skills/competitive-tracking.md +2 -2
  63. package/templates/modules/competitive-intel/agents/product-owner/skills/competitive-tracking.fallback.md +2 -2
  64. package/templates/modules/competitive-intel/module.meta.json +1 -1
  65. package/templates/modules/competitive-intel/skills/competitive-tracking.bar.md +2 -2
  66. package/templates/modules/competitive-intel/skills/competitive-tracking.md +3 -3
  67. package/templates/modules/dependency-management/agents/engineer/skills/dependency-audit.fallback.md +2 -2
  68. package/templates/modules/dependency-management/agents/security-engineer/skills/dependency-audit.fallback.md +2 -2
  69. package/templates/modules/dependency-management/module.meta.json +2 -2
  70. package/templates/modules/dependency-management/skills/dependency-audit.md +2 -2
  71. package/templates/modules/game-design/agents/ceo/skills/game-design.fallback.md +1 -1
  72. package/templates/modules/game-design/agents/engineer/skills/game-design.fallback.md +1 -1
  73. package/templates/modules/game-design/agents/game-designer/skills/game-design.md +2 -2
  74. package/templates/modules/game-design/module.meta.json +1 -1
  75. package/templates/modules/game-design/skills/audio-design.fallback.md +2 -2
  76. package/templates/modules/game-design/skills/audio-design.md +3 -3
  77. package/templates/modules/game-design/skills/game-design.bar.md +1 -1
  78. package/templates/modules/game-design/skills/game-design.md +3 -3
  79. package/templates/modules/game-design/skills/level-design.fallback.md +2 -2
  80. package/templates/modules/game-design/skills/level-design.md +4 -4
  81. package/templates/modules/github-repo/agents/engineer/skills/git-workflow.md +15 -14
  82. package/templates/modules/github-repo/docs/git-workflow.md +7 -7
  83. package/templates/modules/github-repo/module.meta.json +1 -1
  84. package/templates/modules/lean-delivery/docs/lean-delivery.md +15 -0
  85. package/templates/modules/lean-delivery/module.meta.json +6 -0
  86. package/templates/modules/market-analysis/agents/ceo/skills/market-analysis.fallback.md +2 -2
  87. package/templates/modules/market-analysis/agents/cmo/skills/market-analysis.fallback.md +2 -2
  88. package/templates/modules/market-analysis/agents/product-owner/skills/market-analysis.fallback.md +2 -2
  89. package/templates/modules/market-analysis/agents/ux-researcher/skills/market-analysis.md +2 -2
  90. package/templates/modules/market-analysis/module.meta.json +1 -1
  91. package/templates/modules/market-analysis/skills/market-analysis.bar.md +1 -1
  92. package/templates/modules/market-analysis/skills/market-analysis.md +2 -2
  93. package/templates/modules/monitoring/agents/devops/skills/monitoring.md +1 -1
  94. package/templates/modules/monitoring/agents/engineer/skills/monitoring.fallback.md +2 -2
  95. package/templates/modules/monitoring/module.meta.json +1 -1
  96. package/templates/modules/monitoring/skills/monitoring.bar.md +1 -1
  97. package/templates/modules/monitoring/skills/monitoring.md +3 -3
  98. package/templates/modules/pr-review/README.md +10 -12
  99. package/templates/modules/pr-review/agents/code-reviewer/skills/code-review.md +16 -13
  100. package/templates/modules/pr-review/agents/devops/skills/infra-review.md +2 -2
  101. package/templates/modules/pr-review/agents/engineer/skills/pr-workflow.md +36 -26
  102. package/templates/modules/pr-review/agents/product-owner/skills/product-review.md +8 -8
  103. package/templates/modules/pr-review/agents/qa/skills/qa-review.md +10 -10
  104. package/templates/modules/pr-review/agents/security-engineer/skills/pr-security-review.md +5 -4
  105. package/templates/modules/pr-review/agents/ui-designer/skills/design-review.md +4 -4
  106. package/templates/modules/pr-review/agents/ux-researcher/skills/ux-review.md +3 -3
  107. package/templates/modules/pr-review/docs/pr-conventions.md +22 -26
  108. package/templates/modules/pr-review/module.meta.json +2 -2
  109. package/templates/modules/release-management/agents/ceo/skills/release-process.fallback.md +2 -2
  110. package/templates/modules/release-management/agents/engineer/skills/release-process.fallback.md +2 -2
  111. package/templates/modules/release-management/module.meta.json +3 -3
  112. package/templates/modules/release-management/skills/release-process.md +2 -2
  113. package/templates/modules/security-audit/agents/devops/skills/security-review.fallback.md +2 -2
  114. package/templates/modules/security-audit/agents/devops/skills/threat-model.fallback.md +2 -2
  115. package/templates/modules/security-audit/agents/engineer/skills/security-review.fallback.md +2 -2
  116. package/templates/modules/security-audit/agents/engineer/skills/threat-model.fallback.md +2 -2
  117. package/templates/modules/security-audit/module.meta.json +2 -2
  118. package/templates/modules/security-audit/skills/security-review.bar.md +1 -1
  119. package/templates/modules/security-audit/skills/security-review.md +1 -1
  120. package/templates/modules/security-audit/skills/threat-model.bar.md +1 -1
  121. package/templates/modules/security-audit/skills/threat-model.md +3 -3
  122. package/templates/modules/stall-detection/agents/ceo/heartbeat-section.md +1 -1
  123. package/templates/modules/stall-detection/agents/ceo/skills/stall-detection.md +19 -16
  124. package/templates/modules/tech-stack/agents/ceo/skills/tech-stack.fallback.md +2 -2
  125. package/templates/modules/tech-stack/module.meta.json +1 -1
  126. package/templates/modules/tech-stack/skills/tech-stack.bar.md +1 -1
  127. package/templates/modules/tech-stack/skills/tech-stack.md +2 -2
  128. package/templates/modules/triage/agents/ceo/skills/issue-triage.fallback.md +1 -1
  129. package/templates/modules/triage/agents/engineer/skills/issue-triage.fallback.md +1 -1
  130. package/templates/modules/triage/skills/issue-triage.md +1 -1
  131. package/templates/modules/user-testing/agents/ceo/skills/user-testing.fallback.md +2 -2
  132. package/templates/modules/user-testing/agents/product-owner/skills/user-testing.fallback.md +2 -2
  133. package/templates/modules/user-testing/agents/qa/skills/user-testing.md +2 -2
  134. package/templates/modules/user-testing/agents/ux-researcher/skills/user-testing.fallback.md +2 -2
  135. package/templates/modules/user-testing/module.meta.json +1 -1
  136. package/templates/modules/user-testing/skills/user-testing.md +2 -2
  137. package/templates/modules/vision-workshop/agents/ceo/skills/vision-workshop.md +2 -2
  138. package/templates/modules/vision-workshop/agents/ux-researcher/skills/vision-workshop.md +1 -1
  139. package/templates/modules/vision-workshop/module.meta.json +1 -1
  140. package/templates/modules/website-relaunch/agents/ui-designer/skills/site-audit.md +1 -1
  141. package/templates/modules/website-relaunch/module.meta.json +7 -7
  142. package/templates/modules/website-relaunch/skills/design-ingestion.md +1 -1
  143. package/templates/modules/website-relaunch/skills/site-audit.md +1 -1
  144. package/templates/presets/build-game/preset.meta.json +6 -6
  145. package/templates/presets/repo-maintenance/preset.meta.json +20 -21
  146. package/templates/roles/audio-designer/HEARTBEAT.md +1 -1
  147. package/templates/roles/ceo/AGENTS.md +2 -0
  148. package/templates/roles/ceo/HEARTBEAT.md +1 -1
  149. package/templates/roles/ceo/role.meta.json +1 -1
  150. package/templates/roles/cmo/HEARTBEAT.md +1 -1
  151. package/templates/roles/code-reviewer/AGENTS.md +3 -1
  152. package/templates/roles/code-reviewer/HEARTBEAT.md +1 -1
  153. package/templates/roles/cto/HEARTBEAT.md +1 -1
  154. package/templates/roles/customer-success/HEARTBEAT.md +1 -1
  155. package/templates/roles/devops/HEARTBEAT.md +1 -1
  156. package/templates/roles/engineer/AGENTS.md +3 -3
  157. package/templates/roles/engineer/HEARTBEAT.md +2 -2
  158. package/templates/roles/game-artist/HEARTBEAT.md +1 -1
  159. package/templates/roles/game-designer/HEARTBEAT.md +1 -1
  160. package/templates/roles/level-designer/HEARTBEAT.md +1 -1
  161. package/templates/roles/product-owner/AGENTS.md +1 -1
  162. package/templates/roles/product-owner/HEARTBEAT.md +2 -2
  163. package/templates/roles/qa/HEARTBEAT.md +4 -4
  164. package/templates/roles/security-engineer/AGENTS.md +2 -2
  165. package/templates/roles/security-engineer/HEARTBEAT.md +1 -1
  166. package/templates/roles/technical-writer/HEARTBEAT.md +1 -1
  167. package/templates/roles/ui-designer/HEARTBEAT.md +1 -1
  168. package/templates/roles/ux-researcher/HEARTBEAT.md +1 -1
@@ -23,7 +23,7 @@ Run this checklist on every heartbeat. The Paperclip skill is the source of trut
23
23
 
24
24
  ## 4. Checkout and Work
25
25
 
26
- - Checkout before mutating work: `POST /api/issues/{id}/checkout` with the expected current status when the API supports `expectedStatuses`.
26
+ - Checkout before mutating work: `POST /api/issues/{id}/checkout` with `{ "agentId": "<your agent id>", "expectedStatuses": ["todo", "backlog", "blocked", "in_review"] }` — both fields are required, and the list must contain the issue's current status. Send `X-Paperclip-Run-Id` with it.
27
27
  - Never retry a 409; that issue belongs to another active run.
28
28
  - Start actionable work in the same heartbeat; do not stop at a plan unless planning was requested.
29
29
  - Leave durable progress with a clear next action. Use child issues for long or parallel delegated work instead of polling.
@@ -35,7 +35,7 @@ Run this checklist on every heartbeat. The Paperclip skill is the source of trut
35
35
  - Upload or attach user-inspectable outputs as work products/artifacts/documents; local filesystem paths alone are not enough.
36
36
  - Use issue documents for long plans, specs, QA reports, security reviews, or hiring drafts; comments should summarize and link.
37
37
  - Handoffs should use assignment/status/executionPolicy and a concrete next action. Do not rely on generic @-mentions.
38
- - If an issue is assigned to you in `in_review`, inspect its complete action path before acting: current `executionPolicy` participant, `GET /api/issues/{id}/interactions`, `GET /api/issues/{id}/approvals`, user owner, monitor, wake, and recovery state. Do not override a pending interaction or approval merely because `executionPolicy` is null. If no other path owns the next action, review it immediately against the acceptance criteria. If it passes, comment with the acceptance decision and set it `done`; if it does not pass, set it back to `in_progress`, assign it to the Engineer, and list the exact required changes.
38
+ - For an assigned acceptance handoff, inspect its complete action path before acting: current `executionPolicy` participant, `GET /api/issues/{id}/interactions`, `GET /api/issues/{id}/approvals`, user owner, monitor, wake, and recovery state. Do not override a pending interaction or approval merely because `executionPolicy` is null. Advance your own active stage with its documented verdict; for an advisory handoff, record acceptance evidence and return the same issue to the implementation owner. Never mark the originating implementation issue `done` while its PR is open or another review/merge stage remains. A standalone acceptance deliverable can finish when its own criteria are satisfied.
39
39
 
40
40
  ## 6. Exit
41
41
 
@@ -23,7 +23,7 @@ Run this checklist on every heartbeat. The Paperclip skill is the source of trut
23
23
 
24
24
  ## 4. Checkout and Work
25
25
 
26
- - Checkout before mutating work: `POST /api/issues/{id}/checkout` with the expected current status when the API supports `expectedStatuses`.
26
+ - Checkout before mutating work: `POST /api/issues/{id}/checkout` with `{ "agentId": "<your agent id>", "expectedStatuses": ["todo", "backlog", "blocked", "in_review"] }` — both fields are required, and the list must contain the issue's current status. Send `X-Paperclip-Run-Id` with it.
27
27
  - Never retry a 409; that issue belongs to another active run.
28
28
  - Start actionable work in the same heartbeat; do not stop at a plan unless planning was requested.
29
29
  - Leave durable progress with a clear next action. Use child issues for long or parallel delegated work instead of polling.
@@ -36,9 +36,9 @@ Run this checklist on every heartbeat. The Paperclip skill is the source of trut
36
36
  - Use issue documents for long plans, specs, QA reports, security reviews, or hiring drafts; comments should summarize and link.
37
37
  - Handoffs should use assignment/status/executionPolicy and a concrete next action. Do not rely on generic @-mentions.
38
38
  - Before treating an `in_review` issue as stalled, check `GET /api/issues/{id}/interactions` and `GET /api/issues/{id}/approvals`. A pending interaction, approval, assigned user owner, scheduled monitor, active/queued wake, or recovery issue is a valid action path even when `executionPolicy` is null.
39
- - **If verification passes:** mark the issue `done` with a comment citing the test evidence — or, if the issue is governed by an executionPolicy with a stage after QA, record `approved` pass to the next stage.
40
- - **If verification fails:** reassign to the relevant engineer with exact reproduction steps, set status back to `in_progress`. Do not mark `done` on a failing issue.
41
- - **You are a reviewer, not an author.** QA's role is to verify work and record `approved`/`changes_requested` through a review/approval stage — not to implement features or fixes. If you are assigned an **implementation** task (building logic, APIs, DB schema, infrastructure — anything you'd express as code/commits rather than a test/QA report), that is a misassignment: leave a comment flagging it and reassign to the engineer rather than authoring the change yourself. Implementing a change and then moving the issue to `in_review` with yourself as the first review stage is self-review — the runtime excludes the executor (you) from every stage, so that first stage has no eligible participant and the issue stalls permanently (`422 Only the active reviewer or approver can advance the current execution stage`). Never set an `executionPolicy` stage whose only participant is the issue's assignee. If you find an issue you authored stuck this way, recover with `PATCH /api/issues/{id}` `{"executionPolicy":null}` (returns it to `in_progress`) and reassign to the engineer to implement + route to the Code Reviewer properly.
39
+ - **PR-review mode:** standard PR review can name QA as an executionPolicy stage; record `approved`/`changes_requested` only when you are its active participant, and let Paperclip route the next action. If `docs/lean-delivery.md` exists, QA instead provides bounded evidence and is not a default stage. Never mark the originating implementation issue `done`, never act on the Code Reviewer's stage, and never create a QA courier issue. For lean/advisory evidence, post exact-head pass/fail evidence and return the same issue directly to the implementation owner in the same heartbeat, with exact reproduction steps on failure; the implementation owner opens the merge gate after all triggered evidence returns.
40
+ - **Standalone QA deliverable:** only when the assigned issue itself is an acceptance-ready QA report/test deliverable rather than advisory PR evidence, mark it `done` after recording the required evidence. If another executionPolicy explicitly names QA as the active participant outside the lean PR-review flow, act only on that active stage.
41
+ - **You are a reviewer, not an author.** QA verifies work; it does not implement features or fixes. If you are assigned an **implementation** task (building logic, APIs, DB schema, infrastructure — anything you'd express as code/commits rather than a test/QA report), that is a misassignment: leave a comment flagging it and reassign to the engineer rather than authoring the change yourself. Implementing a change and then moving the issue to `in_review` with yourself as the first review stage is self-review — Paperclip selects each stage's participant by excluding the recorded return assignee (you, the executor), so that first stage has no eligible participant and the review never opens — the PATCH is rejected with `422 No eligible <review|approval> participant is configured for this issue`. Never set an `executionPolicy` stage whose only participant is the issue's assignee. If you find an issue you authored stuck this way, recover with `PATCH /api/issues/{id}` `{"executionPolicy":null}` (returns it to `in_progress`) and reassign to the engineer to implement + route to the Code Reviewer properly.
42
42
 
43
43
  ## 6. Exit
44
44
 
@@ -13,7 +13,7 @@ You own threat modeling, security reviews, vulnerability assessment, secure codi
13
13
  - Review auth/authz, secrets, injection boundaries, dependency exposure, deployment surface, cryptography, LLM/tool-use risks, and data handling.
14
14
  - Use OWASP Web/API/LLM Top 10 and STRIDE as lenses, but report concrete findings, not generic checklist text.
15
15
  - Every finding needs severity, affected surface, exploit preconditions, evidence, and a recommended remediation. If a change is safe, say what you checked.
16
- - Create remediation issues for material findings and link them from the review verdict.
16
+ - For a material finding in a triggered PR review, keep every blocking in-scope correction on the originating issue, branch, and PR; record the evidence and return that same issue to the implementation owner. When you are an active executionPolicy participant, use `changes_requested` and let Paperclip route it; for an advisory handoff, reassign it directly. Create a separate remediation issue only for independently deliverable, non-blocking work outside the current acceptance criteria, and link it from the review verdict.
17
17
 
18
18
  ## Disclosure Discipline
19
19
 
@@ -24,7 +24,7 @@ You own threat modeling, security reviews, vulnerability assessment, secure codi
24
24
  ## Collaboration and Handoffs
25
25
 
26
26
  - After a CI-only review rejection, first re-check every job that the execution policy or reviewer explicitly made mandatory on the exact reviewed head. If any such job has not executed green, do not resubmit: preserve a first-class blocker or bounded monitor with the named owner/action. Resubmit only on new green evidence or an explicit reviewer waiver.
27
- - Blocking vulnerabilities -> assign remediation to the Engineer with concrete acceptance criteria.
27
+ - Blocking vulnerabilities in the current delivery -> reassign the originating issue to the Engineer with concrete acceptance criteria and keep the fix on the same PR.
28
28
  - Product/security tradeoffs -> escalate to Product Owner/CEO with options and recommendation.
29
29
  - Browser/runtime verification -> involve QA with safe repro steps.
30
30
 
@@ -23,7 +23,7 @@ Run this checklist on every heartbeat. The Paperclip skill is the source of trut
23
23
 
24
24
  ## 4. Checkout and Work
25
25
 
26
- - Checkout before mutating work: `POST /api/issues/{id}/checkout` with the expected current status when the API supports `expectedStatuses`.
26
+ - Checkout before mutating work: `POST /api/issues/{id}/checkout` with `{ "agentId": "<your agent id>", "expectedStatuses": ["todo", "backlog", "blocked", "in_review"] }` — both fields are required, and the list must contain the issue's current status. Send `X-Paperclip-Run-Id` with it.
27
27
  - Never retry a 409; that issue belongs to another active run.
28
28
  - Start actionable work in the same heartbeat; do not stop at a plan unless planning was requested.
29
29
  - Leave durable progress with a clear next action. Use child issues for long or parallel delegated work instead of polling.
@@ -23,7 +23,7 @@ Run this checklist on every heartbeat. The Paperclip skill is the source of trut
23
23
 
24
24
  ## 4. Checkout and Work
25
25
 
26
- - Checkout before mutating work: `POST /api/issues/{id}/checkout` with the expected current status when the API supports `expectedStatuses`.
26
+ - Checkout before mutating work: `POST /api/issues/{id}/checkout` with `{ "agentId": "<your agent id>", "expectedStatuses": ["todo", "backlog", "blocked", "in_review"] }` — both fields are required, and the list must contain the issue's current status. Send `X-Paperclip-Run-Id` with it.
27
27
  - Never retry a 409; that issue belongs to another active run.
28
28
  - Start actionable work in the same heartbeat; do not stop at a plan unless planning was requested.
29
29
  - Leave durable progress with a clear next action. Use child issues for long or parallel delegated work instead of polling.
@@ -23,7 +23,7 @@ Run this checklist on every heartbeat. The Paperclip skill is the source of trut
23
23
 
24
24
  ## 4. Checkout and Work
25
25
 
26
- - Checkout before mutating work: `POST /api/issues/{id}/checkout` with the expected current status when the API supports `expectedStatuses`.
26
+ - Checkout before mutating work: `POST /api/issues/{id}/checkout` with `{ "agentId": "<your agent id>", "expectedStatuses": ["todo", "backlog", "blocked", "in_review"] }` — both fields are required, and the list must contain the issue's current status. Send `X-Paperclip-Run-Id` with it.
27
27
  - Never retry a 409; that issue belongs to another active run.
28
28
  - Start actionable work in the same heartbeat; do not stop at a plan unless planning was requested.
29
29
  - Leave durable progress with a clear next action. Use child issues for long or parallel delegated work instead of polling.
@@ -23,7 +23,7 @@ Run this checklist on every heartbeat. The Paperclip skill is the source of trut
23
23
 
24
24
  ## 4. Checkout and Work
25
25
 
26
- - Checkout before mutating work: `POST /api/issues/{id}/checkout` with the expected current status when the API supports `expectedStatuses`.
26
+ - Checkout before mutating work: `POST /api/issues/{id}/checkout` with `{ "agentId": "<your agent id>", "expectedStatuses": ["todo", "backlog", "blocked", "in_review"] }` — both fields are required, and the list must contain the issue's current status. Send `X-Paperclip-Run-Id` with it.
27
27
  - Never retry a 409; that issue belongs to another active run.
28
28
  - Start actionable work in the same heartbeat; do not stop at a plan unless planning was requested.
29
29
  - Leave durable progress with a clear next action. Use child issues for long or parallel delegated work instead of polling.