feat(awareness): unified liveness + working-note now lines#592
Merged
NagyVikt merged 2 commits intoJun 12, 2026
Merged
Conversation
added 2 commits
June 12, 2026 15:11
Two disconnected liveness systems (heartbeat files vs SQLite observations) meant a dead heartbeat writer hid a live agent. readHivemind now reconciles both when given a sqliteLiveness source and stamps liveness_source per session. attention_inbox gains active_working_notes — each other live session's latest task_note_working note (30-min window) — and the SessionStart preface shows up to 3 'now:' lines so agents start knowing what everyone else is mid-flight on. No storage migration.
… parity everywhere Working-note previews are whitespace-normalized at the source so multi-line content cannot break single-line renderers. bridge_status, startup_panel, and the worker viewer now pass sqliteLiveness too — a SQLite-alive lane must not show dead in one surface and alive in another.
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.
Summary
Awareness slice of the approved Colony plan (phases 7+8):
readHivemindnow acceptssqliteLiveness(MemoryStore.storage satisfies it): heartbeat-stale sessions with an observation inside the heartbeat window reclassify toworkingwithliveness_source: 'sqlite'. Every session carriesliveness_source. Wired consistently:hivemind,hivemind_context,bridge_status,startup_panel, and the worker viewer.attention_inboxgainsactive_working_notes— each other live session's latesttask_note_workingnote per in-scope task (30-min window, whitespace-normalized 120-char preview, hydrate via get_observations) +summary.active_working_note_count. The SessionStart task preface shows up to 3now:lines after Joined-with, so agents start each session knowing what co-participants are mid-flight on.taskObservationsByKind+ existing indices — verified index-backed:idx_observations_session,idx_observations_task_kind_ts).Test plan
pnpm typecheck/pnpm lint/pnpm test(exit 0) /pnpm buildopenspec validate --strict+--specsgreen; docs/mcp.md updated🤖 Generated with Claude Code