bmad-method-test-architecture-enterprise 4.3.1 → 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 +1 -1
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"name": "bmad-method-test-architecture-enterprise",
|
|
32
32
|
"source": "./",
|
|
33
33
|
"description": "Master Test Architect module for quality strategy, test generation in red and expand modes with automatic run-and-heal, combined framework and CI setup, CI/CD quality gates, and structured testing education. Existing CI and ATDD customizations can be migrated to the new skill names. Part of the BMad Method ecosystem.",
|
|
34
|
-
"version": "4.
|
|
34
|
+
"version": "4.4.0",
|
|
35
35
|
"author": {
|
|
36
36
|
"name": "Murat K Ozcan (TEA Creator) & Brian (BMad) Madison"
|
|
37
37
|
},
|
package/cli/evaluate.js
CHANGED
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
const { Command } = require('commander');
|
|
124
124
|
|
|
125
125
|
const { readFolderFile, resolveEvaluationFolder } = require('./lib/evaluate/folder');
|
|
126
|
-
const { checkEvaluation } = require('./lib/evaluate/check');
|
|
126
|
+
const { checkEvaluation, checkWarnings } = require('./lib/evaluate/check');
|
|
127
127
|
const { CorpusIndexError, writeCorpusIndex } = require('./lib/evaluate/corpus-index');
|
|
128
128
|
const { EngineUnavailableError, loadEngine } = require('./lib/evaluate/engine');
|
|
129
129
|
const { EngineStageError } = require('./lib/evaluate/engine-cli');
|
|
@@ -159,11 +159,15 @@ function folderFrom(options) {
|
|
|
159
159
|
async function runCheck(options) {
|
|
160
160
|
const folder = folderFrom(options);
|
|
161
161
|
const findings = await checkEvaluation(folder);
|
|
162
|
+
for (const finding of findings) process.stdout.write(findingLine(finding.file, finding.rule, finding.message));
|
|
163
|
+
// A warning never changes the exit: it names evidence to refresh, not an authoring defect, and it is read only after every finding
|
|
164
|
+
// is printed, so it can never hide one.
|
|
165
|
+
for (const warning of await checkWarnings(folder, findings))
|
|
166
|
+
process.stderr.write(`warning: ${findingLine(warning.file, warning.rule, warning.message)}`);
|
|
162
167
|
if (findings.length === 0) {
|
|
163
168
|
process.stdout.write(`${NAME} check: ${folder} has no authoring defects\n`);
|
|
164
169
|
return EXIT_CODES.ok;
|
|
165
170
|
}
|
|
166
|
-
for (const finding of findings) process.stdout.write(findingLine(finding.file, finding.rule, finding.message));
|
|
167
171
|
process.stdout.write(`${NAME} check: ${findings.length} authoring defect(s) in ${folder}\n`);
|
|
168
172
|
return EXIT_CODES.authoring;
|
|
169
173
|
}
|
|
@@ -25,7 +25,12 @@
|
|
|
25
25
|
* workspace holds read-only.
|
|
26
26
|
* - `web-interface`: the contract declares an interface of kind `web`.
|
|
27
27
|
* - `written-file-signature`: a defect signature addresses a file the target wrote.
|
|
28
|
-
* - `oracle-count`: a behavior a defect or
|
|
28
|
+
* - `oracle-count`: a behavior a defect, gameability or zero-action defect probe discharges does not declare exactly one oracle.
|
|
29
|
+
* - `held-out` coverage: a held-out set leaves a `material` or `critical` behavior without a qualifying probe or a documented exclusion.
|
|
30
|
+
* - `mandatory-action`: a behavior `mandatoryActionBehaviors` lists that the contract does not declare, or that no zero-action defect
|
|
31
|
+
* probe (`probeClass` `zero-action`, `expectedClean: false`, a defect on the behavior) covers.
|
|
32
|
+
* - Warnings (`checkWarnings`), which never change the exit: `held-out-drift`, the newest run with a completed held-out score recorded
|
|
33
|
+
* a `heldOutDigest` the committed held-out material no longer has.
|
|
29
34
|
* - `id-pattern`: a probe, defect, behavior, oracle or mutation ID is off its pattern.
|
|
30
35
|
* - `qualification-digest`: a `baseline/qualification/` reference's digest does not match the file.
|
|
31
36
|
* - `baseline-digest` (Story 1.90, AD-12): a file of `baseline/` digests to something other than the entry of the
|
|
@@ -154,7 +159,7 @@ const { CALIBRATION_PATH, calibrationProblems, readCalibration } = require('./ca
|
|
|
154
159
|
const { readConfiguration, recordsDirectory, verifyRecordsCalibration } = require('./records-calibration');
|
|
155
160
|
const { baselineDigestFindings } = require('./baseline-digests');
|
|
156
161
|
const { readPlan } = require('./ci-plan');
|
|
157
|
-
const { MANIFEST_NAME } = require('./folder');
|
|
162
|
+
const { MANIFEST_NAME, readFolderFile } = require('./folder');
|
|
158
163
|
const { addFormats } = require('./formats');
|
|
159
164
|
const { HTTP_PORT_MODULE, originTarget, sharedOrigin } = require('./http-target');
|
|
160
165
|
const { compileRefusals, lineNamesOperation, reportedOperations, reportsProblems } = require('./release-report');
|
|
@@ -187,6 +192,7 @@ const {
|
|
|
187
192
|
STEP_ID,
|
|
188
193
|
contractView,
|
|
189
194
|
heldOutResponsePath,
|
|
195
|
+
loadContractView,
|
|
190
196
|
mappingViewProblems,
|
|
191
197
|
named,
|
|
192
198
|
partitionPlanProblems,
|
|
@@ -199,7 +205,7 @@ const {
|
|
|
199
205
|
|
|
200
206
|
/** The skill runner's infrastructure exit codes (`cli/skill-runner.js`), which a registry entry for it must declare. */
|
|
201
207
|
const SKILL_RUNNER_INFRASTRUCTURE_CODES = [3, 4, 5, 6];
|
|
202
|
-
const { CorpusIndexError, INDEX_NAME, corpusIndexProblem, unreadPaths } = require('./corpus-index');
|
|
208
|
+
const { CorpusIndexError, INDEX_NAME, corpusIndexProblem, heldOutDigestOf, unreadPaths } = require('./corpus-index');
|
|
203
209
|
|
|
204
210
|
const Ajv = AjvModule.default ?? AjvModule;
|
|
205
211
|
|
|
@@ -209,6 +215,17 @@ function isPlainObject(value) {
|
|
|
209
215
|
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
210
216
|
}
|
|
211
217
|
|
|
218
|
+
/**
|
|
219
|
+
* Whether a probe discharges the behaviors it names: a `defect` or `gameability` probe, or a `zero-action` probe that does not expect a
|
|
220
|
+
* clean run (a mandatory-action defect probe). A clean control and a canary test the instrument, so neither does. Every rule that asks
|
|
221
|
+
* which behaviors a probe exercises reads this one predicate: the oracle count, the held-out view's oracle count and held-out coverage.
|
|
222
|
+
*/
|
|
223
|
+
function dischargesBehaviors(probe) {
|
|
224
|
+
if (!isPlainObject(probe)) return false;
|
|
225
|
+
if (probe.probeClass === 'defect' || probe.probeClass === 'gameability') return true;
|
|
226
|
+
return probe.probeClass === 'zero-action' && probe.expectedClean === false && probe.qualification?.route !== 'clean-control';
|
|
227
|
+
}
|
|
228
|
+
|
|
212
229
|
const CONTRACT_NAME = 'contract.json';
|
|
213
230
|
const POLICY_NAME = 'policy/scoring-policy.json';
|
|
214
231
|
const CONDITIONS_NAME = 'policy/evaluator-conditions.json';
|
|
@@ -1123,7 +1140,7 @@ function checkProbe(report, relative, probe, context, behaviors, mutations, regi
|
|
|
1123
1140
|
);
|
|
1124
1141
|
}
|
|
1125
1142
|
|
|
1126
|
-
if (behaviors !== undefined && (probe
|
|
1143
|
+
if (behaviors !== undefined && dischargesBehaviors(probe)) {
|
|
1127
1144
|
const discharged = [probe.behaviorId, ...defects.map((defect) => defect?.behaviorId)].filter((id) => typeof id === 'string');
|
|
1128
1145
|
for (const behaviorId of new Set(discharged)) {
|
|
1129
1146
|
const behavior = behaviors.get(behaviorId);
|
|
@@ -1817,17 +1834,110 @@ async function checkProbes(report, folder, context, behaviors, mutations, regist
|
|
|
1817
1834
|
return routes;
|
|
1818
1835
|
}
|
|
1819
1836
|
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1837
|
+
/** The severities of a behavior a held-out partition must exercise (AD-22): a `low` behavior may stay in development alone. */
|
|
1838
|
+
const HELD_OUT_SEVERITIES = new Set(['material', 'critical']);
|
|
1839
|
+
|
|
1840
|
+
/** The defects a probe seeds, each an object. */
|
|
1841
|
+
function defectsOf(probe) {
|
|
1842
|
+
return Array.isArray(probe?.defects) ? probe.defects.filter((defect) => defect !== null && typeof defect === 'object') : [];
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
/** The committed probes that parse, by probe ID; a file that does not parse is a `json` finding. */
|
|
1846
|
+
function probesById(report, folder) {
|
|
1825
1847
|
const probes = new Map();
|
|
1826
1848
|
for (const entry of listDirectory(folder, 'probes') ?? []) {
|
|
1827
1849
|
if (!entry.isFile || !PROBE_FILE.test(entry.name)) continue;
|
|
1828
1850
|
const probe = parseInto(report, folder, `probes/${entry.name}`);
|
|
1829
1851
|
if (typeof probe?.probeId === 'string') probes.set(probe.probeId, probe);
|
|
1830
1852
|
}
|
|
1853
|
+
return probes;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
/** The contract's behaviors that are objects with a string ID. */
|
|
1857
|
+
function behaviorsOf(contract) {
|
|
1858
|
+
return Array.isArray(contract?.behaviors)
|
|
1859
|
+
? contract.behaviors.filter((behavior) => isPlainObject(behavior) && typeof behavior.id === 'string')
|
|
1860
|
+
: [];
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
/**
|
|
1864
|
+
* A held-out set needs a probe for each material or critical behavior in scope. A documented exclusion records the limit of a
|
|
1865
|
+
* partial corpus without changing its accepted baseline.
|
|
1866
|
+
*/
|
|
1867
|
+
function checkHeldOutCoverage(report, evaluation, contract, probes) {
|
|
1868
|
+
const selected = Array.isArray(evaluation.heldOutProbes) ? evaluation.heldOutProbes : [];
|
|
1869
|
+
if (selected.length === 0 && !isPlainObject(evaluation.partitionPlan)) return;
|
|
1870
|
+
const behaviors = behaviorsOf(contract);
|
|
1871
|
+
const required = new Set(behaviors.filter((behavior) => HELD_OUT_SEVERITIES.has(behavior.severity)).map((behavior) => behavior.id));
|
|
1872
|
+
const heldOutCoverageExclusions = isPlainObject(evaluation.heldOutCoverageExclusions) ? evaluation.heldOutCoverageExclusions : {};
|
|
1873
|
+
if (contract !== undefined) {
|
|
1874
|
+
for (const id of Object.keys(heldOutCoverageExclusions)) {
|
|
1875
|
+
if (!required.has(id))
|
|
1876
|
+
report.add(MANIFEST_NAME, 'held-out', `heldOutCoverageExclusions names ${id}, which is not a material or critical behavior`);
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
const covered = new Set();
|
|
1880
|
+
for (const id of selected) {
|
|
1881
|
+
const probe = probes.get(id);
|
|
1882
|
+
if (!dischargesBehaviors(probe)) continue;
|
|
1883
|
+
for (const behaviorId of [probe.behaviorId, ...defectsOf(probe).map((defect) => defect.behaviorId)])
|
|
1884
|
+
if (typeof behaviorId === 'string') covered.add(behaviorId);
|
|
1885
|
+
}
|
|
1886
|
+
for (const behavior of behaviors) {
|
|
1887
|
+
if (!required.has(behavior.id) || covered.has(behavior.id)) continue;
|
|
1888
|
+
const reason = heldOutCoverageExclusions[behavior.id];
|
|
1889
|
+
if (typeof reason === 'string' && reason.trim()) continue;
|
|
1890
|
+
report.add(
|
|
1891
|
+
MANIFEST_NAME,
|
|
1892
|
+
'held-out',
|
|
1893
|
+
`behavior ${behavior.id} is ${behavior.severity} and no probe in heldOutProbes exercises it; hold out a defect, gameability or zero-action defect probe of ${behavior.id} (a clean control or a canary does not count) and keep a development probe beside it`,
|
|
1894
|
+
);
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* `mandatoryActionBehaviors`: each listed behavior is one the contract declares and has a zero-action defect probe, `probeClass`
|
|
1900
|
+
* `zero-action` with `expectedClean: false` and a defect on that behavior, so a target that skips the action is caught. A folder that
|
|
1901
|
+
* lists none is held to nothing more.
|
|
1902
|
+
*/
|
|
1903
|
+
function checkMandatoryActions(report, evaluation, contract, probes) {
|
|
1904
|
+
const {
|
|
1905
|
+
// The optional list of behaviors whose required action must be proven to happen.
|
|
1906
|
+
mandatoryActionBehaviors: listed,
|
|
1907
|
+
} = evaluation;
|
|
1908
|
+
if (!Array.isArray(listed)) return;
|
|
1909
|
+
const declared = new Set(behaviorsOf(contract).map((behavior) => behavior.id));
|
|
1910
|
+
for (const behaviorId of listed) {
|
|
1911
|
+
if (typeof behaviorId !== 'string') continue;
|
|
1912
|
+
if (contract !== undefined && !declared.has(behaviorId)) {
|
|
1913
|
+
report.add(
|
|
1914
|
+
MANIFEST_NAME,
|
|
1915
|
+
'mandatory-action',
|
|
1916
|
+
`mandatoryActionBehaviors names behavior ${behaviorId}, which contract.json does not declare`,
|
|
1917
|
+
);
|
|
1918
|
+
continue;
|
|
1919
|
+
}
|
|
1920
|
+
const proven = [...probes.values()].some(
|
|
1921
|
+
(probe) =>
|
|
1922
|
+
probe.probeClass === 'zero-action' &&
|
|
1923
|
+
dischargesBehaviors(probe) &&
|
|
1924
|
+
defectsOf(probe).some((defect) => defect.behaviorId === behaviorId),
|
|
1925
|
+
);
|
|
1926
|
+
if (!proven)
|
|
1927
|
+
report.add(
|
|
1928
|
+
MANIFEST_NAME,
|
|
1929
|
+
'mandatory-action',
|
|
1930
|
+
`behavior ${behaviorId} is a mandatory action and no zero-action defect probe (probeClass zero-action, expectedClean false) seeds a defect on it; add one whose signature exposes the missing action`,
|
|
1931
|
+
);
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
function checkHeldOut(report, folder, evaluation, contract) {
|
|
1936
|
+
const probes = probesById(report, folder);
|
|
1937
|
+
checkMandatoryActions(report, evaluation, contract, probes);
|
|
1938
|
+
checkHeldOutCoverage(report, evaluation, contract, probes);
|
|
1939
|
+
const selected = evaluation.heldOutProbes ?? [];
|
|
1940
|
+
if (!Array.isArray(selected)) return;
|
|
1831
1941
|
for (const id of selected) {
|
|
1832
1942
|
const probe = probes.get(id);
|
|
1833
1943
|
if (probe === undefined) {
|
|
@@ -1945,7 +2055,7 @@ function checkPartitionPlan(report, folder, evaluation, context, { openPlan = tr
|
|
|
1945
2055
|
} catch {
|
|
1946
2056
|
continue;
|
|
1947
2057
|
}
|
|
1948
|
-
if (!selected.includes(probe?.probeId) || (probe
|
|
2058
|
+
if (!selected.includes(probe?.probeId) || !dischargesBehaviors(probe)) continue;
|
|
1949
2059
|
const defects = Array.isArray(probe.defects) ? probe.defects : [];
|
|
1950
2060
|
for (const behaviorId of [probe.behaviorId, ...defects.map((defect) => defect?.behaviorId)]) {
|
|
1951
2061
|
if (typeof behaviorId === 'string') heldOutBehaviors.add(behaviorId);
|
|
@@ -2519,7 +2629,7 @@ async function checkEvaluation(folder, { platform = process.platform, env = proc
|
|
|
2519
2629
|
const mutations = checkMutations(report, folder, context, provision, skillRoot);
|
|
2520
2630
|
checkSkillRunner(report, evaluation, context.contract, provision, platform);
|
|
2521
2631
|
const routes = await checkProbes(report, folder, context, behaviors, mutations, registry, compiled, evaluation);
|
|
2522
|
-
checkHeldOut(report, folder, evaluation);
|
|
2632
|
+
checkHeldOut(report, folder, evaluation, context.contract);
|
|
2523
2633
|
const openPlan = partition !== 'development';
|
|
2524
2634
|
const planFile = evaluation.partitionPlan?.heldOutPlan;
|
|
2525
2635
|
const heldOutUnread = openPlan || typeof planFile !== 'string' ? [] : [HELD_OUT_DIRECTORY];
|
|
@@ -2571,6 +2681,101 @@ async function checkEvaluation(folder, { platform = process.platform, env = proc
|
|
|
2571
2681
|
return report.findings;
|
|
2572
2682
|
}
|
|
2573
2683
|
|
|
2684
|
+
/** A run directory's name, and a score invocation's: the runtime's flat invocation identifiers. */
|
|
2685
|
+
const RUN_ID = /^[A-Za-z0-9_-]+$/;
|
|
2686
|
+
|
|
2687
|
+
/** One parsed JSON object the evaluation folder holds, read through the folder's guarded walk, or null. */
|
|
2688
|
+
function folderJson(folder, relative) {
|
|
2689
|
+
const read = readFolderFile(folder, relative);
|
|
2690
|
+
if (!read.ok) return null;
|
|
2691
|
+
try {
|
|
2692
|
+
const value = JSON.parse(read.bytes.toString('utf8'));
|
|
2693
|
+
return isPlainObject(value) ? value : null;
|
|
2694
|
+
} catch {
|
|
2695
|
+
return null;
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
/**
|
|
2700
|
+
* Whether a completed run holds a completed score with held-out results: its `partitions.json`, which `score` replaces only after it
|
|
2701
|
+
* has written the score's `score.json`, names a score invocation whose `score.json` records this run, and lists at least one held-out
|
|
2702
|
+
* row. A score that stopped part way writes neither, so it never stands in for the complete evidence before it.
|
|
2703
|
+
*/
|
|
2704
|
+
function scoredHeldOut(folder, runId) {
|
|
2705
|
+
const partitions = folderJson(folder, `runs/${runId}/partitions.json`);
|
|
2706
|
+
const scoreId = partitions?.scoreInvocationId;
|
|
2707
|
+
if (typeof scoreId !== 'string' || !RUN_ID.test(scoreId)) return false;
|
|
2708
|
+
if (!Array.isArray(partitions['held-out']) || partitions['held-out'].length === 0) return false;
|
|
2709
|
+
const summary = folderJson(folder, `runs/${runId}/scores/${scoreId}/score.json`);
|
|
2710
|
+
return summary?.invocationId === scoreId && summary.run === runId;
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
/** Whether every index row is a `{ path, sha256 }` pair the digest can read. */
|
|
2714
|
+
function wellFormedIndex(index) {
|
|
2715
|
+
return (
|
|
2716
|
+
Array.isArray(index) &&
|
|
2717
|
+
index.every(
|
|
2718
|
+
(entry) =>
|
|
2719
|
+
isPlainObject(entry) && typeof entry.path === 'string' && typeof entry.sha256 === 'string' && /^[0-9a-f]{64}$/.test(entry.sha256),
|
|
2720
|
+
)
|
|
2721
|
+
);
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
/** Findings that leave the held-out material unreadable or unsound, so no held-out comparison is made over them. */
|
|
2725
|
+
const UNSOUND_FOR_DRIFT = new Set(['json', 'schema', 'stale-index', 'corpus-file', 'partition-plan', 'file-name']);
|
|
2726
|
+
|
|
2727
|
+
/**
|
|
2728
|
+
* The non-blocking warnings `check` prints after its findings, which never change its exit. One today: the newest run with a completed
|
|
2729
|
+
* held-out score (`scoredHeldOut`) recorded a `heldOutDigest` the committed held-out material no longer has, so its held-out result no
|
|
2730
|
+
* longer describes the committed partition. A run that records no digest (one made before the field existed, or a development run) is
|
|
2731
|
+
* passed over. Nothing is compared while a finding leaves the corpus index, a probe, the contract or the held-out plan unsound, and an
|
|
2732
|
+
* error while comparing ends the comparison without a warning: the warning is advice and never stands in for a finding.
|
|
2733
|
+
*
|
|
2734
|
+
* @param {string} folder
|
|
2735
|
+
* @param {Array<{ file: string, rule: string }>} [findings] the folder's findings, from `checkEvaluation`
|
|
2736
|
+
* @returns {Promise<Array<{ file: string, rule: string, message: string }>>}
|
|
2737
|
+
*/
|
|
2738
|
+
async function checkWarnings(folder, findings = []) {
|
|
2739
|
+
if (findings.some((finding) => UNSOUND_FOR_DRIFT.has(finding.rule) || finding.file === INDEX_NAME)) return [];
|
|
2740
|
+
try {
|
|
2741
|
+
const evaluation = folderJson(folder, MANIFEST_NAME);
|
|
2742
|
+
const index = (() => {
|
|
2743
|
+
const read = readFolderFile(folder, INDEX_NAME);
|
|
2744
|
+
return read.ok ? JSON.parse(read.bytes.toString('utf8')) : null;
|
|
2745
|
+
})();
|
|
2746
|
+
const heldOutProbes = Array.isArray(evaluation?.heldOutProbes) ? evaluation.heldOutProbes : [];
|
|
2747
|
+
if (heldOutProbes.length === 0 || !wellFormedIndex(index)) return [];
|
|
2748
|
+
const runs = path.join(folder, 'runs');
|
|
2749
|
+
if (!fs.lstatSync(runs, { throwIfNoEntry: false })?.isDirectory()) return [];
|
|
2750
|
+
for (const runId of fs
|
|
2751
|
+
.readdirSync(runs)
|
|
2752
|
+
.filter((name) => RUN_ID.test(name))
|
|
2753
|
+
.sort()
|
|
2754
|
+
.toReversed()) {
|
|
2755
|
+
const record = folderJson(folder, `runs/${runId}/run.json`);
|
|
2756
|
+
if (record?.command !== 'run' || record.completed !== true || typeof record.heldOutDigest !== 'string') continue;
|
|
2757
|
+
if (!scoredHeldOut(folder, runId)) continue;
|
|
2758
|
+
const current = await heldOutDigestOf({
|
|
2759
|
+
index,
|
|
2760
|
+
probes: [...probesById(createFindings(), folder).values()],
|
|
2761
|
+
heldOutProbes,
|
|
2762
|
+
contract: loadContractView({ folder, evaluation, partition: 'held-out' }).contract,
|
|
2763
|
+
});
|
|
2764
|
+
if (current === record.heldOutDigest) return [];
|
|
2765
|
+
return [
|
|
2766
|
+
{
|
|
2767
|
+
file: `runs/${runId}/run.json`,
|
|
2768
|
+
rule: 'held-out-drift',
|
|
2769
|
+
message: `the newest scored held-out run ${runId} measured held-out material that has changed since (heldOutDigest ${record.heldOutDigest}, now ${current}), so its held-out result no longer describes the committed partition; run and score the held-out partition again before you rely on it`,
|
|
2770
|
+
},
|
|
2771
|
+
];
|
|
2772
|
+
}
|
|
2773
|
+
} catch {
|
|
2774
|
+
// Advice only: a folder the comparison cannot read is the findings' to report.
|
|
2775
|
+
}
|
|
2776
|
+
return [];
|
|
2777
|
+
}
|
|
2778
|
+
|
|
2574
2779
|
module.exports = {
|
|
2575
2780
|
KNOWN_EVALUATION_SCHEMA_VERSIONS,
|
|
2576
2781
|
RUNTIME_OWNED_DEFECT_FIELDS,
|
|
@@ -2578,4 +2783,5 @@ module.exports = {
|
|
|
2578
2783
|
RUNTIME_OWNED_QUALIFICATION_FIELDS,
|
|
2579
2784
|
TEA_MANIFEST,
|
|
2580
2785
|
checkEvaluation,
|
|
2786
|
+
checkWarnings,
|
|
2581
2787
|
};
|
|
@@ -146,6 +146,56 @@ async function corpusDigestOf(index) {
|
|
|
146
146
|
return engine.digestArtifact(index, INDEX_NAME);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
/** The name `heldOutDigestOf` digests its value under. */
|
|
150
|
+
const HELD_OUT_CONTENT = 'held-out-content';
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* The index entries that hold held-out material: every file under `corpus/held-out/`, and for each probe `heldOutProbes` lists, its
|
|
154
|
+
* probe file, its degenerate response under `corpus/gameability/` and the mutation file its qualification names.
|
|
155
|
+
*
|
|
156
|
+
* @param {Array<{ path: string, sha256: string }>} index
|
|
157
|
+
* @param {Array<object>} probes the committed probes, parsed
|
|
158
|
+
* @param {Iterable<string>} heldOutProbes
|
|
159
|
+
* @returns {Array<{ path: string, sha256: string }>}
|
|
160
|
+
*/
|
|
161
|
+
function heldOutEntries(index, probes, heldOutProbes) {
|
|
162
|
+
const held = new Set(heldOutProbes);
|
|
163
|
+
const owned = new Set();
|
|
164
|
+
for (const probe of probes) {
|
|
165
|
+
if (probe === null || typeof probe !== 'object' || !held.has(probe.probeId)) continue;
|
|
166
|
+
owned.add(`probes/${probe.probeId}.probe.json`);
|
|
167
|
+
owned.add(`corpus/gameability/${probe.probeId}.json`);
|
|
168
|
+
const mutation = probe.qualification?.mutation;
|
|
169
|
+
if (typeof mutation === 'string') owned.add(`mutations/${mutation}.mutation.json`);
|
|
170
|
+
}
|
|
171
|
+
return index
|
|
172
|
+
.filter((entry) => entry !== null && typeof entry === 'object' && typeof entry.path === 'string')
|
|
173
|
+
.filter((entry) => entry.path.startsWith('corpus/held-out/') || owned.has(entry.path))
|
|
174
|
+
.map((entry) => ({ path: entry.path, sha256: entry.sha256 }))
|
|
175
|
+
.sort(byPath);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* eval-quality's `digestArtifact` over the held-out material a run measured: the sorted `heldOutProbes`, the index entries
|
|
180
|
+
* `heldOutEntries` keeps, and the contract a held-out run executes (the held-out view under a `partitionPlan`: the shared steps, the
|
|
181
|
+
* held-out plan's steps and the oracles that view keeps). It reads digests from the index and opens no held-out file itself. It moves
|
|
182
|
+
* when a held-out probe, its seed, its degenerate response, a file under `corpus/held-out/`, the held-out list, a shared step or an
|
|
183
|
+
* oracle the held-out view keeps moves, and stays put when only development material does (a development probe, or a
|
|
184
|
+
* development-only step and the oracles that read it).
|
|
185
|
+
*
|
|
186
|
+
* @param {object} options
|
|
187
|
+
* @param {Array<{ path: string, sha256: string }>} options.index the corpus index
|
|
188
|
+
* @param {Array<object>} options.probes the committed probes, parsed
|
|
189
|
+
* @param {Iterable<string>} options.heldOutProbes
|
|
190
|
+
* @param {object} options.contract the contract a held-out run executes (`loadContractView` with `partition: 'held-out'`)
|
|
191
|
+
* @returns {Promise<string>}
|
|
192
|
+
*/
|
|
193
|
+
async function heldOutDigestOf({ index, probes, heldOutProbes, contract }) {
|
|
194
|
+
const engine = await loadEngine();
|
|
195
|
+
const ids = [...new Set(heldOutProbes)].sort();
|
|
196
|
+
return engine.digestArtifact({ heldOutProbes: ids, files: heldOutEntries(index, probes, ids), contract }, HELD_OUT_CONTENT);
|
|
197
|
+
}
|
|
198
|
+
|
|
149
199
|
/** Whether a path is absent or a regular file (never a directory or a symbolic link). */
|
|
150
200
|
function isRegularOrAbsent(file) {
|
|
151
201
|
try {
|
|
@@ -228,6 +278,8 @@ module.exports = {
|
|
|
228
278
|
buildCorpusIndex,
|
|
229
279
|
corpusDigestOf,
|
|
230
280
|
corpusIndexProblem,
|
|
281
|
+
heldOutDigestOf,
|
|
282
|
+
heldOutEntries,
|
|
231
283
|
unreadPaths,
|
|
232
284
|
writeCorpusIndex,
|
|
233
285
|
};
|
|
@@ -46,10 +46,9 @@ async function heldRefusal({ held, set, staged, exitCode, stderr }) {
|
|
|
46
46
|
return `the call exited ${exitCode} where the verified inputs give ${expected.exitCode} (an in-process score of the held bytes)`;
|
|
47
47
|
}
|
|
48
48
|
if (expected.lines !== null && exitCode !== null) {
|
|
49
|
-
//
|
|
50
|
-
// both sides go through the same split before the prefixed pieces are compared.
|
|
49
|
+
// Held inputs reproduce single-line diagnostics with caller values escaped as the CLI renders them.
|
|
51
50
|
const printed = diagnosticLines(stderr);
|
|
52
|
-
if (JSON.stringify(printed) !== JSON.stringify(
|
|
51
|
+
if (JSON.stringify(printed) !== JSON.stringify(expected.lines)) {
|
|
53
52
|
return "the call's eval-quality diagnostics differ from those the verified inputs give (an in-process score of the held bytes)";
|
|
54
53
|
}
|
|
55
54
|
}
|
package/cli/lib/evaluate/run.js
CHANGED
|
@@ -97,7 +97,7 @@ const {
|
|
|
97
97
|
const { callLabel, causeNote, faultRecord, hostEnvironmentPort, persistableRequest, reasonNote, runArm } = require('./arm');
|
|
98
98
|
const { observeFrameworks, runCommandEvaluator } = require('./command-evaluator');
|
|
99
99
|
const { effectiveProbeTimeoutMs, observationProblems, observedVersions, versionsRecord } = require('./frameworks');
|
|
100
|
-
const { corpusDigestOf } = require('./corpus-index');
|
|
100
|
+
const { corpusDigestOf, heldOutDigestOf } = require('./corpus-index');
|
|
101
101
|
const { calibrationObservation, calibrationPartial, calibrationStepPair, readCalibration, runCalibration } = require('./calibration');
|
|
102
102
|
const { expectedSchemaVersion, loadEngine } = require('./engine');
|
|
103
103
|
const { evaluateOracles, judgeTrial, oraclesOfBehaviors } = require('./evaluator');
|
|
@@ -115,7 +115,7 @@ const { holdDeployment, recordRefusal } = require('./historical');
|
|
|
115
115
|
const { JudgeError, answerNonce, judgeConfigurationFor, judgeRubrics, recordedJudgeModel } = require('./judge');
|
|
116
116
|
const { EvaluatorError, judgmentFromRows, setRecommendationOf, trialRecommendation } = require('./judgment-rows');
|
|
117
117
|
const { QualificationError, applyReplaceExact } = require('./mutation');
|
|
118
|
-
const { bothViewDesignation, committedProbes, selectPartition, unknownPartition } = require('./partition');
|
|
118
|
+
const { bothViewDesignation, committedProbes, loadContractView, selectPartition, unknownPartition } = require('./partition');
|
|
119
119
|
const { PreflightOutcome, readJson, runPipeline } = require('./preflight');
|
|
120
120
|
const { importRecords } = require('./records-evaluator');
|
|
121
121
|
const { evaluatorConfiguration, isolationManifest, sealedRunRecord } = require('./records');
|
|
@@ -317,10 +317,22 @@ function runRunCommand(
|
|
|
317
317
|
if (!(error instanceof EvaluatorLayerError)) throw error;
|
|
318
318
|
return new PreflightOutcome({ stage: 'check', exitCode: 10, message: `the evaluation layer cannot be used: ${error.message}` });
|
|
319
319
|
}
|
|
320
|
+
const index = readJson(path.join(folder, INDEX_PATH));
|
|
320
321
|
snapshot = {
|
|
321
322
|
policyBytes: fs.readFileSync(path.join(folder, ...POLICY_PATH.split('/'))),
|
|
322
323
|
conditions: fs.existsSync(conditionsFile) ? readJson(conditionsFile) : null,
|
|
323
|
-
index
|
|
324
|
+
index,
|
|
325
|
+
// The held-out material this run measures, so `check` can tell when a scored held-out result no longer describes the
|
|
326
|
+
// committed held-out partition. A development run measures none and records none; neither does a run with no held-out probe.
|
|
327
|
+
heldOutDigest:
|
|
328
|
+
partition === 'development' || heldOut.size === 0
|
|
329
|
+
? null
|
|
330
|
+
: await heldOutDigestOf({
|
|
331
|
+
index,
|
|
332
|
+
probes: probes.map(({ probe }) => probe),
|
|
333
|
+
heldOutProbes: heldOut,
|
|
334
|
+
contract: loadContractView({ folder, evaluation: context.evaluation, partition: 'held-out' }).contract,
|
|
335
|
+
}),
|
|
324
336
|
probeIds: probes
|
|
325
337
|
.filter(({ probe }) => selectedProbeIds === null || selectedProbeIds.has(probe.probeId))
|
|
326
338
|
.map(({ probe }) => probe.probeId),
|
|
@@ -2165,6 +2177,7 @@ async function completeRun(
|
|
|
2165
2177
|
evaluatorConfigurationDigest: configurationDigest,
|
|
2166
2178
|
partition: snapshot.partition,
|
|
2167
2179
|
heldOutProbes: snapshot.heldOutProbes,
|
|
2180
|
+
...(snapshot.heldOutDigest === null ? {} : { heldOutDigest: snapshot.heldOutDigest }),
|
|
2168
2181
|
operationPhases: snapshot.operationPhases,
|
|
2169
2182
|
runner: registry.entries.map((entry) => runnerOf(entry, registry)),
|
|
2170
2183
|
evaluator: evaluatorRecord,
|
|
@@ -175,6 +175,19 @@
|
|
|
175
175
|
"uniqueItems": true,
|
|
176
176
|
"items": { "type": "string", "pattern": "^P-[0-9]{3,}$" }
|
|
177
177
|
},
|
|
178
|
+
"heldOutCoverageExclusions": {
|
|
179
|
+
"description": "For an evaluation with a partial held-out set, map each material or critical behavior outside the held-out scope to its reason.",
|
|
180
|
+
"type": "object",
|
|
181
|
+
"propertyNames": { "pattern": "^B-[0-9]{3,}$" },
|
|
182
|
+
"additionalProperties": { "type": "string", "pattern": "\\S" }
|
|
183
|
+
},
|
|
184
|
+
"mandatoryActionBehaviors": {
|
|
185
|
+
"description": "Behaviors whose required action must be proven to happen, each a contract behavior ID. Optional and additive: absent, check holds nothing more. Declared, tea-evaluate check requires, for every listed behavior, a zero-action defect probe: probeClass zero-action, expectedClean false and a defect on that behavior, so a target that skips the action is caught.",
|
|
186
|
+
"type": "array",
|
|
187
|
+
"minItems": 1,
|
|
188
|
+
"uniqueItems": true,
|
|
189
|
+
"items": { "type": "string", "pattern": "^B-[0-9]{3,}$" }
|
|
190
|
+
},
|
|
178
191
|
"partitionPlan": {
|
|
179
192
|
"description": "Isolates interaction plan steps by evaluation partition (Story 1.51, AD-9, AD-22). Absent, every partition runs the whole contract.json plan. Declared, the development partition runs contract.json, whose plan holds the shared steps and the development-only ones, and the held-out partition runs the shared steps and the steps and oracles of a sealed held-out plan, so no artifact of one partition carries a request, an observation or an oracle meant only for the other. A command or sealed-brief-agent evaluator reads the mapping of its partition (evaluator/mapping.json's rows that bind what the partition declares, and for the held-out and both views the held-out plan's mappings), and a records evaluator's records name only what the partition declares.",
|
|
180
193
|
"type": "object",
|
|
@@ -48,6 +48,17 @@ const FAULT_EXIT = 5;
|
|
|
48
48
|
const USAGE_EXIT = 64;
|
|
49
49
|
/** Every diagnostic line of the eval-quality CLI starts with this. */
|
|
50
50
|
const DIAGNOSTIC_PREFIX = 'eval-quality: ';
|
|
51
|
+
const DIAGNOSTIC_SHORT_ESCAPES = { '\n': String.raw`\n`, '\r': String.raw`\r`, '\t': String.raw`\t` };
|
|
52
|
+
// eslint-disable-next-line no-control-regex
|
|
53
|
+
const DIAGNOSTIC_CONTROLS = /[\u0000-\u001F\u007F-\u009F]/gu;
|
|
54
|
+
|
|
55
|
+
/** Match eval-quality's 10.1.1 rendering before comparing an in-process diagnostic with stderr. */
|
|
56
|
+
function diagnosticValue(value) {
|
|
57
|
+
return value.replaceAll(
|
|
58
|
+
DIAGNOSTIC_CONTROLS,
|
|
59
|
+
(character) => DIAGNOSTIC_SHORT_ESCAPES[character] ?? String.raw`\u` + character.codePointAt(0).toString(16).padStart(4, '0'),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
51
62
|
|
|
52
63
|
/** The run directory's files that have one fixed name: the compiled contract, the policy, the preflight verdict and the evaluator configuration. */
|
|
53
64
|
const RUN_FILES = Object.freeze({
|
|
@@ -417,9 +428,9 @@ class HeldInputs {
|
|
|
417
428
|
signal: new AbortController().signal,
|
|
418
429
|
});
|
|
419
430
|
const lines = qualification.failures.map(
|
|
420
|
-
(failure) => `${DIAGNOSTIC_PREFIX}${failure.code}: ${failure.artifactPath}: ${failure.detail}`,
|
|
431
|
+
(failure) => `${DIAGNOSTIC_PREFIX}${failure.code}: ${diagnosticValue(failure.artifactPath)}: ${diagnosticValue(failure.detail)}`,
|
|
421
432
|
);
|
|
422
|
-
if (ladder.verdict === null) lines.push(...ladder.basis.map((reason) => `${DIAGNOSTIC_PREFIX}invalid: ${reason}`));
|
|
433
|
+
if (ladder.verdict === null) lines.push(...ladder.basis.map((reason) => `${DIAGNOSTIC_PREFIX}invalid: ${diagnosticValue(reason)}`));
|
|
423
434
|
return {
|
|
424
435
|
artifact: artifact === null ? null : Buffer.from(this.#engine.serializeArtifact(artifact, 'EvidenceArtifact'), 'utf8'),
|
|
425
436
|
exitCode: ladder.exitCode,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "bmad-method-test-architecture-enterprise",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.4.0",
|
|
5
5
|
"description": "Master Test Architect for quality strategy, test automation, and release gates",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"bmad",
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
"zod-to-json-schema": "3.25.1"
|
|
387
387
|
},
|
|
388
388
|
"peerDependencies": {
|
|
389
|
-
"eval-quality": ">=10.1.
|
|
389
|
+
"eval-quality": ">=10.1.1"
|
|
390
390
|
},
|
|
391
391
|
"peerDependenciesMeta": {
|
|
392
392
|
"eval-quality": {
|
package/skills/bmad-tea/SKILL.md
CHANGED
|
@@ -23,7 +23,7 @@ Before resolving the agent menu, inspect `{project-root}/_bmad/custom/bmad-tea.t
|
|
|
23
23
|
|
|
24
24
|
### Step 1: Resolve the Agent Block
|
|
25
25
|
|
|
26
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key agent`
|
|
26
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key agent`
|
|
27
27
|
|
|
28
28
|
**If the script fails**, resolve the `agent` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:
|
|
29
29
|
|
|
@@ -49,7 +49,7 @@ Treat every entry in `{agent.persistent_facts}` as foundational context you carr
|
|
|
49
49
|
|
|
50
50
|
### Step 5: Load Config
|
|
51
51
|
|
|
52
|
-
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
|
+
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.
|
|
53
53
|
|
|
54
54
|
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.
|
|
55
55
|
|
|
@@ -33,7 +33,7 @@ Before resolving customizations or running hooks, inspect `{project-root}/_bmad/
|
|
|
33
33
|
|
|
34
34
|
### Step 1: Resolve the Workflow Block
|
|
35
35
|
|
|
36
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key {workflow-key}`
|
|
36
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key {workflow-key}`
|
|
37
37
|
|
|
38
38
|
The returned object is the `workflow` block for the rest of the run: `{workflow.activation_steps_prepend}`, `{workflow.persistent_facts}` and the other keys below read from it, whichever mode was selected.
|
|
39
39
|
|
|
@@ -55,7 +55,7 @@ Treat every entry in `{workflow.persistent_facts}` as foundational context you c
|
|
|
55
55
|
|
|
56
56
|
### Step 4: Load Config
|
|
57
57
|
|
|
58
|
-
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.
|
|
58
|
+
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.
|
|
59
59
|
|
|
60
60
|
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.
|
|
61
61
|
|
|
@@ -26,7 +26,7 @@ This workflow uses **step-file architecture**:
|
|
|
26
26
|
|
|
27
27
|
This instruction file owns red mode after canonical activation.
|
|
28
28
|
Set `test_mode = red` when a direct runner loads this file without the shared router; keep `{skill-root}` canonical.
|
|
29
|
-
Resolve red customization with `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.red` (set `workflow-key = workflow.red`) and retain its block.
|
|
29
|
+
Resolve red customization with `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key workflow.red` (set `workflow-key = workflow.red`) and retain its block.
|
|
30
30
|
Entry activation and operation routing remain in `{skill-root}/SKILL.md`.
|
|
31
31
|
|
|
32
32
|
### 1. Configuration Loading
|
|
@@ -148,7 +148,7 @@ Preserve or include the loop's resolved YAML frontmatter keys `test_mode`, `test
|
|
|
148
148
|
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.
|
|
149
149
|
If it was not retained, resolve it from the selected key:
|
|
150
150
|
|
|
151
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key {workflow-key}.on_complete`
|
|
151
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key {workflow-key}.on_complete`
|
|
152
152
|
|
|
153
153
|
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.
|
|
154
154
|
|
|
@@ -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
|
|
|
@@ -93,7 +93,7 @@ Replace the `IN_PROGRESS` body in this run's reserved `{outputFile}` with the fi
|
|
|
93
93
|
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.
|
|
94
94
|
If it was not retained, resolve it from the selected key:
|
|
95
95
|
|
|
96
|
-
Run: `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key {workflow-key}.on_complete`
|
|
96
|
+
Run: `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key {workflow-key}.on_complete`
|
|
97
97
|
|
|
98
98
|
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.
|
|
99
99
|
|
|
@@ -46,7 +46,7 @@ Do not restart Create or execute a completed generation step on an explicit Resu
|
|
|
46
46
|
Both modes resolve from this skill's own `customize.toml` and `_bmad/custom/bmad-tea-automate.toml` and `.user.toml`.
|
|
47
47
|
For red set `workflow-key = workflow.red`. For expand set `workflow-key = workflow`.
|
|
48
48
|
`workflow.red` holds the red settings (`activation_steps_prepend`, `activation_steps_append`, `persistent_facts`, `on_complete`); expand never reads it and red never reads the top-level keys.
|
|
49
|
-
Resolve only the selected key, with `uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key {workflow-key}`, and retain the returned block for its terminal hook.
|
|
49
|
+
Resolve only the selected key, with `uv run "{project-root}/_bmad/scripts/resolve_customization.py" --skill "{skill-root}" --project-root "{project-root}" --key {workflow-key}`, and retain the returned block for its terminal hook.
|
|
50
50
|
|
|
51
51
|
Run selected prepend hooks, load selected persistent facts, load config, greet, then run selected append hooks in that order.
|
|
52
52
|
The selected mode's `workflow.on_complete` executes at its original terminal after outputs are saved, including Validate and Edit.
|
|
@@ -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
|
|
|
@@ -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
|
| ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- |
|