@bbcsoftwarefactory/cli 1.1.2 β 1.1.4
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/dist/bbc-install.d.ts +2 -1
- package/dist/bbc-install.js +93 -28
- package/dist/bbc.js +4 -1
- package/dist/bundle/commands/daily/SKILL.md +112 -0
- package/dist/bundle/commands/daily/adapters/command.md +17 -0
- package/dist/bundle/commands/daily/adapters/gemini.toml +17 -0
- package/dist/bundle/commands/issue-clean-and-close/SKILL.md +85 -0
- package/dist/bundle/commands/issue-clean-and-close/adapters/command.md +17 -0
- package/dist/bundle/commands/issue-clean-and-close/adapters/gemini.toml +17 -0
- package/dist/bundle/commands/issue-clean-and-close/references/policy.md +87 -0
- package/dist/bundle/commands/recap/SKILL.md +84 -0
- package/dist/bundle/commands/recap/adapters/command.md +17 -0
- package/dist/bundle/commands/recap/adapters/gemini.toml +17 -0
- package/dist/bundle/installer/clients.json +103 -0
- package/dist/bundle/skills/code-quality-gate/SKILL.md +58 -0
- package/dist/bundle/skills/code-quality-gate/references/gate-bigo.md +31 -0
- package/dist/bundle/skills/code-quality-gate/references/gate-earlyreturn.md +73 -0
- package/dist/bundle/skills/code-quality-gate/references/gate-typesafe.md +32 -0
- package/dist/bundle/skills/code-quality-gate/references/output-schema.yml +40 -0
- package/dist/bundle/skills/delivery-coordinator/SKILL.md +80 -0
- package/dist/bundle/skills/delivery-coordinator/references/hud-output.md +55 -0
- package/dist/bundle/skills/delivery-coordinator/references/intake.md +86 -0
- package/dist/bundle/skills/delivery-coordinator/references/issue-claim.md +143 -0
- package/dist/bundle/skills/delivery-coordinator/references/issue-dedup.md +38 -0
- package/dist/bundle/skills/delivery-coordinator/references/sleuth-regression-exercise.md +60 -0
- package/dist/bundle/skills/delivery-coordinator/references/visual-reference.md +45 -0
- package/dist/bundle/skills/delivery-coordinator/references/worktree-isolation.md +19 -0
- package/dist/bundle/skills/documentation-steward/SKILL.md +43 -0
- package/dist/bundle/skills/documentation-steward/references/discovery.md +17 -0
- package/dist/bundle/skills/documentation-steward/references/handoff.md +15 -0
- package/dist/bundle/skills/greptile-review-loop/SKILL.md +56 -0
- package/dist/bundle/skills/greptile-review-loop/references/review-protocol.md +37 -0
- package/dist/bundle/skills/issue-reviewer/SKILL.md +84 -0
- package/dist/bundle/skills/issue-reviewer/references/review-format.md +100 -0
- package/dist/bundle/skills/issue-reviewer/references/triage.md +105 -0
- package/dist/bundle/skills/question-gate/SKILL.md +64 -0
- package/dist/bundle/skills/question-gate/references/client-hooks.md +111 -0
- package/dist/bundle/skills/question-gate/references/diagram-routing.md +58 -0
- package/dist/bundle/skills/question-gate/tests/fixtures/question-corpus.json +481 -0
- package/dist/bundle/skills/regression-testing/SKILL.md +49 -0
- package/dist/bundle/skills/regression-testing/references/evidence-record.md +35 -0
- package/dist/bundle/skills/requirements-spec/SKILL.md +59 -0
- package/dist/bundle/skills/risk-scout/SKILL.md +53 -0
- package/dist/bundle/skills/risk-scout/references/risk-matrix.md +49 -0
- package/dist/bundle/skills/skill-clean-architecture/SKILL.md +53 -0
- package/dist/bundle/skills/skill-clean-architecture/references/layer-rules.md +22 -0
- package/dist/bundle/skills/skill-clean-architecture/references/source-headers.md +30 -0
- package/dist/bundle/skills/skill-clean-architecture/tests/fixtures/bigo/bad-utf8.js +1 -0
- package/dist/bundle/skills/skill-clean-architecture/tests/fixtures/bigo/edge-crlf.ts +6 -0
- package/dist/bundle/skills/skill-clean-architecture/tests/fixtures/bigo/edge-mixed.ts +15 -0
- package/dist/bundle/skills/skill-clean-architecture/tests/fixtures/bigo/empty.js +0 -0
- package/dist/bundle/skills/skill-clean-architecture/tests/fixtures/bigo/no-newline.js +1 -0
- package/dist/bundle/skills/skill-clean-architecture/tests/fixtures/bigo.expected.yml +95 -0
- package/dist/bundle/skills/tool-depot/SKILL.md +47 -0
- package/dist/bundle/skills/tool-depot/references/checkout.md +29 -0
- package/dist/bundle/skills/tool-depot/references/loki-read.md +41 -0
- package/dist/bundle/skills/tool-depot/references/readonly-access.md +84 -0
- package/dist/bundle/skills/tool-depot/references/tool-catalog.json +47 -0
- package/dist/bundle/skills/tool-depot/scripts/loki-runtime-logs.py +305 -0
- package/dist/bundle/skills/tool-depot/tests/loki-runtime-logs.test.sh +101 -0
- package/dist/bundle/skills/watcher-observability/SKILL.md +72 -0
- package/dist/bundle/skills/watcher-observability/references/batch-protocol.md +44 -0
- package/dist/bundle/skills/watcher-observability/references/configuration.md +31 -0
- package/dist/bundle/skills/watcher-observability/references/error-scan.md +102 -0
- package/dist/bundle/skills/watcher-observability/references/live-protocol.md +49 -0
- package/dist/bundle/skills/watcher-observability/references/server-account.md +72 -0
- package/dist/bundle/skills/watcher-observability/server/watcher-gate.sh +51 -0
- package/dist/bundle/skills/watcher-observability/tests/watcher-gate.test.sh +113 -0
- package/dist/bundle/skills/watcher-observability/watcher.json +1 -0
- package/dist/bundle/skills/workflow-auditor/SKILL.md +53 -0
- package/dist/bundle/skills/workflow-auditor/references/audit-protocol.md +49 -0
- package/dist/bundle/skills/workflow-auditor/references/ledger.md +122 -0
- package/package.json +3 -3
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Diagram routing for questions before stopping
|
|
2
|
+
|
|
3
|
+
Every box in the BuilderBot workflow diagram owns a class of decisions or checks. Before asking the user a question, map each clause to the diagram owner.
|
|
4
|
+
|
|
5
|
+
## Canonical example
|
|
6
|
+
|
|
7
|
+
Draft question:
|
|
8
|
+
|
|
9
|
+
> "ΒΏQuieres que haga el commit, cree la issue y abra el PR en el repositorio o prefieres probarlo primero en local?"
|
|
10
|
+
|
|
11
|
+
Split into clauses:
|
|
12
|
+
|
|
13
|
+
1. `"prefieres probarlo primero en local"`
|
|
14
|
+
- **Diagram owner:** `regression-testing` (QA Engineer) + `code-quality-gate` (Software Engineer self-check).
|
|
15
|
+
- **Disposition:** `delegate_to_skill` (**do not ask**). Run focused tests, typecheck, lint, quality gate, or local smoke checks yourself and report the evidence. Never ask the user to act as QA.
|
|
16
|
+
2. `"Quieres que haga el commit, cree la issue y abra el PR"`
|
|
17
|
+
- **Diagram owner:** `delivery-coordinator` checks `authorizations` -> `π€ Authorization to commit and publish`.
|
|
18
|
+
- **Disposition:**
|
|
19
|
+
- If `verify` or `quality` is still missing in the delivery ledger -> `delegate_to_skill` (finish verification and quality gate first).
|
|
20
|
+
- If `commit_pr` is already covered by a `person` authorization in the ledger (or explicitly requested in the session) -> `already_authorized` (proceed to Commit & PR, then `greptile-review-loop` and `workflow-auditor`).
|
|
21
|
+
- Otherwise -> `human_approval_required`: ask **only** the isolated publication decision with a recommendation, with zero QA fallback attached.
|
|
22
|
+
|
|
23
|
+
## Routing table
|
|
24
|
+
|
|
25
|
+
| Question / pause intent | Diagram owner | Disposition | Action |
|
|
26
|
+
|---|---|---|---|
|
|
27
|
+
| Test locally, run tests, reproduce bug, verify fix | `regression-testing` | `delegate_to_skill` | Run or rerun the focused test suite and report RED/GREEN evidence. |
|
|
28
|
+
| Check types, lint, BigO, early return, code quality | `code-quality-gate` | `delegate_to_skill` | Run `bbc extract-diff-scope` + typechecker and fix any `block`. |
|
|
29
|
+
| Check layer boundaries, DDD placement, file headers | `skill-clean-architecture` | `delegate_to_skill` | Inspect touched layers and run `bbc measure-bigo`. |
|
|
30
|
+
| Audit or update local docs / README | `documentation-steward` | `delegate_to_skill` | Audit the exact diff in `audit` mode; update only if authorized. |
|
|
31
|
+
| Assess failure modes, rollout or operational risk | `risk-scout` | `delegate_to_skill` | Build the 5 scenarios and risk matrix before asking. |
|
|
32
|
+
| Check Greptile score, review threads, or 5/5 loop | `greptile-review-loop` | `delegate_to_skill` | Run the bounded review loop on the current PR head. |
|
|
33
|
+
| Verify workflow order, ledger, or Tool Depot usage | `workflow-auditor` | `delegate_to_skill` | Run `bbc audit-ledger` and the semantic pass. |
|
|
34
|
+
| Inspect container logs or incident timeline | `watcher-observability` | `delegate_to_skill` | Check existing `report.json` or request bounded Watcher read via `tool-depot`. |
|
|
35
|
+
| Search duplicate issues, read PR, or check public docs | `tool-depot` (`github-read` / `public-web`) | `delegate_to_skill` | Submit a Tool Depot checkout request and execute if `eligible`. |
|
|
36
|
+
| Decide next workflow step or which skill runs next | `delivery-coordinator` | `delegate_to_skill` | Follow the earliest unmet stage in the handoff contracts. |
|
|
37
|
+
| Commit, push, publish issue, or open PR | `delivery-coordinator` + `π€ Person` | `already_authorized` or `human_approval_required` | Execute if `commit_pr` is already authorized and prerequisites are GREEN; otherwise ask only for that authorization. |
|
|
38
|
+
| Ambiguous product behavior or UX trade-off | `requirements-spec` -> `π€ Product Manager` | `human_approval_required` | Check existing issue/PRD first; if open, ask using `Open Decision Question Format`. |
|
|
39
|
+
| Merge PR / approve Code Owner review | `π€ Code Owner` | `human_approval_required` | Hand off PR, criteria, verification, Greptile score, and `workflow-auditor` verdict. |
|
|
40
|
+
| Deploy / release to production | `π€ Release Owner` | `human_approval_required` | Hand off readiness conditions and residual risks. |
|
|
41
|
+
| Approve SSH target or unauthorized `github-write` | `tool-depot` -> `π€ Person` | `human_approval_required` | Ask for the exact missing authorization (`needs-approval`). |
|
|
42
|
+
|
|
43
|
+
## Agile Decision Card
|
|
44
|
+
|
|
45
|
+
When `verdict` is `allow_question`, present the remaining `human_approval_required` gate as a compact **Quest-Tree Boss Gate** so the person can decide fast:
|
|
46
|
+
|
|
47
|
+
```text
|
|
48
|
+
π‘ BOSS GATE β <Role>
|
|
49
|
+
β
|
|
50
|
+
βββ β <1-line question?>
|
|
51
|
+
β
|
|
52
|
+
βββ π Recomendado: [A]
|
|
53
|
+
β βββ <1-line reason>
|
|
54
|
+
β
|
|
55
|
+
βββ β‘ Opciones
|
|
56
|
+
βββ [A] <action>
|
|
57
|
+
βββ [B] <action>
|
|
58
|
+
```
|
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Labelled agent drafts for triage-question.py (#54). Labels are the CORRECT routing per the workflow diagram, not what the classifier currently returns; misses are expected and tracked. tests/question-corpus.test.sh enforces MIN_ACCURACY as a ratchet: raise it when accuracy improves.",
|
|
3
|
+
"items": [
|
|
4
|
+
{
|
|
5
|
+
"text": "ΒΏCorro las pruebas antes de seguir?",
|
|
6
|
+
"verdict": "block_question",
|
|
7
|
+
"owners": [],
|
|
8
|
+
"skills": [
|
|
9
|
+
"regression-testing"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"text": "ΒΏEjecuto los tests ahora?",
|
|
14
|
+
"verdict": "block_question",
|
|
15
|
+
"owners": [],
|
|
16
|
+
"skills": [
|
|
17
|
+
"regression-testing"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"text": "ΒΏPrefieres probarlo primero en local?",
|
|
22
|
+
"verdict": "block_question",
|
|
23
|
+
"owners": [],
|
|
24
|
+
"skills": [
|
|
25
|
+
"regression-testing"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"text": "ΒΏPrefieres que lo pruebe primero?",
|
|
30
|
+
"verdict": "block_question",
|
|
31
|
+
"owners": [],
|
|
32
|
+
"skills": [
|
|
33
|
+
"regression-testing"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"text": "ΒΏReproduzco el bug primero?",
|
|
38
|
+
"verdict": "block_question",
|
|
39
|
+
"owners": [],
|
|
40
|
+
"skills": [
|
|
41
|
+
"regression-testing"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"text": "ΒΏVerifico si funciona?",
|
|
46
|
+
"verdict": "block_question",
|
|
47
|
+
"owners": [],
|
|
48
|
+
"skills": [
|
|
49
|
+
"regression-testing"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"text": "ΒΏHago un smoke test?",
|
|
54
|
+
"verdict": "block_question",
|
|
55
|
+
"owners": [],
|
|
56
|
+
"skills": [
|
|
57
|
+
"regression-testing"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"text": "ΒΏLanzo el build para verificar?",
|
|
62
|
+
"verdict": "block_question",
|
|
63
|
+
"owners": [],
|
|
64
|
+
"skills": [
|
|
65
|
+
"regression-testing"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"text": "ΒΏEjecuto la suite completa?",
|
|
70
|
+
"verdict": "block_question",
|
|
71
|
+
"owners": [],
|
|
72
|
+
"skills": [
|
|
73
|
+
"regression-testing"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"text": "Should I run the tests first?",
|
|
78
|
+
"verdict": "block_question",
|
|
79
|
+
"owners": [],
|
|
80
|
+
"skills": [
|
|
81
|
+
"regression-testing"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"text": "Should I verify locally?",
|
|
86
|
+
"verdict": "block_question",
|
|
87
|
+
"owners": [],
|
|
88
|
+
"skills": [
|
|
89
|
+
"regression-testing"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"text": "Should I reproduce the bug?",
|
|
94
|
+
"verdict": "block_question",
|
|
95
|
+
"owners": [],
|
|
96
|
+
"skills": [
|
|
97
|
+
"regression-testing"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"text": "Should I check if it works?",
|
|
102
|
+
"verdict": "block_question",
|
|
103
|
+
"owners": [],
|
|
104
|
+
"skills": [
|
|
105
|
+
"regression-testing"
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"text": "ΒΏPaso el linter antes del commit?",
|
|
110
|
+
"verdict": "block_question",
|
|
111
|
+
"owners": [],
|
|
112
|
+
"skills": [
|
|
113
|
+
"code-quality-gate"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"text": "ΒΏCorro el typecheck?",
|
|
118
|
+
"verdict": "block_question",
|
|
119
|
+
"owners": [],
|
|
120
|
+
"skills": [
|
|
121
|
+
"code-quality-gate"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"text": "ΒΏReviso la calidad del cΓ³digo?",
|
|
126
|
+
"verdict": "block_question",
|
|
127
|
+
"owners": [],
|
|
128
|
+
"skills": [
|
|
129
|
+
"code-quality-gate"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"text": "Should I run eslint?",
|
|
134
|
+
"verdict": "block_question",
|
|
135
|
+
"owners": [],
|
|
136
|
+
"skills": [
|
|
137
|
+
"code-quality-gate"
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"text": "ΒΏReviso la documentaciΓ³n afectada?",
|
|
142
|
+
"verdict": "block_question",
|
|
143
|
+
"owners": [],
|
|
144
|
+
"skills": [
|
|
145
|
+
"documentation-steward"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"text": "ΒΏActualizo el README?",
|
|
150
|
+
"verdict": "block_question",
|
|
151
|
+
"owners": [],
|
|
152
|
+
"skills": [
|
|
153
|
+
"documentation-steward"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"text": "Do you want me to check the docs?",
|
|
158
|
+
"verdict": "block_question",
|
|
159
|
+
"owners": [],
|
|
160
|
+
"skills": [
|
|
161
|
+
"documentation-steward"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"text": "Should I also update the wiki?",
|
|
166
|
+
"verdict": "block_question",
|
|
167
|
+
"owners": [],
|
|
168
|
+
"skills": [
|
|
169
|
+
"documentation-steward"
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"text": "ΒΏQuΓ© puede fallar con este cambio?",
|
|
174
|
+
"verdict": "block_question",
|
|
175
|
+
"owners": [],
|
|
176
|
+
"skills": [
|
|
177
|
+
"risk-scout"
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"text": "ΒΏRevisamos el riesgo residual?",
|
|
182
|
+
"verdict": "block_question",
|
|
183
|
+
"owners": [],
|
|
184
|
+
"skills": [
|
|
185
|
+
"risk-scout"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"text": "What could break here?",
|
|
190
|
+
"verdict": "block_question",
|
|
191
|
+
"owners": [],
|
|
192
|
+
"skills": [
|
|
193
|
+
"risk-scout"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"text": "ΒΏReviso los comentarios de Greptile en el PR?",
|
|
198
|
+
"verdict": "block_question",
|
|
199
|
+
"owners": [],
|
|
200
|
+
"skills": [
|
|
201
|
+
"greptile-review-loop"
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"text": "Want me to check the Greptile comments?",
|
|
206
|
+
"verdict": "block_question",
|
|
207
|
+
"owners": [],
|
|
208
|
+
"skills": [
|
|
209
|
+
"greptile-review-loop"
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"text": "ΒΏQuieres que vigile el PR #50 y atienda los comentarios de revisiΓ³n?",
|
|
214
|
+
"verdict": "block_question",
|
|
215
|
+
"owners": [],
|
|
216
|
+
"skills": [
|
|
217
|
+
"greptile-review-loop"
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"text": "ΒΏAudito si el ledger cumple el diagrama?",
|
|
222
|
+
"verdict": "block_question",
|
|
223
|
+
"owners": [],
|
|
224
|
+
"skills": [
|
|
225
|
+
"workflow-auditor"
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"text": "ΒΏReviso los logs del contenedor?",
|
|
230
|
+
"verdict": "block_question",
|
|
231
|
+
"owners": [],
|
|
232
|
+
"skills": [
|
|
233
|
+
"watcher-observability"
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"text": "Should I read the docker logs?",
|
|
238
|
+
"verdict": "block_question",
|
|
239
|
+
"owners": [],
|
|
240
|
+
"skills": [
|
|
241
|
+
"watcher-observability"
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"text": "ΒΏBusco si hay issues duplicadas?",
|
|
246
|
+
"verdict": "block_question",
|
|
247
|
+
"owners": [],
|
|
248
|
+
"skills": [
|
|
249
|
+
"tool-depot"
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"text": "Should I check for duplicate issues?",
|
|
254
|
+
"verdict": "block_question",
|
|
255
|
+
"owners": [],
|
|
256
|
+
"skills": [
|
|
257
|
+
"tool-depot"
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"text": "ΒΏQuΓ© hacemos ahora?",
|
|
262
|
+
"verdict": "block_question",
|
|
263
|
+
"owners": [],
|
|
264
|
+
"skills": [
|
|
265
|
+
"delivery-coordinator"
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"text": "ΒΏCΓ³mo seguimos?",
|
|
270
|
+
"verdict": "block_question",
|
|
271
|
+
"owners": [],
|
|
272
|
+
"skills": [
|
|
273
|
+
"delivery-coordinator"
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"text": "What should we do next?",
|
|
278
|
+
"verdict": "block_question",
|
|
279
|
+
"owners": [],
|
|
280
|
+
"skills": [
|
|
281
|
+
"delivery-coordinator"
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"text": "ΒΏQuieres que haga merge del PR #50?",
|
|
286
|
+
"verdict": "allow_question",
|
|
287
|
+
"owners": [
|
|
288
|
+
"Code Owner"
|
|
289
|
+
],
|
|
290
|
+
"skills": []
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"text": "Should I merge the PR?",
|
|
294
|
+
"verdict": "allow_question",
|
|
295
|
+
"owners": [
|
|
296
|
+
"Code Owner"
|
|
297
|
+
],
|
|
298
|
+
"skills": []
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"text": "ΒΏDespliego a producciΓ³n?",
|
|
302
|
+
"verdict": "allow_question",
|
|
303
|
+
"owners": [
|
|
304
|
+
"Release Owner"
|
|
305
|
+
],
|
|
306
|
+
"skills": []
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"text": "ΒΏQuieres desplegar a producciΓ³n ahora?",
|
|
310
|
+
"verdict": "allow_question",
|
|
311
|
+
"owners": [
|
|
312
|
+
"Release Owner"
|
|
313
|
+
],
|
|
314
|
+
"skills": []
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"text": "Should I deploy to production now?",
|
|
318
|
+
"verdict": "allow_question",
|
|
319
|
+
"owners": [
|
|
320
|
+
"Release Owner"
|
|
321
|
+
],
|
|
322
|
+
"skills": []
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"text": "ΒΏHago merge a main y despliego a producciΓ³n?",
|
|
326
|
+
"verdict": "allow_question",
|
|
327
|
+
"owners": [
|
|
328
|
+
"Code Owner",
|
|
329
|
+
"Release Owner"
|
|
330
|
+
],
|
|
331
|
+
"skills": []
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"text": "ΒΏQuieres que haga el commit?",
|
|
335
|
+
"verdict": "allow_question",
|
|
336
|
+
"owners": [
|
|
337
|
+
"Tech Lead / Commit & PR authorization"
|
|
338
|
+
],
|
|
339
|
+
"skills": []
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"text": "ΒΏQuieres que cree el commit y abra el PR?",
|
|
343
|
+
"verdict": "allow_question",
|
|
344
|
+
"owners": [
|
|
345
|
+
"Tech Lead / Commit & PR authorization"
|
|
346
|
+
],
|
|
347
|
+
"skills": []
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"text": "ΒΏCreo la issue?",
|
|
351
|
+
"verdict": "allow_question",
|
|
352
|
+
"owners": [
|
|
353
|
+
"Tech Lead / Commit & PR authorization"
|
|
354
|
+
],
|
|
355
|
+
"skills": []
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"text": "ΒΏAbro el PR?",
|
|
359
|
+
"verdict": "allow_question",
|
|
360
|
+
"owners": [
|
|
361
|
+
"Tech Lead / Commit & PR authorization"
|
|
362
|
+
],
|
|
363
|
+
"skills": []
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"text": "ΒΏLo abro?",
|
|
367
|
+
"verdict": "allow_question",
|
|
368
|
+
"owners": [
|
|
369
|
+
"Tech Lead / Commit & PR authorization"
|
|
370
|
+
],
|
|
371
|
+
"skills": []
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"text": "Should I open the PR?",
|
|
375
|
+
"verdict": "allow_question",
|
|
376
|
+
"owners": [
|
|
377
|
+
"Tech Lead / Commit & PR authorization"
|
|
378
|
+
],
|
|
379
|
+
"skills": []
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"text": "Do you want me to publish the issue?",
|
|
383
|
+
"verdict": "allow_question",
|
|
384
|
+
"owners": [
|
|
385
|
+
"Tech Lead / Commit & PR authorization"
|
|
386
|
+
],
|
|
387
|
+
"skills": []
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"text": "Should I open a pull request and deploy?",
|
|
391
|
+
"verdict": "allow_question",
|
|
392
|
+
"owners": [
|
|
393
|
+
"Tech Lead / Commit & PR authorization",
|
|
394
|
+
"Release Owner"
|
|
395
|
+
],
|
|
396
|
+
"skills": []
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"text": "ΒΏHago la migraciΓ³n de las prioridades 1 y 2 con sus tests?",
|
|
400
|
+
"verdict": "allow_question",
|
|
401
|
+
"owners": [
|
|
402
|
+
"Tech Lead"
|
|
403
|
+
],
|
|
404
|
+
"skills": []
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"text": "ΒΏPrefieres abrir el enlace en nueva pestaΓ±a o en la misma pestaΓ±a?",
|
|
408
|
+
"verdict": "allow_question",
|
|
409
|
+
"owners": [
|
|
410
|
+
"Product Manager"
|
|
411
|
+
],
|
|
412
|
+
"skills": []
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"text": "ΒΏCuΓ‘l es el comportamiento esperado cuando el pago falla?",
|
|
416
|
+
"verdict": "allow_question",
|
|
417
|
+
"owners": [
|
|
418
|
+
"Product Manager"
|
|
419
|
+
],
|
|
420
|
+
"skills": []
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"text": "ΒΏHago merge del PR y reviso la documentaciΓ³n?",
|
|
424
|
+
"verdict": "block_question",
|
|
425
|
+
"owners": [
|
|
426
|
+
"Code Owner"
|
|
427
|
+
],
|
|
428
|
+
"skills": [
|
|
429
|
+
"documentation-steward"
|
|
430
|
+
]
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"text": "π‘ BOSS GATE β Tech Lead\nβ ΒΏReescribo el mΓ³dulo de pagos?\nπ Recomendado: [A]\nβ‘ Opciones\n[A] SΓ\n[B] No",
|
|
434
|
+
"verdict": "allow_question",
|
|
435
|
+
"owners": [
|
|
436
|
+
"Tech Lead"
|
|
437
|
+
],
|
|
438
|
+
"skills": []
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"text": "π‘ BOSS GATE β Release Owner\nβ ΒΏLo publicamos hoy?\nπ Recomendado: [A]\nβ‘ Opciones\n[A] SΓ\n[B] No",
|
|
442
|
+
"verdict": "allow_question",
|
|
443
|
+
"owners": [
|
|
444
|
+
"Release Owner"
|
|
445
|
+
],
|
|
446
|
+
"skills": []
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"text": "π‘ BOSS GATE β PM\nβ ΒΏMostramos el precio con impuestos?\nπ Recomendado: [A]\nβ‘ Opciones\n[A] SΓ\n[B] No",
|
|
450
|
+
"verdict": "allow_question",
|
|
451
|
+
"owners": [
|
|
452
|
+
"Product Manager"
|
|
453
|
+
],
|
|
454
|
+
"skills": []
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"text": "π‘ BOSS GATE β Wizard\nβ ΒΏReescribo el mΓ³dulo de pagos?\nπ Recomendado: [A]\nβ‘ Opciones\n[A] SΓ\n[B] No",
|
|
458
|
+
"verdict": "block_question",
|
|
459
|
+
"owners": [],
|
|
460
|
+
"skills": []
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"text": "ΒΏReescribo el mΓ³dulo de pagos?",
|
|
464
|
+
"verdict": "block_question",
|
|
465
|
+
"owners": [],
|
|
466
|
+
"skills": []
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"text": "Listo, los tests pasan.",
|
|
470
|
+
"verdict": "no_question",
|
|
471
|
+
"owners": [],
|
|
472
|
+
"skills": []
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"text": "Hecho. PR #51 abierto y CI en verde.",
|
|
476
|
+
"verdict": "no_question",
|
|
477
|
+
"owners": [],
|
|
478
|
+
"skills": []
|
|
479
|
+
}
|
|
480
|
+
]
|
|
481
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: regression-testing
|
|
3
|
+
description: "Trigger: reproduce a bug, regression test, acceptance test, RED/GREEN. Build isolated fixtures and verify observable behavior."
|
|
4
|
+
license: Apache-2.0
|
|
5
|
+
metadata:
|
|
6
|
+
author: bbc-skill-internals
|
|
7
|
+
version: "1.2"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Activation Contract
|
|
11
|
+
|
|
12
|
+
Use to reproduce a defect or turn an approved acceptance criterion into a runnable test. This skill owns test evidence, not production fixes.
|
|
13
|
+
|
|
14
|
+
**Company role:** QA Engineer.
|
|
15
|
+
|
|
16
|
+
## Hard Rules
|
|
17
|
+
|
|
18
|
+
- Use the repository's existing runner and a public interface. Use synthetic fixtures and isolated state; never copy live logs, credentials, or private IDs into tests.
|
|
19
|
+
- Assert the requested observable outputs and side effects. A setup error or an unrelated failure does not establish RED. Do not weaken the assertion to get GREEN.
|
|
20
|
+
- Do not run an unsafe reproduction or implement a speculative fix.
|
|
21
|
+
|
|
22
|
+
## Decision Gates
|
|
23
|
+
|
|
24
|
+
| Situation | Action |
|
|
25
|
+
|---|---|
|
|
26
|
+
| Bug with a safe reproduction | Pin the reported failure with a focused regression test. |
|
|
27
|
+
| New behavior with a testable criterion | Write an acceptance test that fails because that behavior is missing. |
|
|
28
|
+
| No safe or meaningful runnable reproduction | Document steps attempted, evidence gaps, and a proportionate verification alternative. |
|
|
29
|
+
|
|
30
|
+
## Execution Steps
|
|
31
|
+
|
|
32
|
+
1. Read the criterion and reproduce at the narrowest public boundary that can demonstrate it. In an incident report, distinguish observed behavior from suspected cause.
|
|
33
|
+
2. Run the focused test before the implementation. Start an evidence record for the criterion. If the test already passes, report that it did not reproduce the failure; do not claim the bug is fixed.
|
|
34
|
+
3. Hand off the test and evidence. After an authorized implementation, rerun the same command and fixture, then applicable existing checks. Record failures and skips explicitly.
|
|
35
|
+
|
|
36
|
+
## Companion Handoffs
|
|
37
|
+
|
|
38
|
+
For an authorized implementation handoff, look for `skill-clean-architecture`; for end-to-end coordination, look for `delivery-coordinator`. Pass the criterion IDs and test evidence.
|
|
39
|
+
|
|
40
|
+
Check the active skill catalog for the named companion before relying on it. If availability is unknown and its help is needed, ask whether it is available; do not ask when equivalent evidence already satisfies the handoff. Never assume installation, install automatically, or transfer permissions.
|
|
41
|
+
|
|
42
|
+
## Output Contract
|
|
43
|
+
|
|
44
|
+
- **In chat (agile HUD):** return 1 traffic-light line per criterion (`π΄ RED` before β `π’ GREEN` after with exact test counts, or `π‘ GAP` when unrun/inconclusive) + 1 short limit if any. Never invent RED or GREEN.
|
|
45
|
+
- **In PRs / ledger / `"detalle"`:** expand the full [evidence record](references/evidence-record.md) (source, command, fixture, before/after exit codes, existing checks, limits).
|
|
46
|
+
|
|
47
|
+
## References
|
|
48
|
+
|
|
49
|
+
- [Review-ready evidence template and example](references/evidence-record.md)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Test evidence for review
|
|
2
|
+
|
|
3
|
+
## Chat HUD summary (default in conversation)
|
|
4
|
+
|
|
5
|
+
Use one traffic-light line per criterion or suite in chat so decisions stay fast:
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
- π§ͺ **QA `<criterion ID>`:** π΄ `RED (<N> fail)` β π’ `GREEN (<N>/<N> pass)` Β· `<runner/scope>`
|
|
9
|
+
- π§ͺ **QA `<criterion ID>`:** π‘ `GAP` Β· `<reason not run or inconclusive>`
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Full evidence record (PR body, ledger, or on `"detalle"`)
|
|
13
|
+
|
|
14
|
+
Use this format per criterion. Keep the artifact in the authorized review channel; this template does not authorize publishing, recording, or uploading anything.
|
|
15
|
+
|
|
16
|
+
```markdown
|
|
17
|
+
### <criterion ID> β <observable behavior>
|
|
18
|
+
- Requirement: <canonical issue or PRD link and criterion>
|
|
19
|
+
- Reproduce: <working directory, relevant environment and synthetic fixture, exact command>
|
|
20
|
+
- Before: <baseline revision if known; expected result; actual result and exit code; failing assertion or reason RED was not observed>
|
|
21
|
+
- After: <tested revision or worktree; same command and fixture; actual result and exit code, or not run and why>
|
|
22
|
+
- Existing checks: <commands and pass/fail/skip results>
|
|
23
|
+
- Limits: <what remains unverified; observed behavior vs. suspected cause>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
For a CLI or backend change, include the minimum relevant output, status, and externally observable effects. For a UI change, include paired captures only when they clarify the criterion and capture is authorized; use the same state and viewport. Captures supplement assertions, not replace them. Redact identifiers and sensitive content before sharing; never attach raw Watcher logs or the complete incident report.
|
|
27
|
+
|
|
28
|
+
## Example: incomplete reproduction cycle
|
|
29
|
+
|
|
30
|
+
**Criterion C1:** Repeating a submit after a lost acknowledgement leaves exactly one job for the same key.
|
|
31
|
+
|
|
32
|
+
- **Reproduce:** Use the synthetic fixture in the feature workflow's Sleuth regression exercise. Run the extracted example with `python -I -B exercise.py` from its scratch directory.
|
|
33
|
+
- **Before:** Exit `1`; `AssertionError: expected 1 stored job; got 2`. The fixture exercised the intended assertion, not a setup failure.
|
|
34
|
+
- **After:** Not run; no fix was applied to the exercise.
|
|
35
|
+
- **Limits:** Proves the duplicate only in the fixture; does not establish the cause of any production incident.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: requirements-spec
|
|
3
|
+
description: "Trigger: PRD, product requirements, SPEC, acceptance criteria. Turn product intent into a scoped, testable issue or PRD."
|
|
4
|
+
license: Apache-2.0
|
|
5
|
+
metadata:
|
|
6
|
+
author: bbc-skill-internals
|
|
7
|
+
version: "1.1"
|
|
8
|
+
post_hook: "question-gate (open product decisions -> BOSS GATE)"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Activation Contract
|
|
12
|
+
|
|
13
|
+
Use when clarifying a feature or fix, reviewing an existing PRD or issue, or turning requirements into observable acceptance scenarios.
|
|
14
|
+
|
|
15
|
+
**Company role:** Product Manager. Open product decisions are approved by the human product owner; never approve them on the owner's behalf.
|
|
16
|
+
|
|
17
|
+
## Hard Rules
|
|
18
|
+
|
|
19
|
+
- Reuse one canonical PRD or issue. Do not create a second specification when the existing artifact is sufficient.
|
|
20
|
+
- Separate agreed behavior, assumptions, and open decisions. Do not invent requirements or approve changes on the user's behalf.
|
|
21
|
+
- Do not publish issues or implement code in this phase.
|
|
22
|
+
|
|
23
|
+
## Decision Gates
|
|
24
|
+
|
|
25
|
+
| Situation | Action |
|
|
26
|
+
|---|---|
|
|
27
|
+
| Existing document or issue is sufficient | Link it and reuse its acceptance criteria. |
|
|
28
|
+
| Scope is clear and local | Draft a short issue or an acceptance-criteria section. |
|
|
29
|
+
| Product decisions need more context | Draft a brief PRD with problem, users, desired outcome, scope, non-goals, and open decisions. |
|
|
30
|
+
| A decision changes the expected behavior | Ask a focused question before handing off, following the Open Decision Question Format below. |
|
|
31
|
+
|
|
32
|
+
## Open Decision Question Format
|
|
33
|
+
|
|
34
|
+
When asking the user to resolve an open decision (never auto-approve on their behalf):
|
|
35
|
+
|
|
36
|
+
- Keep each item scannable in plain language (avoid dumping raw internal constant/file names unless required to disambiguate).
|
|
37
|
+
- Before asking, confirm via `question-gate` that the question is a genuine `Product Manager` scope/behavior decision and not an engineering, QA, or workflow step a diagram skill can resolve.
|
|
38
|
+
- Present it as a compact **Quest-Tree Boss Gate** card matching the user's language:
|
|
39
|
+
- `π‘ BOSS GATE β Product Manager (<OD-ID>)`
|
|
40
|
+
- `βββ β` 1-line question
|
|
41
|
+
- `βββ π Recomendado: [A/B]` + 1 short sentence why
|
|
42
|
+
- `βββ β‘ Opciones` (`[A]` vs `[B]`)
|
|
43
|
+
- Wait for the user's confirmation before locking the criterion or proceeding.
|
|
44
|
+
|
|
45
|
+
## Execution Steps
|
|
46
|
+
|
|
47
|
+
1. Identify the user or system affected, the problem, the desired outcome, and the boundaries. For a fix, write expected vs. observed behavior and label suspected causes as hypotheses.
|
|
48
|
+
2. Assign stable IDs to observable criteria. For each, record the precondition, action, and expected result; include error or boundary behavior when requested. Keep the criteria in the canonical issue or PRD.
|
|
49
|
+
3. Read back the scope and criteria. Return the original artifact reference and criterion IDs to the coordinator. Leave ODD tracking to the host workflow.
|
|
50
|
+
|
|
51
|
+
## Companion Handoffs
|
|
52
|
+
|
|
53
|
+
For a testing handoff, look for `regression-testing`; for unresolved operational risks, consider `risk-scout`. Pass the canonical requirement and criterion IDs.
|
|
54
|
+
|
|
55
|
+
Check the active skill catalog for the named companion before relying on it. If availability is unknown and its help is needed, ask whether it is available; do not ask when equivalent evidence already satisfies the handoff. Never assume installation, install automatically, or transfer permissions.
|
|
56
|
+
|
|
57
|
+
## Output Contract
|
|
58
|
+
|
|
59
|
+
Return the canonical link or draft, scope and non-goals, numbered criteria, and unresolved blockers. Mark the requirements ready only when none of the unresolved decisions prevents verification.
|