instinct-cli 0.3.6

Local memory for AI coding agents: an MCP server and CLI that gives Claude Code, Codex, Cursor and any MCP client the one lesson that fits. Lessons that keep failing go quiet.
# Explicit check-policy withdrawal

Status: released in 0.3.6. Versions before 0.3.6 do not have `check detach` and refuse a check file that holds a revocation.

## User operation

`instinct check detach --lesson ID --store BANK`

Both options are mandatory and may appear once. No implicit default bank, filesystem root, shell operation or MCP mutation is added. Detaching withdraws the attachment's authority for future check-verified feedback; it does not delete the lesson, quarantine it, or remove prior observations.

## Append-only behavior

Under the existing bank-then-sidecar lock order, read the current attachment and append a revocation record with the same lesson ID, canonical bank-location binding and next revision. Do not rewrite or truncate the sidecar. A repeated detach for the same already-revoked attachment is idempotent. A lesson with no attachment returns a no-op result without creating a sidecar. Unknown lessons are refused.

A checked hit after revocation refuses before observation or any hit write, even if its outcome ID appeared before withdrawal. Ordinary feedback remains unchanged. Explicit reattachment validates a new policy and advances the revision; it must not treat a revoked attachment as an idempotent active attachment.

Historic verified hits remain descriptions of the observations made then. Withdrawal does not retroactively label those observations false. Outcome retraction and policy withdrawal are different operations.

## Compatibility decision

Use an explicit revocation schema unknown to older readers, rather than an optional flag that older readers might silently ignore. Older check readers encountering the new record must refuse instead of resurrecting an earlier active policy. This means older readers can conservatively refuse other attachments in the same sidecar after the first revocation; document that downgrade limitation. The lesson bank remains readable by older versions.

No snapshot-format change, new service, automatic expiry job or public sharing is included. Local trusted-writer and same-path-replacement limitations of bank-location binding remain unchanged.

## Acceptance controls

- Attach → verified hit → detach: bank bytes and existing hit unchanged; sidecar extends its original prefix.
- Detach → checked hit: refusal and no bank mutation.
- Repeated detach: no new sidecar event.
- Ordinary hit after detach: normal behavior preserved.
- Reattach → new checked hit: succeeds with a new attachment revision.
- Missing/duplicate/unknown command options: errors without mutation.
- No attachment: no-op without sidecar creation.
- Copied sidecar: cannot revoke another bank's binding silently; explicit destination policy attachment remains necessary.
- Concurrent attach/detach/hit operations serialize under existing locks; final effective record determines future eligibility.
- Older binary encountering a revocation: fail closed, never use an earlier active attachment.