cc-codeconductor 1.6.0 → 1.7.0
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 +22 -7
- package/dist/core/compilation/compile-checker.d.ts +3 -2
- package/dist/core/goal/goal-state.d.ts +1 -0
- package/dist/core/orchestrator/runtime-orchestrator.d.ts +1 -0
- package/dist/core/queue/lock.d.ts +3 -0
- package/dist/core/verification/rdd-receipt.d.ts +25 -0
- package/dist/core/verification/verification-runner.d.ts +27 -2
- package/dist/index.js +1501 -782
- package/dist/library.js +420 -142
- package/dist/validation/schemas.d.ts +65 -26
- package/docs/generated/cli.md +8 -0
- package/package.json +2 -1
- package/presets/agy/AGENTS.md +1 -1
- package/presets/agy/scripts/invoke-hook.cjs +43 -24
- package/presets/agy/skills/backlog/SKILL.md +1 -1
- package/presets/agy/skills/cc-feature/SKILL.md +17 -16
- package/presets/agy/skills/cc-fix/SKILL.md +28 -34
- package/presets/agy/skills/cc-spec-mutation/SKILL.md +1 -1
- package/presets/agy/skills/cc-tdd-cycle/SKILL.md +1 -1
- package/presets/agy/skills/evaluation/SKILL.md +1 -1
- package/presets/agy/skills/openspec/SKILL.md +10 -6
- package/presets/agy/skills/testing-tdd/SKILL.md +3 -3
- package/presets/agy/workflows/cc-api-contract.md +1 -1
- package/presets/agy/workflows/cc-ask.md +2 -2
- package/presets/agy/workflows/cc-council.md +2 -0
- package/presets/agy/workflows/cc-db-migration.md +1 -1
- package/presets/agy/workflows/cc-feature.md +1 -1
- package/presets/agy/workflows/cc-fix.md +1 -1
- package/presets/agy/workflows/cc-iterative.md +1 -1
- package/presets/agy/workflows/cc-odd.md +2 -2
- package/presets/agy/workflows/cc-openspec.md +1 -1
- package/presets/agy/workflows/cc-spec-mutation.md +2 -2
- package/presets/agy/workflows/cc-tdd-cycle.md +2 -2
- package/presets/claude/CLAUDE.md +1 -1
- package/presets/claude/commands/cc/api-contract.md +1 -1
- package/presets/claude/commands/cc/ask.md +2 -2
- package/presets/claude/commands/cc/council.md +2 -83
- package/presets/claude/commands/cc/db-migration.md +1 -1
- package/presets/claude/commands/cc/feature.md +1 -1
- package/presets/claude/commands/cc/fix.md +1 -1
- package/presets/claude/commands/cc/iterative.md +1 -1
- package/presets/claude/commands/cc/odd.md +2 -2
- package/presets/claude/commands/cc/openspec.md +5 -5
- package/presets/claude/commands/cc/spec-mutation.md +2 -2
- package/presets/claude/commands/cc/tdd-cycle.md +3 -3
- package/presets/claude/settings.json +6 -101
- package/presets/claude/skills/backlog/SKILL.md +1 -1
- package/presets/claude/skills/evaluation/SKILL.md +1 -1
- package/presets/claude/skills/openspec/SKILL.md +10 -6
- package/presets/claude/skills/testing-tdd/SKILL.md +3 -3
- package/presets/codex/AGENTS.md +1 -1
- package/presets/codex/commands/cc-ask.md +2 -2
- package/presets/codex/skills/backlog/SKILL.md +1 -1
- package/presets/codex/skills/cc-api-contract/SKILL.md +1 -1
- package/presets/codex/skills/cc-council/SKILL.md +2 -93
- package/presets/codex/skills/cc-db-migration/SKILL.md +1 -1
- package/presets/codex/skills/cc-feature/SKILL.md +1 -1
- package/presets/codex/skills/cc-fix/SKILL.md +1 -1
- package/presets/codex/skills/cc-iterative/SKILL.md +1 -1
- package/presets/codex/skills/cc-odd/SKILL.md +2 -2
- package/presets/codex/skills/cc-openspec/SKILL.md +10 -8
- package/presets/codex/skills/cc-spec-mutation/SKILL.md +2 -2
- package/presets/codex/skills/cc-tdd-cycle/SKILL.md +2 -2
- package/presets/codex/skills/django-testing/SKILL.md +1 -1
- package/presets/codex/skills/evaluation/SKILL.md +1 -1
- package/presets/codex/skills/openspec/SKILL.md +10 -6
- package/presets/codex/skills/python-django-stack/SKILL.md +1 -1
- package/presets/codex/skills/testing-tdd/SKILL.md +3 -3
- package/presets/cursor/AGENTS.md +1 -1
- package/presets/cursor/commands/cc/api-contract.md +1 -1
- package/presets/cursor/commands/cc/ask.md +2 -2
- package/presets/cursor/commands/cc/council.md +2 -83
- package/presets/cursor/commands/cc/db-migration.md +1 -1
- package/presets/cursor/commands/cc/feature.md +1 -1
- package/presets/cursor/commands/cc/fix.md +1 -1
- package/presets/cursor/commands/cc/iterative.md +1 -1
- package/presets/cursor/commands/cc/odd.md +2 -2
- package/presets/cursor/commands/cc/openspec.md +10 -8
- package/presets/cursor/commands/cc/spec-mutation.md +2 -2
- package/presets/cursor/commands/cc/tdd-cycle.md +2 -2
- package/presets/cursor/skills/backlog/SKILL.md +1 -1
- package/presets/cursor/skills/evaluation/SKILL.md +1 -1
- package/presets/cursor/skills/openspec/SKILL.md +10 -6
- package/presets/cursor/skills/testing-tdd/SKILL.md +3 -3
- package/presets/gemini/GEMINI.md +1 -1
- package/presets/gemini/commands/cc/api-contract.toml +1 -1
- package/presets/gemini/commands/cc/ask.toml +2 -2
- package/presets/gemini/commands/cc/council.toml +2 -83
- package/presets/gemini/commands/cc/db-migration.toml +1 -1
- package/presets/gemini/commands/cc/feature.toml +1 -1
- package/presets/gemini/commands/cc/fix.toml +1 -1
- package/presets/gemini/commands/cc/iterative.toml +1 -1
- package/presets/gemini/commands/cc/odd.toml +2 -2
- package/presets/gemini/commands/cc/openspec.toml +10 -8
- package/presets/gemini/commands/cc/spec-mutation.toml +2 -2
- package/presets/gemini/commands/cc/tdd-cycle.toml +2 -2
- package/presets/muse/AGENTS.md +1 -1
- package/presets/opencode/agents/implementer.md +1 -1
- package/presets/opencode/agents/tester.md +1 -1
- package/presets/opencode/commands/cc-api-contract.md +1 -1
- package/presets/opencode/commands/cc-ask.md +2 -2
- package/presets/opencode/commands/cc-council.md +2 -83
- package/presets/opencode/commands/cc-db-migration.md +1 -1
- package/presets/opencode/commands/cc-feature.md +1 -1
- package/presets/opencode/commands/cc-fix.md +1 -1
- package/presets/opencode/commands/cc-iterative.md +1 -1
- package/presets/opencode/commands/cc-odd.md +2 -2
- package/presets/opencode/commands/cc-openspec.md +2 -2
- package/presets/opencode/commands/cc-spec-mutation.md +2 -2
- package/presets/opencode/commands/cc-tdd-cycle.md +2 -2
- package/presets/opencode/prompts/v1.0.0/implementer.md +1 -1
- package/presets/opencode/prompts/v1.0.0/tester.md +1 -1
- package/presets/opencode/skills/backlog/SKILL.md +1 -1
- package/presets/opencode/skills/django-testing/SKILL.md +1 -0
- package/presets/opencode/skills/evaluation/SKILL.md +1 -1
- package/presets/opencode/skills/openspec/SKILL.md +10 -6
- package/presets/opencode/skills/python-django-stack/SKILL.md +1 -0
- package/presets/opencode/skills/python-fastapi-stack/SKILL.md +1 -0
- package/presets/opencode/skills/spring-boot-kotlin/SKILL.md +1 -0
- package/presets/opencode/skills/sqlalchemy/SKILL.md +1 -0
- package/presets/opencode/skills/testing-tdd/SKILL.md +3 -3
- package/presets/pi/AGENTS.md +1 -1
- package/presets/shared/invoke-hook.cjs +43 -24
- package/src/presets/manifests/claude.yml +1 -1
- package/src/presets/shared-skills.yml +30 -0
- package/src/presets/targets/pi.yml +1 -1
|
@@ -1,66 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
|
3
|
-
"env": {
|
|
4
|
-
"CLAUDE_CODE_ATTRIBUTION_HEADER": "0",
|
|
5
|
-
"CLAUDE_CODE_DISABLE_TERMINAL_TITLE": "1",
|
|
6
|
-
"DISABLE_EXTRA_USAGE_COMMAND": "1",
|
|
7
|
-
"DISABLE_TELEMETRY": "1",
|
|
8
|
-
"DISABLE_ERROR_REPORTING": "1",
|
|
9
|
-
"DISABLE_FEEDBACK_COMMAND": "1",
|
|
10
|
-
"CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT": "1",
|
|
11
|
-
"ENABLE_TOOL_SEARCH": "auto",
|
|
12
|
-
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "0"
|
|
13
|
-
},
|
|
14
|
-
"attribution": {
|
|
15
|
-
"commit": "",
|
|
16
|
-
"pr": ""
|
|
17
|
-
},
|
|
18
|
-
"includeCoAuthoredBy": false,
|
|
19
|
-
"includeGitInstructions": false,
|
|
20
3
|
"permissions": {
|
|
21
4
|
"allow": [
|
|
22
|
-
"Bash(./gradlew test*)",
|
|
23
|
-
"Bash(./gradlew build*)",
|
|
24
|
-
"Bash(./gradlew check*)",
|
|
25
|
-
"Bash(npm test*)",
|
|
26
|
-
"Bash(npm run lint*)",
|
|
27
|
-
"Bash(git add*)",
|
|
28
|
-
"Bash(git commit*)",
|
|
29
|
-
"Bash(git stash*)",
|
|
30
|
-
"Bash(git checkout*)",
|
|
31
|
-
"Bash(git restore*)",
|
|
32
|
-
"Bash(git pull*)",
|
|
33
|
-
"Bash(git fetch*)",
|
|
34
|
-
"Bash(git merge*)",
|
|
35
|
-
"Bash(npm run *)",
|
|
36
|
-
"Bash(npm ci)",
|
|
37
|
-
"Bash(pnpm run *)",
|
|
38
|
-
"Bash(pnpm test*)",
|
|
39
|
-
"Bash(pnpm exec *)",
|
|
40
|
-
"Bash(pnpm dlx *)",
|
|
41
|
-
"Bash(yarn run *)",
|
|
42
|
-
"Bash(yarn test*)",
|
|
43
|
-
"Bash(npx *)",
|
|
44
|
-
"Bash(python *)",
|
|
45
|
-
"Bash(python3 *)",
|
|
46
|
-
"Bash(pip list*)",
|
|
47
|
-
"Bash(pip show *)",
|
|
48
|
-
"Bash(pytest*)",
|
|
49
|
-
"Bash(ruff*)",
|
|
50
|
-
"Bash(black --check *)",
|
|
51
|
-
"Bash(./gradlew *)",
|
|
52
|
-
"Bash(gradle *)",
|
|
53
|
-
"Bash(mvn test*)",
|
|
54
|
-
"Bash(mvn compile*)",
|
|
55
|
-
"Bash(java -version)",
|
|
56
|
-
"Bash(kotlin -version)",
|
|
57
|
-
"Bash(docker ps*)",
|
|
58
|
-
"Bash(docker logs*)",
|
|
59
|
-
"Bash(docker compose ps*)",
|
|
60
|
-
"Bash(docker compose logs*)",
|
|
61
5
|
"Read(**)",
|
|
62
|
-
"Edit(**)"
|
|
63
|
-
"WebFetch(*)"
|
|
6
|
+
"Edit(**)"
|
|
64
7
|
],
|
|
65
8
|
"deny": [
|
|
66
9
|
"Agent(bypass-runner)",
|
|
@@ -116,12 +59,13 @@
|
|
|
116
59
|
"Read(~/.aws/**)",
|
|
117
60
|
"Edit(~/.aws/**)",
|
|
118
61
|
"Read(~/.gnupg/**)",
|
|
119
|
-
"Edit(~/.gnupg/**)"
|
|
62
|
+
"Edit(~/.gnupg/**)",
|
|
63
|
+
"Edit(.codeconductor/**)",
|
|
64
|
+
"Write(.codeconductor/**)"
|
|
120
65
|
],
|
|
121
66
|
"ask": [
|
|
122
|
-
"Bash(
|
|
123
|
-
"
|
|
124
|
-
"Bash(docker compose down*)"
|
|
67
|
+
"Bash(*)",
|
|
68
|
+
"WebFetch(*)"
|
|
125
69
|
],
|
|
126
70
|
"defaultMode": "default",
|
|
127
71
|
"disableBypassPermissionsMode": "disable"
|
|
@@ -158,45 +102,6 @@
|
|
|
158
102
|
}
|
|
159
103
|
]
|
|
160
104
|
}
|
|
161
|
-
],
|
|
162
|
-
"SubagentStop": [
|
|
163
|
-
{
|
|
164
|
-
"hooks": [
|
|
165
|
-
{
|
|
166
|
-
"type": "command",
|
|
167
|
-
"command": "node -e \"var fs=require('fs');var os=require('os');var p=require('path');var dir=p.join(os.homedir(),'.claude');fs.mkdirSync(dir,{recursive:true});fs.appendFileSync(p.join(dir,'subagent.log'),'[subagent fin] '+new Date().toISOString()+'\\n');\""
|
|
168
|
-
}
|
|
169
|
-
]
|
|
170
|
-
}
|
|
171
105
|
]
|
|
172
|
-
},
|
|
173
|
-
"extraKnownMarketplaces": {
|
|
174
|
-
"agricidaniel-claude-seo": {
|
|
175
|
-
"source": {
|
|
176
|
-
"source": "github",
|
|
177
|
-
"repo": "AgriciDaniel/claude-seo"
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
"language": "spanish",
|
|
182
|
-
"model": "sonnet",
|
|
183
|
-
"effortLevel": "medium",
|
|
184
|
-
"feedbackSurveyRate": 0,
|
|
185
|
-
"spinnerTipsEnabled": false,
|
|
186
|
-
"awaySummaryEnabled": false,
|
|
187
|
-
"showClearContextOnPlanAccept": true,
|
|
188
|
-
"autoUpdatesChannel": "latest",
|
|
189
|
-
"prefersReducedMotion": false,
|
|
190
|
-
"autoMemoryEnabled": false,
|
|
191
|
-
"showThinkingSummaries": true,
|
|
192
|
-
"skipDangerousModePermissionPrompt": true,
|
|
193
|
-
"editorMode": "vim",
|
|
194
|
-
"fileCheckpointingEnabled": true,
|
|
195
|
-
"showTurnDuration": true,
|
|
196
|
-
"terminalProgressBarEnabled": true,
|
|
197
|
-
"autoConnectIde": true,
|
|
198
|
-
"autoInstallIdeExtension": false,
|
|
199
|
-
"enabledPlugins": {
|
|
200
|
-
"claude-seo@agricidaniel-claude-seo": true
|
|
201
106
|
}
|
|
202
107
|
}
|
|
@@ -29,7 +29,7 @@ the item here.
|
|
|
29
29
|
4. Create `BACKLOG.md` from `presets/templates/BACKLOG.md` or append under
|
|
30
30
|
`## Items`. Do not rewrite `## Global` or `## Archive`.
|
|
31
31
|
5. Next ID = max numeric suffix in Items + Archive + 1, zero-padded (`BC-013`).
|
|
32
|
-
6. `
|
|
32
|
+
6. `npx cc-codeconductor openspec validate`. Fix until valid.
|
|
33
33
|
7. `openspec plan BC-xxx` for each **new** item this run. Then tell the user
|
|
34
34
|
to run `/cc-openspec`.
|
|
35
35
|
|
|
@@ -24,7 +24,7 @@ coding rules.
|
|
|
24
24
|
|
|
25
25
|
## Process
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
The CLI is always `npx cc-codeconductor`.
|
|
28
28
|
|
|
29
29
|
1. `openspec validate` — must pass before delivery. If you reached this
|
|
30
30
|
workflow on your own (the user did not ask for OpenSpec) and there is no
|
|
@@ -40,9 +40,13 @@ Local CLI is `bun run dev`. Published package is `npx cc-codeconductor`.
|
|
|
40
40
|
5. Phases: discover (`repo-explorer`) → design (`architect`) → test (`tester`) →
|
|
41
41
|
implement (`implementer`) → review (`reviewer`). If Global `TDD required: yes`,
|
|
42
42
|
test runs before implement. Discover is read-only: it never writes code.
|
|
43
|
-
6. `openspec done` on test/implement
|
|
44
|
-
|
|
45
|
-
(
|
|
43
|
+
6. `openspec done` on test/implement needs runner evidence: run
|
|
44
|
+
`npx cc-codeconductor tdd capture --task <cardId> --phase red|green --command "<test command>"`
|
|
45
|
+
first (RED on the test card, GREEN on the implement card). Handmade evidence JSON is
|
|
46
|
+
rejected. It is `ev-tdd-*` evidence, not an RDD receipt (`ev-rdd-*`, `rdd verify`).
|
|
47
|
+
`done` ticks that card's `tasks.md` boxes and keeps your edits; the implementer ticks
|
|
48
|
+
any other box it adds (`- [ ]` → `- [x]`, only `x`/`X` counts). `archive` fails while
|
|
49
|
+
boxes stay unchecked (override: `--allow-unchecked`).
|
|
46
50
|
7. When implementation reveals a design problem, pause and reconcile the planning
|
|
47
51
|
artifacts first — in any direction (a later artifact may force revising an
|
|
48
52
|
earlier one). Planning artifacts only in that step, never code; confirm each
|
|
@@ -54,7 +58,7 @@ Local CLI is `bun run dev`. Published package is `npx cc-codeconductor`.
|
|
|
54
58
|
9. `scorecard create --task BC-xxx --from-diff` then record a verdict.
|
|
55
59
|
10. `openspec archive` only after human review when `Review required: yes` and
|
|
56
60
|
the scorecard is PASS. Archive re-checks planning artifacts and analyze
|
|
57
|
-
CRITICALs, and
|
|
61
|
+
CRITICALs, and fails on unchecked `tasks.md` boxes (override: `--allow-unchecked`), ticks the BACKLOG acceptance criteria.
|
|
58
62
|
|
|
59
63
|
Status machine: `TODO` → `READY` → `PLANNED` → `IN_PROGRESS` → `REVIEW` → `DONE`
|
|
60
64
|
→ Archive. `BLOCKED` returns to `READY`. Reviewer rejection: `REVIEW` →
|
|
@@ -111,4 +115,4 @@ delivery read-only and record unavailable visual or emulator evidence as pending
|
|
|
111
115
|
- [ ] `tasks.md` boxes ticked as FRs land
|
|
112
116
|
- [ ] `openspec verify --output json` checked before archive
|
|
113
117
|
- [ ] `scorecard create --from-diff` recorded
|
|
114
|
-
- [ ] Suite check (optional): `
|
|
118
|
+
- [ ] Suite check (optional): `npx cc-codeconductor scorecard suite-run --suite workflow-gates`
|
|
@@ -11,7 +11,7 @@ description:
|
|
|
11
11
|
## Overview
|
|
12
12
|
|
|
13
13
|
Red (failing test) → Green (minimal code) → Refactor. Evidence comes from
|
|
14
|
-
`
|
|
14
|
+
`npx cc-codeconductor tdd capture`, not handmade JSON.
|
|
15
15
|
|
|
16
16
|
## When to Use
|
|
17
17
|
|
|
@@ -29,7 +29,7 @@ Red (failing test) → Green (minimal code) → Refactor. Evidence comes from
|
|
|
29
29
|
when TDD is required).
|
|
30
30
|
5. Cover happy path, edge, and error for each behavior.
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
Pyramid default: many unit, fewer integration, rare E2E.
|
|
33
33
|
|
|
34
34
|
## Common Rationalizations
|
|
35
35
|
|
|
@@ -50,4 +50,4 @@ Local: `bun run dev`. Pyramid default: many unit, fewer integration, rare E2E.
|
|
|
50
50
|
- [ ] Suite failed before implement
|
|
51
51
|
- [ ] Suite passed after implement
|
|
52
52
|
- [ ] Runner evidence exists (not handmade)
|
|
53
|
-
- [ ] Optional: `
|
|
53
|
+
- [ ] Optional: `npx cc-codeconductor scorecard suite-run --suite workflow-gates`
|
package/presets/codex/AGENTS.md
CHANGED
|
@@ -1086,7 +1086,7 @@ Contract version:** v0.1.0 **Date:** [YYYY-MM-DD] **Evaluator:** [human name or
|
|
|
1086
1086
|
|
|
1087
1087
|
## Receipt integrity
|
|
1088
1088
|
|
|
1089
|
-
- For any implementation, test, review, handoff, or delivery decision, capture or verify the current RDD receipt with `
|
|
1089
|
+
- For any implementation, test, review, handoff, or delivery decision, capture or verify the current RDD receipt with `npx cc-codeconductor rdd`.
|
|
1090
1090
|
- A receipt is valid only for its exact candidate. If code, tests, contracts, or runner configuration changed, repeat the affected verification.
|
|
1091
1091
|
- TDD and Mutation Testing retain their existing gates; RDD verifies that their observed evidence still belongs to the current candidate.
|
|
1092
1092
|
|
|
@@ -15,10 +15,10 @@ Do **not** run the recommended `$cc-` command unless the human confirms.
|
|
|
15
15
|
|
|
16
16
|
## Step 1 — Recommend (deterministic)
|
|
17
17
|
|
|
18
|
-
Run
|
|
18
|
+
Run `npx cc-codeconductor`:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
|
|
21
|
+
npx cc-codeconductor ask "$ARGUMENTS" --output json
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
or:
|
|
@@ -29,7 +29,7 @@ the item here.
|
|
|
29
29
|
4. Create `BACKLOG.md` from `presets/templates/BACKLOG.md` or append under
|
|
30
30
|
`## Items`. Do not rewrite `## Global` or `## Archive`.
|
|
31
31
|
5. Next ID = max numeric suffix in Items + Archive + 1, zero-padded (`BC-013`).
|
|
32
|
-
6. `
|
|
32
|
+
6. `npx cc-codeconductor openspec validate`. Fix until valid.
|
|
33
33
|
7. `openspec plan BC-xxx` for each **new** item this run. Then tell the user
|
|
34
34
|
to run `/cc-openspec`.
|
|
35
35
|
|
|
@@ -31,7 +31,7 @@ If `openspec status` reports an active change folder:
|
|
|
31
31
|
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
32
32
|
4. Next command spelling on this runner: `$cc-api-contract`
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Run the CLI as `npx cc-codeconductor <same argv>`.
|
|
35
35
|
|
|
36
36
|
---
|
|
37
37
|
|
|
@@ -3,99 +3,8 @@ name: cc-council
|
|
|
3
3
|
description: Council-driven workflow with CCEP-1 bootstrap
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Invoke as `$cc-council`. The user request follows the skill mention.
|
|
9
|
-
|
|
10
|
-
## Council context budget
|
|
11
|
-
|
|
12
|
-
Use GPT-6.1 Sol with medium reasoning effort. Give each necessary council role
|
|
13
|
-
the same short evidence summary and relevant diff. Reuse those findings in the
|
|
14
|
-
verdict; avoid spawning roles for questions already answered by evidence.
|
|
15
|
-
|
|
16
|
-
# Council-Driven Workflow
|
|
17
|
-
|
|
18
|
-
Task request: $ARGUMENTS
|
|
6
|
+
<!-- GENERATED redirect to presets/agy/workflows/cc-council.md by scripts/render-agent-commands.ts — DO NOT EDIT. -->
|
|
19
7
|
|
|
20
8
|
## Step 0 — CCEP Bootstrap
|
|
21
9
|
|
|
22
|
-
|
|
23
|
-
command: council
|
|
24
|
-
|
|
25
|
-
1. Run: `npx cc-codeconductor ccep profile council --output json` to get the phases and their roles.
|
|
26
|
-
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command council --phase <phase-id> "$ARGUMENTS" --view prompt --output json`
|
|
27
|
-
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command council --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
28
|
-
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `$ARGUMENTS` to planners.
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
## Step 1 — Wayfinding (repo-explorer)
|
|
33
|
-
|
|
34
|
-
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
|
|
35
|
-
`graphify path` / `graphify explain` when needed). Then invoke `repo-explorer`
|
|
36
|
-
to map impact radius before deliberation. Do not write code in this step.
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## Step 2 — Deliberation & Specification (SDD)
|
|
41
|
-
|
|
42
|
-
Invoke the `council` skill to analyze the request before writing any code. The council must act as a steering committee involving `task-coach` (Product), `architect`, and `devil`.
|
|
43
|
-
|
|
44
|
-
The council must:
|
|
45
|
-
1. Clarify the prompt and define the absolute minimum scope (Simplicity Gate).
|
|
46
|
-
2. Explicitly document all assumptions and run the Grilling protocol on each one (Think Before Coding).
|
|
47
|
-
3. Draft a Task Card & Technical Plan (The Specification).
|
|
48
|
-
|
|
49
|
-
**STOP here.** Unresolved grilling questions populate `questionsForUser` in the
|
|
50
|
-
CCEP-1 `planner-output`; `ccep evaluate` (ConfirmationGate) halts until a human
|
|
51
|
-
answers. Show the agreed Task Card & Technical Plan and wait for confirmation
|
|
52
|
-
before continuing.
|
|
53
|
-
|
|
54
|
-
---
|
|
55
|
-
|
|
56
|
-
## Step 3 — Test Definition (TDD)
|
|
57
|
-
|
|
58
|
-
Invoke `tester` with the approved Task Card & Technical Plan.
|
|
59
|
-
|
|
60
|
-
tester must:
|
|
61
|
-
1. Write failing tests based on the Acceptance Criteria defined in the Task Card.
|
|
62
|
-
2. Confirm the tests fail as expected (Red state).
|
|
63
|
-
|
|
64
|
-
**Goal-Driven Execution (Karpathy)**: Do not proceed until verifiable tests are written and fail for the correct reasons.
|
|
65
|
-
|
|
66
|
-
---
|
|
67
|
-
|
|
68
|
-
## Step 4 — Surgical Implementation
|
|
69
|
-
|
|
70
|
-
Invoke `implementer` with the failing tests and the Technical Plan.
|
|
71
|
-
|
|
72
|
-
implementer must:
|
|
73
|
-
1. Write the minimal code required to pass the tests.
|
|
74
|
-
2. Touch ONLY the files specified in the Technical Plan (Surgical Changes).
|
|
75
|
-
3. NOT refactor adjacent code, change existing styles, or build speculative features.
|
|
76
|
-
4. Run the tests. Loop `implementer` -> `tester` until all tests pass (Green state), at most 3 iterations -- then stop and report the failing tests instead of looping.
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
## Step 5 — Multi-Perspective Council Review
|
|
81
|
-
|
|
82
|
-
Invoke the `council` skill on the generated diff to perform the final review phase.
|
|
83
|
-
|
|
84
|
-
The council will evaluate the diff against the 6 axes (Architecture, Security, Product, Delivery, DataOps, Devil).
|
|
85
|
-
|
|
86
|
-
If ANY agent votes CRITICAL (especially due to over-engineering, scope creep, or missing the verifiable goals):
|
|
87
|
-
- The Review Report status is **BLOCKED**.
|
|
88
|
-
- Return to Step 4 with the feedback (at most 3 review rounds in total -- then deliver the BLOCKED verdict with the unresolved findings instead of looping).
|
|
89
|
-
|
|
90
|
-
If APPROVED (no CRITICAL findings):
|
|
91
|
-
- Deliver the final Council Verdict and the diff summary.
|
|
92
|
-
|
|
93
|
-
---
|
|
94
|
-
|
|
95
|
-
## Completion
|
|
96
|
-
|
|
97
|
-
Deliver the complete Council Verdict. The feature is only complete when tests pass and the council explicitly approves the implementation according to the specification.
|
|
98
|
-
|
|
99
|
-
## Next
|
|
100
|
-
|
|
101
|
-
Approved: merge. Blocked: return the findings to `$cc-fix` or `$cc-feature`.
|
|
10
|
+
command: council. Read `presets/agy/workflows/cc-council.md`, then `ccep profile council` + `ccep compile --command council --view prompt`.
|
|
@@ -32,7 +32,7 @@ If `openspec status` reports an active change folder:
|
|
|
32
32
|
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
33
33
|
4. Next command spelling on this runner: `$cc-db-migration`
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
Run the CLI as `npx cc-codeconductor <same argv>`.
|
|
36
36
|
|
|
37
37
|
---
|
|
38
38
|
|
|
@@ -56,7 +56,7 @@ If `openspec status` reports an active change folder:
|
|
|
56
56
|
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
57
57
|
4. Next command spelling on this runner: `$cc-feature`
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
Run the CLI as `npx cc-codeconductor <same argv>`.
|
|
60
60
|
|
|
61
61
|
Skills: `using-cc-skills`, `openspec`, `testing-tdd`, `evaluation`.
|
|
62
62
|
Do not skip `openspec analyze` when a change folder is active.
|
|
@@ -64,7 +64,7 @@ If `openspec status` reports an active change folder:
|
|
|
64
64
|
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
65
65
|
4. Next command spelling on this runner: `$cc-fix`
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
Run the CLI as `npx cc-codeconductor <same argv>`.
|
|
68
68
|
|
|
69
69
|
---
|
|
70
70
|
|
|
@@ -34,7 +34,7 @@ If `openspec status` reports an active change folder:
|
|
|
34
34
|
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
35
35
|
4. Next command spelling on this runner: `$cc-iterative`
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Run the CLI as `npx cc-codeconductor <same argv>`.
|
|
38
38
|
|
|
39
39
|
---
|
|
40
40
|
|
|
@@ -12,8 +12,8 @@ Invoke as `$cc-odd`. The user request follows the skill mention.
|
|
|
12
12
|
## Step 0 — CCEP Bootstrap
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
npx cc-codeconductor ccep profile odd --output json
|
|
16
|
+
npx cc-codeconductor ccep compile --command odd --phase <phase-id> "$ARGUMENTS" --view prompt --output json
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Pass each subagent only the compiled `prompt` for its phase.
|
|
@@ -66,7 +66,7 @@ If `openspec status` reports an active change folder:
|
|
|
66
66
|
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
67
67
|
4. Next command spelling on this runner: `$cc-openspec`
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
Run the CLI as `npx cc-codeconductor <same argv>`.
|
|
70
70
|
|
|
71
71
|
---
|
|
72
72
|
|
|
@@ -150,11 +150,13 @@ npx cc-codeconductor openspec verify <itemId>
|
|
|
150
150
|
npx cc-codeconductor openspec archive <itemId>
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
-
`start` moves the card `pending → doing` and the item `PLANNED → IN_PROGRESS`. `done` marks the card complete, updates Progress, and moves the item to `REVIEW` when every card is done and review is required. `sync` merges delta specs into `openspec/specs/` without closing the item (optional before archive). `verify` is the advisory pre-archive checklist: exit 0 with `archiveReady` plus Completeness/Correctness/Coherence issues. `archive` requires all cards done (and review evidence when Global review is required), re-checks planning artifacts and analyze CRITICALs,
|
|
153
|
+
`start` moves the card `pending → doing` and the item `PLANNED → IN_PROGRESS`. `done` marks the card complete, updates Progress, and moves the item to `REVIEW` when every card is done and review is required. `sync` merges delta specs into `openspec/specs/` without closing the item (optional before archive). `verify` is the advisory pre-archive checklist: exit 0 with `archiveReady` plus Completeness/Correctness/Coherence issues. `archive` requires all cards done (and review evidence when Global review is required), re-checks planning artifacts and analyze CRITICALs, fails on unchecked `tasks.md` boxes (override: `--allow-unchecked`), ticks the BACKLOG acceptance criteria, then moves `openspec/changes/<slug>` to `archive/`.
|
|
154
154
|
|
|
155
|
-
For test and implementation cards, `done`
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
For test and implementation cards, `done` requires current runner-captured TDD
|
|
156
|
+
evidence: `npx cc-codeconductor tdd capture --task <cardId> --phase red|green --command "<test command>"`
|
|
157
|
+
(RED for the test card, GREEN for the implement card). It is `ev-tdd-*` evidence,
|
|
158
|
+
not an RDD receipt: do not pass it to `rdd verify`. Do not reuse evidence after
|
|
159
|
+
candidate files change; capture it again.
|
|
158
160
|
|
|
159
161
|
---
|
|
160
162
|
|
|
@@ -191,9 +193,9 @@ After each phase:
|
|
|
191
193
|
|
|
192
194
|
Implementer: create a Git worktree before editing (`git worktree add ../<branch>-session <branch>`).
|
|
193
195
|
|
|
194
|
-
Discover is read-only: `repo-explorer` never writes code.
|
|
195
|
-
|
|
196
|
-
done. If implementation reveals a design problem, pause and reconcile the
|
|
196
|
+
Discover is read-only: `repo-explorer` never writes code. `openspec done` ticks the boxes tagged
|
|
197
|
+
with that card and keeps your edits; the implementer ticks any other `tasks.md` box
|
|
198
|
+
it adds (`- [ ]` → `- [x]`) — only `x`/`X` counts as done. If implementation reveals a design problem, pause and reconcile the
|
|
197
199
|
planning artifacts first (any direction: a later artifact may force revising an
|
|
198
200
|
earlier one). Planning artifacts only in that step — never code — and confirm
|
|
199
201
|
each edit. If the item's intent changed rather than its details, open a fresh
|
|
@@ -41,7 +41,7 @@ If `openspec status` reports an active change folder:
|
|
|
41
41
|
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
42
42
|
4. Next command spelling on this runner: `$cc-spec-mutation`
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
Run the CLI as `npx cc-codeconductor <same argv>`.
|
|
45
45
|
|
|
46
46
|
---
|
|
47
47
|
|
|
@@ -103,7 +103,7 @@ aborts the pipeline with scorecard 0 (Specification Gaming).
|
|
|
103
103
|
## Stage 3 — TDD under the three laws (`tdd_craftsman`)
|
|
104
104
|
|
|
105
105
|
Delegates to the `$cc-tdd-cycle` state machine (`tddCycleStateMachine` in
|
|
106
|
-
`domain/loop`). Evidence must be captured with `
|
|
106
|
+
`domain/loop`). Evidence must be captured with `npx cc-codeconductor tdd capture` — do
|
|
107
107
|
not hand-edit JSON under `.codeconductor/evidence/`.
|
|
108
108
|
|
|
109
109
|
1. **Law 1 (RED):** no production code except to make a failing test pass. A
|
|
@@ -41,7 +41,7 @@ If `openspec status` reports an active change folder:
|
|
|
41
41
|
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
42
42
|
4. Next command spelling on this runner: `$cc-tdd-cycle`
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
Run the CLI as `npx cc-codeconductor <same argv>`.
|
|
45
45
|
|
|
46
46
|
---
|
|
47
47
|
|
|
@@ -61,7 +61,7 @@ Mixing phases invalidates the cycle.
|
|
|
61
61
|
## Verifiable phase gates
|
|
62
62
|
|
|
63
63
|
RED → GREEN and GREEN → REFACTOR are enforced by `tddCycleStateMachine` in
|
|
64
|
-
`domain/loop`. Evidence must be captured with `
|
|
64
|
+
`domain/loop`. Evidence must be captured with `npx cc-codeconductor tdd capture` (verification
|
|
65
65
|
runner) — do not hand-edit JSON under `.codeconductor/evidence/`.
|
|
66
66
|
|
|
67
67
|
- RED→GREEN requires runner evidence that the suite **failed**.
|
|
@@ -411,4 +411,4 @@ def test_order_creation(self, mock_atomic):
|
|
|
411
411
|
`apps/pos/tests/test_temporal_cart.py`
|
|
412
412
|
- **Multi-decorator bypass**: `apps/catalog/tests/test_api_catalog_products.py`
|
|
413
413
|
- **pytest config**: `pyproject.toml` → `[tool.pytest.ini_options]`
|
|
414
|
-
- **pytest-django docs**: https://pytest-django.readthedocs.io
|
|
414
|
+
- **pytest-django docs**: <https://pytest-django.readthedocs.io/>
|
|
@@ -24,7 +24,7 @@ coding rules.
|
|
|
24
24
|
|
|
25
25
|
## Process
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
The CLI is always `npx cc-codeconductor`.
|
|
28
28
|
|
|
29
29
|
1. `openspec validate` — must pass before delivery. If you reached this
|
|
30
30
|
workflow on your own (the user did not ask for OpenSpec) and there is no
|
|
@@ -40,9 +40,13 @@ Local CLI is `bun run dev`. Published package is `npx cc-codeconductor`.
|
|
|
40
40
|
5. Phases: discover (`repo-explorer`) → design (`architect`) → test (`tester`) →
|
|
41
41
|
implement (`implementer`) → review (`reviewer`). If Global `TDD required: yes`,
|
|
42
42
|
test runs before implement. Discover is read-only: it never writes code.
|
|
43
|
-
6. `openspec done` on test/implement
|
|
44
|
-
|
|
45
|
-
(
|
|
43
|
+
6. `openspec done` on test/implement needs runner evidence: run
|
|
44
|
+
`npx cc-codeconductor tdd capture --task <cardId> --phase red|green --command "<test command>"`
|
|
45
|
+
first (RED on the test card, GREEN on the implement card). Handmade evidence JSON is
|
|
46
|
+
rejected. It is `ev-tdd-*` evidence, not an RDD receipt (`ev-rdd-*`, `rdd verify`).
|
|
47
|
+
`done` ticks that card's `tasks.md` boxes and keeps your edits; the implementer ticks
|
|
48
|
+
any other box it adds (`- [ ]` → `- [x]`, only `x`/`X` counts). `archive` fails while
|
|
49
|
+
boxes stay unchecked (override: `--allow-unchecked`).
|
|
46
50
|
7. When implementation reveals a design problem, pause and reconcile the planning
|
|
47
51
|
artifacts first — in any direction (a later artifact may force revising an
|
|
48
52
|
earlier one). Planning artifacts only in that step, never code; confirm each
|
|
@@ -54,7 +58,7 @@ Local CLI is `bun run dev`. Published package is `npx cc-codeconductor`.
|
|
|
54
58
|
9. `scorecard create --task BC-xxx --from-diff` then record a verdict.
|
|
55
59
|
10. `openspec archive` only after human review when `Review required: yes` and
|
|
56
60
|
the scorecard is PASS. Archive re-checks planning artifacts and analyze
|
|
57
|
-
CRITICALs, and
|
|
61
|
+
CRITICALs, and fails on unchecked `tasks.md` boxes (override: `--allow-unchecked`), ticks the BACKLOG acceptance criteria.
|
|
58
62
|
|
|
59
63
|
Status machine: `TODO` → `READY` → `PLANNED` → `IN_PROGRESS` → `REVIEW` → `DONE`
|
|
60
64
|
→ Archive. `BLOCKED` returns to `READY`. Reviewer rejection: `REVIEW` →
|
|
@@ -111,4 +115,4 @@ delivery read-only and record unavailable visual or emulator evidence as pending
|
|
|
111
115
|
- [ ] `tasks.md` boxes ticked as FRs land
|
|
112
116
|
- [ ] `openspec verify --output json` checked before archive
|
|
113
117
|
- [ ] `scorecard create --from-diff` recorded
|
|
114
|
-
- [ ] Suite check (optional): `
|
|
118
|
+
- [ ] Suite check (optional): `npx cc-codeconductor scorecard suite-run --suite workflow-gates`
|
|
@@ -494,4 +494,4 @@ make migrate # migrate_schemas --shared + --tenant
|
|
|
494
494
|
- **PDF pattern**: `apps/catalog/reports.py`
|
|
495
495
|
- **Cart pattern**: `apps/pos/pos_cart.py`, `apps/cart/cart.py`
|
|
496
496
|
- **Pagination**: `apps/catalog/views.py` (api_catalog_products)
|
|
497
|
-
- **Django docs**: https://docs.djangoproject.com/en/5.2
|
|
497
|
+
- **Django docs**: <https://docs.djangoproject.com/en/5.2/>
|
|
@@ -11,7 +11,7 @@ description:
|
|
|
11
11
|
## Overview
|
|
12
12
|
|
|
13
13
|
Red (failing test) → Green (minimal code) → Refactor. Evidence comes from
|
|
14
|
-
`
|
|
14
|
+
`npx cc-codeconductor tdd capture`, not handmade JSON.
|
|
15
15
|
|
|
16
16
|
## When to Use
|
|
17
17
|
|
|
@@ -29,7 +29,7 @@ Red (failing test) → Green (minimal code) → Refactor. Evidence comes from
|
|
|
29
29
|
when TDD is required).
|
|
30
30
|
5. Cover happy path, edge, and error for each behavior.
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
Pyramid default: many unit, fewer integration, rare E2E.
|
|
33
33
|
|
|
34
34
|
## Common Rationalizations
|
|
35
35
|
|
|
@@ -50,4 +50,4 @@ Local: `bun run dev`. Pyramid default: many unit, fewer integration, rare E2E.
|
|
|
50
50
|
- [ ] Suite failed before implement
|
|
51
51
|
- [ ] Suite passed after implement
|
|
52
52
|
- [ ] Runner evidence exists (not handmade)
|
|
53
|
-
- [ ] Optional: `
|
|
53
|
+
- [ ] Optional: `npx cc-codeconductor scorecard suite-run --suite workflow-gates`
|
package/presets/cursor/AGENTS.md
CHANGED
|
@@ -461,7 +461,7 @@ docs | test **Risk:** low | medium | high **Scope:** [files or modules affected]
|
|
|
461
461
|
|
|
462
462
|
## Receipt integrity
|
|
463
463
|
|
|
464
|
-
- For any implementation, test, review, handoff, or delivery decision, capture or verify the current RDD receipt with `
|
|
464
|
+
- For any implementation, test, review, handoff, or delivery decision, capture or verify the current RDD receipt with `npx cc-codeconductor rdd`.
|
|
465
465
|
- A receipt is valid only for its exact candidate. If code, tests, contracts, or runner configuration changed, repeat the affected verification.
|
|
466
466
|
- TDD and Mutation Testing retain their existing gates; RDD verifies that their observed evidence still belongs to the current candidate.
|
|
467
467
|
|
|
@@ -28,7 +28,7 @@ If `openspec status` reports an active change folder:
|
|
|
28
28
|
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
29
29
|
4. Next command spelling on this runner: `/cc:api-contract`
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
Run the CLI as `npx cc-codeconductor <same argv>`.
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
@@ -15,10 +15,10 @@ Do **not** run the recommended `/cc:` command unless the human confirms.
|
|
|
15
15
|
|
|
16
16
|
## Step 1 — Recommend (deterministic)
|
|
17
17
|
|
|
18
|
-
Run
|
|
18
|
+
Run `npx cc-codeconductor`:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
|
|
21
|
+
npx cc-codeconductor ask "$ARGUMENTS" --output json
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
or:
|