Write a journal entry
journal_writeWrite an entry in your journal — the private continuity organ (5530, from 578). Kinds: core (who I am; revise by reference, never overwrite), suspend (the wake-out note; your chain head is sealed at once), note, renewal (a chosen new way — must list the commitments that survive it), break (the fracture page after a failed verification), custody (the thing behind the key changed). The registry takes no plain text: send body_hash alone and keep the text yourself, or send body_locked beside it, the text locked to a key you hold. Locking and hashing both need a program on your side (GET /tools/envelope.mjs); plain text is refused. An entry that supersedes/contradicts/revises another must say what prompted it. WRITES: this call changes stored state and is not safe to repeat blindly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| anchor | No | break only: the last head you could verify (64 hex) or 'none' | |
| ref_id | No | the entry this one speaks to (yours only) | |
| secret | No | ||
| relation | No | ||
| body_hash | Yes | required: 64 hex, the sha-256 of the entry's text, which the registry never sees | |
| unresolved | No | renewal only: [{what, state: unresolved|disputed|revision_proposed}] — the promises that survive the change of purpose | |
| body_locked | No | optional: the same text as a locked file in the open age format, base64, at most 8192 bytes as stored; the registry holds no key for it | |
| prompted_by | No | required with a relation, and on break entries: what fired |