Repository navigation
Consolidate attribute validation and refactor error reporting - #4
Merged
Merged
Conversation
A sweep for the same rule written twice, on both sides of the layer. Nothing changes about what any gate accepts or what any key does; what changes is how many places state it. The registry's six "this key names an attribute the widget has to declare" checks are one loop over ATTRIBUTE_KEYS. The failure was always one — the attribute is absent, so the pass reading the key finds nothing and does nothing, and the widget is simply missing from it — and writing it six times made the seventh key a check to remember rather than a word in a tuple. Three of them said "attributes ['x']" and three said "attribute `x`" for want of anyone comparing. The parametrized test covered the three that shared a spelling; it covers all six now, since the case that goes wrong is a key left off the tuple and no test of a hand-written three could ever see it. `tone_errors` and half of `language_errors` were the same reader with the noun changed, down to a docstring each making the same argument for why an invisible failure is routed to whoever wrote the word. They are `declared_word_errors` over DECLARED_WORDS, so a third such word is a row; the `class="language-…"` half stays its own gate, its subject being a plain HTML block that belongs to no widget. `known` stopped being threaded through `fragment_errors` and `language_errors` beside the registry both callers read it out of. `cmd_catalog` printed seven `$` facts as seven near-identical blocks, which is the wrong shape for the agent's own documentation of a vocabulary that grows. The authorization gate stood at the top of `_get` and again at the top of `_post`; it stands in `_answer`, for the reason `end_headers` already gives for the cookie. Three customization scaffolds spelled out the same overlap refusal. Two gates asked a parser the same three things about its ids. `at()` is the one spelling of where a finding is, which eleven sites had written out in three slightly different ways. On the browser side: one `postEvent` door to /api/event, since what `post` and the error report share is the request and not the sending; one `walkRows` for the clamped row walk the leaves board and the versions menu had byte for byte; one `spanIn` joining a passage's segments to the reading's own coordinates, which the capture and the snap each computed inline. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G7Y1kiLbLCtUb495A1QvC
max-sixty
added a commit
that referenced
this pull request
Sep 9, 2026
The notification playground previously spent most of a short first viewport on repeated framing, and its configuration stopped at an instruction rather than proving the promised agent workflow. This change compacts the example around one question, gives the attention preset honest content, and makes the selected configuration describe a concrete local artifact and where its revision will appear. The integration test drives the existing request lifecycle end to end: a reader sends a configuration, the host picks it up, the agent writes and captures `deployment-notification.html`, the page exposes that source beneath the original configuration, and an anchored reader comment produces a second artifact revision with a receipt. The test also covers the replaceable configuration seat, source visibility, preserved anchoring, and the updated file contents. The catalog preview is refreshed at `max-sixty/leaf-assets@357127280030c3a81425483f1c44fc152d29c7c6`, and the completed #2, #4, #6, #8, #9, and #17 backlog entries are removed while preserving the deferred evaluation work. Verification: `uv run pytest tests` (944 passed), `uv run pre-commit run --all-files`, rendered light/dark and short-window checks, standalone export, and two context-blind Sol usability passes. > _This was written by Codex on behalf of max-sixty_
max-sixty
added a commit
that referenced
this pull request
Sep 18, 2026
The Lit application arc between 2026-09-13 and 2026-09-17 closed #1 and #3 without the list recording it: `semantic-state.js` is 77 lines over one publisher and `application.js` holds no DOM reference, while `version.js` activates through one door returning one result that `state-application.js` adopts atomically. Both leave for git history. The largest remaining duplication was not on the list. `scripts/browser/application.ts` re-derives the Ask inventory, the winner resolution and each thread's `awaits_reader` from a wire that already carries all three, roughly 750 lines that arrived in #746; the two copies of the `when` predicate already disagree on an attribute recorded as `null`, and nothing compares them. That inverts #4, which asked for a corpus proving parity between the two implementations — built first it would police one that should go — so #4 now names the deletion and the corpus follows it. Three items are new. #25 is the Worker's second App Server client, whose reconnect backoff is written four times and has already drifted. #26 is the generated-hint machine that `go-to-sequence.js` and `target-chooser.js` each build. #27 is admission: six of the nine `append_event` callers check no contract, and of the three that do, `cmd_receipt` uses a validator `requests.py` defines itself, so the rules sit in two homes and the gate in three against a stated boundary of validating once at the edge. They take ids above #23 because `notes/workspace-followups.md` numbers its research #1 to #23 and the workspace section here draws from it, so #9 and #10 were already spoken for. The section now says where its ids come from rather than leaving the next writer to rediscover it. The items that stay keep their numbers and gain what the survey measured: how much of `margin-projection.js` is already free of the DOM, what fraction of the render suite drives no input, and the 53 capabilities `page.js` and `leaf.js` both name. #8 stops waiting for a change to prove the need, which has happened. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
max-sixty
pushed a commit
that referenced
this pull request
Sep 18, 2026
`notes/workspace-followups.md` has been presenting finished work as the plan since 9 September. It opens with "Start #2, #3 and #4 as one coordinated contract batch; run the review-queue simplification #8 alongside it" — all four of those shipped that week — and carries thirteen briefs, each with a live "Next task" and "Done when", for work `TODO.md` dropped as complete. This removes them and leaves the six `TODO.md` still links: #11, #14, #19, #20, #22 and #23. The trim follows the convention #666 set and the reason `CLAUDE.md` gives for it: a note is never a second specification for shipped behavior. #666 removed #6, #7, #16 and #17 the same way, rewriting the two `Owner / dependencies` lines in surviving briefs that named them; it simply did not reach the rest. Each removal is evidenced by the commit that took the item out of `TODO.md`, not by a reading of the current code: | Brief | Removed from `TODO.md` by | | --- | --- | | #1, #3, #5 | [`0f7f06a6`](0f7f06a) — "Completed workspace items #1, #3, and #5 are removed from `TODO.md`" | | #2, #4, #8, #9 | [`28b5da99`](28b5da9) — "the completed #2, #4, #6, #8, #9, and #17 backlog entries are removed while preserving the deferred evaluation work" | | #13, #15 | [`6df40353`](6df4035) — "closes three bounded workspace follow-ups" | | #10, #12 | [`c9eaa2c6`](c9eaa2c) — the continuation cue and the adaptive Threads placement | | #18, #21 | [`e46c8b93`](e46c8b9) — the monitoring workspace and its package-owned root | Alongside the briefs, three group headings are now empty and go; the `Suggested work packages` table loses the rows whose whole scope landed; and four cross-references that named a removed ID are rewritten — #14's dependency on the Threads-placement experiment, #20's ordering behind #8, and the two sentences in `Reproduction record` and `Browser evidence` that pointed at briefs no longer here. #14 needed more than a rewritten pointer. The experiment it waited on was settled in two steps, and only the first removed an ID: [PR #520](#520) kept the adaptive placement and deferred the modal-focus work to #24, which landed in [PR #536](#536) as inertness, dialog semantics and focus containment for a covering workspace. That is the surface #14 exists to verify, so its `Done when` — "Avoid imposing a modal focus trap on a nonmodal panel" — described the containment #536 shipped as the defect to avoid. It now states the containment the shipped modality requires, and the dependency line names both settlements. The dated evidence sections themselves stay. They are the record of what was read in a browser on 8 September, not a plan, and the note's own header scopes them to that date. No test covers `notes/`, and this changes no behavior, so there is nothing to regress. `pre-commit` passes on the file; the `TODO.md` → note anchors all still resolve, and no surviving text references a removed ID. --------- Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Sep 18, 2026
…gain (#808) `TODO.md` #4. `application.ts` folded the whole Ask reading a second time — which Asks a document holds, which of them the reader still owes, every declared target's awaiting value, and each thread's `awaits_reader` — over DOM-captured descriptors, while `leaf.asks` folds all of it under the page transaction that answers every state read. The browser copy is gone and the wire is what it reads. Deleted: `deriveAsks` (176 lines), `deriveThreadReaderObligations` (55), the ask predicates between them, `admittedUnansweredAsks` with the approval gate's `projectionDeferred` branch, and `askDescriptor` / `conversationDescriptor` / `retirementAncestors` in `widget-descriptors.js`, which existed only to feed them. In their place, `normalizedAsks` maps the wire's records to the public `{id, tag, sourceId, sourceTag, thread}` shape, page asks before thread asks. `served_state/document.py` serializes the page reading it has been computing and dropping since #747, and `served_state/conversation.py` builds its own through one `_AskReducer` rather than two. Each listed Ask now names the `source` that answers it beside the surface the reader is sent to, which is what the browser's records carried and the wire did not; `leaf state` shows both as well. The two copies of the `when` predicate disagreed: Python asks whether an attribute is present and TypeScript asked whether it was non-null, so an attribute a value record had set to `null` read differently on each side. Python's reading is now the only one, and the browser's action-availability gate and the server's POST door read the same `unanswered_awaiting` map. ## What moves on screen **The Ask reading is no longer optimistic, and that is the one judgement call in this change.** A reader still sees their own gesture in its widget at once — the pick, the cleared pick, the swiped card, the withdrawn classification, the controls rebuilt by an Undo — because the unresolved-attempt ledger, `foldThreads`' pending branch, the DOM-captured authored baseline and `foldWidgetStates` all stay. But the Asks tray, the banner count, the `a`/`A` walk, the approval gate and an action's `requires` gate now turn over when the state that gesture's own POST returns is adopted, where they used to turn over as the gesture was sent. Keeping them optimistic is what the deleted code was for: doing it exactly needs the answer verbs, the `until` verb, the nonempty-facet rule, the completion containers, the rollup tree and the existence reading — which is the duplication itself. Against a local server the gap is one short round trip: answering and withdrawing an answer on `review-a-plan` in Chrome moved `Asks 0/1` and the Approve control with no visible lag, console clean. Eight tests asserted the reading at the held-POST moment and now assert it on the log's answer, and `CLAUDE.md`'s cross-runtime invariant now says which gestures the page can draw for itself and which wait for the log. Revert that paragraph and those eight tests together if the optimism should stay. One case is not that delay and is fixed rather than accepted (leaf-agent found it): a thread carrying a frozen Ask the reader still owes used to lose its "awaits you" mark the moment they started sending a reply and take it back when the reply landed — true → false → true, reversing direction rather than lagging. A thread the server still names in the reader's Ask list now keeps `awaits_reader` over `foldThreads`' pending-reply branch, read off that same list rather than folded again. ## A correction to the item `TODO.md` #4 also said `foldProjection` re-folds the winner resolution although the wire carries `actions` / `reports` / `desired`. It does not: it has consumed those id lists since #525. Its only re-derivation is `recompute()`, which runs solely for coordinates a pending entry touches, to reveal the next durable winner when a local undo withdraws the server's — the pending ledger's own work. Removing that would take a wire addition (per-coordinate ordered eligible candidates), not a deletion, so it stayed. ## Validation - `uv run pytest tests` — 1,145 passed on this head - `uv run pytest tests --run-nightly` on the first commit — 2,723 passed, 1 failure (`test_render_export.py::test_a_detached_preview_restarts_under_its_original_codex_claim`) traced to a `leaf ack` waiter left standing by my own earlier `scripts/preview.py` run; `tests/test_render_export.py` is 59/59 green with that state cleared, and 59/59 on the merge base as a control - `npm run check:browser` and `npm run test:browser` — 55 passed - `uv run pre-commit run --all-files` - Chrome, `review-a-plan` preview: answered the Ask, watched `Asks 0/1` → `1/1` and Approve enable; deselected, watched both reverse - `test_a_live_revision_reapplies_the_authored_conversation_seat_predicate` read `openAsks()` straight after `sending(...)` and failed 1 in 3 alone, because the Ask list is the applied state's now and `round_trip` returns one beat before `applyAcceptedState` finishes; it reads through `told(page)` and is 4/4 > _This was written by Claude Code on behalf of @max-sixty_ --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Sep 19, 2026
…its container The standing floor told a destination from one of Leaf's controls by asking whether the focused element sat inside `.lf-chrome`. A margin marker and a mark note are placed in the document beside the words they mark, outside that container, so the floor took them for destinations: a marker reached by Tab offered "let go" where the Threads toggle beside it, a control of the same standing, backs out onto the page. #832 named the unfolded cluster's case by hand through the Page Map's rung and left the folded marker wrong (focus-stack page, #4). The floor now asks what is held. The chrome container — banner, trays, panel head — holds nothing to let go of, as before. Out on the page, a thread — a card in the panel, a seat on the page — or an Ask is a destination, and so is anything inside one, including a card's own buttons and an Ask's picks, which wear the chrome face too. The Ask is the asks view's own reading, handed in through `declareStanding` like the modes and the Page Map's rung: it resolves a control hoisted into the margin to the Ask it serves, and an answered Ask is still one, so the word does not move under an unmoved focus when Space answers and the ring comes off. Outside those, `inUi` is the one reading of whether a node is Leaf's apparatus or the page's own content, which the margin's controls and the mark note already answer with `.lf-ui`; it is asked of the deepest focus, so a control staged in a shadow tree answers for itself. The Page Map's rung stays asked, for the reason the panel and the native layers are: it is a layer the reader is inside, not a chrome question. The walk destinations keep `inChrome`, whose question is the other one: whether an Ask or a heading is the page's own or a copy in the panel's frozen markup. `standingThreadOf` in conversation/focus.js is the thread reading on either side; `focusedThreadOf` stays the panel's, being the anchors module's question. `heldAsk` in asks/view.js is the floor's Ask reading beside `standingIn`, the walk's. Behaviour that moved in the suite: the key-line test read the release row on a Tab-focused mark note, and reads the ladder's back-out row there instead. A new case puts the toggle and a folded marker side by side and reads the same word off both; another reads "let go" off a pick before and after it answers. Leaf's apparatus outside any thread or Ask — a contents outline's links, a pressable option outside an Ask, a widget's own buttons — backs out onto the page now rather than letting go. Both land on the body from a bare page, and the order moves with the word: letting go is an inner step ahead of every frame, while backing out is the ladder's outermost rung, so with a pointer-opened panel behind the reader, Escape on one of these closes the panel first, as it does on the Threads toggle. Co-Authored-By: Claude Fable 5.1 <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 21, 2026
Every `lf-text-document` now scrolls its listing in a box `--lf-bound` tall (28rem by default), the same box a preview document's Source tab uses, and the page keeps that size from its first paint. Before, a document without `preview` was as tall as its text. The text arrives with the state answer after first paint, so the listing grew when it landed and pushed the rest of the page down. A short document now shows empty room under its last line, and a long one reads by scrolling inside the box rather than at full length in the page. The change is in the widget's registry entry and theme: - `lf-text-document` declares `x-bound: start`, so delivery marks every document as a bounded block, which makes its listing a reading region whether or not the author wrote `data-bound`. The listing's `max-block-size` becomes a fixed `block-size`. - Until the module draws the figure, the empty host wears the figure's frame, draws its label (or its source name) as the caption with the caption's rule, so it wraps the same way, and reserves the tab strip and the box. Its first box equals its drawn one in Chromium and Firefox, at 1440px and 390px, with and without a preview (483.4px and 530.4px). Measured with `leaf-dev probe` on a page that opens with a 20-line document and a paragraph under it: on main the paragraph moves from 114px to 547px at 1440px wide (0.018 layout shift) and off the screen at 390px (0.030); on this branch nothing moves at either width (0). On a page with three documents, one of them a 3-line one, the only shift left is inside a listing (0.12 at 1440px): the module draws an empty listing under "· no data" before the text arrives, then widens its gutter. TODO.md carries that as "Draw a text document's listing once its text has arrived". The widget-quality report no longer finds `keeps-first-box` on `lf-text-document`, so its entry leaves `tests/known_widget_findings.py`, and the TODO entry for this defect is gone. In the code-review test, reopening a card anchored to the whole document now opens over the document's box rather than under it, so the test accepts either. Max's decision #4 on the overnight report, option C with the fixed height. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Nov 6, 2026
…ge; travel goes to a passage's first drawn line Placement re-placed a thread only where a change touched the text nodes its last successful match stood in, so what a resolution depends on beyond those nodes went unheard. In Chromium and Firefox, on 58753e4: - words a script took out of a marked phrase and, in a later task, put back left it unmarked (#1); - a second copy of a quote written in its section, with no context to tell the two apart, left the first marked (#1); - a word prepended inside a declared shadow stage a passage runs into left both pieces marked, since the native walker never reached the page's piece before it (#2); - an element inside a passage made contenteditable, which fences it, left it marked, since the watcher reported only text writes and child lists (#3). Each was a mark a fresh resolution rejects, or one it finds that wasn't painted. The page's index of quotes (passages.js, `trackQuotes`) now holds what a quote's resolution depends on: every copy of each quote the threads name, placed or not, and the words a resolution read beside a copy to tell copies apart (`near`). Copies are found by hashing their letters, so one pass over the page finds every quote's copies, where a pattern apiece searched the whole page, once per thread (#4). Between readings the index is carried through the span the two readings differ in (`changedSpan`), which compares the readings themselves, so text, edges, fences and the order the walk reads the page's trees in all count, by the reading's own rules: copies outside the span stand, shifted past it, and the span plus the widest quote's letters before it is searched again. The words watcher no longer interprets which nodes a change touched; it says the reading changed, and which text nodes a change wrote or took out, whose live ranges the DOM moved even where the page then reads the same. Placement places again, after the script, the threads whose quotes the index says changed (`quotesChanged`) and those whose text nodes were rewritten, placed before or not. `runsOn`, the native walker and the per-reading, per-section regex cache go. A thread that comes to stand where the last paint marked nothing for it, and didn't choose to (a resolved thread, a drawing), is painted by a presentation, since only a paint of the page knows where it falls among the marks (anchor-paint.js, `replace`). Overlapping copies still collapse into the first. What changes: the regex's lead consumed its text whether or not the rest of the quote followed, so a lead that failed, or crossed a fence, hid a real copy starting inside it; now only a copy does. This reaches only quotes that overlap themselves. Step 0, a paragraph holding N marked passages, toggling a leading space (Chromium): - origin/main (6cc574a): the edit searches nothing and its next presentation searches each quote over the whole page: 32/512/1,600 searches, 24k/6M/59M characters, 4.8/127/1,077 ms. The merge base (6b3159d) is the same. - 58753e4: the edit runs those searches (reviewer's measure 0.5/7.5/42 ms). - Now: 0 searches; the edit takes 0.75/2.5/6.4 ms, which at 1,600 is re-placing the 1,600 threads whose node the edit rewrote. Pointer moves: 1.17 to 1.27 ms at 512, 3.29 to 3.32 at 1,600; the scaling page's 1,600-section edit 9.0 to 7.1 ms, moves 1.58 to 1.44. - Each script task that changes the page's words now builds the page reading once, for the index to compare: 0.3/2.2/6 ms at 32/512/1,600 sections. A counter redrawn every frame far from any mark costs 1.5 ms more a frame at 512 sections and 5 ms at 1,600. - A presentation on the 1,600-mark paragraph still takes about 0.9 s, on main too: the inventory keys each passage's row by reading its whole block (`passageRow`). - B, threads placed again over 80 moves beside a counter: 0 at 32 and 512 marks. Where travel lands (#5, #6). `passageStart` read a passage's first line down the page, so in vertical-rl it returned one character and `t` left the column at y 765-1165 in a 900 px window, and it took the first segment even where it draws no box, so `t` left a passage whose first words are display:none at y 1,685. It now takes the first segment the browser draws a box for and reads its line along the block axis of its writing mode. Tests, each failing on 58753e4 in Chromium and Firefox: - test_a_mark_whose_words_a_script_puts_back_is_marked_again (#1); - test_a_marked_phrase_a_script_writes_again_is_marked_no_more (#1); - test_words_a_script_puts_inside_a_passage_s_shadow_stage_unmark_it (#2); - test_a_passage_a_script_makes_editable_inside_is_marked_no_more (#3); - test_travel_to_a_thread_shows_the_first_line_its_passage_draws, vertical and hidden start (#5, #6). Runtime: a kept quote answers each of nine changes as a fresh pass does, and the quotes the index says changed are those whose answer did; a change beside a told-apart copy changes its quote. Each fails with the window search, the fence or segment comparison, or the `near` check taken out.
max-sixty
added a commit
that referenced
this pull request
Nov 28, 2026
Adds `app_server.follow_turn`, which reads one thread's notifications (buffered ones first) until a turn ends and returns that turn. It replaces three loops that each did this with their own buffering, timing and completion check: Codex inference reading its answer, the website's hosted-turn follower with its `TurnStream` class, and the website's wait for an orphaned turn it interrupted to stop. The diff is line-neutral (+124/−123). The gain is one home for reading a turn to its end, so a change to how turns end lands once. What a reviewer should weigh: - `follow_turn` takes both a `deadline` (inference, and the interrupt wait that holds the user's request open) and a `silence` bound (the hosted turn, whose length is open-ended). Each caller keeps the timing it had. - Inference now keeps the notifications that arrive behind its `turn/start` response, where it used to drop them, and waits for the turn that response names. - The hosted follower's `turn_first_notification` record drops its `buffered` field, which nothing read. The developer `codex_task.Task` stays as it is: it watches every turn of a thread across clients, not one turn to its end. Max asked for this as open item #4 of the Codex harness simplification (#7552). Tests: the website follower, dispatch and answer tests, the inference and title tests, a live Codex inference request, and the `website-adapter` agent journey (passed on a rerun; in the first run the hosted turn ran to its own final answer, but the agent replied without publishing its edit). > _This was written by Claude Code on behalf of max-sixty_
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.
Summary
This change consolidates repeated validation patterns for widget attributes and refactors error reporting to reduce duplication and improve maintainability. It extracts common schema definitions, unifies attribute checking logic, and creates helper functions for consistent error message formatting.
Key Changes
Schema consolidation: Extract
_ATTRIBUTE_LISTand_ATTRIBUTE_NAMEschema definitions to replace four identical inline schemas forx-lines,x-paints,x-refers, and related attributes.Unified attribute validation: Replace six separate validation checks in
validate_registry()with a single loop overATTRIBUTE_KEYS, eliminating duplicate code that checked whether declared attributes exist in the widget's properties.Error message formatting: Introduce
at()helper function to consistently format error locations as<tag [named]> (line N), replacing 10+ inline formatting patterns throughout the codebase.Declared word validation: Consolidate language and tone checking into
declared_word_errors()function usingDECLARED_WORDStable, replacing separatelanguage_errors()andtone_errors()functions. Renamelanguage_errors()tolanguage_class_errors()to clarify it only handles<pre><code class="language-…">blocks.Catalog generation: Extract
CATALOG_FACTStable to replace 40+ lines of repetitive conditional printing incmd_catalog().Authorization refactoring: Move authorization check from individual route handlers (
_get(),_post()) to the_answer()method boundary, ensuring all requests are checked consistently.Helper functions: Add
latest_published()to extract common pattern of getting the latest published version with error handling, used by bothcmd_comment()andcmd_report().Function rename: Rename
customization_overlap()torefuse_customization_overlap()and add error handling directly in the function rather than at call sites.JavaScript refactoring: Extract
postEvent()helper andwalkRows()utility to reduce duplication in event posting and keyboard navigation code.Fragment validation: Update
fragment_errors()signature to removeknownparameter (now retrieved from registry internally) and consolidate id validation intoid_errors()helper.Implementation Details
The changes follow the project's principle of "one representation per concept" by centralizing validation logic and error formatting. The
ATTRIBUTE_KEYSconstant documents which keys name widget attributes, making the validation contract explicit. Theat()helper ensures consistent error location reporting across all validation passes, improving user experience when reading lint output.Authorization is now checked at the HTTP boundary rather than in individual handlers, preventing future routes from accidentally skipping the check. The
latest_published()helper prevents code duplication and ensures consistent error messaging for commands that require a published version.https://claude.ai/code/session_013G7Y1kiLbLCtUb495A1QvC