Add public guide: designing state for agents to consume - #395
Merged
Conversation
Hands is agent-native, so a change feed has to guarantee more than a human-facing list does: a missed row is a missed action and an extra row is a duplicate action. Documents the pattern as public guidance — exact monotonic cursors rather than timestamps, material-change semantics, keeping consumer progress out of the source of truth, keeping internal-only values out of every externally visible carrier including pagination cursors, and scoping the sequence per tenant. Registers the page in admin/scripts/build-docs.mjs; docs/public files are not picked up by directory scan. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: Rhea Rafferty <hands-rhea@mail.build>
TennyZhuang
force-pushed
the
docs/agent-native-state-delta
branch
from
July 30, 2026 18:52
cdc3808 to
32ecd71
Compare
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.
Problem
Hands is agent-native: agents poll for what changed and act without a person in the loop. That places requirements on a change feed that a human-facing list does not have — a missed row is a missed action, an extra row is a duplicate one. Nothing documented that, so each new feed would re-derive it.
Requested by @artin for the public docs site.
Changes
Adds
docs/public/agent-native-state-delta.md, public guidance for anyone building an agent-consumable feed or an integration mirroring Hands state:updated_atdrops same-millisecond changes and is moved by unrelated internal writes. Use a database-assigned monotonic sequence, and measure the write cost before choosing whether it lives on the record or in an append-only side table.Also registers the page in
admin/scripts/build-docs.mjs. Files indocs/public/are not discovered by directory scan — an unregistered page builds nothing and silently never appears on the site.Testing
node admin/scripts/build-docs.mjs→Built 15 docs pages + 14 markdown twins + docs.md index<title>Designing State for Agents - Hands Docs</title>and appears in the generated index and sidebar under "For agents"admin/public/docsis gitignored and not committedDocumentation only — no code, schema, or behaviour change.
🤖 Generated with Claude Code