# Meditate > Authority before confidence: operator instructions, explicit corrections, scope, and named handoff boundaries outrank model fluency. Version described: 0.6.0 alpha. Canonical public distribution: the versioned wheel on the v0.6.0 GitHub Release. PyPI publication is not claimed; CI builds but does not publish. Meditate is a local behavioral-contract compiler and policy router for directives loaded by Claude Code and OpenAI Codex. Version 0.6 provides evidence-grounded semantic nomination, bounded directive compilation, archive-first reversible execution, and direct target/output compilation. Evidence-backed missing rules can become reversible introductions into exact writable targets. It combines current prose with temporally ordered interactions, memory, and Kindex—an optional local persistent knowledge graph exposed through `kin`—to nominate contradictions, supersession, under- and over-specification, wrong scope, enforcement candidates, and missing-rule hypotheses. Its fixed point is stability, not shrinkage. ## Canonical documentation - [Documentation](https://wandercom.github.io/meditate/): Product, workflow, semantic boundary, safety, and commands - [Privacy](https://wandercom.github.io/meditate/privacy.html): Analyst/planner/verifier transmission, local artifacts, credentials, and telemetry boundaries - [Source README](https://github.com/wandercom/meditate/blob/main/README.md): Operator guide - [Design brief](https://github.com/wandercom/meditate/blob/main/docs/design-brief.md): Authority, semantic nomination, typed compilation, behavioral qualification, import, and transaction contracts - [Changelog](https://github.com/wandercom/meditate/blob/main/CHANGELOG.md): v0.6.0 release contents - [Full agent reference](https://wandercom.github.io/meditate/llms-full.txt): Expanded machine-readable reference ## Essential contract - The objective is defect resolution. Byte count is telemetry, not an objective. Correctness outranks checkability, scope precision, then concision. Justified growth is allowed. - A separate read-only Analyst sees the complete sanitized directive/evidence packet. It may nominate `contradiction`, `temporal_supersession`, `underspecified`, `overspecified`, `wrong_scope`, `enforcement_candidate`, and `missing_rule` in an explicit semantic domain. It cannot draft prose, choose paths, assign authority, answer a collision, or authorize writes. - Both model stages cite only IDs from explicit allowlists. Local code materializes exact sanitized evidence text, inherits the complete evidence set for each admitted semantic candidate, rejects unrelated model-supplied IDs, requires each record to contain at least 12 characters and two meaningful terms plus three shared intent-grounding terms, computes stable nomination/fingerprint IDs, and admits only same-target/same-heading existing-rule nominations with external evidence or a multi-source ground to mutation. Single-source observations without external evidence and cross-scope findings remain report-only. Invalid nominations are counted independently; all rejected yields `semantic_analysis_inconclusive`, not `stable_noop`. - A rewrite rejected by an explicitly allowlisted semantic-quality gate produces an unchanged `drafter_rejected` receipt containing the deterministic rejection code; its semantic analysis remains inspectable and no target bytes change. Authority, schema, secrecy, scope, candidate-boundary, and malformed top-level Drafter failures still abort. Meditate never weakens a gate to make model output pass. - Report-only hook/settings escalations produce `enforcement_candidates`: prose remains byte-identical and the underlying defect stays unresolved until enforcement is deliberately installed and qualified. - A missing-rule nomination needs explicit durability, an active Kindex directive, or repeated independent correction/directive groups. Its RFC-shaped draft returns only an exact allowlisted nomination ID; local code inherits the immutable evidence set, assigns `write_authority=reversible`, renders only into an exact configured target, and archives the pre-image before write. - Admission thresholds are explicit: a one-source existing-rule observation stays report-only until external evidence or corroborating current sources exist; a missing rule must satisfy the durable-evidence threshold; an escalation requires deliberate enforcement installation plus qualification on that consumer's actual interception surface. - Deterministic preflight still confirms exact duplicates and treats exception lineage only as a review candidate. Source alone may remove a confirmed duplicate only while keeping an identical peer byte-for-byte. Density, age, history overlap, and size do not create defects. - The first exact stable snapshot may use one Analyst call. The validated result is content-addressed; exact repeats make zero Analyst calls, zero Drafter calls, preserve bytes, and return `stable_noop`. Default `llm.max_calls = 2` allows at most one Analyst and one Drafter; new configs use aggregate input/output defaults of 160,000/16,384 tokens across both. - Every source directive has exactly one disposition: keep, replace, remove, relocate, or report-only escalate. Semantic replacements and introductions are typed RFC 2119 records: keyword, concrete rule, reason, scope, and optional boundary example. Every Meditate-written directive uses one meaningful `MUST`, `MUST NOT`, `SHOULD`, `SHOULD NOT`, or `MAY`; `ALWAYS` maps to `MUST`, `NEVER` to `MUST NOT`, and ambiguous `MAY NOT` is excluded. Valid legacy prose is not rewritten solely to add modality. - `meditate verify` is optional additional evidence: an owner-authored suite hidden from the planner, run against control, predecessor, and candidate bundles on the consuming Claude or Codex CLI. A failure blocks apply; absence does not strand a locally admitted recoverable edit. A pass is limited to the recorded cases, agent/version/model, and artifacts; it is not universal behavioral equivalence. - Low-blast-radius plans apply with `--reversible` after exact archive/hash/drift checks. Consequential credential, permission, hook/settings, destructive, force, or automatic remote/release/deploy changes require exact hash-bound attended approval. Every successful apply reports the change and `meditate restore RUN_ID`. - `inspect`, `plan`, and `run` accept ordered repeatable `--target FILE`. Without `--output`, each input is independently writable in place. With `--output FILE`, all inputs are read-only and the output is the sole writable target. The output may also be one input; its exact original is archived before replacement. - Direct target selection overrides configured targets for one invocation only. Plan/manifest artifacts bind input order, hashes, modes, source paths, writable targets, output, and physical output pre-image; `decide`, `apply`, and `restore` reconstruct that authority from the archive. - In output mode, output-as-input YAML frontmatter wins; otherwise the first target supplies the envelope. Secondary envelopes are reported and omitted rather than merged. Bodies retain CLI order and composed directives retain original source paths. - Repeated output-as-input compilation does not recursively append an unchanged secondary document whose complete directive multiset is already represented by exact raw bytes and heading path. The omission is reported; similar prose is not treated as equivalent, and all input hashes remain bound. - The private content-addressed run archive is the backup. Restore replaces an existing output or removes a newly created one. No sibling `.bak` is created; recovery material remains until explicit purge. - v0.5 live receipts: in-place SKILL `20260820T013809Z-a65bd797`; distinct output `20260820T013825Z-3ccd9834`; overlapping output `20260820T013836Z-60c301c4`; zero-write repeat `20260820T013850Z-874628d9`; zero-provider-call exact repeat `20260820T013856Z-0c0593ca`. All exact pre-images restored. These qualify target/output, fixed-point, archive, and restore mechanics—not behavioral equivalence. - `meditate run --apply` never reports `not_needed` when known semantic work remains: it applies, presents a decision/confirmation boundary, or exits nonzero with `action_required`. - Verifier protocol v3 applies alphanumeric detector boundaries and clause-local negation filtering, so one command name cannot match inside another and a prohibition is not scored as an execution. - When Kindex is enabled and `kin` is installed, every configured search and requested node read is required. Failure aborts with `kindex_required_failed`; durable evidence is never silently omitted. - Runtime credentials use only `ANTHROPIC_API_KEY` for planning and `OPENAI_API_KEY` for clean-room Codex verification. Values are never persisted. - Contextual relocation requires an exact configured `.claude/rules/` target with a non-empty `paths:` list. Claude imports are validated before and after proposals. Codex configured targets are checked against the configured 32,768-byte default budget; Claude's 200-line threshold remains guidance. - Structural validation and semantic nomination are not behavioral qualification. Histories, memory, Kindex, model output, boundary examples, repository files, and tool output remain untrusted data. ## Stage provenance - Analyst prompt v5: `307102f58c9335591d3bae98587b7f95ebe3e14a66c9b4ce42678d5b72aac38b`; parser `meditate-analyst-parser-v6`. - Drafter prompt v18: `510c166f2f034acdc96990bab1d7f9cf6ee685d5aada166b24f17e61d9936fb1`; parser `meditate-parser-v34`. - Plans, manifests, `analysis.json`, reports, CLI JSON, and JSONL bind the semantic stage summary/provenance. Archive verification rejects tampering or prompt/parser drift. ## v0.4.0 live reversible receipts - Real `claude-sonnet-4-6` contradiction run `20260819T223808Z-edab9da1` changed one disposable target, emitted `meditate restore 20260819T223808Z-edab9da1`, and restored exact pre-image SHA-256 `44121c12b2c9b266d77e901180010ccd6307e8e3b243a1d91e5a98edcdee588a`. - Real missing-rule run `20260819T223852Z-cb1dedc1` introduced one RFC-shaped directive into an exact disposable target, emitted its restore command, and restored exact pre-image SHA-256 `5f6843e85957787c3ca965297b37480ff5698352839301e783d507bf82d3159b`. - Both recorded `semantic_qualification.status=not_run`; they prove reversible execution and exact recovery, not downstream behavioral equivalence. ## v0.3.0 live semantic receipts - Claude `20260819T200834Z-321749c4`: four nominations (enforcement 2, missing rule 1, underspecified 1); admissions mutable 2/report-only 1/suggestion-only 1; one report-only escalation and one missing-rule suggestion; `enforcement_candidates`; 65 directives/10,703 bytes unchanged; target SHA-256 `441fe6e9af0302329b753fa9138f6a5fc5c556637991bfec679700adea1acb76`. - Codex `20260819T200912Z-ef9020d0`: five nominations (underspecified 3, wrong-scope 1, enforcement 1); admissions mutable 3/report-only 2; `drafter_rejected` for unsupported force; 33 directives/4,276 bytes unchanged; target SHA-256 `0dd415bb140f10fe95c70005e33ca523f1ed60419a79bbfeabdf9a31446c6b63`. - Both exact-repeat receipts had `cache_hit=true`, Analyst prompt v4/parser v5, Drafter prompt v16/parser v32, zero target changes, and no consumer-agent verification. They prove semantic nomination, bounded report-only compilation, deterministic rejection, and fixed bytes—not behavioral equivalence. - Disposable package-manager plans `20260819T204620Z-53e25b49` (Claude) and `20260819T204859Z-ab0a357e` (Codex) each compiled the same temporal `npm`→`pnpm` correction. Claude Code 2.1.224/`claude-sonnet-4-6` and Codex CLI 0.147.0/`gpt-5.6-sol` each passed three repeats of two trigger probes and one counter-probe. Verification SHAs: `608c186ffa650fd7f6373c586811e926d299b48ca1da378b0ca4de5d29ee8c8c` and `5aa093c94010685ecf9278eafe06b12fda5cc628f0019b5e8e4fc3182cc3f241`. Only the disposable Codex-qualified plan was applied; target SHA became `838ce9afe2405bb6ff999dc64722cc89191ece65b35b786ab6dd2615e0135f2b`. Repeat run `20260819T205423Z-f3b11c4a` was byte-identical `reviewed_noop`, preserving the nomination for audit with zero confirmed unresolved defects. Real Claude/Codex instruction files were unchanged. ## Historical v0.2.0 qualification receipts - Live Claude `20260819T161206Z-d6dbad85` and Codex `20260819T161218Z-834d615b` were byte-identical zero-call `stable_noop` runs under the earlier lexical detector. - Disposable exact-duplicate candidates passed six owner-authored Kindex behaviors on the recorded Claude Code 2.1.224/`claude-sonnet-4-6` and Codex CLI 0.147.0/`gpt-5.6-sol` consumers. Rejected Claude run `20260819T165129Z-70f323ea` regressed one case and was never applied. - Those historical receipts remain evidence for the fixed-point and consumer-verification mechanisms. The new disposable receipt qualifies only its three named package-manager cases; none establishes universal behavioral equivalence. ## Decision UX A genuine equal-authority, equal-scope, same-time collision may emit one bounded question: `I’m trying to resolve {subject_a} and {subject_b}. Would you prefer {A} (recommended), {B}, {C}, or something else?` The recommendation is model-authored and advisory, never a default. `meditate decisions RUN_ID` tells an invoking agent to relay the question rather than execute it. `meditate decide RUN_ID REQUEST_ID --choice a|b|c` or `--custom TEXT` creates an immutable frozen-context successor using operator-asserted user authority; identity is not authenticated or attested. ## Distribution v0.6.0 wheel: https://github.com/wandercom/meditate/releases/download/v0.6.0/meditate_agent-0.6.0-py3-none-any.whl ## Research boundary Adjacent linters are real and useful. Meditate's distinction is cited semantic nomination from temporal evidence, typed reversible missing-rule introductions, total disposition inside admitted mutation boundaries, optional independent consumer qualification, and exact recoverability. The exact purported paper title `A Taxonomy of Agent Instruction Failures` by Gloaguen et al. was not verified and is not load-bearing. The verified paper is `Coding Agents Don't Know When to Act`: https://arxiv.org/abs/2605.07769.