@bbcsoftwarefactory/skills 1.1.4 β 1.2.0
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/index.json +1 -1
- package/dist/skills/delivery-coordinator/SKILL.md +4 -3
- package/dist/skills/delivery-coordinator/references/hud-output.md +46 -2
- package/dist/skills/delivery-coordinator/references/pr-handoff-template.md +97 -0
- package/dist/skills/issue-reviewer/SKILL.md +1 -1
- package/dist/skills/issue-reviewer/references/review-format.md +3 -2
- package/dist/skills/question-gate/SKILL.md +3 -3
- package/dist/skills/question-gate/references/diagram-routing.md +5 -2
- package/dist/skills/requirements-spec/SKILL.md +2 -2
- package/dist/skills/workflow-auditor/references/audit-protocol.md +2 -1
- package/package.json +1 -1
package/dist/index.json
CHANGED
|
@@ -5,7 +5,7 @@ license: Apache-2.0
|
|
|
5
5
|
compatibility: Requires Node.js 22.18+ (`@bbcsoftwarefactory/cli`) and Git for `bbc classify-change-lane`, `bbc check-worktree-guard`, and `bbc check-issue-claim` (Linux, macOS and Windows).
|
|
6
6
|
metadata:
|
|
7
7
|
author: bbc-skill-internals
|
|
8
|
-
version: "1.
|
|
8
|
+
version: "1.8"
|
|
9
9
|
pre_hook: "bbc check-issue-claim (references/issue-claim.md) + git worktree add -b feat/<task> + bbc-delivery-ledger.json (references/worktree-isolation.md)"
|
|
10
10
|
post_hook: "question-gate (bbc triage-question) + Quest-Tree HUD (references/hud-output.md)"
|
|
11
11
|
---
|
|
@@ -50,7 +50,7 @@ Use to scope a feature, investigate a fix, draft or file an issue, or implement
|
|
|
50
50
|
2. For the canonical issue, [claim it](references/issue-claim.md) first, continue only on `claimed-by-you`, record the `claim` stage, and move the issue on the GitHub Project v2 board (`read-approved-project-board` β `update-approved-project-status`) to `"Trabajando"` / `"Working"` / `"In Progress"` (or record an explicit `π‘ GAP` if the board or `project` token scope is unavailable). Before any authorized write or writer delegation, prepare and verify a dedicated linked worktree on `feat/<issue-number>-<slug>` from the remote's verified default branch, and verify it with `npx -y @bbcsoftwarefactory/cli check-worktree-guard`. Use the [isolation preflight](references/worktree-isolation.md); stop the affected work if isolation is unavailable. Start the ledger in that worktree with the worktree record, canonical `issue`, Project board status (or gap), and the stages already met. Then follow the host's ODD workflow and track large work by reference. Reuse a reproducible RED tied to the criterion and relevant baseline, or produce one before changing production code when a test is applicable. If a reported bug cannot be reproduced safely, document the gap; do not implement a speculative fix.
|
|
51
51
|
3. Make the smallest scoped change, following DDD and repository conventions. Prefer `skill-clean-architecture` for guidance. Rerun the focused test and applicable existing checks on the resulting revision. If no meaningful runnable test applies, document why and verify proportionately without claiming RED/GREEN.
|
|
52
52
|
4. After each implementation slice reaches GREEN, verify TypeSafe, EarlyReturn, and BigO on the slice diff before closing or committing it. Prefer `code-quality-gate` (`--working` or `--range`); equivalent evidence must cover all three checks on the same diff. If blocked, address the findings and rerun the affected tests and quality checks.
|
|
53
|
-
5. Commit the slice and open or update the PR through the host workflow when authorized; CI is owned by the platform team, and no companion skill covers this step. When the delivery implements a canonical GitHub issue, include `Closes #<n>` (or `Refs #<n>`) in the PR body **and** immediately go to that issue via `tool-depot` (`github-write` / `comment-approved-issue`) to comment the opened PR link (URL, branch, and head SHA) with a visual reference of the change so the issue is never left orphaned. Record the PR link, head SHA, CI results, andβwhen an issue existsβ`issue`, `issue_linked: true`, and the Tool Depot record in the ledger.
|
|
53
|
+
5. Draft the PR body using the lane-scaled [PR / PRD + Runbook + Risk Matrix contract](references/pr-handoff-template.md) and validate it offline with `npx -y @bbcsoftwarefactory/cli validate-pr-artifact --pr-body <file> --ledger <ledger>` (`P1`β`P3`; zero violations required). Commit the slice and open or update the PR through the host workflow when authorized; CI is owned by the platform team, and no companion skill covers this step. When the delivery implements a canonical GitHub issue, include `Closes #<n>` (or `Refs #<n>`) in the PR body **and** immediately go to that issue via `tool-depot` (`github-write` / `comment-approved-issue`) to comment the opened PR link (URL, branch, and head SHA) with a visual reference of the change so the issue is never left orphaned. Record the PR link, head SHA, CI results, andβwhen an issue existsβ`issue`, `issue_linked: true`, and the Tool Depot record in the ledger.
|
|
54
54
|
6. Run `greptile-review-loop` on every PR this workflow opens or updates, before the human handoff. The authorization to commit and publish that PR covers triggering its Greptile review and pushing in-scope fixes for confirmed findings to the same branch, within the loop's round budget. Require fresh Greptile evidence for the exact PR head. If Greptile is not configured, does not answer within the wait limit, or the budget ends, record the observed score (or unknown) and the open findings and continue: the gap goes to the Code Owner, it does not block the handoff.
|
|
55
55
|
7. Run `workflow-auditor` on the ledger of every PR this workflow opens or updates, after the Greptile loop and before the human handoff. Return each violation to the stage that owns it and rerun the audit after the fix; do not hand off a PR with open violations. Gaps travel with the PR.
|
|
56
56
|
8. Hand the PR, criteria, verification evidence, Greptile result, and audit verdict to the human Code Owner for review and merge. Requested changes return to step 3. If material operational risk remains or corrections expanded scope, prefer `risk-scout` for a read-only residual-risk assessment against the reviewed revision.
|
|
@@ -66,7 +66,7 @@ Check the active skill catalog for the named companion before relying on it. If
|
|
|
66
66
|
|
|
67
67
|
## Output Contract
|
|
68
68
|
|
|
69
|
-
In **human-facing chat turns**, render the compact **Game HUD + Traffic-Light (`π’` / `π‘` / `π΄`)** format in [hud-output.md](references/hud-output.md): short 1-line stage status, active `πΏ` branch/short-SHA (keep full worktree path, base SHA, commands, and YAML in `bbc-delivery-ledger.json`, PR body, or on `"detalle"`), and at most one `π‘ BOSS GATE` decision with `[A]`/`[B]`, recommendation
|
|
69
|
+
In **human-facing chat turns**, render the compact **Game HUD + Traffic-Light (`π’` / `π‘` / `π΄`)** format in [hud-output.md](references/hud-output.md): short 1-line stage status, active `πΏ` branch/short-SHA (keep full worktree path, base SHA, commands, and YAML in `bbc-delivery-ledger.json`, PR body, or on `"detalle"`), and at most one `π‘ BOSS GATE` decision with `[A]`/`[B]`, a recommendation carrying `β
Por quΓ©` and `β οΈ Riesgo` in one line each, and optional progress bars only for counted sets with a real denominator. Keep `observation` vs. `hypothesis` vs. `verified cause` distinct, and never promote a `π‘` gap or `π΄` failure to `π’`.
|
|
70
70
|
|
|
71
71
|
## References
|
|
72
72
|
|
|
@@ -77,4 +77,5 @@ In **human-facing chat turns**, render the compact **Game HUD + Traffic-Light (`
|
|
|
77
77
|
- [Search before filing an issue: reuse, reopen, or create](references/issue-dedup.md)
|
|
78
78
|
- [Claim the issue before working on it: rules CL1-CL12 and C1-C4](references/issue-claim.md)
|
|
79
79
|
- [Visual reference on every issue write](references/visual-reference.md)
|
|
80
|
+
- [PR / PRD + Runbook + Risk Matrix handoff contract](references/pr-handoff-template.md)
|
|
80
81
|
- [Synthetic exercise: Sleuth report to issue and regression test](references/sleuth-regression-exercise.md)
|
|
@@ -17,6 +17,49 @@ Use this **RPG Quest-Tree HUD** for **human-facing chat updates and decisions**
|
|
|
17
17
|
3. **Always verify first** via `question-gate` (`bbc triage-question`) before emitting a `π‘ BOSS GATE`. Never put QA, lint, or doc audits inside a decision prompt.
|
|
18
18
|
4. **Match the user's language** (`es` / `en` / `pt`) and keep each line crisp and scannable.
|
|
19
19
|
5. **Truthfulness stays intact:** never turn a `π‘` gap or `π΄` failure into `π’`, and keep `observation` vs. `hypothesis` clear in 1 short phrase.
|
|
20
|
+
6. **Every recommendation carries its risk** in the `β
` / `β οΈ` pair below. Bars are optional and only for counted sets.
|
|
21
|
+
|
|
22
|
+
## Recommendation with risk
|
|
23
|
+
|
|
24
|
+
Every `π Recomendado` says what it does, why, and what can break: three short lines at the same tree level. The question stays one line; the recommendation is the only place that carries the reasoning.
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
βββ π Recomendado: [A] <verb + exact object>
|
|
28
|
+
β βββ β
Por quΓ© Β· <verifiable evidence, not an opinion>
|
|
29
|
+
β βββ β οΈ Riesgo Β· <worst real case + whether it reverts>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
| Line | Must say | Must not say |
|
|
33
|
+
|---|---|---|
|
|
34
|
+
| what | `merge`, `cambiar RG4`, `postear #31` | "avanzar", "aplicar", "continuar" |
|
|
35
|
+
| `β
Por quΓ©` | `QA 12/12`, `3/40 casos`, `audit conforms` | "todo estΓ‘ bien", "parece seguro" |
|
|
36
|
+
| `β οΈ Riesgo` | the real worst case and its recovery (`revert` inmediato, sin vuelta) | "riesgo bajo" with no object |
|
|
37
|
+
|
|
38
|
+
- **Risk can change the recommendation.** When it is high and cannot be reverted, recommend the option that reduces exposure (`[B]`) even if it is slower, and say so in the `β οΈ` line.
|
|
39
|
+
- **No real risk is stated explicitly:** `β οΈ Riesgo Β· ninguno observado: cambio de solo lectura, sin migraciΓ³n`. Never invent a percentage, a probability, or a "15% de daΓ±o" figure; no evidence produces them.
|
|
40
|
+
- A quality check, a lint, or a doc audit is never a decision. They appear as evidence in `β
Por quΓ©`; the gate only asks what a person must approve.
|
|
41
|
+
|
|
42
|
+
## Progress bars (optional)
|
|
43
|
+
|
|
44
|
+
A progress bar shows how much of a counted set is done. It is optional, it never replaces the count, and it never appears without one.
|
|
45
|
+
|
|
46
|
+
Ten cells, one line, the count always beside the bar:
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
βββ π§ͺ QA Β·Β·Β·Β·Β·Β·Β·Β·Β· ββββββββββ 12/12 Β· π’
|
|
50
|
+
βββ π οΈ Pipeline Β·Β·Β·Β· ββββββββββ 7/10 Β· π‘ falta visual y review
|
|
51
|
+
βββ π ACs Β·Β·Β·Β·Β·Β·Β·Β·Β· ββββββββββ 2/8 Β· π‘ spec abierta
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Allowed: test results, closed pipeline stages, acceptance criteria, and evidence-source coverage in a support diagnosis. Never allowed: risk probability, confidence in a hypothesis, or any set whose total is unknown.
|
|
55
|
+
|
|
56
|
+
1. **No denominator, no bar.** Without "out of how many", state the status in words.
|
|
57
|
+
2. **A gap is never filled.** `β` marks what is unknown, and the unknown is named next to the bar.
|
|
58
|
+
3. **A bar never changes the light.** `ββββββββββ` under `π‘` stays `π‘`; nothing is half-green.
|
|
59
|
+
4. **The bar lives in the HUD, not in the gate.** Inside `π‘ BOSS GATE` there is no bar: decision, why, risk.
|
|
60
|
+
5. **No percentages.** A count is honest; `60%` invites inventing the rest.
|
|
61
|
+
|
|
62
|
+
Fallback when the terminal cannot render blocks: `[##########] 12/12`, `[#######---] 7/10`.
|
|
20
63
|
|
|
21
64
|
## Standard Quest-Tree HUD Template
|
|
22
65
|
|
|
@@ -38,8 +81,9 @@ Use this **RPG Quest-Tree HUD** for **human-facing chat updates and decisions**
|
|
|
38
81
|
β
|
|
39
82
|
βββ β <Single focused question?>
|
|
40
83
|
β
|
|
41
|
-
βββ π Recomendado: [A]
|
|
42
|
-
β
|
|
84
|
+
βββ π Recomendado: [A] <verb + exact object>
|
|
85
|
+
β βββ β
Por quΓ© Β· <verifiable evidence>
|
|
86
|
+
β βββ β οΈ Riesgo Β· <worst real case + whether it reverts>
|
|
43
87
|
β
|
|
44
88
|
βββ β‘ Opciones
|
|
45
89
|
βββ [A] <fast action>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# PR / PRD + Runbook + Risk Matrix Handoff Contract
|
|
2
|
+
|
|
3
|
+
Every PR opened or updated by `delivery-coordinator` follows a lane-scaled structure enforced offline by `bbc validate-pr-artifact` (rules **`P1`β`P3`**).
|
|
4
|
+
|
|
5
|
+
`bbc classify-change-lane` is the single source of truth for required sections (`required_pr_sections`):
|
|
6
|
+
|
|
7
|
+
| Lane | Required PR sections |
|
|
8
|
+
|---|---|
|
|
9
|
+
| `trivial` | `header`, `problem`, `source_of_truth`, `solution` |
|
|
10
|
+
| `standard` | `header`, `problem`, `impact`, `source_of_truth`, `solution`, `risk_matrix`, `runbook_compact`, `gaps` |
|
|
11
|
+
| `high-risk` | `header`, `problem`, `impact`, `source_of_truth`, `solution`, `risk_matrix`, `five_scenarios`, `runbook_full`, `gaps` |
|
|
12
|
+
|
|
13
|
+
## Required Header
|
|
14
|
+
|
|
15
|
+
Include these four fields at the top of the PR body:
|
|
16
|
+
|
|
17
|
+
```markdown
|
|
18
|
+
- **lane:** trivial | standard | high-risk
|
|
19
|
+
- **readiness:** conforms | gaps | blocked
|
|
20
|
+
- **canonical_issue:** <owner/repo>#<n>
|
|
21
|
+
- **manual_deploy_action:** yes | no
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Template (`standard` & `high-risk`)
|
|
25
|
+
|
|
26
|
+
Both English and Spanish section headings are accepted by `bbc validate-pr-artifact`:
|
|
27
|
+
|
|
28
|
+
```markdown
|
|
29
|
+
## 1. Problem / ΒΏCuΓ‘l es el problema?
|
|
30
|
+
- **Observed:** ...
|
|
31
|
+
- **Expected:** ...
|
|
32
|
+
|
|
33
|
+
## 2. Impact / ΒΏCΓ³mo afecta?
|
|
34
|
+
Who/what is affected (users, services, workflows, operational cost) and blast radius.
|
|
35
|
+
|
|
36
|
+
## 3. Source of Truth / Origen de la verdad
|
|
37
|
+
At least one typed verifiable reference (`issue`, `pr`, `test_red_green`, `sanitized_log`, `visual_image`, `sanitized_message`). Never fabricate evidence or include secrets/PII.
|
|
38
|
+
| Type | Reference | What it proves |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| issue | owner/repo#123 | Approved scope and acceptance criteria |
|
|
41
|
+
| test_red_green | `node --test ...` | Failed RED before fix, passed GREEN after |
|
|
42
|
+
| visual_image |  | Sanitized diagram or screenshot (`V1`) |
|
|
43
|
+
|
|
44
|
+
## 4. Solution / SoluciΓ³n
|
|
45
|
+
Scoped architectural change, key files/layers touched, and what is explicitly out of scope.
|
|
46
|
+
|
|
47
|
+
## 5. Risk Matrix / Matriz de riesgos
|
|
48
|
+
Traffic-light rules (`P3`):
|
|
49
|
+
- `Unknown` / `Unrated` likelihood or impact MUST NEVER be marked `π’`.
|
|
50
|
+
- Any unmitigated `π΄` (missing concrete mitigation or evidence) blocks handoff.
|
|
51
|
+
- Header `readiness` cannot be `conforms` (`π’`) when any `π‘` or `π΄` risk row exists.
|
|
52
|
+
|
|
53
|
+
| Light | ID | Risk | Likelihood | Impact | Confidence | Evidence | Mitigation | Early signal |
|
|
54
|
+
|---|---|---|---|---|---|---|---|---|
|
|
55
|
+
| π’ | R1 | ... | Low | Low | High | `test` | ... | ... |
|
|
56
|
+
| π‘ | R2 | ... | Medium | Medium | Medium | `#123` | ... | ... |
|
|
57
|
+
|
|
58
|
+
### Progressive Scenarios (required on `high-risk`)
|
|
59
|
+
1. Happy path: ...
|
|
60
|
+
2. Recoverable failure: ...
|
|
61
|
+
3. Partial degradation: ...
|
|
62
|
+
4. Major incident (reference risk ID): ...
|
|
63
|
+
5. Cascading failure (reference risk ID): ...
|
|
64
|
+
|
|
65
|
+
## 6. Runbook
|
|
66
|
+
Required on `standard` (`runbook_compact`):
|
|
67
|
+
- **pre_checks:** ...
|
|
68
|
+
- **deploy_steps:** ...
|
|
69
|
+
- **post_deploy_verification:** ...
|
|
70
|
+
- **rollback_steps:** ...
|
|
71
|
+
|
|
72
|
+
Additional fields required on `high-risk` (`runbook_full`):
|
|
73
|
+
- **deploy_dependencies:** ...
|
|
74
|
+
- **abort_signals:** ...
|
|
75
|
+
- **data_reversibility:** ...
|
|
76
|
+
- **rollback_verification:** ...
|
|
77
|
+
- **release_owner:** @handle
|
|
78
|
+
|
|
79
|
+
## 7. Gaps
|
|
80
|
+
List every explicit `π‘ GAP` (or `None` when zero gaps remain).
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Validation Command
|
|
84
|
+
|
|
85
|
+
Validate the drafted PR body before opening or updating the PR:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
npx -y @bbcsoftwarefactory/cli validate-pr-artifact \
|
|
89
|
+
--pr-body pr-body.md \
|
|
90
|
+
--lane standard \
|
|
91
|
+
--ledger "$(git rev-parse --git-path bbc-delivery-ledger.json)" \
|
|
92
|
+
--format hud
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
- Exit `0` (`conforms` or `gaps`): ready for PR publish / Code Owner handoff.
|
|
96
|
+
- Exit `1` (`violations`): fix every `P1`/`P2`/`P3` violation and re-run before handoff.
|
|
97
|
+
- Exit `2` (`unusable`): fix CLI arguments or unreadable input files.
|
|
@@ -5,7 +5,7 @@ license: Apache-2.0
|
|
|
5
5
|
compatibility: Requires Node.js 22.18+ (`@bbcsoftwarefactory/cli`) and an authenticated gh CLI for `fetch-issue-attachments`; `plan-issue-triage` runs offline.
|
|
6
6
|
metadata:
|
|
7
7
|
author: bbc-skill-internals
|
|
8
|
-
version: "1.
|
|
8
|
+
version: "1.4"
|
|
9
9
|
pre_hook: "tool-depot (github-read / github-write / ssh)"
|
|
10
10
|
post_hook: "question-gate (bbc triage-question --require-hud)"
|
|
11
11
|
---
|
|
@@ -89,8 +89,9 @@ When reviewing a bug or incident claim, validate both codebase/PR state and runt
|
|
|
89
89
|
β
|
|
90
90
|
βββ β ΒΏAplico este tΓtulo y descripciΓ³n mejorados y el triage (asignar a @<autor>, etiquetas y P<n>) en el issue #<number>? (o ΒΏcomento y cierro como falsa alarma / ya resuelto?)
|
|
91
91
|
β
|
|
92
|
-
βββ π Recomendado: [A]
|
|
93
|
-
β
|
|
92
|
+
βββ π Recomendado: [A] <verbo + objeto exacto del issue>
|
|
93
|
+
β βββ β
Por quΓ© Β· <evidencia verificada: adjunto, cΓ³digo, logs>
|
|
94
|
+
β βββ β οΈ Riesgo Β· <peor caso real + si se puede revertir>
|
|
94
95
|
β
|
|
95
96
|
βββ β‘ Opciones
|
|
96
97
|
βββ [A] Actualizar issue #<number> en GitHub, aplicar el triage y comentarlo (o comentar/cerrar si es falsa alarma/resuelto)
|
|
@@ -5,7 +5,7 @@ license: Apache-2.0
|
|
|
5
5
|
compatibility: Requires Node.js 22.18+ for the bundled @bbcsoftwarefactory/cli triage command.
|
|
6
6
|
metadata:
|
|
7
7
|
author: bbc-skill-internals
|
|
8
|
-
version: "1.
|
|
8
|
+
version: "1.2"
|
|
9
9
|
pre_hook: "AGENTS.md -> npx -y @bbcsoftwarefactory/cli triage-question --question"
|
|
10
10
|
post_hook: "stop / AfterAgent / experimental.idle -> npx -y @bbcsoftwarefactory/cli triage-question --stdin --format <client>"
|
|
11
11
|
post_install: "configure client stop hook JSON per references/client-hooks.md"
|
|
@@ -32,7 +32,7 @@ Run before finishing a turn with a question or pausing to ask the user what to d
|
|
|
32
32
|
| `allow_question` | Genuine human gate only (`human_approval_required`). Present the single focused decision with your recommendation and wait for the person. |
|
|
33
33
|
| `block_question` (`do_not_ask`) | Do **not** ask the blocked clause. Execute the named `resolved_by` diagram skill(s) (or proceed directly if `already_authorized`), then rerun the gate if a separate human approval still remains. |
|
|
34
34
|
| `block_question` with a `needs_classification` clause | No skill or human rule recognised the clause. Route it to its owning skill, or, if a person must decide, declare the owner with a `π‘ BOSS GATE β <Role>` header (`PM`, `Tech Lead`, `Commit & PR`, `Code Owner`, `Release Owner`) and rerun the gate: a valid declared role turns it into `allow_question` for that role. An invented role stays blocked. |
|
|
35
|
-
| `block_format` | Reformat the human decision or choice prompt using the Quest-Tree HUD + `π‘ BOSS GATE` (`β`, `π Recomendado: [A]`, `β‘ Opciones` with `[A]`/`[B]`) before stopping. |
|
|
35
|
+
| `block_format` | Reformat the human decision or choice prompt using the Quest-Tree HUD + `π‘ BOSS GATE` (`β`, `π Recomendado: [A]` with `β
Por quΓ©` and `β οΈ Riesgo`, `β‘ Opciones` with `[A]`/`[B]`) before stopping. |
|
|
36
36
|
| `unusable` | Fix invalid CLI arguments or malformed ledger JSON before proceeding. |
|
|
37
37
|
|
|
38
38
|
## Execution Steps
|
|
@@ -56,7 +56,7 @@ Check the active skill catalog for the named companion before relying on it; if
|
|
|
56
56
|
## Output Contract
|
|
57
57
|
|
|
58
58
|
- **Machine / hook mode (`triage-question`):** return `verdict`, `resolved_by`, `human_gates`, and `rewrite_suggestion` (if any) without leaking secrets, tokens, or raw logs.
|
|
59
|
-
- **Human-facing chat mode (`allow_question`):** format the single isolated `human_approval_required` gate as a compact **Quest-Tree Boss Gate** (`π‘ BOSS GATE β <Role>`, `β` 1-line question, `π Recomendado: [A]`, `β‘ Opciones: [A] / [B]`), matching the user's language for fast decisions. See [diagram-routing.md](references/diagram-routing.md#agile-decision-card).
|
|
59
|
+
- **Human-facing chat mode (`allow_question`):** format the single isolated `human_approval_required` gate as a compact **Quest-Tree Boss Gate** (`π‘ BOSS GATE β <Role>`, `β` 1-line question, `π Recomendado: [A]` with `β
Por quΓ©` and `β οΈ Riesgo`, `β‘ Opciones: [A] / [B]`), matching the user's language for fast decisions. See [diagram-routing.md](references/diagram-routing.md#agile-decision-card).
|
|
60
60
|
|
|
61
61
|
## References
|
|
62
62
|
|
|
@@ -49,10 +49,13 @@ When `verdict` is `allow_question`, present the remaining `human_approval_requir
|
|
|
49
49
|
β
|
|
50
50
|
βββ β <1-line question?>
|
|
51
51
|
β
|
|
52
|
-
βββ π Recomendado: [A]
|
|
53
|
-
β
|
|
52
|
+
βββ π Recomendado: [A] <verb + exact object>
|
|
53
|
+
β βββ β
Por quΓ© Β· <verifiable evidence>
|
|
54
|
+
β βββ β οΈ Riesgo Β· <worst real case + whether it reverts>
|
|
54
55
|
β
|
|
55
56
|
βββ β‘ Opciones
|
|
56
57
|
βββ [A] <action>
|
|
57
58
|
βββ [B] <action>
|
|
58
59
|
```
|
|
60
|
+
|
|
61
|
+
The `β
` / `β οΈ` pair is required; the gate format check only looks for `BOSS GATE`, `Recomendado:` and `[A]`/`[B]`, so this pair is the skill's contract, not the CLI's. See [the recommendation and risk rules](../../delivery-coordinator/references/hud-output.md#recommendation-with-risk).
|
|
@@ -4,7 +4,7 @@ description: "Trigger: PRD, product requirements, SPEC, acceptance criteria. Tur
|
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: bbc-skill-internals
|
|
7
|
-
version: "1.
|
|
7
|
+
version: "1.2"
|
|
8
8
|
post_hook: "question-gate (open product decisions -> BOSS GATE)"
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -38,7 +38,7 @@ When asking the user to resolve an open decision (never auto-approve on their be
|
|
|
38
38
|
- Present it as a compact **Quest-Tree Boss Gate** card matching the user's language:
|
|
39
39
|
- `π‘ BOSS GATE β Product Manager (<OD-ID>)`
|
|
40
40
|
- `βββ β` 1-line question
|
|
41
|
-
- `βββ π Recomendado: [A/B]`
|
|
41
|
+
- `βββ π Recomendado: [A/B] <acciΓ³n concreta>`, `β
Por quΓ©` (la evidencia) y `β οΈ Riesgo` (quΓ© se rompe si sale mal)
|
|
42
42
|
- `βββ β‘ Opciones` (`[A]` vs `[B]`)
|
|
43
43
|
- Wait for the user's confirmation before locking the criterion or proceeding.
|
|
44
44
|
|
|
@@ -37,13 +37,14 @@ Check each item against the evidence the ledger points to. Report any mismatch a
|
|
|
37
37
|
- **Issue claim (`C1`β`C4`):** apply the [semantic checks of the claim protocol](../../delivery-coordinator/references/issue-claim.md#semantic-checks-for-the-auditor-llm): the `check` and `verify` verdicts are `bbc check-issue-claim` output for reads made in this delivery, the claimant is the authorizing person, a handover cites the holder's or Tech Lead's message, and a delivery that stopped before its PR released the claim.
|
|
38
38
|
- **Issue triage (`I1`β`I2`):** the [triage](../../issue-reviewer/references/triage.md) writes match the `bbc plan-issue-triage` commands the person approved, the only assignee added is the issue author, and the later comment states the assignee, the label changes, the priority with its rationale, and any gap.
|
|
39
39
|
- **Visual reference (`V1`):** every issue publish, update, or comment, including the PR back-link, embeds the image recorded in `visual`, and the image is sanitized. A stated gap (`G2`) must also appear in the issue text.
|
|
40
|
+
- **PR artifact, Runbook & Risk Matrix (`P1`β`P3`):** run `npx -y @bbcsoftwarefactory/cli validate-pr-artifact --pr-body <file> --ledger <ledger>` against the opened/updated PR body and verify zero violations: `P1` lane & required sections match `classify-change-lane`, `P2` typed verifiable Source of Truth + visual/`π‘ GAP` + ledger cross-check + zero secret/PII leakage, and `P3` traffic-light Risk Matrix (`Unknown`/`Unrated` never `π’`, unmitigated `π΄` blocks, readiness coherent with worst row) plus lane-appropriate Runbook (`runbook_compact` on `standard`, `five_scenarios` + `runbook_full` on `high-risk`). See [pr-handoff-template.md](../../delivery-coordinator/references/pr-handoff-template.md).
|
|
40
41
|
- **Tool use (`T1`):** if the session's tool calls are visible, every covered SSH, public web, or GitHub operation in them appears in `tool_uses`. A call that is missing is `T1`. A call made after a `denied` or `needs-approval` decision for the same target, through any tool or agent, is `T2`.
|
|
41
42
|
- **Authorizations (`A1`, `A2`):** each one is traceable to a person's message or decision, and its scope covers what was done.
|
|
42
43
|
|
|
43
44
|
## 4. Hand back
|
|
44
45
|
|
|
45
46
|
- `conforms` or `gaps`: return the report to `delivery-coordinator` for the Code Owner handoff. Gaps travel with the PR.
|
|
46
|
-
- `violations`: return each one to the stage that owns it: `W1` and `K1` to Delivery Coordinator, `S*` and `E*` to the earliest missing or failing stage, `Q1` to `code-quality-gate`, `R1` to `greptile-review-loop`, `R2` to Delivery Coordinator (link PR back on canonical issue via Tool Depot), `V1` to the skill that wrote on the issue (`delivery-coordinator` or `issue-reviewer`), `D1` to Delivery Coordinator (search before filing), `I*` to `issue-reviewer` (triage), `C*` to Delivery Coordinator (claim the issue; a handover goes to the person who holds it), `A*`, `H*`, and `T5` to the person whose decision is missing, and other `T*` rules to the requesting skill and `tool-depot`. Rerun the audit after the fix.
|
|
47
|
+
- `violations`: return each one to the stage that owns it: `W1` and `K1` to Delivery Coordinator, `S*` and `E*` to the earliest missing or failing stage, `Q1` to `code-quality-gate`, `R1` to `greptile-review-loop`, `R2` to Delivery Coordinator (link PR back on canonical issue via Tool Depot), `V1` to the skill that wrote on the issue (`delivery-coordinator` or `issue-reviewer`), `P1`β`P3` to Delivery Coordinator (or `risk-scout` for `P3` high-risk scenarios/matrix), `D1` to Delivery Coordinator (search before filing), `I*` to `issue-reviewer` (triage), `C*` to Delivery Coordinator (claim the issue; a handover goes to the person who holds it), `A*`, `H*`, and `T5` to the person whose decision is missing, and other `T*` rules to the requesting skill and `tool-depot`. Rerun the audit after the fix.
|
|
47
48
|
- `unusable`: report what is missing. Do not issue a verdict.
|
|
48
49
|
|
|
49
50
|
A `conforms` verdict is not an approval. It does not replace Greptile, the Code Owner's review, or the Release Owner's decision, and it grants no permission.
|
package/package.json
CHANGED