Structs§
- Approval
Record - Approvals
Repo - Checkpoint
Record - Checkpoints
Repo - Compaction
Record - Compactions
Repo - Message
Record - Messages
Repo - NewApproval
- NewCheckpoint
- NewCompaction
- NewMessage
- NewOutcome
- NewPlugin
Install - NewProcess
- NewProvider
Probe - NewSession
- NewTask
- NewTool
Run - Outcome
Record - A verifiable outcome / reward signal attached to a trajectory (a task, and
optionally a specific tool run). The other durable tables record what
happened (messages, tool_runs, checkpoints=diffs);
outcomesrecords how good it was and who says so (source) — the enrichment that turns logs into a training set for the self-improving loop. - Outcomes
Repo - Pairing
Token Record - Pairing
Tokens Repo - Plugin
Install Record - Plugins
Repo - Process
Record - Processes
Repo - Provider
Probe Record - Provider
Probes Repo - Runtime
Store - SQLite-backed durable runtime state.
- Session
Record - Sessions
Repo - Task
Record - Task
Timeline Event - Tasks
Repo - Tool
RunRecord - Tool
Runs Repo
Enums§
- Process
Status - Task
Priority - Task
Status - Durable task state. A task is the daemon-level work unit; a chat transcript is just one artifact linked to it.
Constants§
- OUTCOME_
LABEL_ ACCEPTED - OUTCOME_
LABEL_ FAILURE - OUTCOME_
LABEL_ PARTIAL - OUTCOME_
LABEL_ REJECTED - OUTCOME_
LABEL_ SUCCESS - Graded result of an outcome. Stored as free-form
TEXT(liketool_runs.status) so the taxonomy can grow without a migration; these constants are the canonical spellings so callers don’t drift. - OUTCOME_
LABEL_ UNKNOWN - OUTCOME_
SOURCE_ MODEL - OUTCOME_
SOURCE_ SYSTEM - OUTCOME_
SOURCE_ USER - OUTCOME_
SOURCE_ VERIFIER - Provenance of an
OutcomeRecord— the axis that separates a genuine external training signal from model self-judgement.verifier(compiler, tests, runtime) anduser(human edit/accept/reject) are the signals that can actually improve a model;modelis self-judged and must never be trained on unfiltered;systemis bookkeeping (e.g. a task’s terminal status).
Functions§
- data_
dir - try_
exclusive_ lock - Acquire an exclusive, auto-released advisory lock on
path— a process singleton guard for the daemon (#131). Returns the heldFileon success (keep it alive to hold the lock), orNoneif another process already holds it.flockreleases automatically when the file is dropped OR the process exits/crashes, so a dead holder never wedges the lock the way anO_EXCLpidfile would. Holding it across the socket probe → unlink → bind closes that TOCTOU: two daemons can’t both decide a stale socket is theirs to rebind.