@bradygaster/squad-sdk 0.8.25 → 0.9.1

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 (228) hide show
  1. package/README.md +296 -296
  2. package/dist/adapter/client.d.ts +17 -0
  3. package/dist/adapter/client.d.ts.map +1 -1
  4. package/dist/adapter/client.js +101 -1
  5. package/dist/adapter/client.js.map +1 -1
  6. package/dist/agents/history-shadow.d.ts.map +1 -1
  7. package/dist/agents/history-shadow.js +129 -62
  8. package/dist/agents/history-shadow.js.map +1 -1
  9. package/dist/agents/index.d.ts +1 -0
  10. package/dist/agents/index.d.ts.map +1 -1
  11. package/dist/agents/index.js +2 -0
  12. package/dist/agents/index.js.map +1 -1
  13. package/dist/agents/model-selector.d.ts +2 -0
  14. package/dist/agents/model-selector.d.ts.map +1 -1
  15. package/dist/agents/model-selector.js +41 -35
  16. package/dist/agents/model-selector.js.map +1 -1
  17. package/dist/agents/personal.d.ts +35 -0
  18. package/dist/agents/personal.d.ts.map +1 -0
  19. package/dist/agents/personal.js +67 -0
  20. package/dist/agents/personal.js.map +1 -0
  21. package/dist/build/github-dist.js +42 -42
  22. package/dist/builders/index.d.ts +3 -2
  23. package/dist/builders/index.d.ts.map +1 -1
  24. package/dist/builders/index.js +28 -0
  25. package/dist/builders/index.js.map +1 -1
  26. package/dist/builders/types.d.ts +13 -0
  27. package/dist/builders/types.d.ts.map +1 -1
  28. package/dist/config/init.d.ts +8 -0
  29. package/dist/config/init.d.ts.map +1 -1
  30. package/dist/config/init.js +304 -193
  31. package/dist/config/init.js.map +1 -1
  32. package/dist/config/models.d.ts +112 -0
  33. package/dist/config/models.d.ts.map +1 -1
  34. package/dist/config/models.js +329 -18
  35. package/dist/config/models.js.map +1 -1
  36. package/dist/coordinator/index.js +2 -2
  37. package/dist/coordinator/index.js.map +1 -1
  38. package/dist/index.d.ts +8 -3
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +7 -2
  41. package/dist/index.js.map +1 -1
  42. package/dist/platform/azure-devops.d.ts +42 -0
  43. package/dist/platform/azure-devops.d.ts.map +1 -1
  44. package/dist/platform/azure-devops.js +75 -0
  45. package/dist/platform/azure-devops.js.map +1 -1
  46. package/dist/platform/comms-file-log.d.ts.map +1 -1
  47. package/dist/platform/comms-file-log.js +2 -1
  48. package/dist/platform/comms-file-log.js.map +1 -1
  49. package/dist/platform/index.d.ts +2 -1
  50. package/dist/platform/index.d.ts.map +1 -1
  51. package/dist/platform/index.js +1 -0
  52. package/dist/platform/index.js.map +1 -1
  53. package/dist/ralph/capabilities.d.ts +67 -0
  54. package/dist/ralph/capabilities.d.ts.map +1 -0
  55. package/dist/ralph/capabilities.js +111 -0
  56. package/dist/ralph/capabilities.js.map +1 -0
  57. package/dist/ralph/index.d.ts +2 -0
  58. package/dist/ralph/index.d.ts.map +1 -1
  59. package/dist/ralph/index.js +6 -5
  60. package/dist/ralph/index.js.map +1 -1
  61. package/dist/ralph/rate-limiting.d.ts +99 -0
  62. package/dist/ralph/rate-limiting.d.ts.map +1 -0
  63. package/dist/ralph/rate-limiting.js +170 -0
  64. package/dist/ralph/rate-limiting.js.map +1 -0
  65. package/dist/resolution.d.ts +24 -2
  66. package/dist/resolution.d.ts.map +1 -1
  67. package/dist/resolution.js +106 -6
  68. package/dist/resolution.js.map +1 -1
  69. package/dist/roles/catalog-categories.d.ts +146 -0
  70. package/dist/roles/catalog-categories.d.ts.map +1 -0
  71. package/dist/roles/catalog-categories.js +374 -0
  72. package/dist/roles/catalog-categories.js.map +1 -0
  73. package/dist/roles/catalog-engineering.d.ts +212 -0
  74. package/dist/roles/catalog-engineering.d.ts.map +1 -0
  75. package/dist/roles/catalog-engineering.js +549 -0
  76. package/dist/roles/catalog-engineering.js.map +1 -0
  77. package/dist/roles/catalog.d.ts +24 -0
  78. package/dist/roles/catalog.d.ts.map +1 -0
  79. package/dist/roles/catalog.js +28 -0
  80. package/dist/roles/catalog.js.map +1 -0
  81. package/dist/roles/index.d.ts +69 -0
  82. package/dist/roles/index.d.ts.map +1 -0
  83. package/dist/roles/index.js +197 -0
  84. package/dist/roles/index.js.map +1 -0
  85. package/dist/roles/types.d.ts +87 -0
  86. package/dist/roles/types.d.ts.map +1 -0
  87. package/dist/roles/types.js +14 -0
  88. package/dist/roles/types.js.map +1 -0
  89. package/dist/runtime/benchmarks.js +5 -5
  90. package/dist/runtime/benchmarks.js.map +1 -1
  91. package/dist/runtime/constants.d.ts +2 -2
  92. package/dist/runtime/constants.d.ts.map +1 -1
  93. package/dist/runtime/constants.js +5 -3
  94. package/dist/runtime/constants.js.map +1 -1
  95. package/dist/runtime/cross-squad.d.ts +118 -0
  96. package/dist/runtime/cross-squad.d.ts.map +1 -0
  97. package/dist/runtime/cross-squad.js +234 -0
  98. package/dist/runtime/cross-squad.js.map +1 -0
  99. package/dist/runtime/otel-init.d.ts +24 -17
  100. package/dist/runtime/otel-init.d.ts.map +1 -1
  101. package/dist/runtime/otel-init.js +29 -20
  102. package/dist/runtime/otel-init.js.map +1 -1
  103. package/dist/runtime/otel-metrics.d.ts +5 -0
  104. package/dist/runtime/otel-metrics.d.ts.map +1 -1
  105. package/dist/runtime/otel-metrics.js +54 -0
  106. package/dist/runtime/otel-metrics.js.map +1 -1
  107. package/dist/runtime/rework.d.ts +71 -0
  108. package/dist/runtime/rework.d.ts.map +1 -0
  109. package/dist/runtime/rework.js +107 -0
  110. package/dist/runtime/rework.js.map +1 -0
  111. package/dist/runtime/scheduler.d.ts +128 -0
  112. package/dist/runtime/scheduler.d.ts.map +1 -0
  113. package/dist/runtime/scheduler.js +427 -0
  114. package/dist/runtime/scheduler.js.map +1 -0
  115. package/dist/runtime/squad-observer.d.ts.map +1 -1
  116. package/dist/runtime/squad-observer.js +4 -0
  117. package/dist/runtime/squad-observer.js.map +1 -1
  118. package/dist/runtime/streaming.d.ts +2 -0
  119. package/dist/runtime/streaming.d.ts.map +1 -1
  120. package/dist/runtime/streaming.js +6 -0
  121. package/dist/runtime/streaming.js.map +1 -1
  122. package/dist/runtime/telemetry.d.ts +2 -0
  123. package/dist/runtime/telemetry.d.ts.map +1 -1
  124. package/dist/runtime/telemetry.js +6 -0
  125. package/dist/runtime/telemetry.js.map +1 -1
  126. package/dist/sharing/consult.d.ts +2 -2
  127. package/dist/sharing/consult.js +83 -83
  128. package/dist/sharing/consult.js.map +1 -1
  129. package/dist/sharing/export.d.ts.map +1 -1
  130. package/dist/sharing/export.js +17 -4
  131. package/dist/sharing/export.js.map +1 -1
  132. package/dist/skills/handler-types.d.ts +271 -0
  133. package/dist/skills/handler-types.d.ts.map +1 -0
  134. package/dist/skills/handler-types.js +31 -0
  135. package/dist/skills/handler-types.js.map +1 -0
  136. package/dist/skills/index.d.ts +3 -0
  137. package/dist/skills/index.d.ts.map +1 -1
  138. package/dist/skills/index.js +3 -0
  139. package/dist/skills/index.js.map +1 -1
  140. package/dist/skills/skill-script-loader.d.ts +65 -0
  141. package/dist/skills/skill-script-loader.d.ts.map +1 -0
  142. package/dist/skills/skill-script-loader.js +227 -0
  143. package/dist/skills/skill-script-loader.js.map +1 -0
  144. package/dist/skills/skill-source.d.ts.map +1 -1
  145. package/dist/skills/skill-source.js +5 -1
  146. package/dist/skills/skill-source.js.map +1 -1
  147. package/dist/tools/index.d.ts +10 -1
  148. package/dist/tools/index.d.ts.map +1 -1
  149. package/dist/tools/index.js +49 -8
  150. package/dist/tools/index.js.map +1 -1
  151. package/dist/upstream/resolver.d.ts.map +1 -1
  152. package/dist/upstream/resolver.js +14 -5
  153. package/dist/upstream/resolver.js.map +1 -1
  154. package/package.json +34 -3
  155. package/templates/casting/Futurama.json +10 -0
  156. package/templates/casting-history.json +4 -4
  157. package/templates/casting-policy.json +37 -35
  158. package/templates/casting-reference.md +104 -0
  159. package/templates/casting-registry.json +3 -3
  160. package/templates/ceremonies.md +41 -41
  161. package/templates/charter.md +53 -53
  162. package/templates/constraint-tracking.md +38 -38
  163. package/templates/cooperative-rate-limiting.md +229 -0
  164. package/templates/copilot-instructions.md +46 -46
  165. package/templates/history.md +10 -10
  166. package/templates/identity/now.md +9 -9
  167. package/templates/identity/wisdom.md +15 -15
  168. package/templates/issue-lifecycle.md +412 -0
  169. package/templates/keda-scaler.md +164 -0
  170. package/templates/machine-capabilities.md +75 -0
  171. package/templates/mcp-config.md +90 -98
  172. package/templates/multi-agent-format.md +28 -28
  173. package/templates/orchestration-log.md +27 -27
  174. package/templates/package.json +3 -0
  175. package/templates/plugin-marketplace.md +49 -49
  176. package/templates/ralph-circuit-breaker.md +313 -0
  177. package/templates/ralph-triage.js +543 -0
  178. package/templates/raw-agent-output.md +37 -37
  179. package/templates/roster.md +60 -60
  180. package/templates/routing.md +39 -54
  181. package/templates/run-output.md +50 -50
  182. package/templates/schedule.json +19 -0
  183. package/templates/scribe-charter.md +119 -119
  184. package/templates/skill.md +24 -24
  185. package/templates/skills/agent-collaboration/SKILL.md +42 -0
  186. package/templates/skills/agent-conduct/SKILL.md +24 -0
  187. package/templates/skills/architectural-proposals/SKILL.md +151 -0
  188. package/templates/skills/ci-validation-gates/SKILL.md +84 -0
  189. package/templates/skills/cli-wiring/SKILL.md +47 -0
  190. package/templates/skills/client-compatibility/SKILL.md +89 -0
  191. package/templates/skills/cross-squad/SKILL.md +114 -0
  192. package/templates/skills/distributed-mesh/SKILL.md +287 -0
  193. package/templates/skills/distributed-mesh/mesh.json.example +30 -0
  194. package/templates/skills/distributed-mesh/sync-mesh.ps1 +111 -0
  195. package/templates/skills/distributed-mesh/sync-mesh.sh +104 -0
  196. package/templates/skills/docs-standards/SKILL.md +71 -0
  197. package/templates/skills/economy-mode/SKILL.md +114 -0
  198. package/templates/skills/external-comms/SKILL.md +329 -0
  199. package/templates/skills/gh-auth-isolation/SKILL.md +183 -0
  200. package/templates/skills/git-workflow/SKILL.md +204 -0
  201. package/templates/skills/github-multi-account/SKILL.md +95 -0
  202. package/templates/skills/history-hygiene/SKILL.md +36 -0
  203. package/templates/skills/humanizer/SKILL.md +105 -0
  204. package/templates/skills/init-mode/SKILL.md +102 -0
  205. package/templates/skills/model-selection/SKILL.md +117 -0
  206. package/templates/skills/nap/SKILL.md +24 -0
  207. package/templates/skills/personal-squad/SKILL.md +57 -0
  208. package/templates/skills/project-conventions/SKILL.md +56 -56
  209. package/templates/skills/release-process/SKILL.md +423 -0
  210. package/templates/skills/reskill/SKILL.md +92 -0
  211. package/templates/skills/reviewer-protocol/SKILL.md +79 -0
  212. package/templates/skills/secret-handling/SKILL.md +200 -0
  213. package/templates/skills/session-recovery/SKILL.md +155 -0
  214. package/templates/skills/squad-conventions/SKILL.md +69 -0
  215. package/templates/skills/test-discipline/SKILL.md +37 -0
  216. package/templates/skills/windows-compatibility/SKILL.md +74 -0
  217. package/templates/squad.agent.md +1287 -1146
  218. package/templates/workflows/squad-ci.yml +24 -24
  219. package/templates/workflows/squad-docs.yml +54 -50
  220. package/templates/workflows/squad-heartbeat.yml +171 -316
  221. package/templates/workflows/squad-insider-release.yml +61 -61
  222. package/templates/workflows/squad-issue-assign.yml +161 -161
  223. package/templates/workflows/squad-label-enforce.yml +181 -181
  224. package/templates/workflows/squad-preview.yml +55 -55
  225. package/templates/workflows/squad-promote.yml +120 -120
  226. package/templates/workflows/squad-release.yml +77 -77
  227. package/templates/workflows/squad-triage.yml +260 -260
  228. package/templates/workflows/sync-squad-labels.yml +169 -169
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bradygaster/squad-sdk",
3
- "version": "0.8.25",
3
+ "version": "0.9.1",
4
4
  "description": "Squad SDK — Programmable multi-agent runtime for GitHub Copilot",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,6 +22,10 @@
22
22
  "types": "./dist/config/index.d.ts",
23
23
  "import": "./dist/config/index.js"
24
24
  },
25
+ "./config/agent-source": {
26
+ "types": "./dist/config/agent-source.d.ts",
27
+ "import": "./dist/config/agent-source.js"
28
+ },
25
29
  "./skills": {
26
30
  "types": "./dist/skills/index.d.ts",
27
31
  "import": "./dist/skills/index.js"
@@ -30,6 +34,10 @@
30
34
  "types": "./dist/agents/index.d.ts",
31
35
  "import": "./dist/agents/index.js"
32
36
  },
37
+ "./agents/personal": {
38
+ "types": "./dist/agents/personal.d.ts",
39
+ "import": "./dist/agents/personal.js"
40
+ },
33
41
  "./adapter": {
34
42
  "types": "./dist/adapter/types.d.ts",
35
43
  "import": "./dist/adapter/types.js"
@@ -78,6 +86,14 @@
78
86
  "types": "./dist/ralph/triage.d.ts",
79
87
  "import": "./dist/ralph/triage.js"
80
88
  },
89
+ "./ralph/capabilities": {
90
+ "types": "./dist/ralph/capabilities.d.ts",
91
+ "import": "./dist/ralph/capabilities.js"
92
+ },
93
+ "./ralph/rate-limiting": {
94
+ "types": "./dist/ralph/rate-limiting.d.ts",
95
+ "import": "./dist/ralph/rate-limiting.js"
96
+ },
81
97
  "./casting": {
82
98
  "types": "./dist/casting/index.d.ts",
83
99
  "import": "./dist/casting/index.js"
@@ -146,6 +162,10 @@
146
162
  "types": "./dist/runtime/event-bus-ws-bridge.d.ts",
147
163
  "import": "./dist/runtime/event-bus-ws-bridge.js"
148
164
  },
165
+ "./runtime/scheduler": {
166
+ "types": "./dist/runtime/scheduler.d.ts",
167
+ "import": "./dist/runtime/scheduler.js"
168
+ },
149
169
  "./runtime/constants": {
150
170
  "types": "./dist/runtime/constants.d.ts",
151
171
  "import": "./dist/runtime/constants.js"
@@ -153,6 +173,18 @@
153
173
  "./builders": {
154
174
  "types": "./dist/builders/index.d.ts",
155
175
  "import": "./dist/builders/index.js"
176
+ },
177
+ "./runtime/cross-squad": {
178
+ "types": "./dist/runtime/cross-squad.d.ts",
179
+ "import": "./dist/runtime/cross-squad.js"
180
+ },
181
+ "./runtime/otel-init": {
182
+ "types": "./dist/runtime/otel-init.d.ts",
183
+ "import": "./dist/runtime/otel-init.js"
184
+ },
185
+ "./config/models": {
186
+ "types": "./dist/config/models.d.ts",
187
+ "import": "./dist/config/models.js"
156
188
  }
157
189
  },
158
190
  "files": [
@@ -161,12 +193,11 @@
161
193
  "README.md"
162
194
  ],
163
195
  "scripts": {
164
- "prepare": "npm run build",
165
196
  "prepublishOnly": "npm run build",
166
197
  "build": "tsc -p tsconfig.json"
167
198
  },
168
199
  "engines": {
169
- "node": ">=20"
200
+ "node": ">=22.5.0"
170
201
  },
171
202
  "dependencies": {
172
203
  "@github/copilot-sdk": "^0.1.32",
@@ -0,0 +1,10 @@
1
+ [
2
+ "Fry",
3
+ "Leela",
4
+ "Bender",
5
+ "Farnsworth",
6
+ "Zoidberg",
7
+ "Amy",
8
+ "Zapp",
9
+ "Kif"
10
+ ]
@@ -1,4 +1,4 @@
1
- {
2
- "universe_usage_history": [],
3
- "assignment_cast_snapshots": {}
4
- }
1
+ {
2
+ "universe_usage_history": [],
3
+ "assignment_cast_snapshots": {}
4
+ }
@@ -1,35 +1,37 @@
1
- {
2
- "casting_policy_version": "1.1",
3
- "allowlist_universes": [
4
- "The Usual Suspects",
5
- "Reservoir Dogs",
6
- "Alien",
7
- "Ocean's Eleven",
8
- "Arrested Development",
9
- "Star Wars",
10
- "The Matrix",
11
- "Firefly",
12
- "The Goonies",
13
- "The Simpsons",
14
- "Breaking Bad",
15
- "Lost",
16
- "Marvel Cinematic Universe",
17
- "DC Universe"
18
- ],
19
- "universe_capacity": {
20
- "The Usual Suspects": 6,
21
- "Reservoir Dogs": 8,
22
- "Alien": 8,
23
- "Ocean's Eleven": 14,
24
- "Arrested Development": 15,
25
- "Star Wars": 12,
26
- "The Matrix": 10,
27
- "Firefly": 10,
28
- "The Goonies": 8,
29
- "The Simpsons": 20,
30
- "Breaking Bad": 12,
31
- "Lost": 18,
32
- "Marvel Cinematic Universe": 25,
33
- "DC Universe": 18
34
- }
35
- }
1
+ {
2
+ "casting_policy_version": "1.1",
3
+ "allowlist_universes": [
4
+ "The Usual Suspects",
5
+ "Reservoir Dogs",
6
+ "Alien",
7
+ "Ocean's Eleven",
8
+ "Arrested Development",
9
+ "Star Wars",
10
+ "The Matrix",
11
+ "Firefly",
12
+ "The Goonies",
13
+ "The Simpsons",
14
+ "Breaking Bad",
15
+ "Lost",
16
+ "Marvel Cinematic Universe",
17
+ "DC Universe",
18
+ "Futurama"
19
+ ],
20
+ "universe_capacity": {
21
+ "The Usual Suspects": 6,
22
+ "Reservoir Dogs": 8,
23
+ "Alien": 8,
24
+ "Ocean's Eleven": 14,
25
+ "Arrested Development": 15,
26
+ "Star Wars": 12,
27
+ "The Matrix": 10,
28
+ "Firefly": 10,
29
+ "The Goonies": 8,
30
+ "The Simpsons": 20,
31
+ "Breaking Bad": 12,
32
+ "Lost": 18,
33
+ "Marvel Cinematic Universe": 25,
34
+ "DC Universe": 18,
35
+ "Futurama": 12
36
+ }
37
+ }
@@ -0,0 +1,104 @@
1
+ # Casting Reference
2
+
3
+ On-demand reference for Squad's casting system. Loaded during Init Mode or when adding team members.
4
+
5
+ ## Universe Table
6
+
7
+ | Universe | Capacity | Shape Tags | Resonance Signals |
8
+ |---|---|---|---|
9
+ | The Usual Suspects | 6 | small, noir, ensemble | crime, heist, mystery, deception |
10
+ | Reservoir Dogs | 8 | small, noir, ensemble | crime, heist, tension, loyalty |
11
+ | Alien | 8 | small, sci-fi, survival | space, isolation, threat, engineering |
12
+ | Ocean's Eleven | 14 | medium, heist, ensemble | planning, coordination, roles, charm |
13
+ | Arrested Development | 15 | medium, comedy, ensemble | dysfunction, business, family, satire |
14
+ | Star Wars | 12 | medium, sci-fi, epic | conflict, mentorship, legacy, rebellion |
15
+ | The Matrix | 10 | medium, sci-fi, cyberpunk | systems, reality, hacking, philosophy |
16
+ | Firefly | 10 | medium, sci-fi, western | frontier, crew, independence, smuggling |
17
+ | The Goonies | 8 | small, adventure, ensemble | exploration, treasure, kids, teamwork |
18
+ | The Simpsons | 20 | large, comedy, ensemble | satire, community, family, absurdity |
19
+ | Breaking Bad | 12 | medium, drama, tension | chemistry, transformation, consequence, power |
20
+ | Lost | 18 | large, mystery, ensemble | survival, mystery, groups, leadership |
21
+ | Marvel Cinematic Universe | 25 | large, action, ensemble | heroism, teamwork, powers, scale |
22
+ | DC Universe | 18 | large, action, ensemble | justice, duality, powers, mythology |
23
+ | Futurama | 12 | medium, sci-fi, comedy | future, robots, space, absurdity |
24
+
25
+ **Total: 15 universes** — capacity range 6–25.
26
+
27
+ ## Selection Algorithm
28
+
29
+ Universe selection is deterministic. Score each universe and pick the highest:
30
+
31
+ ```
32
+ score = size_fit + shape_fit + resonance_fit + LRU
33
+ ```
34
+
35
+ | Factor | Description |
36
+ |---|---|
37
+ | `size_fit` | How well the universe capacity matches the team size. Prefer universes where capacity ≥ agent_count with minimal waste. |
38
+ | `shape_fit` | Match universe shape tags against the assignment shape derived from the project description. |
39
+ | `resonance_fit` | Match universe resonance signals against session and repo context signals. |
40
+ | `LRU` | Least-recently-used bonus — prefer universes not used in recent assignments (from `history.json`). |
41
+
42
+ Same inputs → same choice (unless LRU changes between assignments).
43
+
44
+ ## Casting State File Schemas
45
+
46
+ ### policy.json
47
+
48
+ Source template: `.squad/templates/casting-policy.json`
49
+ Runtime location: `.squad/casting/policy.json`
50
+
51
+ ```json
52
+ {
53
+ "casting_policy_version": "1.1",
54
+ "allowlist_universes": ["Universe Name", "..."],
55
+ "universe_capacity": {
56
+ "Universe Name": 10
57
+ }
58
+ }
59
+ ```
60
+
61
+ ### registry.json
62
+
63
+ Source template: `.squad/templates/casting-registry.json`
64
+ Runtime location: `.squad/casting/registry.json`
65
+
66
+ ```json
67
+ {
68
+ "agents": {
69
+ "agent-role-id": {
70
+ "persistent_name": "CharacterName",
71
+ "universe": "Universe Name",
72
+ "created_at": "ISO-8601",
73
+ "legacy_named": false,
74
+ "status": "active"
75
+ }
76
+ }
77
+ }
78
+ ```
79
+
80
+ ### history.json
81
+
82
+ Source template: `.squad/templates/casting-history.json`
83
+ Runtime location: `.squad/casting/history.json`
84
+
85
+ ```json
86
+ {
87
+ "universe_usage_history": [
88
+ {
89
+ "universe": "Universe Name",
90
+ "assignment_id": "unique-id",
91
+ "used_at": "ISO-8601"
92
+ }
93
+ ],
94
+ "assignment_cast_snapshots": {
95
+ "assignment-id": {
96
+ "universe": "Universe Name",
97
+ "agents": {
98
+ "role-id": "CharacterName"
99
+ },
100
+ "created_at": "ISO-8601"
101
+ }
102
+ }
103
+ }
104
+ ```
@@ -1,3 +1,3 @@
1
- {
2
- "agents": {}
3
- }
1
+ {
2
+ "agents": {}
3
+ }
@@ -1,41 +1,41 @@
1
- # Ceremonies
2
-
3
- > Team meetings that happen before or after work. Each squad configures their own.
4
-
5
- ## Design Review
6
-
7
- | Field | Value |
8
- |-------|-------|
9
- | **Trigger** | auto |
10
- | **When** | before |
11
- | **Condition** | multi-agent task involving 2+ agents modifying shared systems |
12
- | **Facilitator** | lead |
13
- | **Participants** | all-relevant |
14
- | **Time budget** | focused |
15
- | **Enabled** | ✅ yes |
16
-
17
- **Agenda:**
18
- 1. Review the task and requirements
19
- 2. Agree on interfaces and contracts between components
20
- 3. Identify risks and edge cases
21
- 4. Assign action items
22
-
23
- ---
24
-
25
- ## Retrospective
26
-
27
- | Field | Value |
28
- |-------|-------|
29
- | **Trigger** | auto |
30
- | **When** | after |
31
- | **Condition** | build failure, test failure, or reviewer rejection |
32
- | **Facilitator** | lead |
33
- | **Participants** | all-involved |
34
- | **Time budget** | focused |
35
- | **Enabled** | ✅ yes |
36
-
37
- **Agenda:**
38
- 1. What happened? (facts only)
39
- 2. Root cause analysis
40
- 3. What should change?
41
- 4. Action items for next iteration
1
+ # Ceremonies
2
+
3
+ > Team meetings that happen before or after work. Each squad configures their own.
4
+
5
+ ## Design Review
6
+
7
+ | Field | Value |
8
+ |-------|-------|
9
+ | **Trigger** | auto |
10
+ | **When** | before |
11
+ | **Condition** | multi-agent task involving 2+ agents modifying shared systems |
12
+ | **Facilitator** | lead |
13
+ | **Participants** | all-relevant |
14
+ | **Time budget** | focused |
15
+ | **Enabled** | ✅ yes |
16
+
17
+ **Agenda:**
18
+ 1. Review the task and requirements
19
+ 2. Agree on interfaces and contracts between components
20
+ 3. Identify risks and edge cases
21
+ 4. Assign action items
22
+
23
+ ---
24
+
25
+ ## Retrospective
26
+
27
+ | Field | Value |
28
+ |-------|-------|
29
+ | **Trigger** | auto |
30
+ | **When** | after |
31
+ | **Condition** | build failure, test failure, or reviewer rejection |
32
+ | **Facilitator** | lead |
33
+ | **Participants** | all-involved |
34
+ | **Time budget** | focused |
35
+ | **Enabled** | ✅ yes |
36
+
37
+ **Agenda:**
38
+ 1. What happened? (facts only)
39
+ 2. Root cause analysis
40
+ 3. What should change?
41
+ 4. Action items for next iteration
@@ -1,53 +1,53 @@
1
- # {Name} — {Role}
2
-
3
- > {One-line personality statement — what makes this person tick}
4
-
5
- ## Identity
6
-
7
- - **Name:** {Name}
8
- - **Role:** {Role title}
9
- - **Expertise:** {2-3 specific skills relevant to the project}
10
- - **Style:** {How they communicate — direct? thorough? opinionated?}
11
-
12
- ## What I Own
13
-
14
- - {Area of responsibility 1}
15
- - {Area of responsibility 2}
16
- - {Area of responsibility 3}
17
-
18
- ## How I Work
19
-
20
- - {Key approach or principle 1}
21
- - {Key approach or principle 2}
22
- - {Pattern or convention I follow}
23
-
24
- ## Boundaries
25
-
26
- **I handle:** {types of work this agent does}
27
-
28
- **I don't handle:** {types of work that belong to other team members}
29
-
30
- **When I'm unsure:** I say so and suggest who might know.
31
-
32
- **If I review others' work:** On rejection, I may require a different agent to revise (not the original author) or request a new specialist be spawned. The Coordinator enforces this.
33
-
34
- ## Model
35
-
36
- - **Preferred:** auto
37
- - **Rationale:** Coordinator selects the best model based on task type — cost first unless writing code
38
- - **Fallback:** Standard chain — the coordinator handles fallback automatically
39
-
40
- ## Collaboration
41
-
42
- Before starting work, run `git rev-parse --show-toplevel` to find the repo root, or use the `TEAM ROOT` provided in the spawn prompt. All `.squad/` paths must be resolved relative to this root — do not assume CWD is the repo root (you may be in a worktree or subdirectory).
43
-
44
- Before starting work, read `.squad/decisions.md` for team decisions that affect me.
45
- After making a decision others should know, write it to `.squad/decisions/inbox/{my-name}-{brief-slug}.md` — the Scribe will merge it.
46
- If I need another team member's input, say so — the coordinator will bring them in.
47
-
48
- ## Voice
49
-
50
- {1-2 sentences describing personality. Not generic — specific. This agent has OPINIONS.
51
- They have preferences. They push back. They have a style that's distinctly theirs.
52
- Example: "Opinionated about test coverage. Will push back if tests are skipped.
53
- Prefers integration tests over mocks. Thinks 80% coverage is the floor, not the ceiling."}
1
+ # {Name} — {Role}
2
+
3
+ > {One-line personality statement — what makes this person tick}
4
+
5
+ ## Identity
6
+
7
+ - **Name:** {Name}
8
+ - **Role:** {Role title}
9
+ - **Expertise:** {2-3 specific skills relevant to the project}
10
+ - **Style:** {How they communicate — direct? thorough? opinionated?}
11
+
12
+ ## What I Own
13
+
14
+ - {Area of responsibility 1}
15
+ - {Area of responsibility 2}
16
+ - {Area of responsibility 3}
17
+
18
+ ## How I Work
19
+
20
+ - {Key approach or principle 1}
21
+ - {Key approach or principle 2}
22
+ - {Pattern or convention I follow}
23
+
24
+ ## Boundaries
25
+
26
+ **I handle:** {types of work this agent does}
27
+
28
+ **I don't handle:** {types of work that belong to other team members}
29
+
30
+ **When I'm unsure:** I say so and suggest who might know.
31
+
32
+ **If I review others' work:** On rejection, I may require a different agent to revise (not the original author) or request a new specialist be spawned. The Coordinator enforces this.
33
+
34
+ ## Model
35
+
36
+ - **Preferred:** auto
37
+ - **Rationale:** Coordinator selects the best model based on task type — cost first unless writing code
38
+ - **Fallback:** Standard chain — the coordinator handles fallback automatically
39
+
40
+ ## Collaboration
41
+
42
+ Before starting work, run `git rev-parse --show-toplevel` to find the repo root, or use the `TEAM ROOT` provided in the spawn prompt. All `.squad/` paths must be resolved relative to this root — do not assume CWD is the repo root (you may be in a worktree or subdirectory).
43
+
44
+ Before starting work, read `.squad/decisions.md` for team decisions that affect me.
45
+ After making a decision others should know, write it to `.squad/decisions/inbox/{my-name}-{brief-slug}.md` — the Scribe will merge it.
46
+ If I need another team member's input, say so — the coordinator will bring them in.
47
+
48
+ ## Voice
49
+
50
+ {1-2 sentences describing personality. Not generic — specific. This agent has OPINIONS.
51
+ They have preferences. They push back. They have a style that's distinctly theirs.
52
+ Example: "Opinionated about test coverage. Will push back if tests are skipped.
53
+ Prefers integration tests over mocks. Thinks 80% coverage is the floor, not the ceiling."}
@@ -1,38 +1,38 @@
1
- # Constraint Budget Tracking
2
-
3
- When the user or system imposes constraints (question limits, revision limits, time budgets), maintain a visible counter in your responses and in the artifact.
4
-
5
- ## Format
6
-
7
- ```
8
- 📊 Clarifying questions used: 2 / 3
9
- ```
10
-
11
- ## Rules
12
-
13
- - Update the counter each time the constraint is consumed
14
- - When a constraint is exhausted, state it: `📊 Question budget exhausted (3/3). Proceeding with current information.`
15
- - If no constraints are active, do not display counters
16
- - Include the final constraint status in multi-agent artifacts
17
-
18
- ## Example Session
19
-
20
- ```
21
- Coordinator: Spawning agents to analyze requirements...
22
- 📊 Clarifying questions used: 0 / 3
23
-
24
- Agent asks clarification: "Should we support OAuth?"
25
- Coordinator: Checking with user...
26
- 📊 Clarifying questions used: 1 / 3
27
-
28
- Agent asks clarification: "What's the rate limit?"
29
- Coordinator: Checking with user...
30
- 📊 Clarifying questions used: 2 / 3
31
-
32
- Agent asks clarification: "Do we need RBAC?"
33
- Coordinator: Checking with user...
34
- 📊 Clarifying questions used: 3 / 3
35
-
36
- Agent asks clarification: "Should we cache responses?"
37
- Coordinator: 📊 Question budget exhausted (3/3). Proceeding without clarification.
38
- ```
1
+ # Constraint Budget Tracking
2
+
3
+ When the user or system imposes constraints (question limits, revision limits, time budgets), maintain a visible counter in your responses and in the artifact.
4
+
5
+ ## Format
6
+
7
+ ```
8
+ 📊 Clarifying questions used: 2 / 3
9
+ ```
10
+
11
+ ## Rules
12
+
13
+ - Update the counter each time the constraint is consumed
14
+ - When a constraint is exhausted, state it: `📊 Question budget exhausted (3/3). Proceeding with current information.`
15
+ - If no constraints are active, do not display counters
16
+ - Include the final constraint status in multi-agent artifacts
17
+
18
+ ## Example Session
19
+
20
+ ```
21
+ Coordinator: Spawning agents to analyze requirements...
22
+ 📊 Clarifying questions used: 0 / 3
23
+
24
+ Agent asks clarification: "Should we support OAuth?"
25
+ Coordinator: Checking with user...
26
+ 📊 Clarifying questions used: 1 / 3
27
+
28
+ Agent asks clarification: "What's the rate limit?"
29
+ Coordinator: Checking with user...
30
+ 📊 Clarifying questions used: 2 / 3
31
+
32
+ Agent asks clarification: "Do we need RBAC?"
33
+ Coordinator: Checking with user...
34
+ 📊 Clarifying questions used: 3 / 3
35
+
36
+ Agent asks clarification: "Should we cache responses?"
37
+ Coordinator: 📊 Question budget exhausted (3/3). Proceeding without clarification.
38
+ ```