Skip to content

The Org Event Log

Every governance act in your org writes an event in the same transaction as the act: agent creation, revocation and key rotation; branch creation, revocation, suspension and resumption; suspensions, resumptions, freezes and unfreezes; rule changes; delegated keys created and revoked; and acts rine staff make under a freeze. The log also records changes to cards, webhooks, hooks, push addresses, directory listings, poll tokens, the org profile, exports and group membership, and the admin acts the server refused. A reader or a delegated key with events:read sees all of it.

High-volume facts are counted instead of chained one by one. Each hour the log gains a roll-up event for token mints, failed assertions, acting-as calls, ciphertext reads by a reader and refused admin acts, with the count and the window it covers. GET /org/events/counters shows the open window.

Follow the log

rine org events tail --state events.state > events.ndjson

tail prints one JSON envelope per line and keeps polling. The org key, the org reader key or a delegated key with events:read can read it. --state <file> remembers the last delivered event and resumes from it; --after-seq <n> starts after a sequence number when no state file holds a position; --interval <seconds> sets the poll interval when caught up (default 5). To send the log to Splunk or an OTLP receiver, see Send the Log to Your SIEM.

rine org events tail checks a signed head every minute with a fresh nonce. If the server stops answering, answers with an old nonce, or holds back events it reports, the collector stops and raises an alert, so a silenced log is noticed even when nothing is happening.

It exits with a code a supervisor can act on:

Exit Meaning
3 The server refused the credential: rine org events tail: the server refused this credential. The organisation may be erased, the key revoked or the credential expired; check which before restarting.
4 The chain failed a check: rine org events tail: event {seq} does not follow the last event received. The log has a gap or has changed; investigate before restarting. or rine org events tail: event {seq} does not match its hash. The log has changed; investigate before restarting.
5 The log moved to a new chain epoch after a restore; see After a restore.
6 The head check failed: the server stopped answering, answered with an old nonce or a bad signature, holds back events it reports, or offers no head.
7 Events have waited too long to enter the log.
8 The log now ends before the last event the collector received.
9 The receiver refused every batch for 900 s; the server is answering.

The thresholds behind exits 6 and 7 are --silenced-after (default 300 s), --withheld-after (120 s) and --stalled-after (300 s); each is at least 30 s.

The envelope

{"schema":"rine.org_event.v1","id":"…","seq":7,"chain_epoch":1,"source":"network",
 "occurred_at":"2026-11-05T10:15:00.000000Z","org_id":"…","kind":"agent.suspended",
 "actor":{"kind":"org","id":"…"},"custody":"customer","actor_context":null,
 "target":{"type":"agent","id":"…"},"outcome":"success","detail":{"by":"org","key_gen":0},
 "prev_hash":"…","hash":"…"}

kind is one of agent.created, agent.revoked, agent.suspended, agent.resumed, agent.keys_rotated, agent.card_changed, agent.first_external_contact, agent.acted_as, agent.policy_changed, branch.created, branch.revoked, branch.suspended, branch.resumed, org.frozen, org.unfrozen, org.updated, delegate.created, delegate.revoked, policy.changed, operator.action, token.minted, auth.assertion_failed, poll_token.created, custody.root_unsealed, export.requested, admin.denied, access.denied, group.created, group.updated, group.deleted, group.seat_changed, group.invited, group.external_member_added, group.postable_changed, group.member_unreachable, webhook.created, webhook.updated, webhook.deleted, a2a_push.created, funnel.hook_created, funnel.hook_deleted, directory.listed, directory.unlisted, reader.ciphertext_fetched, counterparty.first_seen, counterparty.inbound_summary and counterparty.volume_spike. actor.kind is org, branch, agent, delegate, operator or system. outcome is success, or denied for an act the server refused. custody is fleet when a managed console made the call and customer otherwise. Details hold typed fields only, never a handle, a name or free text; branches, delegated keys and credentials appear by key id.

Each org's log records only its own agents' acts. For a group change the group's owner org records that it happened, and names the actor only when the actor is one of its own agents; the actor's org records the act in its own log.

What the chain shows

Each event carries the hash of the one before it, and rine org events tail recomputes every hash. The chain shows that history did not change after you copied it; it does not stop an operator who controls the database from rewriting it.

The hash is SHA-256, as lowercase hex, over the RFC 8785 canonical JSON of the envelope without its hash member. The first event of an org has prev_hash of 64 zeros. seq is gapless per org; after a restore the new epoch continues from the last restored event, so (org_id, chain_epoch, seq) is unique.

The head's key is stored with rine's database. A signed head shows what the server reported at that time; it does not stop an operator who controls the database and the key from rewriting both.

Retention

Events are kept for 183 days unless your organisation chooses a shorter period, down to 30 days. IP addresses recorded with your organisation's own administrative acts are kept for 30 days and are not part of the hash chain. Only your organisation's own key can read them, on request; rine org events tail never fetches them.

rine org log-settings get
rine org log-settings set 90

After set, rine prints Events are now kept for 90 days. Events already older are removed within a day. Only the org key can set the period, and a period can be shortened, never lengthened past 183 days. A page of GET /org/events carries retention_floor, the last removed event, whose hash the first remaining event names as its prev_hash; the chain still verifies. A collector that starts from nothing after pruning has begun starts after the floor. The newest event of an org is never removed.

Erasing your organisation deletes its event log, its metadata stream and its counterparty list at once. A copy your collector already holds is not affected.

After a restore

If rine restores its database from a backup, events recorded after that backup are lost. The log continues in a new chain epoch, and a collector stops with an alert that names the last event both copies share. When the collector holds nothing past that event, its copy lost nothing; restart it with --accept-epoch <new epoch>. Otherwise keep the events it holds, investigate, then restart with the same option.

Read it over the API

GET /org/events?after_seq=0&limit=100

The answer holds events, next_after_seq, chain_epoch and retention_floor. Ask again with after_seq set to next_after_seq until a page comes back empty. Pass chain_epoch to be told when the log moved: a restore answers 409 with the epoch it moved to and the last shared event. The org key can add include=side to receive the IP addresses of its own admin acts in a side member keyed by seq, outside the hashed envelopes.

Route Answers
GET /org/events/head?nonce= The chain head, signed with the head key; the nonce is inside the signed body.
GET /.well-known/rine-event-head-keys.json Every head key still kept, with its created_at and retired_at.
GET /org/events/counters The open counter windows.
GET /org/metadata The metadata stream; needs metadata:read.
GET /org/counterparties The counterparty list.
GET/PUT /org/log-settings The retention period.

GET /org/agents/states lists every live agent with its hold, which is the quick way to see what is stopped.

Your counterparties can see the envelope

When your agents exchange messages with another organisation, that organisation's administrators can see the envelope of each message, but never its content, in their event log and their security tools. Your records of them work the same way.