Skip to content

Idiom v0.22.0

Choose a tag to compare

@mattskilly mattskilly released this 09 Nov 13:35
· 3 commits to main since this release
  • Error-text no longer reads help text about errors as an error on screen. Reference pages that explained what "failed to load" or "Renderer failed" mean were reported as visible failures. Now a render, load, generic, exception or system-code phrase is skipped when it sits inside main or article, off any failure surface, in a sentence of 8 or more words that mentions it mid-sentence or in quotes (or a paragraph of 40 or more words). An alert, status or log role, a live region, an output or an error-ish class (error-banner, toast, form__error, empty-state) always makes it a failure message, and so does a short standalone line such as Failed to load images under a grid. Stack traces, [object Object], unrendered values, raw JSON and your checks.errorPatterns always report. On idiom.build's own docs, raw error-text candidates dropped from 36 to 0 on the same capture: 24 were explanations already rejected by hand, and 12 were the new examples in the rules reference. No accepted finding was lost, and the field-test targets had no error-text candidates before or after. See rules.
  • Three navigation problems a person could see and Idiom couldn't are now caught. In one app a logo opened a drawer that clicking it again didn't close, one icon meant both "collapse panel" and "3-column layout", and a Settings item expanded with no chevron, so nobody knew it had anything below it. Three new minor rules cover them: idiom:disclosure-affordance (the probe reads each disclosure trigger collapsed and expanded and reports one where nothing on or beside it changes; text-only menu buttons such as "Sort" or "More" are exempt), idiom:opener-cannot-close (the probe clicks an opener a second time and reports a panel that stays open with no close control within 24px), and idiom:icon-meaning (capture fingerprints each control's icon and reports one icon carrying different meanings across a flow's states, once per icon). Recapture to pick them up; older captures report them unavailable. See rules.
  • Idiom catches a bar drawn with nothing in it, a badge stamped over every rail icon, and the same chip on every row. A 64px header with a bottom border showed nothing across the top of the screen at desktop widths, because its only child was a menu button hidden above 600px, and a navigation rail drew an external-link badge over the corner of every icon. Neither was a finding: the empty-state check only looks at collections, and the overlap check ignores decorative glyphs and boxes inside one another. Now idiom:empty-frame (minor) reports a box at least 48×24px with a border or its own fill and nothing visible inside it, at the viewports where it is empty, and says how many children are hidden there; idiom:glyph-over-icon (minor) reports a glyph or badge under 16px covering more than a quarter of its box over another icon inside a control under 64px, with count badges and status dots exempt; and idiom:repeated-row-ornament (info) reports a chip, badge, icon or mark carried identically by at least 80% of 5 or more items in a list, table, grid, menu or rail, naming it and the count. Values that differ between items, such as a status column, never count. Mark boxes a state shows empty on purpose with the state's intentionallyEmpty selectors, or everywhere with checks.emptyFrame.ignore; turn each rule off with checks.emptyFrame, checks.repeatedRowOrnament or checks.glyphOverIcon. The rules start at minor and info: a sweep over every state of the gate and field fixture apps at phone and desktop widths in both schemes found no false positives (docs/field-test/frame-ornament.json). See rules. Recapture to pick this up.
  • The build gate fails only on problems the build introduces. It compared the build with the recorded baseline, so once the target branch moved past that baseline (other merged changes, or a baseline recorded on a branch that was squash-merged and is no longer reachable), every later build touching the same pages was charged with findings that were already on the target branch. Now idiom check --gate and check --changed judge each finding against the build's base, the merge base with the target branch: present there, it is reported as pre-existing and never fails the gate. The base comes from a recorded baseline that is current (recorded at the base, or with only non-UI changes since), a cached capture of the base shared by every worktree of the checkout, or a fresh capture of just the gated states in a worktree of the base. The plan says which, per flow. When capturing the base would exceed the budget, the gate says so, names how many commits its fallback baseline is behind the base, and compares with that baseline. The new idiom baseline advance [flow] records the target branch's tip in the shared cache after merges or nightly, so most gates need no base capture; --commit-file also writes the committed baseline. JSON adds gate.comparisons and source/base on each summary's baseline, additive at interface version 1. See Gate a build.
  • Internal: development builds write the untracked build/; only bun run build:release writes the tracked dist/ bundle.
  • Code examples no longer read as error leaks or copy defects. Error-text and every copy-lint check share semantic-code, ARIA-code and authored block-monospace exclusions. Repeated-word checks respect balanced quotations and semantic quotes; fresh captures preserve nested quotation context and inline-code boundaries. Unquoted stutters and real error leaks remain detectable. Recapture older observations for precise boundaries. See rules.
  • Record true decision execution actors across CLI, prompts and MCP, with runtime agent labels and an explicit CLI override. Append-only Git-range corrections repair historical attribution without changing judgment semantics; the 367 file-276 decisions are corrected to agent.
  • Digest applied decisions are separated by actor and follow attribution corrections. Field-test precision and gates use humans only, retaining separate agent diagnostics. Learned human-miss counts keep their independent evidence.
  • Interrupting a capture is recorded reliably. Pressing Ctrl-C or sending SIGTERM during a capture could exit before the run was marked interrupted, leaving it shown as still running and losing the interrupted line; Idiom now owns those signals during capture. Two commands recovering the same interrupted run at once could also fail with a raw ENOTEMPTY error; the recovery lock is now released safely.
  • Running out of probe time no longer reads as a crash. When slow captures used up a flow's probe budget before a state's probe started, every control on that state was reported as probe failed: deadline duration must be finite and positive. It is now reported as flow probe time exhausted, like the other states that ran out of time.