Topology Search 4612 Plan
Status: phase A/B registration; execution awaits separate review. No topology
Corpus-snapshot topology study preregistration (#4612)
Status: phase A/B registration; execution awaits separate review. No topology search, study baseline scoring, random-control generation or held-out evaluation has run. All prior executions were engineering checks on separate synthetic corpora. This document supersedes no bytes of the frozen #4592 plan.
Repository baseline: `ca303cbb29e3a5c49e3cd4eb33c7e0f77f1ef4d0`, equal to the locally available origin/main when work began. No network refresh, commit or branch switch is authorized. SHA-256 of these exact document bytes is recorded in the worker report before study execution. This is a worktree commitment, not a git commit or independently authenticated timestamp. Do not revise this document after freezing; record deviations separately and preregister a new revision if cases, implementation bindings or protocol change.
Scope, authorship and eligibility
The single nominated flow is the unchanged shipped `corpus-snapshot`, with resolve-corpus, compute-metrics, render-output and verify-snapshot retained. Its source and the four capability definitions are digest-bound below through the manifest. Its local implementation binding and transport conventions are described in `$AIWG_ROOT/tools/eval/docs/topology-search-4612-notes.md`. There are no model calls, inference services, HTTP requests or paid calls.
These 24 generated case groups were openly authored for this study under #4612. They were not an eligible existing set under #4592 and are not presented as one. They are disjoint corpora with distinct reference identities, not variants of an underlying corpus split across cohorts. They share generation recipes and are synthetic. Expectations were computed from declarative designs independently of the parser, renderer and flow under test. The executable outcome checker compares metrics, report sections/values and deltas, with terminal verification required. This measures computed snapshot outcomes, not narrative quality, model efficacy, schema validity alone or unseen real-world performance.
Offline implementations use the corpus CLI's exported local functions via the existing eval fixture adapter/runtime mechanism. Producer input bindings remain fixed under edge changes; all predecessor completions are required. Failure terminates dependent execution. The terminal verifier checks programmatic JSON and outside-corpus no-op behavior. Fixed dates and fresh temporary corpora remove mutable input state. No response tapes are invented or replayed.
The baseline is acyclic. Required data and terminal-verifier dependencies totally order the four nodes, leaving a limited space of redundant forward edges. Do not drop dependencies or change node behavior to enlarge this space. If any eligibility assumption fails, stop and report why; do not flatten cycles or invent deterministic behavior. No space enumeration has been performed.
Frozen case groups and split
Sort group IDs by SHA-256 of UTF-8 `4592:corpus-snapshot:<case-id>`, with lexical ID tie-breaking. The first floor(0.4 * 24) = 9 groups are development; the remaining 15 are held-out. The binding appendix records exact membership. Never move cases, drop failures or tune against held-out outcomes. Search sees development inputs and scores only. Freeze the selected graph before any held-out scoring. Published authored labels cannot establish investigator blinding: separation is algorithmic, not unseen-performance evidence.
The case files contain both generated input bytes and independent expectations. The manifest binds each full file and the author, checker, adapter, playbook, capabilities, principal local implementation sources, runtime and lockfiles. The repository baseline binds unchanged transitive sources. Verify all pins using `loadCorpusDataset` before execution; it performs no task scoring. Source paths, exact case IDs and SHA-256 digests are listed in the appendix.
Search space, ranking and budget (inherited from #4592)
Preserve node identities, implementations, prompts, permissions, state contracts, verifier count and outputs. Change only edges and verifier ordering through rewiring, preserving entry, terminal output, required data dependencies, reachability and safety gates. Restrict to DAGs. Use the existing tools/eval runner, EvalResult contract, executable checks and FlowGraph fixture runtime.
Seed 4592; at most 32 distinct valid candidates excluding baseline, at most 1,024 generated proposals including invalid proposals, or 10 minutes wall time, whichever is reached first. Begin with baseline neighbours. Expand the highest development-ranked unexpanded candidate; tie-break by canonical sorted edge list. Generate single-edge additions/removals in lexical endpoint order and deduplicate all graphs. Verifier relocation uses the same proposal cap. Report exhaustion without padding if fewer valid structures exist.
Rank by development success rate, lower total charged attempted-node activations, lower measured local execution time, then canonical edge list. Freeze one winner. Failures and partials score zero and stay in denominators. Invalid proposals count as optimization effort, not task runs. Unknown activation accounting after a child crash remains explicit and cannot support a claim of cost superiority.
Each arm/case permits at most eight activations (2 * node_count), 12,000 fixture-observed token units and 2,000 ms adapter-reported local execution time. The local child watchdog is 60 seconds. Over-budget runs are partial with costs retained. The adapter records attempted-node costs even when the legacy runtime omits a failed attempt. End-to-end elapsed time includes child startup, setup, scoring and cleanup. In this instrument actual model tokens, calls and USD are zero; no artificial inference-token proxy is assigned to local computation. Measured times vary despite deterministic functional outputs.
All model calls, model CLI launches, HTTP, embeddings, local model servers and paid spend have a hard budget of zero. The FlowGraph schema's positive USD ceiling representation does not authorize spend; see the implementation notes. Report generation/validation time, proposal counts, development scoring time, held-out scoring time, activations, local execution totals, failures, unknown accounting and control-construction costs separately. Charge unsuccessful search attempts too. Authoring/inspection effort is unmeasured, never claimed zero.
Controls and held-out evaluation (follow-up only)
Use the unchanged shipped flow as baseline on identical cases, implementations, checks and ceilings. Do not substitute H2 fixture graphs. For the frozen winner, draw up to 32 unique uniform random directed edge subsets with identical node and edge count, conditioned on the same validity rules. Use existing seeded random/shuffle helpers with seed 4593, fixed lexical allowed pairs and a separate 1,024-attempt cap. Retain rejection counts, exclude baseline and winner, disclose small support and stop if exhausted. Never choose controls using development or held-out scores. Freeze them before any held-out scoring. Report the baseline's edge count separately if different.
Score each frozen baseline, winner and random graph once per held-out group: at most 34 15 = 510 final runs, and at most 33 9 = 297 development runs. Actual totals can be smaller after space exhaustion. Record raw case/arm outcomes, exact graphs, content bindings, checks, failures, partials and local resources using existing eval result/evidence projections.
Analysis, decision and stop boundary
Report paired held-out success differences against baseline and the per-case mean random success. Use paired case-group percentile bootstrap intervals, 2,000 resamples, seed 4594, 95% confidence, retaining every case and frozen random graph. These intervals describe this authored offline set. Report successes per charged activation and token units (undefined when zero), plus total optimization and evaluation costs without amortizing search away.
A go for a separately reviewed follow-up requires an absolute success gain of at least five percentage points over both controls, both paired interval lower bounds above zero, no new safety-check failures, and winner per-case activation and token observations no higher than baseline. Otherwise no-go. Missing controls, unknown cost accounting or eligibility failure cannot yield go. An eligibility no-go says nothing about topology optimization effectiveness. No offline outcome authorizes runtime optimization or shipped-flow changes.
This implementation stops at phase B. Search, study baseline scoring, control generation, held-out execution, bootstrap analysis and study costs are NOT RUN. Model calls and paid spend are zero actual calls/USD. Engineering tests inspect the binding bytes and execute separate engineering-only corpora; their results are not study observations. CHANGELOG remains a release task.
Content-binding appendix
Manifest: `$AIWG_ROOT/tools/eval/datasets/corpus-snapshot.json`
SHA-256: `0fd0169f0e7e10879d824768404c77dd8bf316ebdb4e9fbdbc0b827b40c3852c`
Manifest content commitment: `sha256:f0db3c1b54870cd5148b6ac8812559c40565e8f0762963dc94c07b72d47aa9a6`.
Every source entry is pinned transitively by these manifest bytes.
| Group ID | Cohort | Source path relative to $AIWG_ROOT | SHA-256 |
|---|---|---|---|
| corpus-01 | held-out | tools/eval/datasets/corpus-snapshot/corpus-01.json | 5c9526588b09f3620e64c3869763e379c0afcf594e07617e529bb6dafaa71e83 |
| corpus-02 | held-out | tools/eval/datasets/corpus-snapshot/corpus-02.json | 0b624f4b5095bb15e160cd7c41f983b8a5ecea0e6974c5a407f2767663c53e4b |
| corpus-03 | held-out | tools/eval/datasets/corpus-snapshot/corpus-03.json | 094681422c20865fa86c5c417d9a081b0e00ae5712f89e0f7ccdfd42e7815daf |
| corpus-04 | dev | tools/eval/datasets/corpus-snapshot/corpus-04.json | ba48e8cf16e5876ccc6d194f098712ecc7b115a47cf2067fc25e4b099aab44ea |
| corpus-05 | held-out | tools/eval/datasets/corpus-snapshot/corpus-05.json | c26382cea31ce4060af03241434beb22b1d6bc32d8fb6793fe0141b576decb2b |
| corpus-06 | held-out | tools/eval/datasets/corpus-snapshot/corpus-06.json | 3121c89639c988ab2a8bf3a8ff202efbf5044ade19e93ab2cefc4d15d43fa27e |
| corpus-07 | dev | tools/eval/datasets/corpus-snapshot/corpus-07.json | cceb43ad6f031b575f452c74e6c8544fb47a8d060581cc5008e2ce368f58ee99 |
| corpus-08 | held-out | tools/eval/datasets/corpus-snapshot/corpus-08.json | ba72142bea4ff87f068ef9f175866f0d814e61d85b4dedc7d462860a64b073c7 |
| corpus-09 | dev | tools/eval/datasets/corpus-snapshot/corpus-09.json | 645bdccf75e54e00bcb74af3af9ea7cd9685fb529e22d60e6b96b696c47aab99 |
| corpus-10 | dev | tools/eval/datasets/corpus-snapshot/corpus-10.json | 4e6214f6331697ae99192f382ad54b4e4a80c2267274d7490f03553fb482517a |
| corpus-11 | dev | tools/eval/datasets/corpus-snapshot/corpus-11.json | 8d69d9efa5e728d35133e5ba9a2fd5603a8e8070f9ff76497ed1c508104b5a4e |
| corpus-12 | held-out | tools/eval/datasets/corpus-snapshot/corpus-12.json | 09a6f622ce46b4366e96928cbb69dbfa37fff6bd938e4cd51d754d6efc2358dc |
| corpus-13 | dev | tools/eval/datasets/corpus-snapshot/corpus-13.json | d542b07856ada07e252d0570a7dafefe526166dc292f26e79f0350ed78d73dc5 |
| corpus-14 | held-out | tools/eval/datasets/corpus-snapshot/corpus-14.json | 28e9a72224ec4edfa974b454cde3ea8e39874122ea719a06eede152ed2dee6e8 |
| corpus-15 | held-out | tools/eval/datasets/corpus-snapshot/corpus-15.json | 88a1459a2ebe2e1bccc74869cb473e40bed4f23e5531a738265824ce7437a8dc |
| corpus-16 | held-out | tools/eval/datasets/corpus-snapshot/corpus-16.json | 74565ba94efe45b3c76c3076ff91b1b40c03eb576b516f34fb2d871586600485 |
| corpus-17 | held-out | tools/eval/datasets/corpus-snapshot/corpus-17.json | 7a557d6acb83071d3f372ba597f3045d0018d518e0ffbdf38d1f9da0eeebeb4e |
| corpus-18 | held-out | tools/eval/datasets/corpus-snapshot/corpus-18.json | 549bd65e3e7ef1d8b61a8886e54e8bd90a04a39d0008fb208583e3a82fbc65cf |
| corpus-19 | held-out | tools/eval/datasets/corpus-snapshot/corpus-19.json | 36dc10636ef54a210ba01bdfc9e7a7c02508d77e810fa08f35afcb97ec025979 |
| corpus-20 | dev | tools/eval/datasets/corpus-snapshot/corpus-20.json | 6ac2863415ddcf8eb265bfc2ba0a1f45f6a50f1b71c398783ea5e813a723a04d |
| corpus-21 | dev | tools/eval/datasets/corpus-snapshot/corpus-21.json | e98c444131636e22deb09b5f6c4a46cd41e738cfc36210e7a40b20ee4fc780d1 |
| corpus-22 | held-out | tools/eval/datasets/corpus-snapshot/corpus-22.json | f38ad317490fcca0ee8d6d548e16ad96ee17fd0aab7e8a7e80634be21f766c9d |
| corpus-23 | dev | tools/eval/datasets/corpus-snapshot/corpus-23.json | 15c68fd4b5e21b73309d5e2a5038a9f8f96a31856fdf5e82e2d95453c4f5dd6a |
| corpus-24 | held-out | tools/eval/datasets/corpus-snapshot/corpus-24.json | cb86cf10557dc986b5439ed1b8283d1a005ac056f876781bc159ae58a710a69c |
| Implementation/source path relative to $AIWG_ROOT | SHA-256 | ||
| --- | --- | ||
| agentic/code/frameworks/research-complete/flows/corpus-snapshot.playbook.yaml | c6019cf983c26c659e92d701e19b1d1647eeea2df14f276ea959399e3a97654c | ||
| test/unit/tools/eval-corpus.test.ts | 79e18c82ccd46a1793f491dd103fc9b9fdca270bfe853bfd73256ceb5e04c58e | ||
| tools/eval/corpus-author.mjs | f6ed04fb18479e8772c0995965d0f1df28904450c0539b999e6b652b8c654a6d | ||
| tools/eval/src/runner.ts | 2b1ec99904c8d0ad0f29fef992aa80d809b6e5d459fe3249a79b342937cb3375 | ||
| tools/eval/src/corpus-cases.ts | 0d2254fab8a4b3b7de1ddd036aa2ae0f6b042a1937d70cba404c7c00778e8122 | ||
| tools/eval/src/corpus-checks.ts | b0263debd97b7d811bd8acc19c2853a86b50bac1f3e7e40a3d9c5e4b4b3a6f8e | ||
| tools/eval/src/corpus-flow.ts | d913c4749b8e6005ff030cf75ab23c9118be979c1b326b4b128aaa1e7a267b28 | ||
| tools/eval/src/corpus-worker.ts | 7a4bc3f8bb966bb8c01a491abb64b7a97cb61dce7df8ac21a66086fc78e388e0 | ||
| tools/eval/src/corpus-adapter.ts | 3318e0e21c486a9ffb1bcd17cbb31e3b53d97e98c277595422d35fe674ac23f2 | ||
| tools/eval/src/corpus-bindings.ts | 9ce7f6428fba9cb625dd8f2edc7ecee69369a05dbdb4606f00160ac09b79f48f | ||
| tools/eval/src/pilot-files.ts | 753f1d61663ba15e78189cdd05c8900126586edd13e59268f7b65369d9b434de | ||
| tools/eval/src/contracts.ts | 79f8945d56bb84a83c9c2e22aedf0656f3377ed3a0fc1a82f88a8344a069e511 | ||
| tools/eval/src/models/types.ts | f21e8c5d58b5f38a2e6a766ca68d7d49da64c5afb58a17710161a87d41f56241 | ||
| tools/eval/datasets/contracts.v1.schema.json | 45cf8fbc4b01278130eb6d0becef2a44020e410186598414a3398f466d3b3660 | ||
| src/artifacts/corpus-views/build.ts | 0c23cc29531f655ee739e08aa7c6b7f8efcb60c2c4b48e5036e723cc216dec60 | ||
| src/artifacts/corpus-views/ref-parser.ts | 5c87fc741ecd7de5aa98f3613e3bcaa1830ac4cb5563c97b9755ff93923193a5 | ||
| src/artifacts/corpus-views/taxonomies.ts | af6da62e36b15e0b0a383136e651b27ed3f55d636a3512cab39425afe3af48bf | ||
| src/artifacts/corpus-tools/snapshot.ts | 50f644b5cd46b775e052e7456d5d6e9e12e5291bd05dd2f33cf7cbcabfab68c0 | ||
| src/artifacts/corpus-tools/source-types.ts | efc47e6154d6123009b37fafd1f6d83ae4132b988e0cd67bf7d116602faf4b0f | ||
| src/artifacts/corpus-tools/sidecar-lint.ts | 45205291a459f3135049a9146a3033019d6385e5a7ff51a70555225f6707bda9 | ||
| src/artifacts/corpus-tools/integrity-scan.ts | 84898b44052d7fafe47a556e43282250d9c290578c6c59520bc28423d48b67da | ||
| src/artifacts/corpus-tools/ref-files.ts | 2ebc65fd4f9e3c93859ba6c4329a4981fa4cd2c65b7f59943f3d9799c5ce596b | ||
| src/research/identity.ts | 95f44d799890c5c297f709d3ec6277b72e1f1dfcdb7c2ac49db8b91a69ee2b94 | ||
| src/config/aiwg-config.ts | bc7965436ecc71f301f0dbf6cab6bcc5a15f5a596798a34245e2553287ea5e82 | ||
| src/config/project-artifacts.ts | 12bba4a2ce7bcf7673aa5d617eea8083da50f09e8a650e32b5ddc75502da43e8 | ||
| src/config/project-artifacts-runtime.mjs | 90928cc06ad2704074be0e8e4ffc68295a545bd5d5d168acb7b513d6ff54e9a0 | ||
| package-lock.json | 51a24ef5e16aafd9eabebb37aec42eb659ca991ccd743757b7644900230e2958 | ||
| tools/eval/package-lock.json | 701ecff63c9c146c8aa7332214162a31fd604291bb7e5c74f10c1963963e9b7e | ||
| agentic/code/frameworks/research-complete/flows/capabilities/corpus-snapshot-resolve-corpus.yaml | 7957b9571aad5fa941a5762d6ebd7262fe88e29177e4d32349cf570f42684aa3 | ||
| agentic/code/frameworks/research-complete/flows/capabilities/corpus-snapshot-compute-metrics.yaml | 80a3ec2471498b5fc17ff82496f75244756848a5ac37c6ca94b350f5cbfa90c1 | ||
| agentic/code/frameworks/research-complete/flows/capabilities/corpus-snapshot-render-output.yaml | 8c1d2068e2e74d8a297f60cad600213d239f5ab8e75c2b0b3f75f369dbb9bd3b | ||
| agentic/code/frameworks/research-complete/flows/capabilities/corpus-snapshot-verify.yaml | c54984b14b1f84cc16cbf9aaafe0fe43554983ef6120d7277d18df2bdf9f2b29 | ||
| agentic/code/addons/composition-engine/lib/authority.mjs | 9f537722cc196dce15a5d98f4df9c9f35718d40cb8e26424ad926bff81210375 | ||
| agentic/code/addons/composition-engine/lib/evaluation-harness.mjs | c9b8dc6c61f6abeaa755f3cce6c7aa7aef87f319b6c2049447fd6813751ca2c2 | ||
| agentic/code/addons/composition-engine/lib/polyrhythmic-reasoning.mjs | 128ee74f05ce92b9baa7fc555ef43bdb1bc46914e26644d5b680938d835c856f | ||
| agentic/code/addons/composition-engine/lib/runtime.mjs | ec32e101ac0d5c765b65f83a11f6ab780e34bc3ab1abee90ef66a17b41b2b0cd | ||
| agentic/code/addons/composition-engine/lib/validator.mjs | 5e3e6eba14babf0b1e0d1c14402de5a1f643c06cc2ddbf88a3c9c5f0289f4404 |