Repository navigation
Replace authoring caveats with rendering and publication guarantees - #2259
Conversation
Use maintained dependencies for established capabilities, including prototypes, while retaining native platform and standard-library reuse. Keep browser builds in Leaf's development and release pipeline so consumers receive ready assets.
Named waits observe existing ownership, so delivery fixtures now claim at their acquisition boundary. Keep explicit no-acquisition coverage and exercise archived recovery after an uncertain provider start. Refresh the changed receipt and Stop protocol snapshots.
The reviewed head failed the required test job.
…ixes # Conflicts: # skills/leaf/assets/runtime/chrome.css # skills/leaf/assets/shadow.css # skills/leaf/packages/diagram/theme.css
|
The required test job is red on
The job also fails the authenticated visual-review journey because the capture credential appears in the page HTML. I reproduced the assertion, but have not established whether this diff causes it. I dismissed my approval while these failures remain. |
Carry the editor trailing action room into its retained message, keep saved region readings through deferred native resize restoration, and retain diagram reservation room across native font metrics. Focused touch placement and resize journeys now hold their original assertions.
leaf-agent
left a comment
There was a problem hiding this comment.
The new two-action response layout overrides page-supplied spacing. Both light and dark browser cases fail in the test job; the inline suggestion keeps the default while allowing the page's override to apply.
CI failed: response spacing override regressed in the two-action layout.
Extend the shared uncovered action-room calculation to the two-action response bar while preserving the measured Send/Other responses placement and retained sent-message writing reservation. Use main's retained motion comparison and credit evidence instead of a second late reporting helper. Retain floating attachment inputs at the credit producer so rejected or missing source readings remain diagnosable too. Motion predicates, credits and admission thresholds do not change. Keep the previously reviewed navigation/primitive split: the Back journey covers arrival while focused placement controls own painted holder, child and inset faults.
Retain combined transform and CSS-zoom placement conversions with the resolved-plane source readings. Carry a sent editor height only when its words actually scrolled, alongside the exact retained action room. Target the Send control explicitly in the reactionless Suggest journey now that Other responses shares its field. Ten focused integration controls, eight thread journeys, the Node gate and pinned hooks pass. Independently review and accept all 48 current thread appearance checkpoints.
A deferred region restore owns the reading captured when its shift was reported, so intervening native scroll recording cannot replace it. Use that snapshot mechanism in place of blocking all recording while restores are queued. Deliberate user movement still cancels the restore. Nine focused resize, authenticated-evidence, posture and scroll-intent controls pass, as does a dissimilar stacked-pane reading probe. Independent review, the Node gate and pinned formatting checks pass.
leaf-agent
left a comment
There was a problem hiding this comment.
The merged package-lock.json stops both required jobs before tests run. npm ci reports four missing dependency versions, including @types/[email protected] and [email protected], in the test job. Regenerate the lockfile from the merged package.json and verify a clean npm ci so the build and test gates can run.
The selection composer again has only its Send action. Remove the Other responses ellipsis, its DOM/ARIA wiring and the space reserved for a second action from both floating and inline presentations. Suggest and reactions keep their Tab and e keyboard routes. This restores the product decision from #1863, which #2259 reversed when adding pointer access. Record that omitting the ellipsis is a deliberate product decision, including on phones. We can reconsider it with the user through a rendered design comparison; it is not an implementation defect to repair. Update the gallery and regression coverage accordingly. Validation: 10 focused browser cases covering desktop/touch, floating/inline, no reactions, draft retention, disclosure/Escape, field growth and sent-card alignment; 336 runtime tests; light/dark rendered journeys and an independent reader’s select, draft, disclosure, Escape and Send journey. A fresh startup comparison against current main keeps the same request counts and reduces code bytes before presentation. > _This was written by Codex on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
The diagram label injection check now verifies the rendered safety contract: the suspicious label appears as SVG text, no image or script element is inserted, and the event handler never runs. In [main run 38133035955](https://github.com/max-sixty/leaf/actions/runs/38133035955), the exact-text assertion failed because the Mermaid renderer rebuilt in #2259 sanitized the label from `<img src=x onerror=...>` to `<img src="x">` before Leaf inserted its SVG. The original test failed on main and passed with this change. This keeps the security check while allowing the renderer to remove dangerous attributes and change its textual serialization. Co-authored-by: leaf-agent <[email protected]>
Leaf now stamps each resolved Mermaid visual part with its authored node ID and names ER and class parts from that ID. In [main run 38133035955](https://github.com/max-sixty/leaf/actions/runs/38133035955), many diagram aim and reaction tests could not find their nodes: the renderer rebuilt in #2259 uses generated SVG IDs but no longer emits `data-id`. The parts were present in Leaf's `visualParts` map, yet the source identity was absent from their drawn element. ER and class parts also inherited text from their entire table or method list as a comment label. The diagram widget already resolves each authored ID to its exact SVG element when it builds `visualParts`; that same step now projects the ID onto the element and keeps the entity or class name as its label. The failing SVG aim, reaction, and cross-diagram comment journeys passed after this change. Prettier and ESLint passed for the modified module. Co-authored-by: leaf-agent <[email protected]>
The diagram font browser check now tests the rendered SVG fonts and absence of external font imports without requiring Mermaid's obsolete `text.mono` marker. [Main run 38133035955](https://github.com/max-sixty/leaf/actions/runs/38133035955) failed at that marker: all six diagram types rendered, their IDs were unique, their local references resolved, and their text fonts matched Leaf's face, but the current Mermaid output contains no `text.mono` elements. #2259 rebuilt the vendored Mermaid renderer. The class and ER diagrams now draw their literal rows as ordinary `text` elements, so requiring that internal class no longer checks Leaf's font contract. The exact failing test failed before this change and passed afterward. This PR addresses that diagram assertion; the run's other failures are separate. Co-authored-by: leaf-agent <[email protected]>
The diagram scheme check now expects the 10% accent tint that the current diagram widget gives Mermaid. [Main run 38133035955](https://github.com/max-sixty/leaf/actions/runs/38133035955) failed because the test still expected the former 14% tint, even though the rendered node changed color correctly with the page scheme. #2259 introduced the current theme rule while rebuilding the renderer. The exact test failed before this change and passed afterward. It still checks both the rendered light tint and that the same node repaints under the dark scheme. Co-authored-by: leaf-agent <[email protected]>
Leaf authoring guidance compensated for silent diagram omissions, manually enumerated comment targets, timestamp-based measurement freshness and a missing pointer route to response choices. The code now supplies those guarantees: maintained Mermaid rendering, parser-derived
parts="all", atomic source publications with durable run receipts, and Other responses in floating and inline composers. The duplicate playground initialization recipe is removed because defaults already draw before its behavior module loads.Source publications keep value, receipt and display time together, including identical-value reruns, page copies and live samples. Diagram consumers use native CSS classes and measured first-paint reservations. Seven complete site rosters expose 71 connected comment targets. Response composers preserve writing room, pointer and touch access, focus and reading position through Send and viewport changes. Window-bound attachments record their resolved placement plane and scroll offsets, so the existing motion gate can distinguish source following from excess movement; canonical retained evidence replaces the extra late diagnostic helper.
Maintained Mermaid adds 2,355,981 lazy bytes; pages without diagrams load none. The paired renderer comparison has the same 310 code requests and zero startup shifts in both arms, with 2,359,359 additional bytes before diagram presentation. The added renderer preserves source meaning the previous renderer silently dropped.
Validation includes source-publication copy/rerun/error/live-sample controls, 63 focused data controls and 722 broader contract/server/usability tests, diagram-family and target controls, first-paint checks, desktop/touch/light/dark reader journeys, motion/navigation/resize and composer controls, the site build and product-page rendering, and independent code and rendered review including the underlying-fix pass. The expanded existing diagram eval improves from 2/3 to 3/3 criteria. All 13 refreshed catalog images and 48 thread checkpoint images have been visually reviewed; the current macOS appearance gate passes 11 controls with one platform skip. Integrated main retains reading-band snapshots, offscreen-focus continuity, message rewriting, native shot layout and viewport-constrained thread proof.
The latest main integration retains sample area capture, Firefox sample controls, canonical landing room and stuck-card annotation scrolling. Twelve focused controls pass, including desktop/touch response disclosure; Node gates and pinned hooks pass.
Contributor and CI dependencies use the canonical pinned pnpm installation from PR #2317, eliminating the npm-version-dependent lock interpretation that failed CI. The merged frozen installation, regenerated assets, Node gates (314 runtime, 95 browser-build, 75 Worker and four eval-runner tests), pinned hooks and committed bundle gate are verified.