Edit this page on GitHub ↗

Safety

Daythread is allowed to act, so the safety model is the product. The design assumption is that the model will sometimes be wrong, and the system must fail closed.

Confirm before external

external and destructive actions default to ask. Approving a plan is explicit and recorded. There is no “trust me” switch that silently upgrades a policy.

Tamper-evident

Every run step is SHA-256 chained over its canonical payload plus the previous hash. dt ledger <run-id> --verify recomputes the chain.

The ledger is the answer to “what did it actually do?”. It is not a log you hope is complete; it is a chain you can check.

Idempotency and recovery

Undo or declare irreversible

A tool returns an undo recipe or explicitly declares irreversible. Multi-step undo runs in reverse and refuses if any step is irreversible.

The refusal is the safety property: a half-undone plan is worse than an honest “this cannot be undone”.

Least authority

Taint

taint=untrusted marks content from external agents, webhooks or email. It forces approval for every non-read step even if the policy would auto-allow.

This is the main defense against prompt injection that arrives as data: untrusted text cannot borrow the user's authority.

Network egress

Calls through daythread.net use one guard whose address policy is deny-by-default.

Some direct urlopen call sites are still being migrated to the guard. Until that lands, the guard describes most egress, not every call in the tree.

Secrets and OAuth

Backups

Backups are checksummed, HMAC-signed, optionally AES-GCM encrypted with a passphrase, versioned, and redact known secrets. restore --trust is required when the master key is not present.

Privacy and retention

The honest limit

Daythread is a single-user local system. It does not implement hosted multi-tenant isolation, enterprise RBAC, or family-shared memory. Sharing an instance would mean sharing mail and calendar tokens and the authority to act. Do not do that.

Read next