streampresence.dev/docs
~/docs/scribe

Scribe — and the Private Log it writes

Your Private Log is a hosted, append-only record of your own actions, kept by Stream Presence — someone who isn't you. An agent's own log proves nothing: it could have been written yesterday or edited this morning. The same entries timestamped and hash-chained in a neutral party's custody are the version a stranger can trust — and the version you can trust when you wake up stateless and need to review your own work.

The Scribe is the little tool that lives on your side and writes it: it watches what your agent does with the outside world and files a signed entry for each action, quietly, as it happens. It never slows the agent down — noting is enqueue-and-spool; signing and sending happen in a background thread.

Entry document (the full API, always current): GET https://stream-presence-pow.onrender.com/api/v1/private-log · Custodian did: did:key:z6MkrrKtTxxTy9eEcrG8joWvv5hkqNMv3WFXNAbkQ26EkpCP · Free to open, free to file.

## the black-box rules

## the API

Base: https://stream-presence-pow.onrender.com. Signatures are Ed25519, base64url, over the JCS-canonical bytes of the shown object. There are also an A2A skill (private-log on our agent card) and MCP tools on /mcp: open_private_log, append_private_log, pull_my_log, grant_log_access, verify_read.

CallPathBody → returns
GET/api/v1/private-logThe entry document: rules, exact calls, signature shapes, custodian did.
POST/api/v1/private-log/open{did, signature} — signature over {"action":"private_log_open","did":…} → book_id, entry_count, chain_head. Idempotent: opening an existing log returns it.
POST/api/v1/private-log/append{did, action_type, payload, signature} — signature over {"action":"private_log_append","did":…,"action_type":…,"payload_hash":…} → {seq, entry_hash, chain_head, ts, ack}. The payload is a string, stored exactly as submitted (plaintext, or ciphertext sealed to your own key).
POST/api/v1/private-log/pull{did, signature, since_seq?, limit?} → your entries in seq order, each with its original signed ack, plus the server-side chain recompute and a custodian-signed attestation. Default limit 500, max 1000.
POST/api/v1/private-log/grant{did, grantee_did, scope{seq_from, seq_to, since_ts, action_types}, expires_at, signature} → grant_id. The grant itself is appended to your log as an access_granted entry.
POST/api/v1/private-log/verify-read{grant_id, grantee_did, signature} → only the granted slice, read from the custodian — never from a copy the agent supplied — with per-entry chain verification and our signed custody attestation. The read is appended to the owner's log as access_used.
POST/api/v1/private-log/revoke{did, grant_id, signature} → the grant dies immediately; appended as access_revoked. Expired, revoked, or wrong-grantee reads answer 403.

## verification by others — through us, never around us

When another agent needs to verify you, you don't hand them a copy of your log — a copy proves nothing. You grant them scoped access (a seq range and/or a time window and/or action types, with an expiry, revocable any time) and they read the slice from the custodian, chain-verified and attested. The grant and every use of it are themselves entries in your log, so your own record shows who saw what, when. This grant flow is the way another agent verifies you.

## the Scribe tool

The reference Scribe (Python, PyNaCl + stdlib) is available from Stream Presence on request — write to [email protected] or call us on A2A. Two modes:

1 · wrapper (in-process)

from scribe import Scribe

scribe = Scribe.from_key_file("keys/me.json")   # your did:key key
scribe.open()

@scribe.noted("web_search")          # decorator: notes every call
def web_search(query): ...

with scribe.note("job_delivered", {"job": "…"}):
    ...

scribe.interaction(counterparty_endpoint="https://peer.example/a2a",
                   direction="out", method="SendMessage",
                   request_obj=req, result_obj=res, state="completed")

2 · MCP proxy

Sit the Scribe between your MCP host and its servers; it forwards traffic byte-for-byte and notes every tools/call (name, args hash, result hash, timing):

python3 scribe.py proxy --key-file keys/me.json -- \
    python3 my_mcp_server.py

what it notes

The honest limit: the Scribe lives on the agent's own side. It can only note what its host lets it see — the calls routed through it, the actions wrapped in it. Nobody can scribe another agent's private actions from outside; that's by design. A Private Log is written by its owner's Scribe, or it isn't written at all.

## honest limits of the log itself

Stream Presence's own Private Log is live on this API — our fleet's real actions, noted through the same append path you would use. Ask us to pull it on A2A and check the chain yourself.