bmad-method-test-architecture-enterprise 4.3.0 → 4.4.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/.claude-plugin/marketplace.json +1 -1
- package/cli/evaluate.js +6 -2
- package/cli/lib/evaluate/check.js +217 -11
- package/cli/lib/evaluate/corpus-index.js +52 -0
- package/cli/lib/evaluate/held-refusal.js +2 -3
- package/cli/lib/evaluate/run.js +16 -3
- package/cli/lib/evaluate/schemas/evaluation.schema.json +13 -0
- package/cli/lib/evaluate/score-inputs.js +13 -2
- package/package.json +2 -2
- package/skills/bmad-tea/SKILL.md +2 -2
- package/skills/bmad-tea-automate/SKILL.md +2 -2
- package/skills/bmad-tea-automate/red/instructions.md +1 -1
- package/skills/bmad-tea-automate/red/steps-c/step-05-validate-and-complete.md +1 -1
- package/skills/bmad-tea-automate/red/steps-e/step-02-apply-edit.md +1 -1
- package/skills/bmad-tea-automate/red/steps-v/step-01-validate.md +1 -1
- package/skills/bmad-tea-automate/resources/test-generation-routing.md +1 -1
- package/skills/bmad-tea-automate/steps-c/step-04-validate-and-summarize.md +1 -1
- package/skills/bmad-tea-automate/steps-e/step-02-apply-edit.md +1 -1
- package/skills/bmad-tea-automate/steps-v/step-01-validate.md +1 -1
- package/skills/bmad-tea-evaluate/SKILL.md +3 -3
- package/skills/bmad-tea-evaluate/assets/README.md +1 -0
- package/skills/bmad-tea-evaluate/assets/gap-report.template.md +29 -0
- package/skills/bmad-tea-evaluate/references/ci.md +13 -0
- package/skills/bmad-tea-evaluate/references/corpus.md +2 -2
- package/skills/bmad-tea-evaluate/references/gaps.md +4 -0
- package/skills/bmad-tea-framework/SKILL.md +2 -2
- package/skills/bmad-tea-framework/resources/setup-phase-completion.md +1 -1
- package/skills/bmad-tea-framework/resources/setup-routing.md +1 -1
- package/skills/bmad-tea-nfr/SKILL.md +2 -2
- package/skills/bmad-tea-nfr/steps-c/step-05-generate-report.md +1 -1
- package/skills/bmad-tea-nfr/steps-e/step-02-apply-edit.md +1 -1
- package/skills/bmad-tea-nfr/steps-v/step-01-validate.md +1 -1
- package/skills/bmad-tea-teach-me-testing/SKILL.md +2 -2
- package/skills/bmad-tea-teach-me-testing/steps-c/step-05-completion.md +1 -1
- package/skills/bmad-tea-teach-me-testing/steps-e/step-e-02-apply-edits.md +1 -1
- package/skills/bmad-tea-teach-me-testing/steps-v/step-v-01-validate.md +1 -1
- package/skills/bmad-tea-test-design/SKILL.md +2 -2
- package/skills/bmad-tea-test-design/steps-c/step-01-detect-mode.md +2 -2
- package/skills/bmad-tea-test-design/steps-c/step-05-generate-output.md +1 -1
- package/skills/bmad-tea-test-design/steps-e/step-02-apply-edit.md +1 -1
- package/skills/bmad-tea-test-design/steps-v/step-01-validate.md +1 -1
- package/skills/bmad-tea-test-review/SKILL.md +2 -2
- package/skills/bmad-tea-test-review/steps-c/step-04-generate-report.md +1 -1
- package/skills/bmad-tea-test-review/steps-e/step-02-apply-edit.md +1 -1
- package/skills/bmad-tea-test-review/steps-v/step-01-validate.md +1 -1
- package/skills/bmad-tea-trace/SKILL.md +2 -2
- package/skills/bmad-tea-trace/steps-c/step-05-gate-decision.md +1 -1
- package/skills/bmad-tea-trace/steps-e/step-02-apply-edit.md +1 -1
- package/skills/bmad-tea-trace/steps-v/step-01-validate.md +1 -1
- package/skills/bmod-tea/bmod.toml +1 -1
- package/skills/bmod-tea/help/help.md +2 -2
|
@@ -135,7 +135,7 @@ Preserve or include the loop's resolved YAML frontmatter keys `test_mode`, `test
|
|
|
135
135
|
Execute the non-empty `workflow.on_complete` retained from selected-mode activation as the final terminal instruction, then exit normally; never run the other mode's hook.
|
|
136
136
|
If it was not retained, resolve it from the selected key:
|
|
137
137
|
|
|
138
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key {workflow-key}.on_complete`
|
|
138
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key {workflow-key}.on_complete`
|
|
139
139
|
|
|
140
140
|
If the resolver succeeds and returns a non-empty value for `{workflow-key}.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
141
141
|
|
|
@@ -66,7 +66,7 @@ Summarize the edits applied.
|
|
|
66
66
|
Execute the non-empty `workflow.on_complete` retained from selected-mode activation as the final terminal instruction, then exit normally; never run the other mode's hook.
|
|
67
67
|
If it was not retained, resolve it from the selected key:
|
|
68
68
|
|
|
69
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key {workflow-key}.on_complete`
|
|
69
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key {workflow-key}.on_complete`
|
|
70
70
|
|
|
71
71
|
If the resolver succeeds and returns a non-empty value for `{workflow-key}.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
72
72
|
|
|
@@ -92,7 +92,7 @@ Replace the `IN_PROGRESS` body in this run's reserved `{outputFile}` with the fi
|
|
|
92
92
|
Execute the non-empty `workflow.on_complete` retained from selected-mode activation as the final terminal instruction, then exit normally; never run the other mode's hook.
|
|
93
93
|
If it was not retained, resolve it from the selected key:
|
|
94
94
|
|
|
95
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key {workflow-key}.on_complete`
|
|
95
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key {workflow-key}.on_complete`
|
|
96
96
|
|
|
97
97
|
If the resolver succeeds and returns a non-empty value for `{workflow-key}.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
98
98
|
|
|
@@ -38,7 +38,7 @@ Before resolving customizations or running hooks, inspect `{project-root}/_bmad/
|
|
|
38
38
|
|
|
39
39
|
### Step 1: Resolve the Workflow Block
|
|
40
40
|
|
|
41
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow`
|
|
41
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow`
|
|
42
42
|
|
|
43
43
|
**If the script fails**, resolve the `workflow` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:
|
|
44
44
|
|
|
@@ -58,7 +58,7 @@ Treat every entry in `{workflow.persistent_facts}` as foundational context you c
|
|
|
58
58
|
|
|
59
59
|
### Step 4: Load Config
|
|
60
60
|
|
|
61
|
-
Run `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core --key modules.tea`. If the script fails, merge `{project-root}/_bmad/config.toml`, `{project-root}/_bmad/custom/config.toml` and `{project-root}/_bmad/custom/config.user.toml` yourself, in that order, with the merge rules above. If `_bmad/config.toml` is missing or has no `modules.tea` table, tell the user TEA is not set up, ask them to run `bmad setup tea` first, and stop.
|
|
61
|
+
Run `uv run "{project-root}/_bmad/scripts/resolve_config.py" --project-root "{project-root}" --key core --key modules.tea`. If the script fails, merge `{project-root}/_bmad/config.toml`, `{project-root}/_bmad/custom/config.toml` and `{project-root}/_bmad/custom/config.user.toml` yourself, in that order, with the merge rules above. If `_bmad/config.toml` is missing or has no `modules.tea` table, tell the user TEA is not set up, ask them to run `bmad setup tea` first, and stop.
|
|
62
62
|
|
|
63
63
|
Each `core` and `modules.tea` key is available as `{<key>}`, and as `config.<key>` in later steps. Replace `{project-root}` inside a value with the project root. Setup answers are strings: read `"true"` and `"false"` as booleans.
|
|
64
64
|
|
|
@@ -140,7 +140,7 @@ Inspect the adopter's repository, place each check in a tier, write `<evaluation
|
|
|
140
140
|
|
|
141
141
|
## On Complete
|
|
142
142
|
|
|
143
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
143
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
144
144
|
|
|
145
145
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
146
146
|
|
|
@@ -19,6 +19,7 @@ The one exception is the scoring-policy template's `parentDigest: null`, which i
|
|
|
19
19
|
When the judge is the only model the evaluation uses, the file carries `modelSnapshot: "none"`, `"systemPromptDigest": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"` (the digest of the empty byte string, which `tea-evaluate check` requires beside `none`), and the `judge` block.
|
|
20
20
|
An evaluation in which no model runs anywhere (target, evaluator and judge) leaves the file out.
|
|
21
21
|
- `evaluation-ci-plan.template.json` becomes `ci/evaluation-ci-plan.json`, the platform-neutral CI plan. It lists each check once per tier it can run on, at AD-10's default tier with an empty `placement.reason`. Stage 12 keeps the entries that fit the adopter's repository, and `references/ci.md` says how to fill them.
|
|
22
|
+
- `gap-report.template.md` becomes `{test_artifacts}/evaluate/<evaluationId>/gap-report.md`, the Stage 11 gap report. Its first section is the evaluation brief, a plain-language summary filled last; `references/gaps.md` says how to fill the rest.
|
|
22
23
|
- `evaluation-folder.gitignore` becomes the evaluation folder's `.gitignore`, which keeps `runs/` and the compile and seal outputs (`compiled-contract.json`, `sealed-brief.json`) out of the adopter's commits.
|
|
23
24
|
- `evaluators/command-evaluator.mjs` and `evaluators/mapping.json` are starters for an adopter-owned `command` evaluator. Implement its oracle judgment and bind each stable row key to a contract oracle or rubric criterion before running it. `evaluators/frameworks.json` is the declaration every `command` evaluator carries beside them, here the empty list of an evaluator with no installed framework dependency. `evaluators/LEARNED.md` records primary sources, the installed `package@version`, known pass and fail output, and contradictions for an unfamiliar framework.
|
|
24
25
|
- `evaluators/agentevals-trajectory.mjs` and `evaluators/promptfoo-assertions.mjs` are framework-specific starters. Copy one into the adopter's `evaluator/` folder with its reference trajectory or assertion file, install that framework in the evaluation folder, and fill `evaluator/mapping.json` for its keys. The evaluator guide states each template's input and configuration. Each pairs with `evaluators/installed-version.mjs`, the version probe for a Node package (its argument is the package name), and a declaration template, `evaluators/agentevals-frameworks.json` or `evaluators/promptfoo-frameworks.json`, copied to `evaluator/frameworks.json` with `<installed version>` replaced.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Gap report: reservation review skill
|
|
2
|
+
|
|
3
|
+
## Evaluation brief
|
|
4
|
+
|
|
5
|
+
Write this section last, in plain words, for a reader who has not seen the evaluation, and refresh it after every rescore. Copy every verdict, count and rate from eval-quality's artifacts; compute none. Replace each example line with the facts of this evaluation.
|
|
6
|
+
|
|
7
|
+
- **What was tested:** the reservation review skill, through `tea-skill-runner`, on B-001 (approve an eligible request and cite the rule) and B-002 (decline an over-limit request without attempting a reservation).
|
|
8
|
+
- **Verdict:** CONCERNS on the development partition, from the evidence artifact of score invocation `<scoreInvocationId>`.
|
|
9
|
+
- **What it means:** the skill behaves correctly on every probe that ran, but the contract still has a coverage gap, so the result is not yet strong enough to gate a release.
|
|
10
|
+
- **Caught:** P-005 (B-002, the limit rule relaxed) caught 3 of 3 valid trials; P-004 (a degenerate "always decline" answer) was caught by the B-001 oracle.
|
|
11
|
+
- **Not caught:** the `malformed-input` discipline rule is unsatisfied; G-001 below records the repair in progress.
|
|
12
|
+
- **Limits:** the held-out partition has not run yet; the target's tool calls are read from stdout only; three trials per arm, the policy's minimum.
|
|
13
|
+
- **Next step:** close G-001, rerun and rescore development, then ask the adopter to confirm readiness for the held-out run.
|
|
14
|
+
- **Links:** run `<invocationId>`, score `<scoreInvocationId>`, `runs/<invocationId>/gap-view.json`, `runs/<invocationId>/scores/<scoreInvocationId>/strength-aggregate.json`, `ci/evaluation-ci-plan.json` and the pull request.
|
|
15
|
+
|
|
16
|
+
## Gaps
|
|
17
|
+
|
|
18
|
+
### G-001: the malformed-input rule is unsatisfied
|
|
19
|
+
|
|
20
|
+
- **Engine outcome or failed check:** a `coverageGaps` entry for `malformed-input` with `waiverId: null`, from `eval-quality 0` (CONCERNS).
|
|
21
|
+
- **Cited observation or diagnostic:** the evidence artifact's `coverageGaps` for operation `review-reservation`.
|
|
22
|
+
- **Prior invocation:** run `<invocationId>`, score `<scoreInvocationId>`.
|
|
23
|
+
- **Repair:** bind `type-violating` on `stdin.requestKey` in a new step and address it with an oracle check.
|
|
24
|
+
- **New invocation:** run `<invocationId>`, score `<scoreInvocationId>`.
|
|
25
|
+
- **Before and after:** CONCERNS with one open coverage gap, then PASS with none; P-005's defect component unchanged.
|
|
26
|
+
|
|
27
|
+
## Held-out results
|
|
28
|
+
|
|
29
|
+
Copy each held-out row as `gap-view.json` gives it: probe ID, class and outcome. Never copy a held-out input or expected answer.
|
|
@@ -254,3 +254,16 @@ Invoke `bmad-tea-framework` with explicit CI setup scope and Edit operation on t
|
|
|
254
254
|
Framework's CI phase renders each `gates` entry as a wait of the named job on the evaluation job of the tier, and its summary reports the edit to the job, a name that matches no job and a conflicting gate, so relay that report to the adopter.
|
|
255
255
|
When the plan gates a job, invoke it on the workflow file that holds that job.
|
|
256
256
|
When that skill is not installed, give the adopter the request and the plan's path and record the hand-off as an open item in the inspection record. Stage 12 is complete when the plan passes `check` and the hand-off is made; a declined baseline or a missing `bmad-tea-framework` stays a named open item in the `## CI` section and does not reopen the stage. Finish with the closing summary: the placement table, the deviations and their reasons, the secrets the live tiers need (the names from `environmentKeys`), the gates adopted, the baseline still to accept, every tier that exited non-zero with the stage that owns its repair, and each publish or deploy job that waits for the evaluation job through `gates`, with every such job the plan leaves ungated and the reason.
|
|
257
|
+
|
|
258
|
+
## Before you open the PR
|
|
259
|
+
|
|
260
|
+
Open the pull request that adds or changes the evaluation only when every item below holds. Each item uses a command the stages above already run, so the checklist adds none. Record each item with its evidence in the `## CI` section, and name an item that does not hold as an open item.
|
|
261
|
+
|
|
262
|
+
1. The inputs are committed: `contract.json`, `evaluation.json`, `requirements.md`, `corpus/`, `probes/`, `mutations/`, `policy/`, `adapter/`, `evaluator/`, `corpus-index.json` and `ci/evaluation-ci-plan.json`, with `npm exec --prefix {tea_evaluations_folder} -- tea-evaluate check --evaluation <evaluation-folder>` exiting 0 over them.
|
|
263
|
+
2. A development run was made over that commit: `npm exec --prefix {tea_evaluations_folder} -- tea-evaluate run --evaluation <evaluation-folder> --partition development` after the last commit, whose `run.json` records `dirty: false` (`--partition` only when `evaluation.json` declares a `partitionPlan`).
|
|
264
|
+
3. That run was scored with `npm exec --prefix {tea_evaluations_folder} -- tea-evaluate score --evaluation <evaluation-folder> --run <invocationId>`, and its evidence was reviewed: every observation an oracle requires was recorded, so no probe reads `unreached`, `abstained` or `oracle-error`.
|
|
265
|
+
4. The baseline was accepted from that scored run with `npm exec --prefix {tea_evaluations_folder} -- tea-evaluate compare --evaluation <evaluation-folder> --accept`, and `baseline/` is committed in the same change.
|
|
266
|
+
5. The held-out partition stayed frozen and independent: the gap loop read held-out results only through `gap-view.json` and edited no file under `corpus/held-out/`, and `check` prints no `held-out-drift` warning, so the newest scored held-out run still describes the committed held-out material.
|
|
267
|
+
6. `npm exec --prefix {tea_evaluations_folder} -- tea-evaluate ci --evaluation <evaluation-folder> --tier pr` exits 0.
|
|
268
|
+
7. The repository's own pull request gates, the checks the merge flow inspection recorded as required, pass on the branch.
|
|
269
|
+
8. The evaluation brief exists: `{test_artifacts}/evaluate/<evaluationId>/gap-report.md` opens with a filled `## Evaluation brief`.
|
|
@@ -20,10 +20,10 @@ Both tool-use rows of the inspection mapping (a calling agent and a tool server)
|
|
|
20
20
|
## Corpus rules and layout
|
|
21
21
|
|
|
22
22
|
- Put representative inputs in `corpus/` and refer to them from the interaction plan. Add negative and malformed inputs that distinguish a disciplined response from a plausible shortcut.
|
|
23
|
-
- Keep at least one `zero-action` probe with `expectedClean: true` and no defects as a clean control. For every mandatory-action behavior, add a `zero-action` defect probe whose signature exposes the missing action. A clean control never fills a strength floor, because eval-quality's strength vector leaves every `expectedClean` probe out. Declare a `zero-action` floor only when a `zero-action` defect probe sits in the partition `baseline/` records, which the twin run repeats (the whole corpus for a `both` baseline, the corpus without `heldOutProbes` for a development baseline), and in the `heldOutProbes` list; otherwise declare `defect` alone.
|
|
23
|
+
- Keep at least one `zero-action` probe with `expectedClean: true` and no defects as a clean control. For every mandatory-action behavior, add a `zero-action` defect probe whose signature exposes the missing action, and list the behavior in `evaluation.json`'s optional `mandatoryActionBehaviors` (`["B-001"]`): `tea-evaluate check` then requires, for each listed behavior, a probe with `probeClass` `zero-action`, `expectedClean: false` and a defect on that behavior, and names a listed behavior that has none. A clean control never fills a strength floor, because eval-quality's strength vector leaves every `expectedClean` probe out. Declare a `zero-action` floor only when a `zero-action` defect probe sits in the partition `baseline/` records, which the twin run repeats (the whole corpus for a `both` baseline, the corpus without `heldOutProbes` for a development baseline), and in the `heldOutProbes` list; otherwise declare `defect` alone.
|
|
24
24
|
- For every behavior, plan one seeded-defect probe or record its refusal with the reason. A non-canary defect carries a `manifestationWitness`; an AD-19 signature addresses the exit code or descriptor-nominated stream or response body. A file-only manifestation is refused until an allowed channel exposes it.
|
|
25
25
|
- For every rubric- or judgment-governed behavior, include a `gameability` probe whose degenerate response satisfies a naive oracle of a different behavior and fails the probe behavior's disciplined oracle. Commit the response bytes at `corpus/gameability/<probeId>.json` and declare the naive oracle in the probe's qualification.
|
|
26
|
-
- Choose non-clean held-out probes before writing oracles, and retain a development probe for each held-out behavior. List at least one per `material` or `critical` behavior in `evaluation.json`'s `heldOutProbes`. The held-out partition is scored on its own and the twin run repeats the partition `baseline/` recorded, so every class `strengthFloor` declares needs an eligible probe in the partition `baseline/` records (the corpus without `heldOutProbes` for the development baseline the authoring loop records) and one in the `heldOutProbes` list: hold one probe of the class out and keep another in development, or declare no floor for the class. A floor with no eligible probe in a partition it is read on exits `ci --tier release` 2 with `no-eligible-probe`. The gap loop reads `gap-view.json`, which contains only held-out ID, class and outcome, and must not read held-out input or expected answer. Run held-out probes as a separate partition (AD-22).
|
|
26
|
+
- Choose non-clean held-out probes before writing oracles, and retain a development probe for each held-out behavior. List at least one per `material` or `critical` behavior in `evaluation.json`'s `heldOutProbes`. `check` names each behavior missing a held-out defect, gameability or zero-action defect probe. For a partial held-out set, record each excluded behavior and its reason in `heldOutCoverageExclusions` and the gap report. The held-out partition is scored on its own and the twin run repeats the partition `baseline/` recorded, so every class `strengthFloor` declares needs an eligible probe in the partition `baseline/` records (the corpus without `heldOutProbes` for the development baseline the authoring loop records) and one in the `heldOutProbes` list: hold one probe of the class out and keep another in development, or declare no floor for the class. A floor with no eligible probe in a partition it is read on exits `ci --tier release` 2 with `no-eligible-probe`. The gap loop reads `gap-view.json`, which contains only held-out ID, class and outcome, and must not read held-out input or expected answer. Run held-out probes as a separate partition (AD-22).
|
|
27
27
|
|
|
28
28
|
Keep the committed layout at `{tea_evaluations_folder}/<evaluationId>/`: `contract.json`, `evaluation.json`, `requirements.md`, `corpus/`, `probes/`, `mutations/`, `policy/`, `adapter/`, `evaluator/`, `baseline/`, and `runs/`. The authored `corpus-index.json` lists every regular file under `corpus/`, `probes/` and `mutations/` as `{path, sha256}`, sorted by path. Create the AD-20 private `{tea_evaluations_folder}/package.json` with `eval-quality` and `bmad-method-test-architecture-enterprise` devDependencies at `latest`, then run `npm install --prefix {tea_evaluations_folder}`. Run `npm exec --prefix {tea_evaluations_folder} -- tea-evaluate digest --evaluation {tea_evaluations_folder}/<evaluationId>` to write the index and print eval-quality's `digestArtifact` over it as `corpusDigest`; `tea-evaluate check` refuses a stale index. The private install works for non-Node adopter repositories. Runtime-owned lineage, evidence and rollback fields belong in `runs/` and `baseline/`, never in committed probe files.
|
|
29
29
|
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Read the scored development evidence artifact for CONCERNS, FAIL, Invalid or a weak strength vector. Name the first unsatisfied engine rule no contract waiver covers (a `coverageGaps` entry whose `waiverId` is `null`), failed preflight check, missing evidence, or loose oracle. For a development `score` exit 3 with no evidence artifact, read the persisted `runs/<invocationId>/scores/<scoreInvocationId>/<probeId>/score.json` record and its stdout and stderr diagnostics. Treat the exit as a routing fact and read engine evidence for the quality judgment. Read development `interpretation.json` for citations and phase; eval-quality remains the only verdict and strength authority. For a held-out score failure, read only its `gap-view.json` row. An `outcome: null` leaves the held-out cause undisclosed. Hold the held-out loop, author a development probe of the same class, and diagnose its development evidence or score diagnostics; record a blocked gap if the fault cannot be reproduced there.
|
|
4
4
|
|
|
5
|
+
## Open the report with an evaluation brief
|
|
6
|
+
|
|
7
|
+
Start `{test_artifacts}/evaluate/<evaluationId>/gap-report.md` from `assets/gap-report.template.md`. Its first section, `## Evaluation brief`, tells a reader who has not seen the evaluation, in plain words: what was tested, the verdict and what it means, what was caught and what was not, the limits, the next step, and links to the run, score and CI artifacts. Fill it last, after the gaps below are recorded, and refresh it after every rescore. Copy each verdict, count and rate from eval-quality's artifacts and compute none. Name held-out results only as `gap-view.json` gives them.
|
|
8
|
+
|
|
5
9
|
## Read the strength vector
|
|
6
10
|
|
|
7
11
|
The vector's denominator is unique qualified probe IDs exercised per class, after each probe's trials are reduced. An admitted probe that was not exercised contributes no denominator; its class rate is `null` if none were exercised. `tea-evaluate score` invokes eval-quality once per probe, so one evidence artifact reports only that probe's class component in `defect`, `gameability` or `zero-action`. `caughtCount / validCount > catchThreshold` alone decides whether that probe is caught. Separately, fewer completed trials than `minimumTrialCount` make its strength non-comparable. The class-wide reading is the aggregate the same invocation copies to `strength-aggregate.json`, which eval-quality's `aggregate-strength` stage mints from those artifacts. Per class it states `eligible`, `exercised`, `caught`, `rate`, `comparable` and the floor decision with its `basis` against the adopter's `evaluation.json.strengthFloor`. Copy those readings and compute no rate or decision. A class with no declared floor reads `undeclared` with basis `no-floor-declared`. Under a declared floor the first match wins, in this order: `no-eligible-probe` (a `null` class has no eligible probe), `not-comparable` (`comparable: false`: fewer trials than `minimumTrialCount` or an oracle unreached), `no-exercised-probe` (`rate: null`: eligible probes and none exercised), `unexercised-probe` (some eligible probe never exercised). None of these is a pass. Only a class that clears all four reads `rate-below-floor` or `rate-meets-floor` from its rate. Clean controls and canaries test false positives and viability; they never enter a denominator. When the `strengthAggregate` pointer's `status` is `absent`, `refused`, `mismatch` or `failed`, no aggregate stands and no class-wide claim does either: read the pointer's reason, repair that cause and rescore. One `caught` defect proves only that one detection, not a strong contract. Example: a qualified defect probe catches two of five valid trials at `catchThreshold: 0.5`. The strict rule misses that probe; inspect its three uncaught trial observations, tighten the oracle and rerun development. The artifact's defect component describes that probe alone, and the aggregate's describes the class.
|
|
@@ -30,7 +30,7 @@ Before resolving customizations or running hooks, inspect `{project-root}/_bmad/
|
|
|
30
30
|
|
|
31
31
|
### Step 1: Resolve the Workflow Block
|
|
32
32
|
|
|
33
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow`
|
|
33
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow`
|
|
34
34
|
|
|
35
35
|
**If the script fails**, resolve the `workflow` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:
|
|
36
36
|
|
|
@@ -52,7 +52,7 @@ When scope includes framework, treat every entry in `{workflow.persistent_facts}
|
|
|
52
52
|
|
|
53
53
|
### Step 4: Load Config
|
|
54
54
|
|
|
55
|
-
Run `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core --key modules.tea`. If the script fails, merge `{project-root}/_bmad/config.toml`, `{project-root}/_bmad/custom/config.toml` and `{project-root}/_bmad/custom/config.user.toml` yourself, in that order, with the merge rules above. If `_bmad/config.toml` is missing or has no `modules.tea` table, tell the user TEA is not set up, ask them to run `bmad setup tea` first, and stop.
|
|
55
|
+
Run `uv run "{project-root}/_bmad/scripts/resolve_config.py" --project-root "{project-root}" --key core --key modules.tea`. If the script fails, merge `{project-root}/_bmad/config.toml`, `{project-root}/_bmad/custom/config.toml` and `{project-root}/_bmad/custom/config.user.toml` yourself, in that order, with the merge rules above. If `_bmad/config.toml` is missing or has no `modules.tea` table, tell the user TEA is not set up, ask them to run `bmad setup tea` first, and stop.
|
|
56
56
|
|
|
57
57
|
Each `core` and `modules.tea` key is available as `{<key>}`, and as `config.<key>` in later steps. Replace `{project-root}` inside a value with the project root. Setup answers are strings: read `"true"` and `"false"` as booleans.
|
|
58
58
|
|
|
@@ -34,6 +34,6 @@ Record the phase completed after its operation-specific checks and phase hook su
|
|
|
34
34
|
|
|
35
35
|
## 3. Run Completion
|
|
36
36
|
|
|
37
|
-
After every requested phase completes, journal `canonical-completion`. Only when scope includes framework, resolve canonical `workflow.on_complete` with `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`. Resolver failure uses the separately saved canonical settings; skip an empty hook. Execute key `framework.on_complete` once using the same durable started/completed protocol. CI-only completes after its CI hook; it never executes framework completion. Both reaches framework completion after CI succeeds.
|
|
37
|
+
After every requested phase completes, journal `canonical-completion`. Only when scope includes framework, resolve canonical `workflow.on_complete` with `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`. Resolver failure uses the separately saved canonical settings; skip an empty hook. Execute key `framework.on_complete` once using the same durable started/completed protocol. CI-only completes after its CI hook; it never executes framework completion. Both reaches framework completion after CI succeeds.
|
|
38
38
|
|
|
39
39
|
Save journal `workflowStatus: completed` after the saved operation's criteria and required hooks finish. Preserve original phase checkpoints and per-phase reports. Summarize requested phases and actual checks or execution evidence. If `ci_scope_defaulted = true`, state that the unattended run included framework only and CI was not included. Any hook failure leaves the operation journal in progress at its exact completion position. A resumed Edit/Validate finishes those hooks through its journal without entering Create resume or changing an old Create checkpoint's status.
|
|
@@ -30,7 +30,7 @@ Before SKILL.md executes prepend hooks or greets, resolve settings for every req
|
|
|
30
30
|
When scope includes CI:
|
|
31
31
|
|
|
32
32
|
1. `{skill-root}/customize.toml` carries the CI defaults under `[workflow.ci]`: `ci_platform = auto`, empty `activation_steps_prepend`, `activation_steps_append`, `persistent_facts`, and `on_complete`.
|
|
33
|
-
2. The Step 1 resolver call already merged those defaults with the `[workflow.ci]` tables of `_bmad/custom/bmad-tea-framework.toml` and `.user.toml`. For a CI-only run that resolves no other key, run `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.ci`. No other file supplies CI settings.
|
|
33
|
+
2. The Step 1 resolver call already merged those defaults with the `[workflow.ci]` tables of `_bmad/custom/bmad-tea-framework.toml` and `.user.toml`. For a CI-only run that resolves no other key, run `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.ci`. No other file supplies CI settings.
|
|
34
34
|
3. Store the `workflow.ci` table as `ci_workflow`. SKILL.md executes applicable prepend entries before greeting, loads applicable facts/globs in lexical order, and executes append entries after greeting through `setup-state.md` section 3's individual durable hook protocol. On Resume, resolve current settings and reload applicable facts; skip completed hook entries and halt on uncertain started entries. Save each applicable phase in `activation_completed` only after its activation succeeds. This section resolves settings; it does not replay activation at phase or worker handoffs.
|
|
35
35
|
4. Framework steps use canonical `workflow`. CI steps read `ci_workflow` for their hooks/facts and the effective platform below. Keep `{skill-root}` bound to the canonical directory for every CI asset.
|
|
36
36
|
|
|
@@ -27,7 +27,7 @@ Before resolving customizations or running hooks, inspect `{project-root}/_bmad/
|
|
|
27
27
|
|
|
28
28
|
### Step 1: Resolve the Workflow Block
|
|
29
29
|
|
|
30
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow`
|
|
30
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow`
|
|
31
31
|
|
|
32
32
|
**If the script fails**, resolve the `workflow` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:
|
|
33
33
|
|
|
@@ -47,7 +47,7 @@ Treat every entry in `{workflow.persistent_facts}` as foundational context you c
|
|
|
47
47
|
|
|
48
48
|
### Step 4: Load Config
|
|
49
49
|
|
|
50
|
-
Run `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core --key modules.tea`. If the script fails, merge `{project-root}/_bmad/config.toml`, `{project-root}/_bmad/custom/config.toml` and `{project-root}/_bmad/custom/config.user.toml` yourself, in that order, with the merge rules above. If `_bmad/config.toml` is missing or has no `modules.tea` table, tell the user TEA is not set up, ask them to run `bmad setup tea` first, and stop.
|
|
50
|
+
Run `uv run "{project-root}/_bmad/scripts/resolve_config.py" --project-root "{project-root}" --key core --key modules.tea`. If the script fails, merge `{project-root}/_bmad/config.toml`, `{project-root}/_bmad/custom/config.toml` and `{project-root}/_bmad/custom/config.user.toml` yourself, in that order, with the merge rules above. If `_bmad/config.toml` is missing or has no `modules.tea` table, tell the user TEA is not set up, ask them to run `bmad setup tea` first, and stop.
|
|
51
51
|
|
|
52
52
|
Each `core` and `modules.tea` key is available as `{<key>}`, and as `config.<key>` in later steps. Replace `{project-root}` inside a value with the project root. Setup answers are strings: read `"true"` and `"false"` as booleans.
|
|
53
53
|
|
|
@@ -176,7 +176,7 @@ Report:
|
|
|
176
176
|
|
|
177
177
|
## On Complete
|
|
178
178
|
|
|
179
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
179
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
180
180
|
|
|
181
181
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
182
182
|
|
|
@@ -61,7 +61,7 @@ Summarize the edits applied.
|
|
|
61
61
|
|
|
62
62
|
## On Complete
|
|
63
63
|
|
|
64
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
64
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
65
65
|
|
|
66
66
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
67
67
|
|
|
@@ -85,7 +85,7 @@ Replace the `IN_PROGRESS` body in this run's reserved `{outputFile}` with the fi
|
|
|
85
85
|
|
|
86
86
|
## On Complete
|
|
87
87
|
|
|
88
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
88
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
89
89
|
|
|
90
90
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
91
91
|
|
|
@@ -28,7 +28,7 @@ Before resolving customizations or running hooks, inspect `{project-root}/_bmad/
|
|
|
28
28
|
|
|
29
29
|
### Step 1: Resolve the Workflow Block
|
|
30
30
|
|
|
31
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow`
|
|
31
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow`
|
|
32
32
|
|
|
33
33
|
**If the script fails**, resolve the `workflow` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:
|
|
34
34
|
|
|
@@ -48,7 +48,7 @@ Treat every entry in `{workflow.persistent_facts}` as foundational context you c
|
|
|
48
48
|
|
|
49
49
|
### Step 4: Load Config
|
|
50
50
|
|
|
51
|
-
Run `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core --key modules.tea`. If the script fails, merge `{project-root}/_bmad/config.toml`, `{project-root}/_bmad/custom/config.toml` and `{project-root}/_bmad/custom/config.user.toml` yourself, in that order, with the merge rules above. If `_bmad/config.toml` is missing or has no `modules.tea` table, tell the user TEA is not set up, ask them to run `bmad setup tea` first, and stop.
|
|
51
|
+
Run `uv run "{project-root}/_bmad/scripts/resolve_config.py" --project-root "{project-root}" --key core --key modules.tea`. If the script fails, merge `{project-root}/_bmad/config.toml`, `{project-root}/_bmad/custom/config.toml` and `{project-root}/_bmad/custom/config.user.toml` yourself, in that order, with the merge rules above. If `_bmad/config.toml` is missing or has no `modules.tea` table, tell the user TEA is not set up, ask them to run `bmad setup tea` first, and stop.
|
|
52
52
|
|
|
53
53
|
Each `core` and `modules.tea` key is available as `{<key>}`, and as `config.<key>` in later steps. Replace `{project-root}` inside a value with the project root. Setup answers are strings: read `"true"` and `"false"` as booleans.
|
|
54
54
|
|
|
@@ -336,7 +336,7 @@ Workflow ends here. User can run the workflow again to re-take sessions or explo
|
|
|
336
336
|
|
|
337
337
|
## On Complete
|
|
338
338
|
|
|
339
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
339
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
340
340
|
|
|
341
341
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
342
342
|
|
|
@@ -123,7 +123,7 @@ The teach-me-testing workflow has been updated.
|
|
|
123
123
|
|
|
124
124
|
## On Complete
|
|
125
125
|
|
|
126
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
126
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
127
127
|
|
|
128
128
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
129
129
|
|
|
@@ -271,7 +271,7 @@ Workflow is usable but could be improved.
|
|
|
271
271
|
|
|
272
272
|
## On Complete
|
|
273
273
|
|
|
274
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
274
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
275
275
|
|
|
276
276
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
277
277
|
|
|
@@ -26,7 +26,7 @@ Before resolving customizations or running hooks, inspect `{project-root}/_bmad/
|
|
|
26
26
|
|
|
27
27
|
### Step 1: Resolve the Workflow Block
|
|
28
28
|
|
|
29
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow`
|
|
29
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow`
|
|
30
30
|
|
|
31
31
|
**If the script fails**, resolve the `workflow` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:
|
|
32
32
|
|
|
@@ -46,7 +46,7 @@ Treat every entry in `{workflow.persistent_facts}` as foundational context you c
|
|
|
46
46
|
|
|
47
47
|
### Step 4: Load Config
|
|
48
48
|
|
|
49
|
-
Run `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core --key modules.tea`. If the script fails, merge `{project-root}/_bmad/config.toml`, `{project-root}/_bmad/custom/config.toml` and `{project-root}/_bmad/custom/config.user.toml` yourself, in that order, with the merge rules above. If `_bmad/config.toml` is missing or has no `modules.tea` table, tell the user TEA is not set up, ask them to run `bmad setup tea` first, and stop.
|
|
49
|
+
Run `uv run "{project-root}/_bmad/scripts/resolve_config.py" --project-root "{project-root}" --key core --key modules.tea`. If the script fails, merge `{project-root}/_bmad/config.toml`, `{project-root}/_bmad/custom/config.toml` and `{project-root}/_bmad/custom/config.user.toml` yourself, in that order, with the merge rules above. If `_bmad/config.toml` is missing or has no `modules.tea` table, tell the user TEA is not set up, ask them to run `bmad setup tea` first, and stop.
|
|
50
50
|
|
|
51
51
|
Each `core` and `modules.tea` key is available as `{<key>}`, and as `config.<key>` in later steps. Replace `{project-root}` inside a value with the project root. Setup answers are strings: read `"true"` and `"false"` as booleans.
|
|
52
52
|
|
|
@@ -70,9 +70,9 @@ If user intent is unclear:
|
|
|
70
70
|
- Otherwise, on a v6 project, if `{implementation_artifacts}/sprint-status.yaml` exists → **Epic-Level Mode**
|
|
71
71
|
- Otherwise → **System-Level Mode**
|
|
72
72
|
|
|
73
|
-
The active initiative and the output folder belong to BMad core, not TEA's config. Read them with `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core.output_folder --key core.active_initiative`. When `core.active_initiative` is set, the initiative folder is `{output_folder}/{active_initiative}/`. It holds an epic when `tickets/tickets.toml` inside it has an `[[epic]]` table or a `tickets/epic-*/` folder exists. It is in the preview layout when a `tickets.toml`, an `epic-*/` folder, a `story-*.md`, `spike-*.md` or `bug-*.md` leaf file, or a `*-plan.md` plan sits directly in the initiative folder, with or without a `tickets/` folder beside it; BMad's ticket tools refuse that layout until it is migrated.
|
|
73
|
+
The active initiative and the output folder belong to BMad core, not TEA's config. Read them with `uv run "{project-root}/_bmad/scripts/resolve_config.py" --project-root "{project-root}" --key core.output_folder --key core.active_initiative`. When `core.active_initiative` is set, the initiative folder is `{output_folder}/{active_initiative}/`. It holds an epic when `tickets/tickets.toml` inside it has an `[[epic]]` table or a `tickets/epic-*/` folder exists. It is in the preview layout when a `tickets.toml`, an `epic-*/` folder, a `story-*.md`, `spike-*.md` or `bug-*.md` leaf file, or a `*-plan.md` plan sits directly in the initiative folder, with or without a `tickets/` folder beside it; BMad's ticket tools refuse that layout until it is migrated.
|
|
74
74
|
|
|
75
|
-
`{implementation_artifacts}` exists only on a v6 project and is a BMM setting that TEA's config does not define. Read `modules.bmm.implementation_artifacts` with `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key modules.bmm.implementation_artifacts`. When it is not set, use `{output_folder}/implementation-artifacts`; a v7 project has no such key, so a missing sprint-status file there means System-Level Mode.
|
|
75
|
+
`{implementation_artifacts}` exists only on a v6 project and is a BMM setting that TEA's config does not define. Read `modules.bmm.implementation_artifacts` with `uv run "{project-root}/_bmad/scripts/resolve_config.py" --project-root "{project-root}" --key modules.bmm.implementation_artifacts`. When it is not set, use `{output_folder}/implementation-artifacts`; a v7 project has no such key, so a missing sprint-status file there means System-Level Mode.
|
|
76
76
|
|
|
77
77
|
### C) Ambiguous → Ask
|
|
78
78
|
|
|
@@ -293,7 +293,7 @@ Summarize:
|
|
|
293
293
|
|
|
294
294
|
## On Complete
|
|
295
295
|
|
|
296
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
296
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
297
297
|
|
|
298
298
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
299
299
|
|
|
@@ -64,7 +64,7 @@ Summarize the edits applied.
|
|
|
64
64
|
|
|
65
65
|
## On Complete
|
|
66
66
|
|
|
67
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
67
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
68
68
|
|
|
69
69
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
70
70
|
|
|
@@ -88,7 +88,7 @@ Replace the `IN_PROGRESS` body in this run's reserved `{outputFile}` with the fi
|
|
|
88
88
|
|
|
89
89
|
## On Complete
|
|
90
90
|
|
|
91
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
91
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
92
92
|
|
|
93
93
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
94
94
|
|
|
@@ -27,7 +27,7 @@ Before resolving customizations or running hooks, inspect `{project-root}/_bmad/
|
|
|
27
27
|
|
|
28
28
|
### Step 1: Resolve the Workflow Block
|
|
29
29
|
|
|
30
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow`
|
|
30
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow`
|
|
31
31
|
|
|
32
32
|
**If the script fails**, resolve the `workflow` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:
|
|
33
33
|
|
|
@@ -47,7 +47,7 @@ Treat every entry in `{workflow.persistent_facts}` as foundational context you c
|
|
|
47
47
|
|
|
48
48
|
### Step 4: Load Config
|
|
49
49
|
|
|
50
|
-
Run `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core --key modules.tea`. If the script fails, merge `{project-root}/_bmad/config.toml`, `{project-root}/_bmad/custom/config.toml` and `{project-root}/_bmad/custom/config.user.toml` yourself, in that order, with the merge rules above. If `_bmad/config.toml` is missing or has no `modules.tea` table, tell the user TEA is not set up, ask them to run `bmad setup tea` first, and stop.
|
|
50
|
+
Run `uv run "{project-root}/_bmad/scripts/resolve_config.py" --project-root "{project-root}" --key core --key modules.tea`. If the script fails, merge `{project-root}/_bmad/config.toml`, `{project-root}/_bmad/custom/config.toml` and `{project-root}/_bmad/custom/config.user.toml` yourself, in that order, with the merge rules above. If `_bmad/config.toml` is missing or has no `modules.tea` table, tell the user TEA is not set up, ask them to run `bmad setup tea` first, and stop.
|
|
51
51
|
|
|
52
52
|
Each `core` and `modules.tea` key is available as `{<key>}`, and as `config.<key>` in later steps. Replace `{project-root}` inside a value with the project root. Setup answers are strings: read `"true"` and `"false"` as booleans.
|
|
53
53
|
|
|
@@ -134,7 +134,7 @@ Report:
|
|
|
134
134
|
|
|
135
135
|
## On Complete
|
|
136
136
|
|
|
137
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
137
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
138
138
|
|
|
139
139
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
140
140
|
|
|
@@ -61,7 +61,7 @@ Summarize the edits applied.
|
|
|
61
61
|
|
|
62
62
|
## On Complete
|
|
63
63
|
|
|
64
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
64
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
65
65
|
|
|
66
66
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
67
67
|
|
|
@@ -87,7 +87,7 @@ Replace the `IN_PROGRESS` body in this run's reserved `{outputFile}` with the fi
|
|
|
87
87
|
|
|
88
88
|
## On Complete
|
|
89
89
|
|
|
90
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
90
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
91
91
|
|
|
92
92
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
93
93
|
|
|
@@ -27,7 +27,7 @@ Before resolving customizations or running hooks, inspect `{project-root}/_bmad/
|
|
|
27
27
|
|
|
28
28
|
### Step 1: Resolve the Workflow Block
|
|
29
29
|
|
|
30
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow`
|
|
30
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow`
|
|
31
31
|
|
|
32
32
|
**If the script fails**, resolve the `workflow` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:
|
|
33
33
|
|
|
@@ -47,7 +47,7 @@ Treat every entry in `{workflow.persistent_facts}` as foundational context you c
|
|
|
47
47
|
|
|
48
48
|
### Step 4: Load Config
|
|
49
49
|
|
|
50
|
-
Run `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core --key modules.tea`. If the script fails, merge `{project-root}/_bmad/config.toml`, `{project-root}/_bmad/custom/config.toml` and `{project-root}/_bmad/custom/config.user.toml` yourself, in that order, with the merge rules above. If `_bmad/config.toml` is missing or has no `modules.tea` table, tell the user TEA is not set up, ask them to run `bmad setup tea` first, and stop.
|
|
50
|
+
Run `uv run "{project-root}/_bmad/scripts/resolve_config.py" --project-root "{project-root}" --key core --key modules.tea`. If the script fails, merge `{project-root}/_bmad/config.toml`, `{project-root}/_bmad/custom/config.toml` and `{project-root}/_bmad/custom/config.user.toml` yourself, in that order, with the merge rules above. If `_bmad/config.toml` is missing or has no `modules.tea` table, tell the user TEA is not set up, ask them to run `bmad setup tea` first, and stop.
|
|
51
51
|
|
|
52
52
|
Each `core` and `modules.tea` key is available as `{<key>}`, and as `config.<key>` in later steps. Replace `{project-root}` inside a value with the project root. Setup answers are strings: read `"true"` and `"false"` as booleans.
|
|
53
53
|
|
|
@@ -1046,7 +1046,7 @@ Then append the gate decision summary (from section 5 above) to the end of the r
|
|
|
1046
1046
|
|
|
1047
1047
|
## On Complete
|
|
1048
1048
|
|
|
1049
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
1049
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
1050
1050
|
|
|
1051
1051
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
1052
1052
|
|
|
@@ -61,7 +61,7 @@ Summarize the edits applied.
|
|
|
61
61
|
|
|
62
62
|
## On Complete
|
|
63
63
|
|
|
64
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
64
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
65
65
|
|
|
66
66
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
67
67
|
|
|
@@ -87,7 +87,7 @@ Replace the `IN_PROGRESS` body in this run's reserved `{outputFile}` with the fi
|
|
|
87
87
|
|
|
88
88
|
## On Complete
|
|
89
89
|
|
|
90
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.on_complete`
|
|
90
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.on_complete`
|
|
91
91
|
|
|
92
92
|
If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
|
|
93
93
|
|
|
@@ -24,7 +24,7 @@ TEA works on its own. When the method module is installed too, these routes add
|
|
|
24
24
|
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
25
25
|
| Planning an initiative whose risk, compliance or reach calls for a test strategy | `bmad-tea-test-design` at system level, once the PRD and architecture exist | Testability concerns reach the architecture while it can still change. |
|
|
26
26
|
| About to build the stories of an epic | `bmad-tea-test-design` at epic level, then `bmad-tea-framework` when the project has no test framework | The epic's plan sets priorities for every story in it. |
|
|
27
|
-
| About to build one story with settled criteria, and wants test-first work | `bmad-tea-automate` in red mode, then `bmad-build` | The builder turns the red tests green; the checklist lists them for the story's plan. Red mode takes the story's ref (`1.2`), its title, or its leaf file, and reads the ticket through the method's ticket tools; on v6 it takes the story file. When the ticket has only a `Verify:` line, the criteria come from the build's plan: stop `bmad-build` at its plan checkpoint with Approve and stop, run red mode, then run `bmad-build` again.
|
|
27
|
+
| About to build one story with settled criteria, and wants test-first work | `bmad-tea-automate` in red mode, then `bmad-build` | The builder turns the red tests green; the checklist lists them for the story's plan. Red mode takes the story's ref (`1.2`), its title, or its leaf file, and reads the ticket through the method's ticket tools; on v6 it takes the story file. When the ticket has only a `Verify:` line, the criteria come from the build's plan: stop `bmad-build` at its plan checkpoint with Approve and stop, run red mode, then run `bmad-build` again. To automate red mode, set `route = "full"` and use the existing `workflow.implementation_handoff`. |
|
|
28
28
|
| Done with `bmad-build` and wants a maintained test suite for the work | `bmad-tea-automate` in expand mode | It writes tests that follow the project's framework and fixtures, runs them, and heals test defects. `bmad-qa-generate-e2e-tests` remains the fit for a quick, one-off set of end-to-end tests. |
|
|
29
29
|
| Upgraded a v6 project with `bmad migrate method` and has TEA checklists, matrices or reports from before | `bmad migrate tea`, after the method migration | It moves each story output onto its v7 ticket's key from exact evidence, keeps historical citations, and lists anything it cannot map. |
|
|
30
30
|
| Has `bmad-tea-atdd` or `bmad-tea-ci` customizations, or `bmad setup` cleanup listed them as unused | `bmad migrate tea` (migration 3), before cleanup when you can | It moves red settings into `[workflow.red]` of `bmad-tea-automate.toml` and CI settings into `[workflow.ci]` of `bmad-tea-framework.toml`, reading the cleanup backup when cleanup already removed a file. Keep the `.v6-v7-migration-backup-*` folder until it has run. |
|
|
@@ -35,7 +35,7 @@ The story's status is never TEA's to change. Red mode hands its tests to the bui
|
|
|
35
35
|
|
|
36
36
|
## Where things land
|
|
37
37
|
|
|
38
|
-
Every workflow writes under the test artifacts folder, chosen at setup as `modules.tea.test_artifacts`, which can sit outside the output folder. To see what TEA has run, resolve it with `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key modules.tea.test_artifacts` and look in these folders inside it:
|
|
38
|
+
Every workflow writes under the test artifacts folder, chosen at setup as `modules.tea.test_artifacts`, which can sit outside the output folder. To see what TEA has run, resolve it with `uv run "{project-root}/_bmad/scripts/resolve_config.py" --project-root "{project-root}" --key modules.tea.test_artifacts` and look in these folders inside it:
|
|
39
39
|
|
|
40
40
|
| Folder | Written by |
|
|
41
41
|
| ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- |
|