Repository navigation
feat(plugins): validate native execution in the managed replay registry - #4535
Conversation
Size Report
Startup median (7 runs, lower is better):
|
aedf9f5 to
0315a02
Compare
|
At 0315a02, one defect failed CI, and the design needs a decision before merge. The newer head 8180363 changes only packages/replay/src/plugin.ts:4 uses Not blocking, and you can take or leave these: (1) Could this land as one layer instead of a standalone package and an unconsumed resolver? That layer would declare the native execution port in I did not run tests, typecheck, or build and pack |
8180363 to
9f1fa69
Compare
9f1fa69 to
25e621d
Compare
25e621d to
499d4bc
Compare
|
The code at 499d4bc is ready; I found no problems that need a change. Not blocking, and fine to take or leave: |
499d4bc to
3e5030d
Compare
|
Current registry head is I am retaining the small existing registry implementation rather than adding a shared create-once abstraction solely to remove similar lines. The independent smaller-design assessment accepted the three execution entrypoints and accounted for the +34.7 kB package growth (mostly declarations); it did not establish a performance win. The native ADR0034 amendment remains Proposed, pending maintainer acceptance. Exact-head affected admission passed: 42 passed / 25 skipped, exactCommit=true, checkoutChanged=false. All 19 hosted checks passed. Later source/help fixes are owned by the top routing layer, so this head has not been churned. No registry/source readiness statement here clears C3, live/platform, ADR or npm placeholder/trusted-publisher prerequisites. |
There was a problem hiding this comment.
All reported issues were addressed across 11 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
This comment has been minimized.
This comment has been minimized.
Apex Sentinel · ✅ ApproveSince the last review: 0 new · 0 still open · 0 no longer raised No open findings. 1 finding below 💬 Talking to SentinelIn a finding's thread, reply with:
On this conversation, comment Earlier reviewsReview of
|
| Where | Finding |
|---|---|
website/docs/docs/plugins.md:172 |
Public plugin docs still describe a setup shape the new validator now rejects |
1 finding below minor hidden (user_settings.min_severity).
Reviewed with this repository's own Sentinel configuration (d78be6c88715).
Review of f3901320 · 14.11.2026 20:59 UTC
Apex Sentinel · ✅ Approve
Since the last review: 1 new · 0 still open · 1 no longer raised
1 finding(s): 1 minor.
🟡 Minor (1)
| Where | Finding |
|---|---|
packages/plugins/src/registry.ts:219 |
🆕 A one-off native execution create() failure permanently disables the slot, unlike backend loads |
1 finding below minor hidden (user_settings.min_severity).
Reviewed with this repository's own Sentinel configuration (d78be6c88715).
Review of 89400750 · 14.11.2026 10:19 UTC
Apex Sentinel · ✅ Approve
Since the last review: 1 new · 0 still open · 0 no longer raised
1 finding(s): 1 minor.
🟡 Minor (1)
| Where | Finding |
|---|---|
packages/plugins/src/registry.ts:209 |
🆕 resolveReplayExecution can pick another backend's slot and report invalid_plugin, not plugin-not-installed |
1 finding below minor hidden (user_settings.min_severity).
Reviewed with this repository's own Sentinel configuration (d38e35e61193).
Review of 2c5f4d13 · 14.11.2026 10:04 UTC
Apex Sentinel · ✅ Approve
Since the last review: 0 new · 0 still open · 0 no longer raised
No open findings.
Reviewed with this repository's own Sentinel configuration (d38e35e61193).
Review of 3e5030d2 · 14.11.2026 08:21 UTC
Apex Sentinel · ✅ Approve
No open findings.
3 findings below minor hidden (user_settings.min_severity).
Reviewed with this repository's own Sentinel configuration (d38e35e61193).
|
Confirmed at The lower Maestro-layer Apple setup correction is already queued in the coordinated stack refresh, so it will reach this PR too. It installs the built plugin after the shared build under a persistent job-scoped plugin home. No additional engine change or CI retry is needed for this diagnostic. Fresh hosted iOS success remains required after publication. |
3e5030d to
2c5f4d1
Compare
2c5f4d1 to
8940075
Compare
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 8940075. The verdict and the full list are in the summary comment.
|
I reviewed 8940075 and found no code problems. The earlier review of 3e5030d (#4535 (comment)) found the code clean, and the code commits are unchanged since then. The new commit 8940075 only reverts the ADR changes, and ADR 0034 now matches base. Hosted CI is unclear. Coverage failed and ten jobs were cancelled, which fits a superseding push. I could not read the Coverage failure, so I cannot say whether it relates to this PR. I also did not rerun tests locally. Please rerun CI on 8940075 and check the Coverage result. On the open threads: the minor thread about the package-name fallback in the registry still holds (#4535 (comment)). It is not urgent, because Before merge, CI must pass on 8940075 and the two moot threads must be resolved. The maintainer's native-contract acceptance, which the PR names as a merge condition, is still needed. I could not confirm the preserved proposal text in #3871 beyond your reply. |
8940075 to
f390132
Compare
|
This PR is ready at f390132. The earlier review of 8940075 found no problems, and the fallback by package name is now limited to slots with no backend and a recorded failure. The test 'a package name cannot select an active foreign backend for native execution' covers it. Tests were not run locally. I checked this by reading the code. Not blocking: a rejected native The open inline thread on registry.ts:322-343 is fixed at this head, so you can resolve it: #4535 (comment). Two threads no longer apply because the head does not touch the ADR 0034 docs, so you can resolve them too: #4535 (comment) (outdated amendment) and #4535 (comment) (proposal removed, it lives in #3871). All checks pass at this head except Android Smoke Tests run 43638215393. It failed at step 2, assertVisible 'Maestro selection: clickable', in 'resolve duplicate target through no-index Maestro tapOn'. The diff only touches backend selection, and that selection and step 1 succeeded, so this looks unrelated. I did not compare it with a main run. Before merge, please rerun that job or show it fails the same way on main. |
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on f390132. The verdict and the full list are in the summary comment.
f390132 to
61ae277
Compare
|
This PR is ready at 61ae277. Since the earlier review (f390132), the failed-create recovery and the package-name fallback concerns are fixed in the code. Not blocking: the native lazy-load block in registry.ts is a line-for-line copy of the format lazy-load in About the open review threads: two of the threads no longer apply, because the PR no longer changes ADR 0034. Please resolve #4535 (comment) and #4535 (comment). The other two threads are fixed at this head (failed I did not run the tests, so the affected and full check counts in the description are unverified. CI on this head was cancelled for 13 jobs, which looks like a superseded stacked push. One Smoke Tests job failed in run 43662183448. I did not open its log, but it looks unrelated: |
61ae277 to
d63bb8d
Compare
|
Found 1 test failure on Blacksmith runners: Failure
|
|
I found no code problems at d63bb8d, so no code change is needed. The fixes from the earlier review (61ae277, #4535 (comment)) still hold, and the docs-only delta since then removed the unaccepted native-execution claims from ADR 0034. One CI set on this commit was cancelled as a duplicate push, which explains the cancelled entries and the Smoke Tests wrapper failure. In the second set, CI, Linux, Android, Docs, Size, Mutation Harness Canary and Test App Build Cache passed. Apple failed: iOS smoke There are no conflicts. Please rerun the failed Apple workflow on this commit. Once the full CI set is green, this is ready to merge. These open threads no longer apply, so please resolve them: the ADR native-execution amendment (#4535 (comment)) and the unaccepted proposal in the accepted ADR (#4535 (comment)), because the PR no longer touches docs/adr; the foreign-backend slot pick (#4535 (comment)), because the native resolver requires the slot at registry.ts:215 and validate.ts:169-177 checks setup identity; and the failed create() slot poisoning (#4535 (comment)), because the catch at registry.ts:225-229 clears the loading state and a retry re-enters. |
…ry (#4535) * chore(gates): preserve native registry identity and recoverable lazy loads * docs(plugins): distinguish native and format setup factories * docs(plugins): name the native execution object precisely
…ry (#4535) * chore(gates): preserve native registry identity and recoverable lazy loads * docs(plugins): distinguish native and format setup factories * docs(plugins): name the native execution object precisely
…ry (#4535) * chore(gates): preserve native registry identity and recoverable lazy loads * docs(plugins): distinguish native and format setup factories * docs(plugins): name the native execution object precisely
…ry (#4535) * chore(gates): preserve native registry identity and recoverable lazy loads * docs(plugins): distinguish native and format setup factories * docs(plugins): name the native execution object precisely
…ry (#4535) * chore(gates): preserve native registry identity and recoverable lazy loads * docs(plugins): distinguish native and format setup factories * docs(plugins): name the native execution object precisely
…ry (#4535) * chore(gates): preserve native registry identity and recoverable lazy loads * docs(plugins): distinguish native and format setup factories * docs(plugins): name the native execution object precisely
…ry (#4535) * chore(gates): preserve native registry identity and recoverable lazy loads * docs(plugins): distinguish native and format setup factories * docs(plugins): name the native execution object precisely
…ry (callstack#4535) * chore(gates): preserve native registry identity and recoverable lazy loads * docs(plugins): distinguish native and format setup factories * docs(plugins): name the native execution object precisely
…ry (#4535) * chore(gates): preserve native registry identity and recoverable lazy loads * docs(plugins): distinguish native and format setup factories * docs(plugins): name the native execution object precisely
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
Summary
Introduce optional replay execution contracts for #3871. Preserve backend identity, transient recovery and disposal fencing. A v2 plugin factory supplies its execution object through
setup(host).Head
d63bb8de0cad9f5bad84e8f1b58696aceb74692c. Actual layer: 12 files / 385 gross lines. Default-main comparison: 333 files / 8,464 gross, including inherited integration changes.Validation
Independent Codex source review approves the bounded floor repair and preservation interactions; all eight upper range-diff entries match.
Node 22.13 PREP and clean TOP build/package probes pass, with normal plugin prepack, retained core tarballs, all 15 installed entry points and CLI execution. TOP has eight passing package cases. CI now also runs build/package gates on Node 22.13.0; the Node 22.12 consumer probe remains.
The seven predecessor Node26 canonical passes remain attributed to their original heads. The owner accepted that evidence while retaining historical ENV/ref qualifications. New-head canonical validation is pending; no old CI result is transferred.
New-head iOS smoke failed: attempt 1 passed wait/is/find, then failed back; attempts 2–3 failed the post-click wait, with Siri reported on attempt 3. Native regressions/preparation passed. Artifact diagnosis found missing target-geometry/hit evidence; cause remains unproven. No retry or fixture/timeout change occurred.
Both plugins remain private pending maintainer placeholders, trusted publishers and usable publication. Native ADR acceptance, live/current-client, performance and security obligations remain open. No merge clearance.