Skip to content

test(test-app): add a Settle lab of single- and multi-stage effects - #4638

Merged
thymikee merged 4 commits into
mainfrom
t3/settle-lab-fixtures
Nov 17, 2026
Merged

thymikee merged 4 commits into
mainfrom
t3/settle-lab-fixtures

Conversation

@thymikee

@thymikee thymikee commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Summary

This PR adds a test-only Settle lab screen to the fixture app (agent-device-test-app://settle-lab). It is the regression harness for any future --settle change. Each button starts one effect with a known final screen, so a settled tree can be checked against the screen a few seconds later:

  • Increment: an in-place change that renders at once.
  • Delay 500 / Delay 800: a Run N acknowledgement appears at once, and the result arrives 500 or 800 ms later (acknowledge now, result later).
  • Fade overlay: an overlay that stays in the tree while it fades for 750 ms, then is removed.
  • Two stage spinner / Two stage plain: an intermediate state held for 600 ms, with and without a busy indicator, then a final state.
  • Toast then navigate: a toast, then a push to a result screen 700 ms later.

Tab, push, back, sheet and fill cells use the existing Catalog, Settings, Automation and Form screens. Five test-app files change; there are no runtime or contract changes.

Evidence from #4611

Arm A is origin/main at fce2fa6247. Arms B, C and D add back-to-back captures with a 25 ms gap. C and D also pass --settle-quiet 200 / 100. Runs used the iPhone 17 Pro simulator and an API 37 AVD, N=15 per cell, with arm order rotated per round. The host was shared: the 1-minute load at block starts was 16–300.

platform flow p50/p95 s: A main · B fast poll · C 200 ms · D 100 ms
iOS 23.1/26.7 · 23.3/26.2 · 21.3/25.6 · 20.3/25.6
Android 14.6/18.0 · 15.2/17.0 · 11.0/16.2 · 10.5/13.7
platform scenario wrong A · B · C · D (of 15)
iOS delay500 0 · 0 · 9 · 15
iOS delay800 15 · 12 · 15 · 15
iOS stage-spinner 5 · 4 · 14 · 14
iOS stage-plain 7 · 5 · 15 · 15
iOS toast-nav 15 · 14 · 15 · 15
iOS push 0 · 0 · 11 · 11
iOS sheet-dismiss 0 · 1 · 0 · 0
iOS fill 15 · 14 · 15 · 14
iOS open-automation 0 · 0 · 2 · 15
Android delay500 2 · 2 · 15 · 15
Android delay800 14 · 15 · 15 · 15
Android overlay 8 · 10 · 14 · 15
Android stage-spinner 5 · 6 · 15 · 15
Android stage-plain 5 · 8 · 15 · 15
Android toast-nav 8 · 15 · 15 · 15

iOS fill is wrong in every arm, including main, which points to post-check noise.

Conclusion: no fixed window or poll cadence beats today's without new wrong settles. Shorter windows settle on acknowledgements and intermediate screens. Fast polling at today's window removes the overshoot that today catches 600–700 ms plateaus with. Transitions need an idle signal.

Validation

  • Test-app typecheck passes.
  • pnpm gate fallow: no issues in the 5 changed files.
  • Eager-closure budget test passes. Layering guard OK.
  • Tested at fdc24156e2 (lab change only; the evidence runs used the lab as of 5830b7b19e).

🤖 Generated with Claude Code

Deep link agent-device-test-app://settle-lab. Each button starts one effect
with a known final screen, so a settled tree can be checked against it: an
in-place counter, results 500 and 800 ms after an immediate Run N
acknowledgement, a 750 ms fading overlay, two-stage transitions with and
without a spinner, and a toast that precedes navigation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 6.37 MB 6.37 MB 0 B
Package (unpacked) 6.37 MB 6.37 MB 0 B
Package (download) 1.93 MB 1.93 MB +8 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 25.4 ms 24.2 ms -1.2 ms
CLI --help 57.7 ms 45.8 ms -11.9 ms

@apex-sentinel-staging

apex-sentinel-staging Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Apex Sentinel · 🟠 Request changes

Since the last review: 1 new · 0 still open · 1 no longer raised (1 marked fixed)

1 finding(s): 1 major.

Required fixes

  • Fade overlay is not an overlay: spreading StyleSheet.absoluteFill adds no positioning

🟠 Major (1)

Where Finding
examples/test-app/src/screens/SettleLabScreen.tsx:194 🆕 Fade overlay is not an overlay: spreading StyleSheet.absoluteFill adds no positioning

Reviewed with this repository's own Sentinel configuration (bfb67d5cce37).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

Earlier reviews

Review of 22a2cf45 · 17.11.2026 14:17 UTC

Apex Sentinel · ✅ Approve

Since the last review: 0 new · 1 still open · 1 no longer raised (1 marked fixed)

1 finding(s): 1 minor.

🟡 Minor (1)

Where Finding
examples/test-app/src/screens/SettleLabScreen.tsx:31 Tapping another button mid-run still strands the spinner, toast or overlay in the tree

Reviewed with this repository's own Sentinel configuration (daae2ee138ca).

Review of eb3f024b · 17.11.2026 14:08 UTC

Apex Sentinel · ✅ Approve

Since the last review: 1 new · 1 still open · 1 no longer raised (1 marked fixed)

2 finding(s): 2 minor.

🟡 Minor (2)

Where Finding
examples/test-app/src/screens/SettleLabScreen.tsx:31 Tapping a different button mid-run leaves the spinner, toast or overlay in the tree forever
examples/test-app/src/screens/SettleLabScreen.tsx:71 🆕 Overlapping overlay runs stack two timing animations on one Animated.Value

Reviewed with this repository's own Sentinel configuration (4b692e53014a).

Review of 5830b7b1 · 17.11.2026 13:59 UTC

Apex Sentinel · ✅ Approve

2 finding(s): 2 minor.

🟡 Minor (2)

Where Finding
examples/test-app/src/screens/SettleLabScreen.tsx:65 Overlapping overlay runs remove the panel early and publish the older run id
examples/test-app/src/screens/SettleLabScreen.tsx:82 A second two-stage tap clears the first stage early and reports a stale completion

1 finding below minor hidden (user_settings.min_severity).

Reviewed with this repository's own Sentinel configuration (27a4e409dae6).

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apex Sentinel: 2 new findings on 5830b7b. The verdict and the full list are in the summary comment.

An older run's timer or fade completion cleared a newer run's state and
published its stale id when taps overlapped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apex Sentinel: 1 new finding on eb3f024. The verdict and the full list are in the summary comment.

thymikee and others added 2 commits November 17, 2026 15:09
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e starts

The latest-run guard drops a stale completion, so a run interrupted by
another tap left its spinner, toast or overlay on screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apex Sentinel: 1 new finding on fdc2415. The verdict and the full list are in the summary comment.

@thymikee

Copy link
Copy Markdown
Member Author

The code at fdc2415 is ready to merge. Not blocking: settle-status is not reset in nextRun() (https://github.com/callstack/agent-device/blob/fdc2415/examples/test-app/src/screens/SettleLabScreen.tsx#L60), so the previous run's final text stays visible while a new run is pending, and setStatus('pending') there would fix it; take it or leave it.

The open inline thread on the overlay style (#4638 (comment)) does not apply: the test app pins react-native 0.88.0-rc.0, where StyleSheet.absoluteFill is a plain object with the position and all four insets, so the spread keeps them and the overlay covers the screen. Please resolve it.

The diff only touches examples/test-app, the other checks pass, and there are no conflicts.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 17, 2026
@thymikee
thymikee merged commit 1cb2f24 into main Nov 17, 2026
18 of 19 checks passed
@thymikee
thymikee deleted the t3/settle-lab-fixtures branch November 17, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant