Repository navigation
Conversation
oxlint 1.95.0 with oxlint-tsgolint runs the correctness category plus the typescript, react, unicorn, oxc, import and jsx-a11y plugins. Rules with pre-existing debt are off in .oxlintrc.json for now, to be ratcheted on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the repo-wide review (slices B and D). Engineering only: each restores documented behaviour and changes no pixel. - HTML skill: one safeHref in core, shared by the palette and notifications; a notification link that is not relative, http, https or mailto is not written (the row is a button, warned once), and side/align are checked against the popover's values before they reach the markup. - LinkTabs: the narrow Select checks the destination before window.location.assign (React already refuses script URLs in the anchor). - Sites: an include must be inside its folder once links are followed; diagram marks resolve from the body's folder; buildPage returns external. - compose: srcset is read the way HTML reads it, so a data: URL's comma no longer lists its base64 as an external reference. - Charts (React and HTML): the step search runs five powers whatever the exponent, and ticks are capped, so values that overflow no longer hang. - takeClick: when both handlers return promises the press waits for both to settle, then raises the first failure. - MenuItem: a render element's onClick is taken into the menu's wait. - Field required: Textarea, Select and Combobox carry required too. - numeric Select with no options renders (no repeat(-Infinity)). - CommandList: focus moves only on a real view change (Strict Mode). - Scroll stops: a hidden control does not count as focusable. - Modals: the outside guard survives a changed forwarded ref, and controls that mount outside later are made inert too. - Contexts are /* @__PURE__ */ throughout. - oxlint: import/namespace off in tests (it depended on dist existing). Browser tests are written but not yet run (the machine was busy). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tchet - DiagramFigure: options depend on whether there is a source, not the source node, so a parent's render no longer measures the figure again. - Diagram motion: a stagger step of 0 (tokens unread, no stylesheet) no longer hands animate() a NaN delay. - TextMorph: strings are split into grapheme clusters (Intl.Segmenter, made on first use), so an emoji with its modifier or a letter with its accent moves as one glyph; code points remain the fallback. - oxlint: typescript/no-misused-spread is on outside tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- verify-packages: an assertion's own message is printed, and kept as the cause, instead of a bare "see the output above" with nothing above. - test-react: the main-module check is isMain, as the other scripts' are. - PR template: the gate is npm run ci:local while Actions minutes are out. - AGENTS: npm run check omits the generated-Swift drift check on purpose. - React README: an app with layered CSS (Tailwind v4) names basalt first in its @layer order, or Basalt can beat its utilities. - Stylelint: ex, cap, ic, rlh and the root forms are raw; container units and lh are refused in type properties. 1lh stays allowed as a line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- combobox: a disabled field's hidden input is disabled too, from the start and when the field is disabled or enabled later, so it submits nothing. - tooltip: the 6px gap to the opener is the tooltip's own (an unseen ::before), so a slow move onto it never crosses the page; hover and keyboard focus each hold it open (WCAG 1.4.13). - notifications: the scheme check is the module's own, against a fixed base (core is every page's cost and stays as it was; the palette keeps its own); no warning. - Budgets raised, recorded in modules.json: notifications 12700, combobox 11350, tooltip 3550, chart 34800 (budgets are soft). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stored-hold bootstrap came only with the loops module (the toggle), so a page with a ring, braille, a loading sparkline or ambient art and no toggle ignored a hold the reader set on another page. compose now adds it for every looping module, and the ring's and braille's held rules moved from loops.css into their own modules. Spinner budget 650 to 720. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… actions The chips drew Mod as the platform's modifier, but the palette's binding refused it (the item got no chip and no key), and a toast action wrote the literal word Mod into aria-keyshortcuts. Both now resolve Mod through the kbd module, as the chips do. The palette opener's Meta-or-Ctrl rule is unchanged (it is the skill's documented rule; DECISIONS 244 differs, which is a ruling, not a fix). Budgets: kbd 2950, palette 11500, toast 16150. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A second Basalt.init() appended a second narrow menu and a second set of document-level handlers on the same trigger. The header is marked when it is wired and skipped after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ons are current The duration-loop tokens now hold the ring, braille, fade and ambient periods; the skeleton pulse and the indeterminate bar still have none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…kens' alphas Slice A: a media query anywhere in React's sheet, the skill or the sites may name only size-breakpoint-md or -lg (other widths are a container's), and every white or black wash percentage in React's sheet must be state-hover's or state-selected's own alpha in that theme. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Slice E: a hung browser test used the six-hour default and a newer push did not cancel the run it replaced. ci:local's drift check is unaffected (no run step changed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…toast Mod without kbd - bundle.test.mjs: the limits the fixes need, measured and rounded up to the next 50 as before (Promise.allSettled in every button's press, the modal guard, the required field in Select, LinkTabs' check); the size table regenerated. safeHref lives in its own module, not utils. - tooltip: the unseen strip is 8px from the padding box (the 6px gap, the rim and the .98 entrance), so the first pixel under the opener is inside it. - toast: Mod resolves without the kbd module (a toast-only page has none). - Budgets: toast 16200, palette's usage text 1400. - The CommandList Strict Mode test is removed: fixtures are production builds, where React does not replay effects, so it passed on the old code too. The fix stands on its reasoning, untested. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Decided by the owner with Fable and Astra (two rounds) and Muse Wonder Full as tie-breaker, 23 Nov 2026: a syntax-tree check, a per-file ledger for the HTML skill, a fixed base for safeHref, tel allowed, tools/review in scope, composed page bodies not linted. - AGENTS.md rule and Checks row; SKILL.md line; core usage; React README. - safeHref (relative, http, https, mailto, tel; the string or null; a fixed base) exported from the React package and published as Basalt.safeHref, with _.pick; esc escapes the apostrophe. Palette and notifications use core's; LinkTabs (React and skill) checks before onNavigate or the navigate event hears of a link. - Diagram marks are a relative path, https or a data: image; cssUrl escapes \r and \f. compose lists a javascript: link in a body. - scripts/check-sinks.mjs (oxc-parser, a new dev dependency the owner chose): HTML sinks, unchecked navigation and postMessage to any origin; reasons in sink: comments or tools/html-skill/src/sinks.allowed.json. A lint step. - oxlint: no-new-func, no-script-url, react/jsx-no-script-url, react/no-danger, react/jsx-no-target-blank, react/iframe-missing-sandbox, unicorn/require-post-message-target-origin; every hit reasoned or fixed. - The modal guard looks only at nodes added later and never at a portal or the toasts (it had made a second modal's controls inert). - Tests: one URL table for both runtimes, planted failures and passing twins for every sink kind and oxlint rule, the ledger's data-taking files in the hostile probe (a diagram added to it), both LinkTabs refusing. - Budgets (soft, recorded): skillMd 12900, core 35650, core usage 3200, link-tabs 5900, diagram 93000; React limits LinkTabs 142150, SearchDialog 89550; size table regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts were budgets both sides raised: each limit is now the merged tree's measurement rounded up as before (recorded in bundle.test.mjs and modules.json); generated parts and the size table rebuilt. Main's new sinks (runs.js, diagram-motion.js, terminal.js's stage line) are in the ledger, and react/globals joins the React Compiler rules kept off for existing debt (main's Button warn-once flag). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
A repo-wide code and design review of
mainat7db20640(five read-only slices: tokens and CSS, React core, diagrams/charts/motion, HTML skill/sites/brand, Swift/CI/tooling), the engineering fixes it found, type-aware oxlint, and a new safe-sinks rule with its checks. No pixel changes: every fix restores documented behaviour.Lint.
oxlint --type-awareruns beside Stylelint (correctness plus the typescript, react, unicorn, oxc, import and jsx-a11y plugins; rules with existing debt are off in.oxlintrc.jsonto ratchet later). Stylelint now refusesex,cap,icand the root units, and container units andlhin type properties.Security fixes. Notification links and
viewAllHrefwere written after HTML-escaping only (ajavascript:URL survived);side/alignwent intoinnerHTMLas written;LinkTabs' narrow Select sent any string tolocation.assign(React and skill); a site include could read through a symlink outside its folder; diagram marks took any URL.Behaviour fixes.
MenuItem: arenderelement's promise wasn't guarded, so it could send twice.Field requireddidn't reachTextarea,SelectorCombobox.CommandList: stole focus under Strict Mode.Select: threw.Mod: palette item keys refused it, and toast actions wrote it literally intoaria-keyshortcuts.init().srcsetdiagnostics: a data URL was misreported as external.TextMorph: split emoji and combining marks.DiagramFigure: re-measured on every parent render.Tooling, CI and docs. CI cancels superseded PR runs and times jobs out;
verify-packagesprints assertion messages; the README says how a layered (Tailwind v4) app orders@layer basalt; tests tie the wash percentages to the state tokens and viewport queries to 720/1024.Budgets moved (soft, owner's word; each recorded in
modules.jsonorbundle.test.mjswith its measurement). The merge with PR #127 added both sides' raises.Decisions
safeHref), and named Muse Wonder Full tie-breaker for the rest.safeHref(relative,http,https,mailto) before render or navigation, options come from a fixed list. Also agreed: the same five oxlint rules, a custom lint step, planted-violation fixtures, and noinnerHTMLrewrite or sanitiser." Held: "The custom check reads text, not a syntax tree." "safeHrefparses against a fixed base." "No linting of authored page bodies." "Whethertel:passes the check is the owner's call; I recommend yes."tel:passessafeHref— Yes (telonly, notsms). 2. Lint authored page bodies incompose.mjs— No (keep Fable'sjavascript:reporting instead). 3. Includetools/reviewin the sink check — Yes, with reasoned exceptions."CommandListStrict Mode fix has no test: fixtures are production builds, where React replays no effects.New runtime dependencies
None. New dev dependencies:
oxlint1.95.0,oxlint-tsgolint7.0.2008, andoxc-parser0.160.0 (the sink check's parser; the owner chose the syntax-tree check).Outstanding follow-ups (not in this PR)
Needing a decision:
destructiveto a red fill;Geist Fallbackin standalone pages;Engineering:
.node-version;tools/reviewround registries;pixel.test.mjs's "picks every module" fails onmaintoo.Checks
npm run lintnpm run ci:localon the PR's head: result posted below🤖 Generated with Claude Code