@babylonjs-toolkit/agent 1.2.16 → 1.2.21
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/README.md +3 -2
- package/package.json +1 -1
- package/skills/bt-blender/SKILL.md +448 -0
- package/skills/bt-blender/THIRD_PARTY_NOTICES.md +141 -0
- package/skills/bt-blender/references/art-style-and-genre.md +173 -0
- package/skills/bt-blender/references/characters-and-creatures.md +644 -0
- package/skills/bt-blender/references/environments.md +478 -0
- package/skills/bt-blender/references/game-engine-export.md +284 -0
- package/skills/bt-blender/references/geometry-nodes.md +447 -0
- package/skills/bt-blender/references/hard-surface.md +724 -0
- package/skills/bt-blender/references/procedural-generation.md +358 -0
- package/skills/bt-blender/references/rigging-and-animation.md +1080 -0
- package/skills/bt-blender/references/sculpting-and-retopology.md +544 -0
- package/skills/bt-blender/references/uv-and-pbr-materials.md +381 -0
- package/skills/bt-blender/references/vehicles.md +637 -0
- package/skills/bt-blender/scripts/blender/__pycache__/construction_kit.cpython-313.pyc +0 -0
- package/skills/bt-blender/scripts/blender/__pycache__/geometry_nodes_builders.cpython-313.pyc +0 -0
- package/skills/bt-blender/scripts/blender/__pycache__/image_measure.cpython-313.pyc +0 -0
- package/skills/bt-blender/scripts/blender/__pycache__/reference_traces.cpython-313.pyc +0 -0
- package/skills/bt-blender/scripts/blender/assembly_check.py +420 -0
- package/skills/bt-blender/scripts/blender/blueprint.py +293 -0
- package/skills/bt-blender/scripts/blender/character_blockout.py +462 -0
- package/skills/bt-blender/scripts/blender/construction_kit.py +1770 -0
- package/skills/bt-blender/scripts/blender/coverage_check.py +221 -0
- package/skills/bt-blender/scripts/blender/environment_kit.py +525 -0
- package/skills/bt-blender/scripts/blender/evidence_sheet.py +243 -0
- package/skills/bt-blender/scripts/blender/export_asset.py +623 -0
- package/skills/bt-blender/scripts/blender/geometry_nodes_builders.py +575 -0
- package/skills/bt-blender/scripts/blender/hard_surface_panels.py +374 -0
- package/skills/bt-blender/scripts/blender/hard_surface_trims.py +200 -0
- package/skills/bt-blender/scripts/blender/image_measure.py +917 -0
- package/skills/bt-blender/scripts/blender/materials_pbr.py +439 -0
- package/skills/bt-blender/scripts/blender/measure_stations.py +496 -0
- package/skills/bt-blender/scripts/blender/ortho_views.py +309 -0
- package/skills/bt-blender/scripts/blender/overlay_sheet.py +238 -0
- package/skills/bt-blender/scripts/blender/procedural_game_ready.py +258 -0
- package/skills/bt-blender/scripts/blender/procedural_generators.py +842 -0
- package/skills/bt-blender/scripts/blender/qa_check.py +729 -0
- package/skills/bt-blender/scripts/blender/reference_traces.py +344 -0
- package/skills/bt-blender/scripts/blender/retopology_tools.py +781 -0
- package/skills/bt-blender/scripts/blender/review_render.py +358 -0
- package/skills/bt-blender/scripts/blender/rigging_tools.py +1170 -0
- package/skills/bt-blender/scripts/blender/style_palette.py +190 -0
- package/skills/bt-blender/scripts/blender/tool_common.py +289 -0
- package/skills/bt-blender/scripts/blender/trace.py +283 -0
- package/skills/bt-blender/scripts/blender/uv_layout.py +555 -0
- package/skills/bt-blender/scripts/blender/vehicle_parts.py +370 -0
- package/skills/bt-blender/scripts/blender/view_consistency.py +133 -0
- package/skills/bt-blender/scripts/blender/world_gate.py +231 -0
- package/skills/bt-blender/scripts/bt-blender.mjs +333 -0
- package/skills/bt-blender/scripts/validate_gltf.mjs +204 -0
- package/skills/bt-execute/SKILL.md +2 -1
- package/skills/bt-gauntlet/SKILL.md +30 -20
- package/skills/bt-gauntlet/references/critic-rubrics.md +106 -7
- package/skills/bt-gauntlet/references/loop-templates.md +23 -3
- package/skills/bt-gauntlet/references/spec-composition.md +20 -1
- package/skills/bt-gauntlet/references/target-images.md +27 -0
- package/skills/bt-gauntlet/references/unity-pipeline.md +41 -4
- package/skills/bt-gauntlet/references/workspace.md +90 -6
- package/skills/bt-unwrap/scripts/blender/__pycache__/bt_unwrap.cpython-313.pyc +0 -0
- package/skills/bt-unwrap/scripts/blender/__pycache__/image_utils.cpython-313.pyc +0 -0
- package/skills/bt-unwrap/scripts/blender/__pycache__/mesh_tools.cpython-313.pyc +0 -0
- package/skills/bt-unwrap/scripts/blender/__pycache__/model_io.cpython-313.pyc +0 -0
- package/skills/bt-unwrap/scripts/blender/__pycache__/previews.cpython-313.pyc +0 -0
- package/skills/bt-unwrap/scripts/blender/__pycache__/rasterizer.cpython-313.pyc +0 -0
- package/skills/bt-unwrap/scripts/blender/__pycache__/reference_views.cpython-313.pyc +0 -0
- package/skills/bt-unwrap/scripts/blender/__pycache__/reference_warp.cpython-313.pyc +0 -0
- package/skills/bt-unwrap/scripts/blender/__pycache__/texture_bake.cpython-313.pyc +0 -0
- package/skills/bt-unwrap/scripts/blender/__pycache__/texture_compose.cpython-313.pyc +0 -0
- package/skills/bt-unwrap/scripts/blender/__pycache__/uv_layout.cpython-313.pyc +0 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* validate_gltf: runs the Khronos glTF-Validator on a .glb or .gltf and prints one JSON result line.
|
|
4
|
+
*
|
|
5
|
+
* node validate_gltf.mjs <file.glb|file.gltf> [--validator-dir <dir>] [--max-issues 100] [--ignore CODE ...]
|
|
6
|
+
*
|
|
7
|
+
* The validator is an npm package, not bundled with the skill. It is looked for in --validator-dir, then
|
|
8
|
+
* $BT_GLTF_VALIDATOR_DIR, then node_modules beside this script, then the global npm folder. Install it once:
|
|
9
|
+
* npm install --prefix <bt-blender>/scripts gltf-validator
|
|
10
|
+
* When it is not installed the result says skipped (with that command) and the exit code is 0, so a
|
|
11
|
+
* machine without it is not reported as a broken asset.
|
|
12
|
+
*
|
|
13
|
+
* Exit code: 0 valid (or skipped), 1 the validator found errors or the file could not be read, 2 bad options.
|
|
14
|
+
*
|
|
15
|
+
* Portions adapted from colinurbs/game-asset-modeling (tools/khronos_validate.mjs)
|
|
16
|
+
* -- Copyright (c) 2026 Colin Urban, MIT License:
|
|
17
|
+
*
|
|
18
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
19
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
20
|
+
* in the Software without restriction, including without limitation the rights
|
|
21
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
22
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
23
|
+
* furnished to do so, subject to the following conditions:
|
|
24
|
+
*
|
|
25
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
26
|
+
* copies or substantial portions of the Software.
|
|
27
|
+
*
|
|
28
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
29
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
30
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
31
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
32
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
33
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
34
|
+
* SOFTWARE.
|
|
35
|
+
*
|
|
36
|
+
* Changes: validator discovery with a skipped result, a summary instead of the raw report, a non-zero
|
|
37
|
+
* exit on errors, and option handling.
|
|
38
|
+
*/
|
|
39
|
+
import { spawnSync } from 'node:child_process';
|
|
40
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
41
|
+
import { createRequire } from 'node:module';
|
|
42
|
+
import path from 'node:path';
|
|
43
|
+
import { fileURLToPath } from 'node:url';
|
|
44
|
+
|
|
45
|
+
/** Folder holding this script; `npm install --prefix` here puts the validator in its node_modules. */
|
|
46
|
+
const SCRIPT_DIRECTORY = path.dirname(fileURLToPath(import.meta.url));
|
|
47
|
+
|
|
48
|
+
/** npm package name of the Khronos validator. */
|
|
49
|
+
const VALIDATOR_PACKAGE = 'gltf-validator';
|
|
50
|
+
|
|
51
|
+
/** Environment variable naming a folder that holds the validator. */
|
|
52
|
+
const VALIDATOR_DIRECTORY_VARIABLE = 'BT_GLTF_VALIDATOR_DIR';
|
|
53
|
+
|
|
54
|
+
/** Issue codes ignored by default: unused objects are common in exporter output and harmless. */
|
|
55
|
+
const DEFAULT_IGNORED_ISSUES = ['UNUSED_OBJECT'];
|
|
56
|
+
|
|
57
|
+
/** Default cap on the issues the validator reports. */
|
|
58
|
+
const DEFAULT_MAX_ISSUES = 100;
|
|
59
|
+
|
|
60
|
+
/** Validator severity numbers. */
|
|
61
|
+
const SEVERITY_NAMES = ['error', 'warning', 'info', 'hint'];
|
|
62
|
+
|
|
63
|
+
/** Exit codes, shared with the bt-blender tools. */
|
|
64
|
+
const EXIT_PASSED = 0;
|
|
65
|
+
const EXIT_FAILED = 1;
|
|
66
|
+
const EXIT_BAD_OPTIONS = 2;
|
|
67
|
+
|
|
68
|
+
/** The install command reported when the validator is missing. */
|
|
69
|
+
const INSTALL_HINT = `npm install --prefix "${SCRIPT_DIRECTORY}" ${VALIDATOR_PACKAGE}`;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Prints the single result line.
|
|
73
|
+
* @param {object} result - The result.
|
|
74
|
+
*/
|
|
75
|
+
function emit(result) {
|
|
76
|
+
process.stdout.write(`${JSON.stringify({ tool: 'validate-gltf', ...result })}\n`);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Parses the command line.
|
|
81
|
+
* @param {string[]} argv - Arguments after the script name.
|
|
82
|
+
* @returns {{ file: string, validatorDirectory: string | undefined, maxIssues: number, ignored: string[] }}
|
|
83
|
+
* @throws {Error} On a missing file argument or a bad value.
|
|
84
|
+
*/
|
|
85
|
+
function parseArguments(argv) {
|
|
86
|
+
const options = { file: undefined, validatorDirectory: undefined, maxIssues: DEFAULT_MAX_ISSUES, ignored: [...DEFAULT_IGNORED_ISSUES] };
|
|
87
|
+
for (let index = 0; index < argv.length; index += 1) {
|
|
88
|
+
const argument = argv[index];
|
|
89
|
+
if (argument === '--validator-dir') {
|
|
90
|
+
options.validatorDirectory = argv[++index];
|
|
91
|
+
} else if (argument === '--max-issues') {
|
|
92
|
+
options.maxIssues = Number.parseInt(argv[++index], 10);
|
|
93
|
+
if (!Number.isInteger(options.maxIssues) || options.maxIssues < 1) throw new Error('--max-issues needs a positive integer');
|
|
94
|
+
} else if (argument === '--ignore') {
|
|
95
|
+
while (index + 1 < argv.length && !argv[index + 1].startsWith('--')) options.ignored.push(argv[++index]);
|
|
96
|
+
} else if (argument.startsWith('--')) {
|
|
97
|
+
throw new Error(`unknown option ${argument}`);
|
|
98
|
+
} else if (options.file) {
|
|
99
|
+
throw new Error(`only one file can be validated (got ${options.file} and ${argument})`);
|
|
100
|
+
} else {
|
|
101
|
+
options.file = argument;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (!options.file) throw new Error('usage: validate_gltf.mjs <file.glb|file.gltf> [--validator-dir <dir>]');
|
|
105
|
+
return options;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The global npm package folder, or undefined when npm is not available.
|
|
110
|
+
* @returns {string | undefined} Folder path.
|
|
111
|
+
*/
|
|
112
|
+
function globalNodeModules() {
|
|
113
|
+
const probe = spawnSync('npm', ['root', '-g'], { encoding: 'utf8', shell: process.platform === 'win32' });
|
|
114
|
+
return probe.status === 0 ? probe.stdout.trim() : undefined;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Finds the validator package folder.
|
|
119
|
+
* @param {string | undefined} explicitDirectory - Folder from --validator-dir.
|
|
120
|
+
* @returns {string | undefined} Package folder, or undefined when not installed.
|
|
121
|
+
*/
|
|
122
|
+
function findValidator(explicitDirectory) {
|
|
123
|
+
const roots = [explicitDirectory, process.env[VALIDATOR_DIRECTORY_VARIABLE], SCRIPT_DIRECTORY].filter(Boolean);
|
|
124
|
+
const candidates = roots.flatMap((root) => [root, path.join(root, VALIDATOR_PACKAGE), path.join(root, 'node_modules', VALIDATOR_PACKAGE)]);
|
|
125
|
+
const isPackage = (folder) => existsSync(path.join(folder, 'package.json'))
|
|
126
|
+
&& JSON.parse(readFileSync(path.join(folder, 'package.json'), 'utf8')).name === VALIDATOR_PACKAGE;
|
|
127
|
+
const local = candidates.find(isPackage);
|
|
128
|
+
if (local) return local;
|
|
129
|
+
const globalRoot = globalNodeModules();
|
|
130
|
+
const globalPackage = globalRoot ? path.join(globalRoot, VALIDATOR_PACKAGE) : undefined;
|
|
131
|
+
return globalPackage && isPackage(globalPackage) ? globalPackage : undefined;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Validates a file and summarises the report.
|
|
136
|
+
* @param {object} validator - The gltf-validator module.
|
|
137
|
+
* @param {{ file: string, maxIssues: number, ignored: string[] }} options - Parsed options.
|
|
138
|
+
* @returns {Promise<object>} Summary.
|
|
139
|
+
*/
|
|
140
|
+
async function validate(validator, options) {
|
|
141
|
+
const file = path.resolve(options.file);
|
|
142
|
+
const report = await validator.validateBytes(new Uint8Array(readFileSync(file)), {
|
|
143
|
+
uri: path.basename(file),
|
|
144
|
+
maxIssues: options.maxIssues,
|
|
145
|
+
ignoredIssues: options.ignored,
|
|
146
|
+
externalResourceFunction: async (uri) => new Uint8Array(readFileSync(path.resolve(path.dirname(file), decodeURIComponent(uri)))),
|
|
147
|
+
});
|
|
148
|
+
const issues = report.issues ?? {};
|
|
149
|
+
const errors = issues.numErrors ?? 0;
|
|
150
|
+
return {
|
|
151
|
+
ok: true,
|
|
152
|
+
pass: errors === 0,
|
|
153
|
+
file,
|
|
154
|
+
validator_version: report.validatorVersion,
|
|
155
|
+
errors,
|
|
156
|
+
warnings: issues.numWarnings ?? 0,
|
|
157
|
+
infos: issues.numInfos ?? 0,
|
|
158
|
+
hints: issues.numHints ?? 0,
|
|
159
|
+
truncated: Boolean(issues.truncated),
|
|
160
|
+
ignored: options.ignored,
|
|
161
|
+
issues: (issues.messages ?? []).map((message) => ({
|
|
162
|
+
code: message.code,
|
|
163
|
+
severity: SEVERITY_NAMES[message.severity] ?? String(message.severity),
|
|
164
|
+
pointer: message.pointer,
|
|
165
|
+
message: message.message,
|
|
166
|
+
})),
|
|
167
|
+
info: report.info ?? {},
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Runs the validation and returns the exit code.
|
|
173
|
+
* @returns {Promise<number>} Exit code.
|
|
174
|
+
*/
|
|
175
|
+
async function main() {
|
|
176
|
+
let options;
|
|
177
|
+
try {
|
|
178
|
+
options = parseArguments(process.argv.slice(2));
|
|
179
|
+
} catch (error) {
|
|
180
|
+
emit({ ok: false, error: `bad options: ${error.message}` });
|
|
181
|
+
return EXIT_BAD_OPTIONS;
|
|
182
|
+
}
|
|
183
|
+
if (!existsSync(options.file)) {
|
|
184
|
+
emit({ ok: false, error: `file not found: ${path.resolve(options.file)}` });
|
|
185
|
+
return EXIT_FAILED;
|
|
186
|
+
}
|
|
187
|
+
const packageFolder = findValidator(options.validatorDirectory);
|
|
188
|
+
if (!packageFolder) {
|
|
189
|
+
emit({ ok: true, pass: true, skipped: true, file: path.resolve(options.file),
|
|
190
|
+
reason: `the Khronos glTF-Validator is not installed; run: ${INSTALL_HINT}` });
|
|
191
|
+
return EXIT_PASSED;
|
|
192
|
+
}
|
|
193
|
+
try {
|
|
194
|
+
const validator = createRequire(import.meta.url)(packageFolder);
|
|
195
|
+
const result = await validate(validator, options);
|
|
196
|
+
emit(result);
|
|
197
|
+
return result.pass ? EXIT_PASSED : EXIT_FAILED;
|
|
198
|
+
} catch (error) {
|
|
199
|
+
emit({ ok: false, error: `validation failed: ${error?.message ?? error}` });
|
|
200
|
+
return EXIT_FAILED;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
process.exitCode = await main();
|
|
@@ -38,6 +38,7 @@ Run tasks from a plan: build each with its tests, have an independent verifier c
|
|
|
38
38
|
- task lines end `· done <HH:MM>`
|
|
39
39
|
- `⏱ Run <n> end <date time> · <done>/<k> tasks · active <h m> · <min> min/task · waited <m>`
|
|
40
40
|
- **Subagents:** this skill is the request to use them (`Agent`, `Task`, …). None → work inline, self-verify with the charter, say so.
|
|
41
|
+
- **The user's words travel verbatim — ENFORCED.** A direction the user gives mid-run is appended to the run log word for word, before acting on it: `📝 User direction <date time> · applies to T<n>…: "<exact text>"` (a later one that replaces it says `supersedes` and which; none is deleted). Every later subagent brief of the run carries all of them verbatim — never a summary — and a task that drives a gauntlet also appends each to the job's `user-directions.md` (bt-gauntlet `references/spec-composition.md`).
|
|
41
42
|
|
|
42
43
|
## The loop
|
|
43
44
|
|
|
@@ -68,7 +69,7 @@ Work in **phases**: the plan's `### Phase N` groups, else up to 3 consecutive ta
|
|
|
68
69
|
|
|
69
70
|
`[SNAPSHOTS]` is the feature folder's `snapshots/` path. `[SCOPE]` — **standard:** *"Do not add mutation testing, fuzzing, restarts or audits of untouched files unless something you found points there; aim for about 25 tool calls and report rather than expand."* **`--strict`:** *"Be adversarial: actively look for any reason the Acceptance is NOT met — mutation checks against the tests, randomized inputs, re-deriving values from the plan's Decisions and Design Reference, live QA of every rendered or exported surface."* For a task built on a sibling skill (e.g. bt-design's 3D-Hero-Scroll), give the verifier its relevant part — its documented options are Acceptance.
|
|
70
71
|
|
|
71
|
-
**Every subagent gets a brief, not homework:** its task blocks with the Decisions / Design Reference entries they cite, the SPEC.md parts touched, the Reference excerpts needed with links (**always the full Coding Practices — ENFORCED**), its owned files (track builders: plus the *Parallel rules*), the test command, the `wait.mjs` and `bt-cdp.mjs` paths, its exact `dashboard.mjs` lines with the folder filled in (`task`, `snapshot`, `live`; `--verbose`: its `details` fields), **builders and verifiers: the whole *Snapshots tell the story* section and the *live file* rule**, the project's agent instructions, *Work fast*, and: *"Do not read the Agent Reference or SPEC.md in full — the parts you need are here, and this overrides any standing instruction to read it first. Read one sub-document (search it, never the whole file) only if you hit an API this brief does not cover, and say which."*
|
|
72
|
+
**Every subagent gets a brief, not homework:** the run's recorded user directions, verbatim; its task blocks with the Decisions / Design Reference entries they cite, the SPEC.md parts touched, the Reference excerpts needed with links (**always the full Coding Practices — ENFORCED**), its owned files (track builders: plus the *Parallel rules*), the test command, the `wait.mjs` and `bt-cdp.mjs` paths, its exact `dashboard.mjs` lines with the folder filled in (`task`, `snapshot`, `live`; `--verbose`: its `details` fields), **builders and verifiers: the whole *Snapshots tell the story* section and the *live file* rule**, the project's agent instructions, *Work fast*, and: *"Do not read the Agent Reference or SPEC.md in full — the parts you need are here, and this overrides any standing instruction to read it first. Read one sub-document (search it, never the whole file) only if you hit an API this brief does not cover, and say which."*
|
|
72
73
|
|
|
73
74
|
## Feature folder and dashboard
|
|
74
75
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: bt-gauntlet
|
|
3
|
-
description: "The Babylon Toolkit Gauntlet Skill runs a loop-engineering gauntlet: builders versus fresh harsh critics, scored against a LOCKED target image from LOCKED cameras, looping until a success condition, boundary, or stall rule stops it. Two deliverable kinds share one loop — BabylonJS / Babylon Toolkit web games, and anything authored in Unity (game levels and the individual assets in them: baked GI, IBL, reflection probes, terrain, fog, tonemapping, materials, models), with headless Blender as the tool for low-level model work. Unity plus the Toolkit exporter is the content-creation surface and asset manager, shipping interactive glTF that BabylonJS loads; iteration stays inside Unity on camera snapshots, relying on Unity→Babylon parity, with export + browser checkpoints at milestones rather than every round. Fully RESUMABLE: each job lives in its own .agents/gauntlet/<name>/ workspace, so the user can stop any time (daily limits, calling it a night) and continue weeks later in a brand-new session with `/bt-gauntlet --resume <name>`. Use for a long-running, self-improving build of an ambitious game artifact, level, or asset (e.g. `/bt-gauntlet build me a rain-soaked neon alley level at the fidelity of this reference image`)."
|
|
3
|
+
description: "The Babylon Toolkit Gauntlet Skill runs a loop-engineering gauntlet: builders versus fresh harsh critics, scored against a LOCKED target image from LOCKED cameras, looping until a success condition, boundary, or stall rule stops it. The user's directions are kept word for word and research accumulates in a ledger; a modelled asset is judged on its whole silhouette in every view before any detail. Two deliverable kinds share one loop — BabylonJS / Babylon Toolkit web games, and anything authored in Unity (game levels and the individual assets in them: baked GI, IBL, reflection probes, terrain, fog, tonemapping, materials, models), with headless Blender as the tool for low-level model work. Unity plus the Toolkit exporter is the content-creation surface and asset manager, shipping interactive glTF that BabylonJS loads; iteration stays inside Unity on camera snapshots, relying on Unity→Babylon parity, with export + browser checkpoints at milestones rather than every round. Fully RESUMABLE: each job lives in its own .agents/gauntlet/<name>/ workspace, so the user can stop any time (daily limits, calling it a night) and continue weeks later in a brand-new session with `/bt-gauntlet --resume <name>`. Use for a long-running, self-improving build of an ambitious game artifact, level, or asset (e.g. `/bt-gauntlet build me a rain-soaked neon alley level at the fidelity of this reference image`)."
|
|
4
4
|
allowed-tools: Read, Grep, Glob, Edit, Write, Bash, WebFetch(domain:raw.githubusercontent.com), Agent, Task
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -23,7 +23,7 @@ Use the user's message after the skill name as the `arguments`.
|
|
|
23
23
|
- **`--name: slug`** — this gauntlet job's name; it becomes the job's workspace folder `.agents/gauntlet/<name>/`. **Any number of gauntlet jobs can exist side by side in one project** (e.g. `cod-fps`, `neon-alley`), each fully independent. If omitted on a new gauntlet, derive a short kebab-case slug from the brief and confirm it in the interview.
|
|
24
24
|
- **`--template: gauntlet | bounded`** — which loop template drives the run. `gauntlet` = **Template A** (full-on Shumer-style fan-out: builders vs fresh harsh critics). `bounded` = **Template B** (single-track objective / metric / boundary loop card — use when reliability and cost matter more than dramatic language). **Default: `gauntlet`.** Recorded in `loop-card.md`; a job never mixes templates. Both live in `references/loop-templates.md`.
|
|
25
25
|
- **`--rounds: N`** — maximum full rounds (build → verify → critic → record) THIS invocation may run before parking cleanly with a status report and the exact resume command. **Default: `5`.** Override per session (`--rounds:20` for a long night).
|
|
26
|
-
- **`--card: file`** — a **pre-filled loop card**: one of the two templates with EVERY slot already answered, including `<NAME>` and `<DELIVERABLE KIND>`. Skips the interview entirely — validate the card, copy it to `.agents/gauntlet/<name>/loop-card.md`, distill `brief.md` from it, and start round 1 without asking anything. This is the **non-interactive entry** used when a spec/plan drives the gauntlet. If any slot is unfilled or vague, STOP and report which — never guess a slot.
|
|
26
|
+
- **`--card: file`** — a **pre-filled loop card**: one of the two templates with EVERY slot already answered, including `<NAME>` and `<DELIVERABLE KIND>`. Skips the interview entirely — validate the card, copy it to `.agents/gauntlet/<name>/loop-card.md`, distill `brief.md` from it, seed `user-directions.md` with every user quotation the card carries (verbatim), and start round 1 without asking anything. This is the **non-interactive entry** used when a spec/plan drives the gauntlet. If any slot is unfilled or vague, STOP and report which — never guess a slot.
|
|
27
27
|
- **`--resume [<name>]`** — skip the interview, load `.agents/gauntlet/<name>/`, and continue at its `NEXT ACTION`. This is how the loop continues in a brand-new session a day or a week later. Name resolution: an explicit name targets that job; with no name and exactly ONE job in `.agents/gauntlet/`, resume it; with several jobs, list them (name, kind, parts done/total, next action) and ask which one — never guess.
|
|
28
28
|
- **`--status [<name>]`** — read-only report: parts done/total, budgets spent vs boundaries, last critic score, active stall tier, next action. With no name, print an **index of ALL gauntlet jobs**. Runs zero rounds.
|
|
29
29
|
- **`--stop [<name>]`** — park that job deliberately: write the current status into its `progress.md`, print the resume command, run nothing further.
|
|
@@ -50,9 +50,9 @@ Use the user's message after the skill name as the `arguments`.
|
|
|
50
50
|
|
|
51
51
|
| File | What it holds |
|
|
52
52
|
|---|---|
|
|
53
|
-
| `references/workspace.md` | the `.agents/gauntlet/<name>/` layout, `progress.md
|
|
54
|
-
| `references/critic-rubrics.md` | the critic contract, the scoring rubrics, the gap-list rules, the hard gates, the stall ladder |
|
|
55
|
-
| `references/target-images.md` | generating, prompting, reachability-checking, locking the target; locked cameras
|
|
53
|
+
| `references/workspace.md` | the `.agents/gauntlet/<name>/` layout, the `progress.md`, round-journal, `user-directions.md`, `research/ADOPTED.md` and `coverage.json` formats, the resume protocol |
|
|
54
|
+
| `references/critic-rubrics.md` | the critic contract, whole shape first, the scoring rubrics, the gap-list rules, the hard gates, the research ledger, the stall ladder |
|
|
55
|
+
| `references/target-images.md` | generating, prompting, reachability-checking, locking the target; locked cameras and the **camera-accuracy gate**; **generation backends** (kie default, Higgsfield API and CLI mapping) |
|
|
56
56
|
| `references/loop-templates.md` | Template A and Template B loop cards |
|
|
57
57
|
| `references/unity-pipeline.md` | the Unity build + verify pipeline, with Blender as the modelling tool and image → 3D blockouts (Hi3D first, then Higgsfield) |
|
|
58
58
|
| `references/spec-composition.md` | composition with bt-spec / bt-plan / bt-execute, and cross-host notes |
|
|
@@ -102,14 +102,14 @@ Interview batches:
|
|
|
102
102
|
1. **DELIVERABLE KIND + DELIVERABLE** — Which of the three kinds is this: a **web game**, a **Unity level for export**, or a **Blender model**? Then what exactly ships (playable browser demo, one polished level, a hero asset with LODs...)? Module style: ES6/ESM default; UMD only if explicitly demanded. New project or existing? Target folder. **Read the matching pipeline reference now** and run its prerequisite gate before going further — a failed gate (no Pro licence, no toolkit bootstrap, no rendering Editor for snapshots, no Blender) changes what is worth agreeing to.
|
|
103
103
|
2. **OBJECTIVE** — The exact outcome that must become true, as one testable sentence. Rewrite with the user until it is inspectable.
|
|
104
104
|
3. **THE TARGET + CAMERAS** — Per `references/target-images.md`: does the user have reference media, is there an existing artifact to refine, or do we generate the target? Agree the target image(s), run the **reachability pass** (Reachable / Approximable / **OUT OF REACH**), and agree the **locked cameras** — one per target, three to five, including a detail crop. Settle the **image-generation backend** too (kie by default, the Higgsfield CLI if it is installed and signed in or the user asks for it — `target-images.md` §1a) and record it in `pipeline.md`. Plus numeric benchmarks: target FPS @ resolution, max load time, draw-call / texture / triangle budgets. If the user has no benchmark, making a defensible one is part of the interview, not skipped.
|
|
105
|
-
4. **RUBRIC + PASS THRESHOLD** — Confirm the rubric axes from `references/critic-rubrics.md` (or amend them for this job) and the score a part must reach to pass. Default: **8.
|
|
105
|
+
4. **RUBRIC + PASS THRESHOLD** — Confirm the rubric axes from `references/critic-rubrics.md` (or amend them for this job) and the score a part must reach to pass. Default: **8.5 / 10 plus every hard gate green** (also the default a spec- or plan-driven card uses when the user names none).
|
|
106
106
|
5. **SUCCESS CONDITION** — When is the loop DONE? (e.g. "every part scores ≥8/10 from a fresh critic; sustained 60 FPS @1080p in Chrome; zero console errors; the final integration critic passes"). Success and failure defined separately.
|
|
107
|
-
6. **BOUNDARIES** — Time/cost expressed in **rounds and attempts, not wall-clock** (wall-clock cannot survive a two-week pause; counters can): max total rounds, max attempts per part before a forced strategy change, max consecutive no-improvement rounds. Permission gates: no deploy, no purchases/paid services, no credentials, no destructive ops, no contacting anyone — without explicit approval. For `unity`: the **bake tier policy** (how many rounds at preview tier before a production bake). Escalation rules: what blocks and waits for the user.
|
|
107
|
+
6. **BOUNDARIES** — Time/cost expressed in **rounds and attempts, not wall-clock** (wall-clock cannot survive a two-week pause; counters can): max total rounds (recommended default **100** when the user names none; never invent a smaller ceiling — `references/spec-composition.md`), max attempts per part before a forced strategy change, max consecutive no-improvement rounds. Permission gates: no deploy, no purchases/paid services (image generation through the configured generation tools is authorised asset generation, not a paid service — see *Textures are generated* below), no credentials, no destructive ops, no contacting anyone — without explicit approval. For `unity`: the **bake tier policy** (how many rounds at preview tier before a production bake). Escalation rules: what blocks and waits for the user.
|
|
108
108
|
7. **Kind specifics** — For `web-game`: genre & camera, physics (Havok default), input, audio, asset pipeline, scene scale, target browsers, and explicit scope cuts. For `unity`: which scene (that is where the work is authored, rendered and judged), render pipeline, terrain in scope?, existing lighting to preserve, whether Blender model work is in scope (and if so which assets, in-place or new path, tri budget, texel density, rig to match), the bake tier policy, and the **milestone checkpoints** (round 1, each major part group as it passes, and the end — by default). The Editor runs **with graphics** (never `-nographics`) and with the GPU Resident Drawer off, or its snapshots show only the sky. The level is authored like a full Unity game level and relies on Unity→Babylon parity; checkpoints confirm it. What finally gets exported — the whole level, or an individual asset as a container — is the user's call at checkpoint time, not something to decide now.
|
|
109
109
|
|
|
110
110
|
8. **Loop mechanics** — confirm `--template` choice, rounds-per-session default, and any parts the user wants prioritized first.
|
|
111
111
|
|
|
112
|
-
Write all answers to `.agents/gauntlet/<name>/brief.md`. Write the locked cameras to `cameras.md` and the pipeline state to `pipeline.md`. Fill the chosen template's slots to produce `.agents/gauntlet/<name>/loop-card.md`. **Show the user the filled loop card and get confirmation before round 1.** Nothing builds until the card is confirmed.
|
|
112
|
+
Write all answers to `.agents/gauntlet/<name>/brief.md`, and the user's own brief and every instruction they gave in the interview, word for word, to `user-directions.md`. Write the locked cameras to `cameras.md` and the pipeline state to `pipeline.md`. Fill the chosen template's slots to produce `.agents/gauntlet/<name>/loop-card.md`. **Show the user the filled loop card and get confirmation before round 1.** Nothing builds until the card is confirmed.
|
|
113
113
|
|
|
114
114
|
---
|
|
115
115
|
|
|
@@ -121,13 +121,16 @@ Write all answers to `.agents/gauntlet/<name>/brief.md`. Write the locked camera
|
|
|
121
121
|
.agents/gauntlet/<name>/
|
|
122
122
|
├── loop-card.md # the constitution: kind, objective, target, rubric, OUT OF REACH, boundaries
|
|
123
123
|
├── brief.md # full interview answers
|
|
124
|
-
├──
|
|
124
|
+
├── user-directions.md # EVERY user direction about the job, verbatim, dated, append-only — whole into every brief
|
|
125
|
+
├── cameras.md # LOCKED capture cameras (+ solve residuals) — evidence from anywhere else is inadmissible
|
|
125
126
|
├── pipeline.md # pipeline state: project paths, licence tier, capture mode, bake tier, checkpoints
|
|
126
127
|
├── components.md # component inventory of supplied interactive assets (when applicable)
|
|
128
|
+
├── coverage.json # modelled assets: each part's region on the whole-asset reference views
|
|
127
129
|
├── progress.md # THE resume file — parts, scores, attempts, failed approaches, NEXT ACTION
|
|
130
|
+
├── research/ # research notes + ADOPTED.md, the cumulative ledger of adopted techniques
|
|
128
131
|
├── rounds/ # append-only per-round journals with the full gap list
|
|
129
132
|
├── reference/ # the LOCKED target image(s)
|
|
130
|
-
└── evidence/ # our side: round-NN-<part>-<camera>.png + metrics + metadata dumps
|
|
133
|
+
└── evidence/ # our side: round-NN-<part>-<camera>.png, round-NN-overlay.png + metrics + metadata dumps
|
|
131
134
|
```
|
|
132
135
|
|
|
133
136
|
**Full layout, file formats and the resume protocol: `references/workspace.md`.**
|
|
@@ -138,13 +141,16 @@ Write all answers to `.agents/gauntlet/<name>/brief.md`. Write the locked camera
|
|
|
138
141
|
|
|
139
142
|
# The Round Protocol (one round; every kind, both templates)
|
|
140
143
|
|
|
141
|
-
|
|
142
|
-
2. **Select** the highest-impact unmet criterion — normally the top entries of the **standing gap list** from the last critic, respecting user priorities from the brief.
|
|
143
|
-
3. **Build** — make one coherent improvement, through the deliverable kind's build surface. **Template A:** fan out builder subagents only for *genuinely independent* parts; **keep tightly coupled systems under one sequential owner** (broad fan-out performs WORSE than sequential ownership for coupled visual systems). **Template B:** single-track. When a stall tier is active, obey it — incremental tweaks are forbidden and the round must carry a `STRATEGY:` line.
|
|
144
|
-
4. **Verify with the real artifact** — run the pipeline's verify recipe and capture evidence **from the locked cameras** into `.agents/gauntlet/<name>/evidence/`: screenshots plus whatever metrics that pipeline can measure in-loop. **Use the pipeline's cheap in-loop mode every round** — for `unity` that is a Unity camera snapshot, *not* a bake-export-serve-browser round trip; the expensive engine verification is a deliberate checkpoint (round 1, each milestone, and when the work is done), never a per-round tax. **Screenshots are required for visual parts.** If the host cannot produce the evidence, mark the part `unverified` — it can NEVER be flipped to `- [x]` on the builder's word.
|
|
144
|
+
**Record first, then act.** The moment the user says anything about the job — mid-round, at a park, on resume — append it to `user-directions.md` word for word (time, exact text, the parts it applies to) **before acting on it**. Never paraphrase it into a brief instead: every builder and critic brief carries the **whole file verbatim**, plus the `research/ADOPTED.md` rules that govern its part, quoted.
|
|
145
145
|
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
1. **Inspect** the current state: `progress.md` + `pipeline.md` + `user-directions.md` + `research/ADOPTED.md` + the actual project — plus `components.md` when supplied assets carry component metadata (write it now if it is owed and missing).
|
|
147
|
+
2. **Select** the highest-impact unmet criterion — normally the top entries of the **standing gap list** from the last critic, respecting user priorities from the brief. **Decomposing a modelled asset into parts** (round 1, or any re-decomposition) writes `coverage.json` and must pass bt-blender's `coverage-check` before any part builds: a region of the reference that no part covers is a gap of the nearest part, never "not built yet" (`references/workspace.md`).
|
|
148
|
+
3. **Build** — make one coherent improvement, through the deliverable kind's build surface, following every `user-directions.md` line in force and every applicable `ADOPTED.md` rule. **Template A:** fan out builder subagents only for *genuinely independent* parts; **keep tightly coupled systems under one sequential owner** (broad fan-out performs WORSE than sequential ownership for coupled visual systems). **Template B:** single-track. When a stall tier is active, obey it — incremental tweaks are forbidden and the round must carry a `STRATEGY:` line.
|
|
149
|
+
4. **Verify with the real artifact** — run the pipeline's verify recipe and capture evidence **from the locked cameras** into `.agents/gauntlet/<name>/evidence/`: screenshots plus whatever metrics that pipeline can measure in-loop. **Use the pipeline's cheap in-loop mode every round** — for `unity` that is a Unity camera snapshot, *not* a bake-export-serve-browser round trip; the expensive engine verification is a deliberate checkpoint (round 1, each milestone, and when the work is done), never a per-round tax. **Screenshots are required for visual parts.** If the host cannot produce the evidence, mark the part `unverified` — it can NEVER be flipped to `- [x]` on the builder's word. **A modelled asset adds ONE overlay sheet per round** — `evidence/round-NN-overlay.png` + its JSON from bt-blender's `overlay-sheet`: our outline over the reference on EVERY locked view plus the whole-asset reference views, with per-view IoU and the largest missing / extra regions. A view whose solved camera fails the camera-accuracy gate is marked EVIDENCE-ONLY on it (`references/target-images.md` § 5).
|
|
150
|
+
**Then the orchestrator's whole-shape check:** open the overlay sheet, every view, and write your own one-paragraph whole-shape read into the round journal (`## Whole-shape check`) before handing the part to the critic.
|
|
151
|
+
|
|
152
|
+
5. **Criticize (fresh context)** — spawn a harsh critic subagent per `references/critic-rubrics.md`. It receives the loop card, the part's spec, the target, the evidence (the overlay sheet included), the metrics, `user-directions.md` whole, the part's `ADOPTED.md` rules, **the previous round's screenshot and verdict**, and the pipeline's extra inputs — **never the builder's rationale**. It answers **whole shape first** — per view, does the whole shape match (yes/no, IoU, biggest region)? — before any crop or detail score; any "no" caps the part at 5.0 and makes the silhouette GAP 01. It returns a **scored rubric**, the **FULL prioritized gap list** (not one gap), every **hard gate** as pass/fail (*User directions* and *Adopted techniques* included), a regression note, and PASS/FAIL. It grades pixels, numbers and behaviour — never effort or intent.
|
|
153
|
+
6. **Record** — append `rounds/round-NN.md` with the score and the whole gap list; update `progress.md`: on PASS flip the part to `- [x]`; on FAIL log the top gap and increment the attempt counter; update the best/last scores and the stall tier. Persist BEFORE the next round. **Report from the whole:** any round result or visual verdict you give the user is read from every view of the overlay sheet and names each view's IoU — never from close-ups or a subset of views.
|
|
148
154
|
7. **Gate check**, in order:
|
|
149
155
|
- **Success condition met** → run the **integration pass**: one final fresh critic inspects the complete artifact end-to-end for consistency, seams, and fit with the objective (local quality can rise while the whole becomes inconsistent). For `unity` this is where the expensive path finally runs — **production bake → export → serve → browser** — so the integration critic judges the real deliverable and the perf, console, component and export-boundary gates are measured for real. Ask the user what to export if it is not obvious: the whole level, or an individual asset as a container. On pass, report DONE with the evidence summary.
|
|
150
156
|
|
|
@@ -179,7 +185,7 @@ generate_image(
|
|
|
179
185
|
aspect_ratio: "16:9", resolution: "2K", output_format: "png")
|
|
180
186
|
```
|
|
181
187
|
|
|
182
|
-
**Interview settles:** kind `unity`; three locked cameras (`gauntlet_hero` down the alley, `gauntlet_side` across the puddles, `gauntlet_detail` on a sign); pass threshold 8.
|
|
188
|
+
**Interview settles:** kind `unity`; three locked cameras (`gauntlet_hero` down the alley, `gauntlet_side` across the puddles, `gauntlet_detail` on a sign); pass threshold 8.5; budgets 60 FPS @1080p, ≤900 draws; bake policy *preview until round 8, then production*.
|
|
183
189
|
|
|
184
190
|
**The reachability pass matters here.** URP has no screen-space reflections to export — the declared approach becomes *a reflection probe per puddle group plus a wet-mask material*, recorded as **Approximable**. True volumetric light shafts go to `OUT OF REACH`; height fog stands in. Without this the critic names "no SSR" every round forever.
|
|
185
191
|
|
|
@@ -269,9 +275,9 @@ Nothing model-specific is needed — `selection == null` exports the level, the
|
|
|
269
275
|
|
|
270
276
|
The checkpoint is also where the critic gets both the Unity snapshot and the browser frame of the same angle and must say which side a gap is on — *Unity right, browser wrong* means material translation, not the sculpt, so don't re-model.
|
|
271
277
|
|
|
272
|
-
**Textures are generated, never procedural stand-ins** — `generate_image` (kie by default, Higgsfield per `target-images.md` §1a) for albedo, normal and roughness detail. A part that starts from nothing may take an image-to-3D GLB as its blockout: Hi3D when `HI3D_ACCESS_KEY` + `HI3D_SECRET_KEY` are set, else Higgsfield (API or CLI) (`unity-pipeline.md`). "Substituted procedural noise for the missing map" is a gate failure, and it is the single most common reason a model reads as plastic.
|
|
278
|
+
**Textures are generated, never procedural stand-ins** — `generate_image` (kie by default, Higgsfield per `target-images.md` §1a) for albedo, normal and roughness detail. A part that starts from nothing may take an image-to-3D GLB as its blockout: Hi3D when `HI3D_ACCESS_KEY` + `HI3D_SECRET_KEY` are set, else Higgsfield (API or CLI) (`unity-pipeline.md`). "Substituted procedural noise for the missing map" is a gate failure, and it is the single most common reason a model reads as plastic. Image generation through the project's configured generation tools (kie by default, Higgsfield) for textures, decals and art is **authorised asset generation, not a "paid service" needing approval** — a spec, plan or loop card never bans it unless the user does, and a ban on image-to-3D (generated meshes) never extends to 2D image generation.
|
|
273
279
|
|
|
274
|
-
Scored on the **model rubric** (
|
|
280
|
+
Scored on the **reference-match model rubric** (Shape Fidelity 4 · Surface & Material 2 · Detail Density 2 · Topology & Efficiency 1 · Integration Readiness 1, with shape caps and the shape-fidelity gate — the critic lists the turntable's defining features before it sees any evidence), with gates on tri budget, ≤4 influences/vertex, weights normalised, transform hygiene and GUID survival.
|
|
275
281
|
|
|
276
282
|
## Example 4 — The canonical brief (engine correction is automatic)
|
|
277
283
|
|
|
@@ -334,7 +340,11 @@ candy-themed circuit with a jump, a tunnel, boost pads and scenery everywhere. K
|
|
|
334
340
|
- **No single gameable score.** The rubric score decides quality; the hard gates decide admissibility. A part passes only when both are satisfied — perf, console, camera lock, component authority and the pipeline gate all green.
|
|
335
341
|
- **The critic returns the whole gap list.** One gap per round is a slow loop; a comprehensive, actionable, prioritized list is the work order for the next round.
|
|
336
342
|
- **Scores must be comparable.** Every critic sees the previous verdict and screenshot. A regression scores worse and says what regressed.
|
|
337
|
-
- **Repetition without a changed strategy is a boundary event**, not persistence. The stall ladder is mandatory, and its triggers are concrete: no full-point gain in 2 rounds, or the same top gap twice.
|
|
343
|
+
- **Repetition without a changed strategy is a boundary event**, not persistence. The stall ladder is mandatory, and its triggers are concrete: no full-point gain in 2 rounds, or the same top gap twice. Before that, a gap that survives one fix round triggers research into how professional technical artists solve it, and the builder rebuilds with that technique (`references/critic-rubrics.md` § 4, *Research trigger*).
|
|
344
|
+
- **The user's words travel verbatim.** Every direction lands in `user-directions.md` before it is acted on, and every brief carries the whole file — a summary loses them. A later direction marks the one it supersedes; nothing is deleted. A round that breaks a line fails.
|
|
345
|
+
- **Research accumulates; it never replaces.** Adopted techniques are numbered rules in `research/ADOPTED.md`; a new note adds or amends, a rule leaves only by a dated amendment with its evidence, and a rebuild, STRATEGY swing or "start over" keeps the ledger — it throws away the build, never the method.
|
|
346
|
+
- **Whole shape before detail, every round.** The overlay sheet covers every locked view and the whole-asset reference; a part whose whole shape is wrong in any view cannot score above 5.0, however good its crops look. Every reference region belongs to a part (`coverage.json`), and a view from a badly solved camera never scores.
|
|
347
|
+
- **No report from a subset of views.** Before you report a round's look to the user or hand a part to the critic, open the overlay sheet's every view and write your whole-shape read in the journal.
|
|
338
348
|
- **Progress is never self-reported.** Screenshots, perf numbers, exported metadata, diffs — an observable receipt, or it didn't happen.
|
|
339
349
|
- **Never chase what cannot cross the boundary.** The `OUT OF REACH` list exists so critics stop naming impossible gaps.
|
|
340
350
|
- **Permissions start reversible.** Deploy, delete, spend, publish, message, and secrets stay behind explicit user approval, always.
|
|
@@ -13,15 +13,55 @@ A critic is a **fresh-context subagent**. It gets a fixed input set:
|
|
|
13
13
|
| Input | Why |
|
|
14
14
|
|---|---|
|
|
15
15
|
| `loop-card.md` | the objective, the bar, the success condition |
|
|
16
|
+
| `user-directions.md` — the **whole file, verbatim** | the user's own words; the *User directions* gate |
|
|
17
|
+
| The `research/ADOPTED.md` rules that govern the part, verbatim | the *Adopted techniques* gate |
|
|
16
18
|
| The part's entry from `progress.md` | what this round was trying to fix |
|
|
17
19
|
| `reference/` — the target image(s) for this part's camera | the bar, as pixels |
|
|
18
20
|
| `evidence/round-NN-<part>-<camera>.png` | our current result, from the **locked camera** |
|
|
19
21
|
| `evidence/round-NN-<part>-metrics.json` | FPS, draw calls, console errors, load time, export metadata |
|
|
22
|
+
| `evidence/round-NN-overlay.png` + `.json` *(modelled assets)* | the whole silhouette over the reference in every locked view and the whole-asset views, per-view IoU, largest missing / extra regions |
|
|
23
|
+
| `coverage.json` + its `coverage-check` result *(modelled assets)* | the *Coverage* gate |
|
|
20
24
|
| The **previous round's** screenshot and verdict for this part, when one exists | so scores are comparable and regressions are visible |
|
|
21
25
|
| `components.md` when it exists | component-authority enforcement |
|
|
22
|
-
| `cameras.md` | to confirm the evidence was shot from the locked transform |
|
|
26
|
+
| `cameras.md` | to confirm the evidence was shot from the locked transform, and each solved view's residual (*Camera accuracy*) |
|
|
23
27
|
| The pipeline's extra criteria (see the pipeline reference for the deliverable kind) | export boundary, GUID survival, etc. |
|
|
24
28
|
|
|
29
|
+
**Reference first — before it opens any evidence.** The critic studies the target views that judge the part, at full
|
|
30
|
+
resolution, and writes a **DEFINING FEATURES** list: the part's outline in each judging view, its proportions, and
|
|
31
|
+
every signature feature with its shape, position, size and orientation, in measurable terms (pixels on the named
|
|
32
|
+
reference, angles, ratios). It also states each surface's **form language** — rounded and flowing (edges rolling
|
|
33
|
+
over a radius, highlights sweeping continuously), faceted (flat planes meeting at crisp creases), or a mix with named
|
|
34
|
+
crisp lines — read from the highlights and shading, not only the outline. Labelling a rounded surface "faceted" sends
|
|
35
|
+
every later round building the wrong form. The list is fixed before the critic sees our result or the previous verdict, so it can
|
|
36
|
+
only be anchored to the target. The critic then compares each feature against the evidence, view by view, at the same
|
|
37
|
+
scale (its own crops and overlays — the builder's overlays are a convenience, not the judgment), and marks it MATCH,
|
|
38
|
+
CLOSE (right shape, small offset — say how much) or WRONG/MISSING. It judges the target image itself, never a previous
|
|
39
|
+
verdict's description of it.
|
|
40
|
+
|
|
41
|
+
**Whole shape first — after DEFINING FEATURES, before any crop or detail score.** For a modelled asset the critic
|
|
42
|
+
opens the overlay sheet and answers, for **every** locked view and every whole-asset reference view, one line:
|
|
43
|
+
*does the whole shape match?* — `yes` / `no`, the view's IoU, and its largest missing and extra region (where, and %
|
|
44
|
+
of the reference silhouette). `yes` needs IoU ≥ 0.90 **and** no single missing or extra region over 1 % of the
|
|
45
|
+
reference silhouette's area (a loop card may tighten both); anything else is `no`. A view marked EVIDENCE-ONLY
|
|
46
|
+
(*Camera accuracy*, below) is reported but neither scores nor caps. **Any `no` caps the part at 5.0 / 10 and makes
|
|
47
|
+
the silhouette in that view GAP 01**, whatever the crops, stations or materials show. Close-up and station scoring
|
|
48
|
+
come only after this step — a part can measure well at every station and still be the wrong overall shape. A round
|
|
49
|
+
with no overlay sheet fails the *Shape fidelity* gate.
|
|
50
|
+
|
|
51
|
+
**Station measurements — measure, never eyeball.** The Agent Reference's Blender guide (`unity-blender-cli.md`
|
|
52
|
+
§ 8.4b) makes station measurement the method for any model built from reference images; the loop adds that the
|
|
53
|
+
critic re-checks the numbers. When a part is modelled from a set of reference views, every round's evidence includes the part measured at **stations** along its length in every judging view: width in the front
|
|
54
|
+
and top views, height and thickness in the side view, depth where a view shows it. Each station gives reference
|
|
55
|
+
against ours at that view's own scale, with the delta in pixels, metres and percent, and the station lines drawn on
|
|
56
|
+
both images (`evidence/round-NN-<part>-stations.json` + `round-NN-<part>-stations-<view>.png`). Whole-silhouette IoU
|
|
57
|
+
cannot replace this: a part can sit in the right place, be 15 % too fat, and still score a good IoU. Stations
|
|
58
|
+
measure **form** as well as size: at two or three stations per part, also measure the cross-section's corner radii
|
|
59
|
+
and judge whether the shading rolls continuously or breaks into flat facets. A part that is rounded in the reference
|
|
60
|
+
and blocky or faceted in ours is a WRONG defining feature, whatever its widths measure. Grade each
|
|
61
|
+
station **MATCH** ≤ 3 % (or ≤ 1 cm), **CLOSE** ≤ 6 %, **WRONG** > 6 %. A WRONG station is a WRONG defining feature
|
|
62
|
+
(the outline of that view), and missing station evidence fails the shape-fidelity gate. Where two reference views
|
|
63
|
+
genuinely disagree, grade that dimension against the split the loop recorded, not against either view alone.
|
|
64
|
+
|
|
25
65
|
**It must never see:** the builder's rationale, its chain of decisions, its summary of what it did, its
|
|
26
66
|
own claim of success, or the round journal's narrative. The critic grades pixels, numbers and behaviour —
|
|
27
67
|
never effort or intent.
|
|
@@ -48,7 +88,24 @@ table applies.
|
|
|
48
88
|
| **Detail & Density** | 0–2 | Set dressing, clutter, wear, edge damage, decals, scatter, small-scale variation. Does the frame hold up under a fine-toothed comb? |
|
|
49
89
|
| **Motion & Life** | 0–1 | Animation, wind, particles, flicker, ambient movement. Score `n/a` and redistribute to Detail when the part is genuinely static. |
|
|
50
90
|
|
|
51
|
-
**
|
|
91
|
+
**Reference-match model rubric** — the default for **asset parts judged against a locked target of the same object**
|
|
92
|
+
(a turnaround, orthographic views, a product shot): fidelity to the target dominates, because a part with the wrong
|
|
93
|
+
shape must never score near a pass on the strength of clean topology or materials — **10 points**:
|
|
94
|
+
|
|
95
|
+
| Axis | Points | What it covers |
|
|
96
|
+
|---|---|---|
|
|
97
|
+
| **Shape Fidelity** | 0–4 | Outline and proportions in **every** judging view (camera-solved views included), and every DEFINING FEATURE's shape, position, size and orientation against the target. |
|
|
98
|
+
| **Surface & Material** | 0–2 | Material separation and read, roughness/metal, normal detail, seams, no stretched UVs. |
|
|
99
|
+
| **Detail Density** | 0–2 | Panel lines, bevels, small forms, wear — where the target has them. |
|
|
100
|
+
| **Topology & Efficiency** | 0–1 | Triangle budget, clean normals, LOD chain. |
|
|
101
|
+
| **Integration Readiness** | 0–1 | Scale, orientation, pivot, naming, skinning hygiene. |
|
|
102
|
+
|
|
103
|
+
**Shape caps (mandatory, this rubric):** any DEFINING FEATURE WRONG/MISSING in any judging view → Shape Fidelity
|
|
104
|
+
≤ 2.0 and the **total ≤ 6.5**, whatever the other axes earn; two or more → total ≤ 5.5; the whole shape `no` in any
|
|
105
|
+
scored view (§ 1, *Whole shape first*) → **total ≤ 5.0**.
|
|
106
|
+
|
|
107
|
+
**Model / asset rubric** — for **asset parts** of a `unity` job with no same-object target (an original asset judged
|
|
108
|
+
against a mood or style target) (an individual model: silhouette, UVs, bakes, materials, topology, rig) — **10 points**:
|
|
52
109
|
|
|
53
110
|
| Axis | Points | What it covers |
|
|
54
111
|
|---|---|---|
|
|
@@ -84,6 +141,17 @@ Rules the critic must follow:
|
|
|
84
141
|
card — swap to layered alpha-tested branch planes with a translucency map."
|
|
85
142
|
- **Say when something needs to be thrown away.** If the model, layout or lighting rig needs a full
|
|
86
143
|
redesign, say so. Do not sugarcoat and do not settle.
|
|
144
|
+
- **Order a model's gaps by the fix order, then by impact.** For a modelled asset the fixes land in this
|
|
145
|
+
order, because each step changes what the next is judged on: **camera → silhouette → form (blockiness,
|
|
146
|
+
rounding) → materials → lighting → features → micro-detail.** A materials gap never outranks an open
|
|
147
|
+
silhouette or form gap.
|
|
148
|
+
- **Name primitive soup.** A model that reads as an assembly of boxes, cylinders and spheres, with new
|
|
149
|
+
primitives added after the blockout where the target shows one continuous surface built by loft, spin,
|
|
150
|
+
subdivision or a bevelled section, is a form gap even when every measurement passes. Say which surfaces
|
|
151
|
+
should be one continuous build and with which technique.
|
|
152
|
+
- **Show differences in colour.** For silhouette and form gaps, the critic's own evidence includes a coloured
|
|
153
|
+
difference overlay (reference-only pixels in one colour, ours-only in another) and a zoomed crop at the
|
|
154
|
+
station, so the builder sees exactly where and by how much.
|
|
87
155
|
- **Stay inside the reachable set.** The loop card's `OUT OF REACH` list names things the pipeline
|
|
88
156
|
physically cannot deliver (§ target-image reachability in `SKILL.md`). Do not raise gaps against those.
|
|
89
157
|
|
|
@@ -102,6 +170,13 @@ threshold AND every gate passes.**
|
|
|
102
170
|
| **Component authority** | a protected `TOOLKIT.*` component was reimplemented, bypassed or deleted without the full replacement-evidence checklist in the round journal |
|
|
103
171
|
| **Coding practices** | any code the round created or changed breaks the Agent Reference's **Coding Practices — ENFORCED**: TypeScript or JavaScript that is not clean and professional (needless `any` or loose typing, code converted to the other language unasked), one- or two-letter or obfuscated names (outside the allowed loop counters, axis/`uv` names, toolkit aliases and names that bind to exported data), dead code or leftover `console.log`, or code a developer new to the project could not read and maintain. **JSDoc never fails this gate**: list missing or thin JSDoc as a low-priority entry in the gap list. Quote the offending lines |
|
|
104
172
|
| **Game UI performance** | any HUD, overlay or GUI the round created or changed breaks the Agent Reference's **Game UI Performance — ENFORCED**: a per-frame value (speed, RPM, needles, timers, bars, markers) set through React state, props, context or a store, or posted on the EventBus per frame; a state setter, `dispatch(` or `EventBus.PostMessage(` inside `requestAnimationFrame`, a frame-loop hook, a render observable or `update()`; `width` / `height` / `top` / `left` / `innerHTML` / SVG geometry written per frame or layout read in the loop; a Babylon GUI control assigned every frame without a changed-value check; a frame loop on a menu, splash, preloader or landing page, or driving motion CSS could do (a real-time hero that pauses off-screen and at rest is allowed); a HUD loop still writing while its HUD is hidden or the game is paused. Quote the offending lines |
|
|
173
|
+
| **User directions** | the round breaks any line of `user-directions.md` still in force (not superseded), or a brief carried a summary instead of the whole file — quote the line |
|
|
174
|
+
| **Adopted techniques** | a `research/ADOPTED.md` rule that governs the part has no evidence in the round that it was followed — fail with the rule number (`R4`) |
|
|
175
|
+
| **Shape fidelity** *(reference-match parts)* | any DEFINING FEATURE is WRONG/MISSING in any judging view, any station measurement is WRONG (> 6 %), or the round has no station evidence or no overlay sheet — a part with the wrong shape cannot pass, whatever it scores |
|
|
176
|
+
| **Coverage** *(modelled assets)* | `coverage.json` is missing or older than the current decomposition, or `coverage-check` reports a reference silhouette region that belongs to no part |
|
|
177
|
+
| **Camera accuracy** *(solved views)* | a view was scored whose solved camera has no recorded residual in `cameras.md`, or whose residual is over the threshold (`target-images.md` § 5) — that view is EVIDENCE-ONLY until re-solved |
|
|
178
|
+
| **Assembly** *(modelled assets)* | a part floats, leaves a visible gap, or is not attached where the target shows it joined — measured by the `bt-blender` skill's `assembly_check`, never by eye alone |
|
|
179
|
+
| **Asset QA** *(modelled assets)* | the `bt-blender` skill's `qa_check` reports an error the round introduced: z-fighting, inside-out or inconsistently wound faces, overlapping UVs where unique UVs are required, wrong texture colour space, more than four bone influences, empty material slots |
|
|
105
180
|
| **Camera lock** | the evidence was not captured from the transform recorded in `cameras.md` |
|
|
106
181
|
| **Pipeline gate** | whatever the deliverable kind's pipeline reference declares (export-boundary integrity, GUID survival, licence tier …) |
|
|
107
182
|
|
|
@@ -109,9 +184,10 @@ threshold AND every gate passes.**
|
|
|
109
184
|
|
|
110
185
|
```
|
|
111
186
|
PART: P3 Level lighting & atmosphere
|
|
187
|
+
WHOLE SHAPE: n/a (scene part) — modelled assets: one line per view, e.g. side NO (0.86, nose missing 4.1 %)
|
|
112
188
|
SCORE: 6.5 / 10 (Comp 1.5 · Light 1.5 · Mat 1.5 · Detail 1.5 · Motion 0.5)
|
|
113
189
|
PREVIOUS: 5.0 / 10 (round 09)
|
|
114
|
-
GATES: perf PASS · console PASS · authority PASS · camera PASS · export PASS
|
|
190
|
+
GATES: perf PASS · console PASS · authority PASS · camera PASS · export PASS · directions PASS · adopted PASS
|
|
115
191
|
VERDICT: FAIL
|
|
116
192
|
TOP GAP: GAP 01 — key light elevation and colour temperature
|
|
117
193
|
REGRESSION: none
|
|
@@ -124,8 +200,9 @@ REGRESSION: none
|
|
|
124
200
|
The critic is fresh-context, but it is **not** memoryless about the score. It always receives the previous
|
|
125
201
|
round's screenshot and verdict for that part, with this instruction:
|
|
126
202
|
|
|
127
|
-
>
|
|
128
|
-
>
|
|
203
|
+
> Score first from your own reference-first comparison; only then read the previous verdict and explain any
|
|
204
|
+
> difference from its score. Maintain consistency with the prior judgment — the same axes, the same standards, so the
|
|
205
|
+
> two scores are comparable. Do not feel obliged to match or increase the score. **If the product regressed, score it
|
|
129
206
|
> worse and say what regressed.**
|
|
130
207
|
|
|
131
208
|
Without this, round-over-round scores are not on the same scale, and the no-improvement counter in
|
|
@@ -135,6 +212,24 @@ Without this, round-over-round scores are not on the same scale, and the no-impr
|
|
|
135
212
|
|
|
136
213
|
## 4. The stall ladder
|
|
137
214
|
|
|
215
|
+
**Research trigger — earlier than the ladder.** When a gap the critic named in one round is still in the next
|
|
216
|
+
round's gap list, it has survived a fix round. Before the builder touches it again, it researches how professional
|
|
217
|
+
technical artists handle that situation; for Blender or Unity work that means Blender and Unity technical artists.
|
|
218
|
+
The research is a thorough web search across several independent professional sources (official manuals,
|
|
219
|
+
artist and studio breakdowns, Polycount, 80.lv, GDC talks, technical-artist write-ups). The builder writes the
|
|
220
|
+
findings with their sources to `.agents/gauntlet/<name>/research/<part>-<topic>.md`, and the next round adopts the
|
|
221
|
+
technique, rebuilding rather than patching. Its journal names the research note and the technique used. A builder
|
|
222
|
+
unsure how to approach a part at all researches the same way before its first round. Research never overrides the
|
|
223
|
+
references: the technique stays only if the critic's measurements then show the part matching.
|
|
224
|
+
|
|
225
|
+
**Research accumulates in a ledger.** The note's adopted techniques become numbered rules in
|
|
226
|
+
`research/ADOPTED.md` (`workspace.md`) the same round — rule, source note, sources, date, the parts it governs. A
|
|
227
|
+
new note adds or amends rules; it never replaces earlier ones, and a rule leaves only by a dated amendment giving the
|
|
228
|
+
reason and evidence. Builder briefs quote the rules that govern the part; the *Adopted techniques* gate checks them.
|
|
229
|
+
For a part modelled from reference images the ledger starts with the professional base method — blueprint setup,
|
|
230
|
+
traced outlines, whole silhouette first (bt-blender's `blueprint`, `trace`, `overlay-sheet`); later research
|
|
231
|
+
refines it, never drops it.
|
|
232
|
+
|
|
138
233
|
Repetition without a changed strategy is a boundary event, not persistence. Two tiers, both with concrete
|
|
139
234
|
triggers, both checked in the round protocol's gate check.
|
|
140
235
|
|
|
@@ -148,12 +243,16 @@ Fires when **either** is true for a part:
|
|
|
148
243
|
Response — **incremental tweaks are forbidden for the next round on that part.** Step back and look for the
|
|
149
244
|
architectural cause: the assets are simply not good enough; the lighting rig is wrong in kind, not degree;
|
|
150
245
|
the camera is in the wrong place; the layout does not match the target's structure; the material system
|
|
151
|
-
cannot express what the target shows. Make **one dramatic change
|
|
246
|
+
cannot express what the target shows. Make **one dramatic change**, grounded in the research note for that gap (the research trigger above has always fired by now), and record it in the round journal as:
|
|
152
247
|
|
|
153
248
|
```
|
|
154
249
|
STRATEGY: <what is being thrown away and what replaces it>
|
|
155
250
|
```
|
|
156
251
|
|
|
252
|
+
The swing throws away the **build**, never the method: `research/ADOPTED.md`, `user-directions.md` and the
|
|
253
|
+
overlay discipline carry over unchanged. A "start over" brief that drops an adopted rule fails the *Adopted
|
|
254
|
+
techniques* gate unless the ledger carries a dated amendment retiring it, with evidence.
|
|
255
|
+
|
|
157
256
|
### Tier 2 — STALLED
|
|
158
257
|
|
|
159
258
|
Fires when the Tier 1 architectural swing scored **the same or worse**.
|
|
@@ -161,7 +260,7 @@ Fires when the Tier 1 architectural swing scored **the same or worse**.
|
|
|
161
260
|
Response — **stop. Do not spend another round guessing at a different dramatic change.** Park the job,
|
|
162
261
|
write the status, and escalate to the user with:
|
|
163
262
|
|
|
164
|
-
- the target image and the two most recent evidence screenshots side by side,
|
|
263
|
+
- the target image and the two most recent evidence screenshots side by side, with the latest overlay sheet (every view),
|
|
165
264
|
- the standing gap list,
|
|
166
265
|
- what the architectural swing changed and what it scored,
|
|
167
266
|
- a specific question: is the current state good enough, or is something fundamental wrong with the target?
|