Skip to content

Declare once per code whether a finding refuses, and name what each refusal keeps - #6641

Merged
max-sixty merged 10 commits into
mainfrom
agent-a66d26d7442bb624d
Nov 21, 2026
Merged

max-sixty merged 10 commits into
mainfrom
agent-a66d26d7442bb624d

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Each finding's code now declares in _TEXT what it does: _refuses where a check refuses its input, such as a page's source or an event; _fails where the browser's reading fails the check while the page is still served; _Unread where the browser couldn't read the page, as when it crashed or none could launch (no-browser). Every other code is advice. A refusal's words end with its guarantee, as in "duplicate ids: ["a"] (refused so that each id names one element for comments and commands to reach)". Until now a finding refused unless its construction site passed severity="advice", so nothing said what a refusal protected. The per-site labels and their filters are gone, and findings.py's header states the decision.

A not-read finding leaves its gate unrun: the check passes, browser.ran leaves the gate out, no reading is recorded, and a held message posts. The browser.unavailable field is gone. Authored markup has one shared check, instances.markup_findings, for the page gate, the message gate and registry examples; where the parser repaired the markup it holds back every other check.

The first commit stands alone: thread commands print the advice a message's HTML draws, from the checks a page's source takes, which brings back the pane checks #6313 dropped for messages.

Of the 328 codes that refused or defaulted to "error", 225 keep refusing, 28 keep failing the check, 32 become advice, 4 become not-read, 24 that refused nothing become advice unchanged, and 15 are deleted. New: body-count, ids-taken-by-events (an id the log already holds, replacing the eight-hex shape test) and unnamed-question refuse, thread-not-drawn fails the check, and no-browser is not read. An independent reviewer judged each refusal an audit had contested.

Least sure: no-work-seat, which removes a documented key; page-scrolls; and that a page whose markup the parser repaired now hears only the repair until it parses as written, as a message already did.

tests/model, tests/process and pnpm run test:runtime pass, and so do the browser and journey tests this change edits, by node id.

The full audit, with the reason for each change and each contested verdict
Code Outcome Guarantee it keeps Why
addressable-id refusal → advice Each instance's own check requires the id.
css-url refusal → advice A browser drops the declaration (Chrome 157, probed), so it is reported beside the sheet's other drops.
data-source refusal → advice leaf data's own grammar checks the names.
fixed-events refusal → advice The merge keeps the kernel's value.
fixed-kernel-fact refusal → advice The merge keeps the kernel's value.
invalid-example refusal → advice An example is documentation.
layer-import-remote refusal → advice Export leaves it to load from its server, as it does a page module's.
main-count refusal → advice A page with no <main> render-checks clean; the body count is now body-count.
measured-run refusal → advice As measured-source.
measured-source refusal → advice An instance missing it is only never compared with its source's run.
message-settlement refusal → advice Accept and undo of a suggestion in a message draw in its thread (a browser test checks both); the advice says no version writes it into the page.
never-settled refusal → advice The gate reads the page in motion; a looping demo is a reasonable page.
noscript refusal → advice Neither the file reading nor the browser's passages read a <noscript>'s words now, so no comment quotes text no one sees.
obligation-beside-widget refusal → advice The words may ask what the widget doesn't; the message then asks twice.
outside-frame refusal → advice As past-column.
outside-part refusal → advice As past-column.
page-scrolls refusal → advice Every word stays in reach by scrolling, as past-column's spills do.
parts-in-layout refusal → advice The parts draw as a strip of tabs inside the Layout.
past-column refusal → advice A box in the margin is drawn and reachable.
past-room refusal → advice As past-column.
plan-depth refusal → advice plan_reading already draws a skipped level one step shallower.
refers-unknown-map refusal → advice Each instance's reference is still refused where it stands (reference-contract).
refers-unmatched refusal → advice As refers-unknown-map.
shown-elsewhere refusal → advice The board moves the card to its answer's owner when it draws.
shows-untakeable refusal → advice That owner takes no drop of the card.
shows-without-open refusal → advice It guards a transition only, after the user clears a pick.
spaced-ids refusal → advice The browser resolves the id and a comment anchors on it; advice says so while renaming is free.
undeclared-attr refusal → advice It fired on the bundled lf-options, and the replay check reports an attribute that changes on redraw.
undeclared-event-kind refusal → advice No delivery carries the clause, and a package may target a newer Leaf.
ungrouped-question refusal → advice Now only where the widget's own label names the question, so m selects it without its premise.
unknown-thread refusal → advice Deciding the widget closes no thread; nothing else changes.
unowned refusal → advice A seat nothing names stays empty.
browser-error refusal → not read As gate-failed; package check --render now reads a crash this way too, keeping unreadable-examples for examples the page can't draw.
gate-failed refusal → not read The browser read nothing of the page: the gate counts as not run, keeps no reading, and a held message posts, as with no browser.
probe-failed refusal → not read As gate-failed.
server-stopped refusal → not read As gate-failed; the stall is Leaf's own preview server.
awaits-unanswered deleted invalid-declaration refuses first.
event-shaped-ids deleted Replaced by ids-taken-by-events, which refuses only an id the log holds, so a short SHA as an id passes.
fixture-kind deleted As fixture-publication.
fixture-publication deleted The door refuses the same event in the same words.
hidden-widget deleted A to-do on an element has no liveness check, so this was a widget-only special case.
keys-documentation deleted Leaf's own key docs are pinned by a test now.
no-anchor deleted The append door refuses the same reply as withdrawn-parent.
no-incoming-registry deleted The kernel's registry is always an input.
no-work-seat deleted With the work key and its lints: a to-do on any widget draws as one on any element does.
publication-revision deleted Only Leaf's publisher reaches it, after publication-owner.
quoted-seat deleted As hidden-widget.
script-outside-page deleted Only a public runtime module reaches it, which delivery serves.
unowed-reply deleted No writer reaches it.
work-content deleted With the work key.
work-inline deleted With the work key.
body-count new; refuses every page Leaf activates can be served and loads its runtime The body half of main-count; export needs the body.
ids-taken-by-events new; refuses each id names one element for comments and commands to reach A command's ID names a widget or a message in one address space; replaces event-shaped-ids.
unnamed-question new; refuses each question on the user's On Me list shows the words that ask it A question with no words would stand on On Me blank; lf-options declares no label, so an ungrouped one has none.
no-browser new; not read Replaces the browser.unavailable field, so a host with no browser and a browser that crashed are one not-read state.
thread-not-drawn new; fails the check the user can see and reach everything the page draws A thread holding a message's HTML that the page can't open, which gate-failed reported before; it still fails the check, while gate-failed now means the gate's own run failed.
absorbed-move keeps refusing an undo the page accepts changes what the user sees
allocation-value keeps refusing Leaf and the page lay out each allocation as one of the values it takes The runtime reads a page allocation as one of its values (context.js allocation), so an unknown data-annotations leaves neither presentation.
ambiguous-data-binding keeps refusing each widget reads the data its markup names, in its declared contract
answering-container keeps refusing each widget's declaration means one thing to every part of Leaf
answering-detail keeps refusing each widget's declaration means one thing to every part of Leaf
answering-members keeps refusing each widget's declaration means one thing to every part of Leaf
answering-mutable keeps refusing each widget's declaration means one thing to every part of Leaf
answering-part keeps refusing each widget's declaration means one thing to every part of Leaf
answering-position keeps refusing each widget's declaration means one thing to every part of Leaf
answering-record keeps refusing each widget's declaration means one thing to every part of Leaf
answering-schema keeps refusing each widget's declaration means one thing to every part of Leaf
answering-undeclared keeps refusing each widget's declaration means one thing to every part of Leaf
attempt-conflict keeps refusing a retried write returns the event it first made, never a second
attribute-schema keeps refusing the user sees what the agent wrote
attributes-schema keeps refusing each widget's declaration means one thing to every part of Leaf
awaits-blanket keeps refusing each widget's declaration means one thing to every part of Leaf
awaits-key keeps refusing each widget's declaration means one thing to every part of Leaf
awaits-records keeps refusing each widget's declaration means one thing to every part of Leaf
awaits-retired keeps refusing each widget's declaration means one thing to every part of Leaf
awaits-value keeps refusing each widget's declaration means one thing to every part of Leaf
awaits-verbs keeps refusing each widget's declaration means one thing to every part of Leaf
binding-written keeps refusing each widget's declaration means one thing to every part of Leaf
body-content keeps refusing each widget's declaration means one thing to every part of Leaf
body-nested keeps refusing each widget's declaration means one thing to every part of Leaf
content-empty keeps refusing the user sees what the agent wrote
contract-conflict keeps refusing each widget reads the data its markup names, in its declared contract
contract-reference keeps refusing each widget's declaration means one thing to every part of Leaf
contract-resource keeps refusing each widget's declaration means one thing to every part of Leaf
contract-schema keeps refusing each widget's declaration means one thing to every part of Leaf
created-exists keeps refusing each id names one element for comments and commands to reach
creates-content keeps refusing each widget's declaration means one thing to every part of Leaf
creates-detail keeps refusing each widget's declaration means one thing to every part of Leaf
creates-id keeps refusing each widget's declaration means one thing to every part of Leaf
creates-owner keeps refusing each widget's declaration means one thing to every part of Leaf
creates-required keeps refusing each widget's declaration means one thing to every part of Leaf
creates-semantic-owner keeps refusing each widget's declaration means one thing to every part of Leaf
creates-unit keeps refusing each widget's declaration means one thing to every part of Leaf
creates-unknown keeps refusing each widget's declaration means one thing to every part of Leaf
css-import keeps refusing each revision draws every file it names, the same wherever it is shown
css-not-utf8 keeps refusing each revision draws every file it names, the same wherever it is shown
css-syntax keeps refusing each revision draws every file it names, the same wherever it is shown
data-body keeps refusing the user sees what the agent wrote
data-contract keeps refusing each widget's declaration means one thing to every part of Leaf
data-input keeps refusing each widget's declaration means one thing to every part of Leaf
data-reference keeps refusing each widget's declaration means one thing to every part of Leaf
datum-unbound-source keeps refusing each logged event fits its kind and names only what the page holds
datum-unknown-section keeps refusing each logged event fits its kind and names only what the page holds
datum-unsupplied-source keeps refusing each logged event fits its kind and names only what the page holds
deciding-verb keeps refusing each widget's declaration means one thing to every part of Leaf
deciding-verbs keeps refusing each widget's declaration means one thing to every part of Leaf
declaration-not-object keeps refusing each widget's declaration means one thing to every part of Leaf
dependency-encoded keeps refusing each revision draws every file it names, the same wherever it is shown
dependency-escapes keeps refusing no file from outside the page enters a revision or its export
dependency-not-local keeps refusing each revision draws every file it names, the same wherever it is shown
dependency-outside-page keeps refusing each revision draws every file it names, the same wherever it is shown
dependency-scheme-dependent keeps refusing each revision draws every file it names, the same wherever it is shown
dependency-symlink keeps refusing no file from outside the page enters a revision or its export
dependency-unreadable keeps refusing each revision draws every file it names, the same wherever it is shown
dependency-url keeps refusing each revision draws every file it names, the same wherever it is shown
detach-with-target keeps refusing a command does only what its arguments plainly say
detail-field keeps refusing a command does only what its arguments plainly say
digest-collision keeps refusing each revision draws every file it names, the same wherever it is shown
document-declaration keeps refusing every page Leaf activates can be served and loads its runtime
duplicate-ids keeps refusing each id names one element for comments and commands to reach
empty-suggestion keeps refusing each question on the user's On Me list changes what it shows when answered A suggestion with neither old nor new words puts a question on On Me that changes nothing whichever way the user decides.
ended-todo keeps refusing a to-do's recorded outcome stays as its first end gave it
ephemeral-content keeps refusing what a message asks, promises or changes stays shown in its thread
fixture-event keeps refusing a live sample opens with its authored history, every event one the log admits
fixture-id-repeated keeps refusing a live sample opens with its authored history, every event one the log admits
fixture-id-taken keeps refusing a live sample opens with its authored history, every event one the log admits
fixture-ids-taken keeps refusing a live sample opens with its authored history, every event one the log admits
fixture-markup keeps refusing a live sample opens with its authored history, every event one the log admits
fixture-media keeps refusing a live sample opens with its authored history, every event one the log admits
fixture-refused keeps refusing a live sample opens with its authored history, every event one the log admits
fixture-ts keeps refusing a live sample opens with its authored history, every event one the log admits
foreign-destination keeps refusing each logged event fits its kind and names only what the page holds
foreign-gesture keeps refusing each writer's words and decisions come only from that writer
foreign-layer keeps refusing the user's recorded decisions are read as they were written
foreign-message keeps refusing each writer's words and decisions come only from that writer
foreign-unit keeps refusing each logged event fits its kind and names only what the page holds
foreign-verb keeps refusing each writer's words and decisions come only from that writer
head-count keeps refusing every page Leaf activates can be served and loads its runtime
held-anchor keeps refusing a thread sent from a widget stays shown in that widget
hold-target keeps refusing each logged event fits its kind and names only what the page holds
idiom-schema keeps refusing each widget's declaration means one thing to every part of Leaf
idiom-selector keeps refusing each widget's declaration means one thing to every part of Leaf
ids-taken keeps refusing each id names one element for comments and commands to reach
ids-taken-by-messages keeps refusing each id names one element for comments and commands to reach
instance-contract keeps refusing each decision the user makes is recorded and reads back as made
invalid-declaration keeps refusing each widget's declaration means one thing to every part of Leaf
invalid-detail keeps refusing each logged event fits its kind and names only what the page holds
invalid-event keeps refusing each logged event fits its kind and names only what the page holds
invalid-source keeps refusing a reply reaches the user with the page edits saved before it
invalid-when keeps refusing each widget's declaration means one thing to every part of Leaf
layer-facts keeps refusing each widget's declaration means one thing to every part of Leaf
layer-import-missing keeps refusing each revision draws every file it names, the same wherever it is shown
layer-unavailable keeps refusing the page draws with the packages it selected
loose-text keeps refusing the user sees what the agent wrote
manifest-digest keeps refusing each revision draws every file it names, the same wherever it is shown
markdown-needs-data keeps refusing each widget's declaration means one thing to every part of Leaf
member-record-slot keeps refusing each decision the user makes is recorded and reads back as made
message-style keeps refusing the page looks as its source says, whatever its threads hold
message-stylesheet keeps refusing the page looks as its source says, whatever its threads hold
missing-media keeps refusing the user sees what the agent wrote
missing-thread keeps refusing each logged event fits its kind and names only what the page holds
module-not-local keeps refusing each revision draws every file it names, the same wherever it is shown
module-outside-page keeps refusing each revision draws every file it names, the same wherever it is shown
module-type keeps refusing each revision draws every file it names, the same wherever it is shown
needs-id keeps refusing each decision the user makes is recorded and reads back as made
needs-module keeps refusing each widget's declaration means one thing to every part of Leaf
nested-suggestion keeps refusing a suggestion the user decides changes exactly the words it shows
nested-unit keeps refusing each logged event fits its kind and names only what the page holds
newer-layer keeps refusing the user's recorded decisions are read as they were written
no-layer keeps refusing the page draws with the packages it selected
no-registry keeps refusing each logged event fits its kind and names only what the page holds
no-source keeps refusing every page Leaf activates can be served and loads its runtime
not-a-reply keeps refusing a decision on the page is answered by the version that writes it in
not-a-widget keeps refusing each write acts on the item its id names
not-an-element keeps refusing each write acts on the item its id names
not-member keeps refusing the user sees what the agent wrote
not-utf8 keeps refusing every page Leaf activates can be served and loads its runtime
obligation-end keeps refusing each write acts on the item its id names
output-contract keeps refusing each widget reads the data its markup names, in its declared contract
outside-destination keeps refusing each logged event fits its kind and names only what the page holds
outside-reference keeps refusing each reference a widget makes reaches the element it names
owned-twice keeps refusing the user sees what the agent wrote
package keeps refusing every page that selects the package composes into a layer Leaf serves
page-layer keeps refusing the page draws with the packages it selected
predicate-attribute keeps refusing each widget's declaration means one thing to every part of Leaf
predicate-schema keeps refusing each widget's declaration means one thing to every part of Leaf
publication-owner keeps refusing each revision's place in the log is where Leaf published it
quoted-widget keeps refusing the log records decisions only from live widgets, never quoted ones
reading-role-attr keeps refusing each widget's declaration means one thing to every part of Leaf
reanchor-section keeps refusing each logged event fits its kind and names only what the page holds
reanchor-thread keeps refusing each logged event fits its kind and names only what the page holds
record-type keeps refusing each widget's declaration means one thing to every part of Leaf
record-undeclared keeps refusing each widget's declaration means one thing to every part of Leaf
record-unit keeps refusing each widget's declaration means one thing to every part of Leaf
record-within keeps refusing each widget's declaration means one thing to every part of Leaf
reference-contract keeps refusing each reference a widget makes reaches the element it names
registry-json keeps refusing each widget's declaration means one thing to every part of Leaf
registry-not-file keeps refusing each widget's declaration means one thing to every part of Leaf
registry-not-object keeps refusing each widget's declaration means one thing to every part of Leaf
registry-not-utf8 keeps refusing each widget's declaration means one thing to every part of Leaf
repeated-key keeps refusing each decision the user makes is recorded and reads back as made
repeated-slot keeps refusing a suggestion the user decides changes exactly the words it shows
requires keeps refusing each widget's declaration means one thing to every part of Leaf
reserved-answer keeps refusing each update gets one answer, from the writer that reserved it
reserved-ids keeps refusing the runtime's own ids and markers name only what it wrote
reserved-markers keeps refusing the runtime's own ids and markers name only what it wrote
retired-when keeps refusing each widget's declaration means one thing to every part of Leaf
revision-exists keeps refusing each revision draws every file it names, the same wherever it is shown
run-written keeps refusing each widget's declaration means one thing to every part of Leaf
sample-array keeps refusing a live sample opens with its authored history, every event one the log admits
sample-json keeps refusing a live sample opens with its authored history, every event one the log admits
sample-loop keeps refusing every page Leaf activates can be served and loads its runtime
sample-script keeps refusing a live sample opens with its authored history, every event one the log admits
sample-script-type keeps refusing a live sample opens with its authored history, every event one the log admits
sample-source-both keeps refusing a live sample opens with its authored history, every event one the log admits
script-not-utf8 keeps refusing each revision draws every file it names, the same wherever it is shown
self-closing keeps refusing the user sees what the agent wrote
shared-slot keeps refusing each widget's declaration means one thing to every part of Leaf
shown-unit keeps refusing each logged event fits its kind and names only what the page holds
shows-no-answer keeps refusing each view the user moves changes the answer it shows
shows-outside keeps refusing each view the user moves changes the answer it shows
shows-reference keeps refusing each widget's declaration means one thing to every part of Leaf
shows-value keeps refusing each widget's declaration means one thing to every part of Leaf
split-pre keeps refusing the user sees what the agent wrote
stale-edit keeps refusing a gesture changes only what its sender saw when making it
stale-move keeps refusing a gesture changes only what its sender saw when making it
stray-members keeps refusing the user sees what the agent wrote
stylesheet-type keeps refusing each revision draws every file it names, the same wherever it is shown
summary-endpoints keeps refusing each logged event fits its kind and names only what the page holds
summary-order keeps refusing each logged event fits its kind and names only what the page holds
superseded-reply keeps refusing the user's newer message stays owed until the agent answers it
text-outside-pre keeps refusing the user sees what the agent wrote
unanchorable keeps refusing each comment anchors to the one passage its quote or id names
unasked-obligation keeps refusing each question a reply asks again stands on the user's On Me list
unchanged-edit keeps refusing a message shows as edited only when its words changed Admitting it marks the message edited and unread for nothing, and a user's identical edit would reopen a resolved thread.
unclosed keeps refusing the user sees what the agent wrote
undeclared-answer keeps refusing what an answer leaves owed stays on the user's or agent's list
undeclared-attributes keeps refusing each widget's declaration means one thing to every part of Leaf
undeclared-language keeps refusing each widget's declaration means one thing to every part of Leaf
undeclared-tag keeps refusing each logged event fits its kind and names only what the page holds
undeclared-verb keeps refusing each logged event fits its kind and names only what the page holds
undeclared-visual keeps refusing each logged event fits its kind and names only what the page holds
unit-type keeps refusing each widget's declaration means one thing to every part of Leaf
unit-undeclared keeps refusing each widget's declaration means one thing to every part of Leaf
unknown-comment keeps refusing each write acts on the item its id names
unknown-content-version keeps refusing each write acts on the item its id names
unknown-declarations keeps refusing each widget's declaration means one thing to every part of Leaf Validation and admission look each named owner or scope up, so an unknown one faults every reader of the composition.
unknown-destination keeps refusing each logged event fits its kind and names only what the page holds
unknown-kind keeps refusing each logged event fits its kind and names only what the page holds
unknown-members keeps refusing each logged event fits its kind and names only what the page holds
unknown-message keeps refusing each logged event fits its kind and names only what the page holds
unknown-output-contract keeps refusing each widget's declaration means one thing to every part of Leaf
unknown-parent keeps refusing each logged event fits its kind and names only what the page holds
unknown-plan-item keeps refusing each write acts on the item its id names
unknown-reaction keeps refusing each logged event fits its kind and names only what the page holds
unknown-reference keeps refusing each reference a widget makes reaches the element it names
unknown-revision keeps refusing each logged event fits its kind and names only what the page holds
unknown-sender keeps refusing each logged event fits its kind and names only what the page holds
unknown-subject keeps refusing each write acts on the item its id names
unknown-todo keeps refusing each write acts on the item its id names
unknown-undo keeps refusing each write acts on the item its id names
unknown-unit keeps refusing each logged event fits its kind and names only what the page holds
unknown-widget keeps refusing the user sees what the agent wrote
unnamed-module keeps refusing the user sees what the agent wrote
unnamed-sample keeps refusing each live sample opens from the template its id names
unoverruled keeps refusing every version can take back a decision or report it supersedes A version can't keep its state over a worker's report without overruled.
unowed-start keeps refusing each write acts on the item its id names
unowned-placement keeps refusing each logged event fits its kind and names only what the page holds
unrestated keeps refusing every version can take back a decision or report it supersedes A version can't withdraw the user's decision on a widget without restated.
unserved-media keeps refusing the user sees what the agent wrote
unundoable keeps refusing each logged event fits its kind and names only what the page holds
verb-contract keeps refusing each widget's declaration means one thing to every part of Leaf
verb-detail-schema keeps refusing each widget's declaration means one thing to every part of Leaf
visual-id keeps refusing each widget's declaration means one thing to every part of Leaf
visual-with-passage keeps refusing each logged event fits its kind and names only what the page holds
widget-not-thread keeps refusing each write acts on the item its id names
withdrawn-gesture keeps refusing each gesture is taken back once, and the agent hears of it once
withdrawn-message keeps refusing what the user took back stays taken back
withdrawn-parent keeps refusing what the user took back stays taken back
withdraws-outcome keeps refusing each widget's declaration means one thing to every part of Leaf
wordless-message keeps refusing each logged event fits its kind and names only what the page holds
chrome-words keeps failing the check the user can comment on every word the page shows outside a control
clipped-content keeps failing the check the user can see and reach everything the page draws
clipped-control keeps failing the check the user can see and reach everything the page draws
clipped-out keeps failing the check the user can see and reach everything the page draws
console-error keeps failing the check the user sees the page's widgets and scripts work as written
covered-words keeps failing the check the user can see and reach everything the page draws
invalid-output keeps failing the check each widget reads the data its markup names, in its declared contract
invalid-paint keeps failing the check the user sees the page's widgets and scripts work as written
missing-upgrades keeps failing the check the user sees the page's widgets and scripts work as written
never-upgraded keeps failing the check every page Leaf activates can be served and loads its runtime
no-runtime keeps failing the check every page Leaf activates can be served and loads its runtime
not-ready keeps failing the check every page Leaf activates can be served and loads its runtime
over-margin keeps failing the check the user can see and reach everything the page draws
page-exception keeps failing the check the user sees the page's widgets and scripts work as written
page-report keeps failing the check the user sees the page's widgets and scripts work as written
reading-overran keeps failing the check every page Leaf activates can be served and loads its runtime
relative-render keeps failing the check each widget shows the state the log records
render-threw keeps failing the check each widget shows the state the log records
resize-loop keeps failing the check the user sees the page's widgets and scripts work as written Fails only when a complete second attempt repeats the notice; one no complete attempt settles gives way to what stopped that attempt.
retired-slot keeps failing the check each widget shows the state the log records
settlement-mark keeps failing the check each widget shows the state the log records
tiny-boxes keeps failing the check the user sees the page's widgets and scripts work as written
under-panel keeps failing the check the user can see and reach everything the page draws
unmarkable keeps failing the check each comment marks and reaches the element or part it anchors to
unreadable-examples keeps failing the check each widget's worked example draws for the authors who copy it
verbatim keeps failing the check a comment's quote resolves to the words the page shows
visual-parts keeps failing the check each comment marks and reaches the element or part it anchors to
window-error keeps failing the check the user sees the page's widgets and scripts work as written
apparatus-among-authored refused nothing; now advice
form-control-words refused nothing; now advice
gesture-scrolled refused nothing; now advice
moved-without-input refused nothing; now advice
not-owned refused nothing; now advice
nothing-to-watch refused nothing; now advice
place-resized refused nothing; now advice
renewal-refused refused nothing; now advice
request-failed refused nothing; now advice
request-status refused nothing; now advice
revive-refused refused nothing; now advice
server-down refused nothing; now advice
server-stays-stopped refused nothing; now advice
server-unowned refused nothing; now advice
shift-watch-missed refused nothing; now advice
stopped-during-init refused nothing; now advice
typing-moved refused nothing; now advice
unchanged-write refused nothing; now advice
unmoved-scroll refused nothing; now advice
unread-syntax refused nothing; now advice
unready-reinit refused nothing; now advice
wait-active refused nothing; now advice
watch-taken-over refused nothing; now advice
words-left-screen refused nothing; now advice

This was written by Claude Code on behalf of max-sixty

A thread command now prints the advice its message's HTML draws beside its
result, as `page check` does beside a page that passes. `check_markup`
refuses on the findings that refuse and notes the rest (`findings.note`);
until now the message gate returned only refusals, so a message drew no
advice at all.

With that path in place, the message checks dropped for lack of it come
back as advice:

- **A pane's children** (`pane-ends`, `pane-header-first`,
  `pane-footer-last`, `pane-body`), which #6313 stopped checking in
  messages.
- **An option or card that leads with a `<strong>` and has no `label`**
  (`unnamed-card`).
- **What the gate used to filter out**: a declaration a browser drops
  (`css-dropped`), and advice on a live sample's child page that a message
  declares.

The gate's stages still stop at the first that refuses; a stage that only
advises lets the next one run. A fixture message in a sample's history
still refuses on what refuses, and its advice isn't reported.

Behavior the tests now assert: a message holding a strong-led option with
no label is admitted and notes `unnamed-card` (the test asserting it was
admitted silently is renamed and rewritten); the pane test also posts its
panes in a message; the dropped-declaration test reads the message's note.
`command_notes` (`interact_support.py`) reads what a command notes.

Tests: `tests/model/interact_contract/`, `test_interact_document.py`,
`test_interact_product.py`, `test_forks.py`, `test_responses.py` and
`test_thread_reading.py` (705 passed).

> _This was written by Claude Code on behalf of max-sixty_
Every finding's code now says in `_TEXT` whether it refuses: a refusing
code names the guarantee its refusal keeps (`_refuses`), and every other
code is advice. A refusal's words end with that guarantee, as "(refused
so that each id names one element for comments and commands to reach)".
A family names one guarantee (the registry's, the capture's, a sample's
history, the event door's). `Finding.severity` reads the declaration;
the `severity=` arguments at construction sites, `_keyed`'s severity,
`styles.DROPPED_SEVERITY` and `instances.pane_advice`'s `replace()` are
gone, and readers that split refusals from advice ask `Finding.refuses`.
`Rejected` raises only refusing codes, and shows the person whose gesture
it refused the words without the guarantee. `findings.py`'s header states
the decision and its reason.

Every code that refused, or carried the default "error" while refusing
nothing, was audited: 269 keep refusing, 23 become advice, 24 that
refused nothing are now advice, 12 are deleted. Behavior that changed:

- Advice now, beside a passing result: `main-count`, `spaced-ids`,
  `parts-in-layout`, `unowned`, `shows-without-open`, `shows-untakeable`,
  `shown-elsewhere`, `unknown-thread` (page check, messages, samples);
  `past-column`, `outside-part`, `outside-frame`, `past-room`,
  `undeclared-attr`, `never-settled` (render check); `fixed-events`,
  `fixed-kernel-fact`, `undeclared-event-kind`, `invalid-example`,
  `data-source`, `measured-source`, `measured-run`, `addressable-id`
  (registry validation, which notes them, and caches them with its
  validation); `obligation-beside-widget` (thread commands post the
  message with both obligations).
- Deleted: `no-work-seat` with the `work` key and its lints
  (`work-inline`, `work-content`), since a to-do on any widget draws as
  one on any element does; `unowed-reply`, `no-anchor`,
  `publication-revision`, `fixture-publication`, `fixture-kind`,
  `no-incoming-registry` and `awaits-unanswered`, which another gate
  refuses first or nothing reaches; `script-outside-page`, a public
  runtime module delivery already serves; `keys-documentation`, whose pin
  of Leaf's own key docs is now a test.
- `page check --render`'s status counts only refusing findings, so page
  code's failed requests explain a failure without deciding one.

`note()` says a finding the record already holds once.

Tests now assert the advice where they asserted those refusals, and the
tests of the `work` key are gone. Browser and journey tests reading
`past-column` and `outside-frame` read `findings`; they were updated by
reading, not run.

Tests: `tests/model` (3579 passed), `tests/process` (312 passed),
`dev/tests/model/test_watch_findings.py`, `pnpm run test:runtime` (1078
passed), and `page check --render` on a page with no `<main>` (status 0,
`main-count` advice only).

> _This was written by Claude Code on behalf of max-sixty_
leaf-agent
leaf-agent previously approved these changes Nov 21, 2026
…sted verdicts

Folds in a review of #6641.

- **Registry advice leaves composition.** `fixed-events`,
  `fixed-kernel-fact`, `undeclared-event-kind`, `invalid-example`,
  `data-source`, `measured-source`, `measured-run` and `addressable-id` were
  noted from validation and the merge, so they reached `page state`, thread
  commands and a server's stderr, twice where a page read its registry
  under two names, and named whichever path a cached validation saw first.
  `composition.declaration_advice` now reads them from one layer's own
  declarations, and only `page check` (the page's `page/registry.json`),
  `package check` (the package) and `page init` (the packages it selects,
  by the paths it was given) report them. Validation's cache holds nothing
  but its verdict, and `findings.noted` is gone.
- **One list of message advice.** `pane_advice` and `unnamed_card_advice`
  run inside `instance_errors`, and `markup.markup_advice` (an uncoloured
  language, Markdown shown as typed) is the advice a page's source and a
  message's HTML both take, replacing the message gate's own list.
- **`body-count` refuses.** The body half of `main-count` is its own code,
  since a page with no `<body>` stamped and then failed every export.
- **Verdicts revisited.** `plan-depth` (`leaf task plan` notes it; the
  reading already places the step), `ungrouped-question`, `page-scrolls`
  and the gate's own failures (`gate-failed`, `probe-failed`,
  `server-stopped`, `browser-error`) are advice; a message whose browser
  run fails now posts, as on a host with no browser. `hidden-widget` and
  `quoted-seat` are deleted. `allocation-value` and `noscript` keep
  refusing, with guarantees that say why: the runtime trusts a page
  allocation's value, and Leaf's file reading takes a `<noscript>`'s words
  for page words.
- **What a refusal says.** `_fails` declares a code the browser's check
  fails, which prints "fails the check so that"; guarantees are regrouped
  (`css-syntax` under the capture's, `retired-slot` under the widget
  state's, a sample's codes under their own, `not-utf8` under serving).
  The About panel shows a sheet's errors without the suffix, and
  `obligation-beside-widget` is noted once its message is admitted.
- Prose that still called a demoted code a refusal is corrected
  (`$keys.shows`, `$keys.example`, `$keys.inputs`, `$marks`,
  `layer-registry.md`, `kernel.py`, `version.py`, `readings.py`,
  `widgets.js`, `authoring-on-me.md`, `package-data.md`), and a browser
  test that still declared `work` no longer does.

A suggestion whose `resolves` names no thread is admitted with an answer
naming that thread; every reader finds no thread and resolves nothing, so
no guarantee breaks and the code stays advice.

Tests: `tests/model` and `tests/process` (3895 passed), `pnpm run
test:runtime` (1078 passed), and by node id the journey and browser tests
this change edits (16 passed).

> _This was written by Claude Code on behalf of max-sixty_
leaf-agent
leaf-agent previously approved these changes Nov 21, 2026
…contested refusals

A third declaration beside `_refuses` and `_fails`, `_Unread`, marks a code
about the run rather than the page: `gate-failed`, `probe-failed`,
`server-stopped`, `browser-error`, and the new `resize-unconfirmed`. Every
reader takes that one declaration (`Finding.unread`): `BrowserCheck.ran` leaves
the gate out, the handover pass records no reading, and the message door
posts, as on a host with no browser. Before this, a `page check --render`
whose browser crashed or whose preview server stopped exited 0 and stored its
reading, so the server never read that version.

Behavior that changed, with the tests that now protect it:

- `resize-loop` fails only when a complete second attempt repeats the notice;
  one no complete attempt settles is `resize-unconfirmed`, which leaves the
  page unread (model retry-policy test).
- A page widget that asks with no words for its question, as an ungrouped
  `lf-options` or one in a group whose label is blank, is refused
  (`unnamed-question`); `ungrouped-question` advises only where the widget's
  own label names it. The words and `authoring-on-me.md` no longer claim On Me
  names it by the widget's words.
- `empty-suggestion` keeps refusing under its own guarantee.
- `<noscript>` words are unquotable in both passage readers, so the finding is
  advice.
- `event-shaped-ids` is gone: `ids-taken-by-events` refuses a page or message
  id the log already gives an event, and `<section id="6d1d57ac">` passes.
- `layer-import-remote` (export leaves the import to load from its server, as
  a page module's), `refers-unknown-map` and `refers-unmatched` (each
  reference still meets `reference-contract`), `css-url` (a browser drops the
  declaration; reported with the sheet's drops) and `message-settlement`
  (accept and undo draw in the thread, now a browser test) are advice.
- A refusal (`Rejected`), as at the message door, words a `_fails` guarantee
  as "refused so that".
- One per-document check, `instances.markup_findings`, serves the page gate,
  the message gate and registry examples. It holds back the instance checks
  only where the parser repaired the markup (`repair_errors`), so a page with a
  self-closing widget now reports the repair alone, as a message did, and a
  `<noscript>` or unnamed sample no longer hides a message's instance checks.
- A page's declaration advice reads the declarations its check composed
  (`PageRegistry.declarations`), and kernel facts come from the cached kernel
  registry.

Tests that changed what they protect: the retry-policy and handover tests
cover every not-read code; the question test covers a blank group label and
a widget its own label names; the noscript test now asserts advice and that
no passage holds the words; the event-id test refuses a logged id at both
doors and passes an unlogged hex one; the reply-suggestion test now posts;
the widget-violations page splits its self-closing tags from its widget
faults, which the repair gate holds back.

Tests: `tests/model` (3587) and `tests/process` (312) pass, `pnpm run
test:runtime` (1078) and `pnpm run check` pass, every page fixture passes
the real check (51), and by node id the journey and browser tests this
change edits or reaches (13 passed).

> _This was written by Claude Code on behalf of max-sixty_
leaf-agent
leaf-agent previously approved these changes Nov 21, 2026
…rkup

The review of the not-read state found gaps where a browser that couldn't read
the page still read as a reading, or as a different state:

- No browser is now a not-read finding (`no-browser`), each asked gate's
  reading, so `BrowserCheck.unavailable` and `WidgetQuality.unavailable` are
  gone and the handover pass reads one state. `page-checkpoints.md` tells the
  agent to report a gate `browser.ran` leaves out as unfinished, which now
  covers a crash too.
- `package check --render` read a crashed browser as `unreadable-examples`,
  which failed the check; it now reads it as `browser-error` and leaves the
  gate unrun, keeping `unreadable-examples` for a page that never got ready,
  raised errors, or whose capture was refused.
- `resize-unconfirmed` is gone. An attempt that didn't complete holds what
  stopped it, a not-read finding or the page's own failure, so its unconfirmed
  notice is dropped rather than heard a second time.
- `markup_findings` takes the gate's own checks and holds them back with its
  own where the parser repaired the markup, so a page with a self-closing
  widget no longer reports `unnamed-question` read off the repaired tree. The
  page gate's shell, question, reference, suggestion, allocation and data
  checks, the message gate's settlement, binding, style and media checks, and
  an example's data bindings all wait.
- `logged_ids` answers what `_event_id_exists` did, and `id_subject`'s
  docstring no longer claims a page id cannot collide: the minter keeps clear
  only of other events' ids.
- The message-suggestion browser test runs in Firefox as well as Chromium.

Tests: `tests/model` and `tests/process` (3900) pass, and by node id the 65
browser and journey tests these changes reach, every page fixture through the
real check among them.

> _This was written by Claude Code on behalf of max-sixty_
…s early exits to the finding they owe

`no-browser`'s words now follow the launch error with what Leaf did about it:
what only a browser checks went unchecked, so a failure it would find shows
only once a browser draws the page, as Leaf's role asks Leaf to tell the agent
what a choice did. The model test asserts both halves.

`render_version` drops a resize notice an incomplete attempt can't confirm,
which is safe only because every early exit from an attempt carries a finding
that fails the check or leaves the page unread. `ended()` now asserts that, so
an exit carrying only advice can't be written.

Tests: `tests/model/test_render_gate.py` and `test_handover_pass.py` (32), and
by node id the no-browser and render-attempt tests (10).

> _This was written by Claude Code on behalf of max-sixty_
The `no-browser` words read "so what only a browser checks went unchecked
here", which left the reader to work out what "what" named. They now say the
browser checks did not run, so a failure only they would find shows when a
browser first draws the page. The model test asserts the new words.

> _This was written by Claude Code on behalf of max-sixty_
leaf-agent
leaf-agent previously approved these changes Nov 21, 2026
# Conflicts:
#	src/leaf/render_gate/version.py
#	tests/browser/test_render_gate.py

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gate-failed now reads as "not read", but one of its two construction sites is a page defect rather than a browser that couldn't read the page. In thread_findings (src/leaf/render_gate/readings.py), found[Finding("gate-failed", values={"error": failed})] reports opening thread {thread} to read its widgets: …. It fires when threadActions.open rejects or draws nothing (openThreadToCheck in render-checks/runtime.js), after the browser has already read the rest of the page. Before this PR that refused the version. Now BrowserCheck.ran drops "render check", no reading is recorded, the check passes, and a held message posts, even though users of the page can't open that thread.

This also cuts against the header's rule that a code alone decides whether a finding refuses: one code carries two meanings. Giving the thread opening its own _fails code (for example thread-not-drawn, under the guarantee the other thread-drawing failures use) keeps gate-failed as the not-read state for the PlaywrightError in render_version's attempt.

Comment thread src/leaf/findings.py Resolved
…code

A thread holding a message's HTML that the page couldn't open reported
gate-failed, which this branch makes unread, so such a page passed the check
and a held message posted. It now reports thread-not-drawn, which fails the
check as it did before the branch, and gate-failed is left as the gate's own
run failing. Tend's review found it.
@max-sixty
max-sixty merged commit 8faa6ac into main Nov 21, 2026
8 checks passed
@max-sixty
max-sixty deleted the agent-a66d26d7442bb624d branch November 21, 2026 07:22
leaf-agent added a commit that referenced this pull request Nov 21, 2026
#6641 changed three things about findings without updating four browser
tests outside the set it ran by node id. Those four failed in push run
[44879949277](https://github.com/max-sixty/leaf/actions/runs/44879949277)
on `8faa6acf1`. This PR updates them to read the new finding kinds.
Product code is unchanged.

The three changes, all deliberate in #6641's audit:

- A refusal's words now end with the guarantee it keeps.
- `gate-failed` is now a not-read finding rather than a refusal: the
gate counts as not run.
- The new `ids-taken-by-events` check refuses an element id the log
already gives an event.

| Test | What broke | Change |
|---|---|---|
| `test_browser_like_console_words_remain_console_diagnostics` |
`str(problem)` now ends with "(fails the check so that …)" | compares
`problem.said`, the console's words, which is what the test protects |
| `test_an_async_reading_probe_is_refused_instead_of_awaited` |
`.failures` keeps only refusing findings, so the probe's `gate-failed`
dropped out | reads the unread findings and asserts the gate refused
nothing; renamed `…_leaves_the_page_unread_instead_of_awaited` |
| `test_a_rendering_turn_is_polled_from_the_driver` | same as above |
same as above |
| `test_the_report_feed_reads_reports_by_typed_target` | the thread took
the widget's id `ag-wren` on purpose, so the test's later stamp was
refused | the thread is `c-wren`; a `{kind: 'thread', id: 'ag-wren'}`
target still reads none of the widget's reports, and a bare id is still
refused |

Verification: all four pass on the commit before #6641 (`67718fd12`).
They fail on `main` at `7abe4c3d9` with the same errors as the CI run,
and pass on this branch.

Refs #6655 — automated triage

Co-authored-by: leaf-agent <[email protected]>
max-sixty pushed a commit that referenced this pull request Nov 21, 2026
…changed (#6660)

Four of the failures in scheduled `ci` run
[44896279165](https://github.com/max-sixty/leaf/actions/runs/44896279165)
on `c72a8ad03` are tests that weren't updated when a recent change moved
what they read. None of them catches a defect a user would see, so each
fix updates the test and keeps what it asserts. Each test failed locally
on `c72a8ad03` and passes with this change.

- **`test_the_page_holds_still_under_the_user[dial-*]`** (8 cases, Linux
and macOS). #6612 put each depth's reading time under its word, so the
dial's radios are now named `Skim 2 min` and so on. `turn()` was still
waiting for a radio named exactly `Skim` and timed out after 120 s. It
now matches `^Skim \d+ min$`, the same pattern
`tests/browser/widgets/test_dial.py` uses. The six cases now pass, and
the two `dial-grown-after-glide` cases fail as their `MOVES_ON_MAIN`
entry expects.
- **`test_a_link_s_preview_shows_only_what_the_page_draws[browser]`**
(teardown error, Linux and macOS). #6654 wraps each line of a
reading-face `<pre>` in a `<span data-lf-pre-line>`. That means `#code >
span` now selects the first line's wrapper rather than the hidden span.
The `COPY CONTROL` words the test inserts after it became an extra line,
which pushed the rows below down 20 px with no input, and the shift
watch reported that. The test now inserts the words after `#code
span[style]`, the hidden span it meant, so they stay on the first line.
- **`test_every_restore_case_a_user_can_return_to_is_arrived_in`**
(Linux and macOS). #6641 adds ` (fails the check so that …)` to each
finding. The test split the `returned holding a,b` list on commas only,
so the suffix stuck to the last key. Whenever storage listed the restore
case's own key last, the parse dropped it. The order of keys in storage
is what made this pass locally and fail on CI. The test now reads the
list up to the first space.
- **`test_arrangement_retains_linked_pages_per_phase`** (`dev-tests`).
#6640 stopped Leaf writing `target="_blank"` over cross-origin links.
The test's authored links now open in the same tab, so `expect_popup`
timed out. The test now follows both links in place and checks the
restored addresses and the kept decision as before.

Refs #6659 — automated triage. The report's other failures are owned
elsewhere: the long-thread card width is #6139, the Firefox
`ResizeObserver` loop is #6604, and the macOS-only failures are tracked
in their own cause issue.

Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Nov 22, 2026
… dead pieces (#6723)

Several comments and one shipped reference describe code that has since
changed. This corrects them and removes two pieces of dead code.
Behavior is unchanged, apart from one shipped sentence that no longer
points package authors at the wrong pattern.

- **`skills/leaf/references/module-reading.md`** gave the depth dial as
an example of a widget that reads its document with
`viewDocument(node)`. #6642 scoped `lf-dial` to `this.parentElement` and
dropped that import, so a package author copying the dial from this
sentence got the scope the dial stopped using. The contents list
(`toc-view.js`) is now the only example, and it is the only caller.
- **`src/leaf/todos.py`** and **`_todo_error`** in `event_contracts.py`
said a to-do needs a *live* widget. Since #6641,
`work.widget_seat_error` accepts any widget the newest revision
declares.
- **`browser/styles/floating-panel.css`**: the band comment said the
band is the shelf's tallest picture plus its gaps. The rule reserves the
most a picture may take, `--lf-media-h` (tokens.css), plus a gap on each
side, as #6686's own description says.
- **`browser/runtime/obligations/view.js`** sent readers to a passage in
`version.js`'s header that no longer exists. `carry.js` owns that rule
now ("Other unnamed elements and changed tags carry nothing"), and the
comment states the failure inline.
- **`browser/runtime/rendering.js`** cited
`scripts/leaf/render_checks.py`. The file is
`src/leaf/render_checks.py`.
- **Dead code:** `page-inspection.js` rendered a "Reading source…" line
in a branch that the early `return` above it already rules out;
`handOver` in `thread/replies.js` took a `target` argument it never
read; and `projection/authored.js` stated its header paragraph twice.

The browser type check (`tsc --project browser/types/tsconfig.json`)
passes. These are comment and dead-code changes with no behavior to pin,
so there's no regression test.

Co-authored-by: leaf-agent <[email protected]>
max-sixty added a commit that referenced this pull request Nov 24, 2026
… Layout

`parts-in-layout` is advice, not a refusal (#6641): a `main` that carries a
Layout may hold parts, and they draw as a strip of tabs inside that Layout.
The previous commit dropped layouts.css's guards on that premise and is
reverted, and tabs.css's `body > main > lf-parts` root had dropped the
package's guard the same way, so on such a page the list drew as a centred
column of names with a rule beside the part (720x188 where #7070 draws a
720x47 row, Chromium and Firefox).

The parts' holder now asks its `main` whether it carries a Layout, by the
declared `--lf-layout-box`, which doesn't inherit, so only `main`'s children
can ask. Where it carries none, the holder sets `--lf-parts-column: 1`, the
package's own, and the list's look, the parts' rule and the holder's ::before
ask that, since a style query asks only an element's parent or, for a
pseudo-element, its originating element (probed in both engines). No rule in
the package names a Layout, and packages.md gains no name. The property
starts with `--lf-` as every property a shipped sheet declares must
(test_every_property_leaf_declares_is_named_as_leaf_s); only the package
names it, so it is the package's own.

Parts in a `main class="layout-column"` (root-parts' markup) draw a 720x47
strip at 1440x900 and a 342x47 strip at 390x844, as on #7070, in Chromium and
Firefox. review-parts and root-parts at 1440x900, 390x844 and 1280x720 in
both engines are unchanged against #7070 in pixels and computed styles.
test_interact_layer.py, test_theme_tokens.py and test_interact_document.py:
408 passed.

> _This was written by Claude Code on behalf of max-sixty_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants