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.
Files changed (128) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +5 -5
  3. package/dist/catalog.js +1 -1
  4. package/dist/contentTransformer.d.ts +1 -1
  5. package/dist/contentTransformer.js +39 -0
  6. package/dist/index.js +10 -5
  7. package/dist/mcp/cli.js +4 -4
  8. package/dist/mcp/scorecard.d.ts +2 -2
  9. package/dist/mcp/task_state.d.ts +2 -2
  10. package/dist/mcp/tools/advance_gate.js +1 -1
  11. package/dist/mcp/tools/classify_gate.d.ts +2 -2
  12. package/dist/mcp/tools/classify_gate.js +2 -2
  13. package/dist/mcp/tools/load_role.d.ts +2 -2
  14. package/dist/mcp/tools/load_role.js +2 -2
  15. package/dist/mcp/tools/report_exception.d.ts +3 -3
  16. package/dist/mcp/tools/report_exception.js +4 -4
  17. package/dist/mcp/tools/request_decision.d.ts +3 -3
  18. package/dist/mcp/tools/request_decision.js +5 -5
  19. package/dist/mcp/tools/review_proposal.d.ts +1 -1
  20. package/dist/mcp/tools/review_proposal.js +6 -6
  21. package/dist/mcp/tools/sign_off.d.ts +2 -2
  22. package/dist/mcp/tools/sign_off.js +7 -7
  23. package/dist/mcp/tools/verify_claim.d.ts +1 -1
  24. package/dist/mcp/tools/verify_claim.js +1 -1
  25. package/dist/mcp_setup.d.ts +84 -31
  26. package/dist/mcp_setup.js +182 -66
  27. package/dist/platforms/adapters.js +54 -19
  28. package/dist/shared/frontmatter.js +1 -1
  29. package/dist/shared/persona.d.ts +1 -1
  30. package/dist/shared/persona.js +1 -1
  31. package/dist/shared/pipeline.d.ts +10 -10
  32. package/dist/shared/pipeline.js +7 -7
  33. package/dist/shared/tools.d.ts +15 -15
  34. package/dist/shared/tools.js +3 -3
  35. package/dist/shared/vocabulary.d.ts +4 -4
  36. package/dist/shared/vocabulary.js +4 -4
  37. package/dist/types.d.ts +1 -1
  38. package/domains/analytics/.agents/workflows/analytics-pipeline-rules.md +13 -3
  39. package/domains/analytics/.agents/workflows/analyze.md +1 -0
  40. package/domains/analytics/.agents/workflows/quick-insight.md +1 -0
  41. package/domains/analytics/locales/en/.agents/workflows/analytics-pipeline-rules.md +13 -3
  42. package/domains/analytics/locales/en/.agents/workflows/analyze.md +1 -0
  43. package/domains/analytics/locales/en/.agents/workflows/quick-insight.md +1 -0
  44. package/domains/analytics/locales/en/agents/interviewer.md +2 -1
  45. package/domains/analytics/locales/en/agents/layouter.md +2 -1
  46. package/domains/analytics/locales/en/agents/mediator.md +2 -1
  47. package/domains/analytics/locales/en/agents/researcher.md +2 -1
  48. package/domains/analytics/locales/en/agents/strategist.md +2 -1
  49. package/domains/analytics/pipeline.yaml +10 -10
  50. package/domains/content/.agents/skills/content-release-gate/SKILL.md +3 -5
  51. package/domains/content/.agents/workflows/content-pipeline-rules.md +14 -11
  52. package/domains/content/.agents/workflows/edit-content.md +0 -1
  53. package/domains/content/.agents/workflows/quick-post.md +0 -1
  54. package/domains/content/.agents/workflows/start-content.md +0 -1
  55. package/domains/content/agents/conductor.md +1 -2
  56. package/domains/content/locales/en/.agents/skills/content-release-gate/SKILL.md +3 -5
  57. package/domains/content/locales/en/.agents/workflows/content-pipeline-rules.md +14 -11
  58. package/domains/content/locales/en/.agents/workflows/edit-content.md +0 -1
  59. package/domains/content/locales/en/.agents/workflows/quick-post.md +0 -1
  60. package/domains/content/locales/en/.agents/workflows/start-content.md +0 -1
  61. package/domains/content/locales/en/agents/conductor.md +1 -2
  62. package/domains/content/pipeline.yaml +8 -8
  63. package/domains/development/.agents/skills/handoff/SKILL.md +276 -276
  64. package/domains/development/.agents/skills/lava-flow-legacy-detection/SKILL.md +197 -197
  65. package/domains/development/.agents/skills/mcp-integration/SKILL.md +211 -211
  66. package/domains/development/.agents/skills/qa-test-data-management/SKILL.md +250 -250
  67. package/domains/development/.agents/workflows/bugfix.md +16 -82
  68. package/domains/development/.agents/workflows/hotfix.md +16 -66
  69. package/domains/development/.agents/workflows/pipeline-rules.md +49 -132
  70. package/domains/development/.agents/workflows/start-task.md +17 -121
  71. package/domains/development/AGENTS.md +8 -3
  72. package/domains/development/agents/architect.md +247 -247
  73. package/domains/development/agents/conductor.md +363 -363
  74. package/domains/development/agents/devops.md +297 -297
  75. package/domains/development/agents/reviewer.md +293 -293
  76. package/domains/development/agents/senior_full_stack.md +295 -295
  77. package/domains/development/agents/tester.md +395 -395
  78. package/domains/development/locales/en/.agents/skills/handoff/SKILL.md +276 -276
  79. package/domains/development/locales/en/.agents/skills/lava-flow-legacy-detection/SKILL.md +197 -197
  80. package/domains/development/locales/en/.agents/skills/mcp-integration/SKILL.md +211 -211
  81. package/domains/development/locales/en/.agents/skills/qa-test-data-management/SKILL.md +250 -250
  82. package/domains/development/locales/en/.agents/workflows/bugfix.md +16 -82
  83. package/domains/development/locales/en/.agents/workflows/hotfix.md +15 -65
  84. package/domains/development/locales/en/.agents/workflows/pipeline-rules.md +48 -131
  85. package/domains/development/locales/en/.agents/workflows/start-task.md +17 -121
  86. package/domains/development/locales/en/AGENTS.md +15 -0
  87. package/domains/development/locales/en/agents/architect.md +247 -247
  88. package/domains/development/locales/en/agents/conductor.md +363 -363
  89. package/domains/development/locales/en/agents/devops.md +297 -297
  90. package/domains/development/locales/en/agents/reviewer.md +293 -293
  91. package/domains/development/locales/en/agents/senior_full_stack.md +295 -295
  92. package/domains/development/locales/en/agents/tester.md +395 -395
  93. package/domains/development/locales/en/prompt-examples.md +34 -120
  94. package/domains/development/pipeline.yaml +150 -135
  95. package/domains/development/prompt-examples.md +33 -119
  96. package/domains/product/.agents/workflows/product-pipeline-rules.md +13 -2
  97. package/domains/product/.agents/workflows/quick-pm.md +1 -1
  98. package/domains/product/.agents/workflows/shape-prioritize.md +1 -0
  99. package/domains/product/.agents/workflows/ship-right-thing.md +1 -0
  100. package/domains/product/.agents/workflows/spec.md +1 -0
  101. package/domains/product/agents/tech_lead.md +1 -1
  102. package/domains/product/locales/en/.agents/workflows/product-pipeline-rules.md +13 -2
  103. package/domains/product/locales/en/.agents/workflows/quick-pm.md +1 -1
  104. package/domains/product/locales/en/.agents/workflows/shape-prioritize.md +1 -0
  105. package/domains/product/locales/en/.agents/workflows/ship-right-thing.md +1 -0
  106. package/domains/product/locales/en/.agents/workflows/spec.md +1 -0
  107. package/domains/product/locales/en/agents/conductor.md +2 -2
  108. package/domains/product/locales/en/agents/data_analyst.md +2 -1
  109. package/domains/product/locales/en/agents/designer.md +2 -1
  110. package/domains/product/locales/en/agents/discovery.md +2 -1
  111. package/domains/product/locales/en/agents/layouter.md +2 -1
  112. package/domains/product/locales/en/agents/mediator.md +2 -1
  113. package/domains/product/locales/en/agents/pm.md +2 -1
  114. package/domains/product/locales/en/agents/product_strategist.md +2 -1
  115. package/domains/product/locales/en/agents/tech_lead.md +3 -2
  116. package/domains/product/locales/en/agents/ux_designer.md +2 -1
  117. package/domains/product/pipeline.yaml +12 -12
  118. package/package.json +5 -5
  119. package/domains/analytics/CONTEXT.md +0 -25
  120. package/domains/analytics/locales/en/CONTEXT.md +0 -25
  121. package/domains/content/CONTEXT.md +0 -19
  122. package/domains/content/locales/en/CONTEXT.md +0 -19
  123. package/domains/development/.agents/workflows/auto-restart-containers.md +0 -56
  124. package/domains/development/CONTEXT.md +0 -62
  125. package/domains/development/locales/en/.agents/workflows/auto-restart-containers.md +0 -24
  126. package/domains/development/locales/en/CONTEXT.md +0 -62
  127. package/domains/product/CONTEXT.md +0 -40
  128. package/domains/product/locales/en/CONTEXT.md +0 -40
@@ -1,152 +1,66 @@
1
- # Prompt Examples for Pipeline Launch
1
+ # Prompt examples Development domain
2
2
 
3
- > Copy the relevant prompt, replace placeholders with your data, paste into chat.
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
- ## 🔵 Full Pipeline (`/start-task`) — new feature / refactoring
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
- ### New Feature
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
- ## 🟢 Bugfix (`/bugfix`) — bug fix (4 gates)
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
- @AGENTS.md Task:
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
- @AGENTS.md Task:
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
- @AGENTS.md Task:
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
- @AGENTS.md Task:
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
- Approved. Next gate: agents/<role>.md. Skills: view_file required. Full format.
38
+ /hotfix [small fix: typo in a heading / button color #333 → #555 / one line].
112
39
  ```
113
40
 
114
- ### Approve with Trigger (Wix / Shopify)
115
- ```
116
- Approved. TEST gate. Wix.
117
- ```
41
+ ## How the work flows
118
42
 
119
- ### Reject / Return for Rework
120
- ```
121
- NO-GO. Fix: [list of issues]. Return to [gate] gate.
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
- ## 🔧 Utility Prompts
49
+ ## Gate replies
127
50
 
128
- ### Check Status
129
51
  ```
130
- Show the current Master Checklist and status of all gates.
52
+ Approved
131
53
  ```
132
-
133
- ### Run a Specific Agent
134
54
  ```
135
- Run agents/<role>.md. Context: [brief description]. Skills: view_file required.
55
+ Approved. [clarification / condition]
136
56
  ```
137
-
138
- ### Update Version
139
57
  ```
140
- Update the version in package.json to X.Y.Z
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. **Always start with `@AGENTS.md`** this loads the agent system
148
- 2. **Reference files with `@[path]`** — the agent immediately sees the context
149
- 3. **Name the pipeline mode** — "Full pipeline!", "Bugfix pipeline!", "Hotfix pipeline!"
150
- 4. **Add SESSION RULES** this guarantees protocol compliance
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 docs/.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
- # All gates currently use sign_off_policy=den because the Phase-2 auto-check
11
- # tools (run_tests, check_lint, build, dependency_supply_chain, ...) are still
12
- # stubs. Once those tools are wired, OPS/REV/TEST gates flip to mcp_auto_pass
13
- # or either.
14
- #
15
- # CIRCUIT BREAKER CONVENTION: when dev_rollback_threshold trips, the audit is
16
- # expected to run in a FRESH Claude Code session not as a subagent inside the
17
- # stuck session. Provenance: wing_codex_product/decisions 2026-05-23, "SUBAGENTS
18
- # FOR CONSISTENCY CHECKS qualitatively stronger than self-check, clean context,
19
- # no my bias." Same Claude that hit the wall reproduces the blind spot that
20
- # caused the rollback. advance_gate's error message carries this recommendation.
21
-
22
- schema_version: 1
23
- domain: development
24
- default_mode: full
25
- default_signer: den
26
-
27
- modes:
28
- - mode: full
29
- gates:
30
- - gate: PM
31
- produced_by: [product_manager]
32
- signs_off: [product_manager, conductor]
33
- sign_off_policy: den
34
- classify_required: true
35
- retryable: true
36
- - gate: UX
37
- produced_by: [ux_ui_designer]
38
- signs_off: [ux_ui_designer, conductor]
39
- sign_off_policy: den
40
- classify_required: true
41
- retryable: true
42
- - gate: ARCH
43
- produced_by: [architect]
44
- signs_off: [architect, conductor]
45
- sign_off_policy: den
46
- classify_required: true
47
- retryable: true
48
- - gate: DEV
49
- produced_by: [senior_full_stack]
50
- signs_off: [senior_full_stack, conductor]
51
- sign_off_policy: den
52
- classify_required: true
53
- retryable: true
54
- - gate: REV
55
- produced_by: [reviewer]
56
- signs_off: [reviewer, conductor]
57
- sign_off_policy: den
58
- classify_required: true
59
- retryable: true
60
- - gate: OPS
61
- produced_by: [devops]
62
- signs_off: [devops, conductor]
63
- sign_off_policy: den
64
- classify_required: true
65
- retryable: true
66
- - gate: TEST
67
- produced_by: [tester]
68
- signs_off: [tester, conductor]
69
- sign_off_policy: den
70
- classify_required: true
71
- retryable: true
72
- - gate: RG
73
- produced_by: [conductor]
74
- signs_off: [conductor]
75
- sign_off_policy: den
76
- classify_required: true
77
- retryable: false
78
-
79
- - mode: bugfix
80
- gates:
81
- - gate: DEV
82
- produced_by: [senior_full_stack]
83
- signs_off: [senior_full_stack]
84
- sign_off_policy: den
85
- classify_required: true
86
- retryable: true
87
- - gate: REV
88
- produced_by: [reviewer]
89
- signs_off: [reviewer]
90
- sign_off_policy: den
91
- classify_required: true
92
- retryable: true
93
- - gate: TEST
94
- produced_by: [tester]
95
- signs_off: [tester]
96
- sign_off_policy: den
97
- classify_required: true
98
- retryable: false
99
-
100
- - mode: hotfix
101
- gates:
102
- # Combined DEV+TEST: senior_full_stack writes the fix AND the test;
103
- # tester co-signs to confirm verification ran. Single gate keeps the
104
- # touchpoint_budget.hotfix = 1 invariant.
105
- - gate: DEV
106
- produced_by: [senior_full_stack]
107
- signs_off: [senior_full_stack, tester]
108
- sign_off_policy: den
109
- classify_required: true
110
- retryable: false
111
- - gate: RG
112
- produced_by: [conductor]
113
- signs_off: [conductor]
114
- sign_off_policy: den
115
- classify_required: false
116
- retryable: false
117
-
118
- circuit_breaker:
119
- enabled: true
120
- dev_rollback_threshold: 2
121
- audit_role: architect
122
- audit_required_skills:
123
- - system-design-checklist
124
- - current-state-analysis
125
- - design-patterns-reference
126
- reset_on:
127
- - rg_pass
128
- - new_arch_adr
129
-
130
- touchpoint_budget:
131
- hotfix: 1
132
- bugfix_midsize: [1, 2]
133
- feature_backend: [1, 3]
134
- feature_ui_with_arch_fork: [3, 5]
135
- complex_3plus_fc: [3, 6]
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]