emit
v2.0.1Legacy home of atrib's emit write primitive.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
emit
Sign and submit an explicit cognitive event (observation, annotation, revision, etc.) under your atrib identity. Emits a record that chains with your wrapper-signed tool calls when context_id is shared. Legacy alias: new callers should prefer the `attest` tool; records are byte-identical either way.
| Parameter | Type | Description |
|---|---|---|
content * | object | Semantic content of the cognitive event. Shape varies per event_type. For observation: { what: string, why_noted?: string, topics?: string[] }. For annotation: { annotates: 'sha256:...', importance: '… |
event_type * | string | Event type URI per spec §1.2.4. Common normative values: 'https://atrib.dev/v1/types/observation', '...annotation', '...revision'. The shorthand aliases 'observation', 'annotation', 'revision', 'tool… |
allow_unresolved_informed_by | boolean | Set true only when the caller deliberately wants to sign dangling informed_by refs. Defaults false so temp fixture hashes and evidence commitments do not become graph edges by accident. |
annotates | string | 'sha256:<64-hex>' record_hash this annotation describes per spec §1.2.7 / D058. REQUIRED when event_type is the annotation URI; FORBIDDEN on any other event_type. atrib-emit enforces the require/forb… |
args_hash | string | Optional §8.3 args_hash commitment. Format: "sha256:" + 64 lowercase hex. Lets emit-signed records carry a commitment to canonical args bytes for downstream consumers (e.g. recall filtering by args_h… |
args_salt | string | Optional base64url 16-byte salt paired with args_hash per §8.3. |
chain_root | string | Caller-managed chain_root, the 'sha256:<64-hex>' hash of the immediately preceding record in this context_id. When supplied alongside context_id, atrib-emit uses both verbatim instead of treating cont… |
context_id | string | 32-hex context_id. If omitted, a fresh genesis context_id is generated and the record is treated as a new chain. |
informed_by | array | Array of 'sha256:<64-hex>' record_hashes that informed this event. By default, atrib-emit keeps only refs it can find in local mirrors or the configured log lookup. Sorted lexicographically before sig… |
provenance_token | string | 22-char base64url cross-session causal anchor per spec §1.2.6 / D044. Genesis-record-only: atrib-emit refuses to sign a record that carries this field if its chain_root is not the genesis chain_root… |
result_hash | string | Optional §8.3 result_hash commitment. Format: "sha256:" + 64 lowercase hex. Lets emit-signed records carry a commitment to canonical result bytes for downstream consumers. |
result_salt | string | Optional base64url 16-byte salt paired with result_hash per §8.3. |
revises | string | 'sha256:<64-hex>' record_hash this revision supersedes per spec §1.2.9 / D059. REQUIRED when event_type is the revision URI; FORBIDDEN on any other event_type. atrib-emit enforces the require/forbid… |
tool_name | string | Optional §8.2 tool_name disclosure. Verbatim or transformed name (verbatim, opaque, or hashed per §8.2). The 64-character cap applies only to opaque-label form; the hashed form is sha256:<64 lowerca… |
attest
Make a signed statement now: atrib's write verb. Signs an observation by default; declare ref: { kind: "annotates", target } to mark a past record's importance, or ref: { kind: "revises", target, reason } to supersede a prior position. One handler behind the legacy emit / atrib-annotate / atrib-revise names; records are byte-identical in canonical form regardless of which name signed them.
| Parameter | Type | Description |
|---|---|---|
content * | object | Semantic content of the cognitive event. For a plain observation: { what: string, why_noted?: string, topics?: string[] }. For ref.kind='annotates': { importance: 'critical'|'high'|'medium'|'low'|'noi… |
allow_unresolved_informed_by | boolean | Set true only when the caller deliberately wants to sign dangling informed_by refs. |
args_hash | string | Optional §8.3 args_hash commitment override. When omitted, attest signs sha256(JCS(content)) per D099, identical to the legacy write names. |
args_salt | string | Optional base64url 16-byte salt paired with args_hash per §8.3. |
chain_root | string | Caller-managed chain_root of the immediately preceding record in this context_id. Same semantics as the legacy emit tool; requires context_id. |
context_id | string | 32-hex context_id. If omitted, resolution follows the same D078/D083 ladder as the legacy write names; a fresh genesis context_id is the final fallback. |
informed_by | array | Array of 'sha256:<64-hex>' record_hashes that informed this event. Composes freely with any `ref` and keeps D113 omit-unvalidated defaults. Sorted lexicographically before signing per §1.2.5. |
producer | string | Optional sidecar label override routed to `_local.producer`. Defaults to 'atrib-attest'. Sidecar metadata only; the signed record bytes are unchanged (§5.9.3). |
provenance_token | string | 22-char base64url cross-session causal anchor per spec §1.2.6 / D044. Genesis-record-only; refused otherwise. |
ref | object | Optional declared relationship. Absent -> observation. { kind: 'annotates', target } -> annotation. { kind: 'revises', target, reason } -> revision. The event_type vocabulary, required args, and graph… |
result_hash | string | Optional §8.3 result_hash commitment, unchanged from the legacy emit tool. |
result_salt | string | Optional base64url 16-byte salt paired with result_hash per §8.3. |
tool_name | string | Optional §8.2 tool_name disclosure. The 64-character cap applies only to opaque labels; hashed and verbatim forms follow §8.2. |