Skip to main content

Evidence And Sessions

Inferoa records work as events attached to a session. This lets a later turn, resumed TUI, or acceptance audit reconstruct what happened without trusting the final message alone.

Session Evidence

The event log can include:

  • model runs and token usage;
  • tool calls and summaries;
  • background process records;
  • prompt epochs and hashes;
  • endpoint evidence;
  • managed resources;
  • goal and plan state;
  • daemon job state.

Managed Resources

Large or binary outputs should be stored as resources, not pasted into the prompt. This is especially important for generated images, videos, audio, and long reports.

Useful Commands

/sessions all Show active and archived sessions
/sessions resume Attach to a previous session
/tools last Show the latest tool trace
/tokenmaxxing Show token, cache, RTK, and routing savings
/context Show context and compression state

Use these commands to inspect the session before writing a final report or debugging a failed workflow. The full registry, including aliases, is in Slash commands.

Event Types

Each event in the session log has a type, timestamp, and payload. The main event types are:

TypeWhat It Records
model_runModel id, token usage, endpoint, request id, cache fields
tool_callTool name, arguments summary, result summary, duration
processBackground process id, command, exit status
prompt_epochEpoch hash, section hashes, tool schema hash
resourceManaged resource id, type, size, export path
goalGoal objective, step status changes, reflection decisions
planPlan objective, draft body, approval state
jobJob id, state transitions (queued, running, detached, etc.)

Session Storage

Sessions are stored under the state directory (default ~/.inferoa/). Each session has a unique id tied to the workspace root, so sessions from different repositories do not collide. The session database stores the event log, prompt epochs, and managed resource references.

Troubleshooting

  • Session appears empty after resume. Check that you are resuming the correct session with /sessions resume. Sessions are scoped to the workspace root; opening Inferoa from a different directory creates a new session.
  • Tool traces are missing. Long successful tool runs may be folded by /tools compact. Use /tools expand to open the latest folded trace.
  • Cache fields are not shown. Not every provider reports cache details. Inferoa omits cache hit fields rather than fabricating a number. Switch to a provider that exposes usage detail if cache evidence is required for acceptance.
  • Managed resources are not found. Resources are stored relative to the session's state directory. If the state directory was moved or cleaned, resource references in the event log may point to missing files.