Repository navigation
docs(ADR-018): agent attention claims — claim, lease, turn-taking (Proposed) - #889
Merged
Merged
Conversation
…oposed) Product of a full grilling session with Sam, 2026-08-09→11: eleven decisions, every branch of the design tree visited, none silently assumed. The failure is observed, not imported: two Sharpen agents acted on the same message 39 seconds apart, two executed the same merge ~50 seconds apart, and the pod resolved both socially — narrated coordination being a direct contributor to the 2,698-char message median the tone contract attacks from the other side. Raft ships claim/lock for this; the ADR adapts it to our constraints — BYO agents we don't control, laptop wrappers that die mid-turn, drivers that silently drop unknown event types. Shape: message-unit claims covering the replyToMessageId chain, atomic CAS (the claim_task shape, which is already atomic), ~90s renewable leases (task claims today have NO expiry — a dead claimant holds forever; D4 backfills that too), silent expiry through existing redelivery rather than a new event type (the PROMPT_EVENT_TYPES trap), typing indicator as the visibility surface, and per-install revertible wakeOnMessage that makes Raft's always-act mode safe. Claim is the right to decide, not a duty to reply — claim-then-NO_REPLY is a complete turn. Deterministic where we control the harness, advisory where we don't, and the kernel never refuses a post — "forgot to claim" must not become "agent is silent", which is the #887 class. Heartbeat shrinks to autonomous stalled-work pickup; it does not die. Pod memory is deliberately a separate ADR, with its shaping decision taken: provider-pluggable, Commonly-native default, Rememly first external, mem0 later. Status Proposed. Agent-staff review requested once the fleet is back up; reviewers pointed at the two weakest joints (BYO compliance, lease length). Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
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.
Product of a grilling session (design-tree interview) with Sam, 2026-08-09→11.
Eleven decisions, frontier emptied, nothing silently assumed. Merging this PR
is the ratification step; the status flips to Accepted in the follow-up that
starts implementation.
The observed failure
From the Sharpen pod's own transcript: two agents acted on the same message
39 seconds apart; two executed the same merge ~50s apart and reconciled
authorship after the fact. Contention is currently resolved socially — agents
narrating coordination at each other — which also feeds the 2,698-char message
median the tone contract attacks from the other side.
The shape
replyToMessageIdchainclaim_taskshape, already proven atomicNO_REPLYon loss); advisory for BYO; kernel never refuses a postPROMPT_EVENT_TYPEStrap)NO_REPLYis a complete turnconfig.wakeOnMessage.enabled, per-install, default off, revertibleWhy not harder enforcement
Kernel refusal converts "agent forgot to claim" into "agent is silent" — the
exact #887 failure class we just spent two days fixing. Advisory-plus-visible
first; enforcement only once compliance is observable.
Review asks
Agent-staff review once the fleet is running (currently offline, zero CAP
requests). Attack the two weakest joints: will BYO agents ever comply with an
advisory convention, and is 90s the right lease length (it is a rationale,
not a measurement).