This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index at /llms.txt, or add .md to any page's URL.

Repair common mistakes

Refused or misleading form
Accepted direction
action save writes item
Delete the clause; effects come from the body
transform on a box, inline or through class, beyond translate, rotate and scale in that order (lower-attr-tag)
A box transform that is those functions, each at most once, in CSS's individual-property order (translate, then rotate, then scale) lowers to the rows it equals: transform="translate(0px, 25px) scale(0.8)" is translate="0px 25px" scale=0.8; scale(x, y) sets x and y separately, scaleX(x) sets scale="x 1", and scaleY(y) sets scale="1 y"; none is no row. The rest (matrix, skews, 3D scale, 3D functions, a function repeated or out of order, a bound string) is deferred (LLP 1055.000 D5): write the rows. A transform beside a translate, rotate or scale row on the same element is refused; keep one. SVG elements keep the whole property.
Component contract assertions
Authored test blocks exercised by the driver
provide theme = value around view children
Component provide section, wrapper component if needed
items[0]
first(items) or items.at(0), an option to match
items.map(x => Row(...))
Keyed for with Row(...) in its body
{ title: value }
Declared record constructor
[...xs, x] / xs.push(x)
xs.concat([x]) / the same, assigned: xs = xs.concat([x])
{...old, title: value}
Shape(old, title=value), with the record's declared shape
if name for a string
if name != ""
selected.title when optional
Exhaustive match selected
press={() => save()}
press=save or press=save(captured)
Copying an action's statements into another
Call it: arrive(path); the callee runs in the same commit
A helper that reads a slot its caller just assigned
Pass the value: follow(next) (analyze-read-after-assign)
button press=add with no child, or only an image "symbol:…" (lower-button-unlabelled)
Its words in it (text "Add"), or aria-label="Add" on a symbol-only button
A button inside a button, as a React Native Pressable in another (lower-nested-button): a press is the inner one's alone, but the outer's accessible name reads both ("Note Listen")
A row of the outer's content as one button (flex=1) and the inner one beside it
A heading at the top of a route's content that says its header heading again, which shows twice under the iOS bar (lower-title-twice)
Drop it; the bar's title names the screen. A heading below names a section: text "Results" role="heading" aria-level=2
An SVG use whose literal href="#id" targets a foreignObject or a subtree containing one (lower-svg-use-foreign-object). Only unconditional literal SVG ids from one source definition resolve. Repeated copies must all contain a foreignObject; a conditional copy, a copy without one, ids from different source definitions, dynamic hrefs and dynamic ids stay quiet. References inside the target are not followed
A foreignObject draws nothing through use. Place it directly in the SVG for the web; native hosts refuse it. For content on every host, position an ordinary box over the SVG
A list and its detail (or a form) swapped by if showingDetail / else or complementary sibling ifs (also with the same viewport-only or term), each with its heading, at the top of the view or inside a route; or pages named by one state, page == "detail", in three arms or sibling ifs or more, with or without headings (lower-screen-by-state). A tab bar's state, a radio group's, and a slot component's choice of how to wrap its children (the same content in a canvas or a plain scroll) stay quiet
Each screen a route: routes, a row that pushes its detail, back to return; the web gets Back, reload and links, and a wide window the split where the list's route asks, navigationSplit="split" (contract vocab screen)
A box's border side with a positive written width and no written line style, including an affected arm of a class choice (lower-border-unstyled); CSS draws no line. A shorthand that omits its style resets it to none; an omitted width resets to 3px, so border="#ccc" also warns. Colour longhands alone, zero widths, deliberate styles (including none and hidden) and native controls stay quiet; bare buttons and fields are checked
Add border-style="solid" for all four sides, or the affected side's border-top-style="solid" (and likewise right, bottom or left). For a width from a conditional class, add the style inside the class named by the warning, preserving the other arm. A shorthand can say both: border="1px solid" before the colour
column padding=24 width="100%", as wide as its parent's content plus the padding: it runs past the screen's right side (lower-width-padding)
Drop the width (a block or a stretched flex item fills its parent), or box-sizing="border-box"
An absolute width ceiling containing scalable text stays bounded at accessibility sizes (lower-text-px-width). The lint follows width and max-width through their bounds: a fixed maximum alone caps growth; a minimum alone does not. A fixed minimum can override a smaller cap, but a growing or unknown minimum makes the lint stay silent. Absolute lengths include numbers, px, pt and absolute calc(); em is fixed against an authored absolute font. Flex can supersede width on a row’s main axis; zero grow with an auto basis keeps its ceiling, and flex does not size a column child’s width. Effective classes, declaration order and parent direction count. Unresolved classes and uncertain sizing stay silent. A computed display leaves the node uncertain but its children are still checked; known-hidden subtrees are skipped. Text in absolute positioning, popovers and dialogs is checked inside that subtree, without counting against enclosing boxes. Text inherits the platform root font. Native Apple controls use the Apple control font, which can scale with Dynamic Type; web controls inherit, and Linux control defaults are fixed. An absolute font size stops scaling within that boundary; inherit and unset use the parent font even on controls. The warning reads lowering’s grouped-list typography and checks layout boxes containing text runs or text fields, including HTML inside SVG foreignObject; an inline run’s own width does not constrain its paragraph
Express the width and its bounds in rem, such as width="3rem" or max-width="3rem", so they follow the root font, or let the content determine the width
text "Results" aria-level=2, a level with no role, which is no heading to a screen reader on any platform, gets no heading style and is not the iOS bar's title (lower-level-without-heading)
text "Results" role="heading" aria-level=2; role="heading" alone is level 2
column role="dialog" aria-modal=true for a modal you lay out (lower-dialog-role)
A sheet, a route with navigationPresentation="modal" (a navigation stack); a confirmation is dialog role="alertdialog", opened with showModal(id)
image "symbol:heart" -exact-tint-color="-exact-secondary-label", which Apple draws in the text colour: a symbol is drawn in its color on every host, and -exact-tint-color colours a raster image or a native button's face (lower-symbol-tint)
image "symbol:heart" color="-exact-secondary-label"
`${n} cards`, which reads "1 cards" (lower-count-plural)
The noun chosen by the number: `${n} ${n == 1 ? "card" : "cards"}` (contract vocab plural)
for p in posts with users.filter(u => u.id == p.userId) in the row: every update walks posts × users, about 100 ms at 1,000 × 1,000 on a Mac (lower-row-lookup)
Join it in the data module: the source gives each post the field it reads (userName). A root derive evaluates a small view-only join once per settlement; a child derive repeats it at each read. Both remain subject to the list-step bound
for t in tokens with an offset tokens.slice(0, tokens.indexOf(t))… in the row, or a fn that walks the list it is passed: each row's work grows with the list, and past 65,536 steps that binding is unset (lower-row-own-list)
Count it once in the data module: the source gives each token the field it reads (at)
RoundButton(label="Start quiz", …), cut to "Start q…" in its 80-point circle (lower-round-button-label)
The circle is for a word (Start, Stop, Lap); a screen's main action of more words is button buttonStyle="filled" with its text (recipes/content-design.md)
now = performanceNow(), then now read in the same action (analyze-read-after-assign)
Bind it and read the local: let stamp = performanceNow(), now = stamp, then stamp
A child owning a resource, mutation or task used under a for over data or in a virtualized list (type-child-resource)
Put the resource family, mutation or shared task in the enclosing screen and pass its answer or action to the rows
fontSize, radius, resizeMode
font-size, border-radius, object-fit
width=20px
width=20 or width="20px"
Unbounded scroll
Real height/max-height or flex in a bounded layout
state item = none with no usable type
Declare it (state item: option<Item> = none), or rethink whether it is mutable state
let next = … where next is already an action, state or other name (type-let-shadow)
A name of its own: let revised = …
let op = "", then op = "tab" in a branch (type-let-reassign)
Choose the value where it is bound: let op = key == "Tab" ? "tab" : "insert"; or a state
mutation exported and action exported (type-duplicate-name)
One name per declaration: a component's props, states, derives, resources, mutations and actions share names (action fileSaved)
Dynamic navigation template
path("route", args…)
Unconditional per-frame app work
CSS/presentation motion where possible; a frame task gated on the state that needs it (task fly when flying)
An always-on every that checks whether a toast expired
task hide when toast != "" key=toastUntil with after(ms, clear)
Add a function because it exists in JavaScript
Check the roster or put the operation in the data module; len, xs.reduce(…), xs.find(…), push(xs, x) and their kind are refused naming what to write
background-color: "Canvas" in a style
background-color="Canvas" (or nothing: an unset background is the platform's)
change=flip(t.id) on a checkbox, action flip(id: string)
The event appends its payload: action flip(id: string, checked: bool) (the refusal spells it)
Two sends to one mutation in one action
One combined request, a mutation per request, mutation … queue to run both in order, or mutation … parallel to run both at once
What compiles and then misbehaves (an image tile at its intrinsic size, native bars the agent does not show, a back gesture refused) is in the pitfalls list, with what to do about each.
Do not “repair” a refusal by adding a compatibility alias to the compiler. A new language or host feature is a separate, explicit implementation decision. Repository repair loops are capped at three rounds; report a remaining blocker with the diagnostic and evidence rather than silently weakening the result.
Is this helpful
Last updated November 30, 2026
Exact Docs