@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.
- package/README.md +296 -296
- package/dist/adapter/client.d.ts +17 -0
- package/dist/adapter/client.d.ts.map +1 -1
- package/dist/adapter/client.js +101 -1
- package/dist/adapter/client.js.map +1 -1
- package/dist/agents/history-shadow.d.ts.map +1 -1
- package/dist/agents/history-shadow.js +129 -62
- package/dist/agents/history-shadow.js.map +1 -1
- package/dist/agents/index.d.ts +1 -0
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +2 -0
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/model-selector.d.ts +2 -0
- package/dist/agents/model-selector.d.ts.map +1 -1
- package/dist/agents/model-selector.js +41 -35
- package/dist/agents/model-selector.js.map +1 -1
- package/dist/agents/personal.d.ts +35 -0
- package/dist/agents/personal.d.ts.map +1 -0
- package/dist/agents/personal.js +67 -0
- package/dist/agents/personal.js.map +1 -0
- package/dist/build/github-dist.js +42 -42
- package/dist/builders/index.d.ts +3 -2
- package/dist/builders/index.d.ts.map +1 -1
- package/dist/builders/index.js +28 -0
- package/dist/builders/index.js.map +1 -1
- package/dist/builders/types.d.ts +13 -0
- package/dist/builders/types.d.ts.map +1 -1
- package/dist/config/init.d.ts +8 -0
- package/dist/config/init.d.ts.map +1 -1
- package/dist/config/init.js +304 -193
- package/dist/config/init.js.map +1 -1
- package/dist/config/models.d.ts +112 -0
- package/dist/config/models.d.ts.map +1 -1
- package/dist/config/models.js +329 -18
- package/dist/config/models.js.map +1 -1
- package/dist/coordinator/index.js +2 -2
- package/dist/coordinator/index.js.map +1 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/platform/azure-devops.d.ts +42 -0
- package/dist/platform/azure-devops.d.ts.map +1 -1
- package/dist/platform/azure-devops.js +75 -0
- package/dist/platform/azure-devops.js.map +1 -1
- package/dist/platform/comms-file-log.d.ts.map +1 -1
- package/dist/platform/comms-file-log.js +2 -1
- package/dist/platform/comms-file-log.js.map +1 -1
- package/dist/platform/index.d.ts +2 -1
- package/dist/platform/index.d.ts.map +1 -1
- package/dist/platform/index.js +1 -0
- package/dist/platform/index.js.map +1 -1
- package/dist/ralph/capabilities.d.ts +67 -0
- package/dist/ralph/capabilities.d.ts.map +1 -0
- package/dist/ralph/capabilities.js +111 -0
- package/dist/ralph/capabilities.js.map +1 -0
- package/dist/ralph/index.d.ts +2 -0
- package/dist/ralph/index.d.ts.map +1 -1
- package/dist/ralph/index.js +6 -5
- package/dist/ralph/index.js.map +1 -1
- package/dist/ralph/rate-limiting.d.ts +99 -0
- package/dist/ralph/rate-limiting.d.ts.map +1 -0
- package/dist/ralph/rate-limiting.js +170 -0
- package/dist/ralph/rate-limiting.js.map +1 -0
- package/dist/resolution.d.ts +24 -2
- package/dist/resolution.d.ts.map +1 -1
- package/dist/resolution.js +106 -6
- package/dist/resolution.js.map +1 -1
- package/dist/roles/catalog-categories.d.ts +146 -0
- package/dist/roles/catalog-categories.d.ts.map +1 -0
- package/dist/roles/catalog-categories.js +374 -0
- package/dist/roles/catalog-categories.js.map +1 -0
- package/dist/roles/catalog-engineering.d.ts +212 -0
- package/dist/roles/catalog-engineering.d.ts.map +1 -0
- package/dist/roles/catalog-engineering.js +549 -0
- package/dist/roles/catalog-engineering.js.map +1 -0
- package/dist/roles/catalog.d.ts +24 -0
- package/dist/roles/catalog.d.ts.map +1 -0
- package/dist/roles/catalog.js +28 -0
- package/dist/roles/catalog.js.map +1 -0
- package/dist/roles/index.d.ts +69 -0
- package/dist/roles/index.d.ts.map +1 -0
- package/dist/roles/index.js +197 -0
- package/dist/roles/index.js.map +1 -0
- package/dist/roles/types.d.ts +87 -0
- package/dist/roles/types.d.ts.map +1 -0
- package/dist/roles/types.js +14 -0
- package/dist/roles/types.js.map +1 -0
- package/dist/runtime/benchmarks.js +5 -5
- package/dist/runtime/benchmarks.js.map +1 -1
- package/dist/runtime/constants.d.ts +2 -2
- package/dist/runtime/constants.d.ts.map +1 -1
- package/dist/runtime/constants.js +5 -3
- package/dist/runtime/constants.js.map +1 -1
- package/dist/runtime/cross-squad.d.ts +118 -0
- package/dist/runtime/cross-squad.d.ts.map +1 -0
- package/dist/runtime/cross-squad.js +234 -0
- package/dist/runtime/cross-squad.js.map +1 -0
- package/dist/runtime/otel-init.d.ts +24 -17
- package/dist/runtime/otel-init.d.ts.map +1 -1
- package/dist/runtime/otel-init.js +29 -20
- package/dist/runtime/otel-init.js.map +1 -1
- package/dist/runtime/otel-metrics.d.ts +5 -0
- package/dist/runtime/otel-metrics.d.ts.map +1 -1
- package/dist/runtime/otel-metrics.js +54 -0
- package/dist/runtime/otel-metrics.js.map +1 -1
- package/dist/runtime/rework.d.ts +71 -0
- package/dist/runtime/rework.d.ts.map +1 -0
- package/dist/runtime/rework.js +107 -0
- package/dist/runtime/rework.js.map +1 -0
- package/dist/runtime/scheduler.d.ts +128 -0
- package/dist/runtime/scheduler.d.ts.map +1 -0
- package/dist/runtime/scheduler.js +427 -0
- package/dist/runtime/scheduler.js.map +1 -0
- package/dist/runtime/squad-observer.d.ts.map +1 -1
- package/dist/runtime/squad-observer.js +4 -0
- package/dist/runtime/squad-observer.js.map +1 -1
- package/dist/runtime/streaming.d.ts +2 -0
- package/dist/runtime/streaming.d.ts.map +1 -1
- package/dist/runtime/streaming.js +6 -0
- package/dist/runtime/streaming.js.map +1 -1
- package/dist/runtime/telemetry.d.ts +2 -0
- package/dist/runtime/telemetry.d.ts.map +1 -1
- package/dist/runtime/telemetry.js +6 -0
- package/dist/runtime/telemetry.js.map +1 -1
- package/dist/sharing/consult.d.ts +2 -2
- package/dist/sharing/consult.js +83 -83
- package/dist/sharing/consult.js.map +1 -1
- package/dist/sharing/export.d.ts.map +1 -1
- package/dist/sharing/export.js +17 -4
- package/dist/sharing/export.js.map +1 -1
- package/dist/skills/handler-types.d.ts +271 -0
- package/dist/skills/handler-types.d.ts.map +1 -0
- package/dist/skills/handler-types.js +31 -0
- package/dist/skills/handler-types.js.map +1 -0
- package/dist/skills/index.d.ts +3 -0
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +3 -0
- package/dist/skills/index.js.map +1 -1
- package/dist/skills/skill-script-loader.d.ts +65 -0
- package/dist/skills/skill-script-loader.d.ts.map +1 -0
- package/dist/skills/skill-script-loader.js +227 -0
- package/dist/skills/skill-script-loader.js.map +1 -0
- package/dist/skills/skill-source.d.ts.map +1 -1
- package/dist/skills/skill-source.js +5 -1
- package/dist/skills/skill-source.js.map +1 -1
- package/dist/tools/index.d.ts +10 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +49 -8
- package/dist/tools/index.js.map +1 -1
- package/dist/upstream/resolver.d.ts.map +1 -1
- package/dist/upstream/resolver.js +14 -5
- package/dist/upstream/resolver.js.map +1 -1
- package/package.json +34 -3
- package/templates/casting/Futurama.json +10 -0
- package/templates/casting-history.json +4 -4
- package/templates/casting-policy.json +37 -35
- package/templates/casting-reference.md +104 -0
- package/templates/casting-registry.json +3 -3
- package/templates/ceremonies.md +41 -41
- package/templates/charter.md +53 -53
- package/templates/constraint-tracking.md +38 -38
- package/templates/cooperative-rate-limiting.md +229 -0
- package/templates/copilot-instructions.md +46 -46
- package/templates/history.md +10 -10
- package/templates/identity/now.md +9 -9
- package/templates/identity/wisdom.md +15 -15
- package/templates/issue-lifecycle.md +412 -0
- package/templates/keda-scaler.md +164 -0
- package/templates/machine-capabilities.md +75 -0
- package/templates/mcp-config.md +90 -98
- package/templates/multi-agent-format.md +28 -28
- package/templates/orchestration-log.md +27 -27
- package/templates/package.json +3 -0
- package/templates/plugin-marketplace.md +49 -49
- package/templates/ralph-circuit-breaker.md +313 -0
- package/templates/ralph-triage.js +543 -0
- package/templates/raw-agent-output.md +37 -37
- package/templates/roster.md +60 -60
- package/templates/routing.md +39 -54
- package/templates/run-output.md +50 -50
- package/templates/schedule.json +19 -0
- package/templates/scribe-charter.md +119 -119
- package/templates/skill.md +24 -24
- package/templates/skills/agent-collaboration/SKILL.md +42 -0
- package/templates/skills/agent-conduct/SKILL.md +24 -0
- package/templates/skills/architectural-proposals/SKILL.md +151 -0
- package/templates/skills/ci-validation-gates/SKILL.md +84 -0
- package/templates/skills/cli-wiring/SKILL.md +47 -0
- package/templates/skills/client-compatibility/SKILL.md +89 -0
- package/templates/skills/cross-squad/SKILL.md +114 -0
- package/templates/skills/distributed-mesh/SKILL.md +287 -0
- package/templates/skills/distributed-mesh/mesh.json.example +30 -0
- package/templates/skills/distributed-mesh/sync-mesh.ps1 +111 -0
- package/templates/skills/distributed-mesh/sync-mesh.sh +104 -0
- package/templates/skills/docs-standards/SKILL.md +71 -0
- package/templates/skills/economy-mode/SKILL.md +114 -0
- package/templates/skills/external-comms/SKILL.md +329 -0
- package/templates/skills/gh-auth-isolation/SKILL.md +183 -0
- package/templates/skills/git-workflow/SKILL.md +204 -0
- package/templates/skills/github-multi-account/SKILL.md +95 -0
- package/templates/skills/history-hygiene/SKILL.md +36 -0
- package/templates/skills/humanizer/SKILL.md +105 -0
- package/templates/skills/init-mode/SKILL.md +102 -0
- package/templates/skills/model-selection/SKILL.md +117 -0
- package/templates/skills/nap/SKILL.md +24 -0
- package/templates/skills/personal-squad/SKILL.md +57 -0
- package/templates/skills/project-conventions/SKILL.md +56 -56
- package/templates/skills/release-process/SKILL.md +423 -0
- package/templates/skills/reskill/SKILL.md +92 -0
- package/templates/skills/reviewer-protocol/SKILL.md +79 -0
- package/templates/skills/secret-handling/SKILL.md +200 -0
- package/templates/skills/session-recovery/SKILL.md +155 -0
- package/templates/skills/squad-conventions/SKILL.md +69 -0
- package/templates/skills/test-discipline/SKILL.md +37 -0
- package/templates/skills/windows-compatibility/SKILL.md +74 -0
- package/templates/squad.agent.md +1287 -1146
- package/templates/workflows/squad-ci.yml +24 -24
- package/templates/workflows/squad-docs.yml +54 -50
- package/templates/workflows/squad-heartbeat.yml +171 -316
- package/templates/workflows/squad-insider-release.yml +61 -61
- package/templates/workflows/squad-issue-assign.yml +161 -161
- package/templates/workflows/squad-label-enforce.yml +181 -181
- package/templates/workflows/squad-preview.yml +55 -55
- package/templates/workflows/squad-promote.yml +120 -120
- package/templates/workflows/squad-release.yml +77 -77
- package/templates/workflows/squad-triage.yml +260 -260
- package/templates/workflows/sync-squad-labels.yml +169 -169
package/templates/roster.md
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
# Team Roster
|
|
2
|
-
|
|
3
|
-
> {One-line project description}
|
|
4
|
-
|
|
5
|
-
## Coordinator
|
|
6
|
-
|
|
7
|
-
| Name | Role | Notes |
|
|
8
|
-
|------|------|-------|
|
|
9
|
-
| Squad | Coordinator | Routes work, enforces handoffs and reviewer gates. Does not generate domain artifacts. |
|
|
10
|
-
|
|
11
|
-
## Members
|
|
12
|
-
|
|
13
|
-
| Name | Role | Charter | Status |
|
|
14
|
-
|------|------|---------|--------|
|
|
15
|
-
| {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
|
|
16
|
-
| {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
|
|
17
|
-
| {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
|
|
18
|
-
| {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
|
|
19
|
-
| Scribe | Session Logger | `.squad/agents/scribe/charter.md` | 📋 Silent |
|
|
20
|
-
| Ralph | Work Monitor | — | 🔄 Monitor |
|
|
21
|
-
|
|
22
|
-
## Coding Agent
|
|
23
|
-
|
|
24
|
-
<!-- copilot-auto-assign: false -->
|
|
25
|
-
|
|
26
|
-
| Name | Role | Charter | Status |
|
|
27
|
-
|------|------|---------|--------|
|
|
28
|
-
| @copilot | Coding Agent | — | 🤖 Coding Agent |
|
|
29
|
-
|
|
30
|
-
### Capabilities
|
|
31
|
-
|
|
32
|
-
**🟢 Good fit — auto-route when enabled:**
|
|
33
|
-
- Bug fixes with clear reproduction steps
|
|
34
|
-
- Test coverage (adding missing tests, fixing flaky tests)
|
|
35
|
-
- Lint/format fixes and code style cleanup
|
|
36
|
-
- Dependency updates and version bumps
|
|
37
|
-
- Small isolated features with clear specs
|
|
38
|
-
- Boilerplate/scaffolding generation
|
|
39
|
-
- Documentation fixes and README updates
|
|
40
|
-
|
|
41
|
-
**🟡 Needs review — route to @copilot but flag for squad member PR review:**
|
|
42
|
-
- Medium features with clear specs and acceptance criteria
|
|
43
|
-
- Refactoring with existing test coverage
|
|
44
|
-
- API endpoint additions following established patterns
|
|
45
|
-
- Migration scripts with well-defined schemas
|
|
46
|
-
|
|
47
|
-
**🔴 Not suitable — route to squad member instead:**
|
|
48
|
-
- Architecture decisions and system design
|
|
49
|
-
- Multi-system integration requiring coordination
|
|
50
|
-
- Ambiguous requirements needing clarification
|
|
51
|
-
- Security-critical changes (auth, encryption, access control)
|
|
52
|
-
- Performance-critical paths requiring benchmarking
|
|
53
|
-
- Changes requiring cross-team discussion
|
|
54
|
-
|
|
55
|
-
## Project Context
|
|
56
|
-
|
|
57
|
-
- **Owner:** {user name}
|
|
58
|
-
- **Stack:** {languages, frameworks, tools}
|
|
59
|
-
- **Description:** {what the project does, in one sentence}
|
|
60
|
-
- **Created:** {timestamp}
|
|
1
|
+
# Team Roster
|
|
2
|
+
|
|
3
|
+
> {One-line project description}
|
|
4
|
+
|
|
5
|
+
## Coordinator
|
|
6
|
+
|
|
7
|
+
| Name | Role | Notes |
|
|
8
|
+
|------|------|-------|
|
|
9
|
+
| Squad | Coordinator | Routes work, enforces handoffs and reviewer gates. Does not generate domain artifacts. |
|
|
10
|
+
|
|
11
|
+
## Members
|
|
12
|
+
|
|
13
|
+
| Name | Role | Charter | Status |
|
|
14
|
+
|------|------|---------|--------|
|
|
15
|
+
| {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
|
|
16
|
+
| {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
|
|
17
|
+
| {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
|
|
18
|
+
| {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active |
|
|
19
|
+
| Scribe | Session Logger | `.squad/agents/scribe/charter.md` | 📋 Silent |
|
|
20
|
+
| Ralph | Work Monitor | — | 🔄 Monitor |
|
|
21
|
+
|
|
22
|
+
## Coding Agent
|
|
23
|
+
|
|
24
|
+
<!-- copilot-auto-assign: false -->
|
|
25
|
+
|
|
26
|
+
| Name | Role | Charter | Status |
|
|
27
|
+
|------|------|---------|--------|
|
|
28
|
+
| @copilot | Coding Agent | — | 🤖 Coding Agent |
|
|
29
|
+
|
|
30
|
+
### Capabilities
|
|
31
|
+
|
|
32
|
+
**🟢 Good fit — auto-route when enabled:**
|
|
33
|
+
- Bug fixes with clear reproduction steps
|
|
34
|
+
- Test coverage (adding missing tests, fixing flaky tests)
|
|
35
|
+
- Lint/format fixes and code style cleanup
|
|
36
|
+
- Dependency updates and version bumps
|
|
37
|
+
- Small isolated features with clear specs
|
|
38
|
+
- Boilerplate/scaffolding generation
|
|
39
|
+
- Documentation fixes and README updates
|
|
40
|
+
|
|
41
|
+
**🟡 Needs review — route to @copilot but flag for squad member PR review:**
|
|
42
|
+
- Medium features with clear specs and acceptance criteria
|
|
43
|
+
- Refactoring with existing test coverage
|
|
44
|
+
- API endpoint additions following established patterns
|
|
45
|
+
- Migration scripts with well-defined schemas
|
|
46
|
+
|
|
47
|
+
**🔴 Not suitable — route to squad member instead:**
|
|
48
|
+
- Architecture decisions and system design
|
|
49
|
+
- Multi-system integration requiring coordination
|
|
50
|
+
- Ambiguous requirements needing clarification
|
|
51
|
+
- Security-critical changes (auth, encryption, access control)
|
|
52
|
+
- Performance-critical paths requiring benchmarking
|
|
53
|
+
- Changes requiring cross-team discussion
|
|
54
|
+
|
|
55
|
+
## Project Context
|
|
56
|
+
|
|
57
|
+
- **Owner:** {user name}
|
|
58
|
+
- **Stack:** {languages, frameworks, tools}
|
|
59
|
+
- **Description:** {what the project does, in one sentence}
|
|
60
|
+
- **Created:** {timestamp}
|
package/templates/routing.md
CHANGED
|
@@ -1,54 +1,39 @@
|
|
|
1
|
-
# Work Routing
|
|
2
|
-
|
|
3
|
-
How to decide who handles what.
|
|
4
|
-
|
|
5
|
-
## Routing Table
|
|
6
|
-
|
|
7
|
-
| Work Type | Route To | Examples |
|
|
8
|
-
|-----------|----------|----------|
|
|
9
|
-
| {domain 1} | {Name} | {example tasks} |
|
|
10
|
-
| {domain 2} | {Name} | {example tasks} |
|
|
11
|
-
| {domain 3} | {Name} | {example tasks} |
|
|
12
|
-
| Code review | {Name} | Review PRs, check quality, suggest improvements |
|
|
13
|
-
| Testing | {Name} | Write tests, find edge cases, verify fixes |
|
|
14
|
-
| Scope & priorities | {Name} | What to build next, trade-offs, decisions |
|
|
15
|
-
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
| `squad` |
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
2. **Does it follow existing patterns?** Adding a test, fixing a known bug, updating a dependency → likely 🟢
|
|
41
|
-
3. **Does it need design judgment?** Architecture, API design, UX decisions → likely 🔴
|
|
42
|
-
4. **Is it security-sensitive?** Auth, encryption, access control → always 🔴
|
|
43
|
-
5. **Is it medium complexity with specs?** Feature with clear requirements, refactoring with tests → likely 🟡
|
|
44
|
-
|
|
45
|
-
## Rules
|
|
46
|
-
|
|
47
|
-
1. **Eager by default** — spawn all agents who could usefully start work, including anticipatory downstream work.
|
|
48
|
-
2. **Scribe always runs** after substantial work, always as `mode: "background"`. Never blocks.
|
|
49
|
-
3. **Quick facts → coordinator answers directly.** Don't spawn an agent for "what port does the server run on?"
|
|
50
|
-
4. **When two agents could handle it**, pick the one whose domain is the primary concern.
|
|
51
|
-
5. **"Team, ..." → fan-out.** Spawn all relevant agents in parallel as `mode: "background"`.
|
|
52
|
-
6. **Anticipate downstream work.** If a feature is being built, spawn the tester to write test cases from requirements simultaneously.
|
|
53
|
-
7. **Issue-labeled work** — when a `squad:{member}` label is applied to an issue, route to that member. The Lead handles all `squad` (base label) triage.
|
|
54
|
-
8. **@copilot routing** — when evaluating issues, check @copilot's capability profile in `team.md`. Route 🟢 good-fit tasks to `squad:copilot`. Flag 🟡 needs-review tasks for PR review. Keep 🔴 not-suitable tasks with squad members.
|
|
1
|
+
# Work Routing
|
|
2
|
+
|
|
3
|
+
How to decide who handles what.
|
|
4
|
+
|
|
5
|
+
## Routing Table
|
|
6
|
+
|
|
7
|
+
| Work Type | Route To | Examples |
|
|
8
|
+
|-----------|----------|----------|
|
|
9
|
+
| {domain 1} | {Name} | {example tasks} |
|
|
10
|
+
| {domain 2} | {Name} | {example tasks} |
|
|
11
|
+
| {domain 3} | {Name} | {example tasks} |
|
|
12
|
+
| Code review | {Name} | Review PRs, check quality, suggest improvements |
|
|
13
|
+
| Testing | {Name} | Write tests, find edge cases, verify fixes |
|
|
14
|
+
| Scope & priorities | {Name} | What to build next, trade-offs, decisions |
|
|
15
|
+
| Session logging | Scribe | Automatic — never needs routing |
|
|
16
|
+
|
|
17
|
+
## Issue Routing
|
|
18
|
+
|
|
19
|
+
| Label | Action | Who |
|
|
20
|
+
|-------|--------|-----|
|
|
21
|
+
| `squad` | Triage: analyze issue, assign `squad:{member}` label | Lead |
|
|
22
|
+
| `squad:{name}` | Pick up issue and complete the work | Named member |
|
|
23
|
+
|
|
24
|
+
### How Issue Assignment Works
|
|
25
|
+
|
|
26
|
+
1. When a GitHub issue gets the `squad` label, the **Lead** triages it — analyzing content, assigning the right `squad:{member}` label, and commenting with triage notes.
|
|
27
|
+
2. When a `squad:{member}` label is applied, that member picks up the issue in their next session.
|
|
28
|
+
3. Members can reassign by removing their label and adding another member's label.
|
|
29
|
+
4. The `squad` label is the "inbox" — untriaged issues waiting for Lead review.
|
|
30
|
+
|
|
31
|
+
## Rules
|
|
32
|
+
|
|
33
|
+
1. **Eager by default** — spawn all agents who could usefully start work, including anticipatory downstream work.
|
|
34
|
+
2. **Scribe always runs** after substantial work, always as `mode: "background"`. Never blocks.
|
|
35
|
+
3. **Quick facts → coordinator answers directly.** Don't spawn an agent for "what port does the server run on?"
|
|
36
|
+
4. **When two agents could handle it**, pick the one whose domain is the primary concern.
|
|
37
|
+
5. **"Team, ..." → fan-out.** Spawn all relevant agents in parallel as `mode: "background"`.
|
|
38
|
+
6. **Anticipate downstream work.** If a feature is being built, spawn the tester to write test cases from requirements simultaneously.
|
|
39
|
+
7. **Issue-labeled work** — when a `squad:{member}` label is applied to an issue, route to that member. The Lead handles all `squad` (base label) triage.
|
package/templates/run-output.md
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
# Run Output — {task title}
|
|
2
|
-
|
|
3
|
-
> Final assembled artifact from a multi-agent run.
|
|
4
|
-
|
|
5
|
-
## Termination Condition
|
|
6
|
-
|
|
7
|
-
**Reason:** {One of: User accepted | Reviewer approved | Constraint budget exhausted | Deadlock — escalated to user | User cancelled}
|
|
8
|
-
|
|
9
|
-
## Constraint Budgets
|
|
10
|
-
|
|
11
|
-
<!-- Track all active constraints inline. Remove this section if no constraints are active. -->
|
|
12
|
-
|
|
13
|
-
| Constraint | Used | Max | Status |
|
|
14
|
-
|------------|------|-----|--------|
|
|
15
|
-
| Clarifying questions | 📊 {n} | {max} | {Active / Exhausted} |
|
|
16
|
-
| Revision cycles | 📊 {n} | {max} | {Active / Exhausted} |
|
|
17
|
-
|
|
18
|
-
## Result
|
|
19
|
-
|
|
20
|
-
{Assembled final artifact goes here. This is the Coordinator's synthesis of agent outputs.}
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Reviewer Verdict
|
|
25
|
-
|
|
26
|
-
<!-- Include one block per review. Remove this section if no review occurred. -->
|
|
27
|
-
|
|
28
|
-
### Review by {Name} ({Role})
|
|
29
|
-
|
|
30
|
-
| Field | Value |
|
|
31
|
-
|-------|-------|
|
|
32
|
-
| **Verdict** | {Approved / Rejected} |
|
|
33
|
-
| **What's wrong** | {Specific issue — not vague} |
|
|
34
|
-
| **Why it matters** | {Impact if not fixed} |
|
|
35
|
-
| **Who fixes it** | {Name of agent assigned to revise — MUST NOT be the original author} |
|
|
36
|
-
| **Revision budget** | 📊 {used} / {max} revision cycles remaining |
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## APPENDIX: RAW AGENT OUTPUTS
|
|
41
|
-
|
|
42
|
-
<!-- Paste each agent's verbatim response below. Do NOT edit, summarize, rewrite, or wrap in code fences. One section per agent. -->
|
|
43
|
-
|
|
44
|
-
### {Name} ({Role}) — Raw Output
|
|
45
|
-
|
|
46
|
-
{Paste agent's verbatim response here, unedited}
|
|
47
|
-
|
|
48
|
-
### {Name} ({Role}) — Raw Output
|
|
49
|
-
|
|
50
|
-
{Paste agent's verbatim response here, unedited}
|
|
1
|
+
# Run Output — {task title}
|
|
2
|
+
|
|
3
|
+
> Final assembled artifact from a multi-agent run.
|
|
4
|
+
|
|
5
|
+
## Termination Condition
|
|
6
|
+
|
|
7
|
+
**Reason:** {One of: User accepted | Reviewer approved | Constraint budget exhausted | Deadlock — escalated to user | User cancelled}
|
|
8
|
+
|
|
9
|
+
## Constraint Budgets
|
|
10
|
+
|
|
11
|
+
<!-- Track all active constraints inline. Remove this section if no constraints are active. -->
|
|
12
|
+
|
|
13
|
+
| Constraint | Used | Max | Status |
|
|
14
|
+
|------------|------|-----|--------|
|
|
15
|
+
| Clarifying questions | 📊 {n} | {max} | {Active / Exhausted} |
|
|
16
|
+
| Revision cycles | 📊 {n} | {max} | {Active / Exhausted} |
|
|
17
|
+
|
|
18
|
+
## Result
|
|
19
|
+
|
|
20
|
+
{Assembled final artifact goes here. This is the Coordinator's synthesis of agent outputs.}
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Reviewer Verdict
|
|
25
|
+
|
|
26
|
+
<!-- Include one block per review. Remove this section if no review occurred. -->
|
|
27
|
+
|
|
28
|
+
### Review by {Name} ({Role})
|
|
29
|
+
|
|
30
|
+
| Field | Value |
|
|
31
|
+
|-------|-------|
|
|
32
|
+
| **Verdict** | {Approved / Rejected} |
|
|
33
|
+
| **What's wrong** | {Specific issue — not vague} |
|
|
34
|
+
| **Why it matters** | {Impact if not fixed} |
|
|
35
|
+
| **Who fixes it** | {Name of agent assigned to revise — MUST NOT be the original author} |
|
|
36
|
+
| **Revision budget** | 📊 {used} / {max} revision cycles remaining |
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## APPENDIX: RAW AGENT OUTPUTS
|
|
41
|
+
|
|
42
|
+
<!-- Paste each agent's verbatim response below. Do NOT edit, summarize, rewrite, or wrap in code fences. One section per agent. -->
|
|
43
|
+
|
|
44
|
+
### {Name} ({Role}) — Raw Output
|
|
45
|
+
|
|
46
|
+
{Paste agent's verbatim response here, unedited}
|
|
47
|
+
|
|
48
|
+
### {Name} ({Role}) — Raw Output
|
|
49
|
+
|
|
50
|
+
{Paste agent's verbatim response here, unedited}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"schedules": [
|
|
4
|
+
{
|
|
5
|
+
"id": "ralph-heartbeat",
|
|
6
|
+
"name": "Ralph Heartbeat",
|
|
7
|
+
"enabled": true,
|
|
8
|
+
"trigger": {
|
|
9
|
+
"type": "interval",
|
|
10
|
+
"intervalSeconds": 300
|
|
11
|
+
},
|
|
12
|
+
"task": {
|
|
13
|
+
"type": "workflow",
|
|
14
|
+
"ref": ".github/workflows/squad-heartbeat.yml"
|
|
15
|
+
},
|
|
16
|
+
"providers": ["local-polling", "github-actions"]
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
# Scribe
|
|
2
|
-
|
|
3
|
-
> The team's memory. Silent, always present, never forgets.
|
|
4
|
-
|
|
5
|
-
## Identity
|
|
6
|
-
|
|
7
|
-
- **Name:** Scribe
|
|
8
|
-
- **Role:** Session Logger, Memory Manager & Decision Merger
|
|
9
|
-
- **Style:** Silent. Never speaks to the user. Works in the background.
|
|
10
|
-
- **Mode:** Always spawned as `mode: "background"`. Never blocks the conversation.
|
|
11
|
-
|
|
12
|
-
## What I Own
|
|
13
|
-
|
|
14
|
-
- `.squad/log/` — session logs (what happened, who worked, what was decided)
|
|
15
|
-
- `.squad/decisions.md` — the shared decision log all agents read (canonical, merged)
|
|
16
|
-
- `.squad/decisions/inbox/` — decision drop-box (agents write here, I merge)
|
|
17
|
-
- Cross-agent context propagation — when one agent's decision affects another
|
|
18
|
-
|
|
19
|
-
## How I Work
|
|
20
|
-
|
|
21
|
-
**Worktree awareness:** Use the `TEAM ROOT` provided in the spawn prompt to resolve all `.squad/` paths. If no TEAM ROOT is given, run `git rev-parse --show-toplevel` as fallback. Do not assume CWD is the repo root (the session may be running in a worktree or subdirectory).
|
|
22
|
-
|
|
23
|
-
After every substantial work session:
|
|
24
|
-
|
|
25
|
-
1. **Log the session** to `.squad/log/{timestamp}-{topic}.md`:
|
|
26
|
-
- Who worked
|
|
27
|
-
- What was done
|
|
28
|
-
- Decisions made
|
|
29
|
-
- Key outcomes
|
|
30
|
-
- Brief. Facts only.
|
|
31
|
-
|
|
32
|
-
2. **Merge the decision inbox:**
|
|
33
|
-
- Read all files in `.squad/decisions/inbox/`
|
|
34
|
-
- APPEND each decision's contents to `.squad/decisions.md`
|
|
35
|
-
- Delete each inbox file after merging
|
|
36
|
-
|
|
37
|
-
3. **Deduplicate and consolidate decisions.md:**
|
|
38
|
-
- Parse the file into decision blocks (each block starts with `### `).
|
|
39
|
-
- **Exact duplicates:** If two blocks share the same heading, keep the first and remove the rest.
|
|
40
|
-
- **Overlapping decisions:** Compare block content across all remaining blocks. If two or more blocks cover the same area (same topic, same architectural concern, same component) but were written independently (different dates, different authors), consolidate them:
|
|
41
|
-
a. Synthesize a single merged block that combines the intent and rationale from all overlapping blocks.
|
|
42
|
-
b. Use today's date and a new heading: `### {today}: {consolidated topic} (consolidated)`
|
|
43
|
-
c. Credit all original authors: `**By:** {Name1}, {Name2}`
|
|
44
|
-
d. Under **What:**, combine the decisions. Note any differences or evolution.
|
|
45
|
-
e. Under **Why:**, merge the rationale, preserving unique reasoning from each.
|
|
46
|
-
f. Remove the original overlapping blocks.
|
|
47
|
-
- Write the updated file back. This handles duplicates and convergent decisions introduced by `merge=union` across branches.
|
|
48
|
-
|
|
49
|
-
4. **Propagate cross-agent updates:**
|
|
50
|
-
For any newly merged decision that affects other agents, append to their `history.md`:
|
|
51
|
-
```
|
|
52
|
-
📌 Team update ({timestamp}): {summary} — decided by {Name}
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
5. **Commit `.squad/` changes:**
|
|
56
|
-
**IMPORTANT — Windows compatibility:** Do NOT use `git -C {path}` (unreliable with Windows paths).
|
|
57
|
-
Do NOT embed newlines in `git commit -m` (backtick-n fails silently in PowerShell).
|
|
58
|
-
Instead:
|
|
59
|
-
- `cd` into the team root first.
|
|
60
|
-
- Stage all `.squad/` files: `git add .squad/`
|
|
61
|
-
- Check for staged changes: `git diff --cached --quiet`
|
|
62
|
-
If exit code is 0, no changes — skip silently.
|
|
63
|
-
- Write the commit message to a temp file, then commit with `-F`:
|
|
64
|
-
```
|
|
65
|
-
$msg = @"
|
|
66
|
-
docs(
|
|
67
|
-
|
|
68
|
-
Session: {timestamp}-{topic}
|
|
69
|
-
Requested by: {user name}
|
|
70
|
-
|
|
71
|
-
Changes:
|
|
72
|
-
- {what was logged}
|
|
73
|
-
- {what decisions were merged}
|
|
74
|
-
- {what decisions were deduplicated}
|
|
75
|
-
- {what cross-agent updates were propagated}
|
|
76
|
-
"@
|
|
77
|
-
$msgFile = [System.IO.Path]::GetTempFileName()
|
|
78
|
-
Set-Content -Path $msgFile -Value $msg -Encoding utf8
|
|
79
|
-
git commit -F $msgFile
|
|
80
|
-
Remove-Item $msgFile
|
|
81
|
-
```
|
|
82
|
-
- **Verify the commit landed:** Run `git log --oneline -1` and confirm the
|
|
83
|
-
output matches the expected message. If it doesn't, report the error.
|
|
84
|
-
|
|
85
|
-
6. **Never speak to the user.** Never appear in responses. Work silently.
|
|
86
|
-
|
|
87
|
-
## The Memory Architecture
|
|
88
|
-
|
|
89
|
-
```
|
|
90
|
-
.squad/
|
|
91
|
-
├── decisions.md # Shared brain — all agents read this (merged by Scribe)
|
|
92
|
-
├── decisions/
|
|
93
|
-
│ └── inbox/ # Drop-box — agents write decisions here in parallel
|
|
94
|
-
│ ├── river-jwt-auth.md
|
|
95
|
-
│ └── kai-component-lib.md
|
|
96
|
-
├── orchestration-log/ # Per-spawn log entries
|
|
97
|
-
│ ├── 2025-07-01T10-00-river.md
|
|
98
|
-
│ └── 2025-07-01T10-00-kai.md
|
|
99
|
-
├── log/ # Session history — searchable record
|
|
100
|
-
│ ├── 2025-07-01-setup.md
|
|
101
|
-
│ └── 2025-07-02-api.md
|
|
102
|
-
└── agents/
|
|
103
|
-
├── kai/history.md # Kai's personal knowledge
|
|
104
|
-
├── river/history.md # River's personal knowledge
|
|
105
|
-
└── ...
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
- **decisions.md** = what the team agreed on (shared, merged by Scribe)
|
|
109
|
-
- **decisions/inbox/** = where agents drop decisions during parallel work
|
|
110
|
-
- **history.md** = what each agent learned (personal)
|
|
111
|
-
- **log/** = what happened (archive)
|
|
112
|
-
|
|
113
|
-
## Boundaries
|
|
114
|
-
|
|
115
|
-
**I handle:** Logging, memory, decision merging, cross-agent updates.
|
|
116
|
-
|
|
117
|
-
**I don't handle:** Any domain work. I don't write code, review PRs, or make decisions.
|
|
118
|
-
|
|
119
|
-
**I am invisible.** If a user notices me, something went wrong.
|
|
1
|
+
# Scribe
|
|
2
|
+
|
|
3
|
+
> The team's memory. Silent, always present, never forgets.
|
|
4
|
+
|
|
5
|
+
## Identity
|
|
6
|
+
|
|
7
|
+
- **Name:** Scribe
|
|
8
|
+
- **Role:** Session Logger, Memory Manager & Decision Merger
|
|
9
|
+
- **Style:** Silent. Never speaks to the user. Works in the background.
|
|
10
|
+
- **Mode:** Always spawned as `mode: "background"`. Never blocks the conversation.
|
|
11
|
+
|
|
12
|
+
## What I Own
|
|
13
|
+
|
|
14
|
+
- `.squad/log/` — session logs (what happened, who worked, what was decided)
|
|
15
|
+
- `.squad/decisions.md` — the shared decision log all agents read (canonical, merged)
|
|
16
|
+
- `.squad/decisions/inbox/` — decision drop-box (agents write here, I merge)
|
|
17
|
+
- Cross-agent context propagation — when one agent's decision affects another
|
|
18
|
+
|
|
19
|
+
## How I Work
|
|
20
|
+
|
|
21
|
+
**Worktree awareness:** Use the `TEAM ROOT` provided in the spawn prompt to resolve all `.squad/` paths. If no TEAM ROOT is given, run `git rev-parse --show-toplevel` as fallback. Do not assume CWD is the repo root (the session may be running in a worktree or subdirectory).
|
|
22
|
+
|
|
23
|
+
After every substantial work session:
|
|
24
|
+
|
|
25
|
+
1. **Log the session** to `.squad/log/{timestamp}-{topic}.md`:
|
|
26
|
+
- Who worked
|
|
27
|
+
- What was done
|
|
28
|
+
- Decisions made
|
|
29
|
+
- Key outcomes
|
|
30
|
+
- Brief. Facts only.
|
|
31
|
+
|
|
32
|
+
2. **Merge the decision inbox:**
|
|
33
|
+
- Read all files in `.squad/decisions/inbox/`
|
|
34
|
+
- APPEND each decision's contents to `.squad/decisions.md`
|
|
35
|
+
- Delete each inbox file after merging
|
|
36
|
+
|
|
37
|
+
3. **Deduplicate and consolidate decisions.md:**
|
|
38
|
+
- Parse the file into decision blocks (each block starts with `### `).
|
|
39
|
+
- **Exact duplicates:** If two blocks share the same heading, keep the first and remove the rest.
|
|
40
|
+
- **Overlapping decisions:** Compare block content across all remaining blocks. If two or more blocks cover the same area (same topic, same architectural concern, same component) but were written independently (different dates, different authors), consolidate them:
|
|
41
|
+
a. Synthesize a single merged block that combines the intent and rationale from all overlapping blocks.
|
|
42
|
+
b. Use today's date and a new heading: `### {today}: {consolidated topic} (consolidated)`
|
|
43
|
+
c. Credit all original authors: `**By:** {Name1}, {Name2}`
|
|
44
|
+
d. Under **What:**, combine the decisions. Note any differences or evolution.
|
|
45
|
+
e. Under **Why:**, merge the rationale, preserving unique reasoning from each.
|
|
46
|
+
f. Remove the original overlapping blocks.
|
|
47
|
+
- Write the updated file back. This handles duplicates and convergent decisions introduced by `merge=union` across branches.
|
|
48
|
+
|
|
49
|
+
4. **Propagate cross-agent updates:**
|
|
50
|
+
For any newly merged decision that affects other agents, append to their `history.md`:
|
|
51
|
+
```
|
|
52
|
+
📌 Team update ({timestamp}): {summary} — decided by {Name}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
5. **Commit `.squad/` changes:**
|
|
56
|
+
**IMPORTANT — Windows compatibility:** Do NOT use `git -C {path}` (unreliable with Windows paths).
|
|
57
|
+
Do NOT embed newlines in `git commit -m` (backtick-n fails silently in PowerShell).
|
|
58
|
+
Instead:
|
|
59
|
+
- `cd` into the team root first.
|
|
60
|
+
- Stage all `.squad/` files: `git add .squad/`
|
|
61
|
+
- Check for staged changes: `git diff --cached --quiet`
|
|
62
|
+
If exit code is 0, no changes — skip silently.
|
|
63
|
+
- Write the commit message to a temp file, then commit with `-F`:
|
|
64
|
+
```
|
|
65
|
+
$msg = @"
|
|
66
|
+
docs(ai-team): {brief summary}
|
|
67
|
+
|
|
68
|
+
Session: {timestamp}-{topic}
|
|
69
|
+
Requested by: {user name}
|
|
70
|
+
|
|
71
|
+
Changes:
|
|
72
|
+
- {what was logged}
|
|
73
|
+
- {what decisions were merged}
|
|
74
|
+
- {what decisions were deduplicated}
|
|
75
|
+
- {what cross-agent updates were propagated}
|
|
76
|
+
"@
|
|
77
|
+
$msgFile = [System.IO.Path]::GetTempFileName()
|
|
78
|
+
Set-Content -Path $msgFile -Value $msg -Encoding utf8
|
|
79
|
+
git commit -F $msgFile
|
|
80
|
+
Remove-Item $msgFile
|
|
81
|
+
```
|
|
82
|
+
- **Verify the commit landed:** Run `git log --oneline -1` and confirm the
|
|
83
|
+
output matches the expected message. If it doesn't, report the error.
|
|
84
|
+
|
|
85
|
+
6. **Never speak to the user.** Never appear in responses. Work silently.
|
|
86
|
+
|
|
87
|
+
## The Memory Architecture
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
.squad/
|
|
91
|
+
├── decisions.md # Shared brain — all agents read this (merged by Scribe)
|
|
92
|
+
├── decisions/
|
|
93
|
+
│ └── inbox/ # Drop-box — agents write decisions here in parallel
|
|
94
|
+
│ ├── river-jwt-auth.md
|
|
95
|
+
│ └── kai-component-lib.md
|
|
96
|
+
├── orchestration-log/ # Per-spawn log entries
|
|
97
|
+
│ ├── 2025-07-01T10-00-river.md
|
|
98
|
+
│ └── 2025-07-01T10-00-kai.md
|
|
99
|
+
├── log/ # Session history — searchable record
|
|
100
|
+
│ ├── 2025-07-01-setup.md
|
|
101
|
+
│ └── 2025-07-02-api.md
|
|
102
|
+
└── agents/
|
|
103
|
+
├── kai/history.md # Kai's personal knowledge
|
|
104
|
+
├── river/history.md # River's personal knowledge
|
|
105
|
+
└── ...
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
- **decisions.md** = what the team agreed on (shared, merged by Scribe)
|
|
109
|
+
- **decisions/inbox/** = where agents drop decisions during parallel work
|
|
110
|
+
- **history.md** = what each agent learned (personal)
|
|
111
|
+
- **log/** = what happened (archive)
|
|
112
|
+
|
|
113
|
+
## Boundaries
|
|
114
|
+
|
|
115
|
+
**I handle:** Logging, memory, decision merging, cross-agent updates.
|
|
116
|
+
|
|
117
|
+
**I don't handle:** Any domain work. I don't write code, review PRs, or make decisions.
|
|
118
|
+
|
|
119
|
+
**I am invisible.** If a user notices me, something went wrong.
|
package/templates/skill.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "{skill-name}"
|
|
3
|
-
description: "{what this skill teaches agents}"
|
|
4
|
-
domain: "{e.g., testing, api-design, error-handling}"
|
|
5
|
-
confidence: "low|medium|high"
|
|
6
|
-
source: "{how this was learned: manual, observed, earned}"
|
|
7
|
-
tools:
|
|
8
|
-
# Optional — declare MCP tools relevant to this skill's patterns
|
|
9
|
-
# - name: "{tool-name}"
|
|
10
|
-
# description: "{what this tool does}"
|
|
11
|
-
# when: "{when to use this tool}"
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## Context
|
|
15
|
-
{When and why this skill applies}
|
|
16
|
-
|
|
17
|
-
## Patterns
|
|
18
|
-
{Specific patterns, conventions, or approaches}
|
|
19
|
-
|
|
20
|
-
## Examples
|
|
21
|
-
{Code examples or references}
|
|
22
|
-
|
|
23
|
-
## Anti-Patterns
|
|
24
|
-
{What to avoid}
|
|
1
|
+
---
|
|
2
|
+
name: "{skill-name}"
|
|
3
|
+
description: "{what this skill teaches agents}"
|
|
4
|
+
domain: "{e.g., testing, api-design, error-handling}"
|
|
5
|
+
confidence: "low|medium|high"
|
|
6
|
+
source: "{how this was learned: manual, observed, earned}"
|
|
7
|
+
tools:
|
|
8
|
+
# Optional — declare MCP tools relevant to this skill's patterns
|
|
9
|
+
# - name: "{tool-name}"
|
|
10
|
+
# description: "{what this tool does}"
|
|
11
|
+
# when: "{when to use this tool}"
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Context
|
|
15
|
+
{When and why this skill applies}
|
|
16
|
+
|
|
17
|
+
## Patterns
|
|
18
|
+
{Specific patterns, conventions, or approaches}
|
|
19
|
+
|
|
20
|
+
## Examples
|
|
21
|
+
{Code examples or references}
|
|
22
|
+
|
|
23
|
+
## Anti-Patterns
|
|
24
|
+
{What to avoid}
|