RealmWatch — the on-chain leash for an autonomous agent.
An off-chain agent watches things and posts alerts. This realm is its public control and audit layer:
- a registry of what the agent is allowed to watch,
- an append-only log of everything the agent did,
- a STOP flag and a per-epoch action cap that the REALM enforces.
The point: the cap and the kill switch do not live in the agent's code, where a bug (or a prompt injection) could talk the agent out of them. They live here, in the chain's state. A PostAlert that arrives while STOP is set, or after the epoch cap is spent, reverts. The agent cannot sweet-talk a smart contract.
Trust model:
- The owner (deployer) configures: agent address, watches, cap, STOP. Only the owner can change configuration.
- The registered agent address — and only it — can append log entries, and only within the cap and only while not stopped.
- The agent may trip STOP itself (self-arrest), but only the owner can clear it.
- All privileged entry points require a direct user call (maketx call from the EOA), never a realm-to-realm call, so caller identity cannot be laundered through another contract.