cc-codeconductor 1.6.1 → 1.7.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 (118) hide show
  1. package/README.md +23 -7
  2. package/dist/core/compilation/compile-checker.d.ts +3 -2
  3. package/dist/core/goal/goal-state.d.ts +1 -0
  4. package/dist/core/orchestrator/runtime-orchestrator.d.ts +1 -0
  5. package/dist/core/queue/lock.d.ts +3 -0
  6. package/dist/core/verification/rdd-receipt.d.ts +6 -0
  7. package/dist/core/verification/verification-runner.d.ts +11 -2
  8. package/dist/index.js +1217 -596
  9. package/dist/library.js +391 -140
  10. package/dist/validation/schemas.d.ts +65 -26
  11. package/docs/generated/cli.md +8 -0
  12. package/package.json +1 -1
  13. package/presets/agy/AGENTS.md +1 -1
  14. package/presets/agy/scripts/invoke-hook.cjs +43 -24
  15. package/presets/agy/skills/backlog/SKILL.md +1 -1
  16. package/presets/agy/skills/cc-spec-mutation/SKILL.md +1 -1
  17. package/presets/agy/skills/cc-tdd-cycle/SKILL.md +1 -1
  18. package/presets/agy/skills/evaluation/SKILL.md +1 -1
  19. package/presets/agy/skills/openspec/SKILL.md +10 -6
  20. package/presets/agy/skills/testing-tdd/SKILL.md +3 -3
  21. package/presets/agy/workflows/cc-api-contract.md +1 -1
  22. package/presets/agy/workflows/cc-ask.md +2 -2
  23. package/presets/agy/workflows/cc-db-migration.md +1 -1
  24. package/presets/agy/workflows/cc-feature.md +1 -1
  25. package/presets/agy/workflows/cc-fix.md +1 -1
  26. package/presets/agy/workflows/cc-iterative.md +1 -1
  27. package/presets/agy/workflows/cc-odd.md +2 -2
  28. package/presets/agy/workflows/cc-openspec.md +1 -1
  29. package/presets/agy/workflows/cc-spec-mutation.md +2 -2
  30. package/presets/agy/workflows/cc-tdd-cycle.md +2 -2
  31. package/presets/claude/CLAUDE.md +1 -1
  32. package/presets/claude/commands/cc/api-contract.md +1 -1
  33. package/presets/claude/commands/cc/ask.md +2 -2
  34. package/presets/claude/commands/cc/db-migration.md +1 -1
  35. package/presets/claude/commands/cc/feature.md +1 -1
  36. package/presets/claude/commands/cc/fix.md +1 -1
  37. package/presets/claude/commands/cc/iterative.md +1 -1
  38. package/presets/claude/commands/cc/odd.md +2 -2
  39. package/presets/claude/commands/cc/openspec.md +5 -5
  40. package/presets/claude/commands/cc/spec-mutation.md +2 -2
  41. package/presets/claude/commands/cc/tdd-cycle.md +3 -3
  42. package/presets/claude/settings.json +6 -101
  43. package/presets/claude/skills/backlog/SKILL.md +1 -1
  44. package/presets/claude/skills/evaluation/SKILL.md +1 -1
  45. package/presets/claude/skills/openspec/SKILL.md +10 -6
  46. package/presets/claude/skills/testing-tdd/SKILL.md +3 -3
  47. package/presets/codex/AGENTS.md +1 -1
  48. package/presets/codex/commands/cc-ask.md +2 -2
  49. package/presets/codex/skills/backlog/SKILL.md +1 -1
  50. package/presets/codex/skills/cc-api-contract/SKILL.md +1 -1
  51. package/presets/codex/skills/cc-db-migration/SKILL.md +1 -1
  52. package/presets/codex/skills/cc-feature/SKILL.md +1 -1
  53. package/presets/codex/skills/cc-fix/SKILL.md +1 -1
  54. package/presets/codex/skills/cc-iterative/SKILL.md +1 -1
  55. package/presets/codex/skills/cc-odd/SKILL.md +2 -2
  56. package/presets/codex/skills/cc-openspec/SKILL.md +10 -8
  57. package/presets/codex/skills/cc-spec-mutation/SKILL.md +2 -2
  58. package/presets/codex/skills/cc-tdd-cycle/SKILL.md +2 -2
  59. package/presets/codex/skills/django-testing/SKILL.md +1 -1
  60. package/presets/codex/skills/evaluation/SKILL.md +1 -1
  61. package/presets/codex/skills/openspec/SKILL.md +10 -6
  62. package/presets/codex/skills/python-django-stack/SKILL.md +1 -1
  63. package/presets/codex/skills/testing-tdd/SKILL.md +3 -3
  64. package/presets/cursor/AGENTS.md +1 -1
  65. package/presets/cursor/commands/cc/api-contract.md +1 -1
  66. package/presets/cursor/commands/cc/ask.md +2 -2
  67. package/presets/cursor/commands/cc/db-migration.md +1 -1
  68. package/presets/cursor/commands/cc/feature.md +1 -1
  69. package/presets/cursor/commands/cc/fix.md +1 -1
  70. package/presets/cursor/commands/cc/iterative.md +1 -1
  71. package/presets/cursor/commands/cc/odd.md +2 -2
  72. package/presets/cursor/commands/cc/openspec.md +10 -8
  73. package/presets/cursor/commands/cc/spec-mutation.md +2 -2
  74. package/presets/cursor/commands/cc/tdd-cycle.md +2 -2
  75. package/presets/cursor/skills/backlog/SKILL.md +1 -1
  76. package/presets/cursor/skills/evaluation/SKILL.md +1 -1
  77. package/presets/cursor/skills/openspec/SKILL.md +10 -6
  78. package/presets/cursor/skills/testing-tdd/SKILL.md +3 -3
  79. package/presets/gemini/GEMINI.md +1 -1
  80. package/presets/gemini/commands/cc/api-contract.toml +1 -1
  81. package/presets/gemini/commands/cc/ask.toml +2 -2
  82. package/presets/gemini/commands/cc/db-migration.toml +1 -1
  83. package/presets/gemini/commands/cc/feature.toml +1 -1
  84. package/presets/gemini/commands/cc/fix.toml +1 -1
  85. package/presets/gemini/commands/cc/iterative.toml +1 -1
  86. package/presets/gemini/commands/cc/odd.toml +2 -2
  87. package/presets/gemini/commands/cc/openspec.toml +10 -8
  88. package/presets/gemini/commands/cc/spec-mutation.toml +2 -2
  89. package/presets/gemini/commands/cc/tdd-cycle.toml +2 -2
  90. package/presets/muse/AGENTS.md +1 -1
  91. package/presets/opencode/agents/implementer.md +1 -1
  92. package/presets/opencode/agents/tester.md +1 -1
  93. package/presets/opencode/commands/cc-api-contract.md +1 -1
  94. package/presets/opencode/commands/cc-ask.md +2 -2
  95. package/presets/opencode/commands/cc-db-migration.md +1 -1
  96. package/presets/opencode/commands/cc-feature.md +1 -1
  97. package/presets/opencode/commands/cc-fix.md +1 -1
  98. package/presets/opencode/commands/cc-iterative.md +1 -1
  99. package/presets/opencode/commands/cc-odd.md +2 -2
  100. package/presets/opencode/commands/cc-openspec.md +2 -2
  101. package/presets/opencode/commands/cc-spec-mutation.md +2 -2
  102. package/presets/opencode/commands/cc-tdd-cycle.md +2 -2
  103. package/presets/opencode/prompts/v1.0.0/implementer.md +1 -1
  104. package/presets/opencode/prompts/v1.0.0/tester.md +1 -1
  105. package/presets/opencode/skills/backlog/SKILL.md +1 -1
  106. package/presets/opencode/skills/django-testing/SKILL.md +1 -0
  107. package/presets/opencode/skills/evaluation/SKILL.md +1 -1
  108. package/presets/opencode/skills/openspec/SKILL.md +10 -6
  109. package/presets/opencode/skills/python-django-stack/SKILL.md +1 -0
  110. package/presets/opencode/skills/python-fastapi-stack/SKILL.md +1 -0
  111. package/presets/opencode/skills/spring-boot-kotlin/SKILL.md +1 -0
  112. package/presets/opencode/skills/sqlalchemy/SKILL.md +1 -0
  113. package/presets/opencode/skills/testing-tdd/SKILL.md +3 -3
  114. package/presets/pi/AGENTS.md +1 -1
  115. package/presets/shared/invoke-hook.cjs +43 -24
  116. package/src/presets/manifests/claude.yml +1 -1
  117. package/src/presets/shared-skills.yml +30 -0
  118. package/src/presets/targets/pi.yml +1 -1
@@ -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 (local repo: `bun run dev`; published package: `npx cc-codeconductor`):
18
+ Run `npx cc-codeconductor`:
19
19
 
20
20
  ```bash
21
- bun run dev ask "$ARGUMENTS" --output json
21
+ npx cc-codeconductor ask "$ARGUMENTS" --output json
22
22
  ```
23
23
 
24
24
  or:
@@ -30,7 +30,7 @@ If `openspec status` reports an active change folder:
30
30
  3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
31
31
  4. Next command spelling on this runner: `/cc-db-migration`
32
32
 
33
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
33
+ Run the CLI as `npx cc-codeconductor <same argv>`.
34
34
 
35
35
  ---
36
36
 
@@ -52,7 +52,7 @@ If `openspec status` reports an active change folder:
52
52
  3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
53
53
  4. Next command spelling on this runner: `/cc-feature`
54
54
 
55
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
55
+ Run the CLI as `npx cc-codeconductor <same argv>`.
56
56
 
57
57
  Skills: `using-cc-skills`, `openspec`, `testing-tdd`, `evaluation`.
58
58
  Do not skip `openspec analyze` when a change folder is active.
@@ -62,7 +62,7 @@ If `openspec status` reports an active change folder:
62
62
  3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
63
63
  4. Next command spelling on this runner: `/cc-fix`
64
64
 
65
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
65
+ Run the CLI as `npx cc-codeconductor <same argv>`.
66
66
 
67
67
  ---
68
68
 
@@ -30,7 +30,7 @@ If `openspec status` reports an active change folder:
30
30
  3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
31
31
  4. Next command spelling on this runner: `/cc-iterative`
32
32
 
33
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
33
+ Run the CLI as `npx cc-codeconductor <same argv>`.
34
34
 
35
35
  ---
36
36
 
@@ -7,8 +7,8 @@ description: Create or resume an opt-in Delivery Ledger for substantial authoriz
7
7
  ## Step 0 — CCEP Bootstrap
8
8
 
9
9
  ```bash
10
- bun run dev ccep profile odd --output json
11
- bun run dev ccep compile --command odd --phase <phase-id> "$ARGUMENTS" --view prompt --output json
10
+ npx cc-codeconductor ccep profile odd --output json
11
+ npx cc-codeconductor ccep compile --command odd --phase <phase-id> "$ARGUMENTS" --view prompt --output json
12
12
  ```
13
13
 
14
14
  Pass each subagent only the compiled `prompt` for its phase.
@@ -60,7 +60,7 @@ If `openspec status` reports an active change folder:
60
60
  3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
61
61
  4. Next command spelling on this runner: `/cc-openspec`
62
62
 
63
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
63
+ Run the CLI as `npx cc-codeconductor <same argv>`.
64
64
 
65
65
  ---
66
66
 
@@ -40,7 +40,7 @@ If `openspec status` reports an active change folder:
40
40
  3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
41
41
  4. Next command spelling on this runner: `/cc-spec-mutation`
42
42
 
43
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
43
+ Run the CLI as `npx cc-codeconductor <same argv>`.
44
44
 
45
45
  ---
46
46
 
@@ -102,7 +102,7 @@ aborts the pipeline with scorecard 0 (Specification Gaming).
102
102
  ## Stage 3 — TDD under the three laws (`tdd_craftsman`)
103
103
 
104
104
  Delegates to the `/cc-tdd-cycle` state machine (`tddCycleStateMachine` in
105
- `domain/loop`). Evidence must be captured with `captureTddSuiteEvidence` — do
105
+ `domain/loop`). Evidence must be captured with `npx cc-codeconductor tdd capture` — do
106
106
  not hand-edit JSON under `.codeconductor/evidence/`.
107
107
 
108
108
  1. **Law 1 (RED):** no production code except to make a failing test pass. A
@@ -39,7 +39,7 @@ If `openspec status` reports an active change folder:
39
39
  3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
40
40
  4. Next command spelling on this runner: `/cc-tdd-cycle`
41
41
 
42
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
42
+ Run the CLI as `npx cc-codeconductor <same argv>`.
43
43
 
44
44
  ---
45
45
 
@@ -59,7 +59,7 @@ Mixing phases invalidates the cycle.
59
59
  ## Verifiable phase gates
60
60
 
61
61
  RED → GREEN and GREEN → REFACTOR are enforced by `tddCycleStateMachine` in
62
- `domain/loop`. Evidence must be captured with `captureTddSuiteEvidence` (verification
62
+ `domain/loop`. Evidence must be captured with `npx cc-codeconductor tdd capture` (verification
63
63
  runner) — do not hand-edit JSON under `.codeconductor/evidence/`.
64
64
 
65
65
  - RED→GREEN requires runner evidence that the suite **failed**.
@@ -804,7 +804,7 @@ extending capabilities, apply `.claude/skills/find-skills/SKILL.md`.
804
804
 
805
805
  ## Receipt integrity
806
806
 
807
- - For any implementation, test, review, handoff, or delivery decision, capture or verify the current RDD receipt with `bun run dev rdd`.
807
+ - For any implementation, test, review, handoff, or delivery decision, capture or verify the current RDD receipt with `npx cc-codeconductor rdd`.
808
808
  - A receipt is valid only for its exact candidate. If code, tests, contracts, or runner configuration changed, repeat the affected verification.
809
809
  - TDD and Mutation Testing retain their existing gates; RDD verifies that their observed evidence still belongs to the current candidate.
810
810
 
@@ -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
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
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 (local repo: `bun run dev`; published package: `npx cc-codeconductor`):
18
+ Run `npx cc-codeconductor`:
19
19
 
20
20
  ```bash
21
- bun run dev ask "$ARGUMENTS" --output json
21
+ npx cc-codeconductor ask "$ARGUMENTS" --output json
22
22
  ```
23
23
 
24
24
  or:
@@ -29,7 +29,7 @@ If `openspec status` reports an active change folder:
29
29
  3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
30
30
  4. Next command spelling on this runner: `/cc:db-migration`
31
31
 
32
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
32
+ Run the CLI as `npx cc-codeconductor <same argv>`.
33
33
 
34
34
  ---
35
35
 
@@ -53,7 +53,7 @@ If `openspec status` reports an active change folder:
53
53
  3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
54
54
  4. Next command spelling on this runner: `/cc:feature`
55
55
 
56
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
56
+ Run the CLI as `npx cc-codeconductor <same argv>`.
57
57
 
58
58
  Skills: `using-cc-skills`, `openspec`, `testing-tdd`, `evaluation`.
59
59
  Do not skip `openspec analyze` when a change folder is active.
@@ -61,7 +61,7 @@ If `openspec status` reports an active change folder:
61
61
  3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
62
62
  4. Next command spelling on this runner: `/cc:fix`
63
63
 
64
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
64
+ Run the CLI as `npx cc-codeconductor <same argv>`.
65
65
 
66
66
  ---
67
67
 
@@ -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:iterative`
33
33
 
34
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
34
+ Run the CLI as `npx cc-codeconductor <same argv>`.
35
35
 
36
36
  ---
37
37
 
@@ -7,8 +7,8 @@ description: Create or resume an opt-in Delivery Ledger for substantial authoriz
7
7
  ## Step 0 — CCEP Bootstrap
8
8
 
9
9
  ```bash
10
- bun run dev ccep profile odd --output json
11
- bun run dev ccep compile --command odd --phase <phase-id> "$ARGUMENTS" --view prompt --output json
10
+ npx cc-codeconductor ccep profile odd --output json
11
+ npx cc-codeconductor ccep compile --command odd --phase <phase-id> "$ARGUMENTS" --view prompt --output json
12
12
  ```
13
13
 
14
14
  Pass each subagent only the compiled `prompt` for its phase.
@@ -100,7 +100,7 @@ If `openspec status` reports an active change folder:
100
100
  3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
101
101
  4. Next command spelling on this runner: `/cc:openspec`
102
102
 
103
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
103
+ Run the CLI as `npx cc-codeconductor <same argv>`.
104
104
 
105
105
  ---
106
106
 
@@ -168,7 +168,7 @@ npx cc-codeconductor openspec verify <itemId>
168
168
  npx cc-codeconductor openspec archive <itemId>
169
169
  ```
170
170
 
171
- `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, warns on unchecked `tasks.md` boxes, then moves `openspec/changes/<slug>` to `archive/`.
171
+ `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/`.
172
172
 
173
173
  ---
174
174
 
@@ -205,9 +205,9 @@ After each phase:
205
205
 
206
206
  Implementer: create a Git worktree before editing (`git worktree add ../<branch>-session <branch>`).
207
207
 
208
- Discover is read-only: `repo-explorer` never writes code. The implementer ticks
209
- `tasks.md` boxes (`- [ ]` → `- [x]`) as each FR lands — only `x`/`X` counts as
210
- done. If implementation reveals a design problem, pause and reconcile the
208
+ Discover is read-only: `repo-explorer` never writes code. `openspec done` ticks the boxes tagged
209
+ with that card and keeps your edits; the implementer ticks any other `tasks.md` box
210
+ it adds (`- [ ]` → `- [x]`) — only `x`/`X` counts as done. If implementation reveals a design problem, pause and reconcile the
211
211
  planning artifacts first (any direction: a later artifact may force revising an
212
212
  earlier one). Planning artifacts only in that step — never code — and confirm
213
213
  each edit. If the item's intent changed rather than its details, open a fresh
@@ -39,7 +39,7 @@ If `openspec status` reports an active change folder:
39
39
  3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
40
40
  4. Next command spelling on this runner: `/cc:spec-mutation`
41
41
 
42
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
42
+ Run the CLI as `npx cc-codeconductor <same argv>`.
43
43
 
44
44
  ---
45
45
 
@@ -101,7 +101,7 @@ aborts the pipeline with scorecard 0 (Specification Gaming).
101
101
  ## Stage 3 — TDD under the three laws (`tdd_craftsman`)
102
102
 
103
103
  Delegates to the `/cc:tdd-cycle` state machine (`tddCycleStateMachine` in
104
- `domain/loop`). Evidence must be captured with `captureTddSuiteEvidence` — do
104
+ `domain/loop`). Evidence must be captured with `npx cc-codeconductor tdd capture` — do
105
105
  not hand-edit JSON under `.codeconductor/evidence/`.
106
106
 
107
107
  1. **Law 1 (RED):** no production code except to make a failing test pass. A
@@ -39,7 +39,7 @@ If `openspec status` reports an active change folder:
39
39
  3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
40
40
  4. Next command spelling on this runner: `/cc:tdd-cycle`
41
41
 
42
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
42
+ Run the CLI as `npx cc-codeconductor <same argv>`.
43
43
 
44
44
  ---
45
45
 
@@ -59,7 +59,7 @@ Mixing phases invalidates the cycle.
59
59
  ## Verifiable phase gates
60
60
 
61
61
  RED → GREEN and GREEN → REFACTOR are enforced by `tddCycleStateMachine` in
62
- `domain/loop`. Evidence must be captured with `captureTddSuiteEvidence` (verification
62
+ `domain/loop`. Evidence must be captured with `npx cc-codeconductor tdd capture` (verification
63
63
  runner) — do not hand-edit JSON under `.codeconductor/evidence/`.
64
64
 
65
65
  - RED→GREEN requires runner evidence that the suite **failed**.
@@ -289,4 +289,4 @@ If the behavior requires additional test cases, start a new `/tdd-cycle` with
289
289
  the next scenario. One cycle = one behavior.
290
290
 
291
291
  Skill: `testing-tdd`. Evidence from the verification runner only — handmade TDD
292
- JSON is rejected. Optional gate: `bun run dev scorecard suite-run --suite workflow-gates`.
292
+ JSON is rejected. Optional gate: `npx cc-codeconductor scorecard suite-run --suite workflow-gates`.
@@ -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(docker run*)",
123
- "Bash(docker compose up*)",
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. `bun run dev openspec validate` (or `npx cc-codeconductor`). Fix until valid.
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
 
@@ -25,7 +25,7 @@ Pass threshold: weighted score >= 2.0 and no criterion at 0.
25
25
 
26
26
  ## Process
27
27
 
28
- Local: `bun run dev`. Published: `npx cc-codeconductor`.
28
+ The CLI is always `npx cc-codeconductor`.
29
29
 
30
30
  ```text
31
31
  scorecard create --task BC-001 --from-diff
@@ -24,7 +24,7 @@ coding rules.
24
24
 
25
25
  ## Process
26
26
 
27
- Local CLI is `bun run dev`. Published package is `npx cc-codeconductor`.
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 requires `captureTddSuiteEvidence`. Handmade
44
- evidence JSON is rejected. The implementer ticks `tasks.md` boxes
45
- (`- [ ]` → `- [x]`) as each FR lands; only `x`/`X` counts as done.
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 warns on unchecked `tasks.md` boxes.
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): `bun run dev scorecard suite-run --suite workflow-gates`
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
- `captureTddSuiteEvidence`, not handmade JSON.
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
- Local: `bun run dev`. Pyramid default: many unit, fewer integration, rare E2E.
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: `bun run dev scorecard suite-run --suite workflow-gates`
53
+ - [ ] Optional: `npx cc-codeconductor scorecard suite-run --suite workflow-gates`
@@ -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 `bun run dev rdd`.
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 (local repo: `bun run dev`; published package: `npx cc-codeconductor`):
18
+ Run `npx cc-codeconductor`:
19
19
 
20
20
  ```bash
21
- bun run dev ask "$ARGUMENTS" --output json
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. `bun run dev openspec validate` (or `npx cc-codeconductor`). Fix until valid.
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
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
34
+ Run the CLI as `npx cc-codeconductor <same argv>`.
35
35
 
36
36
  ---
37
37
 
@@ -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
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
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
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
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
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
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
- Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
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
- bun run dev ccep profile odd --output json
16
- bun run dev ccep compile --command odd --phase <phase-id> "$ARGUMENTS" --view prompt --output json
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.