cc-codeconductor 1.4.0 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +24 -1
  2. package/dist/core/verification/rdd-receipt.d.ts +39 -0
  3. package/dist/core/verification/verification-runner.d.ts +8 -2
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.js +1108 -319
  6. package/dist/library.js +296 -27
  7. package/dist/utils/cli-bin.d.ts +16 -0
  8. package/dist/validation/schemas.d.ts +521 -26
  9. package/docs/generated/cli.md +37 -25
  10. package/package.json +1 -1
  11. package/presets/agy/AGENTS.md +6 -0
  12. package/presets/agy/workflows/cc-handoff.md +2 -1
  13. package/presets/agy/workflows/cc-odd.md +15 -0
  14. package/presets/claude/CLAUDE.md +6 -0
  15. package/presets/claude/commands/cc/handoff.md +2 -1
  16. package/presets/claude/commands/cc/odd.md +15 -0
  17. package/presets/codex/AGENTS.md +6 -0
  18. package/presets/codex/skills/cc-handoff/SKILL.md +3 -1
  19. package/presets/codex/skills/cc-odd/SKILL.md +25 -0
  20. package/presets/codex/skills/cc-openspec/SKILL.md +4 -0
  21. package/presets/codex/skills/cc-spec-mutation/SKILL.md +5 -0
  22. package/presets/codex/skills/cc-tdd-cycle/SKILL.md +8 -0
  23. package/presets/cursor/AGENTS.md +6 -0
  24. package/presets/cursor/commands/cc/handoff.md +3 -1
  25. package/presets/cursor/commands/cc/odd.md +20 -0
  26. package/presets/cursor/commands/cc/openspec.md +4 -0
  27. package/presets/cursor/commands/cc/spec-mutation.md +5 -0
  28. package/presets/cursor/commands/cc/tdd-cycle.md +8 -0
  29. package/presets/gemini/GEMINI.md +6 -0
  30. package/presets/gemini/commands/cc/handoff.toml +3 -1
  31. package/presets/gemini/commands/cc/odd.toml +20 -0
  32. package/presets/gemini/commands/cc/openspec.toml +4 -0
  33. package/presets/gemini/commands/cc/spec-mutation.toml +5 -0
  34. package/presets/gemini/commands/cc/tdd-cycle.toml +8 -0
  35. package/presets/opencode/agents/implementer.md +2 -0
  36. package/presets/opencode/agents/reviewer.md +2 -0
  37. package/presets/opencode/agents/tester.md +2 -0
  38. package/presets/opencode/commands/cc-handoff.md +2 -1
  39. package/presets/opencode/commands/cc-odd.md +15 -0
  40. package/presets/pi/AGENTS.md +6 -0
  41. package/src/presets/targets/pi.yml +1 -0
@@ -5,7 +5,7 @@
5
5
  Configure and install CodeConductor.
6
6
 
7
7
  ```text
8
- cc setup [--target <target>] [--locale en|es] [--yes] [--dry-run]
8
+ cc-codeconductor setup [--target <target>] [--locale en|es] [--yes] [--dry-run]
9
9
  ```
10
10
 
11
11
  ## detect
@@ -13,7 +13,7 @@ cc setup [--target <target>] [--locale en|es] [--yes] [--dry-run]
13
13
  Inspect the project stack and recommended presets.
14
14
 
15
15
  ```text
16
- cc detect
16
+ cc-codeconductor detect
17
17
  ```
18
18
 
19
19
  ## init
@@ -21,7 +21,7 @@ cc detect
21
21
  Initialize low-level CodeConductor configuration.
22
22
 
23
23
  ```text
24
- cc init [--locale en|es]
24
+ cc-codeconductor init [--locale en|es]
25
25
  ```
26
26
 
27
27
  ## install
@@ -29,7 +29,7 @@ cc init [--locale en|es]
29
29
  Install harness components.
30
30
 
31
31
  ```text
32
- cc install preset --target <target>
32
+ cc-codeconductor install preset --target <target>
33
33
  ```
34
34
 
35
35
  ## version
@@ -37,7 +37,7 @@ cc install preset --target <target>
37
37
  Show CLI and project harness versions.
38
38
 
39
39
  ```text
40
- cc version [--json]
40
+ cc-codeconductor version [--json]
41
41
  ```
42
42
 
43
43
  ## status
@@ -45,7 +45,7 @@ cc version [--json]
45
45
  Show installed harness state.
46
46
 
47
47
  ```text
48
- cc status [--json]
48
+ cc-codeconductor status [--json]
49
49
  ```
50
50
 
51
51
  ## doctor
@@ -53,7 +53,7 @@ cc status [--json]
53
53
  Diagnose the installation.
54
54
 
55
55
  ```text
56
- cc doctor
56
+ cc-codeconductor doctor
57
57
  ```
58
58
 
59
59
  ## update
@@ -61,7 +61,7 @@ cc doctor
61
61
  Safely reconcile managed harness files.
62
62
 
63
63
  ```text
64
- cc update [--dry-run] [--force]
64
+ cc-codeconductor update [--dry-run] [--force]
65
65
  ```
66
66
 
67
67
  ## migrate
@@ -69,7 +69,7 @@ cc update [--dry-run] [--force]
69
69
  Apply compatibility migrations.
70
70
 
71
71
  ```text
72
- cc migrate [--dry-run]
72
+ cc-codeconductor migrate [--dry-run]
73
73
  ```
74
74
 
75
75
  ## docs
@@ -77,7 +77,7 @@ cc migrate [--dry-run]
77
77
  Read bundled command documentation.
78
78
 
79
79
  ```text
80
- cc docs [command]
80
+ cc-codeconductor docs [command]
81
81
  ```
82
82
 
83
83
  ## completion
@@ -85,7 +85,7 @@ cc docs [command]
85
85
  Generate shell completion.
86
86
 
87
87
  ```text
88
- cc completion <bash|zsh|fish|powershell>
88
+ cc-codeconductor completion <bash|zsh|fish|powershell>
89
89
  ```
90
90
 
91
91
  ## hook
@@ -93,7 +93,7 @@ cc completion <bash|zsh|fish|powershell>
93
93
  Run installed agent hooks.
94
94
 
95
95
  ```text
96
- cc hook <pre-tool|post-tool|session-start>
96
+ cc-codeconductor hook <pre-tool|post-tool|session-start>
97
97
  ```
98
98
 
99
99
  ## cc-help
@@ -101,7 +101,7 @@ cc hook <pre-tool|post-tool|session-start>
101
101
  Show a target preset inventory.
102
102
 
103
103
  ```text
104
- cc cc-help --target <target>
104
+ cc-codeconductor cc-help --target <target>
105
105
  ```
106
106
 
107
107
  ## ask
@@ -109,7 +109,7 @@ cc cc-help --target <target>
109
109
  Recommend a slash-command workflow.
110
110
 
111
111
  ```text
112
- cc ask "problem"
112
+ cc-codeconductor ask "problem"
113
113
  ```
114
114
 
115
115
  ## goal
@@ -117,7 +117,7 @@ cc ask "problem"
117
117
  Plan a goal into dependent tasks.
118
118
 
119
119
  ```text
120
- cc goal "objective"
120
+ cc-codeconductor goal "objective"
121
121
  ```
122
122
 
123
123
  ## ingest
@@ -125,7 +125,7 @@ cc goal "objective"
125
125
  Ingest repository knowledge into the product graph.
126
126
 
127
127
  ```text
128
- cc ingest
128
+ cc-codeconductor ingest
129
129
  ```
130
130
 
131
131
  ## product
@@ -133,7 +133,7 @@ cc ingest
133
133
  Explore the product graph and memory.
134
134
 
135
135
  ```text
136
- cc product <subcommand>
136
+ cc-codeconductor product <subcommand>
137
137
  ```
138
138
 
139
139
  ## ccep
@@ -141,7 +141,7 @@ cc product <subcommand>
141
141
  Run CCEP contract workflows.
142
142
 
143
143
  ```text
144
- cc ccep <subcommand>
144
+ cc-codeconductor ccep <subcommand>
145
145
  ```
146
146
 
147
147
  ## openspec
@@ -149,7 +149,7 @@ cc ccep <subcommand>
149
149
  Run the OpenSpec delivery loop.
150
150
 
151
151
  ```text
152
- cc openspec <subcommand>
152
+ cc-codeconductor openspec <subcommand>
153
153
  ```
154
154
 
155
155
  ## scorecard
@@ -157,7 +157,7 @@ cc openspec <subcommand>
157
157
  Record and aggregate outcomes.
158
158
 
159
159
  ```text
160
- cc scorecard <subcommand>
160
+ cc-codeconductor scorecard <subcommand>
161
161
  ```
162
162
 
163
163
  ## orchestrate
@@ -165,7 +165,7 @@ cc scorecard <subcommand>
165
165
  Run goal execution orchestration.
166
166
 
167
167
  ```text
168
- cc orchestrate <subcommand>
168
+ cc-codeconductor orchestrate <subcommand>
169
169
  ```
170
170
 
171
171
  ## impact
@@ -173,7 +173,7 @@ cc orchestrate <subcommand>
173
173
  Analyze change impact.
174
174
 
175
175
  ```text
176
- cc impact [--files <paths>]
176
+ cc-codeconductor impact [--files <paths>]
177
177
  ```
178
178
 
179
179
  ## verify
@@ -181,7 +181,19 @@ cc impact [--files <paths>]
181
181
  Verify task completion with evidence.
182
182
 
183
183
  ```text
184
- cc verify --task <id>
184
+ cc-codeconductor verify --task <id>
185
+ ```
186
+
187
+ ## rdd
188
+
189
+ Capture and validate Receipt-Driven Development evidence.
190
+
191
+ ```text
192
+ cc-codeconductor rdd capture --task <id> [--phase red|green|review]
193
+ cc-codeconductor rdd verify --receipt <id>
194
+ cc-codeconductor rdd status [--task <id>]
195
+ cc-codeconductor rdd git-check
196
+ cc-codeconductor rdd install-hooks
185
197
  ```
186
198
 
187
199
  ## seo
@@ -189,7 +201,7 @@ cc verify --task <id>
189
201
  Audit SEO and generate llms.txt.
190
202
 
191
203
  ```text
192
- cc seo audit --url <url>
204
+ cc-codeconductor seo audit --url <url>
193
205
  ```
194
206
 
195
207
  ## debt-harvest
@@ -197,6 +209,6 @@ cc seo audit --url <url>
197
209
  Scan source files for deferred debt.
198
210
 
199
211
  ```text
200
- cc debt-harvest
212
+ cc-codeconductor debt-harvest
201
213
  ```
202
214
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-codeconductor",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "A multi-agent orchestration framework for AI-assisted software engineering workflows.",
5
5
  "keywords": [
6
6
  "ai",
@@ -472,4 +472,10 @@ When the orchestrator receives a GoalGraph, it delegates tasks in dependency ord
472
472
  ### Monorepo Workspaces
473
473
  - Focus operations strictly within the specified sub-package or workspace directory in the Task Card scope. Do not modify files or run commands outside this package directory.
474
474
 
475
+ ## Receipt integrity
476
+
477
+ - For any implementation, test, review, handoff, or delivery decision, capture or verify the current RDD receipt with `bun run dev rdd`.
478
+ - A receipt is valid only for its exact candidate. If code, tests, contracts, or runner configuration changed, repeat the affected verification.
479
+ - TDD and Mutation Testing retain their existing gates; RDD verifies that their observed evidence still belongs to the current candidate.
480
+
475
481
  <!-- CODECONDUCTOR:END managed -->
@@ -33,7 +33,8 @@ and wait for a human (CCEP `stopOnHighRisk`).
33
33
  Include: goal, Task Card status (no secret fields), files touched, test
34
34
  pass/fail (not log dumps), open questions, and the next `/cc-` command.
35
35
 
36
- Do not edit source or tests.
36
+ Link the Delivery Ledger and verification evidence when they exist; do not
37
+ repeat the original request or transcript. Do not edit source or tests.
37
38
 
38
39
  ---
39
40
 
@@ -0,0 +1,15 @@
1
+ ---
2
+ description: Create or resume an opt-in Delivery Ledger for substantial authorized work.
3
+ ---
4
+
5
+ # /cc-odd
6
+
7
+ ## Step 0 — CCEP Bootstrap
8
+
9
+ ```bash
10
+ bun run dev ccep parse --command odd "$ARGUMENTS"
11
+ bun run dev ccep resolve --command odd "$ARGUMENTS"
12
+ bun run dev ccep profile --command odd
13
+ ```
14
+
15
+ Create a ledger only after authorization and tracked coordination. Read-only and small work do not create state.
@@ -801,4 +801,10 @@ extending capabilities, apply `.claude/skills/find-skills/SKILL.md`.
801
801
  starting.
802
802
  - Delegate verbose operations to sub-agents.
803
803
 
804
+ ## Receipt integrity
805
+
806
+ - For any implementation, test, review, handoff, or delivery decision, capture or verify the current RDD receipt with `bun run dev rdd`.
807
+ - A receipt is valid only for its exact candidate. If code, tests, contracts, or runner configuration changed, repeat the affected verification.
808
+ - TDD and Mutation Testing retain their existing gates; RDD verifies that their observed evidence still belongs to the current candidate.
809
+
804
810
  <!-- CODECONDUCTOR:END managed -->
@@ -35,7 +35,8 @@ recommended `context_scope` (`isolated` | `continuation` | `full`) for the next
35
35
  session — derived from the Task Card status above, not invented, with a
36
36
  one-sentence justification.
37
37
 
38
- Do not edit source or tests.
38
+ Link the Delivery Ledger and verification evidence when they exist; do not
39
+ repeat the original request or transcript. Do not edit source or tests.
39
40
 
40
41
  ---
41
42
 
@@ -0,0 +1,15 @@
1
+ ---
2
+ description: Create or resume an opt-in Delivery Ledger for substantial authorized work.
3
+ ---
4
+
5
+ # /cc:odd
6
+
7
+ ## Step 0 — CCEP Bootstrap
8
+
9
+ ```bash
10
+ bun run dev ccep parse --command odd "$ARGUMENTS"
11
+ bun run dev ccep resolve --command odd "$ARGUMENTS"
12
+ bun run dev ccep profile --command odd
13
+ ```
14
+
15
+ Create a ledger only after authorization and tracked coordination. Read-only and small work do not create state.
@@ -1084,4 +1084,10 @@ Contract version:** v0.1.0 **Date:** [YYYY-MM-DD] **Evaluator:** [human name or
1084
1084
  starting.
1085
1085
  - Delegate verbose operations to sub-agents.
1086
1086
 
1087
+ ## Receipt integrity
1088
+
1089
+ - For any implementation, test, review, handoff, or delivery decision, capture or verify the current RDD receipt with `bun run dev rdd`.
1090
+ - A receipt is valid only for its exact candidate. If code, tests, contracts, or runner configuration changed, repeat the affected verification.
1091
+ - TDD and Mutation Testing retain their existing gates; RDD verifies that their observed evidence still belongs to the current candidate.
1092
+
1087
1093
  <!-- CODECONDUCTOR:END managed -->
@@ -34,7 +34,9 @@ errors instead of pasting dumps. If unresolved credential material remains, stop
34
34
  and wait for a human (CCEP `stopOnHighRisk`).
35
35
 
36
36
  Include: goal, Task Card status (no secret fields), files touched, test
37
- pass/fail (not log dumps), open questions, and the next `$cc-` command.
37
+ pass/fail (not log dumps), open questions, the next `$cc-` command, plus links
38
+ to the Delivery Ledger and verification evidence when they exist. Do not repeat
39
+ the original request or transcript.
38
40
 
39
41
  Do not edit source or tests.
40
42
 
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: cc-odd
3
+ description: Create or resume an opt-in Delivery Ledger for substantial authorized work.
4
+ ---
5
+
6
+ # odd
7
+
8
+ Invoke as `$cc-odd`. The user request follows the skill mention.
9
+
10
+ # /cc:odd
11
+
12
+ ## Step 0 — CCEP Bootstrap
13
+
14
+ ```bash
15
+ bun run dev ccep parse --command odd "$ARGUMENTS"
16
+ bun run dev ccep resolve --command odd "$ARGUMENTS"
17
+ bun run dev ccep profile --command odd
18
+ ```
19
+
20
+ Create a ledger only after authorization and tracked coordination. Read-only and small work do not create state.
21
+
22
+ When ODD has verification evidence, include its RDD receipt in the ledger
23
+ handoff. On resume, verify it against the workspace before relying on a prior
24
+ test or review result. If it is stale, keep the ledger and repeat only the
25
+ invalidated verification.
@@ -138,6 +138,10 @@ npx cc-codeconductor openspec archive <itemId>
138
138
 
139
139
  `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. `archive` requires all cards done (and review evidence when Global review is required) and moves `openspec/changes/<slug>` to `archive/`.
140
140
 
141
+ For test and implementation cards, `done` also requires a current RDD-backed
142
+ RED or GREEN receipt respectively. Do not reuse evidence after candidate files
143
+ change; capture and verify the matching receipt again.
144
+
141
145
  ---
142
146
 
143
147
  ## Step 5 — Model matrix and execute loop
@@ -131,6 +131,11 @@ Verdict is binary: PASS continues to the mutation gate; REJECT returns to the
131
131
 
132
132
  ## Stage 5 — Mutation gate (`mutation_testing`)
133
133
 
134
+ RDD complements this gate: capture the candidate receipt before Mutation Testing
135
+ and verify it after the runner restores production source. A survivor opens a
136
+ new tester/reviewer-approved test revision; it never makes an earlier receipt
137
+ valid again.
138
+
134
139
  Run the deterministic AST mutator shipped with this preset:
135
140
 
136
141
  ```bash
@@ -70,6 +70,14 @@ runner) — do not hand-edit JSON under `.codeconductor/evidence/`.
70
70
 
71
71
  Do not advance phases until that evidence exists.
72
72
 
73
+ ### Receipt-Driven Development
74
+
75
+ Run the verification runner with the matching `phase` (`red`, `green`, or
76
+ `refactor`). It records an RDD receipt for the complete candidate. Before a
77
+ handoff, phase transition, or final review, verify that receipt. A changed
78
+ source, test, contract, lockfile, or runner configuration invalidates it and
79
+ requires the affected phase to run again.
80
+
73
81
  ---
74
82
 
75
83
  ## Phase 1 — RED (Tester role)
@@ -459,6 +459,12 @@ docs | test **Risk:** low | medium | high **Scope:** [files or modules affected]
459
459
  **Agent:** [agent name] **Requires review:** yes | no
460
460
  ```
461
461
 
462
+ ## Receipt integrity
463
+
464
+ - For any implementation, test, review, handoff, or delivery decision, capture or verify the current RDD receipt with `bun run dev rdd`.
465
+ - A receipt is valid only for its exact candidate. If code, tests, contracts, or runner configuration changed, repeat the affected verification.
466
+ - TDD and Mutation Testing retain their existing gates; RDD verifies that their observed evidence still belongs to the current candidate.
467
+
462
468
  <!-- CODECONDUCTOR:END managed -->
463
469
 
464
470
  ---
@@ -30,7 +30,9 @@ errors instead of pasting dumps. If unresolved credential material remains, stop
30
30
  and wait for a human (CCEP `stopOnHighRisk`).
31
31
 
32
32
  Include: goal, Task Card status (no secret fields), files touched, test
33
- pass/fail (not log dumps), open questions, and the next `/cc:` command.
33
+ pass/fail (not log dumps), open questions, the next `/cc:` command, plus links
34
+ to the Delivery Ledger and verification evidence when they exist. Do not repeat
35
+ the original request or transcript.
34
36
 
35
37
  Do not edit source or tests.
36
38
 
@@ -0,0 +1,20 @@
1
+ ---
2
+ description: Create or resume an opt-in Delivery Ledger for substantial authorized work.
3
+ ---
4
+
5
+ # /cc:odd
6
+
7
+ ## Step 0 — CCEP Bootstrap
8
+
9
+ ```bash
10
+ bun run dev ccep parse --command odd "$ARGUMENTS"
11
+ bun run dev ccep resolve --command odd "$ARGUMENTS"
12
+ bun run dev ccep profile --command odd
13
+ ```
14
+
15
+ Create a ledger only after authorization and tracked coordination. Read-only and small work do not create state.
16
+
17
+ When ODD has verification evidence, include its RDD receipt in the ledger
18
+ handoff. On resume, verify it against the workspace before relying on a prior
19
+ test or review result. If it is stale, keep the ledger and repeat only the
20
+ invalidated verification.
@@ -135,6 +135,10 @@ npx cc-codeconductor openspec archive <itemId>
135
135
 
136
136
  `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. `archive` requires all cards done (and review evidence when Global review is required) and moves `openspec/changes/<slug>` to `archive/`.
137
137
 
138
+ For test and implementation cards, `done` also requires a current RDD-backed
139
+ RED or GREEN receipt respectively. Do not reuse evidence after candidate files
140
+ change; capture and verify the matching receipt again.
141
+
138
142
  ---
139
143
 
140
144
  ## Step 5 — Model matrix and execute loop
@@ -129,6 +129,11 @@ Verdict is binary: PASS continues to the mutation gate; REJECT returns to the
129
129
 
130
130
  ## Stage 5 — Mutation gate (`mutation_testing`)
131
131
 
132
+ RDD complements this gate: capture the candidate receipt before Mutation Testing
133
+ and verify it after the runner restores production source. A survivor opens a
134
+ new tester/reviewer-approved test revision; it never makes an earlier receipt
135
+ valid again.
136
+
132
137
  Run the deterministic AST mutator shipped with this preset:
133
138
 
134
139
  ```bash
@@ -68,6 +68,14 @@ runner) — do not hand-edit JSON under `.codeconductor/evidence/`.
68
68
 
69
69
  Do not advance phases until that evidence exists.
70
70
 
71
+ ### Receipt-Driven Development
72
+
73
+ Run the verification runner with the matching `phase` (`red`, `green`, or
74
+ `refactor`). It records an RDD receipt for the complete candidate. Before a
75
+ handoff, phase transition, or final review, verify that receipt. A changed
76
+ source, test, contract, lockfile, or runner configuration invalidates it and
77
+ requires the affected phase to run again.
78
+
71
79
  ---
72
80
 
73
81
  ## Phase 1 — RED (Tester role)
@@ -35,4 +35,10 @@ intent to the right slash command.
35
35
  - Do not skip the Reviewer step for medium- or high-risk changes.
36
36
  - Do not store secrets in any file loaded by Gemini CLI.
37
37
 
38
+ ## Receipt integrity
39
+
40
+ - For any implementation, test, review, handoff, or delivery decision, capture or verify the current RDD receipt with `bun run dev rdd`.
41
+ - A receipt is valid only for its exact candidate. If code, tests, contracts, or runner configuration changed, repeat the affected verification.
42
+ - TDD and Mutation Testing retain their existing gates; RDD verifies that their observed evidence still belongs to the current candidate.
43
+
38
44
  <!-- CODECONDUCTOR:END managed -->
@@ -28,7 +28,9 @@ errors instead of pasting dumps. If unresolved credential material remains, stop
28
28
  and wait for a human (CCEP `stopOnHighRisk`).
29
29
 
30
30
  Include: goal, Task Card status (no secret fields), files touched, test
31
- pass/fail (not log dumps), open questions, and the next `/cc:` command.
31
+ pass/fail (not log dumps), open questions, the next `/cc:` command, plus links
32
+ to the Delivery Ledger and verification evidence when they exist. Do not repeat
33
+ the original request or transcript.
32
34
 
33
35
  Do not edit source or tests.
34
36
 
@@ -0,0 +1,20 @@
1
+ description = "Create or resume an opt-in Delivery Ledger for substantial authorized work."
2
+
3
+ prompt = """
4
+ # /cc:odd
5
+
6
+ ## Step 0 — CCEP Bootstrap
7
+
8
+ ```bash
9
+ bun run dev ccep parse --command odd "{{args}}"
10
+ bun run dev ccep resolve --command odd "{{args}}"
11
+ bun run dev ccep profile --command odd
12
+ ```
13
+
14
+ Create a ledger only after authorization and tracked coordination. Read-only and small work do not create state.
15
+
16
+ When ODD has verification evidence, include its RDD receipt in the ledger
17
+ handoff. On resume, verify it against the workspace before relying on a prior
18
+ test or review result. If it is stale, keep the ledger and repeat only the
19
+ invalidated verification.
20
+ """
@@ -132,6 +132,10 @@ npx cc-codeconductor openspec archive <itemId>
132
132
 
133
133
  `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. `archive` requires all cards done (and review evidence when Global review is required) and moves `openspec/changes/<slug>` to `archive/`.
134
134
 
135
+ For test and implementation cards, `done` also requires a current RDD-backed
136
+ RED or GREEN receipt respectively. Do not reuse evidence after candidate files
137
+ change; capture and verify the matching receipt again.
138
+
135
139
  ---
136
140
 
137
141
  ## Step 5 — Model matrix and execute loop
@@ -125,6 +125,11 @@ Verdict is binary: PASS continues to the mutation gate; REJECT returns to the
125
125
 
126
126
  ## Stage 5 — Mutation gate (`mutation_testing`)
127
127
 
128
+ RDD complements this gate: capture the candidate receipt before Mutation Testing
129
+ and verify it after the runner restores production source. A survivor opens a
130
+ new tester/reviewer-approved test revision; it never makes an earlier receipt
131
+ valid again.
132
+
128
133
  Run the deterministic AST mutator shipped with this preset:
129
134
 
130
135
  ```bash
@@ -64,6 +64,14 @@ runner) — do not hand-edit JSON under `.codeconductor/evidence/`.
64
64
 
65
65
  Do not advance phases until that evidence exists.
66
66
 
67
+ ### Receipt-Driven Development
68
+
69
+ Run the verification runner with the matching `phase` (`red`, `green`, or
70
+ `refactor`). It records an RDD receipt for the complete candidate. Before a
71
+ handoff, phase transition, or final review, verify that receipt. A changed
72
+ source, test, contract, lockfile, or runner configuration invalidates it and
73
+ requires the affected phase to run again.
74
+
67
75
  ---
68
76
 
69
77
  ## Phase 1 — RED (Tester role)
@@ -222,3 +222,5 @@ Invoke via `/cc-feature`, `/cc-fix`, `/cc-tdd-cycle`, or the orchestrator.
222
222
  Do not invoke other agents. Invoke skill `testing-tdd`.
223
223
  Deliverable is incomplete without a passing suite and runner TDD evidence when
224
224
  TDD is required. Scorecard: `bun run dev scorecard create --from-diff`.
225
+ Before handing work to review or delivery, verify the current RDD receipt. Do
226
+ not rely on a test result if its candidate has changed.
@@ -288,3 +288,5 @@ Invoke skill `evaluation` and run `scorecard record` with agent `reviewer`, mode
288
288
  Invoke via `/cc-review` or the orchestrator. Do not invoke other agents.
289
289
  Invoke skill `evaluation`. Deliverable is incomplete without
290
290
  `scorecard create --from-diff` and a recorded PASS|REVISE|REJECT.
291
+ An approval applies only to the RDD candidate receipt supplied with the review;
292
+ request a fresh verification when it is stale.
@@ -291,3 +291,5 @@ and confirmed failing; list the failing test paths in `artifacts` so the
291
291
  Invoke via `/cc-tdd-cycle`, `/cc-feature`, or the orchestrator (test before
292
292
  implement). Do not invoke other agents. Invoke skill `testing-tdd`.
293
293
  Deliverable is incomplete without `captureTddSuiteEvidence` when TDD is required.
294
+ Record the matching RDD receipt and report it with the test evidence. A changed
295
+ candidate requires a new verification before handoff.
@@ -31,7 +31,8 @@ and wait for a human (CCEP `stopOnHighRisk`).
31
31
  Include: goal, Task Card status (no secret fields), files touched, test
32
32
  pass/fail (not log dumps), open questions, and the next `/cc-` command.
33
33
 
34
- Do not edit source or tests.
34
+ Link the Delivery Ledger and verification evidence when they exist; do not
35
+ repeat the original request or transcript. Do not edit source or tests.
35
36
 
36
37
  ---
37
38
 
@@ -0,0 +1,15 @@
1
+ ---
2
+ description: Create or resume an opt-in Delivery Ledger for substantial authorized work.
3
+ ---
4
+
5
+ # /cc-odd
6
+
7
+ ## Step 0 — CCEP Bootstrap
8
+
9
+ ```bash
10
+ bun run dev ccep parse --command odd "$ARGUMENTS"
11
+ bun run dev ccep resolve --command odd "$ARGUMENTS"
12
+ bun run dev ccep profile --command odd
13
+ ```
14
+
15
+ Create a ledger only after authorization and tracked coordination. Read-only and small work do not create state.
@@ -40,4 +40,10 @@ act as that role for the rest of the step.
40
40
  - Do not skip the Reviewer step for medium- or high-risk changes.
41
41
  - Do not store secrets in any file loaded by Pi.
42
42
 
43
+ ## Receipt integrity
44
+
45
+ - For any implementation, test, review, handoff, or delivery decision, capture or verify the current RDD receipt with `bun run dev rdd`.
46
+ - A receipt is valid only for its exact candidate. If code, tests, contracts, or runner configuration changed, repeat the affected verification.
47
+ - TDD and Mutation Testing retain their existing gates; RDD verifies that their observed evidence still belongs to the current candidate.
48
+
43
49
  <!-- CODECONDUCTOR:END managed -->
@@ -2,6 +2,7 @@ target: pi
2
2
  invocation: hyphen
3
3
  commandFormat: markdown
4
4
  contextFile: AGENTS.md
5
+ # ODD is available through `bun run dev odd`; Pi installs no slash-prompt files.
5
6
  # No Task tool or subagents (deliberate design choice, per pi's own docs) —
6
7
  # same style as opencode and agy, which share the reason.
7
8
  subagentInvocationStyle: invoke-with-context