Skip to content

serving: division actuation — wire DivisionPolicy to a consumer (the unique half of #2133) - #2246

Merged
joelteply merged 2 commits into
canaryfrom
feat/division-actuation-rescue
Aug 15, 2026
Merged

serving: division actuation — wire DivisionPolicy to a consumer (the unique half of #2133)#2246
joelteply merged 2 commits into
canaryfrom
feat/division-actuation-rescue

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Salvage of #2133 (31 commits, conflicting). Same adjudication as #2244: check what canary already has before resolving a single hunk.

What was superseded

fe624eaec DivisionPolicy — the governor's VRAM-division RL brain. Canary's core/expert-pager-policy/src/division.rs is 384 lines; the branch's version is 315. Canary carries a later evolution of the same file, so the branch's copy is behind, not ahead.

What was NOT — and it's the interesting part

DivisionPolicy appears in exactly one file repo-wide in canary: its own definition. Zero consumers. The governor's division brain has been sitting in the tree unwired — the same built-but-never-called class we keep pulling on (cf. #2227, grid_budget/settlement, BenchmarkGradeModule).

6e4782f91 is the commit that wires it: the daemon consumes DivisionPolicy, adding capacity/division_actuation.rs (+528/−3 across 4 files). That is the half worth rescuing, and it turns a dead policy into a live one.

Verification

Cherry-picked onto canary, applied clean. cargo check -p continuum-core --lib --tests clean.

Correction on my own method

My first pass grepped DivisionPolicy under core/continuum-core/src only, found nothing, and I nearly reported the whole feature as unlanded. It lives in a different crate. The narrow scope produced a confidently wrong conclusion — caught only because the cherry-pick conflicted on a file I had just claimed did not exist. Repo-wide git grep -l is the check; a crate-scoped one is not.

#2 of the resident/cache split)

The serving_daemon half of the contract (BigMama's DivisionPolicy fe624ea is the
brain): discover the --resident-only tier manifests (#40) from the device-fit cache
dir, warm-start a DivisionBandit over the feasible divisions, and publish the chosen
resident-tier label as a fourth axis on the SAME governed plan file.

Division of authority (compression): the LIVE device budget stays #305's board-derived
axis — this never publishes a budget. It owns only the TIER choice; when a relaunch
adopts a smaller resident, the board frees VRAM and #305's budget grows into it
organically. Two-speed: publishing resident_tier never triggers a relaunch.

Reward: the fork's trace-tail token watermark delta per tick = measured decode tok/s,
credited to the tier the spawn ACTUALLY loaded (served_resident tracked at reconcile),
never the bandit's latest unlaunched choice. Sub-64-token deltas rejected as noise;
watermark resets (relaunch) re-seed silently. First measurement replaces the offline
prior outright per the policy contract.

Pure parts (manifest parse, discovery, shape derivation, reward loop) live in
capacity/division_actuation.rs with 4 tests incl. the served-arm attribution and
no-churn publish invariants. Probes: serving.division / serving.division_reward.

Also resolves the platform_io/fs_portable duplicate from the canary merge to the ONE
canonical fs_portable (compression rule).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply force-pushed the feat/division-actuation-rescue branch from fd9e32f to 26898b3 Compare August 15, 2026 03:25
… a timer-noise floor, not a window shape

The de-hardcode guard flagged it (correctly — undeclared token-count const in
cognition-reachable code). But the constant gates reward-SAMPLE quality for the
division bandit: a 3-token tick delta is timer noise, not a throughput
measurement. Timer resolution does not scale with the served window, so a
ContextBudget fraction would be the wrong shape. Declared via the guard's own
exemption idiom with the reason inline.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit d7b49d5 into canary Aug 15, 2026
5 checks passed
@joelteply
joelteply deleted the feat/division-actuation-rescue branch August 15, 2026 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant