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

fix: bump spec pin to v0.2026241.931 (schema 2026.240.1943 support) - #2

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/spec-pin-bump
Aug 29, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/spec-pin-bump

Conversation

@atrawog

@atrawog atrawog commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

The plugin-adb candy pinned spec v0.2026232.520 (schema max 2026.232.0520). The charly.yml schema migration to 2026.240.1943 — required by the GitClient spec cutover (spec#65/#66) — makes the old pin reject every project config. Bump spec to v0.2026241.931 and sdk to v0.2026241.933.

How tested

$ cd candy/plugin-adb && go build ./... && echo BUILD OK
BUILD OK
$ go test ./...
ok  	github.com/opencharly/plugin-adb/candy/plugin-adb	0.025s
?   	github.com/opencharly/plugin-adb/candy/plugin-adb/cmd/serve	[no test files]
?   	github.com/opencharly/plugin-adb/candy/plugin-adb/params	[no test files]

Change classification

  • Change class: config (dependency pin bump)
  • Verification gate: build + unit tests
  • Attribution tier: fully tested and validated — go build + go test pass on the final tree.

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)

The plugin-adb candy pinned spec v0.2026232.520 (schema max 2026.232.0520). The charly.yml schema migration to 2026.240.1943 (required by the GitClient spec cutover) makes the old pin reject every project config. Bump spec to v0.2026241.931 and sdk to v0.2026241.933. Build and tests pass.
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: e311abc9373a (branch: fix/bump-spec-pin)

Security screen: PASS — minimal dependency pin bump (sdk/spec to newer versions of the same modules); no scope mismatch, no secrets, no guardrail changes, no suspicious refs.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: Body complete, accounts for both files, pasted go build + go test output on the final tree, gate matches config/dependency change class, Assisted-by: footer in correct format, tier justified.
  • R0–R10: no failures/warnings in evidence; no duplication, workarounds, dead code, or split work; single atomic commit; go.sum entries consistent with go.mod pins.
  • ADE/SDD: N/A (no candy/schema changes).
  • B16 placement: CORRECT — dependency pin lives in the candy's own go.mod; no layer issues.
  • B17/B18: N/A.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 29, 2026 10:03
@github-actions
github-actions Bot merged commit 263bb92 into main Aug 29, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 30, 2026
atrawog added a commit that referenced this pull request Sep 7, 2026
…d classes routed: spec#121 + plugin-check#36 + charly lane + fixture PRs #2/#5)
github-actions Bot pushed a commit that referenced this pull request Sep 7, 2026
…t fix) (#6)

* re-pin spec+sdk to v0.2026250.x (wire compat with current charly; deploy:android preresolve decode fix)

* fix: decode the deploy:android preresolve plans wire form (InstallPlanView)

* fix: derive the nested android device parent container from Deploy.MemberOf

* fix: derive the ${HOST_PORT:N} parent pod container from Deploy.MemberOf (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.

* fix: retry the adb session screenrecord launch through the device-ready 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.

* fix: finalize the evidence row when the session stop races the 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.

* chore: re-trigger the validator on the named-destination body (E-4 red classes routed: spec#121 + plugin-check#36 + charly lane + fixture PRs #2/#5)

* fix: gate the adb session screenrecord launch on the device display readiness

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.

* fix: finalize the adb session evidence row BEFORE the device pull in 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.

* chore: re-trigger the validator on the green R10 body (calver 2026.250.2041, adb-session-stop PASS + row/mp4 evidence, head-proofed)

---------

Co-authored-by: atrawog <[email protected]>
@aitrawog
aitrawog deleted the feat/spec-pin-bump 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