Repository navigation
Distinguish feedback contours from focus rings - #502
Conversation
leaf-agent
left a comment
There was a problem hiding this comment.
Two findings, both about what the change leaves standing as evidence.
The negative control no longer establishes its own premise. The premise holds today — .lf-mark-el.lf-mark-hover paints 2px solid var(--accent) and --here-ring is var(--here-ring-w) solid var(--accent) at --here-ring-w: 2px — but the case only asserts style == "solid", so nothing in the suite holds the two paints together. I put the hover contour back to 1px solid var(--mark-ink) in chrome.css and ran the case: it stays green. In that world the role clause never runs and the reading is silently blind to a genuinely unnamed ring on any element mark, with no test saying so. tests/CLAUDE.md opens on this: arrange the test so a green result could only have come from the behavior it names. The inline suggestion is green as it stands and red under that same revert.
The sweep's own contract paragraph now says the opposite of the clause above it — inline.
Worth noting for the description: the blind spot the exclusion buys is real, so "preserving the sweep's detection of unregistered focus rings" holds everywhere except on element marks, which is where the new clause applies.
Leaf's eval dependency tree installed a vulnerable FTP directory-listing parser through Promptfoo → proxy-agent → get-uri. Scope an npm override to get-uri's basic-ftp dependency and select 6.2.1, which fixes [CVE-2026-102990](GHSA-c475-qrg2-pj4r). The latest get-uri still requests basic-ftp 5.x; [upstream #502](TooTallNate/proxy-agents#502) tracks that constraint. Regenerating the lock also removes 14 unused entries already marked extraneous, including the unused braces dependency reported in [alert #20](https://github.com/max-sixty/leaf/security/dependabot/20). Basic-ftp is the only retained package whose version changes. Two MongoDB optional-peer entries previously marked extraneous are retained with npm 10's required optional/peer metadata so CI can install the lockfile. Existing platform-specific libc selectors are preserved. Node-forge remains installed and [alert #19](https://github.com/max-sixty/leaf/security/dependabot/19) remains unresolved. These findings came from [October's review tracker](#1501). Validation: clean npm 10.9.9 installs with full scripts and with `--ignore-scripts --omit=optional`; all six eval assertion tests; 81 focused Python eval-runner tests; one real Promptfoo echo evaluation through Leaf's runner; pre-commit and diff checks. Actual local FTP sessions through installed get-uri retrieve identical bytes with both MDTM and MLSD fallback. A crafted 128 KiB Unix LIST entry blocks past a 10-second subprocess deadline on basic-ftp 5.3.1; the patched dependency returns the expected missing-timestamp error in 0.13 seconds. This exercises the parser through get-uri's real fallback rather than replacing its calls. Basic-ftp 6 rejects separate transfer hosts by default, providing its FTP bounce-attack protection. Ordinary local passive transfers pass the compatibility check. > _This was written by Codex on behalf of max-sixty_
Element feedback now uses the same accent and width as the keyboard focus ring in its hover and current-thread states. The render sweep still distinguished the two by paint alone, so it misclassified those contours as unnamed focus rings when the regression ran in isolation.
This uses the element-feedback role to exclude only unnamed contours on non-focused marks; a focused mark remains eligible, preserving the sweep's detection of unregistered focus rings. The regression proves the hover contour and ring paint are identical, then covers the named focus state and an unregistered ring on a focused mark as positive controls.