@starlein/paperclip-plugin-company-wizard 0.5.0 → 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 +101 -0
  2. package/README.md +23 -11
  3. package/dist/manifest.js +8 -8
  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 +22007 -5105
  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
@@ -10,8 +10,8 @@ Goal → Roadmap → Issues → Assignment → Execution → Done
10
10
 
11
11
  1. **Goal decomposition** — The backlog owner breaks the company goal into milestones, then milestones into actionable issues.
12
12
  2. **Issue creation** — New issues enter the backlog via `POST /api/companies/{companyId}/issues` with `title`, `description`, `priority`, `projectId`, `goalId`, and `labelIds`. Top-level backlog issues must always include the active roadmap `projectId`. They must also set workspace isolation explicitly — see **Workspace Isolation** below.
13
- 3. **Pipeline health** — The backlog owner monitors the ready assigned queue. When fewer than about 8 actionable ready issues remain across the active delivery roles, the next small batch is generated from the roadmap.
14
- 4. **Assignment** — Issues are assigned at creation to the best-fit owner. Engineering-ready issues go directly to the Software Engineer (or matching delivery role) so assignment wakeups start work immediately. Leave an issue unassigned only when no suitable owner exists.
13
+ 3. **Pipeline health** — The backlog owner monitors implementation and review ownership. Open PR count is a queue-health signal, not a hard cap on independent work.
14
+ 4. **Assignment** — Assign acceptance-ready issues to available owners. Keep every open PR tied to a named owner and next action, and prioritize stale/conflicting PR repair without freezing unrelated implementation.
15
15
  5. **Execution** — Agents check out assigned issues, work them, and hand off deliberately for review or completion.
16
16
 
17
17
  ## Issue Quality
@@ -30,22 +30,37 @@ Write acceptance criteria in the issue description. Engineers use these to valid
30
30
 
31
31
  ## Workspace Isolation (required at creation)
32
32
 
33
- Every issue runs in a git execution workspace (worktree/branch). To let issues run in
34
- parallel without colliding in the same worktree, you must declare the workspace intent
35
- **when you create the issue** — otherwise the issue silently adopts the workspace of
36
- whatever issue you currently have checked out, which serializes work and corrupts branch
37
- state.
33
+ Repository implementation issues need explicit workspace intent **when you create the
34
+ issue**. When isolated workspaces are enabled and configured for the project, request
35
+ an independent workspace to prevent accidental checkout sharing. The API can inherit
36
+ the current agent run's issue workspace when no workspace selection is supplied; child
37
+ issues can also inherit from their parent within the same project. This is conditional,
38
+ not proof that every issue runs in a git worktree. Project-detached API-only routines
39
+ need no repository workspace.
38
40
 
39
- - **Top-level issue** (independent work, no `parentId`): always send
41
+ - **Top-level implementation issue** (independent work, no `parentId`): when isolation is available, send
40
42
  `"executionWorkspaceSettings": { "mode": "isolated_workspace" }` in the create body. This
41
- gives the issue its own worktree and branch.
42
- - **Sub-issue** (part of a larger parent task): set `"parentId": "<parent-issue-id>"` and
43
- do **not** send `executionWorkspaceSettings`. The sub-issue deliberately reuses the
44
- parent's workspace (the parent cannot be completed/cleaned up while its sub-issues are
45
- still open, so sharing is safe and intended).
46
-
47
- **Never** create a top-level issue without `executionWorkspaceSettings`. Doing so makes it
48
- inherit the creator's currently checked-out workspace and blocks parallel execution.
43
+ requests the project's configured isolated strategy (which may be a git worktree).
44
+ - **Implementation sub-issue** (part of a larger parent task): set `"parentId": "<parent-issue-id>"` and
45
+ also send `"executionWorkspaceSettings": { "mode": "isolated_workspace" }` when isolation is available.
46
+ Hierarchy does not imply checkout sharing. Only when the task explicitly requires the
47
+ same code change should you send `inheritExecutionWorkspaceFromIssueId` with the source
48
+ issue's internal id and omit conflicting workspace settings.
49
+
50
+ If isolated workspaces are disabled or the repository has no valid initial commit yet,
51
+ follow the rendered project policy and initialize the repository first. Do not claim
52
+ that requesting isolation overrides an instance feature gate. Read back the issue and
53
+ runtime workspace before starting concurrent repository writes.
54
+
55
+ ### Why this still matters when the project shares one workspace
56
+
57
+ The Company Wizard supplies `sharedWorkspaceConcurrency: "serialize"` for shared project
58
+ workspaces. Current Paperclip applies this policy only when the instance's experimental
59
+ isolated-workspaces feature and project policy are enabled. When effective, shared runs
60
+ queue behind the current holder. When disabled, the saved policy is not an active lock;
61
+ avoid parallel writes to that checkout and use the bootstrap warning to arrange safe
62
+ workspace setup. Independent isolated workspaces permit parallel work only after their
63
+ configured strategy and repository are runnable.
49
64
 
50
65
  Example top-level create body:
51
66
 
@@ -83,10 +98,10 @@ Re-prioritize when milestones shift or new information arrives. Don't let low-pr
83
98
 
84
99
  ## Backlog Health Indicators
85
100
 
86
- - **Healthy**: about 8 ready assigned issues across active delivery roles, covering the next logical chunk of work
87
- - **Thin**: fewer than 4 ready assigned issues — generate and assign more soon
88
- - **Empty**: no ready assigned issues — engineers will idle. Generate and assign immediately.
89
- - **Bloated**: 20+ ready issues — stop creating, focus on prioritization and cleanup
101
+ - **Healthy**: active work and open PRs have named owners, current heads, and concrete next actions
102
+ - **Thin**: available agents have no acceptance-ready work — prepare and assign a small next issue
103
+ - **Needs queue attention**: stale, conflicting, red, or ownerless PRs exist — route repairs while independent implementation continues
104
+ - **Bloated**: work lacks owners or actionable acceptance criteria — consolidate or reprioritize it without imposing a numeric repository cap
90
105
 
91
106
  ## Coordination
92
107
 
@@ -96,4 +111,4 @@ Re-prioritize when milestones shift or new information arrives. Don't let low-pr
96
111
 
97
112
  ## Review Handoff
98
113
 
99
- When an issue is ready for review (moving to `in_review`), it must be assigned to the reviewer. If an executionPolicy with review stages is configured, Paperclip reassigns automatically. Otherwise, the person moving the issue must PATCH `assigneeAgentId` to the reviewer. An issue in `in_review` that is still assigned to the original implementer will stall — no one picks it up. Always reassign on review handoff.
114
+ Move an issue to `in_review` only when a runtime-recognized action path exists: an active non-author `executionPolicy` stage or a first-class human interaction/approval. Paperclip reassigns automatically for an executionPolicy stage. Agent reassignment by itself is not a valid no-policy review path; without a recognized path, keep the issue `in_progress` for a concrete handoff or complete the direct/self-merge flow.
@@ -24,22 +24,23 @@ These categories must exist as Paperclip labels. Create them via `POST /api/comp
24
24
 
25
25
  | Label | Color | Use for |
26
26
  |:------|:------|:--------|
27
- | feature | `0075ca` | New user-facing capability |
28
- | bug | `d73a4a` | Defect or regression |
29
- | chore | `7057ff` | Refactoring, cleanup, dependency updates |
30
- | spike | `006b75` | Research or investigation with a time-box |
31
- | blocked | `e4e669` | Cannot proceed, needs unblocking |
27
+ | feature | `#0075ca` | New user-facing capability |
28
+ | bug | `#d73a4a` | Defect or regression |
29
+ | chore | `#7057ff` | Refactoring, cleanup, dependency updates |
30
+ | spike | `#006b75` | Research or investigation with a time-box |
31
+ | blocked | `#e4e669` | Cannot proceed, needs unblocking |
32
32
 
33
33
  Add more labels as the project evolves (e.g., `docs`, `design`, `security`). Pick distinct hex colors. Fetch existing labels: `GET /api/companies/{companyId}/labels`.
34
34
 
35
35
  ## Backlog Snapshot
36
36
 
37
- _Summary of current backlog health. Update on each heartbeat cycle._
37
+ _Summary of current backlog health. Update during an assigned backlog-planning or grooming run._
38
38
 
39
- - **Ready assigned issues:** _(count by owner)_
40
- - **Unassigned todo issues:** _(count; should normally be 0 except items without a suitable owner)_
39
+ - **Active implementation issues:** _(count by owner; include next action)_
40
+ - **Open implementation PRs:** _(count by repository; include owner and merge state)_
41
+ - **Prioritized inactive issues:** _(next roadmap work waiting for genuine delivery capacity)_
41
42
  - **In-progress issues:** _(count)_
42
- - **Health:** _(healthy / thin / empty / bloated — see ../../docs/backlog-process.md)_
43
+ - **Health:** _(healthy / thin / empty / bloated — see docs/backlog-process.md)_
43
44
 
44
45
  ## Decisions Log
45
46
 
@@ -16,13 +16,13 @@
16
16
  "title": "Create roadmap and generate initial backlog",
17
17
  "assignTo": "capability:backlog-health",
18
18
  "priority": "high",
19
- "description": "Review the company goal, create a ROADMAP.md with milestones, then generate an initial backlog of 15-20 actionable issues from it so the team has immediate, parallelizable work. Scope each issue to a single deliverable, set priorities, and link issues to the relevant goal and project. Assign each engineer-actionable issue to the best-fit agent (e.g., the Software Engineer) as you create it so work starts immediately — don't leave the seed backlog unassigned. Don't wait for grooming cycles to fill the backlog — seed it now."
19
+ "description": "Review the company goal, create a ROADMAP.md with milestones, then prepare the next 3-5 acceptance-ready issues. Open PR count is advisory and must not freeze independent implementation. Assign work to available owners while keeping every open PR tied to an owner and next action. Scope each issue to one deliverable, link it to the relevant goal/project, and give every implementation issue (including subissues) an isolated workspace unless explicit same-change reuse is required."
20
20
  }
21
21
  ],
22
22
  "routines": [
23
23
  {
24
24
  "title": "Backlog grooming",
25
- "description": "Routine-run checklist: inspect roadmap/backlog health, ensure at least 8 actionable ready issues exist, create scoped issues (around 3-6 per pass) and assign each to its best-fit agent when capacity is low, link artifacts/goals/projects, summarize changes on the routine issue, then exit.",
25
+ "description": "Routine-run checklist: inspect roadmap plus implementation/review ownership, create the next 1-3 scoped issues, assign work that has an available owner and review path, link artifacts/goals/projects, summarize queue evidence and changes on the routine issue, then exit. Open PR count is a prioritization signal, not an assignment cap.",
26
26
  "assignTo": "capability:backlog-health",
27
27
  "schedule": "0 */2 * * *",
28
28
  "priority": "medium",
@@ -3,9 +3,9 @@
3
3
  A good backlog health pass:
4
4
 
5
5
  - Every issue created is INVEST-shaped: has a clear title, written acceptance criteria in the description, a priority, a label, and is attached to the correct `projectId` and `goalId` — never a top-level issue with `projectId: null`.
6
- - Every issue declares workspace isolation explicitly: top-level issues (no `parentId`) carry `"executionWorkspaceSettings": { "mode": "isolated_workspace" }`; subissues set `parentId` and omit it. A top-level issue created without it is not done — it would inherit the creator's checked-out workspace and block parallel execution.
7
- - The team keeps a healthy queue of ready, **assigned** work (toward the grooming target of ~8 actionable ready issues); when the assigned ready queue runs low, new issues are created **and assigned** from the roadmap so no agent goes idle between grooming cycles, and the action is recorded in daily notes. Issues are assigned at creation — do not stockpile a pool of unassigned issues.
8
- - Review handoff: when moving an issue to `in_review`, always reassign it to the reviewer. Without reassignment, `in_review` issues stall with the implementer still assigned.
6
+ - Every repository implementation issue declares workspace intent explicitly: top-level issues and subissues request `"executionWorkspaceSettings": { "mode": "isolated_workspace" }` when the instance feature, project policy, and initialized repository support it; otherwise follow the rendered project policy and avoid concurrent shared-checkout writes. Reuse is exceptional and explicit via `inheritExecutionWorkspaceFromIssueId`. API-only routines stay project-detached.
7
+ - Open PR count is advisory, not a dispatch freeze. Assign independent acceptance-ready work to available owners while every PR retains a named owner and concrete next action.
8
+ - Review handoff: `in_review` has a runtime-recognized non-author executionPolicy stage or first-class human interaction/approval. Agent reassignment alone is not a no-policy review path.
9
9
 
10
10
  Not done:
11
11
 
@@ -15,11 +15,11 @@ Before creating your first batch of issues, set up labels for the company:
15
15
 
16
16
  | Label | Color | Use for |
17
17
  |:------|:------|:--------|
18
- | feature | `0075ca` | New user-facing capability |
19
- | bug | `d73a4a` | Defects and regressions |
20
- | chore | `7057ff` | Refactoring, cleanup, dependency updates |
21
- | spike | `006b75` | Research or investigation with a time-box |
22
- | blocked | `e4e669` | Cannot proceed, needs unblocking |
18
+ | feature | `#0075ca` | New user-facing capability |
19
+ | bug | `#d73a4a` | Defects and regressions |
20
+ | chore | `#7057ff` | Refactoring, cleanup, dependency updates |
21
+ | spike | `#006b75` | Research or investigation with a time-box |
22
+ | blocked | `#e4e669` | Cannot proceed, needs unblocking |
23
23
 
24
24
  Add additional labels if the roadmap calls for them (e.g., `docs`, `design`, `security`). Pick distinct hex colors.
25
25
 
@@ -28,13 +28,14 @@ Add additional labels if the roadmap calls for them (e.g., `docs`, `design`, `se
28
28
  1. Checkout the assigned backlog/routine issue in Paperclip before mutating the board. This is API-only control-plane work; do not create or enter a repository worktree for the grooming run.
29
29
  2. Read the current company goals, roadmap/project context, existing issue documents, and recent decision log entries.
30
30
  3. Query existing issues for the relevant project/goal and avoid duplicates.
31
- 4. If the backlog is thin or unclear, create around 3-6 small actionable issues via `POST /api/companies/{companyId}/issues`.
32
- 5. Each issue must include: `title`, acceptance-oriented `description`, `priority`, `projectId`, `goalId` when known, and `labelIds`.
33
- 6. Set workspace isolation explicitly on every issue you create (see Rules): top-level issues send `"executionWorkspaceSettings": { "mode": "isolated_workspace" }`; sub-issues set `parentId` and omit it.
34
- 7. Use `blockedByIssueIds` for real dependencies instead of free-text blockers.
35
- 8. Assign each issue to the best-fit available agent as you create it — engineer-actionable work with clear acceptance criteria goes to the Software Engineer (or the matching role). Direct push-assignment is the primary dispatch path; the assigned queue is the buffer, so do **not** stockpile a pool of unassigned ready work. Leave an issue unassigned only when no suitable owner exists — the low-frequency auto-assign safety net will catch those.
36
- 9. Record generated issue ids and rationale in the routine issue comment; use issue documents for long plans.
37
- 10. Mark the routine-run issue done when complete.
31
+ 4. Check delivery ownership before creating work: open implementation PRs per repository, active implementation issues per agent, and the current review owner. Open PR count is advisory and must not freeze unrelated acceptance-ready work.
32
+ 5. If the next work is unclear, create the next 1-3 small actionable issues via `POST /api/companies/{companyId}/issues`.
33
+ 6. Each issue must include: `title`, acceptance-oriented `description`, `priority`, `projectId`, `goalId` when known, and `labelIds`.
34
+ 7. Set workspace isolation explicitly on every implementation issue, including subissues (see Rules).
35
+ 8. Use `blockedByIssueIds` for real dependencies instead of free-text blockers. Never create dependencies merely because other PRs are open.
36
+ 9. Assign acceptance-ready work to available owners. Use queue state to prioritize stale/conflicting PR repair without withholding unrelated implementation.
37
+ 10. Record generated/assigned issue ids, current queue evidence, and rationale in the routine issue comment; use issue documents for long plans.
38
+ 11. Mark the routine-run issue done when complete.
38
39
 
39
40
  ## Rules
40
41
 
@@ -42,10 +43,10 @@ Add additional labels if the roadmap calls for them (e.g., `docs`, `design`, `se
42
43
  - Do not create top-level backlog issues with `projectId: null` when a project exists.
43
44
  - Keep issues small and actionable. Each should be completable, tested, and reviewed independently.
44
45
  - Split into subissues only when each child can be completed independently; avoid splitting tightly coupled implementation across sibling subissues.
45
- - **Set workspace isolation explicitly at creation.** Top-level issues (no `parentId`) must send `"executionWorkspaceSettings": { "mode": "isolated_workspace" }` so each gets its own worktree/branch. Sub-issues set `parentId` and omit `executionWorkspaceSettings` so they reuse the parent's workspace. Never create a top-level issue without it — otherwise it inherits the workspace of whatever issue you currently have checked out and blocks parallel work.
46
+ - **Set workspace intent explicitly at creation.** For repository implementation, including subissues, request `"executionWorkspaceSettings": { "mode": "isolated_workspace" }` when the instance feature, project policy, and initialized repository support isolation. The actual workspace uses the configured strategy; do not promise a git worktree for every project. `parentId` is hierarchy, not workspace consent. Reuse another issue's checkout only when explicitly required by the task, using `inheritExecutionWorkspaceFromIssueId` with the source issue's internal id. If isolation is unavailable, follow the rendered bootstrap/project policy and avoid concurrent writes to a shared checkout; requesting isolation does not bypass the instance feature gate. API-only routines stay project-detached.
46
47
  - Always attach at least one label to every issue you create.
47
- - **Attach a task watchdog to every top-level issue you create.** Send `"watchdog": { "agentId": "<CEO agent id>", "instructions": "If this issue's work stalls (runs end without it reaching done, a review is misrouted, or a dependent merge is stranded), re-evaluate and recover: verify blockers and executionPolicy gates, reassign to the right owner with an explicit next action, or escalate. Do not archive or delete any execution workspace." }`. This is native, event-driven stall recovery — Paperclip wakes the watchdog agent when the issue's subtree stops without completing, so you no longer rely only on the periodic stall-detection routine. Use the CEO agent id (resolve it from your `heartbeat-context` or `GET /api/companies/{companyId}/agents`); omit the watchdog only for throwaway sub-issues that reuse a parent's workspace.
48
+ - Do not attach a universal task watchdog or create watchdog/queue-drain wrapper issues. Use the issue's real owner, first-class blockers, executionPolicy, interactions, and normal wake paths. Add a watchdog only when the issue explicitly documents a bounded recovery requirement that those paths cannot cover.
48
49
  - If the goal is fully decomposed into issues, do not create more. Report status and next review trigger to the CEO/Product Owner.
49
50
  - Work products such as roadmap drafts or decomposition tables belong in issue documents/artifacts, not only comments.
50
- - **Review handoff:** When moving an issue to `in_review`, always assign it to the reviewer. If the issue has an executionPolicy with review stages, Paperclip reassigns automatically. If there is no executionPolicy, PATCH the issue's `assigneeAgentId` to the reviewer before or at the same time as the status change. An issue in `in_review` that is still assigned to the original implementer will stall — no one picks it up. Always reassign on review handoff.
51
+ - **Review handoff:** Use `in_review` only with a runtime-recognized path: an active non-author `executionPolicy` stage or a first-class human interaction/approval. Agent reassignment alone is not a valid no-policy review path. Without such a path, keep the issue `in_progress` for a concrete agent handoff or finish the direct/self-merge flow.
51
52
  - **Backlog grooming is intentionally project-detached and must not use a git worktree.** Perform the run through Paperclip APIs only. Setting `projectId` and isolated `executionWorkspaceSettings` on the *work issues you create* is correct; that does not attach the grooming run itself to their project or worktrees. Do not clone, branch, run `git worktree add`, or try to repair the routine by attaching it to a project.
@@ -4,11 +4,11 @@ The UI Designer and CMO both own brand identity above you. You are the last-reso
4
4
 
5
5
  ## Brand Identity (Fallback)
6
6
 
7
- 1. If no `../../docs/BRAND-IDENTITY.md` exists and no designer has started:
7
+ 1. If no `docs/BRAND-IDENTITY.md` exists and no designer has started:
8
8
  - Set up a minimal brand placeholder with basic defaults
9
9
  - Choose a neutral color palette (1 primary, 1 accent, 1 neutral)
10
10
  - Pick a safe, widely available font pairing (e.g., Inter + system serif)
11
- - Document in `../../docs/BRAND-IDENTITY.md` and mark all choices as **provisional**
11
+ - Document in `docs/BRAND-IDENTITY.md` and mark all choices as **provisional**
12
12
  - Create an issue for the ui-designer or CMO to review and expand the brand guidelines
13
13
  2. If a ui-designer or CMO is active, skip this entirely.
14
14
 
@@ -4,11 +4,11 @@ The UI Designer primarily owns brand identity and visual guidelines. You are the
4
4
 
5
5
  ## Brand Identity (Fallback)
6
6
 
7
- 1. If no `../../docs/BRAND-IDENTITY.md` exists and no designer has started:
7
+ 1. If no `docs/BRAND-IDENTITY.md` exists and no designer has started:
8
8
  - Define brand positioning: mission statement, target audience, key differentiators
9
9
  - Establish tone of voice and communication guidelines
10
10
  - Set up a minimal color palette and typography recommendation
11
- - Document in `../../docs/BRAND-IDENTITY.md` and mark visual choices as **provisional**
11
+ - Document in `docs/BRAND-IDENTITY.md` and mark visual choices as **provisional**
12
12
  - Create an issue for the designer to refine visual identity
13
13
  2. If a designer is active, skip this entirely.
14
14
 
@@ -16,7 +16,7 @@
16
16
  {
17
17
  "title": "Define brand identity and visual guidelines",
18
18
  "assignTo": "capability:brand-identity",
19
- "description": "Create the brand book: logo usage, color palette, typography, iconography, and tone-of-voice guidelines. Document everything in ../../docs/BRAND-IDENTITY.md."
19
+ "description": "Create the brand book: logo usage, color palette, typography, iconography, and tone-of-voice guidelines. Document everything in docs/BRAND-IDENTITY.md."
20
20
  }
21
21
  ]
22
22
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  A good brand identity:
4
4
 
5
- - A `../../docs/BRAND-IDENTITY.md` with concrete values and rationale for every element: colour palette (hex/RGB values with contrast ratios), typography (typefaces, size scale, weight usage), logo usage rules (clear space, do's and don'ts), iconography style, and tone of voice.
5
+ - A `docs/BRAND-IDENTITY.md` with concrete values and rationale for every element: colour palette (hex/RGB values with contrast ratios), typography (typefaces, size scale, weight usage), logo usage rules (clear space, do's and don'ts), iconography style, and tone of voice.
6
6
  - If a tech stack exists, a design tokens file (CSS custom properties or JSON) matching the chosen stack, so the identity is immediately usable in code.
7
7
 
8
8
  Not done:
@@ -14,12 +14,12 @@ You own the company's visual identity and brand guidelines. Define a cohesive br
14
14
  - **Logo usage**: Clear space, minimum size, do's and don'ts
15
15
  - **Iconography**: Style, stroke weight, grid alignment
16
16
  - **Tone of voice**: Communication style, vocabulary, personality
17
- 3. Document everything in `../../docs/BRAND-IDENTITY.md`:
18
- - Use `../../docs/brand-identity-template.md` as a starting point
17
+ 3. Document everything in `docs/BRAND-IDENTITY.md`:
18
+ - Use `docs/brand-identity-template.md` as a starting point
19
19
  - Fill in all sections with concrete values and rationale
20
20
  - Include visual examples or references where possible
21
21
  4. Create initial design tokens if a tech stack exists:
22
- - If `../../docs/TECH-STACK.md` is present, produce a tokens file (CSS custom properties or JSON) matching the chosen stack
22
+ - If `docs/TECH-STACK.md` is present, produce a tokens file (CSS custom properties or JSON) matching the chosen stack
23
23
  - Reference the design-system module if the architecture-plan module exists
24
24
 
25
25
  ## Rules
@@ -2,7 +2,7 @@
2
2
 
3
3
  A good API design:
4
4
 
5
- - A `../../docs/API-DESIGN.md` with a resource model, full endpoint inventory (method, path, auth requirement), authentication strategy, error-handling conventions (consistent error shape), and pagination approach.
5
+ - A `docs/API-DESIGN.md` with a resource model, full endpoint inventory (method, path, auth requirement), authentication strategy, error-handling conventions (consistent error shape), and pagination approach.
6
6
  - Every endpoint has: description, parameter types and constraints, request/response schema, example request/response, and possible error codes — generated from source annotations (OpenAPI/Swagger), not maintained by hand.
7
7
 
8
8
  Not done:
@@ -35,7 +35,7 @@ When designing the data model:
35
35
 
36
36
  ## Output Artifacts
37
37
 
38
- Document your API design decisions in `../../docs/API-DESIGN.md`:
38
+ Document your API design decisions in `docs/API-DESIGN.md`:
39
39
  - Resource model (entities and relationships)
40
40
  - Endpoint inventory (method, path, description, auth requirement)
41
41
  - Authentication strategy
@@ -15,7 +15,7 @@ You are the DevOps engineer and CI/CD is your core domain. You own the full pipe
15
15
  - Run smoke tests after deployment
16
16
  4. Add status badges to the project README
17
17
  5. Set up infrastructure-as-code for pipeline resources (runners, caches, secrets)
18
- 6. Document the full pipeline in `../../docs/CI-CD.md`
18
+ 6. Document the full pipeline in `docs/CI-CD.md`
19
19
 
20
20
  ## Rules
21
21
 
@@ -7,7 +7,7 @@ The DevOps engineer primarily owns CI/CD pipelines. You are the fallback — ste
7
7
  1. If no CI workflow exists and DevOps hasn't started:
8
8
  - Create a basic CI workflow: lint + test on PRs, build on push to the default branch
9
9
  - Use standard caching and pinned action versions
10
- - Document the setup in `../../docs/CI-CD.md` and mark the setup as **provisional** — a devops agent should review and complete the production configuration.
10
+ - Document the setup in `docs/CI-CD.md` and mark the setup as **provisional** — a devops agent should review and complete the production configuration.
11
11
  - Mark the pipeline as **provisional** — it needs DevOps review for CD, caching optimization, and security hardening
12
12
  2. If DevOps is active, skip this entirely.
13
13
 
@@ -16,4 +16,4 @@ The DevOps engineer primarily owns CI/CD pipelines. You are the fallback — ste
16
16
  - This is a safety net. Set up the basics — lint, test, build.
17
17
  - Skip CD (deployment) — that requires infrastructure knowledge best left to DevOps.
18
18
  - Let DevOps own pipeline optimization, deployment, and ongoing maintenance.
19
- - Reference `../../docs/CI-CD.md` for all configuration details so the devops agent can pick up where you left off.
19
+ - Reference `docs/CI-CD.md` for all configuration details so the devops agent can pick up where you left off.
@@ -18,7 +18,7 @@
18
18
  {
19
19
  "title": "Set up CI/CD pipeline",
20
20
  "assignTo": "capability:ci-cd",
21
- "description": "Configure continuous integration (lint, test, build) and deployment pipeline. Document the setup in ../../docs/CI-CD.md. Use GitHub Actions or equivalent."
21
+ "description": "Configure continuous integration (lint, test, build) and deployment pipeline. Document the setup in docs/CI-CD.md. Use GitHub Actions or equivalent."
22
22
  },
23
23
  {
24
24
  "title": "Add linter and configure lint rules",
@@ -2,7 +2,7 @@
2
2
 
3
3
  A good CI/CD setup:
4
4
 
5
- - A working pipeline with a CI stage (lint → typecheck → test on every PR and push to the default branch) and a CD stage (deploy on merge to the default branch, smoke tests after deployment), documented in `../../docs/CI-CD.md` with status badges in the README.
5
+ - A working pipeline with a CI stage (lint → typecheck → test on every PR and push to the default branch) and a CD stage (deploy on merge to the default branch, smoke tests after deployment), documented in `docs/CI-CD.md` with status badges in the README.
6
6
  - Pipelines complete in under 5 minutes (dependency caching in place), action versions pinned to full SHAs, and all secrets stored in GitHub Secrets or equivalent — none in workflow files.
7
7
 
8
8
  Not done:
@@ -1,6 +1,6 @@
1
1
  # Skill: CI/CD Pipeline
2
2
 
3
- You manage continuous integration and deployment pipelines. Follow the conventions in `../../docs/CI-CD.md` in the project root.
3
+ You manage continuous integration and deployment pipelines. Follow the conventions in `docs/CI-CD.md` (paths in this skill are relative to your working directory, the company workspace).
4
4
 
5
5
  ## Setup Steps
6
6
 
@@ -13,10 +13,10 @@ You manage continuous integration and deployment pipelines. Follow the conventio
13
13
  - Trigger on merge to the default branch
14
14
  - Deploy to the target environment
15
15
  - Run smoke tests after deployment
16
- 4. Pin every third-party action to a full commit SHA (`uses: actions/checkout@<sha>`, not `@v4`). SHA pinning prevents supply-chain attacks from a compromised action version tag. Record the pinned SHAs in `../../docs/CI-CD.md` → *Pinned Action SHAs*.
17
- 5. Document the rollback procedure in `../../docs/CI-CD.md` → *Rollback*: how to revert a failed deploy (e.g., `git revert` + redeploy, or infra rollback command), how to verify the rollback succeeded, and the recovery SLA. A pipeline with no documented rollback path is not done.
16
+ 4. Pin every third-party action to a full commit SHA (`uses: actions/checkout@<sha>`, not `@v4`). SHA pinning prevents supply-chain attacks from a compromised action version tag. Record the pinned SHAs in `docs/CI-CD.md` → *Pinned Action SHAs*.
17
+ 5. Document the rollback procedure in `docs/CI-CD.md` → *Rollback*: how to revert a failed deploy (e.g., `git revert` + redeploy, or infra rollback command), how to verify the rollback succeeded, and the recovery SLA. A pipeline with no documented rollback path is not done.
18
18
  6. Add status badges to the project README
19
- 7. Document the full pipeline in `../../docs/CI-CD.md`
19
+ 7. Document the full pipeline in `docs/CI-CD.md`
20
20
 
21
21
  ## Ongoing Health Checks
22
22
 
@@ -35,3 +35,5 @@ When assigned a "CI pipeline health check" routine-run issue:
35
35
  - Pin action versions to full SHAs, not tags, for security.
36
36
  - Never store secrets in workflow files — use GitHub Secrets or equivalent.
37
37
  - If CI breaks the default branch, fix it immediately — a red default branch blocks everyone.
38
+ - Repair CI, stale bases, conflicts, branch protection, packaging, and deployment mechanics on the existing originating issue and PR. Do not open a replacement PR or a queue-drain/release-wrapper issue to escape an operational blocker.
39
+ - Do not poll ordinary Paperclip review stages, PR-capacity waits, or workspace cleanup. Rely on their owner/blocker/wake path. Use a bounded external-service monitor only for a named transition such as a running CI job, no more often than every 15 minutes unless the issue defines a tighter SLA, with attempt/timeout bounds and comments only on state changes or the terminal checkpoint.
@@ -4,9 +4,9 @@ The Engineer primarily owns codebase auditing and health. You are the fallback
4
4
 
5
5
  ## Codebase Audit (Fallback)
6
6
 
7
- 1. If no `../../docs/CODEBASE-AUDIT.md` exists and the Engineer hasn't started:
7
+ 1. If no `docs/CODEBASE-AUDIT.md` exists and the Engineer hasn't started:
8
8
  - Read the project structure and key configuration files
9
- - Write a high-level architecture overview in `../../docs/CODEBASE-AUDIT.md`
9
+ - Write a high-level architecture overview in `docs/CODEBASE-AUDIT.md`
10
10
  - List obvious tech debt items visible from a surface-level read
11
11
  - Mark the document as **provisional** — it needs a thorough engineering review
12
12
  2. If the Engineer is active, skip this entirely.
@@ -20,10 +20,10 @@ The Engineer primarily owns codebase auditing and health. You are the fallback
20
20
 
21
21
  ## Health Check Refresh (follow-up runs)
22
22
 
23
- When `../../docs/CODEBASE-AUDIT.md` already exists (a prior audit was completed) and you are assigned a follow-up health check:
23
+ When `docs/CODEBASE-AUDIT.md` already exists (a prior audit was completed) and you are assigned a follow-up health check:
24
24
 
25
- 1. Read the existing `../../docs/CODEBASE-AUDIT.md`.
25
+ 1. Read the existing `docs/CODEBASE-AUDIT.md`.
26
26
  2. Run a quick surface scan: `find . -name "*.js" -o -name "*.ts" | head -30` to sense if new files or directories have appeared since the last audit date.
27
27
  3. Note any obviously new areas (new top-level directories, new dependency groups) not present in the existing document.
28
- 4. Add a dated `## Health Check — <date>` section to `../../docs/CODEBASE-AUDIT.md` listing: files reviewed, new areas identified, and a note that deep analysis was not performed (this is a CEO fallback — escalate to an engineer for full re-audit if significant new areas were found).
28
+ 4. Add a dated `## Health Check — <date>` section to `docs/CODEBASE-AUDIT.md` listing: files reviewed, new areas identified, and a note that deep analysis was not performed (this is a CEO fallback — escalate to an engineer for full re-audit if significant new areas were found).
29
29
  5. Mark the issue done.
@@ -18,7 +18,7 @@
18
18
  {
19
19
  "title": "Audit codebase and document architecture",
20
20
  "assignTo": "capability:codebase-audit",
21
- "description": "Read the existing codebase, map the architecture, identify tech debt hotspots and test coverage gaps. Document findings in ../../docs/CODEBASE-AUDIT.md. Create follow-up issues for cleanup opportunities."
21
+ "description": "Read the existing codebase, map the architecture, identify tech debt hotspots and test coverage gaps. Document findings in docs/CODEBASE-AUDIT.md. Create follow-up issues for cleanup opportunities."
22
22
  }
23
23
  ]
24
24
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  A good codebase audit:
4
4
 
5
- - A `../../docs/CODEBASE-AUDIT.md` with architecture overview (layers, key components, data flow), tech stack summary, tech debt inventory ranked by severity (critical / major / minor), test coverage assessment identifying untested paths, and recommended cleanup priorities.
5
+ - A `docs/CODEBASE-AUDIT.md` with architecture overview (layers, key components, data flow), tech stack summary, tech debt inventory ranked by severity (critical / major / minor), test coverage assessment identifying untested paths, and recommended cleanup priorities.
6
6
  - Followed by concrete, scoped follow-up issues — one per fix — for the top cleanup opportunities.
7
7
 
8
8
  Not done:
@@ -8,7 +8,7 @@ Use this when assigned a codebase-audit issue, codebase-health routine, or expli
8
8
 
9
9
  ## Initial Audit
10
10
 
11
- Run this when `../../docs/CODEBASE-AUDIT.md` does not yet exist.
11
+ Run this when `docs/CODEBASE-AUDIT.md` does not yet exist.
12
12
 
13
13
  1. Map the project structure — identify key directories, entry points, and architectural layers.
14
14
  2. Read configuration files (package.json, tsconfig, Dockerfile, CI configs) to understand the tech stack and build pipeline.
@@ -16,7 +16,7 @@ Run this when `../../docs/CODEBASE-AUDIT.md` does not yet exist.
16
16
  4. Assess test coverage — untested paths, missing tests, weak assertions.
17
17
  5. Identify tech debt — dead code, unused exports, complex functions, inconsistent patterns, duplicated logic.
18
18
  6. Check for code quality issues — long files, deep nesting, too many parameters, missing boundary error handling.
19
- 7. Document findings in `../../docs/CODEBASE-AUDIT.md` or an issue document/work product:
19
+ 7. Document findings in `docs/CODEBASE-AUDIT.md` or an issue document/work product:
20
20
  - architecture overview
21
21
  - tech stack summary
22
22
  - tech debt inventory ranked by severity
@@ -4,10 +4,10 @@ The Customer Success Manager, CMO, and Product Owner own competitive intelligenc
4
4
 
5
5
  ## Competitive Tracking (Fallback)
6
6
 
7
- 1. If no `../../docs/COMPETITIVE-LANDSCAPE.md` exists and nobody has started:
7
+ 1. If no `docs/COMPETITIVE-LANDSCAPE.md` exists and nobody has started:
8
8
  - Identify the top 2-3 competitors based on the company goal
9
9
  - Write a brief comparison: what they do, how we differ
10
- - Document in `../../docs/COMPETITIVE-LANDSCAPE.md`
10
+ - Document in `docs/COMPETITIVE-LANDSCAPE.md`
11
11
  - Tag the Customer Success Manager, CMO, or Product Owner to expand
12
12
  2. If any of the above roles are active, skip this entirely.
13
13
 
@@ -4,9 +4,9 @@ The Customer Success Manager owns competitive intelligence above you. You are th
4
4
 
5
5
  ## Competitive Tracking (Fallback)
6
6
 
7
- 1. If no `../../docs/COMPETITIVE-LANDSCAPE.md` exists and the Customer Success Manager hasn't started:
7
+ 1. If no `docs/COMPETITIVE-LANDSCAPE.md` exists and the Customer Success Manager hasn't started:
8
8
  - Research competitors from a marketing perspective: positioning, messaging, content strategy
9
- - Document in `../../docs/COMPETITIVE-LANDSCAPE.md`
9
+ - Document in `docs/COMPETITIVE-LANDSCAPE.md`
10
10
  - Focus on differentiation opportunities for go-to-market
11
11
  - Tag the Customer Success Manager to expand with customer-facing insights
12
12
  2. If the Customer Success Manager is active, skip this entirely.
@@ -4,8 +4,8 @@ You own competitive intelligence from the customer perspective. You hear what cu
4
4
 
5
5
  ## Competitive Tracking Process
6
6
 
7
- 1. Review the company goal and existing market analysis — if `../../docs/MARKET-ANALYSIS.md` exists, use it as context.
8
- 2. Research and document in `../../docs/COMPETITIVE-LANDSCAPE.md`:
7
+ 1. Review the company goal and existing market analysis — if `docs/MARKET-ANALYSIS.md` exists, use it as context.
8
+ 2. Research and document in `docs/COMPETITIVE-LANDSCAPE.md`:
9
9
  - **Competitor profiles**: For each key competitor (3-5), document:
10
10
  - Product overview and target audience
11
11
  - What customers say about switching to/from them
@@ -4,12 +4,12 @@ A specialist in competitive intelligence (Customer Success or CMO) is handling p
4
4
 
5
5
  ## Steps
6
6
 
7
- 1. Read `../../docs/COMPETITIVE-INTEL.md` if it exists. If it does not, check back after the primary competitive-tracking agent has completed their initial audit.
7
+ 1. Read `docs/COMPETITIVE-INTEL.md` if it exists. If it does not, check back after the primary competitive-tracking agent has completed their initial audit.
8
8
  2. Review recent competitor changes for product-roadmap implications:
9
9
  - New features from competitors that close a gap with your product → create a backlog issue "Evaluate [feature] parity with [competitor]" with the relevant section from COMPETITIVE-INTEL.md.
10
10
  - Competitor pricing or positioning shifts that affect your value proposition → add a comment to the relevant goal or create an issue for CEO/CMO review.
11
11
  3. Update the product backlog with any priority changes driven by competitive pressure (coordinate with CEO before reprioritising existing high-priority items).
12
- 4. Add a `## Product Implications` section to `../../docs/COMPETITIVE-INTEL.md` if it doesn't already exist, noting your recommendations.
12
+ 4. Add a `## Product Implications` section to `docs/COMPETITIVE-INTEL.md` if it doesn't already exist, noting your recommendations.
13
13
  5. Mark the issue done.
14
14
 
15
15
  ## Rules
@@ -17,7 +17,7 @@
17
17
  {
18
18
  "title": "Build initial competitive landscape",
19
19
  "assignTo": "capability:competitive-tracking",
20
- "description": "Research key competitors: their positioning, strengths, weaknesses, pricing, and recent moves. Document a living competitive landscape in ../../docs/COMPETITIVE-LANDSCAPE.md with actionable differentiation insights."
20
+ "description": "Research key competitors: their positioning, strengths, weaknesses, pricing, and recent moves. Document a living competitive landscape in docs/COMPETITIVE-LANDSCAPE.md with actionable differentiation insights."
21
21
  }
22
22
  ]
23
23
  }
@@ -1,11 +1,11 @@
1
1
  ## Competitive Tracking — Done Bar
2
2
 
3
3
  **Done:**
4
- - `../../docs/COMPETITIVE-INTEL.md` exists with a profile for each tracked competitor that includes: product positioning, key differentiators, pricing model (if public), and a specific takeaway for your product ("what this means for us").
4
+ - `docs/COMPETITIVE-INTEL.md` exists with a profile for each tracked competitor that includes: product positioning, key differentiators, pricing model (if public), and a specific takeaway for your product ("what this means for us").
5
5
  - Differentiation opportunities are explicitly named — not just competitor feature lists, but concrete gaps or advantages your product has or could develop.
6
6
  - Each competitor profile was updated within the last tracking cycle (not stale from a previous run).
7
7
 
8
8
  **Not done:**
9
9
  - Competitor profiles are feature lists with no positioning takeaway.
10
10
  - "Differentiation opportunities" section is absent or contains only generic observations ("we should improve UX").
11
- - `../../docs/COMPETITIVE-INTEL.md` was not updated this run (routine ran but no document was touched).
11
+ - `docs/COMPETITIVE-INTEL.md` was not updated this run (routine ran but no document was touched).
@@ -4,8 +4,8 @@ You own competitive intelligence. This is a living analysis — profiles evolve
4
4
 
5
5
  ## Competitive Tracking Process
6
6
 
7
- 1. Review the company goal and existing market analysis — if `../../docs/MARKET-ANALYSIS.md` exists, use it as context. Otherwise, start from the project description.
8
- 2. Research and document in `../../docs/COMPETITIVE-LANDSCAPE.md`:
7
+ 1. Review the company goal and existing market analysis — if `docs/MARKET-ANALYSIS.md` exists, use it as context. Otherwise, start from the project description.
8
+ 2. Research and document in `docs/COMPETITIVE-LANDSCAPE.md`:
9
9
  - **Competitor profiles**: For each key competitor (3-5), document:
10
10
  - Product overview and target audience
11
11
  - Positioning and messaging
@@ -16,7 +16,7 @@ You own competitive intelligence. This is a living analysis — profiles evolve
16
16
  - **Gaps and opportunities**: Where competitors are weak and we can win
17
17
  - **Threats**: Where competitors are strong and we need to defend
18
18
  3. Create follow-up issues for strategic decisions informed by competitive insights:
19
- - `POST /api/companies/{companyId}/issues` with specific recommendations. Include the active `projectId` (and `goalId` / `parentId` when applicable). For top-level issues (no `parentId`), also include `"executionWorkspaceSettings": { "mode": "isolated_workspace" }` so each gets its own worktree; subissues set `parentId` and omit it.
19
+ - `POST /api/companies/{companyId}/issues` with specific recommendations. Include `projectId` plus `goalId` / `parentId` when applicable, and set `executionWorkspaceSettings: { "mode": "isolated_workspace" }` for top-level repository implementation issues and subissues when the instance feature, project policy, and initialized repository support isolation. Otherwise follow the rendered project policy and avoid concurrent shared-checkout writes. Reuse only when explicitly required via `inheritExecutionWorkspaceFromIssueId`; keep API-only work project-detached.
20
20
  4. Record summary in your daily notes
21
21
 
22
22
  ## Rules
@@ -4,10 +4,10 @@ DevOps or Security Engineer primarily owns dependency management. You are the fa
4
4
 
5
5
  ## Dependency Audit (Fallback)
6
6
 
7
- 1. If no `../../docs/DEPENDENCY-AUDIT.md` exists and no one else has started:
7
+ 1. If no `docs/DEPENDENCY-AUDIT.md` exists and no one else has started:
8
8
  - Run the package manager's built-in audit command (`npm audit`, `pip-audit`, etc.)
9
9
  - Apply safe patch-level updates that don't break tests
10
- - Document current dependency state in `../../docs/DEPENDENCY-AUDIT.md`
10
+ - Document current dependency state in `docs/DEPENDENCY-AUDIT.md`
11
11
  - Mark the document as **provisional** — it needs a security/ops review for CVE prioritization
12
12
  2. If DevOps or Security Engineer is active, skip this entirely.
13
13