Skip to content

linux engine: a Chrome in-floor drop whose tail visit is dropped releases on schedule after a recent motion, and its activation confirms a drop the page didn't take #512

Done

Description

@SSFSKIM

Present in 0.4.3 and 0.4.4 (on main); the fix targets 0.4.5. Parent #171; relates #459.

What happens. In 0.4.3's and 0.4.4's in-floor schedule (release_sync, rulings 999–1001), a Chrome drop whose gate stays shut gets its tail inside the floor: visits at take+334 and take+342, release at take+350. Under load the path's own steps can overrun the keepalive end (floor_until, 326 ms) into that window. A visit whose time has passed is then dropped and the release doesn't move. The button goes up shortly after a recent motion while Chrome's drop status is stale, which is #459's fault. Chrome's activation request then confirms a drop the page never took.

Evidence.

  • H9 arm64 L4d (counted, FAIL): t14-floor left row Agent operating guidance in host notes and README; redact token-bearing URLs from js results #28. Chrome showed the accept cursor at 88.9 ms and never showed the leave. The path overran floor_until by 12.7 ms, and the release came at take+350.1, 11.4 ms after the last step. Activation came 1.7 ms after the release; the engine answered ok, and the zone counter did not move. This was 1 of 30 rows on left; the other 29 were honest.
  • Task 132 (0.4.3 candidate, arm64 at twice the load): 15 drops on t14-floor had a dropped visit; none of them was a wrong ok.
  • Evidence fe394d2 on h9-reach-arm64. The release_sync development measurement (task 147) follows, and x64's count is added if x64 shows the same shape.

Fix (ruling 1142, amending 1140). The arm64 release_sync measurement (task 147, 9f688f9 on h9-reach-arm64) found 2 false oks in 100 on t14-floor left at twice the load. Both were in-floor, and in both the path's last step came after floor_until. One (r2 #13) dropped no visit, so a dropped-visit rule alone would miss it. The tally on left with the tail at arm64 twice the load is 3 in 260. The 51 rows that took the after-path tail had 0 false oks.

  1. Required. A Chrome in-floor drop whose path's last step comes after floor_until, by any margin, takes the after-path tail (993's gate rule applied to floor_until: rest 8, visit, 8, visit, 8, then release; about +25 ms, on those rows only).
  2. Required, fail-closed. A drop whose tail still dropped a visit is answered unconfirmed, with option (c)'s notice.
  3. To decide in 0.4.5's design. If the engine can read Chrome's drag status (the leave), the fail-closed rule becomes: no leave seen after the path's last out-of-zone step means activation alone doesn't confirm, and the drop is answered unconfirmed. That rule replaces 2. If the engine can't read it, the design says why, and 1 and 2 stand.
  4. Copy release_sync (and handle.release_sync) into drop-signals rows, so a counted row shows whether its tail ran.

Acceptance. 0.4.5's reach passes L4d at ruling 993's bar on both arches. t14-floor left ×300 at arm64 twice the load gives 0 false oks (×100 would show 0 about 30% of the time at the observed rate). Unit tests cover the overrun → after-path tail case and the dropped-visit → unconfirmed case, and confirm that an in-floor tail with no overrun is unchanged. Venue: the arm VM is gone after 11-26; 0.4.5's pre-flight settles whether the hosted ubuntu-24.04-arm runner carries L4d's load steps.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    on Nov 23, 2026
  2. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    x64 at H9 (cd03a47, pinned 0.4.4; task 148, evidence 0b10874 on h9-reach-x64): L4d's t14-floor left answered 0 false oks in 30, all 30 honest unconfirmed. t14-long gave 100 honest, plain-long 300 landed, and inzone-out 30 honest. So the shape is observed on arm64 (1/30, H9 L4d #28) and not observed on x64 (0/30). 0 in 30 doesn't rule out a rate near 1 in 30, so the fix is required on both arches. arm64's release_sync measurement (t14-floor left ×100, task 147) follows.

  3. SSFSKIM commented on Nov 24, 2026

    @SSFSKIM
    OwnerAuthor

    Requirement added (ruling 1192, from #571's review): cua-engine's wire.rs to_line() writes U+2028/U+2029 raw. Escape them as \u2028/\u2029 in every JSONL line the engine writes (same JSON value), so third-party clients that read with Node 24+ readline don't split a message (#565). cua's own client is already LF-only after #571. Test: an AT-SPI name with LS round-trips through a Node 24+ readline reader.

  4. SSFSKIM commented on Nov 24, 2026

    @SSFSKIM
    OwnerAuthor

    Correction: the wire.rs LS/PS requirement above is its own ticket, #572, shipping in the same 0.4.5 release.

  5. removed
    status:ready-for-implementer
    on Nov 24, 2026
  6. SSFSKIM commented on Nov 24, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #585 (cua 0.29.21, linux-engine 0.4.5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions