Skip to content

Measure selector recall and bundle cost across the hosts wave (106 → 153 runbooks) - #154

Merged
gregpriday merged 5 commits into
developfrom
docs/issue-144-measure-selector-recall-bundle
Oct 16, 2026
Merged

gregpriday merged 5 commits into
developfrom
docs/issue-144-measure-selector-recall-bundle

Conversation

@gregpriday

Copy link
Copy Markdown
Contributor

Summary

  • Measured what the hosts family (47 runbooks) does to routing and bundle size with no retrain. Same selector artifact (tree a5c2edf4) before (133bab34, 106 selectable, 850 cases) and after (af7b68d3, 153 selectable). Everything is written up in training/EXPERIMENTS.md under "Catalog 106 → 153".
  • Shared recall holds: 850 shared cases go 821 → 821 recall-pass (strict 755 → 753). The wave's own 1,026 cases come in at 0.764 strict. candidate_miss stays 0 throughout. Extra rate climbs from 0.105 to 0.175 against a 0.20 ceiling, so that's the nearest floor.
  • The ownership audit is the weak spot. 39 blind paraphrases (max similarity 0.71 to any case or corpus string) land at 28/39 recall-pass and 21 strict. Every miss had the answer on the shortlist, and 10 are untrained hosts runbooks losing on rank. That's a retrain problem, not a candidate problem.

Resolves #144

Findings

  • All 25 moved shared cases are explained in the doc: 12 are a new hosts runbook showing up as an extra, 6 are re-fenced runbook moves, and 7 are a runner-up crossing the 0.55 admission floor (before → after scores included).
  • Foundation-only is not regressed. It has the same two shared misses.
  • bench scale at k=32 misses 0/0/3 at 200/500/1000 before and 3/6/9 after. The ~200-runbook trigger for widening k stands, so k stays.
  • Bundles: daintree.foundation is 5,384 of 5,400 B, the median bundle is 10,205 of 10,240 B, and the hosts leaves have 2,439 B of body room with 7 to 211 B of headroom each.
  • Follow-ups: the retrain is owed (all 47 hosts runbooks are untrained, corpus rows exist at 61 to 132 each). hosts.supervise-swarm is an attractor. The lane envelope wins over work. The hub takes the lane's verifier. Two owner splits are unfenced (diagnose-messaging vs hosts.foundation, and foundation vs start-swarm).

Changes

  • bench scale default sweep runs again. It had been refusing since the catalog passed 100 runbooks, and scale.smoke now reports the size it measured.
  • bench compare prints per-category snapshots and both sides' losses.
  • New cases/253-ownership-traps.yaml with the 39 ownership traps.
  • README recipe for measuring each wave.
  • Floors, k, the selector artifact, budgets, allowlists and routing text are untouched.

Testing

  • pytest tests/unit: 833 passed
  • bench coverage: 153/153
  • bench local gate passes: 1,890/2,000, candidate_miss 0, on develop 076ad479
  • training.compile_corpus --check clean
  • ruff check clean

Proof is Layer 1 (selection) and Layer 2 (contract) only. No live trial.

…and both sides' losses

- bench scale measures a size the catalog has outgrown at the real catalog's size, and says so, instead of refusing the default sweep once the catalog passed 100
- bench compare prints both suites' categories side by side, and on each moved case what each side lost, so a case failing on both sides shows whether it lost something new
- 39 cases written blind for #144: Remote Host against this machine, a worktree's cloud devbox, dev stacks and port clashes, and the hub's side of an exchange against the lane's
- owners from the routing text with the deciding clause quoted; every string screened below 0.75 similarity to every case and corpus string; failures kept
- before/after totals, categories and every moved case explained; ownership audit by boundary; shortlist scale before and after; bundle headroom; findings, commands and proof layers
- TODO evidence for the k=64 and foundation-domain triggers re-dated; neither has fired
- README: the recipe for measuring each further wave
- scale.smoke reports the size it measured once the real catalog outgrows 200, with a regression test
- ownership traps: quote the deciding clause in every note; the preview port case allows debug-web-app
- report: before/after runner-up scores for the floor crossings, bundle sizes before and after, the free-busy-port audit miss told apart from the hosts misses, the staged hub-lane protocol described accurately, forecasts marked as risks, and commands that reproduce all three snapshots
- gate and ownership audit re-run on develop 076ad47: 1,890/2,000 recall-pass, candidate_miss 0, audit 29/39
- the wave recipe runs bench pairs for the hub/lane scenarios
@gregpriday
gregpriday merged commit a6a3547 into develop Oct 16, 2026
1 check passed
@gregpriday
gregpriday deleted the docs/issue-144-measure-selector-recall-bundle branch October 16, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Measure selector recall and bundle cost as the swarm catalog expands

1 participant