code-ai-installer 4.0.1-b → 4.0.1-c
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/LICENSE +1 -1
- package/README.md +5 -5
- package/dist/catalog.js +1 -1
- package/dist/contentTransformer.d.ts +1 -1
- package/dist/contentTransformer.js +39 -0
- package/dist/index.js +10 -5
- package/dist/mcp/cli.js +4 -4
- package/dist/mcp/scorecard.d.ts +2 -2
- package/dist/mcp/task_state.d.ts +2 -2
- package/dist/mcp/tools/advance_gate.js +1 -1
- package/dist/mcp/tools/classify_gate.d.ts +2 -2
- package/dist/mcp/tools/classify_gate.js +2 -2
- package/dist/mcp/tools/load_role.d.ts +2 -2
- package/dist/mcp/tools/load_role.js +2 -2
- package/dist/mcp/tools/report_exception.d.ts +3 -3
- package/dist/mcp/tools/report_exception.js +4 -4
- package/dist/mcp/tools/request_decision.d.ts +3 -3
- package/dist/mcp/tools/request_decision.js +5 -5
- package/dist/mcp/tools/review_proposal.d.ts +1 -1
- package/dist/mcp/tools/review_proposal.js +6 -6
- package/dist/mcp/tools/sign_off.d.ts +2 -2
- package/dist/mcp/tools/sign_off.js +7 -7
- package/dist/mcp/tools/verify_claim.d.ts +1 -1
- package/dist/mcp/tools/verify_claim.js +1 -1
- package/dist/mcp_setup.d.ts +84 -31
- package/dist/mcp_setup.js +182 -66
- package/dist/platforms/adapters.js +54 -19
- package/dist/shared/frontmatter.js +1 -1
- package/dist/shared/persona.d.ts +1 -1
- package/dist/shared/persona.js +1 -1
- package/dist/shared/pipeline.d.ts +10 -10
- package/dist/shared/pipeline.js +7 -7
- package/dist/shared/tools.d.ts +15 -15
- package/dist/shared/tools.js +3 -3
- package/dist/shared/vocabulary.d.ts +4 -4
- package/dist/shared/vocabulary.js +4 -4
- package/dist/types.d.ts +1 -1
- package/domains/analytics/.agents/workflows/analytics-pipeline-rules.md +13 -3
- package/domains/analytics/.agents/workflows/analyze.md +1 -0
- package/domains/analytics/.agents/workflows/quick-insight.md +1 -0
- package/domains/analytics/locales/en/.agents/workflows/analytics-pipeline-rules.md +13 -3
- package/domains/analytics/locales/en/.agents/workflows/analyze.md +1 -0
- package/domains/analytics/locales/en/.agents/workflows/quick-insight.md +1 -0
- package/domains/analytics/locales/en/agents/interviewer.md +2 -1
- package/domains/analytics/locales/en/agents/layouter.md +2 -1
- package/domains/analytics/locales/en/agents/mediator.md +2 -1
- package/domains/analytics/locales/en/agents/researcher.md +2 -1
- package/domains/analytics/locales/en/agents/strategist.md +2 -1
- package/domains/analytics/pipeline.yaml +10 -10
- package/domains/content/.agents/skills/content-release-gate/SKILL.md +3 -5
- package/domains/content/.agents/workflows/content-pipeline-rules.md +14 -11
- package/domains/content/.agents/workflows/edit-content.md +0 -1
- package/domains/content/.agents/workflows/quick-post.md +0 -1
- package/domains/content/.agents/workflows/start-content.md +0 -1
- package/domains/content/agents/conductor.md +1 -2
- package/domains/content/locales/en/.agents/skills/content-release-gate/SKILL.md +3 -5
- package/domains/content/locales/en/.agents/workflows/content-pipeline-rules.md +14 -11
- package/domains/content/locales/en/.agents/workflows/edit-content.md +0 -1
- package/domains/content/locales/en/.agents/workflows/quick-post.md +0 -1
- package/domains/content/locales/en/.agents/workflows/start-content.md +0 -1
- package/domains/content/locales/en/agents/conductor.md +1 -2
- package/domains/content/pipeline.yaml +8 -8
- package/domains/development/.agents/skills/handoff/SKILL.md +276 -276
- package/domains/development/.agents/skills/lava-flow-legacy-detection/SKILL.md +197 -197
- package/domains/development/.agents/skills/mcp-integration/SKILL.md +211 -211
- package/domains/development/.agents/skills/qa-test-data-management/SKILL.md +250 -250
- package/domains/development/.agents/workflows/bugfix.md +16 -82
- package/domains/development/.agents/workflows/hotfix.md +16 -66
- package/domains/development/.agents/workflows/pipeline-rules.md +49 -132
- package/domains/development/.agents/workflows/start-task.md +17 -121
- package/domains/development/AGENTS.md +8 -3
- package/domains/development/agents/architect.md +247 -247
- package/domains/development/agents/conductor.md +363 -363
- package/domains/development/agents/devops.md +297 -297
- package/domains/development/agents/reviewer.md +293 -293
- package/domains/development/agents/senior_full_stack.md +295 -295
- package/domains/development/agents/tester.md +395 -395
- package/domains/development/locales/en/.agents/skills/handoff/SKILL.md +276 -276
- package/domains/development/locales/en/.agents/skills/lava-flow-legacy-detection/SKILL.md +197 -197
- package/domains/development/locales/en/.agents/skills/mcp-integration/SKILL.md +211 -211
- package/domains/development/locales/en/.agents/skills/qa-test-data-management/SKILL.md +250 -250
- package/domains/development/locales/en/.agents/workflows/bugfix.md +16 -82
- package/domains/development/locales/en/.agents/workflows/hotfix.md +15 -65
- package/domains/development/locales/en/.agents/workflows/pipeline-rules.md +48 -131
- package/domains/development/locales/en/.agents/workflows/start-task.md +17 -121
- package/domains/development/locales/en/AGENTS.md +15 -0
- package/domains/development/locales/en/agents/architect.md +247 -247
- package/domains/development/locales/en/agents/conductor.md +363 -363
- package/domains/development/locales/en/agents/devops.md +297 -297
- package/domains/development/locales/en/agents/reviewer.md +293 -293
- package/domains/development/locales/en/agents/senior_full_stack.md +295 -295
- package/domains/development/locales/en/agents/tester.md +395 -395
- package/domains/development/locales/en/prompt-examples.md +34 -120
- package/domains/development/pipeline.yaml +150 -135
- package/domains/development/prompt-examples.md +33 -119
- package/domains/product/.agents/workflows/product-pipeline-rules.md +13 -2
- package/domains/product/.agents/workflows/quick-pm.md +1 -1
- package/domains/product/.agents/workflows/shape-prioritize.md +1 -0
- package/domains/product/.agents/workflows/ship-right-thing.md +1 -0
- package/domains/product/.agents/workflows/spec.md +1 -0
- package/domains/product/agents/tech_lead.md +1 -1
- package/domains/product/locales/en/.agents/workflows/product-pipeline-rules.md +13 -2
- package/domains/product/locales/en/.agents/workflows/quick-pm.md +1 -1
- package/domains/product/locales/en/.agents/workflows/shape-prioritize.md +1 -0
- package/domains/product/locales/en/.agents/workflows/ship-right-thing.md +1 -0
- package/domains/product/locales/en/.agents/workflows/spec.md +1 -0
- package/domains/product/locales/en/agents/conductor.md +2 -2
- package/domains/product/locales/en/agents/data_analyst.md +2 -1
- package/domains/product/locales/en/agents/designer.md +2 -1
- package/domains/product/locales/en/agents/discovery.md +2 -1
- package/domains/product/locales/en/agents/layouter.md +2 -1
- package/domains/product/locales/en/agents/mediator.md +2 -1
- package/domains/product/locales/en/agents/pm.md +2 -1
- package/domains/product/locales/en/agents/product_strategist.md +2 -1
- package/domains/product/locales/en/agents/tech_lead.md +3 -2
- package/domains/product/locales/en/agents/ux_designer.md +2 -1
- package/domains/product/pipeline.yaml +12 -12
- package/package.json +5 -5
- package/domains/analytics/CONTEXT.md +0 -25
- package/domains/analytics/locales/en/CONTEXT.md +0 -25
- package/domains/content/CONTEXT.md +0 -19
- package/domains/content/locales/en/CONTEXT.md +0 -19
- package/domains/development/.agents/workflows/auto-restart-containers.md +0 -56
- package/domains/development/CONTEXT.md +0 -62
- package/domains/development/locales/en/.agents/workflows/auto-restart-containers.md +0 -24
- package/domains/development/locales/en/CONTEXT.md +0 -62
- package/domains/product/CONTEXT.md +0 -40
- package/domains/product/locales/en/CONTEXT.md +0 -40
|
@@ -1,152 +1,66 @@
|
|
|
1
|
-
# Prompt
|
|
1
|
+
# Prompt examples — Development domain
|
|
2
2
|
|
|
3
|
-
> Copy the
|
|
3
|
+
> Copy the prompt you need, fill in your data, send it to the chat.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Choosing the mode
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
| Task | Command |
|
|
8
|
+
|------|---------|
|
|
9
|
+
| New feature / refactor / new API or screen | `/start-task` — Full (PM → UX → ARCH → DEV → REV → OPS → TEST → RG) |
|
|
10
|
+
| Bug in existing functionality (> 2 files or changes an API contract) | `/bugfix` (DEV → REV → TEST) |
|
|
11
|
+
| Small fix, 1–2 files, blast radius ≈ 0 | `/hotfix` (DEV → RG) |
|
|
12
|
+
| Unsure about the mode | describe the task — Conductor classifies it via the Decision Tree |
|
|
8
13
|
|
|
9
|
-
|
|
10
|
-
```
|
|
11
|
-
@AGENTS.md Task:
|
|
12
|
-
Implement [feature description].
|
|
13
|
-
Full pipeline!
|
|
14
|
-
|
|
15
|
-
SESSION RULES:
|
|
16
|
-
1. Each gate: view_file agents/<role>.md → view_file on EVERY SKILL.md from the protocol skills → deliverable → notify_user → wait for "Approved"
|
|
17
|
-
2. Skipping a gate or skill = BLOCKER
|
|
18
|
-
3. Do not proceed without Approved
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### Refactoring
|
|
22
|
-
```
|
|
23
|
-
@AGENTS.md Task:
|
|
24
|
-
Refactor [description: what exactly we're refactoring and why].
|
|
25
|
-
Full pipeline!
|
|
26
|
-
|
|
27
|
-
SESSION RULES:
|
|
28
|
-
1. Each gate: view_file agents/<role>.md → view_file on EVERY SKILL.md from the protocol skills → deliverable → notify_user → wait for "Approved"
|
|
29
|
-
2. Skipping a gate or skill = BLOCKER
|
|
30
|
-
3. Do not proceed without Approved
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
---
|
|
14
|
+
## Full Pipeline — `/start-task`
|
|
34
15
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
### Standard Bug
|
|
38
|
-
```
|
|
39
|
-
@AGENTS.md Task:
|
|
40
|
-
Fix bug: [bug description, reproduction steps, expected vs actual behavior].
|
|
41
|
-
Bugfix pipeline!
|
|
42
|
-
|
|
43
|
-
SESSION RULES:
|
|
44
|
-
1. Each gate: view_file agents/<role>.md → view_file on EVERY SKILL.md from the protocol skills → deliverable → notify_user → wait for "Approved"
|
|
45
|
-
2. Skipping a gate or skill = BLOCKER
|
|
46
|
-
3. Do not proceed without Approved
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### Bug with File References
|
|
16
|
+
### New feature
|
|
50
17
|
```
|
|
51
|
-
|
|
52
|
-
@[path/to/file1] @[path/to/file2]
|
|
53
|
-
Bug: [description]. Root cause likely in the referenced files.
|
|
54
|
-
Bugfix pipeline!
|
|
55
|
-
|
|
56
|
-
SESSION RULES:
|
|
57
|
-
1. Each gate: view_file agents/<role>.md → view_file on EVERY SKILL.md → deliverable → notify_user → wait for "Approved"
|
|
58
|
-
2. Skipping a gate = BLOCKER
|
|
18
|
+
/start-task Implement [feature description]. Acceptance criteria: [what must work].
|
|
59
19
|
```
|
|
60
20
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
## 🟡 Hotfix (`/hotfix`) — minor fix (2 gates)
|
|
64
|
-
|
|
65
|
-
### Typo / CSS / Single Line
|
|
21
|
+
### Refactor
|
|
66
22
|
```
|
|
67
|
-
|
|
68
|
-
Hotfix: [fix description, e.g.: "fix typo in heading" or "change button color from #333 to #555"].
|
|
69
|
-
Hotfix pipeline!
|
|
70
|
-
|
|
71
|
-
SESSION RULES:
|
|
72
|
-
1. Each gate: view_file agents/<role>.md → view_file on EVERY SKILL.md → deliverable → notify_user → wait for "Approved"
|
|
73
|
-
2. Skipping a gate = BLOCKER
|
|
23
|
+
/start-task Refactor [what exactly and why]. Target state: [...]. Do not touch: [...].
|
|
74
24
|
```
|
|
75
25
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
## 🎨 Design Only (Google Stitch)
|
|
79
|
-
|
|
80
|
-
### UI Screen Generation
|
|
26
|
+
### Feature with UI
|
|
81
27
|
```
|
|
82
|
-
|
|
83
|
-
Create UI screens for [description: which screens, which application].
|
|
84
|
-
Use Google Stitch via $stitch-prompting-guide (workflow) + $stitch-api-reference (MCP API).
|
|
85
|
-
|
|
86
|
-
SESSION RULES:
|
|
87
|
-
1. view_file agents/ux_ui_designer.md → view_file $stitch-prompting-guide → deliverable → notify_user → wait for "Approved"
|
|
28
|
+
/start-task [screen/component description]. UX: [interface requirements, a11y]. @[path to the mockup or current component]
|
|
88
29
|
```
|
|
89
30
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
## 📄 Documentation Only
|
|
93
|
-
|
|
94
|
-
### Document Adaptation / Creation
|
|
31
|
+
## Bugfix — `/bugfix`
|
|
95
32
|
```
|
|
96
|
-
|
|
97
|
-
[Documentation task description, e.g.: "adapt files X, Y, Z for global use"].
|
|
98
|
-
Bugfix pipeline! (or Full pipeline — depending on complexity)
|
|
99
|
-
|
|
100
|
-
SESSION RULES:
|
|
101
|
-
1. Each gate: view_file agents/<role>.md → view_file on EVERY SKILL.md → deliverable → notify_user → wait for "Approved"
|
|
102
|
-
2. Skipping a gate = BLOCKER
|
|
33
|
+
/bugfix Bug: [description]. Repro steps: [...]. Expected vs actual: [...]. @[path to the file — if you know where]
|
|
103
34
|
```
|
|
104
35
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
## ⚡ Gate Transitions (User Responses)
|
|
108
|
-
|
|
109
|
-
### Approve and Move to Next Gate
|
|
36
|
+
## Hotfix — `/hotfix`
|
|
110
37
|
```
|
|
111
|
-
|
|
38
|
+
/hotfix [small fix: typo in a heading / button color #333 → #555 / one line].
|
|
112
39
|
```
|
|
113
40
|
|
|
114
|
-
|
|
115
|
-
```
|
|
116
|
-
Approved. TEST gate. Wix.
|
|
117
|
-
```
|
|
41
|
+
## How the work flows
|
|
118
42
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
```
|
|
43
|
+
- The pipeline is executed by the **code-ai MCP** machine. On every gate: `current_gate` → `classify_gate` → role via `load_role` + required skills via `get_skill` → deliverable + `submit_artifact` → `sign_off` → `advance_gate`.
|
|
44
|
+
- **Silent-by-default:** you are asked only on judgment gates — **PM / UX / ARCH / RG** — and on a `fork` escalation (via `request_decision`). DEV/REV/OPS/TEST pass on their own; OPS/TEST are signed after a green auto-check (`build` / `run_tests`).
|
|
45
|
+
- **Fix Cycle:** a red auto-check or a review/test FAIL → rollback to DEV. 2 rollbacks in a row across the DEV/OPS/REV/TEST band → circuit breaker: an architect audit in a fresh session.
|
|
123
46
|
|
|
124
|
-
|
|
47
|
+
> Full rules — in `pipeline-rules.md`.
|
|
125
48
|
|
|
126
|
-
##
|
|
49
|
+
## Gate replies
|
|
127
50
|
|
|
128
|
-
### Check Status
|
|
129
51
|
```
|
|
130
|
-
|
|
52
|
+
Approved
|
|
131
53
|
```
|
|
132
|
-
|
|
133
|
-
### Run a Specific Agent
|
|
134
54
|
```
|
|
135
|
-
|
|
55
|
+
Approved. [clarification / condition]
|
|
136
56
|
```
|
|
137
|
-
|
|
138
|
-
### Update Version
|
|
139
57
|
```
|
|
140
|
-
|
|
58
|
+
NO-GO. Fix: [list of issues]. Return to gate [PM/UX/ARCH/...].
|
|
141
59
|
```
|
|
142
60
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
## 📝 Tips for Writing Prompts
|
|
61
|
+
## Tips
|
|
146
62
|
|
|
147
|
-
1. **
|
|
148
|
-
2. **Reference files
|
|
149
|
-
3. **
|
|
150
|
-
4. **
|
|
151
|
-
5. **Write "Approved" explicitly** — without this word the agent will not proceed to the next gate
|
|
152
|
-
6. **Be specific** — the more precise the description, the better the result
|
|
63
|
+
1. **Name the mode** explicitly (`/start-task` / `/bugfix` / `/hotfix`) or let the Conductor classify it.
|
|
64
|
+
2. **Reference files via `@path`** — the agent sees the context right away.
|
|
65
|
+
3. **The more precise the description and acceptance criteria** — the fewer Fix Cycle iterations.
|
|
66
|
+
4. **On judgment gates** (PM/UX/ARCH/RG) the decision is yours; the machine doesn't pull you into routine.
|
|
@@ -1,135 +1,150 @@
|
|
|
1
|
-
# pipeline.yaml — development domain state machine
|
|
2
|
-
#
|
|
3
|
-
# Source of truth for code-ai-mcp advance_gate. Schema:
|
|
4
|
-
# the shared types module (src/shared) → PipelineYaml zod.
|
|
5
|
-
#
|
|
6
|
-
# 3 modes match
|
|
7
|
-
# CONDUCTOR isn't a GateName — it's the orchestrator role that owns mode-routing
|
|
8
|
-
# (classified outside this state machine via the conductor agent).
|
|
9
|
-
#
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
#
|
|
16
|
-
#
|
|
17
|
-
#
|
|
18
|
-
#
|
|
19
|
-
#
|
|
20
|
-
#
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
- gate:
|
|
37
|
-
produced_by: [
|
|
38
|
-
signs_off: [
|
|
39
|
-
sign_off_policy:
|
|
40
|
-
classify_required: true
|
|
41
|
-
retryable: true
|
|
42
|
-
- gate:
|
|
43
|
-
produced_by: [
|
|
44
|
-
signs_off: [
|
|
45
|
-
sign_off_policy:
|
|
46
|
-
classify_required: true
|
|
47
|
-
retryable: true
|
|
48
|
-
- gate:
|
|
49
|
-
produced_by: [
|
|
50
|
-
signs_off: [
|
|
51
|
-
sign_off_policy:
|
|
52
|
-
classify_required: true
|
|
53
|
-
retryable: true
|
|
54
|
-
- gate:
|
|
55
|
-
produced_by: [
|
|
56
|
-
signs_off: [
|
|
57
|
-
sign_off_policy:
|
|
58
|
-
classify_required: true
|
|
59
|
-
retryable: true
|
|
60
|
-
- gate:
|
|
61
|
-
produced_by: [
|
|
62
|
-
signs_off: [
|
|
63
|
-
sign_off_policy:
|
|
64
|
-
classify_required: true
|
|
65
|
-
retryable: true
|
|
66
|
-
- gate:
|
|
67
|
-
produced_by: [
|
|
68
|
-
signs_off: [
|
|
69
|
-
sign_off_policy:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
classify_required: true
|
|
110
|
-
retryable: false
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
1
|
+
# pipeline.yaml — development domain state machine
|
|
2
|
+
#
|
|
3
|
+
# Source of truth for code-ai-mcp advance_gate. Schema:
|
|
4
|
+
# the shared types module (src/shared) → PipelineYaml zod.
|
|
5
|
+
#
|
|
6
|
+
# 3 modes match domains/development/.agents/workflows/{pipeline-rules,bugfix,hotfix}.md.
|
|
7
|
+
# CONDUCTOR isn't a GateName — it's the orchestrator role that owns mode-routing
|
|
8
|
+
# (classified outside this state machine via the conductor agent).
|
|
9
|
+
#
|
|
10
|
+
# SIGN-OFF MODEL (reduced intervention, silent-by-default):
|
|
11
|
+
# PM / UX / ARCH / RG → sign_off_policy=user. The judgment gates the user owns:
|
|
12
|
+
# what/why we build (PM/UX/ARCH) and the final release (RG).
|
|
13
|
+
# DEV / REV → sign_off_policy=either. Claude signs as 'mcp' from agent judgment
|
|
14
|
+
# (no deterministic tool — DEV is authoring, REV is a review judgment). the user is
|
|
15
|
+
# not pulled in routinely; only via request_decision for a genuine fork.
|
|
16
|
+
# OPS / TEST → sign_off_policy=either WITH auto_check. Claude runs the named MCP
|
|
17
|
+
# check tool (build / run_tests); green → signs 'mcp' silently; red → classify
|
|
18
|
+
# + rollback to DEV (Fix Cycle). the user sees these only if escalated.
|
|
19
|
+
#
|
|
20
|
+
# RED / ROLLBACK / CIRCUIT BREAKER: a failure on DEV/OPS/REV/TEST rolls back to DEV
|
|
21
|
+
# (Fix Cycle), NOT to the user. advance_gate counts each rollback-to-DEV; on the 2nd
|
|
22
|
+
# (dev_rollback_threshold) the breaker REFUSES and routes to an architect deep audit
|
|
23
|
+
# instead — expected to run in a FRESH Claude Code session (clean-context principle;
|
|
24
|
+
# the same Claude that hit the wall reproduces the blind spot that caused the
|
|
25
|
+
# rollback). Provenance: wing_codex_product/decisions 2026-05-23 "SUBAGENTS FOR
|
|
26
|
+
# CONSISTENCY CHECKS". Reset on rg_pass or a new ARCH ADR (record_decision).
|
|
27
|
+
|
|
28
|
+
schema_version: 1
|
|
29
|
+
domain: development
|
|
30
|
+
default_mode: full
|
|
31
|
+
default_signer: user
|
|
32
|
+
|
|
33
|
+
modes:
|
|
34
|
+
- mode: full
|
|
35
|
+
gates:
|
|
36
|
+
- gate: PM
|
|
37
|
+
produced_by: [product_manager]
|
|
38
|
+
signs_off: [product_manager, conductor]
|
|
39
|
+
sign_off_policy: user
|
|
40
|
+
classify_required: true
|
|
41
|
+
retryable: true
|
|
42
|
+
- gate: UX
|
|
43
|
+
produced_by: [ux_ui_designer]
|
|
44
|
+
signs_off: [ux_ui_designer, conductor]
|
|
45
|
+
sign_off_policy: user
|
|
46
|
+
classify_required: true
|
|
47
|
+
retryable: true
|
|
48
|
+
- gate: ARCH
|
|
49
|
+
produced_by: [architect]
|
|
50
|
+
signs_off: [architect, conductor]
|
|
51
|
+
sign_off_policy: user
|
|
52
|
+
classify_required: true
|
|
53
|
+
retryable: true
|
|
54
|
+
- gate: DEV
|
|
55
|
+
produced_by: [senior_full_stack]
|
|
56
|
+
signs_off: [senior_full_stack, conductor]
|
|
57
|
+
sign_off_policy: either
|
|
58
|
+
classify_required: true
|
|
59
|
+
retryable: true
|
|
60
|
+
- gate: REV
|
|
61
|
+
produced_by: [reviewer]
|
|
62
|
+
signs_off: [reviewer, conductor]
|
|
63
|
+
sign_off_policy: either
|
|
64
|
+
classify_required: true
|
|
65
|
+
retryable: true
|
|
66
|
+
- gate: OPS
|
|
67
|
+
produced_by: [devops]
|
|
68
|
+
signs_off: [devops, conductor]
|
|
69
|
+
sign_off_policy: either
|
|
70
|
+
auto_check:
|
|
71
|
+
tool: build
|
|
72
|
+
classify_required: true
|
|
73
|
+
retryable: true
|
|
74
|
+
- gate: TEST
|
|
75
|
+
produced_by: [tester]
|
|
76
|
+
signs_off: [tester, conductor]
|
|
77
|
+
sign_off_policy: either
|
|
78
|
+
auto_check:
|
|
79
|
+
tool: run_tests
|
|
80
|
+
classify_required: true
|
|
81
|
+
retryable: true
|
|
82
|
+
- gate: RG
|
|
83
|
+
produced_by: [conductor]
|
|
84
|
+
signs_off: [conductor]
|
|
85
|
+
sign_off_policy: user
|
|
86
|
+
classify_required: true
|
|
87
|
+
retryable: false
|
|
88
|
+
|
|
89
|
+
- mode: bugfix
|
|
90
|
+
gates:
|
|
91
|
+
- gate: DEV
|
|
92
|
+
produced_by: [senior_full_stack]
|
|
93
|
+
signs_off: [senior_full_stack]
|
|
94
|
+
sign_off_policy: either
|
|
95
|
+
classify_required: true
|
|
96
|
+
retryable: true
|
|
97
|
+
- gate: REV
|
|
98
|
+
produced_by: [reviewer]
|
|
99
|
+
signs_off: [reviewer]
|
|
100
|
+
sign_off_policy: either
|
|
101
|
+
classify_required: true
|
|
102
|
+
retryable: true
|
|
103
|
+
- gate: TEST
|
|
104
|
+
produced_by: [tester]
|
|
105
|
+
signs_off: [tester]
|
|
106
|
+
sign_off_policy: either
|
|
107
|
+
auto_check:
|
|
108
|
+
tool: run_tests
|
|
109
|
+
classify_required: true
|
|
110
|
+
retryable: false
|
|
111
|
+
|
|
112
|
+
- mode: hotfix
|
|
113
|
+
gates:
|
|
114
|
+
# Combined DEV+TEST: senior_full_stack writes the fix AND the test;
|
|
115
|
+
# tester co-signs to confirm verification ran. Single gate keeps the
|
|
116
|
+
# touchpoint_budget.hotfix = 1 invariant. auto_check=run_tests lets Claude
|
|
117
|
+
# sign 'mcp' on green; PM/UX/ARCH judgment gates are skipped in hotfix.
|
|
118
|
+
- gate: DEV
|
|
119
|
+
produced_by: [senior_full_stack]
|
|
120
|
+
signs_off: [senior_full_stack, tester]
|
|
121
|
+
sign_off_policy: either
|
|
122
|
+
auto_check:
|
|
123
|
+
tool: run_tests
|
|
124
|
+
classify_required: true
|
|
125
|
+
retryable: false
|
|
126
|
+
- gate: RG
|
|
127
|
+
produced_by: [conductor]
|
|
128
|
+
signs_off: [conductor]
|
|
129
|
+
sign_off_policy: user
|
|
130
|
+
classify_required: false
|
|
131
|
+
retryable: false
|
|
132
|
+
|
|
133
|
+
circuit_breaker:
|
|
134
|
+
enabled: true
|
|
135
|
+
dev_rollback_threshold: 2
|
|
136
|
+
audit_role: architect
|
|
137
|
+
audit_required_skills:
|
|
138
|
+
- system-design-checklist
|
|
139
|
+
- current-state-analysis
|
|
140
|
+
- design-patterns-reference
|
|
141
|
+
reset_on:
|
|
142
|
+
- rg_pass
|
|
143
|
+
- new_arch_adr
|
|
144
|
+
|
|
145
|
+
touchpoint_budget:
|
|
146
|
+
hotfix: 1
|
|
147
|
+
bugfix_midsize: [1, 2]
|
|
148
|
+
feature_backend: [1, 3]
|
|
149
|
+
feature_ui_with_arch_fork: [3, 5]
|
|
150
|
+
complex_3plus_fc: [3, 6]
|