trace
v2.0.1Legacy home of atrib's trace read primitive.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
trace trace informed_by chain backward
Walk a record's informed_by chain backward to surface the reasoning chain that led to it. Reads from the local signed-record mirror (~/.atrib/records/*.jsonl). Returns the records visited, parent links so the caller can reconstruct the tree, and dangling hashes (records referenced via informed_by but not present in the local mirror). Sibling tool `trace_forward` walks the opposite direction (records that cited THIS one via their informed_by). Legacy alias: new callers should prefer the `recall` tool with shape='walk', direction='backward'.
| Parameter | Type | Description |
|---|---|---|
record_hash * | string | The 'sha256:<64-hex>' record_hash to start from. Walks backward via informed_by edges from this record. |
compact | boolean | When true (the default), per-record output omits signature/content_id/spec_version/chain_root to keep the response small. Set false for full record bytes (useful for re-verification). |
context_id | string | Optional 32-hex context_id scope. When set, edges crossing into a different context_id surface as dangling rather than expanding the walk. Defaults to process.env.ATRIB_CONTEXT_ID when valid; omit at… |
depth | integer | Maximum hop count from the starting record. Use 0 to return only the start record. Defaults to 3. Bounded at 10 to keep responses tractable; deeper chains should be walked in pieces by re-rooting at a… |
include_content | boolean | When true and compact=true, include the D062 local mirror body as local_content and local_producer on each visited record. Defaults false so trace stays cheap for ordinary causal walks. |
max_nodes | integer | Hard cap on total visited records. Defaults to 200. Prevents pathological fan-out (a record with hundreds of informed_by entries) from exploding the response. |
trace_forward trace informed_by chain forward
Walk forward from a record_hash, surfacing the records that cited it via their informed_by chain. The dual of `trace` (backward). Answers "I made decision X, what did I do because of it?" Reads from the local signed-record mirror (~/.atrib/records/*.jsonl). Returns the records visited, parent links (which upstream record at the prior level cited this one), and dangling hashes (rare; only if the reverse index references a record missing from the mirror). Legacy alias: new callers should prefer `recall` with shape='walk', direction='forward'.
| Parameter | Type | Description |
|---|---|---|
record_hash * | string | The 'sha256:<64-hex>' record_hash to start from. Walks backward via informed_by edges from this record. |
compact | boolean | When true (the default), per-record output omits signature/content_id/spec_version/chain_root to keep the response small. Set false for full record bytes (useful for re-verification). |
context_id | string | Optional 32-hex context_id scope. When set, edges crossing into a different context_id surface as dangling rather than expanding the walk. Defaults to process.env.ATRIB_CONTEXT_ID when valid; omit at… |
depth | integer | Maximum hop count from the starting record. Use 0 to return only the start record. Defaults to 3. Bounded at 10 to keep responses tractable; deeper chains should be walked in pieces by re-rooting at a… |
include_content | boolean | When true and compact=true, include the D062 local mirror body as local_content and local_producer on each visited record. Defaults false so trace stays cheap for ordinary causal walks. |
max_nodes | integer | Hard cap on total visited records. Defaults to 200. Prevents pathological fan-out (a record with hundreds of informed_by entries) from exploding the response. |
recall
Look up the agent's signed past: atrib's read verb. One read-only tool absorbs the legacy recall_* tools (shape argument), trace / trace_forward (shape=walk with a direction), and atrib-verify (the verification parameter). Results are JSON-identical to the legacy tool they map onto; every compact result keeps record_hash so calls can be chained. Signs nothing.