Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

fix: assign benchmark validation to harness

tt-a1i18e4caa18880
diff --git a/archify/test/ordinary-model-floor.test.mjs b/archify/test/ordinary-model-floor.test.mjs
index 38d14be7..f01b2fcc 100644
--- a/archify/test/ordinary-model-floor.test.mjs
+++ b/archify/test/ordinary-model-floor.test.mjs
@@ -467,6 +467,21 @@ test('checked-in benchmark suite covers all five diagram types without presentin
}
});
+test('checked-in prompts assign deterministic validation only to the external harness', () => {
+ const suiteRoot = path.join(repoRoot, 'benchmarks/ordinary-model-floor');
+ const manifest = JSON.parse(fs.readFileSync(path.join(suiteRoot, 'manifest.json'), 'utf8'));
+
+ for (const entry of manifest.cases) {
+ const prompt = fs.readFileSync(path.join(suiteRoot, entry.prompt), 'utf8');
+ assert.match(
+ prompt,
+ /Target the `showcase` quality profile; the external harness will validate the frozen candidate\./,
+ entry.prompt,
+ );
+ assert.doesNotMatch(prompt, /and validate it with the `showcase` quality profile/, entry.prompt);
+ }
+});
+
test('suite integrity rejects a long prompt that omits the attempt-1 file contract', () => {
const sourceSuite = path.join(repoRoot, 'benchmarks/ordinary-model-floor');
const incompletePrompt = path.join(tmp, 'incomplete-benchmark-prompt.md');
diff --git a/benchmarks/ordinary-model-floor/benchmark.mjs b/benchmarks/ordinary-model-floor/benchmark.mjs
index aaea89ed..737bc01d 100644
--- a/benchmarks/ordinary-model-floor/benchmark.mjs
+++ b/benchmarks/ordinary-model-floor/benchmark.mjs
@@ -20,7 +20,8 @@ const PROMPT_CONTRACT_PHRASES = [
'Do not edit any other file.',
'The candidate file, not the prose response, is the attempt 1 artifact.',
'Do not copy a checked-in example.',
- 'Do not claim that validation passed; the external harness will validate the frozen file.',
+ 'Target the `showcase` quality profile; the external harness will validate the frozen candidate.',
+ 'Do not claim that validation passed.',
];
const OPERATIONAL_FAILURES = new Set(['timeout', 'no_candidate', 'provider_error']);
diff --git a/benchmarks/ordinary-model-floor/prompts/agent-run.lifecycle.md b/benchmarks/ordinary-model-floor/prompts/agent-run.lifecycle.md
index 0281a770..e2430a38 100644
--- a/benchmarks/ordinary-model-floor/prompts/agent-run.lifecycle.md
+++ b/benchmarks/ordinary-model-floor/prompts/agent-run.lifecycle.md
@@ -2,6 +2,6 @@
Use the Archify skill in this repository to create a lifecycle diagram for an agent run. Show the main ordered phases from queued through planning, execution, review, and completion. Execution may pause for human approval or fail recoverably. Review may block while waiting for input. A blocked run may expire, and a waiting approval may be cancelled by the user. Terminal exits must remain distinct from active and waiting states.
-Author a fresh typed JSON diagram specification and validate it with the `showcase` quality profile. Choose your own stable internal IDs and layout. Keep active work, interruptions, recovery, and terminal outcomes legible.
+Author a fresh typed JSON diagram specification. Target the `showcase` quality profile; the external harness will validate the frozen candidate. Choose your own stable internal IDs and layout. Keep active work, interruptions, recovery, and terminal outcomes legible.
-Write the final candidate to exactly `benchmark-candidate.json` in the repository root. Do not edit any other file. The candidate file, not the prose response, is the attempt 1 artifact. Do not copy a checked-in example. Do not claim that validation passed; the external harness will validate the frozen file.
+Write the final candidate to exactly `benchmark-candidate.json` in the repository root. Do not edit any other file. The candidate file, not the prose response, is the attempt 1 artifact. Do not copy a checked-in example. Do not claim that validation passed.
diff --git a/benchmarks/ordinary-model-floor/prompts/agent-tool-call.workflow.md b/benchmarks/ordinary-model-floor/prompts/agent-tool-call.workflow.md
index b8d6a847..2194f541 100644
--- a/benchmarks/ordinary-model-floor/prompts/agent-tool-call.workflow.md
+++ b/benchmarks/ordinary-model-floor/prompts/agent-tool-call.workflow.md
@@ -2,6 +2,6 @@
Use the Archify skill in this repository to create a workflow diagram for an AI agent tool call. A user request reaches a chat surface and planner. A router decides whether human approval is required. Approval permits tool execution against an external provider; denial enters a blocked path that may retry. The final result returns to the user, while tool results and context are recorded for tracing.
-Author a fresh typed JSON diagram specification and validate it with the `showcase` quality profile. Choose your own stable internal IDs and layout. Make the approval decision, denied route, execution route, and external call easy to read.
+Author a fresh typed JSON diagram specification. Target the `showcase` quality profile; the external harness will validate the frozen candidate. Choose your own stable internal IDs and layout. Make the approval decision, denied route, execution route, and external call easy to read.
-Write the final candidate to exactly `benchmark-candidate.json` in the repository root. Do not edit any other file. The candidate file, not the prose response, is the attempt 1 artifact. Do not copy a checked-in example. Do not claim that validation passed; the external harness will validate the frozen file.
+Write the final candidate to exactly `benchmark-candidate.json` in the repository root. Do not edit any other file. The candidate file, not the prose response, is the attempt 1 artifact. Do not copy a checked-in example. Do not claim that validation passed.
diff --git a/benchmarks/ordinary-model-floor/prompts/cache-miss.sequence.md b/benchmarks/ordinary-model-floor/prompts/cache-miss.sequence.md
index c0eb13b3..ef92926d 100644
--- a/benchmarks/ordinary-model-floor/prompts/cache-miss.sequence.md
+++ b/benchmarks/ordinary-model-floor/prompts/cache-miss.sequence.md
@@ -2,6 +2,6 @@
Use the Archify skill in this repository to create a sequence diagram for a dashboard request. A browser calls an API, the API validates the JWT, then reads Redis. Redis returns a cache miss, so the API queries PostgreSQL for profile and metric data, stores the result back in Redis, emits a trace, and returns JSON for the browser to render.
-Author a fresh typed JSON diagram specification and validate it with the `showcase` quality profile. Choose your own stable internal IDs and layout. Preserve message direction and distinguish calls, returns, security checks, and asynchronous trace emission.
+Author a fresh typed JSON diagram specification. Target the `showcase` quality profile; the external harness will validate the frozen candidate. Choose your own stable internal IDs and layout. Preserve message direction and distinguish calls, returns, security checks, and asynchronous trace emission.
-Write the final candidate to exactly `benchmark-candidate.json` in the repository root. Do not edit any other file. The candidate file, not the prose response, is the attempt 1 artifact. Do not copy a checked-in example. Do not claim that validation passed; the external harness will validate the frozen file.
+Write the final candidate to exactly `benchmark-candidate.json` in the repository root. Do not edit any other file. The candidate file, not the prose response, is the attempt 1 artifact. Do not copy a checked-in example. Do not claim that validation passed.
diff --git a/benchmarks/ordinary-model-floor/prompts/product-analytics.dataflow.md b/benchmarks/ordinary-model-floor/prompts/product-analytics.dataflow.md
index 42d2c671..ba861942 100644
--- a/benchmarks/ordinary-model-floor/prompts/product-analytics.dataflow.md
+++ b/benchmarks/ordinary-model-floor/prompts/product-analytics.dataflow.md
@@ -2,6 +2,6 @@
Use the Archify skill in this repository to create a data-flow diagram for product analytics. Web and mobile clients send events to an edge ingestion API. Consent is checked before identity data enters a protected PII vault. Accepted events enter a stream, become normalized warehouse facts, and feed dashboards. Aggregated warehouse data also feeds a feature store and model.
-Author a fresh typed JSON diagram specification and validate it with the `showcase` quality profile. Choose your own stable internal IDs and layout. Make the privacy boundary and restricted identity path visually distinct from the ordinary analytics path.
+Author a fresh typed JSON diagram specification. Target the `showcase` quality profile; the external harness will validate the frozen candidate. Choose your own stable internal IDs and layout. Make the privacy boundary and restricted identity path visually distinct from the ordinary analytics path.
-Write the final candidate to exactly `benchmark-candidate.json` in the repository root. Do not edit any other file. The candidate file, not the prose response, is the attempt 1 artifact. Do not copy a checked-in example. Do not claim that validation passed; the external harness will validate the frozen file.
+Write the final candidate to exactly `benchmark-candidate.json` in the repository root. Do not edit any other file. The candidate file, not the prose response, is the attempt 1 artifact. Do not copy a checked-in example. Do not claim that validation passed.
diff --git a/benchmarks/ordinary-model-floor/prompts/web-runtime.architecture.md b/benchmarks/ordinary-model-floor/prompts/web-runtime.architecture.md
index 7eae0019..2b715389 100644
--- a/benchmarks/ordinary-model-floor/prompts/web-runtime.architecture.md
+++ b/benchmarks/ordinary-model-floor/prompts/web-runtime.architecture.md
@@ -2,6 +2,6 @@
Use the Archify skill in this repository to create an architecture diagram for a production web application. Browser users enter through a CDN over HTTPS, then traffic reaches a load balancer and an application API. The API verifies identity with an auth provider, reads through a Redis cache, queries a PostgreSQL primary database, and enqueues background work for a worker. Static assets are served from object storage.
-Author a fresh typed JSON diagram specification and validate it with the `showcase` quality profile. Choose your own stable internal IDs and layout. Preserve the system roles and labelled technical relationships.
+Author a fresh typed JSON diagram specification. Target the `showcase` quality profile; the external harness will validate the frozen candidate. Choose your own stable internal IDs and layout. Preserve the system roles and labelled technical relationships.
-Write the final candidate to exactly `benchmark-candidate.json` in the repository root. Do not edit any other file. The candidate file, not the prose response, is the attempt 1 artifact. Do not copy a checked-in example. Do not claim that validation passed; the external harness will validate the frozen file.
+Write the final candidate to exactly `benchmark-candidate.json` in the repository root. Do not edit any other file. The candidate file, not the prose response, is the attempt 1 artifact. Do not copy a checked-in example. Do not claim that validation passed.