Skip to content

Idiom v0.21.0

Choose a tag to compare

@mattskilly mattskilly released this 08 Nov 00:22
· 4 commits to main since this release
  • idiom nightly: a scheduled full check that files new problems into the tracker's triage. Builds check only what they change, and a scheduled full check left its new findings in a report nobody opened; --emit-tickets wrote files, but nothing filed them where the team triages work. Now idiom nightly checks every flow against its baseline (--since-baseline) and files each new finding cluster at or above a severity (--severity, nightly.severity, default major) as a ticket: with autobuild through ab ticket create --state <triage-role state>, labelled idiom (or --label/nightly.labels) plus the finding's category, with the finding ids, evidence paths, the commit range it appeared in and a Done when criterion. Without autobuild it writes the proposals to .idiom/reports/nightly (or --out) and prints the digest. A committed .idiom/filed-tickets.json remembers what was filed, so a cluster already filed is updated in triage, left alone once work has started, and refiled as a regression if its ticket was resolved; acknowledged and rejected findings are never filed, and nothing ever leaves triage. --dry-run previews; exit 2 when a flow could not be checked, 1 when a filing failed. idiom init --nightly now adds a nightly job that runs it with a cached ledger, and every wiring plan prints a cron line and the idiom nightly --print-schedule launchd command. See nightly.

  • Questions only a person can answer are asked, not failed, and the answer is remembered. A gate either failed the build on two references that disagree or an unruled scale value, sending the implementer to "fix" something that may be intended, or passed it silently. Now idiom check --gate exits 4 when explicit reference conflicts or ruling questions are the only gate failures (additive at interface version 1; run errors, default deferral and ordinary findings still take precedence), and its JSON adds decisionNeeded plus a ready-to-answer decisionQuestion. idiom decide --pending [--json] lists open questions; idiom decide --decision <id> records a ruling answer in .idiom/decisions.jsonl, and --build/--escalation record where an answer came from. DESIGN.md rulings and logged answers form one effective law, so a later run does not ask again. The shipped Autobuild gate is now an agent step using the idiom-verify skill: it escalates one numbered question per decision with crops, citations and exact idiom decide commands, applies the operator's explicit answer, commits the memory and asks for re-verification on the new head. Managed setup migrates the old check recipe. Brief ambiguities are not routed yet: the brief contract has no explicit ambiguity marker with a stable identity and answer options. See Pending decisions.

  • Attach a decided brief to an autobuild ticket, and the build is held to it. Autobuild judges every phase of a build against a ticket's design asset, but nothing connected Idiom's decided briefs to it, so builds implemented from prose and code review never saw the decision. Now idiom brief export <slug> --out <dir> writes a self-contained asset (a README with the decision, rejected options and checkable criteria naming the Idiom rule that verifies each, a machine-readable criteria.json, and reference screenshots of every asserted state at every viewport and scheme), and idiom brief attach <slug> --ticket <id> exports it and runs ab ticket attach <id> design, never moving the ticket's state, then records the ticket on the brief. In the build, idiom check --gate checks the asserted states instead of skipping, idiom verify judges them even without embedded findings, and the asset's mismatches always block, naming the brief and asset. MCP gains idiom_brief_export, idiom_brief_attach and ticket on idiom_brief_decide; the idiom-verify skill no longer skips a build carrying an Idiom design asset. See Attach to an autobuild ticket.

  • Interactive init wiring offers short, removable Idiom sections for installed Autobuild plan, implement and code review skills, with exact diffs and one confirmation. Doctor reports each section's health; independent Autobuild upgrades preserve the customizations. See Autobuild configuration.

  • The GitHub Action is cheap enough to leave on for every pull request, push and nightly run. It ran only on pull requests, needed a named flow, and always installed Chromium, ran setup and captured twice even when a PR changed no UI. Now it plans first with the new idiom check --gate --plan-only: a change with no UI exits 0 with no UI changes since <base>; skipped before any browser install, setup or capture. flow is optional: without it the Action checks the flows the change affects, or every flow on a schedule. push compares with the previous commit on the branch (job summary, no comment) and schedule checks every flow against the newest recorded baseline. A runner too busy to finish (exit 3) defers that flow with a neutral check run naming the reason, instead of failing; that check needs checks: write, and without it the Action warns. Setup runs once per revision for all flows, evidence has one directory per flow, and a new outcome output says skipped, deferred, checked or error. See GitHub Action.

  • idiom doctor shows where Idiom runs, and what never fires. A setup with no project file, an Autobuild verifier whose paths never match, or no agent instruction looked the same as a working one. Now idiom doctor and idiom init --validate end with a Where Idiom runs section: one line each for the Autobuild gate step, the Autobuild verifier step, the GitHub workflow, the AGENTS.md, CLAUDE.md and Cursor instructions, Claude Code plugin hooks, Codex MCP and the git hook, marked wired, missing, stale or not applicable, with the exact command that fixes it. Without .idiom/project.json it says hooks and gates are inactive until idiom init runs. It is read-only, uses no network or processes, and never changes the exit code. See Where Idiom runs.

  • idiom init wires Idiom into every place the project builds UI, in one plan you confirm once. Only Claude Code got hooks; Codex, Cursor, Copilot, Gemini CLI and OpenCode had nothing telling them to check UI, plain GitHub projects copied a workflow by hand, and there was no git-hook option. Now init detects AGENTS.md, CLAUDE.md, .cursor/, .github/workflows/, husky, lefthook and autobuild.toml (and notes whether claude and codex are on PATH), prints one plan with exact diffs, and applies it after a single confirmation. It writes a marked Design QA (Idiom) section to AGENTS.md and CLAUDE.md (triage before speccing UI, read idiom context, run idiom check --changed, don't call UI done with blocking findings), a Cursor rule, and .github/workflows/idiom.yml (the Action on pull requests, a full check of every flow on default-branch pushes, optional --nightly). Opt-ins: --git-hook (pre-push idiom check --gate --fail-on blocker in husky or lefthook), --design-review (an Autobuild consent landing rule for tickets labelled design-review). idiom init --wire rewires an initialized project; --dry-run previews; --skip-wiring <surface> leaves a surface byte-identical. Every write is a marked section that reruns update in place and you can delete by hand. The setup prompt and MCP idiom_init report what was detected and left; MCP never applies wiring. --yes now applies the default plan: see upgrading. See init wiring.

  • Autobuild checks ordinary UI changes by default. Interactive idiom init and idiom upgrade offer the deterministic, pathless idiom-check gate with an exact diff. Busy-host deferral warns through --deferred warn; completed real findings still fail. Finding verification is a separate opt-in using a detected project flow and project-derived paths. The legacy ab-verify-idiom skill migrates to idiom-verify with its discovery link and pristine ownership, preserving customization and historical bytes. Conflicting destinations remain untouched.

  • The HTML report no longer crashes on runs with many tall screenshots. It inlined every screenshot, so a flow of long pages at several widths and both schemes made the report longer than JavaScript allows and check failed with RangeError: Invalid string length after capturing everything. Screenshots are now inlined smallest first up to 96 MB; larger ones are linked from the report instead.

  • Internal: idiom.build is now checked by Idiom in this repository's own verify gate.

  • Skill upgrades say what happened to each skill, show the conflict, and idiom init no longer offers to overwrite your verifier. idiom upgrade listed one line per file, so a person or agent had to work out each skill's overall result, and a conflict named the files to compare without showing the overlap. Now each skill starts with one summary line (idiom: merged (2 files), ab-verify-idiom: current) ranked conflicted > merged > resolved > adopted > installed, and an overlapping edit prints the three-way merge with the local, base and incoming sides marked, labelled as not written to disk and capped at 80 lines. A file that is new in a release now reports adopted; installed means a first install. Running idiom init on an existing idiom or ab-verify-idiom skill that differs used to ask whether to replace the verifier, and a yes discarded local edits. It now goes through the same decision as idiom upgrade without a model: adopted, merged, or left untouched and reported as conflicted. See upgrade.

  • Older Idiom versions keep working when a teammate's newer Idiom writes a record type they don't know. Acknowledgements added acknowledge and unacknowledge lines to .idiom/decisions.jsonl, and an Idiom from before them refused to read the whole log, so one teammate or CI runner on an older version broke as soon as anyone acknowledged a finding. Now readers of decisions.jsonl and learned.jsonl skip a record whose type they don't know, keep every other record, and print one note per command on stderr: Skipped 3 decision records written by a newer Idiom (types: acknowledge). Upgrade to use them. Malformed lines and invalid known records still fail. Commands that write these files keep skipped lines byte for byte. See Records a newer Idiom wrote.

  • idiom context selects app-screen or page-composition guidance from the named flow kind and project page profile, with precise labels for existing checks.

  • Brief plans prepare real screen inventory and every block/item state before options, including named opened states. Optional screenQuestion and inventory persist in brief records; JSON/MCP plans add inventoryInstructions and stateChecklist.

  • The Idiom skill and pipeline recipes bound authorized repairs to the top three findings per round and three rounds, reporting remaining findings without weakening completion gates.

  • See what humans found that Idiom missed, and whether it is covered yet. A heavy user's team kept finding design problems by hand without a way to tell whether Idiom was catching up. Check summaries, reports and idiom digest now count logged, covered and open human-found misses, with counts and open entries in check/digest JSON. idiom learn --list shows each entry's status; a later matching rule finding on the same flow and state covers it automatically, or --covered <id> --by <rule|fixture> records coverage explicitly in learned.jsonl. --fixture <id> --out <dir> exports an open miss's captured DOM snippet and expectation skeleton for your own regression tests. See learn.

  • Detect blank previews and loading feedback that never resolves. New minor rules idiom:visual-blank and idiom:loading-stuck inspect lone media and persistent spinners, skeletons, busy regions and indeterminate progress. Screenshot evidence and continuous interval histories support offline review and conservative rechecks. Configure checks.visualBlank (including colour-swatch selectors), checks.loadingStuck, state loadingSettleMs (default 5000 ms) or loading: true for intentional loading. Primary capture reaches DOM readiness even with hung image/iframe requests. The loading window overlaps existing visual settling; normal captures may take up to five additional seconds. These configuration fields, categories and optional V2 evidence are additive to interface version 1.

  • Console findings name the failed request, keep the server's side, and resolve CSP errors to the element. A heavy user's run reported two Failed to load resource: … 500 findings with only a screenshot: the failing URL was in console.jsonl but not the finding, and nothing showed why the server answered 500. Another was a Content Security Policy error on about:srcdoc with a line number and nothing naming the component. Now a failed sub-resource's finding leads with its request, such as GET /preview/123?thumbnail=1 returned 500, taken from the network record with secret-named query values redacted. For a server Idiom starts, its stdout and stderr are kept in server.log in the run directory (2 MB cap, redacted, never sent to a model provider), and a 5xx finding attaches up to 20 lines from 2 s before the request to 2 s after its response. CSP violations are recorded in every frame, srcdoc ones included, and name the directive, the blocked resource or inline, the element and the owner iframe. Finding identities for these console errors change. See rules. Recapture to pick this up.

  • Declare exact component heights and spacing. checks.components now accepts width, height or both, with optional names and exact one-axis pixel or ratio tolerances. New checks.spacingTargets checks gaps between two selectors or consecutive visible direct children; idiom:spacing-target is major by default. Captures save measurements for offline review. The configuration guide and idiom init setup prompt now show how to capture opened drawers, dialogs and menus.

  • Interaction geometry excludes closed/transparent/off-screen menus from adjacent gaps, measures field-label gaps from text fragments, and counts real delayed disclosure effects inside popper wrappers. Card-owned actions now support grid stacking, edge overhangs and partial-cover links; ambiguous patterns report once per card group as info. Buried and cross-card obstructions still report.

  • New minor idiom:detached-flyout finding measures disclosure panels more than 24px from their trigger's nearest edge. Recapture to obtain panel geometry.

  • A killed run says so, and keeps what it finished. A heavy user's laptop restarted during a run; Idiom left no report directory and printed nothing, so nobody knew the run had died or how far it got. Each run's report directory now exists from its first second, with run.json saying status: "running", the run id, the commit and the planned tuples, and each tuple is added to completedTuples as its evidence is saved. On Ctrl-C or SIGTERM Idiom keeps the finished tuples, marks the run interrupted, prints Interrupted: run <id> kept 7 of 20 tuples (unverified). and exits non-zero. After a hard kill, the next command that lists runs marks the orphaned run and prints Run <id> was interrupted (process gone) after 7 of 20 tuples. once. Reports, decisions, baselines and MCP read only complete runs. Interrupted runs cannot be resumed. See troubleshooting.

  • Failed tuples no longer void the first check. When check records the first baseline automatically, three timed-out tuples out of 120 used to throw away the review of the other 117. It now reports the findings for the successful tuples, lists the failed ones as coverage gaps, records no baseline, and exits 1 (even with --fail-on never) with Baseline not recorded: 3 of 120 tuples failed (<list>). Findings for the other 117 are above. MCP idiom_check, named-flow and changed, returns the same partial findings with the failed tuples listed instead of an error. See check.

  • The probe now tests that what it opens also closes. A heavy user found by hand that a drawer's "Start from…" menu stayed open on clicks outside it and on clicks into the page's canvas iframe; it closed only through its own trigger. Idiom pressed Escape only to reset its own state and never judged dismissal. Now, for each popover, menu or dialog a probe click opens, it presses Escape, clicks an empty point outside, and clicks into a visible same-origin iframe when there is one, reopening the panel between tests. A panel that stays open is idiom:popover-not-dismissed (major, category popover-dismissal), naming the iframe when that was the click it ignored; Escape that closes the panel but drops focus to the page body or elsewhere is idiom:focus-not-returned (minor, category focus-return). In-flow panels such as accordions are not popovers and are not tested. Alert dialogs, <dialog closedby="none">, and modals matched by a flow's new explicitDismiss selectors are exempt from the clicks, not from Escape. At most 12 overlays per state are tested inside each control's budget, and probe coverage reports the ones not reached. See rules. Recapture to pick this up.

  • Baseline captures work in busy checkouts. Optional baselines.ignoreDirty repository-root globs exclude safe tracker/scratch changes while recording source.ignoredDirtyPaths; validation rejects discoverable build inputs and broad exclusions. Source changes after capture starts mark provenance dirty, with source.changedDuringCapture when HEAD moves. capture and check --ref <commit-ish> build a fixed committed revision in an owned temporary worktree, install its dependencies and keep reports, decisions and baseline state in the invoking checkout. Worktrees are cleaned on completion or interrupt. These config fields, flags and optional metadata are additive to interface version 1. See Baselines and fixed-commit capture.

  • Acknowledge a finding that is tracked elsewhere, so it stops failing the gate until that work is done. A finding already ticketed in your own tracker, or a known issue you are not fixing yet, counted as new and failed --fail-on on every run, so a busy project's check never went green and its baseline never moved. idiom decide finding-12 --ack ABC-123 [--note <text>] [--until <YYYY-MM-DD>] records an acknowledgement: the finding stays in report.md, the HTML report and check output, marked acknowledged (ABC-123) and listed under Acknowledged (not counted), but no longer counts toward --fail-on, blocking or the new count in any check mode, review --since-baseline or sweep. It is not a judgment: it never accepts or rejects. It lapses, and check says why, when you run idiom decide finding-12 --unack, the day after --until, when the finding becomes more severe or moves to a different rule, or when the reference is a ticket in the local ticket tracker that reaches done (finding-12 was acknowledged for file-1592, which is now done; it counts again.). Remote trackers are not queried. decide --list shows each acknowledgement and whether it holds, and decide <finding> now works as a shorthand for --finding. Over MCP, idiom_decide takes decision: "acknowledge" with a reference, or "unacknowledge". See Reject, accept or acknowledge.

  • idiom digest: a short daily summary instead of a 300-line report. A PM agent triaging a scheduled check had to read the whole report to learn whether anything changed, which on a bad day took longer than the findings were worth, and on a quiet day never said "nothing new". idiom digest [flow] compares the latest full check of a flow with the previous complete one, not only the baseline, and prints at most 25 lines: a verdict (Nothing new since <run>, <time>. or 3 new, 1 fixed since <run>.), failed, interrupted or busy-host tuples, one line per new finding at major or above and per fixed finding, then counts for the rest. Acknowledged and rejected findings only appear in the counts, and findings at a coordinate either run failed to capture are counted as not compared rather than new or fixed. --since <run|date> picks the comparison, and --json returns the same structure with complete lists. It only reads files: each check now writes a small digest.json record in its run directory. The docs show the scheduled check then digest recipe and a gate step that prints the digest on failure. See digest.

  • Tie a new finding to the commits and ticket that introduced it. A heavy user wanted each design regression handed to the build that caused it, but findings recorded only when they were first and last seen, so finding the change meant reading history by hand. Now, when check finds something new against the previous complete check of the flow, the report, idiom digest and idiom decide --list say which commits it appeared between (appeared between abc1234 and def5678 (4 commits)). Within that range Idiom lists the commits whose files map to the finding's state, using the same mapping as check --changed. When only one qualifies it says likely introduced by def5678 "<subject>", with any ticket id from the commit message or a merge's pull request title (pattern attribution.ticketPattern, default [A-Z]+-\d+|file-\d+). To find the exact commit, idiom bisect <finding> captures only that finding's state at commits in the range, in detached worktrees, and reports the first one where it appears. It never touches your checkout or run history. See Where a new finding came from and bisect.

  • Top issues rank by impact within a severity. A finding that appears in several states or viewports, sits on a primary action or region, targets an interactive control, or is broken behaviour now ranks above single-state cosmetic findings of the same severity, even when the cosmetic one scores higher. Severity still comes first, and scores are unchanged. The same order applies to the report, sweep, tickets and idiom digest. See Ranking.

Interface

  • Additive wiring and doctor surface IDs: autobuild-plan, autobuild-implement, autobuild-code-review. Interface version remains 1.

  • idiom doctor --json, idiom init --validate --json, MCP idiom_doctor and idiom_ready gain an additive surfaces report (root, initialized, notice?, ms, entries[]). Interface version remains 1.

  • Additive check --deferred fail|warn: fail retains default exit 3; opt-in warn preserves deferred JSON/evidence, warns on stderr and continues severity gates. Exit 2 remains a failure. Interface version remains 1.

  • Upgrade reports gain optional autobuild outcomes and proposed config/migration previews. JSON, dry-run and noninteractive upgrades do not approve wiring changes. Current verifier identity/path becomes idiom-verify; historical release blobs stay immutable.

  • idiom upgrade --json gains skills[] (name, outcome, files) and an optional per-file conflictText (additive).

  • A file added upstream since the installed release now reports adopted during an upgrade instead of installed; installed means a first install.

  • idiom_init structured output gains an optional skills array when init upgraded existing skills in place (additive).

  • The init confirmation kind replace-autobuild-skill is removed; init no longer replaces a differing verifier skill.

  • Readers of decisions.jsonl and learned.jsonl skip records of unknown type; adding a type to these files is additive (interface version unchanged).

  • Additive info finding severity and detached-flyout check/category; interface version is unchanged. Info persists in normal records and reports, sorts below minor, and is excluded from severity gates and digest alerts.

  • console.jsonl records gain optional request.method, request.url, request.status, request.at, request.endAt and csp; finding evidence gains an optional serverLogExcerpt; capture runs gain an optional server.log (additive).

  • Version-1 run.json gains optional lifecycle fields status, runId, owner, startedAt, updatedAt, endedAt, completedTuples and interruption (additive). A record without status is a legacy completed run. Report directories now appear when a run starts; readers that list runs skip running and interrupted ones.

  • check --json and idiom_check gain optional captureFailures and baselineNotRecorded (additive). A first check with failed tuples exits 1 with these fields instead of failing with automatic baseline needs a successful capture.

  • New experimental idiom digest [flow] [--since <run|date>] [--json] command and its experimental digest JSON payload (additive).

  • Each check's run directory gains an experimental digest.json capture artifact (additive).

  • New experimental idiom bisect <finding> [--json] command and its experimental bisect JSON payload (additive).

  • idiom decide --list gains --json, an experimental decide --list payload ({ lifecycles }, each with an optional introduced); --json without --list is an error (additive).

  • Each check's run directory gains an experimental attribution.json artifact (additive). digest --json items gain an optional introduced, and each flow gains attribution (previousCommit, commit, or null) (additive).

  • .idiom/project.json gains an optional attribution.ticketPattern (additive).

  • check --json issues[] gain impact and impactReasons; sweep proposals gain impact (additive).

  • Finding order within a severity changed (impact before score). Ranking is not frozen and can change between releases.

  • Additive: optional component name, width and height (at least one dimension required), checks.spacingTargets, the spacing-target check/category and idiom:spacing-target rule. V2 observations gain optional spacing evidence and support one-axis component targets. Existing two-axis declarations and old artifacts remain valid; recapture to collect spacing evidence.

  • .idiom/decisions.jsonl gains acknowledge and unacknowledge lines (additive). Idiom versions without this feature refuse to read a decision log that contains them, so upgrade every checkout and CI runner that reads the log before acknowledging a finding.

  • findings.json findings gain an optional acknowledgement (additive).

  • check --json and review --since-baseline --json (comparison) gain acknowledgedFindings and acknowledgementLapses; summary findings gain an optional acknowledged (additive).

  • idiom_decide gains the acknowledge and unacknowledge decision values and optional reference and until inputs; idiom_check results add counts.acknowledged and, when present, acknowledgedFindings and acknowledgementLapses (additive).

  • idiom decide gains an optional [finding] argument and --ack, --unack, --note and --until (additive).

  • Navigation and readiness timeouts get one retry after the other tuples, with doubled deadlines. Exhausted timeouts on a busy host produce one deferred review result with load/cores or ready-URL slowdown evidence and the uncaptured state list. Idle-host timeouts remain blockers; recovered captures pass normally. Reports record retries and cropped screenshots. Full-page screenshots are capped at 16000 CSS px by default, with a configurable cap and per-state screenshot timeout. Probes that reach no evidence because the state timed out recommend an idle-host re-run.

Interface

  • Additive at interface version 1: check exit 3 for host deferral, optional verdict: "deferred" and timedOutTuples JSON fields, propagated by changed/gate checks even with --fail-on never. An incomplete first review skips automatic baseline initialization.
  • Optional inputs: capture.hostPressureThreshold, capture.maxFullPageHeight, and web/Electron state screenshotTimeoutMs. Version-1 run records gain optional host, retry and deferred-coordinate evidence; screenshot geometry gains optional croppedFromHeight.