Use MetaBuilder
Start
- Locate the existing MetaBuilder checkout. Use the path supplied by the user
or current workspace. Do not clone or install another copy.
- Read the MetaBuilder root
README.md completely.
- Read every authority file that the README lists.
- Read the target repository's instructions and current state.
- State the target, exact objective, acceptance evidence, effects, bounds,
source identity, and stop conditions.
For consumer work, resolve the installed CLI and inspect the help and guide
needed by the selected phase before authoring artifacts:
command -v metabuilder
metabuilder --help
metabuilder harness --help
metabuilder qualify --help
metabuilder qualify guide
The public consumer journeys are harness, intent, qualify, and run.
Use scoped help for exact operations and effects. Qualification templates and
reports use metabuilder qualify template|guide|prepare|report|check.
Local CLI help and crates/mb-core/src/bin/mb/command_surface.rs verified this
mapping on 2026-09-06: harness qualification ... is a hidden compatibility
alias, not the canonical recipe. Maintainer generation uses
harness generation create|check; it is not an ordinary consumer shortcut.
If a required operation is absent, report the affected capability as unavailable
and continue independent authorized preparation. Do not install tooling or
substitute an uncommitted development binary without the requisite explicit
authority and identification of those exact bytes.
Carry the resolved executable identity, relevant help/guide evidence, and
still-valid authority context through companion-skill handoffs. Recheck when
the executable, needed operation, environment, or applicable constraints
change; switching skills alone does not require repeating discovery.
Do not infer authority from this skill or the README.
Route the lifecycle
Use the companion skills as the detailed operating procedures:
- For a new objective without an agreed Harness Module, read and follow
metabuilder-harness-design. It owns
repository discovery, provisional design, remaining material questions, exact
brief agreement, typed intent, executable module design, compilation, and
bundle re-admission.
- Before authoring any module whose actions must actually execute under
run workflow apply, verify the current confinement profile against the
installed qualification guide and MetaBuilder source. Account explicitly
for no network, the 4 GiB address-space limit, a read-only workspace,
tmpfs-backed /tmp, a fixed environment, the admitted toolchain surface,
auxiliary-directory rules, and a run root outside the target repository.
If an already-installed metabuilder-sandbox-runtime playbook is available,
use it as operational guidance but revalidate it against the current binary.
- After design produces an exact admitted bundle, read and follow
metabuilder-consumer-qualification.
It owns execution, recovery, evidence assessment, attestations, and the
qualification report without changing the approved design.
- If an already agreed module and bundle are supplied, verify their identities
and still-valid decisions, then begin at consumer qualification within the
requested inspection or execution scope. If qualification exposes a design
gap, return upstream; do not repair the design silently.
- When modifying MetaBuilder itself, use the repository-local
metabuilder-rust-functional-core skill and repository authority. That
maintainer discipline is not part of a target project's consumer workflow.
Design states what should be tested. The Harness Module commits to executable
checks. Qualification records what the controller observed and leaves semantic
adequacy to the consumer. No layer alone proves production readiness.
Model-first discipline
The first material artifact of any harness campaign is the reviewed PROGRAM
(Harness Module, or the defineIntent source rendition beside it), not target
implementation code. Do not edit target source until the model passes
harness check and an independent semantic review against the principal's
hypotheses; record the review (verdict, findings, disposition) beside the
module. MetaBuilder actions acquire no source-mutation authority: when
evidence exposes a defect, make one normal repository repair, commit it,
recompute digests, and author a FRESH run bound to the new commit — never
mutate an old bundle or pretend an old run covers a new tree.
The two authoring surfaces:
- Hand-authored Harness Module v2/v3 JSON — the supported consumer route
(
harness qualification template --kind module → harness compile →
harness check). v3 actions wrap invocations as
invocation: {kind: "command"|"external_target"|"mcp_tool"|"agent", ...}.
- defineIntent source (
*.mb.ts) — the TypeScript-esque meaning layer.
Validate any rendition with metabuilder intent check --input X --json
(valid:true, executable:false). The FULL source-origin pipeline
(harness package create → harness generation create → intent propose|approve
→ lower → freeze → author) requires provider dispatch and may incur
spend. Proceed only under an existing exact provider/data/effect/spend
authorization; otherwise prepare the concrete request and stop only the
dependent dispatch. Grammar traps: semantic IDs and
artifact IDs are kebab-case slugs; object keys containing - must be
quoted strings; verification cannot be mixed with generic
consumes/produces.
Verify each operation against the current README, CLI help, and code. Do not
assume a planned feature exists or infer an MCP server; MetaBuilder currently
uses its CLI and skills.
Execute
- Inspect source identity, run state, and effects before mutation.
- Declare every required capability.
- Refuse any effect that lacks an enforced adapter.
- Prepare an effect before applying it.
- Preserve
Unknown after ambiguous outcomes. Reconcile before retrying.
- Treat worker output as a claim. Admit only controller-owned evidence.
- Preserve journals, receipts, outputs, and failure evidence.
- Run the target's checks and MetaBuilder's required checks.
Improve MetaBuilder through use
When the target exposes a MetaBuilder gap:
- Stop the unsupported target operation.
- Record the missing operation, capability, evidence, and recovery contract.
- Design a generic typed boundary. Keep target-specific behavior outside the
MetaBuilder core.
- Confirm that existing authority covers the MetaBuilder change.
- Implement MetaBuilder product changes in Rust.
- Add success, refusal, replay, and ambiguous-outcome tests.
- Re-run the target harness through the new boundary.
Do not bypass MetaBuilder and describe the result as governed.
The metabuilder maintain candidate ... and
metabuilder maintain improvement ... command families are maintainer-only.
Do not use them to build or qualify a consumer harness, infer target-write
authority, or create an unattended consumer loop.
Keep the target separate
- Do not add MetaBuilder as the target's runtime or library.
- Do not force the target to use Rust.
- Do not expose credentials, raw host control, or privileged sockets to workers.
- Do not weaken target policy to fit MetaBuilder.
- Do not delete target files or preserved evidence.
Report
Report these items separately:
- target work completed and its evidence;
- MetaBuilder changes completed and their tests;
- unsupported effects, unresolved evidence, and the next exact action.
1---2name: metabuilder3description: Use MetaBuilder to design, agree, compile, inspect, run, qualify, recover, or improve a governed engineering harness. This is the global entry point for building a new harness in an arbitrary target repository and routes fresh design through metabuilder-harness-design before metabuilder-consumer-qualification.4---56# Use MetaBuilder78## Start9101. Locate the existing MetaBuilder checkout. Use the path supplied by the user11 or current workspace. Do not clone or install another copy.122. Read the MetaBuilder root `README.md` completely.133. Read every authority file that the README lists.144. Read the target repository's instructions and current state.155. State the target, exact objective, acceptance evidence, effects, bounds,16 source identity, and stop conditions.1718For consumer work, resolve the installed CLI and inspect the help and guide19needed by the selected phase before authoring artifacts:2021```bash22command -v metabuilder23metabuilder --help24metabuilder harness --help25metabuilder qualify --help26metabuilder qualify guide27```2829The public consumer journeys are `harness`, `intent`, `qualify`, and `run`.30Use scoped help for exact operations and effects. Qualification templates and31reports use `metabuilder qualify template|guide|prepare|report|check`.32Local CLI help and `crates/mb-core/src/bin/mb/command_surface.rs` verified this33mapping on 2026-09-06: `harness qualification ...` is a hidden compatibility34alias, not the canonical recipe. Maintainer generation uses35`harness generation create|check`; it is not an ordinary consumer shortcut.36If a required operation is absent, report the affected capability as unavailable37and continue independent authorized preparation. Do not install tooling or38substitute an uncommitted development binary without the requisite explicit39authority and identification of those exact bytes.4041Carry the resolved executable identity, relevant help/guide evidence, and42still-valid authority context through companion-skill handoffs. Recheck when43the executable, needed operation, environment, or applicable constraints44change; switching skills alone does not require repeating discovery.4546Do not infer authority from this skill or the README.4748## Route the lifecycle4950Use the companion skills as the detailed operating procedures:51521. For a new objective without an agreed Harness Module, read and follow53 [metabuilder-harness-design](../metabuilder-harness-design/SKILL.md). It owns54 repository discovery, provisional design, remaining material questions, exact55 brief agreement, typed intent, executable module design, compilation, and56 bundle re-admission.572. Before authoring any module whose actions must actually execute under58 `run workflow apply`, verify the current confinement profile against the59 installed qualification guide and MetaBuilder source. Account explicitly60 for no network, the 4 GiB address-space limit, a read-only workspace,61 tmpfs-backed `/tmp`, a fixed environment, the admitted toolchain surface,62 auxiliary-directory rules, and a run root outside the target repository.63 If an already-installed `metabuilder-sandbox-runtime` playbook is available,64 use it as operational guidance but revalidate it against the current binary.653. After design produces an exact admitted bundle, read and follow66 [metabuilder-consumer-qualification](../metabuilder-consumer-qualification/SKILL.md).67 It owns execution, recovery, evidence assessment, attestations, and the68 qualification report without changing the approved design.694. If an already agreed module and bundle are supplied, verify their identities70 and still-valid decisions, then begin at consumer qualification within the71 requested inspection or execution scope. If qualification exposes a design72 gap, return upstream; do not repair the design silently.735. When modifying MetaBuilder itself, use the repository-local74 `metabuilder-rust-functional-core` skill and repository authority. That75 maintainer discipline is not part of a target project's consumer workflow.7677Design states what should be tested. The Harness Module commits to executable78checks. Qualification records what the controller observed and leaves semantic79adequacy to the consumer. No layer alone proves production readiness.8081## Model-first discipline8283The first material artifact of any harness campaign is the reviewed PROGRAM84(Harness Module, or the defineIntent source rendition beside it), not target85implementation code. Do not edit target source until the model passes86`harness check` and an independent semantic review against the principal's87hypotheses; record the review (verdict, findings, disposition) beside the88module. MetaBuilder actions acquire no source-mutation authority: when89evidence exposes a defect, make one normal repository repair, commit it,90recompute digests, and author a FRESH run bound to the new commit — never91mutate an old bundle or pretend an old run covers a new tree.9293The two authoring surfaces:9495- **Hand-authored Harness Module v2/v3 JSON** — the supported consumer route96 (`harness qualification template --kind module` → `harness compile` →97 `harness check`). v3 actions wrap invocations as98 `invocation: {kind: "command"|"external_target"|"mcp_tool"|"agent", ...}`.99- **defineIntent source (`*.mb.ts`)** — the TypeScript-esque meaning layer.100 Validate any rendition with `metabuilder intent check --input X --json`101 (valid:true, executable:false). The FULL source-origin pipeline102 (`harness package create` → `harness generation create` → `intent propose|approve`103 → `lower` → `freeze` → `author`) requires provider dispatch and may incur104 spend. Proceed only under an existing exact provider/data/effect/spend105 authorization; otherwise prepare the concrete request and stop only the106 dependent dispatch. Grammar traps: semantic IDs and107 artifact IDs are kebab-case slugs; object keys containing `-` must be108 quoted strings; verification cannot be mixed with generic109 consumes/produces.110111Verify each operation against the current README, CLI help, and code. Do not112assume a planned feature exists or infer an MCP server; MetaBuilder currently113uses its CLI and skills.114115## Execute1161171. Inspect source identity, run state, and effects before mutation.1182. Declare every required capability.1193. Refuse any effect that lacks an enforced adapter.1204. Prepare an effect before applying it.1215. Preserve `Unknown` after ambiguous outcomes. Reconcile before retrying.1226. Treat worker output as a claim. Admit only controller-owned evidence.1237. Preserve journals, receipts, outputs, and failure evidence.1248. Run the target's checks and MetaBuilder's required checks.125126## Improve MetaBuilder through use127128When the target exposes a MetaBuilder gap:1291301. Stop the unsupported target operation.1312. Record the missing operation, capability, evidence, and recovery contract.1323. Design a generic typed boundary. Keep target-specific behavior outside the133 MetaBuilder core.1344. Confirm that existing authority covers the MetaBuilder change.1355. Implement MetaBuilder product changes in Rust.1366. Add success, refusal, replay, and ambiguous-outcome tests.1377. Re-run the target harness through the new boundary.138139Do not bypass MetaBuilder and describe the result as governed.140141The `metabuilder maintain candidate ...` and142`metabuilder maintain improvement ...` command families are maintainer-only.143Do not use them to build or qualify a consumer harness, infer target-write144authority, or create an unattended consumer loop.145146## Keep the target separate147148- Do not add MetaBuilder as the target's runtime or library.149- Do not force the target to use Rust.150- Do not expose credentials, raw host control, or privileged sockets to workers.151- Do not weaken target policy to fit MetaBuilder.152- Do not delete target files or preserved evidence.153154## Report155156Report these items separately:157158- target work completed and its evidence;159- MetaBuilder changes completed and their tests;160- unsupported effects, unresolved evidence, and the next exact action.