instinct-cli 0.3.9

Shared local memory for coding agents. Save a fix once and find it again in a new session or another connected tool.
1
2
3
4
5
6
7
8
9
10
11
# Scoped counterexample replay

`instinct check refine --input FILE|-` compares two explicit revisions against up to 64 caller-supplied cases. It does not learn a rule from prose, write a bank, replace an attachment, or promote a candidate.

The request has exactly `schema: instinct.check-refinement/v1`, `baseline`, `candidate`, and `cases`. Definitions use the ordinary check schema. They must have the same ID, and the candidate revision must increase. Every baseline scope restriction and required condition must remain; adding restrictions is permitted. Removing or changing a scoped value is rejected rather than silently interpreted as refinement.

Each case contains `id`, `expected` (`pass`, `fail`, or `abstain`), and optionally `facts`, `conditions`, and `scope`. IDs are unique. Both definitions receive the same facts and scope through the strict kernel. Conditions must be boolean and declared by at least one revision; each revision receives only its declared conditions. This permits replay of a newly required observation without treating it as an unknown condition in the baseline. Unrecognized conditions are rejected before this projection, not silently discarded. Malformed or incompatible facts are errors; missing facts produce the ordinary unknown result. Fuel exhaustion is an error for the replay as a whole, not a successful match to an `abstain` label. This prevents an expensive or broken candidate from appearing correct by exhausting its budget. These are **caller-provided cases and labels**, not independent observations or hidden validation.

The result reports per-case baseline/candidate/expected verdicts, correct counts, regressions, improvements and candidate false passes. Case indexes—not arbitrary private IDs or fact values—are printed. `passes_supplied_cases` requires every supplied expected verdict to match, no regressions and no false passes. It is not approval for deployment or generalization. `promoted` is always false and `authorization` is always `not_evaluated`.

The request stays within 1 MiB and the response within 64 KiB. Each of at most 128 evaluations has the existing 100,000-step budget; this explicit command is not used by hooks. The recorded request SHA-256 identifies the exact submitted bytes, not an authenticated issuer or the truth of labels. Reserve unseen cases before choosing a rule and retain negative results separately. Automatic condition synthesis, persistent lifecycle records and empirical promotion remain separate work.