You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typing exposes inconsistencies a types-only leaf may not fix. Known so far: the window.store global assigned in src/app/store/index.js, MultistateNumber.error returning a boolean where the option base returns a validation error or null, and the three ErrorDialog prop diagnostics in src/app/App.js. Does the spec carry one follow-up ticket per bug, one list, or nothing? And what does a leaf do when it meets a new one: widen the type and note it, or stop?
Definition. A bug typing exposes is a diagnostic that cannot be cleared without changing what the code does at runtime. Anything the types alone clear is ordinary leaf work and is not listed.
What a leaf does on meeting one. It keeps the behaviour, makes the file compile with the narrowest accommodation, records the bug, and carries on. It does not stop.
Widen a type where that works.
Where it cannot, a @ts-expect-error comment with a one-line reason. It fails by itself once the bug is fixed.
Where it is recorded. One issue per bug on the tracker, filed by the leaf that finds it and linked from that leaf's pull request. The issues sit outside the spec, so the spec closes with them open.
Known today: two. Both are filed when the spec is written, so their leaves can link an existing issue. Neither was confirmed by running the app; both verdicts come from reading the code.
The delete icon's title (src/app/App.js:329). MUI's icon has no title prop; its prop is titleAccess. The value lands on the <svg> as an attribute, so the "Clear console" label probably never shows. Met by the app shell leaf, which uses @ts-expect-error.
MultistateNumber.error (src/app/store/AlignmentOptions.js). It returns a boolean. The base's haveError is error !== null, which is then always true. src/app/AlignmentCard.js:130 renders this option with OptionTextField, which reads haveError, so the "Number of states" field likely shows its error state for a valid number. Met by the alignment-options leaf; the option base already widens error to cover it.
Not bugs (cleared by types alone):
window.store: a deliberate global, assigned in src/app/store/index.js and read by githubIssue.js and report.js. The store-entry leaf adds store to the Window declaration.
The two ErrorDialog diagnostics in src/app/App.js: call sites omit needReload and title, which the propTypes block already marks optional. Typed optional props clear them.
The yup name in the option base: a JSDoc type that names nothing, cleared by the Option leaf.
Activity
jtklein-agents commentedon Nov 16, 2026
Resolution
Definition. A bug typing exposes is a diagnostic that cannot be cleared without changing what the code does at runtime. Anything the types alone clear is ordinary leaf work and is not listed.
What a leaf does on meeting one. It keeps the behaviour, makes the file compile with the narrowest accommodation, records the bug, and carries on. It does not stop.
@ts-expect-errorcomment with a one-line reason. It fails by itself once the bug is fixed.Where it is recorded. One issue per bug on the tracker, filed by the leaf that finds it and linked from that leaf's pull request. The issues sit outside the spec, so the spec closes with them open.
Known today: two. Both are filed when the spec is written, so their leaves can link an existing issue. Neither was confirmed by running the app; both verdicts come from reading the code.
title(src/app/App.js:329). MUI's icon has notitleprop; its prop istitleAccess. The value lands on the<svg>as an attribute, so the "Clear console" label probably never shows. Met by the app shell leaf, which uses@ts-expect-error.MultistateNumber.error(src/app/store/AlignmentOptions.js). It returns a boolean. The base'shaveErroriserror !== null, which is then always true.src/app/AlignmentCard.js:130renders this option withOptionTextField, which readshaveError, so the "Number of states" field likely shows its error state for a valid number. Met by the alignment-options leaf; the option base already widenserrorto cover it.Not bugs (cleared by types alone):
window.store: a deliberate global, assigned insrc/app/store/index.jsand read bygithubIssue.jsandreport.js. The store-entry leaf addsstoreto theWindowdeclaration.ErrorDialogdiagnostics insrc/app/App.js: call sites omitneedReloadandtitle, which thepropTypesblock already marks optional. Typed optional props clear them.yupname in the option base: a JSDoc type that names nothing, cleared by the Option leaf.