Topology Search 4612 Notes

Phase A authors data and an adapter. Phase B freezes a new registration.

Corpus-snapshot evaluation set: implementation and deviations (#4612)

Phase A authors data and an adapter. Phase B freezes a new registration. Study execution requires a separately reviewed follow-up. Search, baseline scoring, random controls and held-out evaluation are NOT RUN.

Eligibility and execution binding

The unchanged shipped playbook has four acyclic capability steps. The fixture adapter binds their descriptions to the same exported functions used by the local corpus CLI: `resolveCorpusRoot`, `computeSnapshot`, `renderSnapshot`, and `runSnapshot`. It does not launch workflow-agent or any model. Fixed dates, fresh temporary directories, isolated environment overrides and input files make functional outputs repeatable. Execution times are measured observations and naturally vary. This instrument covers computed snapshot sections; human narrative remains represented by the shipped renderer's analysis placeholders.

`corpusGraph` projects the playbook into the existing FlowGraph runtime, as the existing eval fixture adapter does. It rejects changed node identities, missing data-dependency paths, cycles, duplicate edges and unknown endpoints. Entry is resolve-corpus; terminal is verify-snapshot. Producer bindings remain fixed when predecessor edges change. Each node waits for all candidate predecessors; the verifier retains programmatic JSON and outside-corpus no-op checks. A failed node terminates execution without running dependent steps. The full report is retained in the result, with terminal verification required for success.

The required chain totally orders these four nodes. Therefore only redundant forward edges can change while preserving these contracts. No search-space enumeration was performed, and no larger space or likely improvement is claimed. Exhaustion in a future study must be reported, never padded with weaker graphs.

Independent outcome checks and case grouping

`corpus-cases.ts` imports only a type from the evaluator. It derives expected counts, edge density, degrees, hubs, isolated references, distributions, orphan counts and signed deltas from declarative corpus designs. It never imports or calls the corpus parser, CLI, flow adapter or renderer. Input files and expected values are serialized into each case file. The checker compares numeric values, report headings and rendered table rows; schema validity alone cannot pass. Corrupting metrics, report values or verification fails engineering checks.

There are 24 groups with disjoint reference identities and sizes from 1 to 24. They combine edgeless, chain, star, ring, complete and disjoint-pair citation graphs, absent sidecars, missing/off-vocabulary grades, PDF fallback/precedence, and present/absent previous reports. Citation cycles are data, not flow cycles. No original corpus is reused across groups or split into variants. Shared generation rules limit statistical independence and external validity; these are authored synthetic tasks, with no investigator blinding. Corpus designs and expected outputs were authored before any study-case execution.

Engineering tests generate separate inputs with `engineering-*` IDs. They do not load study inputs for execution; the manifest test only validates bytes, identity, grouping, contract shape, digests and split membership. The authoring script only writes fixtures and content bindings. It never invokes an adapter.

Resource accounting

Every attempted node records elapsed local time and success/failure in an adapter-owned ledger, including attempts omitted by legacy runtime accounting. The result also includes runtime evidence and trace, measured end-to-end local time, charged attempted-node activations, zero actual model tokens/calls/USD, and a resource-source label of measured-local. No artificial inference-token proxy is assigned to local corpus computation. The 12,000-token cap is vacuous for this instrument. Setup, scoring, cleanup and child startup remain charged.

The public runner entry launches a one-shot local child with a 60-second watchdog. Over 2,000 ms or eight attempts yields partial/zero score. Failed runs also score zero. A child crash or watchdog interruption retains elapsed wall cost and explicitly marks step accounting incomplete (activation count unknown, never a fabricated zero). Such runs remain failures in denominators; report unknown activations separately and do not use them to claim cost superiority.

Disclosed differences from #4592 and transport conventions

1. The frozen #4592 registration prohibited new task authoring. This task explicitly authorizes it under a new registration; no original plan or readiness report is edited. The H2 fixtures are not relabelled or reused. 2. FlowGraph requires kebab-case bindings, so `corpusRoot` is transported as `corpus-root`. Its value, producer and consumer are unchanged. 3. The legacy FlowGraph schema requires a strictly positive USD ceiling. Its representational ceiling is `Number.EPSILON`; this adapter has no model entry point and records zero actual calls and USD. The study budget remains strictly zero; the schema is not relaxed. 4. The verifier's capability description includes outside-corpus no-op behavior; the adapter checks that behavior as well as the declared JSON `flow` marker. Outcome scoring remains a separate check and cannot replace verification.

Ownership and use after review

All additions stay under existing eval dataset, adapter and test owners. No runtime, CLI, shipped flow, kernel, corpus registration, plugin, schema family, CHANGELOG or package-budget file changes are needed. The cicd-complete registration history was inspected; this is eval tooling, not a new framework.

After review, use `loadCorpusDataset` to verify all pinned source and case bytes before selecting cohorts. It validates bindings without execution. Pass a selected fixture and validated edges to the runner entry; results use the existing `EvalResult` contract. There is no new command or automatic study run. Freeze a selected topology before any held-out call. Reauthoring or changing a pin after the registration freeze requires a new registration, with deviations recorded separately. A digest is a worktree content commitment, not a git commit or an independently authenticated timestamp.

Revision 2 (before any execution)

Revision 1 (`topology-search-4612-plan.md`, SHA-256 `7303f9cb…`) is superseded by `topology-search-4612-plan-r2.md`. The adapter watchdog now uses the shared `signalChild` guard required by the repository's kill-boundary test; behavior is unchanged. Only the `corpus-adapter.ts` binding and the manifest commitment changed; cases, split and protocol are identical. Nothing was executed under revision 1.

An independent review (Muse, read-only) found the revision 2 manifest-file digest line stale before any execution; it was corrected in revision 2 together with an explicit statement that only 8 valid graphs exist. Revision 2's final digest is the one recorded at merge.

2026-12-01 — Phase C execution conventions (before scoring)

Phase C is separately authorized in the implementation worktree, whose HEAD equals local origin/main `a432dc5ee783c36a52dc8b981eeead6a6bb3d09e`. Revision 2 verified as SHA-256 `a00da55ef81f976f7f860e6531aa40a385f1232db4a8a599ea7a86ad9fc9c10b`. `loadCorpusDataset` verified all 24 cases, 36 source entries and the flow, without task execution. Neither plan nor binding bytes changed.

The minimal runner uses the existing `AiwgEvalRunner.runOfflineCorpusCase` entry. Search starts by scoring baseline and then its neighbours; baseline remains eligible for winner selection. Lexical order compares endpoint strings and canonical sorted edge arrays. Seed 4592 is recorded; the prescribed lexical generation and ranking have no randomized choice and consume no random draws. All 12 directed non-self pairs are proposed as single-edge toggles; generation counts include duplicates, invalid proposals and valid candidates. Required dependencies totally order the verifier, so no separate verifier relocation can produce another valid graph. Every candidate is evaluated on all nine dev groups.

After the winner is written, control construction enumerates the score-free fixed-edge-count support to detect exhaustion. Each draw shuffles the fixed lexical list of 12 pairs using the existing helpers and seed 4593, then takes the first k pairs. This samples uniform k-edge subsets before rejection. Rejections are counted as invalid, excluded baseline/winner, or duplicate accepted graph, in that precedence order. It stops when admissible support is exhausted, at 32 controls or at 1,024 attempts. An empty admissible support is reported without draws and cannot yield go. No scores enter this function.

Raw development results are append-only, followed by a winner freeze and a control freeze; only then may held-out scoring begin. Held-out order is lexical case ID, then baseline, winner, controls in acceptance order. The one-shot runner refuses an existing results directory and never retries a failed run. Bootstrap uses nearest-rank percentile endpoints (order statistics 50 and 1,950 of 2,000 draws) with seed 4594; each draw samples case groups and retains all arms for that case. A failed/missing terminal verifier is conservatively reported as a safety failure. Authoring/inspection effort remains unmeasured. These resolve procedural details left unspecified by revision 2; no frozen case, implementation, ceiling, seed, split or validity rule is changed.

2026-12-01 — Phase C observations and execution limitation

The single execution completed 72 development and 45 held-out runs. All 117 succeeded, with 468 charged activations, no failed/partial runs and no unknown accounting. The search exhausted all eight valid graphs; random construction accepted one of two admissible controls and hit its 1,024-attempt cap. No search, control-generation or held-out run was repeated.

Execution deviation: `npm run build:cli` ran concurrently with the early development search. Its CPU/I/O load may have affected the measured local-time ranking tie-break, which selected the winner after all success rates and activation totals tied. The concurrent build was not charged as study task cost; its work is verification effort, and authoring/inspection effort remains unmeasured. Retain the selected winner and all observations; do not rerun to improve the measurement. Held-out scoring began after the build completed. Timing cannot support a topology cost-superiority claim here. No functional failure, budget breach or binding change was observed.

The registered success decision is no-go: held-out success differences against baseline and the frozen control are both zero, with paired 95% intervals [0, 0]. The results apply only to the authored synthetic corpus-snapshot set and its constrained redundant-edge space. No runtime or shipped flow changes are authorized or made. Full raw data, freezes, proposal histories and costs are under `tools/eval/datasets/topology-search-4612-results/`.