From 65b45f6213bb37aa647d23f7d8ee6d8cb3aaa9a2 Mon Sep 17 00:00:00 2001 From: Szymon Chmal Date: Mon, 19 Oct 2026 11:14:31 +0200 Subject: [PATCH 1/5] test: reproduce #261 same-name foreign emulator attribution --- src/drivers/android/index.test.ts | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/src/drivers/android/index.test.ts b/src/drivers/android/index.test.ts index c2818bc6b..33381bd86 100644 --- a/src/drivers/android/index.test.ts +++ b/src/drivers/android/index.test.ts @@ -3629,6 +3629,49 @@ describe("AndroidDriver.create", () => { }); describe("AndroidDriver ownership", () => { + it("does not attribute an outside-root emulator to a root AVD with the same name (#261)", async () => { + const filesystem = await androidFilesystem(); + const ownedPath = `${avdDirectory}/simlock_mine.avd`; + const foreignPath = `${home}/.android/avd/simlock_mine.avd`; + await filesystem.mkdirp(ownedPath); + await filesystem.mkdirp(foreignPath); + + for (const path of [ownedPath, foreignPath]) { + const runner = answeringAvdPath( + new ScriptedProcessRunner([ + processResult( + binaries.adb, + ["devices"], + "List of devices attached\nemulator-5586\tdevice\n", + ), + processResult( + binaries.adb, + ["-s", "emulator-5586", "shell", /getprop ro\.boot\.qemu\.avd_name/], + "simlock_mine\n", + ), + ]), + ok(`${path}\r\nOK\r\n`), + ); + const driver = await createDriver(filesystem, runner); + + const reality = await driver.listManaged(); + + expect + .soft(reality.processes, path) + .toEqual( + path === ownedPath + ? [expect.objectContaining({ address: "emulator-5586", deviceId: "simlock_mine" })] + : [], + ); + expect.soft(reality.devices, path).toEqual([ + expect.objectContaining({ + deviceId: "simlock_mine", + runState: path === ownedPath ? "running" : "stopped", + }), + ]); + } + }); + it("manages every AVD in its root, whatever the AVD is called", async () => { const filesystem = await androidFilesystem(); await filesystem.mkdirp(`${avdDirectory}/a-name-nobody-prefixed.avd`); From 968cdca65f6c06ebc5665a12216d8c03de6d418e Mon Sep 17 00:00:00 2001 From: Szymon Chmal Date: Mon, 19 Oct 2026 16:12:11 +0200 Subject: [PATCH 2/5] fix(android): verify root AVD paths before running attribution (#261) Require the readiness path proof before reporting processes, running state or erasable marks. Bound the shared path query and keep disappeared serials inconclusive. 10 failing -> 0 failing; preserve the triage regression and probe all 13 added or changed test cases. --- src/drivers/android/AGENTS.md | 38 +++++------ src/drivers/android/index.test.ts | 101 +++++++++++++++++++++++++++++- src/drivers/android/index.ts | 34 ++++++---- 3 files changed, 139 insertions(+), 34 deletions(-) diff --git a/src/drivers/android/AGENTS.md b/src/drivers/android/AGENTS.md index 5d64ab70e..3ebf920b1 100644 --- a/src/drivers/android/AGENTS.md +++ b/src/drivers/android/AGENTS.md @@ -76,7 +76,8 @@ Reclaim — `reclaim`: `shutdown`: `adb emu kill`, wait, SIGKILL. `destroy`: kills only an emulator this process started, then `avdmanager delete avd`, frees the port. -`listManaged`: `/*.avd` + `adb devices` + `ro.boot.qemu.avd_name` per serial; only root members count. +`listManaged`: root AVDs + `adb devices` + `ro.boot.qemu.avd_name`; processes, running state and marks +require a matching `emu avd path` (exact or `realpath`). Invalid paths are ignored; query failures leave stopped AVDs transitioning. Profiles — library (`profiles/`), SDK (`avdmanager list device`), devices.xml (`$ANDROID_USER_HOME/devices.xml`, else `.android/devices.xml` under `ANDROID_PREFS_ROOT`, `ANDROID_SDK_HOME` @@ -110,37 +111,36 @@ No slim: `resolveSpec` ignores `mode` and returns a full spec. `fresh` is core's Screen — `screenCapture`, only when `create` got `scrcpyServerPath` and `tcpStreamConnector`: [screen](screen/AGENTS.md). -Plain facts: `avdmanager list device` runs on every `listCatalog`, every resolve of a model the library -lacks, and every library provision (seed); nothing is cached. The sdkmanager catalog is never read. -Existing devices are not re-checked against the fit rule. +Plain facts: `avdmanager list device` runs on every `listCatalog`, resolve of a model the library lacks, +and library provision (seed); nothing is cached. The sdkmanager catalog is never read. Existing devices are not re-checked for fit. ## State and timers -| What | Default | Key | -| ------------------------------ | --------------------------------------- | --------------------------------------------------------------- | -| Device root | `$SIMLOCK_HOME/devices/android` | `drivers.android.deviceRoot` | -| adb server port | 5038 (never 5037) | `drivers.android.adbServerPort` | -| Emulator flags | window, auto GPU, audio, boot animation | `android.emulator.headless`, `.gpu`, `.audio`, `.bootAnimation` | -| Readiness timeout | 180 s, poll 2 s | none | -| adb server start / stop | 10 s / SIGTERM, 5 s, SIGKILL | none | -| `adb devices` in `listManaged` | 30 s | none | -| Physical read / uninstall | 30 s / 60 s | none | - -Writes: `/.avd/` (`config.ini`, `boot.prop`, snapshots, -`simlock-clean-baseline.json`), `$SIMLOCK_HOME/adb-server.json` (`pid`, `port`, `startedAt`). +| What | Default | Key | +| ------------------------------- | --------------------------------------- | --------------------------------------------------------------- | +| Device root | `$SIMLOCK_HOME/devices/android` | `drivers.android.deviceRoot` | +| adb server port | 5038 (never 5037) | `drivers.android.adbServerPort` | +| Emulator flags | window, auto GPU, audio, boot animation | `android.emulator.headless`, `.gpu`, `.audio`, `.bootAnimation` | +| Readiness timeout | 180 s, poll 2 s | none | +| adb server start / stop | 10 s / SIGTERM, 5 s, SIGKILL | none | +| `adb devices` in `listManaged` | 30 s | none | +| AVD path query (listing / boot) | 5 s | none | +| Physical read / uninstall | 30 s / 60 s | none | + +Writes: `/.avd/` (config, boot properties, snapshots, baseline marker); `$SIMLOCK_HOME/adb-server.json` (`pid`, `port`, `startedAt`). Reads only: the user's AVD home, devices.xml, the SDK. ## Rules -- Ownership is root membership, proven again at boot by `emu avd path`. An AVD name proves nothing. +- Ownership is root membership, proven at boot and in running observations by `emu avd path`, never a name. - The 5037 server is never started, stopped or adopted on purpose; physical commands pass the gate first. - A recovery boot never wipes and never captures a baseline. - A stored port is not trusted after a restart (#52); pinned by `two-instances.test.ts`. ## Known gaps -- **Simlock's adb server is stopped by pid only.** `ADB_REJECT_KILL_SERVER=1` refuses its `kill-server`. A - server with no record is `occupied`: find it with `lsof`, or move `drivers.android.adbServerPort` (one per instance). +- **Simlock's adb server is stopped by pid only.** `ADB_REJECT_KILL_SERVER=1` refuses its `kill-server`. + No record → `occupied`: find it with `lsof`, or move `drivers.android.adbServerPort` (one per instance). - **A physical command can restart a 5037 server of another protocol (ADR 0022 §5).** One started between the gate and the command is restarted by adb's client. Run every adb on the host from one platform-tools. - **Port checks are partial.** After a restart `shutdown` sends `emu kill` to the stored serial diff --git a/src/drivers/android/index.test.ts b/src/drivers/android/index.test.ts index 33381bd86..fa373e10a 100644 --- a/src/drivers/android/index.test.ts +++ b/src/drivers/android/index.test.ts @@ -1584,7 +1584,7 @@ describe("AndroidDriver", () => { expect(runner.calls.some((call) => call.command === binaries.sdkmanager)).toBe(false); }); - it("joins adb devices with getprop to compute runState per AVD: running, stopped, transitioning", async () => { + it("joins adb devices, getprop and the AVD path to distinguish running and stopped AVDs", async () => { const filesystem = await androidFilesystem(); await filesystem.mkdirp(`${avdDirectory}/simlock_running.avd`); await filesystem.mkdirp(`${avdDirectory}/simlock_stopped.avd`); @@ -1600,6 +1600,7 @@ describe("AndroidDriver", () => { ], "simlock_running\n", ), + avdPathExpectation("emulator-5586", "simlock_running"), ]); const driver = await createDriver(filesystem, runner); @@ -1863,6 +1864,7 @@ describe("AndroidDriver", () => { ], 'simlock_one\n{"token":"tok-123"}', ), + avdPathExpectation("emulator-5586"), ]); const driver = await createDriver(filesystem, runner); @@ -1892,6 +1894,7 @@ describe("AndroidDriver", () => { ], "simlock_one\n", ), + avdPathExpectation("emulator-5586"), ]); const driver = await createDriver(filesystem, runner); @@ -3629,11 +3632,100 @@ describe("AndroidDriver.create", () => { }); describe("AndroidDriver ownership", () => { + it.each([ + { + reported: "a trailing slash", + answer: ok(`${avdDirectory}/simlock_one.avd/\r\nOK\r\n`), + runState: "running", + }, + { + reported: "a canonical alias", + answer: ok(`/private${avdDirectory}/simlock_one.avd\r\nOK\r\n`), + runState: "running", + }, + { reported: "a blank path", answer: ok("\r\nOK\r\n"), runState: "stopped" }, + { reported: "a console error", answer: ok("KO: unknown command\r\n"), runState: "stopped" }, + { reported: "a relative path", answer: ok("simlock_one.avd\r\nOK\r\n"), runState: "stopped" }, + { + reported: "a missing directory", + answer: ok("/missing/simlock_one.avd\r\nOK\r\n"), + runState: "stopped", + }, + { + reported: "an unreadable alias", + answer: ok(`/unreadable/simlock_one.avd\r\nOK\r\n`), + runState: "stopped", + }, + { + reported: "a sibling AVD", + answer: ok(`${avdDirectory}/simlock_two.avd\r\nOK\r\n`), + runState: "stopped", + }, + { + reported: "a vanished serial", + answer: { code: 1, stderr: "device 'emulator-5586' not found", stdout: "" }, + runState: "transitioning", + }, + ])( + "attributes running state, processes and marks only with path proof: $reported", + async ({ answer, runState }) => { + const filesystem = await androidFilesystem( + { config: "simlock.mark=tok-123\n" }, + new WorkingDirectoryFilesystem(avdDirectory), + ); + filesystem.defineSymlink("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/private/home", "/home"); + filesystem.defineSymlink("/unreadable", avdDirectory); + filesystem.defineFailure("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/unreadable/simlock_one.avd", "EACCES"); + await filesystem.mkdirp(`${avdDirectory}/simlock_two.avd`); + + for (const result of [ok(`${avdDirectory}/simlock_one.avd\r\nOK\r\n`), answer]) { + const runner = new ScriptedProcessRunner([ + processResult( + binaries.adb, + ["devices"], + "List of devices attached\nemulator-5586\tdevice\n", + ), + processResult( + binaries.adb, + ["-s", "emulator-5586", "shell", /getprop ro\.boot\.qemu\.avd_name/], + 'simlock_one\n{"token":"tok-123"}', + ), + { + match: { command: binaries.adb, args: ["-s", "emulator-5586", "emu", "avd", "path"] }, + result, + }, + ]); + const driver = await createDriver(filesystem, runner); + const reality = await driver.listManaged(); + const expectedState = result === answer ? runState : "running"; + const running = expectedState === "running"; + + expect(reality.processes).toEqual( + running + ? [expect.objectContaining({ address: "emulator-5586", deviceId: "simlock_one" })] + : [], + ); + expect(reality.devices.find((device) => device.deviceId === "simlock_one")).toMatchObject({ + runState: expectedState, + mark: { + durable: "tok-123", + erasable: running ? "tok-123" : undefined, + erasableReadable: running, + }, + }); + expect( + runner.calls.find((call) => call.args.slice(2).join(" ") === "emu avd path")?.options, + ).toEqual({ env: scopedEnv, timeoutMs: 5_000 }); + } + }, + ); + it("does not attribute an outside-root emulator to a root AVD with the same name (#261)", async () => { const filesystem = await androidFilesystem(); const ownedPath = `${avdDirectory}/simlock_mine.avd`; const foreignPath = `${home}/.android/avd/simlock_mine.avd`; await filesystem.mkdirp(ownedPath); + await filesystem.writeFileAtomic(`${ownedPath}/config.ini`, "simlock.mark=owned-token\n"); await filesystem.mkdirp(foreignPath); for (const path of [ownedPath, foreignPath]) { @@ -3647,7 +3739,7 @@ describe("AndroidDriver ownership", () => { processResult( binaries.adb, ["-s", "emulator-5586", "shell", /getprop ro\.boot\.qemu\.avd_name/], - "simlock_mine\n", + 'simlock_mine\n{"token":"owned-token"}', ), ]), ok(`${path}\r\nOK\r\n`), @@ -3667,6 +3759,11 @@ describe("AndroidDriver ownership", () => { expect.objectContaining({ deviceId: "simlock_mine", runState: path === ownedPath ? "running" : "stopped", + mark: { + durable: "owned-token", + erasable: path === ownedPath ? "owned-token" : undefined, + erasableReadable: path === ownedPath, + }, }), ]); } diff --git a/src/drivers/android/index.ts b/src/drivers/android/index.ts index 93b5c997f..c58cd0ad3 100644 --- a/src/drivers/android/index.ts +++ b/src/drivers/android/index.ts @@ -104,6 +104,7 @@ const PORT_POLL_INTERVAL_MS = 2_000; * first and the read reports the platform's failure rather than its own timeout. */ const ADB_DEVICES_TIMEOUT_MS = 30_000; +const AVD_PATH_TIMEOUT_MS = 5_000; const DEFAULT_ADB_SERVER_PORT = 5038; // why: After this long without an answer from a serial, the emulator's own registration is // assumed lost and Simlock re-sends it. Long enough that a normally-booting emulator has @@ -1141,12 +1142,6 @@ export class AndroidDriver implements Driver { return avdNames; } - /** - * why: Serials attached in a settled `device` state can answer `getprop`, so they can be - * attributed to an AVD by name. A serial in any other adb state (offline, unauthorized, - * booting, ...) cannot answer `getprop` yet, so it cannot be attributed to an AVD name -- - * `unattributableTransitionalSerial` records that this tick saw at least one such serial. - */ async #scanAdbSerials(): Promise<{ readonly settledSerials: readonly string[]; readonly unattributableTransitionalSerial: boolean; @@ -1202,11 +1197,17 @@ export class AndroidDriver implements Driver { } const [nameLine = "", ...markLines] = output.stdout.split(/\r?\n/); const avdName = nameLine.trim(); - // why: Root membership, never the name and never "our server can see it". `ADB_EMU=0` - // should mean this server only holds transports Simlock registered itself, but a - // device is Simlock's because of where its AVD lives -- ownership is proven, not - // inferred from who happens to be looking at it (safety rule 8). if (!avdNamesInRoot.has(avdName)) continue; + let answered: string; + try { + answered = await this.#readAvdPath(candidate); + } catch { + // why: A serial can disappear after its shell answered; keep the observation + // inconclusive just as when it disappears before that shell call. + unreadableSerial = true; + continue; + } + if (!(await this.#sameDirectory(answered, `${this.#deviceRoot}/${avdName}.avd`))) continue; runningByAvdName.add(avdName); erasableMarkByAvdName.set(avdName, parseErasableMark(markLines.join("\n"))); const port = Number(candidate.slice("emulator-".length)); @@ -1868,9 +1869,8 @@ export class AndroidDriver implements Driver { const state = this.#stateFor(data); state.serialHeldByAnother = true; const expected = `${this.#deviceRoot}/${data.avdName}.avd`; - const result = await this.#runOrThrow(this.#sdk.adb, ["-s", data.serial, "emu", "avd", "path"]); - const answered = answeredAvdPath(result.stdout); - if (answered === expected || (await this.#sameDirectory(answered, expected))) { + const answered = await this.#readAvdPath(data.serial); + if (await this.#sameDirectory(answered, expected)) { state.serialHeldByAnother = false; return; } @@ -1879,7 +1879,15 @@ export class AndroidDriver implements Driver { ); } + async #readAvdPath(serial: string): Promise { + const result = await this.#runOrThrow(this.#sdk.adb, ["-s", serial, "emu", "avd", "path"], { + timeoutMs: AVD_PATH_TIMEOUT_MS, + }); + return answeredAvdPath(result.stdout); + } + async #sameDirectory(left: string, right: string): Promise { + if (left === right) return true; if (!isAbsolute(left)) return false; try { const [realLeft, realRight] = await Promise.all([ From 97c2898bcd7d4434b78cbe18fdf6f175d187b427 Mon Sep 17 00:00:00 2001 From: Szymon Chmal Date: Mon, 19 Oct 2026 16:23:56 +0200 Subject: [PATCH 3/5] test(android): align ownership claims with asserted evidence (#261) --- src/drivers/android/AGENTS.md | 4 ++-- src/drivers/android/index.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drivers/android/AGENTS.md b/src/drivers/android/AGENTS.md index 3ebf920b1..cec93e1da 100644 --- a/src/drivers/android/AGENTS.md +++ b/src/drivers/android/AGENTS.md @@ -76,8 +76,8 @@ Reclaim — `reclaim`: `shutdown`: `adb emu kill`, wait, SIGKILL. `destroy`: kills only an emulator this process started, then `avdmanager delete avd`, frees the port. -`listManaged`: root AVDs + `adb devices` + `ro.boot.qemu.avd_name`; processes, running state and marks -require a matching `emu avd path` (exact or `realpath`). Invalid paths are ignored; query failures leave stopped AVDs transitioning. +`listManaged`: root AVDs + `adb devices` + `ro.boot.qemu.avd_name`; processes, running state and erasable marks require a matching `emu avd path` (exact or `realpath`). +Durable marks come from root AVD configs independently of that proof. Invalid paths are ignored; query failures leave otherwise-stopped AVDs transitioning. Profiles — library (`profiles/`), SDK (`avdmanager list device`), devices.xml (`$ANDROID_USER_HOME/devices.xml`, else `.android/devices.xml` under `ANDROID_PREFS_ROOT`, `ANDROID_SDK_HOME` diff --git a/src/drivers/android/index.test.ts b/src/drivers/android/index.test.ts index fa373e10a..30b8a2e55 100644 --- a/src/drivers/android/index.test.ts +++ b/src/drivers/android/index.test.ts @@ -1584,7 +1584,7 @@ describe("AndroidDriver", () => { expect(runner.calls.some((call) => call.command === binaries.sdkmanager)).toBe(false); }); - it("joins adb devices, getprop and the AVD path to distinguish running and stopped AVDs", async () => { + it("reports one running root AVD, one stopped root AVD and the running AVD's process", async () => { const filesystem = await androidFilesystem(); await filesystem.mkdirp(`${avdDirectory}/simlock_running.avd`); await filesystem.mkdirp(`${avdDirectory}/simlock_stopped.avd`); @@ -3667,7 +3667,7 @@ describe("AndroidDriver ownership", () => { runState: "transitioning", }, ])( - "attributes running state, processes and marks only with path proof: $reported", + "gates running state, processes and erasable marks on path proof while retaining durable marks: $reported", async ({ answer, runState }) => { const filesystem = await androidFilesystem( { config: "simlock.mark=tok-123\n" }, From 79227f5e5e8e5dbcf794a2aaacddd7d5306adf50 Mon Sep 17 00:00:00 2001 From: Szymon Chmal Date: Mon, 19 Oct 2026 16:31:32 +0200 Subject: [PATCH 4/5] docs: record PR 733 review findings and metrics --- .agents/reviews/pr-733.json | 169 ++++++++++++++++++++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100644 .agents/reviews/pr-733.json diff --git a/.agents/reviews/pr-733.json b/.agents/reviews/pr-733.json new file mode 100644 index 000000000..9cc864c13 --- /dev/null +++ b/.agents/reviews/pr-733.json @@ -0,0 +1,169 @@ +{ + "pr": 733, + "invocations": [ + { + "id": "code-r1", + "role": "code", + "provider": "claudeAgent", + "model": "claude-opus-5-5", + "commit": "107b31a2508083608106641f219808a36dfef39c", + "round": "1", + "startedAt": "2026-10-19T14:14:12.288Z", + "finishedAt": "2026-10-19T14:19:12.538Z", + "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, + "costUsd": null, + "fixSeconds": null + }, + { + "id": "spec-r1", + "role": "spec", + "provider": "codex", + "model": "gpt-6.1-sol", + "commit": "107b31a2508083608106641f219808a36dfef39c", + "round": "1", + "startedAt": "2026-10-19T14:14:13.291Z", + "finishedAt": "2026-10-19T14:16:15.800Z", + "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, + "costUsd": null, + "fixSeconds": null + }, + { + "id": "claims-r1", + "role": "claims", + "provider": "codex", + "model": "gpt-6.1-sol", + "commit": "107b31a2508083608106641f219808a36dfef39c", + "round": "1", + "startedAt": "2026-10-19T14:16:26.575Z", + "finishedAt": "2026-10-19T14:18:31.088Z", + "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, + "costUsd": null, + "fixSeconds": null + }, + { + "id": "fix-r1", + "role": "fix", + "provider": "codex", + "model": "gpt-6.1-sol", + "commit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c", + "round": "1", + "startedAt": "2026-10-19T14:21:52.271Z", + "finishedAt": "2026-10-19T14:25:03.289Z", + "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, + "costUsd": null, + "fixSeconds": 191.018 + }, + { + "id": "code-r2", + "role": "code", + "provider": "claudeAgent", + "model": "claude-opus-5-5", + "commit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c", + "round": "2", + "startedAt": "2026-10-19T14:25:31.625Z", + "finishedAt": "2026-10-19T14:26:55.506Z", + "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, + "costUsd": null, + "fixSeconds": null + }, + { + "id": "claims-r2", + "role": "claims", + "provider": "codex", + "model": "gpt-6.1-sol", + "commit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c", + "round": "2", + "startedAt": "2026-10-19T14:27:14.782Z", + "finishedAt": "2026-10-19T14:28:12.560Z", + "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, + "costUsd": null, + "fixSeconds": null + }, + { + "id": "coord-r1", + "role": "coordination", + "provider": "codex", + "model": "gpt-6-luna", + "commit": "107b31a2508083608106641f219808a36dfef39c", + "round": "1", + "startedAt": null, + "finishedAt": null, + "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, + "costUsd": null, + "fixSeconds": null + }, + { + "id": "coord-r2", + "role": "coordination", + "provider": "codex", + "model": "gpt-6-luna", + "commit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c", + "round": "2", + "startedAt": null, + "finishedAt": null, + "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, + "costUsd": null, + "fixSeconds": null + }, + { + "id": "coord-fix-check", + "role": "coordination", + "provider": "codex", + "model": "gpt-6-luna", + "commit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c", + "round": "fix-check", + "startedAt": null, + "finishedAt": null, + "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, + "costUsd": null, + "fixSeconds": null + } + ], + "findings": [ + { + "id": "R1", + "roles": ["code"], + "severity": "blocking", + "impact": ["test-logic"], + "outcome": "fixed", + "evidence": "src/drivers/android/index.test.ts:1587 title claimed AVD path participation, but its body passed against merge-base code without a path query.", + "reason": "The title now states only the running/stopped/process observations the body asserts. Round 2 confirmed the correction and no semantic test change.", + "fixCommit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c", + "verificationCommit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c" + }, + { + "id": "R2", + "roles": ["claims", "code"], + "severity": "blocking", + "impact": ["claims"], + "outcome": "fixed", + "evidence": "src/drivers/android/AGENTS.md:79 and index.test.ts:3670 claimed marks require path proof although durable marks are reported independently.", + "reason": "The manual and table title now distinguish durable marks from path-gated erasable marks. Round 2 claims and code checks confirmed both.", + "fixCommit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c", + "verificationCommit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c" + }, + { + "id": "R3", + "roles": ["code"], + "severity": "note", + "impact": ["behavior"], + "outcome": "intentional", + "evidence": "A failed or timed-out AVD path query can report transitioning and startup may reclaim that lease.", + "reason": "ADR 0019 section 2 accepts lease loss during an adb attribution hiccup; runtime health ignores transitioning observations. The behavior is unchanged by the title/manual correction.", + "fixCommit": null, + "verificationCommit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c" + }, + { + "id": "R4", + "roles": ["code"], + "severity": "nit", + "impact": ["mechanical"], + "outcome": "nonblocking", + "evidence": "src/drivers/android/AGENTS.md:79 is a long line compared with nearby lines.", + "reason": "Style-only; no correctness or claims impact, left unchanged.", + "fixCommit": null, + "verificationCommit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c" + } + ], + "escapedDefects": null +} From 064d70c4e1b378d6349e964e5854ad1416d1773c Mon Sep 17 00:00:00 2001 From: Szymon Chmal Date: Tue, 20 Oct 2026 08:22:56 +0200 Subject: [PATCH 5/5] docs: put PR 733 review findings in the findings-file format --- .agents/reviews/pr-733.json | 165 ++++-------------------------------- 1 file changed, 15 insertions(+), 150 deletions(-) diff --git a/.agents/reviews/pr-733.json b/.agents/reviews/pr-733.json index 9cc864c13..addf3e38c 100644 --- a/.agents/reviews/pr-733.json +++ b/.agents/reviews/pr-733.json @@ -1,169 +1,34 @@ { - "pr": 733, - "invocations": [ - { - "id": "code-r1", - "role": "code", - "provider": "claudeAgent", - "model": "claude-opus-5-5", - "commit": "107b31a2508083608106641f219808a36dfef39c", - "round": "1", - "startedAt": "2026-10-19T14:14:12.288Z", - "finishedAt": "2026-10-19T14:19:12.538Z", - "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, - "costUsd": null, - "fixSeconds": null - }, - { - "id": "spec-r1", - "role": "spec", - "provider": "codex", - "model": "gpt-6.1-sol", - "commit": "107b31a2508083608106641f219808a36dfef39c", - "round": "1", - "startedAt": "2026-10-19T14:14:13.291Z", - "finishedAt": "2026-10-19T14:16:15.800Z", - "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, - "costUsd": null, - "fixSeconds": null - }, - { - "id": "claims-r1", - "role": "claims", - "provider": "codex", - "model": "gpt-6.1-sol", - "commit": "107b31a2508083608106641f219808a36dfef39c", - "round": "1", - "startedAt": "2026-10-19T14:16:26.575Z", - "finishedAt": "2026-10-19T14:18:31.088Z", - "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, - "costUsd": null, - "fixSeconds": null - }, - { - "id": "fix-r1", - "role": "fix", - "provider": "codex", - "model": "gpt-6.1-sol", - "commit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c", - "round": "1", - "startedAt": "2026-10-19T14:21:52.271Z", - "finishedAt": "2026-10-19T14:25:03.289Z", - "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, - "costUsd": null, - "fixSeconds": 191.018 - }, - { - "id": "code-r2", - "role": "code", - "provider": "claudeAgent", - "model": "claude-opus-5-5", - "commit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c", - "round": "2", - "startedAt": "2026-10-19T14:25:31.625Z", - "finishedAt": "2026-10-19T14:26:55.506Z", - "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, - "costUsd": null, - "fixSeconds": null - }, - { - "id": "claims-r2", - "role": "claims", - "provider": "codex", - "model": "gpt-6.1-sol", - "commit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c", - "round": "2", - "startedAt": "2026-10-19T14:27:14.782Z", - "finishedAt": "2026-10-19T14:28:12.560Z", - "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, - "costUsd": null, - "fixSeconds": null - }, - { - "id": "coord-r1", - "role": "coordination", - "provider": "codex", - "model": "gpt-6-luna", - "commit": "107b31a2508083608106641f219808a36dfef39c", - "round": "1", - "startedAt": null, - "finishedAt": null, - "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, - "costUsd": null, - "fixSeconds": null - }, - { - "id": "coord-r2", - "role": "coordination", - "provider": "codex", - "model": "gpt-6-luna", - "commit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c", - "round": "2", - "startedAt": null, - "finishedAt": null, - "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, - "costUsd": null, - "fixSeconds": null - }, - { - "id": "coord-fix-check", - "role": "coordination", - "provider": "codex", - "model": "gpt-6-luna", - "commit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c", - "round": "fix-check", - "startedAt": null, - "finishedAt": null, - "tokens": { "input": null, "output": null, "cacheRead": null, "cacheWrite": null }, - "costUsd": null, - "fixSeconds": null - } - ], "findings": [ { "id": "R1", - "roles": ["code"], - "severity": "blocking", - "impact": ["test-logic"], + "role": "code", + "class": "testing 2", "outcome": "fixed", - "evidence": "src/drivers/android/index.test.ts:1587 title claimed AVD path participation, but its body passed against merge-base code without a path query.", - "reason": "The title now states only the running/stopped/process observations the body asserts. Round 2 confirmed the correction and no semantic test change.", - "fixCommit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c", - "verificationCommit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c" + "path": "src/drivers/android/index.test.ts:1587", + "fix": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c" }, { "id": "R2", - "roles": ["claims", "code"], - "severity": "blocking", - "impact": ["claims"], + "role": "claims", + "class": "manual claims path proof for durable marks", "outcome": "fixed", - "evidence": "src/drivers/android/AGENTS.md:79 and index.test.ts:3670 claimed marks require path proof although durable marks are reported independently.", - "reason": "The manual and table title now distinguish durable marks from path-gated erasable marks. Round 2 claims and code checks confirmed both.", - "fixCommit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c", - "verificationCommit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c" + "path": "src/drivers/android/AGENTS.md:79", + "fix": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c" }, { "id": "R3", - "roles": ["code"], - "severity": "note", - "impact": ["behavior"], + "role": "code", + "class": "lease loss on failed AVD path query", "outcome": "intentional", - "evidence": "A failed or timed-out AVD path query can report transitioning and startup may reclaim that lease.", - "reason": "ADR 0019 section 2 accepts lease loss during an adb attribution hiccup; runtime health ignores transitioning observations. The behavior is unchanged by the title/manual correction.", - "fixCommit": null, - "verificationCommit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c" + "path": "src/drivers/android/index.ts" }, { "id": "R4", - "roles": ["code"], - "severity": "nit", - "impact": ["mechanical"], + "role": "code", + "class": "style long manual line", "outcome": "nonblocking", - "evidence": "src/drivers/android/AGENTS.md:79 is a long line compared with nearby lines.", - "reason": "Style-only; no correctness or claims impact, left unchanged.", - "fixCommit": null, - "verificationCommit": "9d1bc4ed77e549dcae9c87ee9042f09282d1331c" + "path": "src/drivers/android/AGENTS.md:79" } - ], - "escapedDefects": null + ] }