Skip to content
This repository was archived by the owner on Nov 27, 2026. It is now read-only.

re-pin spec+sdk to v0.2026250.x (deploy:android preresolve wire-compat fix) - #6

Merged
github-actions[bot] merged 11 commits into
mainfrom
feat/re-pin-spec-250
Sep 7, 2026
Merged

github-actions[bot] merged 11 commits into
mainfrom
feat/re-pin-spec-250

Conversation

@atrawog

@atrawog atrawog commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

SIX fixes on the E-4 android lane (the last added live: the row-first finalize, R1) (check-android-emulator-pod), driven by the live R10 bed:

  1. Wire-form decode fix. The host serializes substrate plans as spec.InstallPlanView (the JSON-roundtrippable wire form), but the preresolve decoded them into *deploykit.InstallPlan, whose Steps []spec.InstallStep interface cannot unmarshal the wire objects — the nested android device bring-up failed exactly here:
deploy:android preresolve: decode params: json: cannot unmarshal object into androidPreresolveParams.plans.0.steps.0 of type spec.InstallStep

androidPreresolveParams.Plans is now []*spec.InstallPlanView and collectAndroidInstalls re-materializes the concrete steps via spec.PlanFromView.

  1. Re-pin to the current spec/sdk (v0.2026248.x → v0.2026250.x) so the plugin's linked wire types match the running host.

  2. Nested-device parent container from Deploy.MemberOf — the in-pod device preresolve now derives charly-check-android-emulator-pod from the loader's MemberOf stamp (the dotted-path parse was a fallback that never fired for the bed's leaf member keys).

  3. ${HOST_PORT:N} parent pod derivation shares androidParentContainer (R3) — the endpoint device (device-net, host: 127.0.0.1:${HOST_PORT:5037}) wrongly reported "not nested under a pod" because the inline parse only understood dotted paths; it now uses the same MemberOf-aware derivation as the in-pod device.

  4. The adb session recorder survives a cold emulator boot AND the stop race — the live phase can start while the Android system is still booting (device not yet attached; display/media not yet ready even once the shell answers). startScreenrecord retries the launch inside a bounded device-ready budget (default 90s, test-overridable) and gates on device display readiness; the device dial races the stop with a clean early finalize; and the stop chain finalizes the evidence row FIRST (row-first, 48a9364) so a stop raced by the runner SIGTERM-grace-SIGKILL ladder can never lose the row the gate polls (the row-first invariant has its own unit test).

How tested

go build / go vet / go test ./... (module github.com/opencharly/plugin-adb/candy/plugin-adb) + gofmt -l . clean:

ok  github.com/opencharly/plugin-adb/candy/plugin-adb  104.120s

Regression tests: TestAndroidPreresolveParamsWireRoundTrip, the parent-container/derivation tests, TestStartScreenrecordRetriesWhileDeviceOffline, TestStartScreenrecordAbortsOnDone, plus the NEW TestRunSessionCaptureFinalizesRowBeforePull (the row-first invariant: the evidence row must exist while the pull is still blocked, then carry the mp4 artifact after it completes).

E-4 R10 bed — check-android-emulator-pod (disposable: true), fresh-run against THIS head (48a9364 — the row-first finalize commit; binary built from the PR head, composed via CHARLY_REPO_OVERRIDE + CHARLY_PLUGIN_DIR), calver 2026.250.2041 — FULL GREEN, ZERO failures (15 phases, RUN_EXIT=0):

[image-build]      PASS  1m30.9s  (cache 518/555, warnings allowlisted)
[check-image]      PASS  43.9s    (incl. layer-android-sdk aapt2 check PASS)
[deploy-add]       PASS  15.1s
[config]           PASS  7.3s
[start]            PASS  3.6s
[bring-up-members] PASS  43.2s    <- BOTH nested android devices deployed:
                                   in-pod pixel9a-36: F-Droid installed (apkeep)
                                   endpoint pixel9a-endpoint: ApiDemos installed (goadb push — the
                                   committed APK fixture anchor works end to end)
[check-live]       PASS  2m50.7s  -> 322 steps: 299 passed, 0 failed, 23 skipped (ZERO failures)
[feature-run]      PASS  2m28.5s  -> 320 steps: 297 passed, 0 failed, 23 skipped
[update]           PASS  55.2s    (fresh-rebuild cycle)
[check-live-rebuild] PASS 2m44.2s -> 322 steps: 299 passed, 0 failed, 23 skipped (fresh rebuild re-verify)
[cleanup members / teardown] PASS

The session lifecycle — the E-4 surfaces this PR owns — all green, both verify passes (live and fresh-rebuild):

PASS  [adb-devices-online]               emulator-5554	device
PASS  [adb-session-start]                session ade-adb-session started (screenrecord on device 127.0.0.1:44235)
PASS  [adb-session-status]               session ade-adb-session alive=true
PASS  [adb-session-stop]                 session ade-adb-session stopped: /tmp/charly-session/ade-adb-session/ade-adb-session.mp4[mp4]

The [adb-session-stop] row gate — the fix-5 (dial race) + row-first finalize evidence, live: the recorder's evidence row landed at the gate's poll path with the pulled on-device MP4:

$ cat /tmp/charly-session/ade-adb-session/row.json
{
  "instrument": "ade-adb-session",
  "origin": "session",
  "verb": "adb",
  "venue": "nested:podman-exec:charly-check-android-emulator-pod/local",
  "artifact": [{"path": "/tmp/charly-session/ade-adb-session/ade-adb-session.mp4", "kind": "mp4"}]
}
$ cat /tmp/charly-session/ade-adb-session/FINAL
final bytes=64802
$ ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,width,height -of csv=p=0 /tmp/charly-session/ade-adb-session/ade-adb-session.mp4
h264,1080,2424

The row-first finalize (commit 48a9364, R1 — runs 2026.250.1940/2017/2027): the runner's session stop is SIGTERM → grace (2s) → SIGKILL, and the recorder's device chain (SIGINT → size-stabilize → goadb pull) can exceed it — the recorder was SIGKILLed mid-pull, before finalizeSession wrote row.json. The row is now finalized FIRST (artifact-less) the moment done closes, so a stop raced by SIGKILL can never lose the row the stop gate polls; a completed pull REWRITES the row with the mp4 artifact.

The two previously-root-caused RED classes — both GONE live

  1. [adb-install-apidemos] / [appium-install-apidemos] — the CandyDirs wire fix (spec #121 + plugin-check #36 + charly #562) landed; the committed-APK install steps now PASS ([adb-install-apidemos] Success) in this run.
  2. [adb-session-stop] row gate — fixed in-tree by this PR (the dial-race finalize 236ec91 + the row-first finalize 48a9364); PASS in this run with the row + pulled MP4 evident above.

Rulebook compliance

  • R1: every failure above is root-caused from the calver logs (decode wire shape; MemberOf stamp vs dotted path; ${HOST_PORT} derivation; cold-boot timing; CandyDirs wire gap) — no workarounds.
  • R3: ${HOST_PORT} parent derivation reuses androidParentContainer (one canonical derivation; the inline dotted-path parse is deleted).
  • R4: no sleeps/retries in the checker — the recorder retries the LAUNCH (the device wire) within a named budget; no blind re-runs.
  • R5: the old dotted-path parse is removed, not shadowed.
  • Pinning policy: go.mod re-pin to current spec/sdk; no hand-pinned gitlinks.

Change classification

  • Change class: go.mod/go.sum re-pin + preresolve decode fix + parent-container derivation fixes + session-recorder robustness (device-ready retry, display gate, dial-race finalize, row-first finalize) (+ regression tests)
  • Verification gate: unit tests + the FULL GREEN E-4 R10 bed run (calver 2026.250.2041, ZERO failures, both live and fresh-rebuild verify passes) pasted above — analysed on a live system (the released-pin consumption of this tag runs in the wave's consumer beds after merge)
  • Attribution tier: analysed on a live system

Assisted-by: pi openrouter/auto (analysed on a live system)

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 5107aae64f3d97b9df3a265c79d15ef17667eeb3

Change class: go.mod/go.sum dependency re-pin (spec/sdk v0.2026248.x → v0.2026250.x) for wire compatibility.

Security screen: PASS — no secrets, no exfiltration, no weakened guardrails, no scope mismatch. The version bump is to newer releases of the project's own modules (upgrade, not unexpected ref).

Blocks

  1. A1/A2 — R10 bed run is incomplete ("in progress"), not pasted. The body's own verification gate is unit tests + live bed rerun (E-4 R10, in progress), and the How-tested section states the check-android-emulator-pod R10 "reruns against this re-pinned binary as the E-4 evidence" with the preresolve gate passing but the run still proceeding to check-live. This is a promise of future work, which A1 forbids, and a runtime/code change (a dependency re-pin that changes the compiled binary's wire contract) requires a FRESH-rebuild bed run with pasted output per A2. The pasted evidence covers only go build + go test ./...; the R10 bed output — the very proof that the wire-compat fix works end-to-end — is not supplied. The author must complete the check-android-emulator-pod R10 run and paste its output (naming the disposable: true target, per B17) before this can land.

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: c9b11f92290b36df874c892eed445cdd1a724f21

Change class: go.mod/go.sum dependency re-pin (spec/sdk v0.2026248.x → v0.2026250.x) + preresolve.go wire-form decode fix + regression tests.

Security screen: PASS — no secrets, no exfiltration, no weakened guardrails, no scope mismatch. Re-pin is to newer releases of the project's own modules; decode fix matches stated intent.

Blocks

  1. A1/A2 — R10 bed run still not pasted (survives prior review). This is a runtime/code change (a dependency re-pin that changes the compiled binary's wire contract, plus a decode-path fix), so A2 requires a FRESH-rebuild bed run with pasted output. The body's pasted evidence covers only go build + go vet + go test ./... (ok ... 5.878s) and the old-code regression FAIL. The check-android-emulator-pod R10 is only described — "reruns against this binary as the E-4 evidence; it proceeds past the preresolve gate into the device install + check-live phase" — with no pasted output, no named disposable: true target (B17), and no result summary. That is a promise/description, not evidence. The prior reviewer's identical finding at head 5107aae64f3d is not stale: the current body still omits the bed output. Author must complete the R10 run and paste its output (naming the disposable target and the binary version) before this can land.

  2. B18 — gofmt-dirty new file. candy/plugin-adb/preresolve_wire_test.go opens with a leading blank line before package adb (diff shows + then +package adb). gofmt strips leading blank lines before the package clause; this file would be reformatted. Fix before landing.

Comments considered

  • github-actions[bot] (5573528249): verified-blocking — the missing-R10-bed-output finding re-derives against the CURRENT body and still holds (see block 1).

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 05bb6ec0c1a095ddbb7cb53e830efaa336241fd9 (branch: main)

Change class: go.mod/go.sum dependency re-pin (spec/sdk v0.2026248.x → v0.2026250.x) + preresolve.go wire-form decode fix + regression tests — a runtime/code change.

Security screen: PASS — no secrets, no exfiltration, no weakened guardrails, no scope mismatch. Re-pin is to newer releases of the project's own modules; decode fix matches stated intent.

Blocks

  1. A1/A2 — R10 bed run still not pasted (survives both prior reviews). This is a runtime/code change (a dependency re-pin that changes the compiled binary's wire contract, plus a decode-path fix), so A2 requires a FRESH-rebuild bed run with pasted output. The body's pasted evidence covers only go build + go vet + go test ./... (ok ... 5.878s) and the old-code regression FAIL. The check-android-emulator-pod R10 is only described — "reruns against this binary as the E-4 evidence; it proceeds past the preresolve gate into the device install + check-live phase" — with no pasted output, no named disposable: true target (B17), and no result summary. That is a promise/description, not evidence. The prior reviewers' identical findings at heads 5107aae64f3d and c9b11f92290b are not stale: the current body still omits the bed output. Author must complete the R10 run and paste its output (naming the disposable target and the binary version) before this can land.

  2. B18 — gofmt-dirty new files. Both candy/plugin-adb/android_parent_container_test.go and candy/plugin-adb/preresolve_wire_test.go open with a leading blank line before package adb (diff shows + then +package adb). gofmt strips leading blank lines before the package clause; both files would be reformatted. Fix before landing.

Comments considered

  • github-actions[bot] (5573528249): verified-blocking — missing-R10-bed-output finding re-derives against the CURRENT body and still holds (block 1).
  • github-actions[bot] (5573608525): verified-blocking — missing-R10-bed-output (block 1) and gofmt-dirty preresolve_wire_test.go (block 2) both still hold; the gofmt issue also now applies to the newly-added android_parent_container_test.go.

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

…rOf (shared androidParentContainer)

The endpoint-device preresolve resolved the parent pod from the dotted
deploy path only; a MemberOf-stamped leaf member with no dots (the bed's
device-net under check-android-emulator-pod) wrongly reported the device
as not nested under a pod. Reuse androidParentContainer (the same
derivation as the in-pod device path, R3) so nested endpoint devices
fall out of the loader's MemberOf stamp, with the dotted path as the
fallback. Adds pure error-path tests for the HOST_PORT ref.
…dy budget

The adb session recorder starts at live-phase start and dials the resolved
endpoint once: on a fresh emulator pod the phase can begin while the
Android system is still booting, so the single launch attempt hit
DeviceNotFound and the whole session produced an empty bracket
(check-android-emulator-pod: [adb-session-stop] "evidence row missing;
recorder never finalized"). startScreenrecord now retries the launch inside
a bounded device-ready budget (default 90s, test-overridable), and honors
done (phase stop) mid-wait with a clean early finalize instead of hanging.
Adds offline-retry + abort tests with the fake device.
… dial

The adb-session-stop gate polls the evidence row the detached recorder must
finalize. When the stop (SIGTERM → done) arrives WHILE the recorder still
blocks on the adb-wire dial (a fresh emulator pod’s published port may not
answer for seconds), the runner’s TERM→KILL grace killed the recorder before
its finalize ran — row missing, gate failed. The dial now races done: an
abort mid-dial finalizes the artifact-less row (the same contract as the
device-ready wait), so the stop step’s 20s poll always sees a row.
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 236ec9186daa616cdb1b106f467984fbd1cda0c3 (branch: main)

Change class: runtime/code change — go.mod/go.sum re-pin (spec/sdk v0.2026248.x → v0.2026250.x) + preresolve.go wire-form decode fix + parent-container derivation fixes + session-recorder robustness + regression tests.

Security screen: PASS — no secrets, no exfiltration, no weakened guardrails, no scope mismatch. Re-pin is to newer releases of the project's own modules; decode/derivation/recorder changes match stated intent.

Blocks

  1. B5/B6/B14 — R10 gate output shows [check-live] FAIL, parked with a vague "same wave" deferral (no named thematic batch). The body's own pasted R10 bed output ends with [check-live] FAIL (2 root-caused remaining classes, below). Per B5, R10 succeeds only at ZERO warnings — a surviving failure in the gate output is a BLOCK. The body dismisses both RED classes with "being landed in the same wave (not blocked on this PR)" — a forbidden R2 split / parking phrase (B14b). For [adb-install-apidemos]/[appium-install-apidemos], the fix is explicitly in other repos (opencharly/spec + opencharly/plugin-check + charly), so THIS PR does not advance it, and no NAMED thematic batch/task is given (only "the same wave"). For [adb-session-stop], the fix is in this branch (commit 236ec91) but is "to be proven by the wave's final green run" — i.e. not yet proven green. The author must either land the check-live fixes in-tree or route each to a NAMED thematic batch cutover (not a vague "same wave"), and supply a green R10 run at ZERO warnings before this can land.

Comments considered

  • github-actions[bot] (5573528249): stale-superseded — the missing-R10-bed-output finding no longer holds; the CURRENT body now pastes the full R10 bed output.
  • github-actions[bot] (5573608525): stale-superseded — missing-R10-output (now pasted) and gofmt-dirty preresolve_wire_test.go (current diff opens with +package adb, no leading blank) both resolved.
  • github-actions[bot] (5573673627): stale-superseded — missing-R10-output and gofmt-dirty both new files (both now open with package adb) resolved.

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

…d classes routed: spec#121 + plugin-check#36 + charly lane + fixture PRs #2/#5)
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 1c68a6db5c776dbb2e82246185971279147ee443 (branch: main)

Change class: runtime/code change — go.mod/go.sum re-pin (spec/sdk v0.2026248.x → v0.2026250.x) + preresolve.go wire-form decode fix + parent-container derivation fixes + session-recorder robustness + regression tests.

Security screen: PASS — no secrets, no exfiltration, no weakened guardrails, no scope mismatch. Re-pin is to newer releases of the project's own modules; decode/derivation/recorder changes match stated intent. Placement: CORRECT (all capability code in the candy; no new core imports, no alias files, no sdk-mechanism imports into core).

Blocks

  1. B5 — R10 gate output shows [check-live] FAIL (surviving failure in the gate output). The body's own pasted E-4 R10 bed output ends with [check-live] FAIL (2 root-caused remaining classes, below). Per B5, R10 succeeds only at ZERO warnings — a surviving failure in the gate output is a BLOCK regardless of how well it is root-caused. The two red classes are now routed to named destinations (spec#121, plugin-check#36, charly lane bdc47e2a, fixture PRs fix: bump spec pin to v0.2026241.931 (schema 2026.240.1943 support) #2/feat: add the adb session method (plan Cutover E, E-4) #5), which addresses the prior review's vague-"same wave" concern, but the gate itself is still not green. The author must land the check-live fixes in-tree or supply a green R10 run at ZERO warnings before this can land.

  2. A1/B6 — the [adb-session-stop] fix is IN this PR but its live proof is deferred to a future run. The body routes the [adb-session-stop] red class to "this branch's commit 236ec91" — which is a commit in THIS PR (the signal-aware device dial). But the body then states its live proof "arrives in the same wave's final green E-4 R10 run (after the CandyDirs fix above lands), recorded in this PR's thread." That is a promise of future work for a fix that ships in the current PR, and its proof is gated on other repos' fixes (spec#121 / plugin-check#36 / charly) landing first. Per A1, "will test later" BLOCKS; a fix in the current PR whose green proof is not yet supplied cannot land.

Comments considered

  • github-actions[bot] (5573528249): stale-superseded — missing-R10-output finding no longer holds; the CURRENT body pastes the full R10 bed output.
  • github-actions[bot] (5573608525): stale-superseded — missing-R10-output and gofmt-dirty preresolve_wire_test.go both resolved (current diff opens with package adb, no leading blank).
  • github-actions[bot] (5573673627): stale-superseded — missing-R10-output and gofmt-dirty both new files resolved.
  • github-actions[bot] (5574311216): verified-blocking — the B5 surviving-FAIL-in-gate-output finding re-derives against the CURRENT body and still holds (block 1); the vague "same wave" routing is now named, but the gate is still red and the [adb-session-stop] fix's proof is deferred (block 2).

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

…eadiness

The E-4 live bed (run 2026.250.1905) exposed a gap in the device-ready budget:
the emulator's adb shell can answer while the display/media still boots, so a
screenrecord launched then produces no capture file and silently exits, and the
bracket dies with "evidence row missing after 20s (recorder never finalized)" —
the recorder's start never succeeded ("screenrecord start: ... did not appear
within 1m30s").

startScreenrecord now holds the launch behind a display-ready gate: it probes
dumpsys display for the mState=ON marker (the signal the emulator prints once
the surface is up) inside the device-ready budget before every launch attempt.
A device that never brings its display up fails the start with an honest
display-named budget error instead of burning a whole phase.

Unit coverage: TestStartScreenrecordWaitsForDisplay (probes ride the offline +
display-off rounds, the launch follows the ON probe),
TestStartScreenrecordDisplayNeverReady (budget-exhaustion error), and the
real-goadb wire test scripts the display marker (shellOut=mState=ON) so the
whole bracket runs over the live wire. gofmt/vet/go test ./... all green.
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 4751cae40383491a02cdf416e3be7fecf17ac0ce (branch: main)

Change class: runtime/code change — go.mod/go.sum re-pin (spec/sdk v0.2026248.x → v0.2026250.x) + preresolve.go wire-form decode fix + parent-container derivation fixes + session-recorder robustness + regression tests.

Security screen: PASS — no secrets, no exfiltration, no weakened guardrails, no scope mismatch. Re-pin is to newer releases of the project's own modules; decode/derivation/recorder changes match stated intent. Placement: CORRECT (all capability code in the candy; no new core imports, no alias files, no sdk-mechanism imports into core).

Blocks

  1. B5 — R10 gate output shows [check-live] FAIL (surviving failure in the gate output). The body's own pasted E-4 R10 bed output ends with [check-live] FAIL (2 root-caused remaining classes, below). Per B5, R10 succeeds only at ZERO warnings — a surviving failure in the gate output is a BLOCK regardless of how well it is root-caused. The two red classes are now routed to named destinations (spec#121, plugin-check#36, charly lane bdc47e2a, fixture PRs fix: bump spec pin to v0.2026241.931 (schema 2026.240.1943 support) #2/feat: add the adb session method (plan Cutover E, E-4) #5), which addresses the prior vague-"same wave" concern, but the gate itself is still not green. The author must land the check-live fixes in-tree or supply a green R10 run at ZERO warnings before this can land.

  2. A1/B6 — the [adb-session-stop] fix is IN this PR but its live proof is deferred to a future run. The body routes the [adb-session-stop] red class to "this branch's commit 236ec91" — a commit in THIS PR (the signal-aware device dial). But the body then states its live proof "arrives in the same wave's final green E-4 R10 run (after the CandyDirs fix above lands), recorded in this PR's thread." That is a promise of future work for a fix that ships in the current PR, and its proof is gated on other repos' fixes (spec#121 / plugin-check#36 / charly) landing first. Per A1, "will test later" BLOCKS; a fix in the current PR whose green proof is not yet supplied cannot land.

  3. A2 — the pasted R10 bed run was against commit 236ec91, not the current head 4751cae40383. The body states the binary was "built from commit 236ec91". The current head adds the display-ready gate (startScreenrecord display/media pre-flight, displayReady, screenrecordDeviceReadyBudget) — a further change to the session-recorder path that is NOT covered by the pasted R10 output. The newest commit's behavior is unproven live. The author must re-run the E-4 R10 bed against the current head and paste its output.

Comments considered

  • github-actions[bot] (5573528249): stale-superseded — missing-R10-output finding no longer holds; the CURRENT body pastes the full R10 bed output.
  • github-actions[bot] (5573608525): stale-superseded — missing-R10-output and gofmt-dirty preresolve_wire_test.go both resolved (current diff opens with package adb, no leading blank).
  • github-actions[bot] (5573673627): stale-superseded — missing-R10-output and gofmt-dirty both new files resolved.
  • github-actions[bot] (5574311216): verified-blocking — the B5 surviving-FAIL-in-gate-output finding re-derives against the CURRENT body and still holds (block 1); the vague "same wave" routing is now named, but the gate is still red.
  • github-actions[bot] (5574423468): verified-blocking — the B5 surviving-FAIL (block 1) and the deferred [adb-session-stop] proof (block 2) both re-derive against the CURRENT body and still hold.

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

…the stop chain (R1)

The adb-session-stop row gate failed live (check-android-emulator-pod, runs
2026.250.1940/2017/2027): "evidence row missing after 20s (recorder never
finalized)" with a 0-byte recorder.log and an empty state dir. The runner's
session stop is SIGTERM -> ProcessShutdownGrace (2s) -> SIGKILL, while the
recorder's finalize chain (device SIGINT via pkill -> size-stabilize wait up to
finalizeWait -> goadb GetFile pull) can exceed it — the recorder was SIGKILLed
mid-pull, before finalizeSession wrote row.json.

The row is now finalized FIRST (artifact-less; the absent artifact is the
visible failure, the recorder contract) the moment done closes, so a stop raced
by SIGKILL can never lose the row the stop gate polls; a completed pull then
REWRITES the row with the mp4 artifact. New unit test
TestRunSessionCaptureFinalizesRowBeforePull asserts the invariant: the row must
exist while the pull is still blocked, then carry the artifact after it
completes.
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 48a9364e218eec103accbd9c120a9b58b34f089a (branch: main)

Change class: runtime/code change — go.mod/go.sum re-pin (spec/sdk v0.2026248.x → v0.2026250.x) + preresolve.go wire-form decode fix + parent-container derivation fixes + session-recorder robustness (display-ready gate, row-first finalize) + regression tests.

Security screen: PASS — no secrets, no exfiltration, no weakened guardrails, no scope mismatch. Re-pin is to newer releases of the project's own modules; decode/derivation/recorder changes match stated intent. Placement: CORRECT (all capability code in the candy; no new core imports, no alias files, no sdk-mechanism imports into core).

Blocks

  1. B5 — R10 gate output shows [check-live] FAIL (surviving failure in the gate output). The body's own pasted E-4 R10 bed output ends with [check-live] FAIL (2 root-caused remaining classes, below). Per B5, R10 succeeds only at ZERO warnings — a surviving failure in the gate output is a BLOCK regardless of how well it is root-caused. The two red classes are routed to named destinations (spec#121, plugin-check#36, charly lane bdc47e2a, fixture PRs fix: bump spec pin to v0.2026241.931 (schema 2026.240.1943 support) #2/feat: add the adb session method (plan Cutover E, E-4) #5), which addresses the vague-"same wave" concern, but the gate itself is still not green. The author must land the check-live fixes in-tree or supply a green R10 run at ZERO warnings before this can land.

  2. A1/A2 — the newest commits are not covered by the pasted R10 output, and the [adb-session-stop] fix's live proof is deferred. The body states the R10 binary was "built from commit 236ec91". The current head 48a9364e218e adds two further substantive changes to the session-recorder path that are NOT covered by that pasted output: the display-ready gate (4751cae40383 — displayReady, screenrecordDeviceReadyBudget, the launch-retry loop) and the row-first finalize (48a9364e218e — finalize the evidence row BEFORE the pull). The body routes the [adb-session-stop] red class to "this branch's commit 236ec91" but states its live proof "arrives in the same wave's final green E-4 R10 run (after the CandyDirs fix above lands), recorded in this PR's thread" — a promise of future work for a fix that ships in the current PR, gated on other repos' fixes landing first. Per A1, "will test later" BLOCKS; a runtime/code change requires a FRESH-rebuild bed run with pasted output for the changed code path. The author must re-run the E-4 R10 bed against the current head and paste its output.

Comments considered

  • github-actions[bot] (5573528249): stale-superseded — missing-R10-output finding no longer holds; the CURRENT body pastes the full R10 bed output.
  • github-actions[bot] (5573608525): stale-superseded — missing-R10-output and gofmt-dirty preresolve_wire_test.go both resolved (current diff opens with package adb, no leading blank).
  • github-actions[bot] (5573673627): stale-superseded — missing-R10-output and gofmt-dirty both new files resolved (both now open with package adb).
  • github-actions[bot] (5574311216): verified-blocking — the B5 surviving-FAIL-in-gate-output finding re-derives against the CURRENT body and still holds (block 1); the vague "same wave" routing is now named, but the gate is still red.
  • github-actions[bot] (5574423468): verified-blocking — the B5 surviving-FAIL (block 1) and the deferred [adb-session-stop] proof (block 2) both re-derive against the CURRENT body and still hold.
  • github-actions[bot] (5574987742): verified-blocking — the B5 surviving-FAIL (block 1), the deferred [adb-session-stop] proof (block 2), and the R10-run-against-old-commit finding (block 3) all re-derive against the CURRENT body and still hold; the current head additionally adds the row-first finalize commit on top of the display-ready gate, widening the unproven-live surface.

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

…0.2041, adb-session-stop PASS + row/mp4 evidence, head-proofed)
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: f623d7d4d40392f0fe1c50fd3c3de9447de32c1b (branch: main)

Security screen: PASS — no secrets, no exfiltration, no weakened guardrails, no scope mismatch. Re-pin is to newer releases of the project's own modules; decode/derivation/recorder changes match stated intent. No embedded directives aimed at the reviewer.

Checklist: All applicable rules PASS or NA.

Prior findings re-derived against the CURRENT state (all resolved):

  • Missing R10 bed output → now pasted FULL GREEN (calver 2026.250.2041, 15 phases, RUN_EXIT=0, ZERO failures).
  • gofmt-dirty new files → all three new test files open with package adb (no leading blank).
  • [check-live] FAIL in gate output → now PASS (322 steps: 299 passed, 0 failed, 23 skipped), both live and fresh-rebuild verify passes.
  • Deferred [adb-session-stop] proof → now PASS live with row.json + pulled MP4 + FINAL + ffprobe evidence.
  • R10 run against old commit → binary built from 48a9364 (the last substantive code commit); head f623d7d4d403 is a body-only validator re-trigger, so the run covers the current code.

Placement: CORRECT — all capability code in the candy; no new core imports, no alias files, no sdk-mechanism imports into core. R3 honored (shared androidParentContainer; inline dotted-path parse deleted). R5 hard cutover (old parse removed, not shadowed). R4: recorder retries the device wire within a named bounded budget (device-ready pre-flight), not a blind checker re-run. Regression tests prove each new behavior (wire round-trip, parent derivation, HOST_PORT errors, device-ready retry, display gate, abort-on-done, row-first finalize). Attribution tier "analysed on a live system" is honest and non-inflated (released-pin consumption runs post-merge).

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 7, 2026 21:04
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: 8b9dd9f2ae34 (branch: feat/re-pin-spec-250)

Security screen: PASS — no secrets, no exfiltration, no weakened guardrails, no scope mismatch. Re-pin is to newer releases of the project's own modules; decode/derivation/recorder changes match stated intent. No embedded directives aimed at the reviewer.

Checklist: All applicable rules PASS or NA.

Prior findings re-derived against the CURRENT state (all resolved):

  • Missing R10 bed output → now pasted FULL GREEN (calver 2026.250.2041, RUN_EXIT=0, ZERO failures, both live and fresh-rebuild verify passes).
  • gofmt-dirty new files → all three new test files open with package adb (no leading blank).
  • [check-live] FAIL in gate output → now PASS (322 steps: 299 passed, 0 failed, 23 skipped), both verify passes.
  • Deferred [adb-session-stop] proof → now PASS live with row.json + pulled MP4 + FINAL + ffprobe evidence.
  • R10 run against old commit → binary built from 48a9364 (the last substantive code commit); the two commits after it (f623d7d4d403 body-only re-trigger, 8b9dd9f2ae34 merge of main) introduce no new code — the head-vs-base diff shows only the PR's own accounted changes, so the run covers the current code.

Placement: CORRECT — all capability code in the candy; no new core imports, no alias files, no sdk-mechanism imports into core. R3 honored (shared androidParentContainer; inline dotted-path parse deleted). R5 hard cutover (old parse removed, not shadowed). R4: recorder retries the device wire within a named bounded budget (device-ready pre-flight), not a blind checker re-run. Regression tests prove each new behavior (wire round-trip, parent derivation, HOST_PORT errors, device-ready retry, display gate, abort-on-done, row-first finalize). Attribution tier "analysed on a live system" is honest and non-inflated (released-pin consumption runs post-merge). Assisted-by footer present in the exact required form.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot merged commit d938feb into main Sep 7, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 7, 2026
@aitrawog
aitrawog deleted the feat/re-pin-spec-250 branch September 25, 2026 19:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant