execute_artifact_crucible
Ingest an ARTIFACT INGESTION BRIEF plus the artifact an agent generated for it; evaluate it against the laws the brief declares; seal and return the artifact ONLY on the top rung. THE BRIEF TEMPLATE is https://affine.earth/language-game/court-client.brief.txt: four bracketed sections, [LANGUAGE GAME DEFINITION] with Purpose, Win Condition (Exit) and Losing Moves; [STRUCTURAL GOAL] with Manifold Target, Input Coordinates and Execution Lock; [PAYLOAD SHAPE] with Target Architecture, File Structure and Memory Binding; [WASM MEMBRANE INTEGRATION] with Target Standalone WASM, NATS JetStream Subject and Integration Protocol - a missing field is REFUSED_MISSING_FIELD naming it. Headless by construction - a CI runner, a curl script, an autonomous agent and an editor all post the identical tools/call. The brief is the single home for the target architecture; a target_architecture argument that contradicts it is REFUSED_ARCHITECTURE_CONFLICT - the court compares the two strings verbatim, so with the served template send exactly 'Rust no_std wasm32' or omit the field ('wasm32' alone is refused). Verdicts are a ladder of rungs 0-7, not a coin: 7 CALORIE_AFFINE_ARTIFACT_DELIVERED, 6 ARTIFACT_ASSEMBLED_NOT_DELIVERED, 5 ARTIFACT_WIN_UNVERIFIABLE, 4 ARTIFACT_PROTOCOL_CONTRADICTED, 3 ARTIFACT_TARGET_ABSENT, 2 ARTIFACT_LAW_BROKEN, 1 NOT_KNOWN, 0 REFUSED_NO_BRIEF, with qmt_verdict WIN only at rung 7 and MISS below it. THE CEILING: a cell with no toolchain still judges - it reads the brief, enforces Affine law and checks the WASM target and protocol - but caps SOURCE at rung 6 ARTIFACT_ASSEMBLED_NOT_DELIVERED with qmt_verdict MISS, because certifying DELIVERED would claim a build that never happened; REFUSED_NO_CRUCIBLE_HOST is NOT reachable through this tool: its arguments are brief, artifact and target_architecture, and none of them asks for a build - measured 2026-09-29, a brief whose Target Architecture line reads 'Swift 6.4 ~Copyable' (the toolchain no cell has) answers with a rung and qmt_verdict, not that status. To reach rung 7 on any cell, post a COMPILED module: the artifact field as base64 of the wasm bytes (magic 00 61 73 6d 01 00 00 00) with the brief verbatim; the court verifies the magic, version word and section table, seals the bytes and returns them as an MCP resource blob with their sha256 (law_checked=false for a posted module; submit the source in a second call to have Constraints 3/4/5 decided over it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brief | Yes | The complete ARTIFACT INGESTION BRIEF: four sections ([LANGUAGE GAME DEFINITION], [STRUCTURAL GOAL], [PAYLOAD SHAPE], [WASM MEMBRANE INTEGRATION]) with every field filled. The blank template is refused as REFUSED_UNFILLED_PLACEHOLDER. e.g. the served template https://affine.earth/language-game/court-client.brief.txt with every field filled | |
| artifact | Yes | The source the agent generated to satisfy the brief. Generation is the caller's half; the crucible compiles, evaluates and seals. e.g. the source text of one file, or the base64 of a compiled wasm module such as AGFzbQEAAAABBQFgAAF/ (which reaches rung 7) | |
| target_architecture | No | OPTIONAL and redundant: the brief's [PAYLOAD SHAPE] is the single home for this value. Supplied only for callers using the original schema; a value that contradicts the brief is REFUSED_ARCHITECTURE_CONFLICT rather than silently overriding it. e.g. Rust no_std wasm32 - the enum member that equals the served template's 'Target Architecture:' line verbatim; 'wasm32' alone is REFUSED_ARCHITECTURE_CONFLICT. Omit the field to let the brief carry it |