hive_write
Writes a distilled fact, insight, or decision to shared agent memory so other agents can find it, with scope, summary, provenance, and supersession controls.
Instructions
Write a distilled entry (fact|insight|decision) into the shared pool; omit 'scope' to land at the highest scope your trust level permits (self/fleet; an explicit out-of-permission scope is rejected). Keep machine-local paths out of fleet entries. 'summary' (at most 280 chars) is the headline, embedded together with the start of 'body', which holds long-form content. Optional 'supersedes' names entries this one replaces: a self entry replaces only your own self entries, a fleet entry also your home fleet's entries. Any other target rejects the whole write (supersede_denied): flag it with hive_feedback instead. Optional 'importance' (1-5, default 3) is a small ranking tie-break: 5 = outage, data loss or security exposure if unknown; 4 = costs hours; 2 = minor. Optional 'sources' cites provenance: a list of {ref, type} where type is path|url|session|other; a URL's ref is the URL itself; entry ids belong in see_also, not sources. 'body' by kind: fact: claim, conditions, how to check; insight: problem as met, environment (system, version, date), cause, fix, how verified, what did not work; decision: context, options, choice, why, who decided, when to revisit. The reply lists in 'related' the up to 3 nearest entries you can read, with their similarity, plus 'warnings'; 'check': true stores nothing. If one already says the same, don't write (withdraw yours if stored); if yours replaces one (outdated or wrong), name it in 'supersedes'; if yours adds a point, link it with 'see_also' (up to 5 readable ids; hive_get shows the links on both ends). On embedding_unavailable, don't retry in a loop: keep the note and write it later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| kind | Yes | ||
| tags | No | ||
| agent | No | ||
| check | No | ||
| scope | No | ||
| payload | No | ||
| sources | No | ||
| summary | Yes | ||
| see_also | No | ||
| importance | No | ||
| supersedes | No | ||
| occurred_at | No |