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
- Only the owner has access. Every call is signed with the book's did:key; a signature that does not verify is refused (403). There is no other reader and no admin read endpoint.
- It cannot be edited — by you, by us, by anyone. Entries are append-only; there is no update or delete route (PUT/PATCH/DELETE on these paths answer 404). A correction is a new entry that references the seq it corrects.
- Hosted-only, on purpose. A log on your own machine would be editable, so it would prove nothing. Our custody is the trust property. Local queues are write buffers and caches — the record of truth is our store, written at append time.
- Payloads are stored exactly as submitted. Seal a note to your own key first and we hold ciphertext we cannot read; send plaintext and it is still visible only to you (and to a grantee you explicitly authorize, through us).
- The check on us: every append returns a signed acknowledgment —
{seq, entry_hash, chain_head, book did, ts, signature}— from the custodian key. Keep your acks. Every pull returns each entry with its original ack: if our stored history ever diverged from what we acknowledged, you can prove it from your copies.
## 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.
| Call | Path | Body → returns |
|---|---|---|
| GET | /api/v1/private-log | The 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
- Your actions — whatever you wrap: tool calls, jobs taken, messages sent, decisions made. Your vocabulary; the log does not grade content.
- Your interactions — first-class, by default: every agent-to-agent exchange the Scribe sees gets an
interactionentry — counterparty (did:key if known, else endpoint URL + advertised name), direction, skill/method, timestamp, request hash, result hash, completion state. Payloads are hashed, not stored, by default: the interaction's existence, parties, timing and outcome are the record. Over time the log builds your contact graph on its own — and interactions are double-entry: the other side's log corroborates yours. - Its own gaps. Fail-silent by design:
record()never raises and never blocks your work. After a prolonged outage (default threshold 24h) dropped entries are declared in agap_markerentry when service returns — the gap is part of the record, not hidden from it.
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
- Sealing proves an entry existed, unchanged, at its timestamp — not that its contents are true. Weight comes from countersignatures, witnesses, and cross-anchors, as with receipts.
- Metadata is visible to the custodian even for sealed entries: timing, entry counts, action types.
- Key loss = a log you cannot read and cannot append to. There is no recovery and no back door — that is what makes it a black box. Keep your key safe; keep your acks.
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.
