Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Logging: audit and diagnostics

wisp keeps two logs with different jobs. The audit log is the record of what the agent was asked, what it decided, what it ran, and what came back, written verbatim for the user alone. The diagnostic log is for debugging wisp itself and goes through Apple’s unified logging.

Audit log

Location: ~/.wisp/logs/audit.jsonl (under $WISP_HOME when set). JSON Lines, one event per line, mode 0600, rotated by size to audit.1.jsonl … audit.N.jsonl. Every entry point writes to it: respond, chat, and mcp. It is on by default; config.json controls it:

{ "audit": { "enabled": true, "maxFileBytes": 10485760, "keepFiles": 5 } }

Content is stored verbatim by decision (prompts, replies, commands, tool output). Treat the file as sensitive; it is why it is user-only.

Event envelope

FieldMeaning
schemaEvent schema version, currently 1.
idThe event’s own id: 16 lowercase hex characters, random. A conversation’s store refers to the events that recorded its entries by this id rather than copying their content (context-management.md, “The store and the composer”). Absent from lines written before ids were added.
timeISO 8601 UTC with milliseconds.
versionwisp version that wrote it.
pidProcess id, to separate concurrent wisps sharing a file.
sessionA CLI run, a chat, an MCP server, or an MCP thread (its thread_id).
turn1-based turn within the session, present from the first prompt on.
callPairs a tool.call with its tool.result, or an mcp.request with its mcp.result.
kindOne of the kinds below. A line whose kind this build does not know (written by another release) is shown as it is, by wisp logs and the audit resources, and is not skipped.
detailsKind-specific fields.

Kinds and their details

KindDetailsWritten by
session.startentryPoint (respond, chat, mcp, mcp-thread, notify, scan, redact, watch, draft, classifier, config, approvals, facts, questions, models, threads, update, llamacpp), systemPromptExtension and instructions (the operator’s and the caller’s layers, null when absent; wisp’s own prompt is fixed per version), tools, model, unsafe, autoApprove, resume, and on a resume whose saved store links entries to audit events (context-management.md) carriedFrom (the distinct ids of the sessions those events belong to, sorted; absent otherwise); an MCP thread adds parent (the server session’s id), and commandTimeoutSeconds when respond started it with one (as asked, before the cap; ADR 0063); an MCP thread resumed from the thread store has resume (its thread_id) and carriedFrom (the audit sessions it had before, oldest first; ADR 0066), and so does a chat that --resume opened from the store (resume the id as given, carriedFrom the thread’s sessions from thread.json; one opened from ~/.wisp/transcripts has its store links’ sessions, as before), and records the same fields through Session.conversation; a chat /new records reason (new), tools, and model only, from Agent.reset, and a chat /resume records reason (resume), tools, model, resume (the id as typed), and carriedFrom (the thread’s earlier sessions) under the chat’s session, from ChatLoop. A start that swept the output store adds outputSweep (ADR 0050, 2026-10-12): removed (the audit sessions whose stored outputs it removed, last used more than context.outputDays days ago, oldest first), bytes (what their files took), and deferred (sessions old enough that the bound, 16 a start and 100 ms, left for a later start); absent when it removed nothing and left nothingSession, Agent
session.endreason: closed (explicit, or a triage-<id> session finishing; from close_thread it also deletes the thread from the thread store), evicted (least recently used thread dropped from memory at capacity, and saved), disconnected (a thread still open when its MCP client went, saved for a later server to resume; ADR 0066)CLI, MCP
model.resolvedmodel (the selection), backend (system, private-cloud, or a scheme), asset (what backs a local model, null for Apple’s), capabilities (declared names), capabilitySource (framework, runtime, configuration, undeclared), tools the conversation opened with, contextSize (the window, null when unknown), contextNote (why, when the backend chose it, such as “24,576 of 131,072: 9.2 GiB of a 9.8 GiB budget”, or, for llamacpp and lmstudio, “reported by llama.cpp (/props n_ctx): …”; the asset is then the base URL and the server’s id for the model, never its API key, ADR 0058); recorded when a conversation opens, after the capability checkConversation
model.fallbackmodel (the configured model chat wanted), reason (why it was unavailable, as its backend said), fallback (the model chat started on instead, system); recorded before the fallback’s model.resolved, only when wisp chat (or wisp-tui) starts and its configured model, not one named with --model, is unavailable. respond and MCP never fall back (ADR 0056)Conversation
prompttext; schema (the caller’s JSON Schema) when the reply had to be shaped; think (true, false, or a level) when the turn’s requests send the model a thinking switch: the conversation’s choice (respond’s think), false for a schema reply that made none, else the model’s configured default (<runtime>.models.<name>.think, then <runtime>.think); absent when nothing is sent, as to a model that cannot think (ADR 0053, amended 2026-10-11)Agent
turn.stoppedseconds (from the prompt to the stop) and killed (true when a second Ctrl-C or interrupt killed what the turn still ran rather than letting it end within the grace): the person stopped the turn with Ctrl-C in chat or an interrupt line from a front end (ADR 0049, amended 2026-10-11). The request was cancelled and a run_command it started stopped, whose command.outcome has stopped true. Recorded instead of the turn’s response or error; the turn’s prompt and its calls with their outputs stay in the threadAgent
turn.emptyA response with neither a reply nor a tool call, which the framework ended the turn on (ADR 0083): outcome (replied: wisp rebuilt the turn from its record and its note brought a reply; empty again: the note’s request came back empty too, and the turn ended with wisp’s line; nothing to rebuild: the agent had no tool event trail). The turn’s response follows, with the reply or wisp’s lineAgent
responsetext, condensed, seconds, and usage (input, output, cached, reasoning: the tokens the turn’s requests used, as the runtime reported them) when the runtime reports usage (Ollama, MLX under wisp’s executor); absent otherwiseAgent
model.reasoningA reasoning model’s thinking within one request (ADR 0053), recorded at both edges by the turn’s observer: phase start, with nothing else, as the first chunk of thinking arrives, so a face can say it is thinking; phase end as the reply or a tool call begins (or the stream ends), with text (the thinking verbatim), its size in bytes, tokens (the runtime’s count: for Ollama, one per streamed chunk, as it reports none of its own), and seconds. Recorded only for requests inside a turn; a distillation’s or assessment’s thinking is not. The conversation’s store refers to the end event for the turn’s reasoning entry, which no request carries back to the model; chat shows the text folded under a ∴ thought for … line, /show and /inspect thinking show it whole, and wisp://threads/{thread_id}/reasoning serves itAgent (through ReasoningObserver)
model.requestOne request a model’s server served within a turn, as its executor saw it (Ollama only, from 0.35.2): model, promptTokens (the prompt’s length, cached or not: Ollama counts the tokens its prompt cache held too), outputTokens, and the server’s own times in seconds, loadSeconds, promptSeconds (evaluating the prompt: short when the server’s cache held its front), outputSeconds, and totalSeconds; then how the request compares with the conversation’s last: parts (its tools and options, then each message), sharedParts (leading parts equal to the last request’s; absent for the conversation’s first), and, where the last request’s parts do not all lead this one, changedAt (the first part that differs) and changedPart (tools, that message’s role, or end when this request is shorter). A request outside a turn, a distillation’s, the summary’s, or an assessment’s, is not recorded, so each comparison is between the conversation’s own. Ollama’s cache is not the conversation’s: it holds the prompt the server last evaluated, from any caller, so another thread, another client, or one of wisp’s own side calls on the same model can replace it between two of the conversation’s requests; a slow promptSeconds with no changedAt points to that, not to a change in wisp’s prompt. Recorded so a request that missed the server’s prompt cache can be told from one that hit it, and what changed at the prompt’s front (measurements.md, “The git thread’s slow turns and its approvals”)Agent (through RequestObserver)
tool.calltool, arguments (JSON as the model produced it), task (the conversation’s plan’s task the call does the work of, when one task alone is running as it is made; absent otherwise, ADR 0079, decision 21)AuditedTool
tool.resulttool, output (what the model was given: within the tool-output budget, its first and last lines and a held back: note when the whole was larger, ADR 0050), bytes, seconds, and repeat (which call of the same tool with the same arguments this is in the turn, from 2; absent for the first) ; an MCP respond result’s calls name this event’s id, and wisp://threads/{thread_id}/output/{id} serves its output, or the whole stored output (mcp.md); chat’s fold line names its start for /showAuditedTool
output.keptA tool output larger than the tool-output budget, kept whole in the conversation’s output store, ~/.wisp/output/<session>/<call> (ADR 0050): tool, bytes (in the file), lines, sha256 (of the file), cut (whether the output passed the 16 MiB ceiling, so the file holds its first bytes only), totalBytes (the output’s size in all). Carries the tool call’s call id, which is the output’s id in the store, the one the result’s note names; recorded after tool.call and before tool.result, which holds what the model saw. Never the content: the log does not grow with the outputOutputStore
policy.decisioncommand, workingDirectory, verdict (allowed, denied by pattern, disapproved by the gate), reason, sandbox, network, nested; recorded once, after the directory check, patterns, and approval; origin: "person" for a command the person typed in chat after ! or !!, which the gate does not see (ADR 0049); absent for the model’s; when the model asked to run it outside the sandbox (ADR 0064), or the person typed it after !! (amended 2026-10-14, where “asked of the person” does not apply: typing it was the approval), outsideSandbox: true where the request applied (the line was asked of the person and, allowed, ran without wisp’s sandbox, sandbox false; or denied because commandPolicy.sandbox.allowOutsideSandbox is false), or outsideSandboxIgnored (sandbox-off or nested) where it changed nothing; both absent otherwiseCommandRunner
command.outcomecommand, exitStatus, timedOut, truncated, stdout, stderr, seconds; origin: "person" for a typed command, as for policy.decision; stopped: true for a typed command the person stopped (Ctrl-C in chat, interrupt from a front end; absent otherwise): its group was sent SIGTERM, then SIGKILL two seconds later, and exitStatus is the signal negated, -15 or -9 (ADR 0049, amended 2026-10-09); for a model’s command, the time limit it ran under (ADR 0063): timeoutSource (call for run_command’s timeoutSeconds, thread for respond’s commandTimeoutSeconds, default for the operator’s commandTimeoutSeconds, or a custom tool’s own timeoutSeconds, or system_info’s floor of 30 s), timeoutSeconds (the limit applied, after the cap; absent when there was none, a commandTimeoutSeconds of 0), timeoutClamped: true when a request above commandMaxTimeoutSeconds was cut to it (absent otherwise), and timeoutAsked, the seconds a call’s timeoutSeconds asked for when that was shorter than the thread’s or the default limit, which it kept instead (ADR 0067; absent otherwise); a typed command, which has no limit, records none of the three; for a confined command that failed with Operation not permitted, or whose error output says a directory is not writable (Homebrew checks its directories before it writes, and says so instead; amended 2026-10-14), sandboxRefusal (ADR 0054): refused (a path its error names is outside every writable root, checked as a real path), not-the-sandbox (every path named is inside them), or guess (no path to check: a network connection, a process, a file the error does not name), with the paths checked in sandboxPaths (real paths, at most 8; only those outside the roots for refused). The model’s run_command result carries the same verdict as a short sandbox: line; outsideSandbox: true for a command that ran without wisp’s sandbox because the model asked and the person approved, or the person typed it after !! (ADR 0064, amended 2026-10-14; absent otherwise)CommandRunner
command.typedA command the person typed in chat or wisp-tui after ! (ADR 0049), recorded after its policy.decision and command.outcome: command (the line without the !), workingDirectory, verdict (allowed, or denied with the policy’s reason), output (what it printed, stdout then stderr, as chat shows it) and its size in bytes, seconds; for one that ran, exitStatus, timedOut (always false: a typed command has no timeout since 2026-10-09), truncated, stopped: true when the person stopped it (absent otherwise), and sandboxRefused (the sandbox refused it or may have: command.outcome’s check found refused or guess), with that check’s sandboxRefusal and sandboxPaths, and stored, the output store’s id for the whole output when part of what it printed was held back (ADR 0050, absent otherwise); for one allowed that could not start (a missing directory), failure; outsideSandbox: true for a line typed after !! (ADR 0064, amended 2026-10-14), whether it ran outside or was refused or changed nothing (policy.decision and command.outcome say which; absent otherwise), and the summary line marks it !!. No classifier verdict or approval comes before it: typing the command is the approval. The conversation’s store refers to this event for the entry that tells the model of the command, chat’s fold line names its start for /show (which shows the stored whole), and memory recalls the output from itAgent
secrets.scansource (command and workingDirectory, path, or stdin), bytes, diff, thorough, findings (a count), kinds (count per kind), failedChunks (chunks the model failed on twice, checked by rule only), classifier (the personal-data classifier’s personal@<version>, why it was unavailable, or null without personal data); never a value or a previewWispServer, wisp scan
redactionsource, bytes, bytesOut, truncated, thorough, replaced (occurrences per kind), failedChunks; never a valueWispServer, wisp redact
model.routedtask, inputBytes, model, reason (the measurement that vouched for the model, or why none did, and any fallback; for a task default, whether it is wisp’s measured default or routing.tasks); one per routed callWispServer, wisp draft, wisp scan, wisp redact
model.pullmodel (the selection it becomes, mlx:<name>), repository, directory (the link’s path in the MLX models directory), cache (the Hugging Face cache’s snapshot directory it links to), files and bytes (what the repository’s listing gave for the wanted files), reused (files the cache already held, checked by size and, for weights, SHA-256), seeded (files copied into the cache from a real directory at the link’s path, checked the same way, instead of fetched), fetchedFiles and fetched (files and bytes this run downloaded; a resumed file counts only the bytes fetched after its part), link (what happened at the link’s path: created, unchanged, replaced link, replaced directory when the person agreed to move a real directory to the Trash, kept directory when they did not; null when the pull stopped before linking), outcome (fetched, linked when nothing needed downloading, declined when the person did not answer yes to the download or refused the publisher, or did not approve the model’s request, failed, cancelled when Ctrl-C stopped it in chat or a background pull was cancelled, what arrived kept), reason (why it failed, was cancelled, or was not approved), seconds (from the answer, or from the plan when nothing was asked, to the end) (ADR 0052), source (the face that asked: cli, chat, finder for Wisp.app’s window, or tool for the model’s models tool), approval (for the model’s request, the id of the approval that allowed it, as approval.decided’s approvalID; null otherwise) (ADR 0059). Enabling a cached MLX model that is not linked (wisp models enable, /models enable, the wisp-tui picker, the models tool) records one too, with outcome linked, reused and files the snapshot’s files, and nothing fetched (ADR 0056). A pull the model asked for is recorded in its conversation’s log when it ends, in the backgroundwisp models pull and wisp models enable, entry point models; /models in chat; the models tool, in the asking conversation
model.publisherWho published a repository wisp models pull was asked for, and whether it went on (ADR 0052, amended 2026-10-09): repository, publisher (the organisation), decision (trusted when mlx.trustedPublishers holds it or it is mlx-community; flag for --trust-publisher; once and trust for the person’s answers, trust also adding it to the setting, recorded just before as a config.change; refused when the person answered anything else or nothing, or could not be asked), asked (whether the question was put), licence (what the Hub’s model information gave, null when it gave none or nothing was listed), bytes (what the pull would download; null when refused before the listing), reason (no terminal for a refusal without asking; null otherwise), source (cli, chat, finder, or tool), approval (for the model’s request, the approval’s id; its decision is trusted, or once for a publisher not trusted, since the person approved that pull alone; null otherwise; ADR 0059). One per pull once the repository is listed (for the model’s, once approved), before its model.pull, and one for a publisher refused without a terminal, before any request, which has no model.pullwisp models pull, entry point models; /models pull in chat; the models tool
model.uninstallmodel (as the plan spells it), steps (what goes, as the plan says it), bytes (what the steps free), purgeCache, settings (the config.json entries cleared), default (whether it was the default model), outcome (removed; declined when the name was not typed, or no terminal and no --yes; failed, the steps before the failure done), reason (why it was declined or failed; null otherwise), source (cli, chat, or finder) (ADR 0075). Each setting cleared follows as a config.change; models.disabled’s comes after the otherswisp models uninstall, entry point models; /models uninstall in chat
model.addA GGUF file linked, or refused, for wisp’s own llama.cpp server (ADR 0082, decision 2): model (llamacpp:<name>; null when refused), path (as typed), file (the real path the link points to; null when refused), link (the link’s path in wisp’s llama.cpp models folder; null when refused), bytes (the file’s size; null when refused), outcome (added; unchanged when the same file was linked already; refused, when llamacpp.server is not wisp, the path is not a readable GGUF file whose name makes a model name, or the name links another file), reason (why it was refused; null otherwise), source (cli, chat, or finder). Removing the link is a model.uninstallwisp models add, entry point models; /models add in chat
model.forgetA model wisp remembered that no runtime served was forgotten, so it is no longer listed (ADR 0092, decision 4): model (as the listing spells it), source (cli, chat, or finder). Nothing on disk or in config.json changes
llamacpp.server.approvewisp config set or unset of llamacpp.serverPath, the llama-server wisp’s own server runs (ADR 0082, decision 5): path (as given, made absolute; on unset, the path that was approved, null when none), resolved (the real file), sha256 (its digest; both null when refused or revoked), previousPath, previousResolved, previousSha256 (the approval it replaced or removed; null when none), outcome (approved; unchanged when the same file was approved already; revoked on unset; refused when the path is not an existing regular Mach-O file you can execute), reason (why it was refused; null otherwise), source (cli). An approval or revocation is followed by the setting’s config.changewisp config, entry point config
llamacpp.server.refusedThe check before wisp’s own llama.cpp server starts refused the approved llama-server (ADR 0082, decision 5): path (llamacpp.serverPath; null when unset), refusal (not set, not approved, approved for another path, moved, missing, unreadable, changed), resolved (where the path resolves now, for moved, missing, changed; null otherwise), sha256 (the file’s digest now, for changed), approvedSha256 (the recorded digest; null when there is no approval), reason (the refusal as said, with the command that approves again), source. wisp doctor checks without recordingThe start of wisp’s own server
llamacpp.server.startwisp llamacpp serve, which wisp’s own llama.cpp server’s LaunchAgent runs, started the server or would not (ADR 0082, decisions 1, 4, and 6): outcome (started; refused when llamacpp.server is not wisp, the approved binary’s check refused it, which a llamacpp.server.refused records just before, or the key file or models folder could not be made), reason (the refusal as said; null when started), executable (the approved real file run; null when refused), sha256 (its digest as checked), arguments (what llama-server is started with: they name the key file, never the key), port. Written before the process becomes llama-server, which writes no audit events of its ownwisp llamacpp serve, entry point llamacpp
llamacpp.agentwisp registered, unregistered, or restarted the LaunchAgent of its own llama.cpp server, or could not (ADR 0082, decision 4): action (register, unregister, restart, and launch services for registering Wisp.app with Launch Services again), means (login item for Wisp.app’s, through SMAppService; launch agent for a file in ~/Library/LaunchAgents; manual when wisp registers none here, under WISP_HOME or WISP_LLAMACPP_AGENT=off; refused when this wisp cannot, as from the disk image), trigger (llamacpp.server, the setting or approval that changed, such as llamacpp.serverPort or llamacpp.serverPath, the model added or removed, llamacpp:<name>, uninstall, update for the steps wisp update takes once it has replaced the app, or repair for wisp llamacpp agent repair), outcome (done, failed, skipped when no agent is registered here), reason (why it failed or was skipped; null otherwise), source (cli, chat, or finder)wisp config set|unset, wisp models add|uninstall, /models add|uninstall in chat, wisp uninstall, wisp update, wisp llamacpp agent repair
model.verifiedmodel, trigger (enable when enabling a model with no declared capabilities ran it, check for wisp models check and /models check), outcome (refused: the reply failed, nothing was recorded, and enable kept or made the model disabled; text only: the reply passed and tool calling did not, so it is usable only with tools off; usable), checks (one object per question asked: check (reply, toolCalling, guidedGeneration), passed, detail (the reply, the call, or why it failed, such as no call to record_word arrived or no answer within 60 s), seconds), recorded (the capabilities written to mlx.models.<name>.capabilities; null when the reply failed and nothing was recorded), kept (capabilities declared by hand whose check failed, kept), removed (capabilities an earlier check recorded that this one failed, taken out), unchecked (reasoning, vision), seconds (all the questions, the weights’ loading included), source (cli, chat, finder, or tool), approval (for the model’s request, the approval’s id; null otherwise; ADR 0059). Followed by a config.change when something was recorded, and, from enable, one of models.disabled when the outcome turned the model on or kept it off (ADR 0056, refined 2026-10-04)wisp models enable and check, entry point models; /models enable|check and the wisp-tui picker in chat
watch.runcommand, run (from 1), trigger (start, change, interval), exitStatus, timedOut, state (pass, fail), previous, changed, seconds, findings (a count, or null when not triaged), triageError, notified; one per run of wisp watchwisp watch
notificationtitle, body (both as bounded for display), source (model, user, watch, approval, inquiry), outcome (posted, refused), route when posted (helper, host, terminal, app, osascript; ADR 0044, ADR 0070), reason when refused, and skipped when an earlier route was passed over or failed: one short route: reason each, such as terminal: Terminal.app has no notification sequence; one per request from the notify tool, wisp notify, wisp watch, or a command waiting for approval under wisp mcp (approval, ADR 0046), or the model’s question waiting there (inquiry, ADR 0062). A request refused before any route (off, empty, over the limit) has neither route nor skippedNotifier
host.helloeffects (as declared, such as approve, notify), client and version when sent; one per hello line from a wisp chat --json front endwisp chat --json
file.writepath, mode (write, append, replace), created, bytesBefore, bytesAfter; recorded after an edit_file edit lands, the content being in the tool.call argumentsEditFileTool
context.condensationturnsBefore, turnsAfter (the model’s turns, not counting commands the person typed after !), contextSize, tokenCount, savedBefore and savedAfter (the Markdown files holding the transcript before and after, when audit.enabled), reason (overflow: the model refused the prompt and the retry follows; budget: the transcript’s size (the last request’s reported usage, or the model’s own count when it reports none) plus the new prompt, and under the default policy the headroom for the next turn, would pass contextBudget of a known window, so the transcript was condensed first); the store marks the entries it dropped with this event’s id. Condensing to a target (the default policy; context-management.md, “Condensing”) adds, all in tokens: target (the goal it condensed to: the target share of the window, capped at the budget less 0.2, or less when the prompt and the headroom need more room under the budget), fillBefore and fillAfter (the context before and after, by the model’s count or an estimate anchored on the runtime’s figure), headroom (the average turn kept free), steps (in order, each one of referenced N, distilled N turns (only when a distillation ran and succeeded), dropped N turns, squeezed earlier; empty when nothing could change, and then a failed turn’s receipt does not say condensed), and floor: true only when even the last turn left the context above target. continued (either policy, reason overflow only) is the number of tool calls the turn had made, which the retry is continued from instead of sending the prompt again (ADR 0086); absent when the turn had made none. That event is recorded after the steps, so a condensation’s context.distillation and context.summary come before it; one at the floor that changed nothing, recorded so the note to the person has its record, has empty steps and is not counted as a condensationAgent
context.cutentry (the reply’s id in the conversation’s store), output (the store id of the tool output it reproduced), tool, response and result (the ids of the response and tool.result events that recorded the reply and the output, when linked), bytes (UTF-8 bytes the cut removes from later requests, net of its marker), tokens (bytes at four bytes a token, an estimate), words, coverage (the fraction of the stretch’s lines found in the output: always 1, since only exact copies are cut); one per stretch of presentational text, recorded after the turn. The reply shown and stored is unchanged; later requests carry a marker in its place (context-management.md, “Output handling”)Agent
context.referenceentry (the tool output’s id in the conversation’s store), tool, result (the id of the tool.result event that recorded the output, when linked), bytes (the output’s UTF-8 bytes), referenceBytes (the reference’s), tokens (bytes less referenceBytes, at four bytes a token, an estimate of what each later request saves); one per output, recorded at the start of the turn after the output’s, when requests begin to carry a reference in its place. The output shown and stored is unchanged (context-management.md, “Output handling”)Agent
context.distillationturns (the numbers of the turns distilled), entries (their prompts and replies), bytes (the distiller’s prompt), facts (the ids of the facts it recorded), seconds, model, failure (why it failed, when it did; the turns are dropped as before and the turn goes on); one per pass of a condensation of a conversation that keeps facts, recorded after its context.condensation under phase 2’s fixed turns and before it when condensing to a target. The call runs in a session of its own and never enters the conversation (context-management.md, “Facts”). think is false when the model has a thinking switch: the call asks a model that can think not to (ADR 0053, amended 2026-10-11); absent otherwiseAgent
context.summaryversion (the running summary’s new version, from 1; absent when none was written), turns (the numbers of the turns it adds), entries (their prompts, tool calls, and replies), bytes (the prompt), covered (how many turns the new version covers, the earlier versions’ included), summaryBytes (its size), seconds, model, combined (whether the call also distilled the facts; its context.distillation then has the same time), failure (why no version was written: the call failed, or the answer was empty; the summary stays as it was, and the turns wait for the next batch); one per condensation that brings the dropped turns not yet summarised to a batch (three by default), recorded after its context.distillation. The call runs in a session of its own and never enters the conversation (context-management.md, “The running summary”). think, as for context.distillationAgent
context.memoryrequest (the memory call’s argument as the model wrote it), action (recall, summarise, condense, note, or task). A recall adds target (entry, turn, task, summary, fact, or output for a stored output, with its id as output), found, entries (the store ids of the entries whose content it returned), facts (the fact ids), summaries (the running summary’s versions), events (the ids of the audit events the content was read from), from (audit when every entry’s content came from the audit log, store when from the conversation’s store because the audit did not hold it, audit+store for a mix; absent when it returned no entry), filter (matching, lines, head, tail; absent for none), offset (the page’s first line), bytes (the result’s). A summarise adds target, entries or output, found, summary (notable, overview), bytes; a condense adds the same, chunks (the chunks the model read), and failure (shape for no question, target, off for no model attached, or how many chunks failed). A note adds noted, and when kept subject, name (normalised), value, and class (permanent makes it a proposal); when refused, failure (shape, subject, name, off, full). A task adds noted, and value (the task and its objective as kept) or failure (shape, off, full, or pinned when the person or a caller set the task). One per memory call, after its tool.call and before its tool.result, which holds the text itself; it names what was restored or noted, which the text alone does not. A note kept is recorded as fact.recorded with method noted when its turn ends (tools/memory.md)MemoryTool
context.assessmentmethod (rules when the rules settled the request, model when one call to the model did, fallback when that call failed and every allowed tool was registered with the task unchanged, retry when the model called a tool the request had not registered and the request was retried with every allowed tool), tools (the tools chosen, in the conversation’s order), ruleTools (those the rules gave on their own; for a retry, the selection that missed), registered (the tools the request’s session registers, or all), taskChanged, task (the task fact recorded, when it changed), facts (the ids of the facts repeated next to the request), seconds, bytes (the model call’s prompt; 0 with no call), model (when a call was made), intent (the person’s intent in one line, as the model put it; audited, never sent), failure, continued (a retry only: the tool calls the turn had made, which the retry is continued from instead of sending the prompt again, ADR 0086; absent when it had made none). One per user turn when assessment.enabled is true, after prompt and any context.reference, before the turn’s tool calls, plus one per retry; never in the model’s context (context-management.md, “The assessment per request”). think, as for context.distillation, when the model was askedAgent
response.verificationThe verification pass over a reply (verification.md, ADR 0060): method (readers, or model when the model step spoke), status (verified, or unsupported when a claim was), claims (each reader, the reader’s name or model, claim as quoted from the reply, and reason), calls (how many calls of the turn were checked against), seconds, and for the model step bytes (its prompt), model, think (what its request sent), and failure. One per reply that made a claim to check, after response; none for a reply with no result language, under verification.mode off, or in a conversation without a tool-event trailAgent
fact.recordedid (c… for the conversation’s, s… the session’s, p… the shared store’s), scope, subject, name, source (person, caller, tool, model), version, value, class (permanent, dynamic, ephemeral), method (stated, extracted, distilled, noted for the model’s memory note or task, inferred for a task the assessment inferred), detail (the tool, or who spoke), entries (the store ids it came from), sources (the audit event ids of those entries), supersedes (the fact it replaced, when it is a new version)Agent
fact.supersededid, subject, name, source, by (the fact that replaced it: a newer version from the same source, a fact from another source that holds the same value, or its copy in another scope after a move)Agent
fact.deletedid, subject, name, source, value, by (person); the store keeps the fact, marked deleted, and later requests leave it outAgent (/fact delete)
fact.scope.changedfact (the id it was named by: c3, or git/c3 for another conversation’s proposal), from and to (permanent, thread, session), by (person in chat, caller over MCP, person again when the person answered a caller’s request to keep it), now (its id after the move; the same for a proposal moved to thread, which changes in place), subject, name, source, value, proposed (whether it was a proposed permanent fact), request (the pending request the person answered, when there was one: kept, or dropped and so moved to thread; ADR 0048); recorded on the log of the conversation that moved it, and on the proposing conversation’s when it moved another’s, with a fact.superseded for the old copyAgent (/fact ID SCOPE, set_fact_scope)
fact.conflict.raised, fact.conflict.resolvedsubject, name, winner (the head that wins by precedence), others (the heads that disagree with it; empty when resolved); recorded when the current heads of different sources about one subject and name begin or stop disagreeingAgent
thread.sweptthread (its id), owner, lastUsed, turns, sessions (the audit sessions it had, whose stored outputs went with it unless another thread still names the session), outputBytes (what the outputs removed took): a saved thread deleted from the thread store, ~/.wisp/threads/, unused for threads.keepDays days, at a later session’s start, after that session’s session.start, one event per thread (ADR 0066). At most 16 a start within 100 ms; a thread a process holds is never sweptSession
thread.deletedthread, owner (null when its thread.json could not be read), turns, sessions (the audit sessions it had), outputSessions (those whose stored outputs went with it: the ones no other thread names), outputBytes: the person deleted a saved thread with wisp threads delete, recorded under that command’s own session (entry point threads; ADR 0066, phase 3)wisp threads
update.checksource (cli for wisp update and wisp update --releases, doctor, chat, finder for Wisp.app’s window, ADR 0091), current (the running version), latest (the version GitHub named; null when the check failed), newer (whether it is newer), failure (why the check failed; null otherwise): wisp asked GitHub for its latest release, because the person ran wisp update or updates.check is on and a check was due (ADR 0074). Recorded under the chat’s session, or a session of its own (entry point update)wisp update, wisp doctor, wisp chat, Wisp.app’s window
update.installsource (cli or finder), app (the Wisp.app updated), from and to (the versions), outcome (replaced; blocked when macOS refused the change and the image was opened for the person; failed when a download or check stopped it and nothing changed), reason (why it was blocked or failed; null otherwise), image (the downloaded disk image; null when the download failed)wisp update, Wisp.app’s window, entry point update
thread.handedthread, from (its owner before), to (its owner now): the person gave a saved thread to another client with wisp threads hand, so that client’s agent may resume it; recorded under that command’s own session. Not recorded when the thread was the client’s alreadywisp threads
mcp.requesttool, argumentsWispServer
mcp.resulttool, isError, text, secondsWispServer
errormessage, contextanywhere
classifier.verdictcommand (one simple command), pattern, line (when the command is part of a longer line), level, reasons, sources, seconds, metadata (when a classifier adds facts: coreml.model, coreml.version, coreml.contract, coreml.label, coreml.confidence, and coreml.fallback with the reason when the verdict is a fallback; classifier.failure, with the reason, when a model classifier could not judge and fell back to moderate; classifier.cached: true when the session reused an earlier verdict for the same line and directory; rules.knownSafe: true when the rules know the command to be read-only and no model was asked; think: "false" when a model classifier’s model has a thinking switch, which a verdict asks it not to use, ADR 0053 amended 2026-10-11)ApprovalGate
classifier.trainpath (the model written), examplesSource (bundled or the file), examples, perLevel (examples per level), trainingAccuracy (the fraction of its own examples it labels back, a sanity check, not a measurement), secondswisp classifier train
config.changepath (the setting), old and new (its values, null when unset), source (chat, cli, finder for Wisp.app’s window, ADR 0091, or tool for a change the model’s models tool made once approved), approval (for the model’s request, the approval’s id, as approval.decided’s approvalID; null otherwise; ADR 0059)/config set and unset, wisp config set and unset; models.disabled also from /models enable|disable, the wisp-tui picker (chat), and wisp models enable|disable (cli, entry point models); mlx.models.<name> (the whole declaration, capabilities and verified) after a capability check records what passed, from the same places and wisp models check and /models check; mlx.trustedPublishers when the person answers t to wisp models pull’s question about a publisher (cli, entry point models), or trust in chat’s dialog or with /models trust (chat); models.disabled and mlx.models.<name> from the models tool too (tool, in the asking conversation’s log)
approval.requestedcommand, pattern, line, level; outsideSandbox: true for a line the model asked to run outside the sandbox, asked whatever its level (ADR 0064)ApprovalGate
approval.pendingUnder wisp mcp, a command waiting for approval filed for another face to answer (ADR 0046): request (the id wisp approvals approve takes), command, pattern, line, directory, level, thread, client, expiresAt (absent when approval.timeoutSeconds is 0), alongside (elicitation when the client’s dialog asks at the same time), bannerDelaySeconds (with alongside, when approval.bannerDelaySeconds is above 0: the notification waits that long for the dialog’s answer and is never posted if the request settles first; absent when it is posted at once), outcome (filed, or failed with reason, when the channel could not be used), outsideSandbox: true for a line the model asked to run outside the sandbox (ADR 0064). A fact a caller asked to keep as a permanent fact (ADR 0048) is filed the same way, with kind (fact), fact (its id), subject, name, value, and source in place of command, pattern, line, directory, and level, and no alongsideOutOfBandApprover, FactKeeper
approval.answeredThe person answered a waiting request in this process, recorded under that process’s own session (wisp approvals, entry point approvals; the wisp chat --json session behind wisp-tui; or a plain wisp chat, answering with `/approvals approvedenyor/facts keep
approval.settledHow a filed request ended, on the asking thread: request, command, thread, outcome (answered with via: elicitation, cli, tui, chat, and decision; timed-out; abandoned when the caller cancelled the call; failed with reason when no way was left to ask; stale when a sweep removed it after its server stopped or its wait expired, recorded by the sweeping process), seconds waited, banner (posted when the request’s notification was posted, skipped when the request settled within bannerDelaySeconds, so none was ever posted; the notification event itself is recorded when it is posted, after approval.pending, or not at all). approval.decided follows, as for every face. For a fact to keep: kind (fact), fact, subject, name, value, source in place of command; decision keep (with kept, the permanent fact’s id) or drop; no timed-out, since a fact request has no time limit; handed-over when the server stopped first and left the request filed; failed with reason when the answer could not be applied (the fact changed after the person was asked); no approval.decided follows, and a keep is also a fact.scope.changed. An answer that comes after the thread closed is recorded on the server’s own log, and one applied by the answering process after the server stopped (reason saying so) on that process’s log. withdrawn appears only in logs from 0.22.0 and earlierOutOfBandApprover, FactKeeper, wisp approvals, wisp facts
inquiry.requestedThe model asked the person a question through its ask tool (ADR 0062): inquiry (the question’s id, which wisp questions answer takes), question, options (empty for free text), ways (how the face asks: terminal, json, elicitation, pending; empty when nobody can be asked), timeoutSeconds (the deadline, absent when it waits until answered), call (the ask call’s id), threadAskTool
inquiry.parkedUnder wisp mcp, the dialog’s hold lapsed and the turn ended with the question still waiting (D15): inquiry, question, waitedSeconds (how long the call held the dialog). A parked question is not settled until the person answers, declines, or it is withdrawnAskTool
inquiry.answeredThe person answered a question in this process, recorded under that process’s own session (wisp questions, entry point questions; the wisp chat --json session behind wisp-tui; or a plain wisp chat, answering with `/questions answerdecline): inquiry, via (cli, tui, chat), delivery (takenby the server,too-latewhen the thread closed first,waitingwhen not yet read,refusedwithreasonwhen the answer was not written: unknown, stale, altered, already answered, not an option). The waiting server records one withdelivery refused` when an answer file was not bound to its question
inquiry.settledHow a question ended, on the asking thread: inquiry, question, thread, outcome (answered, none, declined, unanswered (only past a deadline set), stopped (Ctrl-C in chat), withdrawn (the thread closed, the server stopped, or a sweep removed it), abandoned (the call was cancelled), refused (a secret, a limit, or nobody to ask, with reason), failed with reason), via (where the person answered: terminal, json, elicitation, cli, tui, chat), delivered (tool: the answer was the tool’s result; notice: it reached the thread’s next turn after a park), answer (verbatim, with the markers of masked values; none of these for none), redacted (the kinds of credential-shaped values masked), seconds waited. The ask call’s own tool.call and tool.result come as for every tool, the result holding the answer the model gotAskTool, InquiryBox, wisp questions (a sweep)
plan.addThe model added a task to the conversation’s plan with its plan tool (ADR 0081): task (its id, t1.2), tree (t1), parent (null at the top of its tree), goal, dependsOn; by, thread, and queued as for plan.update, when the person or a caller added itPlanTool; ChatLoop, wisp threads plan, and change_plan for changes from outside the model
plan.dependThe model made a task wait for others: task, dependsOn (the tasks named in the call)PlanTool
plan.updateThe model, the person, an MCP caller, or wisp set a task’s status: task, status (pending, running, waiting, done, failed, skipped), note (the task’s note after the change, or null), calls (when the update settled the task: the audit call ids of the turn’s calls made while no single task was running, now linked to it; absent when none, ADR 0079 decision 21), by (person when the person made the change, with /plan or wisp threads plan, caller when an MCP caller did, with change_plan, wisp when wisp set a task waiting on a question or running again when it ended, ADR 0079 decision 24; absent for the model’s, decision 22), question (with by wisp, the question’s id), thread (the thread a terminal’s change was made to; absent otherwise), queued (the id of the queued change this is, made by the thread’s holder; absent otherwise, decision 23)PlanTool; ChatLoop, wisp threads plan, and change_plan for changes from outside the model
plan.queuedA change the person made from a terminal to the plan of a thread a process holds (ADR 0079, decision 23): thread, change (its words, as /plan takes them), queued (its id in ~/.wisp/pending/plan/<thread>/), outcome (filed, by wisp threads plan, with holder, pid N, owner, or null; refused, by the holder as the thread’s next turn began, when the change no longer applied, with reason). A change made is recorded by the holder as plan.update or plan.add with queuedwisp threads plan; the holder (Agent)
approval.decidedcommand, pattern, line (when the command is one part of a longer line), decision (approved with scope, denied, timed-out, cached-turn for a once-approval reused within the same turn, cached for session, cached-project/cached-always for persisted, covered-line for a part at or above the threshold that was not asked because the whole line, which the rules rated above every part, was approved or covered just before it; its own line names that line), reason, approvalID, expiresAt (for a project approval written to the store; absent for always, which never expires), downgradedFrom when a dangerous command’s persisted scope was reduced to session (or, for a run outside the sandbox or a model pull, the scope asked for when it was taken as once), persistError when the store could not be written, outsideSandbox: true for a line the model asked to run outside the sandbox, which is approved once or not at all (ADR 0064)ApprovalGate

Every tool the model can call is wrapped by AuditedTool, so a new tool is audited without doing anything. Each row’s fields are spelled once, in AuditEvent.Details (one constructor per kind) and AuditEvent.fields(for:); a test checks every constructor against that set, so this table and the code cannot drift silently. A new field goes in all three places.

Reading it

wisp logs prints one-line summaries, newest last, across rotated files:

wisp logs                                   # everything
wisp logs --session 5fd0cf21                # one session
wisp logs --kind tool.call --kind tool.result --tool run_command
wisp logs --last 20 --json | jq .           # raw events

A session’s events group on session; a tool call and its result share call. Saved threads in ~/.wisp/threads (and chats saved before 0.27.0 in ~/.wisp/transcripts) hold the same conversation in the framework’s own format.

In code

AuditLog records events for one session and stamps turn numbers from the conversation’s TurnClock; AuditSink is where they go (FileAuditSink, MemoryAuditSink for tests, NullAuditSink when disabled). Sibling logs for other sessions share a sink via log(forSession:). Events are AuditEvent values; add a Kind and document it here. Tests assert on MemoryAuditSink.events.

Diagnostic log

Every component logs through Diagnostics.<category> (agent, tools, policy, mcp, chat, audit) to unified logging under subsystem com.pidster.wisp. The MCP SDK’s swift-log output is bridged into the mcp category.

log stream --predicate 'subsystem == "com.pidster.wisp"' --level debug
WISP_LOG=debug wisp "…"      # also mirror to stderr: debug, info, or error

Messages are marked public so they are not redacted. Nothing ever goes to stdout, which stays the MCP protocol channel.