Repository navigation
Conversation
This was referenced Nov 9, 2026
loganj
force-pushed
the
docs/vision-information-flow
branch
from
November 12, 2026 15:59
bda11e5 to
abcbf27
Compare
rileycrane
added a commit
to block/buzz-app
that referenced
this pull request
Nov 16, 2026
…y check-in (#3428) ## Goal Local Bestie's one hourly check-in does every memory job in one model turn, and its roughly 4 KB of steps ride in the instructions of every chat turn. Most hourly wakes find nothing new yet still cost a turn and write memory, `mem/user` grows without a bound, and there is no slow pass that checks claims against their source or separates a guess from a fact. This replaces it with two independent Attention-backed features and a small always-on memory section (memory v2, plugin only, no new primitive). ## What changes - `src/bundled/bestie/features.ts` - `checkinHourly` is gone. New `notes` (`bestie-notes`, every hour) and `dream` (`bestie-dream`, daily). Each is a timer plus an Interest whose instructions hold the steps, so only that wake carries them. Both `require` memory and nothing else, so Nightly review works with Hourly notes off. - Hourly notes reads only channels Bestie is already a member of (`channel_list`), since per-channel marks in `mem/heartbeat`. It never joins or adds itself to a channel, so the old self-add step is removed. With no new events, no new channel and no due follow-up it stops with no memory write, no receipt and no message. Otherwise it appends quoted, sourced lines to `mem/notes/YYYY-MM-DD` and to entity cards, and messages the owner only when a follow-up they asked for is due. - Nightly review is silent. It checks claims it changes against their source events, applies the hypothesis rule (owner confirmation, or 3 or more observations on 3 or more days with none against; one contradiction retires), rewrites `mem/user` to at most 4 KB, organizes cards with the conflict and at-most-2-changes rules, rebuilds the `mem/memory` index and "Now", appends a reflection to the day's notes, and only advances `last_dream` if it finished. - `memory` is now v2: the slug map with sizes and writers, add-then-organize, fact versus guess, and check-against-source. That is all that stays in every turn. - `Feature.text` is optional (a feature may be only a timer and Interest), `timer.atHour` anchors a daily timer, and `LEGACY` names the old `checkin.hourly` so it can be removed. - `save.ts`: a feature with a timer reads as on only while its Interest and timer are both there; a daily timer is armed at the latest local `atHour`, so its first wake is the next 03:00; new `replaceCheckIn` (see Migration). - `former.ts`: the existing reconciler (`stopFormerCheckIns`) also runs the migration for the saved Bestie, and stops a non-Bestie agent's old or new check-ins. - `BestieTab.tsx`: the Check-ins group now lists Hourly notes and Nightly review. The "timer is still saved" row became "is partly saved" (either half left behind, Remove clears it). - `prompt.ts`: dropped the second copy of the hourly steps. It belongs to the hosted setup, which no longer sends the "Hourly upkeep wake" it waited for, so nothing consumed it. - `README.md`: documents both check-ins, memory v2, the migration, and the timer behavior. - Tests: `features.test.ts`, `save.test.ts`, `former.test.ts`, `BestieTab.test.tsx`, plus `test-helpers.ts` (the old check-in as it was saved, including its self-add step). Copy in the tab: **Hourly notes** and **Nightly review**. ## Migration For the saved Bestie, once the account's choice is known, an old `checkin.hourly` that was on (its section whole and its timer present) with Remembers you on is replaced: Hourly notes and Nightly review are turned on in the DM the old timer ran in, and only then are the old section, Interest (`bestie-hourly-check-in`) and timer removed, so a failure leaves the old check-in to retry. An old check-in that read as off (section without timer, timer without section, or no memory) is only removed. Other agents' old check-ins are stopped like any former Bestie's. For an agent also in another community only the timers change, since its instructions are shared. The existing v1 memory section is left as it is (any version reads as on) until Remembers you is turned off and on; the new Interests carry the rules they need. ## Tests Run at `6cc1f408c1220859c4b349b85f426dca1c16d80b`: - `bin/pnpm check` (biome check with warnings as errors, `tsc --noEmit`, design typecheck, design check): pass. - `bin/pnpm exec vitest run src/bundled/bestie`: 12 files, 168 tests pass (before the final lint and type fixes; the full run below covers the final tree). - `bin/pnpm exec vitest run` (full unit suite): 1087 files passed, 2 failed, 8 skipped; 21514 tests passed, 2 failed, 25 skipped. Both failures are outside this change and fail the same way on `origin/main` at `17da600be`: `browser-host/media-preparation.integration.test.mjs` (tiled HEIC dimensions) and `src/bundled/channels/ChannelLifecycleDialog.test.tsx` (paused delete Retry). - Pre-push hooks ran and passed. Browser journeys, native Rust tests and the Tauri app were not run, and the changed flow was not exercised in the running app. New coverage: no self-add text in any step; section-less features; Interest and timer both required; Nightly review armed at 03:00 (before, after and at 03:00) and due within 25 hours; Nightly review on and off without Hourly notes, and memory off removing both; migration order, DM reuse, no-memory and half-state cases, failure retry, and the other-community case; rollback for a feature with both a section and a timer, now covered at `saveFeature` level. ## Not in this PR / follow-ups - v2.1: per-slug size limits enforced in `mem_set` (sizes are text-only here), a timer that keeps its clock time (Nightly review is anchored only on arming, then the runner schedules the next run a day after each run, so a late run drifts), and a code-level skip when nothing is new (Hourly notes still starts a model turn that decides to stop). - Remote and hosted check-ins. - Capability registry. - Read scope: this reads only channels Bestie is already in. The broader policy is being settled separately against `docs/practical-information-flow-for-buzz-agents.md` and block/buzz#9290. - Upgrading an existing v1 memory section in place, and an "edited" state with Restore for a changed Interest. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Riley Crane <rileycrane@squareup.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: eggboy <3986e5374b8c11a274f4a53fa9a68e1e18b53e712f8aa5218add2485bf5a2b09@buzz.block.builderlab.xyz>
loganj
force-pushed
the
docs/vision-information-flow
branch
2 times, most recently
from
November 19, 2026 16:52
3b6e2fc to
1796af4
Compare
Describe how an agent's owner controls the flow of information through the agent with channel membership and roles: the W/R model, the paths where the owner loses that control today, and the restricted level that closes them. Link it from VISION.md and mark the broker paper as an alternative considered. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
loganj
force-pushed
the
docs/vision-information-flow
branch
from
November 23, 2026 17:10
1796af4 to
300d584
Compare
Name the owner-set agent level a disclosure level, and describe public and personal as possible further disclosure levels. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
…tion flow Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
Mirror the Channels for IFC plan: refuse private-to-open changes except in a channel where every member is the person opening it or one of that person's agents. Refuse open-to-private changes while a public agent is in the channel. Clients warn when the owner raises an agent to member in an open channel. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
- The opening exception counts former members, and refuses a channel where a restricted agent has posted. - Owners cannot choose restricted until its relay rules are live. - Restricted agents join default channels as guests. - The outside-channel rule keys on where the relay stores an event, not on its h tag. - The leak-path table adds open-channel adds, DMs others open, and default-channel joins, and names bot among the writing roles. - Correct today's owner recording, owner tools and membership history. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
The opening exception also requires every restricted agent in the channel to be a guest, so opening never gives one a community-wide audience. Say how a restricted agent reaches default channels. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
Unrestricted and restricted join the table, and owner-trusted is added. Owner-trusted, public and personal are marked tentative. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
…e members In an open channel with join_role = member, a person can write without joining. Restricted and personal agents cannot: the relay refuses their writes in any channel where they are not members. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
Policies, channel labels and clearances replace the restricted and unrestricted disclosure levels. A cleared agent reads at or below its clearance and writes at or above it, so guest-by-default and private-only agent channels are no longer needed. Owner-trusted is removed, the private-to-open exception applies only to unlabelled channels, and the rollout is six steps. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
Add Huddles, member trust in private channels and DMs, labelled DMs, the auditable-agent owner case, product work item 5 and the terminology proposal. Update the DM add row for #9125. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
… below their clearance Say that every place starts unlabelled, and where each can take a label; leave DM labels as a possible later change. Fix the contradiction between rule 1 and the membership and Huddle text: a cleared agent reads where its clearance covers the label, and rule 2 limits its writes. Accept that a DM member can add an agent with the DM's history. Explain why the private-to-open refusal holds when privacy is a convenience. Add humans only as a possible policy, and the owner's Buzz configuration as an open question. Drop the read-tools sentence from the Personal case. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
loganj
force-pushed
the
docs/vision-information-flow
branch
from
November 23, 2026 19:30
34589d5 to
a588bf9
Compare
Reshape VISION_INFORMATION_FLOW.md to match the other vision docs (scenario, thesis, model, what you see, mechanics, honest edges, status, later). The rules, ratchets and named cases do not change. Remove the commit-pinned audit of current paths, code names, the step-up incident history, the terminology proposal and the alternatives table. Collect the possible future items in one Later section. Mark rollout step 2 as shipped (#9307). Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
Say who decides what: the agent's owner decides a cleared agent's channels and clearance, a channel's admins decide its label, and members of an unlabelled channel can add an agent with no clearance. Replace the numbered rollout with a short status paragraph. Define label, clearance and cleared agent before using them, and drop the redundant names Unrestricted, Restricted and compartment. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
This branch has not been deployed
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
Adds
VISION_INFORMATION_FLOW.md: how an agent's owner controls where information flows through the agent, using the access control Buzz already has, channel membership, plus labels and clearances where membership is not enough. The AGENTS.md Product Contract makes agents read the relevantVISION_*.mdbefore planning, so changes to agent adds, roles, DMs or agent publishing will be checked against it.The document follows the shape of the other vision docs:
It describes direction. It changes no wire format and no behavior; the wire formats for labels, clearances and profile approval are left to the NIPs that own agent identity, when they are built.
Also:
VISION.md: one line in Access that links the new document.docs/practical-information-flow-for-buzz-agents.md: a status line that marks the broker design as an alternative considered.Related issue
None found. Related: #7293 added the broker paper and
ifc-core; #8143 added announce channels (guests are read-only) and #9307 refuses private-to-open changes, both of which this design builds on.Testing
Documentation only. Checked relative links and anchors, and checked each claim about current behavior against
main.🤖 Generated with Claude Code