Edit this page on GitHub ↗

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:

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:

  1. Normalize the intent.
  2. Validate the steps and their capabilities.
  3. Toposort and preview.
  4. Aggregate policy across the steps.
  5. Wait for approval when the aggregate says ask.
  6. Execute with idempotency keys, retries, checkpoints and budgets.
  7. 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.

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:

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