idiomDocs
Menu

Reference · Stability

Stability

Scripts, CI jobs and coding agents depend on Idiom's commands, flags, exit codes, JSON output, MCP tools and project files. This page lists each of those surfaces with its status and says what may change between releases. It also says how you can tell when a release has made a breaking change.

How to detect a break

Idiom has an interface version, separate from the package version. It is a single integer, currently interface version 1, and it changes only when a stable surface changes incompatibly. It appears in three places:

  • idiom --version prints <version> (<short source commit>) · interface <n>, for example 0.17.0 (abc1234) · interface 1. Scripts that want the package version alone should take the first word.
  • Every --json payload is an object whose first key is "interfaceVersion": 1.
  • The MCP server's initialize result carries it under capabilities.experimental.idiom.interfaceVersion. Clients read it with their SDK's server-capabilities accessor, for example client.getServerCapabilities().

Pin the interface version you were built against. If it moves, read the Interface heading in the changelog for that release before upgrading.

What 0.x means

Idiom is 0.x until the 1.0 gates hold. During 0.x the package version alone does not signal breaking changes: a minor release such as 0.17.0 can contain one. The interface version is the promise instead. A stable surface changes incompatibly only together with an interface version bump, and every interface change is listed under an Interface heading in that release's changelog section.

After 1.0, a breaking change to a stable surface also needs a major package release. Moving from 0.x to 1.0 is covered in the migration guide.

Statuses

  • stable: will not change incompatibly without an interface version bump. A stable command keeps its name, its options and its arguments.
  • stable-additive: as stable, and new fields may appear at any time. Existing fields are never removed or retyped. Ignore fields you do not know.
  • experimental: may change or disappear in any release. The changelog still records the change, but no interface bump is needed. Do not build automation on it without pinning the package version.

A surface can be promoted from experimental to stable in any release. Demoting or removing a stable surface is a breaking change.

Compatibility rules

These are the rules the contract test applies (see How the promise is enforced).

Output (Idiom writes it, you read it: --json payloads, findings.json). Properties may be added. An existing property stays, keeps its type and never becomes a wider type. A property that is always present stays always present. New enum values may appear, and a property that is already a union may gain variants, so a consumer must tolerate values it does not recognize. A property that is not a union never becomes one that admits other types (string to string | null is breaking).

Input (you write it, Idiom reads it: .idiom/project.json, flow manifests, decisions.jsonl, baselines, MCP tool inputs, flags). Optional properties may be added. Existing properties stay accepted with the same type or a wider one. Nothing that was optional becomes required. Enum values and variants may be added, never removed. A record type added to a shared log is additive too: see Records a newer Idiom wrote.

Commands. A stable command never disappears. Its existing options, except options this page names as experimental, keep their long name and short flag, keep whether they take a value, and never become mandatory. Its positional arguments are never removed, never become required and never stop accepting several values. New options are never mandatory, and new arguments are always optional.

Not frozen, even on stable surfaces: descriptions and help text, human-readable output and report wording, finding text, numeric bounds and patterns in schemas (limits and validation detail), default values, and the order of lists that are not ranked. Finding ranking can change between releases; it is described in ranking.

CLI commands

A command's status covers its flags and positional arguments. It is not a promise about its human-readable output, and its --json payload has its own status below. The global --project <path> option is stable.

Command Status Notes
init stable —
upgrade stable —
mcp stable —
quick stable —
validate stable —
doctor stable —
capture stable —
check stable —
baseline stable —
baseline record stable —
baseline accept stable —
baseline advance stable --commit-file, --fetch and --wait are experimental: the unattended-advance wiring is still changing
review stable —
report stable —
decide stable —
verify stable —
context stable —
fix stable —
sweep experimental model sweep output and its crops are still being tuned
coverage experimental route and state discovery is still changing
digest experimental the summary shape is still changing
scorecard experimental new; the weekly scorecard shape is still changing
escalations experimental new; classification, matching thresholds and the JSON shape are still changing
nightly experimental being superseded by per-merge watch; scheduling and filing are still changing
watch experimental new; merge watching and filing are still changing
bisect experimental new; range selection is still changing
explore experimental opt-in design exploration, still being shaped
explore resolve experimental opt-in design exploration, still being shaped
compare experimental composite modes are still changing
brief experimental the brief workflow and its record shape are still changing
brief triage experimental the brief workflow and its record shape are still changing
brief gate experimental the brief workflow and its record shape are still changing
brief lint experimental the brief workflow and its record shape are still changing
brief plan experimental the brief workflow and its record shape are still changing
brief research experimental the brief workflow and its record shape are still changing
brief record experimental the brief workflow and its record shape are still changing
brief decide experimental the brief workflow and its record shape are still changing
brief export experimental the brief workflow and its record shape are still changing
brief attach experimental the brief workflow and its record shape are still changing
brief list experimental the brief workflow and its record shape are still changing
brief show experimental the brief workflow and its record shape are still changing
ruling stable —
learn experimental capturing, importing and replaying human-found misses is still growing
instruction experimental instruction handling is still changing
tickets experimental ticket filing depends on the build tool's tracker, which is still changing
system experimental the evidence-derived design system view is still a preview
design stable —
design add stable —
reference stable —
reference add stable —
reference list stable —
reference remove stable —

An option named in Notes is experimental even on a stable command: it may change or disappear without an interface bump.

The full flag reference is commands.

Exit codes

Stable. The meanings are in Exit codes and setup failures.

  • 0: the command succeeded and nothing blocks.
  • 1: blocking findings, a failed gate or verification, or a usage or other error.
  • 2: the run could not happen (a refused precondition, a server that never became ready, or a capture that could not start).
  • 3: check deferred review because recorded host pressure coincided with exhausted navigation/readiness timeouts. This exit code is additive at interface version 1; with default --deferred fail it takes precedence over findings and --fail-on never, including changed/gate checks. Explicit --deferred warn warns on stderr and continues severity gates: otherwise passing checks exit 0, genuine gated findings still exit 1, and run failures still exit 2.
  • 4: check --gate requires explicit reference/ruling answers, with no ordinary eligible failure. This is additive at interface version 1. Run failures (2), default deferral (3), and ordinary eligible findings (1) take precedence. --deferred warn continues evaluation; --fail-on never disables severity and decision status gates. Plain checks keep their existing status. JSON adds decisionNeeded and deterministic decisionQuestion, including in mixed failures. decide --pending --json is stable-additive.

JSON output

At interface version 1, check additively supports optional verdict: "deferred" and timedOutTuples coordinates (state, viewport, colorScheme). Changed/gate aggregates qualify them with flow. Normal fields, genuine findings and the numeric blocking count retain their meanings; host deferral creates no finding. Stored run.json host measurements determine replay behavior. An incomplete initial review does not automatically record a baseline, including with --deferred warn. The opt-in policy changes only CLI status; JSON remains truthful and MCP semantics are unchanged.

At interface version 1, these are additive too: check carries an optional trend (flow and runs[] with runId, completedAt, commit, dirty, blocker, major, minor and optional coverageGap { missing, selected, kinds }) and an optional devServer (kind, evidence, state, viewport, colorScheme); init --validate carries suggestions[] (advice lines that never affect ready); the new report --json prints { runId, reportPath, trend, humanFound? } (experimental); and a capture's run.json may record an optional devServer object.

Every payload is an object that starts with "interfaceVersion": 1. The stable-additive payloads promise the fields named here; anything else in them is experimental until it is named.

Payload Command Status
check check stable-additive
run-failure check stable-additive
init --validate init stable-additive
doctor doctor stable-additive
check --gate check stable-additive
check --changed check stable-additive
upgrade upgrade experimental
baseline record baseline record experimental
baseline accept baseline accept experimental
baseline advance baseline advance experimental
review review experimental
review --page review experimental
sweep sweep experimental
coverage coverage experimental
coverage --states coverage experimental
report report experimental
digest digest experimental
scorecard --json scorecard experimental
escalations --json escalations experimental
nightly nightly experimental
watch --json watch experimental
bisect bisect experimental
decide --pending decide stable-additive
decide --list decide experimental
learn list learn experimental
learn harvest learn experimental
learn import learn experimental
learn replay learn experimental
compare compare experimental
brief research brief experimental
brief triage brief triage experimental
brief gate brief gate experimental
brief lint brief lint experimental
brief plan brief plan experimental
brief comparables brief research experimental
brief record brief record experimental
brief decide brief decide experimental
brief export brief export experimental
brief attach brief attach experimental
brief list brief list experimental
brief show brief show experimental

The stable fields:

  • check, a full run's summary: flow, runDirectory, reportPath, blocking, and findings[] with id, severity, category, rule (when the finding came from a rule), where, problem and fix[].
  • run-failure, printed instead by check and baseline record|accept when the run could not happen: flow (when one was named) and failure with stage (preflight, server or capture), cause, hint, message and, when relevant, paths.
  • init --validate: ready, validate.ok, and doctor, which is the doctor payload without interfaceVersion, or null.
  • doctor: flow (when there is one), ok, steps[] with id, status, ms and optional detail and hint, leftovers[] with pid, port, command and outcome (stopped or failed) when doctor found application servers an earlier, killed run left behind, and failure (the run-failure object) when the boot failed.
  • decide --pending: decisionNeeded[], the explicit unresolved decision questions, and decisionQuestion, their rendered escalation text (empty when there are none).
  • check --changed, the flows a change selected and their summaries:
    • selection, the changed-path selection: git with repository, head, requestedBase (a string, or null for the default base), resolvedBase, baseReason and, when Idiom fell back to another base, fallbackReason; files[] with path, kind (route, import, global or unresolved), reason, routes[] and states[] ({ flow, state }); candidates[], selected[] and skipped[] (each { flow, state }); and fallbackFiles[].
    • checkedStates, the number of states checked.
    • checks[], one per affected flow: either { flow, status: "not-checked", reason } or { flow, status: "checked", summary }, where summary is the check payload above without interfaceVersion.
    • When any checked flow deferred, verdict: "deferred" and timedOutTuples[] with flow, state, viewport and colorScheme.
    • Experimental: each file's importChains and uncertainties, and selection.graph. They explain the import-graph analysis, which is still changing (graph completeness arrived with the build gate).
  • check --gate has three forms. Pass or fail is the exit code (see Exit codes); the payload says which form ran and what is pending.
    • Skipped, when no changed path reaches a rendered page: gate with skipped: true, reason, base, line, files[] (each with path) and allFlows[].
    • Plan only (--plan-only): gate with planOnly: true, line and plan. The contents of plan are experimental: its estimates, trimming and comparisons are planner detail that is still changing.
    • Ran: gate with estimateMs, budgetMs, skippedWork[] (kind, flow, reason, estimatedMs, and state, viewport or scheme when the skipped work had one) and server with mode (reused, production-reuse or fresh) and reason. At the top level: decisionNeeded[] (the pending questions, exactly as decide --pending prints them) and decisionQuestion (empty when there are none), both always present; then verdict and timedOutTuples when deferred, and selection, checkedStates and checks[] exactly as in check --changed.
    • Experimental in the ran form: gate.plan (as above), gate.comparisons (added in 0.22.0; its modes are still being tuned) and gate.timing (the timing breakdown, still changing).
    • With --handoff <dir>, the skipped and ran forms add handoff with dir, round, next (pass, repair, stop or skip), targets (how many findings this round hands off) and summaryPath.

brief list --json prints { interfaceVersion, briefs } and is experimental. briefs[] holds each stored brief record, newest first, or { slug, error } for one that cannot be read.

MCP

Tool names and input schemas are stable for the tools marked stable. The capabilities.experimental.idiom.interfaceVersion key is stable. Setup and inputs are described in MCP.

Every tool declares an outputSchema, and every successful result carries structuredContent that matches it and starts with "interfaceVersion": 1. The text content is unchanged, so clients that read text keep working. A failed call is a tool error (isError) and is not held to the output schema; when a run could not happen, its structuredContent.failure is the stable-additive run-failure object, as before.

A tool's output has its own status, under the same output rules as the --json payloads. An output is stable-additive once the fields it promises are named here; the fields it does not name stay experimental, and this page says why. An output cannot be more stable than its tool. Experimental outputs, and the experimental fields of a stable output, still match the declared schema, which names every top-level property, but their shape can change in any release.

The stable output fields:

  • idiom_doctor: the doctor payload (see JSON output): flow (when there is one), ok, steps[], leftovers[] and failure when present, plus update with current, latest and command when a newer Idiom is available (once per server session).
  • Finding detail, one shape shared by idiom_quick, idiom_check and idiom_issue. Together these fields are what an agent needs to review, fix and verify:
    • Identity: id, runId, flow and verificationReference ({ id, runId }, passed unmodified to idiom_verify).
    • finding with id, category (the rule id, a check id in rules), rule (the finding rule name, when the finding came from a rule), severity, explanation (the finding's title: its one-line statement of the problem), state, viewport, and colorScheme and fix when present.
    • The target: coordinate with state, viewport, and colorScheme and combination when present.
    • The fix guidance: fix.instructions, when the finding has one.
    • The evidence: evidencePaths[] (absolute paths), cropPath when there is a crop, and evidenceStatus.
    • Experimental, as capture-artifact or verification detail that is still changing: basis, basisDetails, acceptance, fix.acceptance, selector, measurement, filmstrip, timeline, and every other property of finding.
  • Issue, one ranked issue in topIssues[] and issues[]: id, severity, category, rule (when present), groups[] (group ids), findings (how many findings it groups) and representative (a finding detail, when one is materialized). Experimental: the ranking fields (salience, prominence, score, impact, impactReasons, explanation, rules, family, primaryAction, deferred) and rootCause, because ranking can change between releases.
  • idiom_quick: runId, runDirectory, reports (markdown, findings, and html when written), counts with findings, issues and groups, findings[] (finding details), and topIssues[] and issues[] (issues). Experimental: interaction (the probe report, still changing), checkCoverage (coverage detail), captureFailures (new since 0.22.0) and counts.captures.
  • idiom_check has two forms in one object. Its schema can only mark every key optional, because an MCP output root cannot be a union, so which keys each form carries is promised here rather than enforced by the schema.
    • One flow: flow, runId, topIssues[] (issues), newFindings[] (finding details), verificationReferences[] ({ id, runId }), counts with new, fixed, preExisting, findings, issues and blocking, and reports, always; issues[] and findings[] (finding details) only with all: true; verdict: "deferred" and timedOutTuples[] (state, viewport, colorScheme) when deferred.
    • With changed: selection (as in check --changed), checkedStates, and checks[], each either { flow, status: "not-checked", reason } or { flow, status: "checked" } plus the one-flow fields above; and verdict: "deferred" and timedOutTuples[] (each with flow) when any flow deferred.
    • Experimental: groups, baseline, baselineRecorded, baselineNotRecorded, preExistingFindings, fixed, acknowledgedFindings, acknowledgementLapses, coverage, checkCoverage, captureFailures, designSystemQuestions, update and the rest of counts. Baseline comparison and coverage detail are still changing (the gate's base comparison arrived in 0.22.0).
  • idiom_issue: every finding-detail field at the top level, where id may be a group or issue id, plus members[] (finding details). Experimental: group and siblingGroups (group internals), and the finding detail's experimental fields.
  • idiom_verify: outcome (fixed, failed or no-findings), passed, success (passed with no introduced findings), regressionFree (true or false, or null when introduced findings could not be evaluated), findingCount, causes[], sourceRun, reportPath, htmlReportPath and outputDirectory.
    • verdicts[], the per-finding outcomes, when evaluation ran: status (fixed, reproduced or unverifiable), reason, finding with id, category, rule (when present) and severity, and acceptance with status (passed, failed or not-recheckable) and reason.
    • newFindings[], the deterministic findings the fix introduced anywhere in the flow, when evaluation ran: key, coordinate (state, viewport, and colorScheme and combination when present), category, rule and severity.
    • Experimental: newBlockers, coverage, designAssets, verdicts[].locus and verdicts[].acceptance.contract.
Tool Status Output Why the output is experimental
idiom_quick stable stable-additive —
idiom_check stable stable-additive —
idiom_issue stable stable-additive —
idiom_fix_plan stable experimental It mirrors idiom fix, an experimental command
idiom_verify stable stable-additive —
idiom_context stable experimental context has no --json payload to mirror
idiom_flows stable experimental No --json payload mirrors it
idiom_decide stable experimental It mirrors decide and ruling results whose JSON is experimental (only decide --pending is stable, and this tool does not return it)
idiom_init stable experimental init has no stable --json payload besides init --validate; its wiring and system learning are still evolving
idiom_doctor stable stable-additive —
idiom_baseline stable experimental It mirrors baseline record and baseline advance --json, which are experimental
idiom_design_add experimental experimental The tool itself is experimental
idiom_choose experimental experimental The tool itself is experimental
idiom_learn experimental experimental The tool itself is experimental
idiom_tickets experimental experimental The tool itself is experimental
idiom_sweep experimental experimental The tool itself is experimental
idiom_coverage experimental experimental The tool itself is experimental
idiom_brief_triage experimental experimental The tool itself is experimental
idiom_brief_plan experimental experimental The tool itself is experimental
idiom_brief_record experimental experimental The tool itself is experimental
idiom_brief_decide experimental experimental The tool itself is experimental
idiom_brief_export experimental experimental The tool itself is experimental
idiom_brief_attach experimental experimental The tool itself is experimental
idiom_setup_prompt experimental experimental The tool itself is experimental
idiom_ready experimental experimental The tool itself is experimental; its output is the stable-additive init --validate payload plus problem, and is promoted with the tool

Files

Field-by-field definitions are in record schemas.

File Direction Status
.idiom/project.json input stable-additive
.idiom/flows/<id>.json (flow manifests) input stable-additive
.idiom/decisions.jsonl (one decision per line) input stable-additive
.idiom/baselines/<flow>.json (or the configured baselines.directory) input stable-additive
.idiom/rules.json (rule overrides) input stable-additive
.idiom/finding-names.json (the finding-name registry) input stable-additive
findings.json in a run directory output stable-additive
The names report.md, report.html and findings.json in a run directory output stable
Decision briefs under .idiom/briefs/ output experimental
Rulings that idiom ruling writes to DESIGN.md output experimental
Every other capture artifact in a run directory (dom.html, axe.json, observations.json, timelines, crops, …) and the layout of .idiom/reports/ beyond the three names output experimental

Commit .idiom/project.json, the flow manifests, decisions.jsonl, baselines, rule overrides and the finding-name registry. A newer Idiom with the same interface version keeps reading what an older one wrote.

Decision actor attribution

At interface version 1, judgments, acknowledgements and ruling log records add optional agent metadata. New writes record actor: "human" | "agent"; historical inputs still accept arbitrary actor strings and default missing actors to human. Unrecognized historical actors stay unattributed in reporting. Existing history is never redetected or rewritten.

MCP always records agent execution (agent: "mcp"), including when it relays a human answer. CLI --actor human overrides runtime hints; otherwise Idiom checks Autobuild (AB_BUILD, an .ab/context.json naming a build, AB_PHASE/AB_SESSION), then Claude Code (CLAUDECODE=1, CLAUDE_CODE_CHILD_SESSION=1), then Codex (nonblank CODEX_THREAD_ID/CODEX_SESSION_ID, CODEX_CI=1). Context discovery stops at the project/Git boundary and checks an explicit project too. An .ab/ directory without a build-naming context (a leftover harvest run, a bare or broken directory) is not a hint; live Autobuild sessions are caught by their AB_* environment. --actor agent forces agent and retains a detected label when available. API keys, generic CI, installed binaries, CODEX_HOME and answer --build provenance are not identity hints. These hints are not authenticated identity. A TTY without a known agent environment is human; TTY presence alone never overrides a known agent.

decide --reattribute from..to --actor human|agent --note text appends strict correction records targeting original physical line/hash identities. It preserves original bytes, decision order and all non-actor semantics. Effective readers apply the latest valid correction in place; raw records remain auditable. Corrections are an additive log variant. Older tolerant readers skip them and keep the original attribution. Precision uses human decisions only; agent evidence and unattributed legacy inputs are separate. The learned-entry human-miss metric remains independent of decisions.

Records a newer Idiom wrote

Teammates and CI runners may be on different Idiom versions while sharing one log. Readers of .idiom/decisions.jsonl (type field decision) and .idiom/learned.jsonl (type field kind) skip a record whose type they don't know, keep every other record, and print one stderr note per command:

Skipped 3 decision records written by a newer Idiom (types: acknowledge). Upgrade to use them.

A malformed line, a known type with invalid fields, or a record missing its identity fields (at, findingId and fingerprint in decisions; version and id in learned entries) still fails as before. Commands that write these files never drop or rewrite a skipped line. So adding a record type to these files is additive and needs no interface version bump.

Learned records from idiom learn without --state use the observation kind, which older readers skip as above. Every new learned record also carries optional candidate and placement fields. Learned records are strict, so an older Idiom treats a known-kind record with those fields as a known type with invalid fields: its summaries skip the line, and its learn --list, --covered and --fixture stop at it. Records from this release need this release or newer to list, mark or export.

Records from idiom learn --harvest are observation records that also carry an optional harvest field (source, key, date, author and the build, escalation or pull request they came from). An older Idiom stops at them the same way it stops at candidate and placement. The harvest cursor, .idiom/harvest.json, is a versioned document. Records from idiom learn --import are observation records that also carry an optional import field (the import's name, source file, row id and named checks, and the row's surface, date and source when the table has them). An older Idiom reads them the same way as candidate and placement above: its summaries skip the line, and its learn --list, --covered and --fixture stop at it. Use this release or newer once a project has imported a table.

The finding-name registry, decision briefs and a run's run.json have no record types; a change to them follows the Input rules above.

Format versions and upgrade

Every versioned file under .idiom/ carries a top-level version (or, in a log, one per record). idiom upgrade brings these files to the format the installed release writes.

File Format version Migrated from
.idiom/project.json 1 — (no older formats)
.idiom/rules.json 1 — (no older formats)
.idiom/finding-names.json 1 — (no older formats)
.idiom/ruling-names.json 1 — (no older formats)
.idiom/baselines/*.json 1 — (no older formats)
.idiom/filed-tickets.json 1 — (no older formats)
.idiom/briefs/*.json 1 — (no older formats)
.idiom/briefs/triage/*.json 1 — (no older formats)
.idiom/references/*/reference.json 1 — (no older formats)
.idiom/anti-references/*/reference.json 1 — (no older formats)
.idiom/learned.jsonl 1 (per record) — (a log: never rewritten)
.idiom/harvest.json 1 — (no older formats)

No migrations are currently needed: every versioned file is at format version 1.

How upgrade treats each file:

  • Current. A file already at the current format is only read; its bytes never change. Running idiom upgrade twice in a row changes nothing the second time.
  • Older. The file is migrated one format at a time, and the result must pass the same schema the reader uses, so nothing the newer format can hold is lost. Before rewriting, upgrade copies the original to one backup directory per run, .idiom/backups/upgrade-<UTC timestamp>/, at the same path relative to .idiom/, and the report names it. Commit the migrated files, then delete the backup directory (or add backups/ to .idiom/.gitignore).
  • Logs. learned.jsonl is append-only and never rewritten. Records on an older format stay as written and the reader keeps accepting them; upgrade reports the log as kept.
  • Newer. A file (or a log record) on a newer format than the installed Idiom understands is left untouched and reported refused, and upgrade exits 1: update Idiom, then run idiom upgrade again.
  • Unreadable. A file that is not valid JSON, has no format version, or is a symlink is reported skipped and left alone; idiom validate reports what is wrong with it.

idiom upgrade --dry-run lists the migrations it would make without writing anything, and upgrade --json reports every file under projectFiles (upgrade).

These carry no format version and upgrade never touches them: .idiom/decisions.jsonl (append-only; new record types are additive, see Records a newer Idiom wrote), flow manifests under .idiom/flows/, .idiom/glossary.json, and run outputs and caches (.idiom/reports/, .idiom/cache/, .idiom/agent-hooks/, .idiom/designs/, images under .idiom/learned/, .idiom/backups/). A baselines.directory configured outside .idiom/ is not scanned.

Ids

  • Rule ids, the check ids listed in rules such as adjacent-gap, are stable-additive. New ones can appear in any release. Removing or renaming one is a breaking change, because checks.* configuration and rule overrides refer to it. The contract snapshot records them.
  • Finding rule names, the rule value on a finding such as idiom:elements-overlap, follow the same promise, because decisions match findings by them. They have no central list yet, so they are reviewed by hand rather than by the contract test.
  • Finding names (finding-N) never change once the registry assigns them. A finding keeps its name across runs, and a name is never reused.
  • Finding ids within a run are stable as a format only: which finding receives which id can change from one run to the next.

Deprecation policy

A stable surface that is going away is deprecated first:

  1. It keeps working, and using it prints a warning: on stderr for the CLI, and in the tool description for MCP. The warning names the replacement.
  2. The deprecation is listed under Interface in the changelog, and the docs name the replacement.
  3. It keeps working for at least one minor release after the release that deprecated it.
  4. Before 1.0 it is removed only together with an interface version bump. After 1.0 it is removed only in a major release.

An experimental surface can change without a deprecation period, but when Idiom keeps an old form working for a while it is deprecated the same way, with the same warning.

How warnings appear

On the CLI, using a deprecated surface prints one line to stderr, never stdout and never inside a --json payload:

Deprecated: <surface> will be removed in <release>; use <replacement> instead. Set IDIOM_NO_DEPRECATION_WARNINGS=1 to silence this warning.

It prints at most once per process for each surface. Set IDIOM_NO_DEPRECATION_WARNINGS to any non-empty value other than 0 to silence every deprecation warning; the deprecated surface still works.

Deprecated now: none.

Removed in 0.24.0: idiom brief list --json --array (deprecated in 0.23.0), the old bare-array shape of brief list --json. Use idiom brief list --json and read .briefs. Moving brief list --json to an object needed no interface version bump because the payload is experimental.

How the promise is enforced

This section is for contributors.

  • INTERFACE_VERSION and the exit codes are defined once, in src/interface/version.ts. Every --json emitter goes through its jsonPayload helper, and a source guard test fails on a pretty-printed JSON.stringify written straight to stdout.
  • src/interface/surfaces.ts records the status of every command, --json payload, MCP tool, MCP tool output and file, and in experimentalOptions the options on a stable command that are not promised yet (the snapshot marks them and the contract test does not pin them). It also holds the Zod contracts for the stable-additive payloads (the ones the MCP server also uses live in src/interface/contracts.ts), and bun run typecheck fails if a payload's type stops satisfying its contract. Tests fail when a new command, --json flag or MCP tool has no status, and when this page's tables disagree with the registry.
  • src/mcp/outputs.ts declares every MCP tool's outputSchema; a tool without one fails at server construction. Type ties there fail bun run typecheck when a typed tool result gains, loses or retypes a top-level property its schema does not match, or a nested promised field (finding detail, issue). The MCP test client validates every successful call against the advertised schema, and test/mcp-output-schemas*.test.ts call every tool.
  • A stable-additive MCP output's promised fields are its contract in mcpOutputContracts (src/mcp/outputs.ts). Its advertised outputSchema is that promised shape plus its loosely typed experimental keys, and a contract test fails unless the advertised schema keeps every promised field, required where promised, and never widens one.
  • Runtime deprecation warnings go through warnDeprecated in src/interface/deprecation.ts, which keeps them to one consistent stderr line, once per process per surface, silenced by IDIOM_NO_DEPRECATION_WARNINGS. Don't print a deprecation warning any other way.
  • test/contract/interface.json is a snapshot of the stable surfaces: commands and flags, exit codes, JSON Schemas for the stable --json payloads and files (generated from the Zod schemas), the MCP tool list, input schemas and output statuses, the promised output contracts of stable-additive MCP outputs (not their experimental keys), and the rule ids. test/interface-contract.test.ts rebuilds it from the code and compares the two with the rules above. Additive changes pass. A breaking change fails, with a message that points here, until INTERFACE_VERSION moves.
  • After an additive change, or after a deliberate bump, run bun run contract:update to record the new snapshot and commit it. It refuses to record a breaking change while the interface version is unchanged. At release time, every change in the snapshot's diff is listed under Interface in the changelog (releases).