graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
0033. Only the user can retire a standing constraint; /never works over ACP
Status: accepted 2026-08-26
Context
note_constraint is append-only on purpose (#381): a model that finds a
rule inconvenient must not be able to delete it. The documented retire
path was /never rm <id> in the REPL. ACP clients (Zed, the native
app) send /never as a session/prompt body, so it was forwarded to
the model and the ledger never moved. A later user override then sat
under a still-injected HARD CONSTRAINTS block (#638).
Decision
The model still cannot retire a constraint. The user can, three ways:
/never//constraintin the REPL. On a TTY, bare/neveropens a searchable picker (text prominent, id secondary) and requires two confirmations before a tombstone; Esc/Keep at either stage leaves the ledger unchanged./never rm <id-or-text>stays as the power-user shortcut.- The same line as an ACP
session/prompt(intercepted locally; not a model turn). Aftersession/newthe agent advertises these as ACPavailable_commands_updateentries (v1 schema). ACP has no TTY, so bare/neverlists andrmretires. - An explicit override in the current user message (
forget/override/retire/ …) that names an idpb-…or uniquely matches one live item. The ledger is tombstoned and the prefix refreshed before the model turn, so the stale rule is gone fromHARD CONSTRAINTS.
/never rm accepts an id or a unique text fragment. Ambiguous
matches refuse rather than pick.
Consequences
- A native/Zed user can list and drop constraints without the REPL.
- A vague "do it anyway" does not retire a rule; the user must name it or use retire language plus a unique match.
note_constraintstays append-only./never rm//never removewithout a needle lists (ACP/pipe) or opens the picker (TTY). It never records the verb as a constraint (#644). A failed tombstone write says the rule is still active. Operational traces recordnever_retire {id, ok}and no text.