Repository navigation
Conversation
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 4f4daf8. The verdict and the full list are in the summary comment.
This comment has been minimized.
This comment has been minimized.
114df0f to
7214c93
Compare
This comment has been minimized.
This comment has been minimized.
278fdec to
65f4412
Compare
This comment has been minimized.
This comment has been minimized.
42f8ce2 to
0f9f49f
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 0f9f49f. The verdict and the full list are in the summary comment.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 38f6876. The verdict and the full list are in the summary comment.
ac0eadf to
b6e9bb3
Compare
38f6876 to
c8b433e
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on c8b433e. The verdict and the full list are in the summary comment.
b6e9bb3 to
ee8075e
Compare
c8b433e to
ca8364b
Compare
|
At ca8364b, one problem in the multiline matching budget needs a fix: an unrelated long text on screen can make a valid selector step fail. The multiline budget limits line count times text length to 131,072, whatever the pattern costs. A non-matching text of about 3 KB with more than 43 lines, such as a terms block, goes over it. For patterns with Not blocking, so take or leave these: a follow-up issue could relax the overlapping quantifier check, which refuses linear selectors such as Could this be much smaller while keeping the regexpp AST gate? A length or time budget alone does not bound synchronous backtracking: These open threads still apply: observe wait aborts and definite match still fails. These do not apply and can be resolved: this one is fixed at this commit, because both typed refusals are documented and production callers handle them; this one was withdrawn, because rethrowing the typed error for a hidden definite match with uncertainty is the intended behavior. Not verified here: the resolver-level failure was not run as a resolver test; the packed package (bundled regexpp, license notice, no runtime import) was not built, and the package check in CI covers it; the commit range-diff for the restack was not checked; and it is not proven that every pattern accepted by the AST gate has polynomial cost, although spot checks of nested, overlapping, alternation and group-after-quantifier forms were refused or ran linearly. CI is still pending: 34 checks pass, and one queued check is not a test job. Before merge, the multiline work budget must be fixed and covered by the resolver-level regression test. |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 finding moved to a new line on ca8364b. The verdict and the full list are in the summary comment.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
All reported issues were addressed across 27 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
|
At 7c7546d, observe mode now retries an indeterminate snapshot, which fixes the nested The multiline work budget still charges lines times length. A non-matching text of about 3 KB with more than 43 lines exceeds it. With a line-spanning pattern such as Can Two open high-priority threads still apply: loop-bound All 44 checks pass at this commit. Not verified here: no test was run. The budget failure was traced in the code, which is identical to ca8364b, where it was reproduced with a 2,959-character, 45-line value. The scroll problem comes from reading the code only, not from a device run or the real scroll callback. Before merge, line count alone must no longer make a line-spanning pattern indeterminate, the 3 KB tap test must be added, and |
This comment has been minimized.
This comment has been minimized.
|
At 806f13b, the earlier review's geometry fallback and nested polling issues are fixed, but two correctness findings remain. The exact-head packet reports 34 green checks; the earlier Repo Guards complexity result was for 9021a0c. There are no conflicts. Before merge, preserve definite misses across combined relations and valid bounded multiline spans, then record exact-head native replay evidence. An assertNotVisible with childOf selecting an existing empty container can still resolve containsChild against the whole snapshot. An unrelated long label can cause an indeterminate error before the empty-scope return, turning a definite absence into a typed replay failure. Can relation composition short-circuit when the intersection is provably empty, including between conjuncts in containsDescendants, while preserving uncertainty only when it can affect a surviving candidate? https://github.com/callstack/agent-device/blob/806f13b/packages/maestro/src/internal/runtime-selector-resolution.ts#L193 The dense multiline regression expects an indeterminate result for a roughly 6 KB label ending in Order and ready on separate lines, although Order.*ready definitely matches that tail on the base regex. Charging impossible line starts against the limit can make a text-only tap or visibility assertion fail on a complete, under-length snapshot. Can the matcher retain its work limit while pruning starts that cannot match the required literal prefix, and preserve the definite tail match in the existing regression? https://github.com/callstack/agent-device/blob/806f13b/packages/maestro/src/internal/selector-regex.ts#L61 The device run in the packet was at 9021a0c; the production source change to this head is a behavior-preserving extraction, but an exact-head live receipt and the earlier detailed commands and outputs were not provided. Before merge, record a built-CLI native Android daemon replay at 806f13b with the SHA, device, persistent android-helper backend and matching version, commands and outcomes. Show the sign-in tap beside the 45-line label, a swipe from an initially indeterminate snapshot reaching the below-fold target, and a separate run ending with REPLAY_DIVERGENCE and maestro_selector_regex_indeterminate. https://github.com/callstack/agent-device/blob/806f13b/packages/maestro/src/daemon-port/daemon-runtime-port.ts#L296 The unsafe propagation thread does not apply because unsafe errors are rethrown before fallback: #5300 (comment). The uncertainty thread is benign because uncertainty is preserved when no definite visible target exists: #5300 (comment). The indexed miss, reason documentation, nested polling, loop initializer, globalThis, same-node intersection, matching documentation, error documentation, and bundled dependency threads are fixed at head: #5300 (comment) #5300 (comment) #5300 (comment) #5300 (comment) #5300 (comment) #5300 (comment) #5300 (comment) #5300 (comment) #5300 (comment). No lower-priority threads still apply. Not verified here: Tests, a build, device execution, and individual CLI, Node, or MCP surface invocations were not performed. Static source review and packet inspection trace the shared daemon replay backend to the native operation dispatcher; no measured daemon event-loop latency, raw focused-run receipts, current packed artifact, or exact-head native execution receipt were provided. |
|
Size follow-up at |
|
Fixed both findings from the review at |
This comment has been minimized.
This comment has been minimized.
|
At 4f14c14, the earlier Log-line regression is fixed, but combined selector misses and another multiline prefix case still need fixes before merge. Ranking resolves an uncertain childOf again after containsChild has proved absence. The second resolution throws, so daemon replay can poll until it reports maestro_selector_regex_indeterminate instead of returning absence. Carry parent-match information from composition into ranking, and cover the uncertain-childOf-first order through production target resolution or observation. Relation composition retains a terminal candidate when an unrelated clipped node makes nested text uncertain. An assertNotVisible can therefore fail even though that candidate has no eligible child or descendant. Keep possible nested matches tied to their source nodes and project them through containsChild and containsDescendants before intersecting, including terminal candidates. Deferred uncertainty is raised before the outer leaf predicates can prove that every candidate has the wrong ID. Daemon replay can report maestro_selector_regex_indeterminate for a selector that is definitely absent. Intersect outer leaf matches before raising relation uncertainty, and retain the typed refusal when a leaf-compatible candidate still depends on that relation. The budget prefilter checks only the first character, so 1,500 Other lines followed by Order and ready on separate lines can exhaust the work budget despite a valid multiline match. This can make a text observation or action fail as indeterminate. Use the full mandatory run of leading Character atoms for the sticky, case-insensitive prefilter, while charging viable starts and retaining the length and work limits. Before merge, attach a remotely accessible native replay receipt for 4f14c14 with the built-CLI commands, Android device, interactive android-helper snapshot backend and helperVersion 0.21.46-dev. Show the 45-line sign-in tap, actual scroll progress to the below-fold target, and deadline REPLAY_DIVERGENCE with its typed reason. Identify the supplemental instrumentation capture and its transport assertion separately from the interactive route and clipping evidence. The thread on visibility uncertainty does not apply because the uncertain candidate could satisfy visibility; the thread on stale observation errors does not apply because each poll replaces the prior error; the thread on geometry fallback does not apply because unsafe input is rethrown and the oversized-value fallback is intended. No other lower-priority threads still apply. The initial Body rules run was cancelled. The latest GitHub check snapshot for 4f14c14 reports 34 passed, with no pending or failed checks. No conflicts are known. Not verified here: local gates, tests, builds, device runs, and individual CLI, Node, or MCP execution were not performed. The review used static source and the evidence packet; no raw focused-run results, exact-head package size or artifact, Body rules failure excerpt, or verifiable native receipt was available. Before merge, preserve definite relation and leaf misses through production ranking, prune impossible full-prefix starts within the existing budget, and provide the native receipt. The maintainer’s package-size decision remains open. |
|
Follow-up at
The earlier Android 16 replay receipt belongs to |
This comment has been minimized.
This comment has been minimized.
c669bc2 to
395d8a1
Compare
88af7a6 to
7e9c0c4
Compare
Apex Sentinel · ✅ Approve · review of
|
| Where | Finding |
|---|---|
packages/maestro/src/daemon-port/daemon-runtime-port-observation.ts:226 |
🆕 scrollUntilTypedMaestroTarget can scroll after its deadline expires |
packages/maestro/src/daemon-port/daemon-runtime-port-observation.ts:141 |
🆕 Unobserved regex work exhaustion becomes a permanent timeout, not the typed reason |
Not in the reviewers' scope (1 file)
pnpm-lock.yaml: generated or a lockfile, so its lines were left out
1 finding below minor hidden (user_settings.min_severity).
Reviewed with this repository's own Sentinel configuration (7c6ef4a2ed46).
💬 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.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on 395d8a1. The verdict and the full list are in the summary comment.
- 🟡 Minor · scrollUntilTypedMaestroTarget can scroll after its deadline expires ·
packages/maestro/src/daemon-port/daemon-runtime-port-observation.ts:226 - 🟡 Minor · Unobserved regex work exhaustion becomes a permanent timeout, not the typed reason ·
packages/maestro/src/daemon-port/daemon-runtime-port-observation.ts:141
Summary
Bound Maestro selector regex work with an AST gate and typed errors. Charge multiline work only at starts that can match the mandatory literal prefix. Carry uncertainty through the applicable tree or position relation and reuse the parent result during ranking. The runtime bundles
@eslint-community/regexpp. Stacked on #5245.Before / after
tapOn: {text: 'Sign (in|up).*'}selects Sign in beside dense unrelated lines that share its initial letter.assertNotVisiblecan confirm absence when the outer ID or another relation eliminates every possible match. A surviving undecidable candidate retains the typed error.scrollUntilVisiblecan swipe when the current snapshot is undecidable. At the deadline, persistent uncertainty returnsmaestro_selector_regex_indeterminate.Validation
395d8a137cpassed merge-tree. Hosted checks pending.At
c669bc28082f0f62be6410f9080e65cf068f917c, all 19 focused resolver tests passed. All 34 hosted checks passed at that SHA. Fallow flagged the previous implementation at7e4b1c3.At
7e4b1c3, 19 resolver tests passed. The same test file had 7 failures and 12 passes at4f14c14. Hosted Bundle Size passed at +66,662 bytes unpacked. Android replay did not run because the launcher was pinned to an older version. Maintainer size disposition is pending.At
4f14c1428d3c1164e8453b7b213f880d7fb27623, all 34 hosted checks passed. Android 16 replay tapped Sign in beside a 45-line label, reached the below-fold target, and returnedREPLAY_DIVERGENCEwith the typed reason at the clipped-text deadline. Both installed APKs matched local builds. The deadline harness flagged a transport assertion because the full capture used instrumentation. A follow-up capture confirmed clipping and scroll progress.