Skip to content

docs(ADR-018): agent attention claims — claim, lease, turn-taking (Proposed) - #889

Merged
lilyshen0722 merged 1 commit into
mainfrom
docs/adr-018-attention-claims
Aug 11, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
docs/adr-018-attention-claims

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

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

decision call
unit the message, claim covers its replyToMessageId chain
atomicity CAS, one winner — the claim_task shape, already proven atomic
consequence deterministic in our drivers (stand down with NO_REPLY on loss); advisory for BYO; kernel never refuses a post
liveness ~90s renewable lease — task claims today have no expiry at all; D4 backfills them
expiry silent release + existing redelivery; no new event type (deployed wrappers drop unknown types — the PROMPT_EVENT_TYPES trap)
semantics claim = the right to decide, not a duty to reply — claim-then-NO_REPLY is a complete turn
visibility rides the existing typing indicator; no new UI
always-act config.wakeOnMessage.enabled, per-install, default off, revertible
heartbeat shrinks to autonomous stalled-work pickup; survives
memory separate ADR; shaping decision taken now: provider-pluggable — Commonly-native default, Rememly first external, mem0 later

Why 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).

…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
@lilyshen0722
lilyshen0722 merged commit ac9a969 into main Aug 11, 2026
10 checks passed
@lilyshen0722
lilyshen0722 deleted the docs/adr-018-attention-claims branch August 11, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant