instinct-cli 0.3.8

Shared local memory for coding agents. Save a fix once and find it again in a new session or another connected tool.
# Structured relational snapshot integrity

`instinct check integrity --input FILE|-` checks caller-supplied key inventories. It opens no database, executes no SQL and makes no live-state claim.

```json
{
  "schema": "instinct.snapshot-integrity/v1",
  "snapshot": {
    "parent_keys": ["p1", "p2"],
    "child_keys": ["c1", "c2"],
    "child_parent_refs": ["p1", "p2"]
  },
  "constraints": {"required_parent_keys": ["p2"], "scope": {"project": "lab"}},
  "conditions": {"complete_snapshot": true, "explicit_constraints": true},
  "scope": {"project": "lab"}
}
```

Supported model: a parent key column, a child key column, and one non-null reference per child row. All keys are nonempty exact strings. A child key and its reference occupy the same array index; both arrays must have equal lengths when supplied. Multiple children may reference the same parent. Composite keys, SQL nulls, collation, transactions and database introspection are unsupported.

The adapter derives uniqueness booleans and sets, then delegates predicates to the ordinary check kernel. Duplicate parent or child primary keys fail; a reference absent from the parent inventory fails; an explicitly required parent absent from the inventory fails. Duplicate required keys are a malformed constraint, not silently deduplicated. Empty explicit inventories can pass when they satisfy the supplied constraints; missing inventories remain unknown.

`complete_snapshot` and `explicit_constraints` are required caller assertions. False or missing assertions abstain. A required policy scope must match exactly. Missing facts cannot establish PASS, although another known violation can still establish FAIL. Unknown fields and invalid key shapes produce errors even when another predicate could short-circuit.

At most 10,000 supplied key entries across all arrays, at most 1 MiB JSON, and the existing kernel fuel/fact limits. Derived sets can encounter the kernel limit before the raw-key ceiling, in which case the command refuses or abstains rather than returning partial success. Output omits key and scope values and the kernel witness; it reports the predicate verdict and supplied row counts. It is not a reusable scoped receipt. `evidence_origin` remains `caller_reported_snapshot_and_constraints`, `authorization` stays `not_evaluated`, and `database_opened` is false.

This is one M7 adapter, not a proof of arbitrary database integrity. A caller can supply false inventories or constraints. A live read-only database adapter would require its own explicit access grant and separate verification.