Skip to content

Spike: targeted AX invalidation after AX-free gestures (escape hatch for baseline-distrust cap) #1560

Description

@thymikee

Follow-up to #1542 defect 2's approved fix (baseline-comparison distrust in post-gesture stabilization). The v1 fix accepts the result when the bounded distrust cap expires with the signature still matching the pre-gesture baseline — correct for genuine no-op gestures, but it leaves one theoretical hole (a tree that is stale AND partially different reads as settled) and pays a small latency tax on no-op gestures.

Spike question (runner-side, iOS): does a cheap, targeted AX re-resolution hook exist (public or via the private-AX surface the runner already uses for bulk snapshots) that forces the next snapshot query to bypass the cached tree after an AX-free synthesized gesture?

Constraints from history: forced FULL re-resolution on deep RN trees can cost seconds (the #758 sparse-tree/depth-ladder arc and the recurring slow-AX deferrals) — an unconditional post-gesture resync would be a worse agent experience than the bounded cap. The hook is only worth wiring if it is (a) targeted/cheap on complex trees, (b) stable across OS versions. If found, its integration point is the cap-expiry branch of the baseline-distrust logic (replace "accept possibly-stale" with "force one fresh read"), not a new unconditional step.

Deliverable: measurement-backed GO/NO-GO with per-tree-size timings on the test-app + a Bluesky-class deep screen; implement only after sign-off.

Generated by Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions