Memory and plans
Daythread is organized around a day, not a chat. The day starts with a brief, becomes a set of plans, passes through approvals, and ends with a review that can be verified.
Living memory
A fact is not a line in a transcript. It has:
- a subject, a predicate, an object, and provenance;
- a confidence, tags, and a sensitivity level;
- a score and an edit history;
- a supersede chain and conflict records;
- a tombstone when deleted.
Deleting a fact stops it participating in reasoning immediately. A tombstone remains so the record stays coherent. dt fact history and dt fact conflicts expose both.
Search uses FTS5 with a LIKE fallback. secret and health facts are hidden from list, search, export, MCP and briefs unless --include-sensitive is passed.
Extraction
dt fact extract turns deterministic text into candidate facts. Extraction is not allowed to invent silently: a candidate carries its source, and the user can confirm, edit or discard it.
Plans
A plan is a validated DAG, not a prompt loop:
- Normalize the intent.
- Validate the steps and their capabilities.
- Toposort and preview.
- Aggregate policy across the steps.
- Wait for approval when the aggregate says
ask. - Execute with idempotency keys, retries, checkpoints and budgets.
- Undo in reverse, or refuse if a step is irreversible.
Each step declares a capability and a risk tier. The planner will not silently add a step the policy has not seen.
Policy
policy.py classifies actions as read, write, external, or destructive, and returns allow, ask, or deny.
externalanddestructivedefault toask.- Approving a plan is explicit and recorded.
taint=untrusted— content from an external agent, a webhook or email — forces approval for every non-read step, even when the policy would auto-allow.
The taint rule is the important one: untrusted content must not be able to talk the system into an action.
The ledger
Every run step is SHA-256 chained over its canonical payload plus the previous hash. dt ledger <run-id> --verify recomputes the chain.
This is what makes “what did it do?” a query rather than an act of trust. A broken chain is a signal, not a formatting problem.
Proactivity
Proactivity has an interrupt budget, not a notification stream:
- signals are collected from memory, plans and the calendar;
- candidates are scored;
- quiet hours defer delivery;
- accept, ignore and mute feed back into the policy;
- the morning and evening anchors bound the day.
The metric is false positives, not messages sent.
Briefs
dt brief builds the morning brief; dt brief --evening builds the evening one. A brief is assembled from facts, tasks, runs and candidates, with the source of each item available.
Read next
- Safety: the gate that stands between a plan and the world.
- Operations: backups, retention and connectors.