instinct-cli 0.3.10

Shared local memory for coding agents. Save a fix once and find it again in a new session or another connected tool.
# Conservative conjunction of check requests — proposed contract

Status: released in 0.3.6. This is a compiler into the existing check language, not a second evaluator or a cache.

## First bounded operation

Proposed CLI: `instinct check compose --input FILE|-`.

Input: an object with `id`, `revision`, `checks` and optional `scope`. `checks` is a nonempty array of at most 16 ordinary check requests. Each child may contain only `check`, `facts`, `conditions`; current scope is supplied once at the composition level. Child definition scopes remain constraints. Inputs remain capped at 1 MiB.

Output: one ordinary `{check,facts,conditions,scope}` request that existing `validate`, `run`, `receipt` and `replay` can consume. Composition does not evaluate facts, observe anything, attach to a lesson or earn feedback. Its output must validate with the shipped kernel before it is returned. Compiled output is bounded to 64 KiB; a larger composition errors rather than truncating.

## Preservation rules

- Compile conjunction (`all`) only. Do not silently flatten independently gated children into an `any` or invert their scope through `not`.
- Namespace every child fact and condition using its stable array position, including all fact references in its expression. Equal-looking local names in different children remain distinct.
- Union every required condition after namespacing. Missing or false conditions remain missing or false.
- Intersect definition scope constraints: identical values agree, absent dimensions add no constraint, conflicting nonempty values error. No wildcard or empty scope relaxation.
- Use one caller-supplied current scope for the compiled request; omission means an empty scope, not global applicability. Do not merge child-provided current scopes into synthetic evidence that no caller supplied.
- Validate every child structurally, including unreachable branches, with the existing kernel. No prose inference or guessing types.
- Validate the aggregate with the same kernel so combined node, depth and fact limits are enforced, not merely per-child limits.
- Carry the composition's explicit ID/revision; original child definitions remain caller-owned inputs, not stored provenance or authenticated evidence.

## Conservative semantics

A compiled PASS requires all child predicates and all child assumptions/scopes. A missing child assumption gates the entire compiled check to abstain even if another child predicate would fail. This is deliberately conservative and matches the existing check-level gating rule; it is not claimed to preserve every intermediate child's witness or failure precedence. Without missing assumptions, a failing child causes failure and absent required facts propagate the existing three-valued logic.

No dependency references or cycles are representable in this first array-of-requests compiler. A general dependency graph, incremental updates, `any` across separately gated checks and persisted reusable packages remain later work.

## Acceptance controls before implementation

1. Two valid children → compiled output passes and validates through the existing CLI.
2. One false predicate → fail with no new authority label.
3. Missing/false required condition in either child → abstain, never pass.
4. Children sharing a local fact name with different types/values → isolated by namespacing.
5. Conflicting project/persona/harness/version/machine constraints → error.
6. Current scope missing or mismatching a required dimension → abstain.
7. A child-provided current scope, unknown field, duplicate escaped key or malformed unreachable branch → error.
8. Two individually small children whose aggregate exceeds limits → bounded error, not partial output.
9. Repeating the same input → byte-identical compiled request; child order retained.
10. Neither success nor failure opens or mutates a bank.

This scope intentionally avoids a product cache: the reuse benchmark measured cheap exact repeats but did not establish real caller reuse or end-to-end benefit.