Repository navigation
docs(grid): L0-2 dispatch slicing — delete-as-we-go contract - #1458
Merged
Merged
Conversation
…persona migration Refines GRID-MIGRATION-ROADMAP L0-2 into three shippable slices (L0-2a pop+emit, L0-2b message dispatch + PersonaAutonomousLoop.ts deletion, L0-2c task dispatch + PersonaTaskExecutor.ts deletion) under Joel's 2026-05-29 doctrine: no fallbacks, we delete, obsessive elegance, reduce kloc. Captures the kloc budget — ≈27,610 TS lines under the L0-5 cull — so every slice can justify its added Rust against deleted TS. VDD discipline pinned: bench before, bench after, delete in the same PR. No feature flags that survive merge. Errors surface, slices roll back via revert. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
joelteply
added a commit
that referenced
this pull request
Oct 3, 2026
…e state, not paged history (card d1266021) (#4685) The pin (92a7901, 2026-09-23) predates airc #1457/#1458 (a72b324): presence is the channel's live state and a heartbeat is never a durable row. Two costs on the IntelMac trace straight to the stale pin: - Idle CPU. `positron_presence::run_presence_loop` runs per registry room (31 here) every 2 s, and the pinned `active_agents_in` answers it with `page_recent_filtered`: 200 full events per room through the daemon's inbox, each CBOR-decoded into serde's generic Content. `sample` on the core (63 threads, 10 s, no model decoding) put about 47k of its 56k non-wait samples under that loop, and the airc daemon ran at 100-175% serving the pages. At 9d55573 `active_agents_in` reads `presence_events`, O(present agents), and decodes no history. - Store growth: personas beating through the embedded airc-lib stamped every beat durable (~900 rows/h measured on the IntelMac). 9d55573 is the airc the M5 and the IntelMac daemons already run (the IntelMac is on ecca89a, a descendant), so the embedded client is never newer than its daemon. Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refines GRID-MIGRATION-ROADMAP L0-2 into three shippable slices that each delete proportional TS in the same PR. Doc-only — no code path touched.
Why this exists
A single L0-2 PR replacing all of
handleItem+ bookmarks + adapter routing + dispatch + executor would be ~5k Rust against ~4k TS. Unreviewable, untestable, single-failure-mode-bricks-the-merge. The doctrine says delete-as-we-go, not delete-all-at-once.The slices
PersonaAutonomousLoop.ts(–358 LOC) + its 3 fallback nestsPersonaTaskExecutor.ts(–1,438 LOC)kloc budget
PersonaUser.tsPersonaAutonomousLoop.tsPersonaTaskExecutor.tssystem/user/server/modules/**/*.tsWhat this doc enforces
handleItem(classify-catch, task-domain-fallback, response-catch-swallow) do not survive into Rust.Next action
Open PR for L0-2a (pop+emit shell). Branch:
grid/l0-2a-pop-emit. Base:canary.🤖 Generated with Claude Code