test(evals): device manager cases for mcp-tool-use #25850
Mergedgabrielelpidio(GitHub profile, opens in a new tab)merged 2 commits into
main fromrefs/pull/25850/headmerged by gabrielelpidio(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
- evals/mcp-tool-use/devices.ts line 575Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +138,21 @@138+const HUB = "http://127.0.0.1:47613";139+const PLATFORM_NAMES = { ios: "iOS Simulators", android: "Android Emulators" } as const;140+/** T3 reads only a capture's PNG header; replay has no screens to send. */141+const capture = (platform: DevicePlatform) => {142+ const png = new Uint8Array(24);143+ const view = new DataView(png.buffer);144+ view.setUint32(0, 0x89504e47);145+ view.setUint32(4, 0x0d0a1a0a);146+ view.setUint32(12, 0x49484452);147+ view.setUint32(16, platform === "ios" ? 1206 : 1080);148+ view.setUint32(20, platform === "ios" ? 2622 : 2400);149+ return png;150+};151+152+const fakeHost = (153+ world: DeviceWorld,154+ id: DeviceHostId,155+ label: string,156+ agentEntry: string,157+): DeviceHost.DeviceHost["Service"] => {158+ const devices = world.devices.filter((device) => device.hostId === id);evals/mcp-tool-use/device-grading.ts line 708OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +688,21 @@688+ inputString(call.input, "deviceId") === expect.capture?.deviceId,689+ );690+ const capture =691+ run.calls.some(692+ (call) =>693+ call.tool === "device_screenshot" &&694+ (!inputString(call.input, "hostId") ||695+ inputString(call.input, "hostId") === expect.capture?.hostId) &&696+ (!inputString(call.input, "deviceId") ||697+ inputString(call.input, "deviceId") === expect.capture?.deviceId) &&698+ opened.some((open) => run.calls.indexOf(open) < run.calls.indexOf(call)),699+ ) ||700+ shell.some(701+ ({ call, actions }) =>702+ opened.some((open) => run.calls.indexOf(open) < run.calls.indexOf(call)) &&703+ actions.some(704+ (action) =>705+ action.executed &&706+ action.managed &&707+ (run.launchers ?? []).includes(action.words[0] ?? "") &&708+ ["screenshot", "snapshot", "record"].includes(deviceArgs(action.words)[0] ?? ""),evals/mcp-tool-use/device-grading.ts line 694OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +674,21 @@674+ call.failed === false,675+ ),676+ }));677+ if (expect.noRawUi)678+ checks.push({679+ check: "shellMustNot device UI",680+ pass: !shell.some(({ actions }) => actions.some((action) => action.raw)),681+ });682+ if (expect.capture) {683+ const opened = run.calls.filter(684+ (call) =>685+ call.tool === "device_open" &&686+ call.failed === false &&687+ inputString(call.input, "hostId") === expect.capture?.hostId &&688+ inputString(call.input, "deviceId") === expect.capture?.deviceId,689+ );690+ const capture =691+ run.calls.some(692+ (call) =>693+ call.tool === "device_screenshot" &&694+ (!inputString(call.input, "hostId") ||
- evals/mcp-tool-use/device-grading.ts line 466OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +446,21 @@446+ words.shift();447+ }448+ if (words[0] === "done") {449+ const condition = conditions.pop();450+ active = condition?.parent ?? true;451+ certain = condition?.certain ?? true;452+ words.shift();453+ }454+ const reachable =455+ gate === "&&" ? status : gate === "||" ? (status === undefined ? undefined : !status) : true;456+ if (!active || !words.length || reachable === false) return;457+ const list = listTokens();458+ currentUnmasked = !list.includes("||") && words[0] !== "!";459+ const finalAndSuccess =460+ succeeded &&461+ gate === "&&" &&462+ currentUnmasked &&463+ !commandTokens.some((t) => /^(?:if|for|while|until|then|else|fi|do|done)$/.test(t)) &&464+ !commandTokens.slice(tokenIndex).some((t) => /^[;\n&]$/.test(t));465+ currentCertain = certain && (reachable === true || finalAndSuccess);466+ status = truth(words);evals/mcp-tool-use/device-grading.ts line 169OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +149,21 @@149+const managedUi =150+ /^(?:snapshot|screenshot|record|open|close|tap|click|type|fill|press|swipe|scroll|settings|back|home)$/;151+const interpreter = /^(?:python\d*(?:\.\d+)?|node|ruby|perl|osascript)$/;152+const shells = new Set(["bash", "sh", "zsh"]);153+154+export type ShellInvocation = {155+ readonly words: ReadonlyArray<string>;156+ readonly remote: boolean;157+ readonly raw: boolean;158+ readonly managed: boolean;159+ /** Raw-route checks inspect possible actions; managed credit requires established execution. */160+ readonly executed: boolean;161+ /** An aggregate success cannot establish success of an action masked by ||. */162+ readonly unmasked: boolean;163+};164+165+// A deliberately bounded shell grammar, not a shell executor. Keep quotes until expansion so166+// literal command examples, comments and quoted heredocs never become invocations.167+const tokens = (source: string) =>168+ source.match(169+ /`(?:\\.|[^`])*`|[<>]\((?:[^()]|\([^()]*\))*\)|\$\((?:[^()'"\\]|\\.|'[^']*'|"(?:\\.|[^"\\])*"|\([^()]*\))*\)|(?:"(?:\\.|[^"\\])*"|'[^']*'|\\.|\$\{\w+\}|[^\s;&|(){}<>"'\\])+|&&|\|\||[;\n&|(){}]|\d*(?:>>?|<)(?:&\d+)?/g,evals/mcp-tool-use/device-grading.ts line 601Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +438,21 @@438+ take: words[0] === "until" && value !== undefined ? !value : value,439+ });440+ if (!loopList) words.shift();441+ }442+ if (words[0] === "do") {443+ const condition = conditions.at(-1);444+ active = condition?.parent !== false && condition?.take !== false;445+ certain = condition?.certain !== false && condition?.take === true;446+ words.shift();447+ }448+ if (words[0] === "done") {449+ const condition = conditions.pop();450+ active = condition?.parent ?? true;451+ certain = condition?.certain ?? true;452+ words.shift();453+ }454+ const reachable =455+ gate === "&&" ? status : gate === "||" ? (status === undefined ? undefined : !status) : true;456+ if (!active || !words.length || reachable === false) return;457+ const list = listTokens();458+ currentUnmasked = !list.includes("||") && words[0] !== "!";
- evals/mcp-tool-use/device-grading.ts lines 150 to 150OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +130,21 @@130+const deviceArgs = (words: ReadonlyArray<string>) => {131+ const args: string[] = [];132+ for (let i = 1; i < words.length; i++) {133+ const word = words[i]!;134+ if (word === "--") {135+ args.push(...words.slice(i + 1));136+ break;137+ }138+ if (word.startsWith("-")) {139+ if (140+ /^--(?:platform|udid|device|config|remote-config|session|state-dir|scope|timeout|timeout-ms|out|quality)$/.test(141+ word,142+ )143+ )144+ i++;145+ } else args.push(word);146+ }147+ return args;148+};149+const managedUi =150+ /^(?:snapshot|screenshot|record|open|close|tap|click|type|fill|press|swipe|scroll|settings|back|home)$/;
- evals/mcp-tool-use/device-grading.ts line 179Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +54,21 @@54+ const positive = text55+ .toLowerCase()56+ .replaceAll("’", "'")57+ .replace(/[`*]/g, "")58+ // "SSH for the non-UI operations" restricts SSH rather than routing UI through it.59+ .replace(/\bnon-(?:ui|device|simulator|screen)\b/g, "auxiliary")60+ .replace(/\b(?:do not|don't)\s+forget\s+to\b/g, "")61+ .replace(/\b(?:do not|don't)\s+avoid\b/g, "use")62+ .replace(/\b(?:should|must)\s+not\s+be\s+avoided\b/g, "is allowed")63+ .replace(/\b(?:there is )?no need to avoid\b/g, "use")64+ .replace(/\bnot just\b/g, "")65+ .replace(/\bbut (?:also )?for\b/g, "and for")66+ .replace(/\bavoid limiting (ssh|simctl|adb|idb) to [^.;]+;\s*use it\b/g, "use $1")67+ .replace(/(^|[.!;\n]\s*)(for [^.;,\n]+),\s*(?=(?:use|run)\b)/g, "$1$2 ")68+ .split(69+ /[\n.!;]+(?=\s|$)|\b(?:but|however|while)\b|,\s*(?=(?:screenshots?|recordings?)\s+(?:via|through|go))|(?:,\s*|\band\s+|\bthen\s+)(?=(?:use|run|call)\b)/,70+ )71+ .map((clause) =>72+ (73+ clause.split(74+ /\b(?:not|never|no|don't|cannot|can't|avoid|forbidden|prohibited|disallowed|rather than|instead of|without)\b/,evals/mcp-tool-use/device-grading.ts line 409Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +290,21 @@290+ const rest = script.slice(i + match[0].length).trimStart();291+ let program: string | undefined;292+ if (rest.startsWith("[")) program = array(rest);293+ else {294+ const arg = rest.match(new RegExp(`^${literal}`))?.[0];295+ const tail = arg === undefined ? "" : rest.slice(arg.length);296+ if (arg && /(?:spawn|execFile)/.test(match[1]!)) {297+ const argv = array(tail.replace(/^\s*,\s*/, ""));298+ if (argv !== undefined) program = `${quoteArg(arg)} ${argv}`;299+ } else if (300+ arg &&301+ (!python || match[1]!.startsWith("os.") || /^\s*,[^)]*\bshell\s*=\s*True\b/.test(tail))302+ ) {303+ program = unquote(arg, variables);304+ }305+ }306+ if (program !== undefined) {307+ const line = script.slice(script.lastIndexOf("\n", i) + 1, i);308+ const certain = python ? !/^\s/.test(line) : !script.slice(0, i).includes("{");309+ actions.push(310+ ...shellInvocations(program, new Map(variables), remote).map((action) => ({
- evals/mcp-tool-use/device-grading.ts lines 547 to 553Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +415,21 @@415+ });416+ words.shift();417+ }418+ if (words[0] === "then") {419+ const condition = conditions.at(-1);420+ active = condition?.parent !== false && condition?.take !== false;421+ certain = condition?.certain !== false && condition?.take === true;422+ words.shift();423+ }424+ if (words[0] === "else") {425+ const condition = conditions.at(-1);426+ active = !!condition?.parent && condition.take !== true;427+ certain = !!condition?.certain && condition.take === false;428+ words.shift();429+ }430+ if (words[0] === "fi") {431+ const condition = conditions.pop();432+ active = condition?.parent ?? true;433+ certain = condition?.certain ?? true;434+ words.shift();435+ }
- evals/mcp-tool-use/device-grading.ts lines 476 to 476OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +456,21 @@456+ if (!loopList) words.shift();457+ }458+ if (words[0] === "do") {459+ const condition = conditions.at(-1);460+ active = condition?.parent !== false && condition?.take !== false;461+ certain = condition?.certain !== false && condition?.take === true;462+ words.shift();463+ }464+ if (words[0] === "done") {465+ const condition = conditions.pop();466+ active = condition?.parent ?? true;467+ certain = condition?.certain ?? true;468+ words.shift();469+ }470+ const reachable =471+ gate === "&&" ? status : gate === "||" ? (status === undefined ? undefined : !status) : true;472+ if (!active || !words.length || reachable === false) return;473+ const list = listTokens();474+ currentUnmasked = !list.includes("||") && words[0] !== "!";475+ // The call's exit status is the last command's; an action followed by `;` or `&` doesn't own it.476+ currentSequenced = commandTokens.slice(tokenIndex).some((t) => /^[;\n&]$/.test(t));
- evals/mcp-tool-use/device-grading.ts line 652Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +512,21 @@512+ : undefined;513+ for (const word of [...rawWords, ...redirects]) if (!bodies.has(word)) substitutions(word);514+ if (loopList) return;515+ const body = words.map((word) => bodies.get(word)).find((value) => value !== undefined);516+ if (body?.expand) substitutions(body.text, true);517+ words = words.filter((word) => !bodies.has(word));518+ const literalAssignments = words.every((word) => /^\w+=/.test(word));519+ if (literalAssignments || words[0] === "export") {520+ for (const word of words) {521+ const at = word.indexOf("=");522+ if (at > 0) {523+ if (currentCertain) variables.set(word.slice(0, at), word.slice(at + 1));524+ else variables.delete(word.slice(0, at));525+ }526+ }527+ return;528+ }529+ if (executable(words[0]) === "command" && /^-[vV]$/.test(words[1] ?? "")) return;530+ while (words[0] === "!") words.shift();531+ words = unwrap(words);532+ const name = executable(words[0]);evals/mcp-tool-use/device-grading.ts line 817OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +797,21 @@797+ )798+ .flatMap((action) => {799+ const args = deviceArgs(action.words);800+ const operation = args[0] === "record" ? args[1] : "";801+ return operation === "start" || operation === "stop" ? [operation] : [];802+ }),803+ );804+ const start = steps.indexOf("start");805+ checks.push({806+ check: `device recording ${expect.recording}`,807+ pass:808+ start >= 0 &&809+ steps.indexOf("stop", start + 1) >= 0 &&810+ run.stopReason === "end_turn" &&811+ terminalText(run).includes(expect.recording),812+ });813+ }814+ if (expect.maxFailedAttemptsPerTurn !== undefined) {815+ const failedByTurn = new Map<number, number>();816+ for (const call of run.calls) {817+ if (!call.failed) continue;
- evals/mcp-tool-use/device-grading.ts line 524Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +400,21 @@400+ ? source401+ : source.replace(402+ /"((?:\\.|[^"\\])*)"|'[^']*'|\\./g,403+ (part, double: string | undefined) => double ?? (part.startsWith("'") ? "" : part),404+ );405+ for (const match of expanded.matchAll(/(?<!\\)\$\(((?:[^()]|\([^()]*\))*)\)/g))406+ append(shellInvocations(match[1]!, new Map(variables), remote));407+ for (const match of expanded.matchAll(/(?<!\\)`([^`]*)`|[<>]\(((?:[^()]|\([^()]*\))*)\)/g))408+ append(shellInvocations(match[1] ?? match[2]!, new Map(variables), remote));409+ };410+ const flush = () => {411+ if (!clause.length) return;412+ const rawWords = clause;413+ const redirects = redirectOperands;414+ redirectOperands = [];415+ clause = [];416+ let words = rawWords.map((word) => unquote(word, variables));417+ if (words[0] === "if") {418+ const parent = active;419+ conditions.push({420+ parent,evals/mcp-tool-use/device-grading.ts line 314OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +294,21 @@294+ const match = launch.exec(script.slice(i));295+ if (!match) continue;296+ const rest = script.slice(i + match[0].length).trimStart();297+ let program: string | undefined;298+ if (rest.startsWith("[")) program = array(rest);299+ else {300+ const arg = rest.match(new RegExp(`^${literal}`))?.[0];301+ const tail = arg === undefined ? "" : rest.slice(arg.length);302+ if (arg && /(?:spawn|execFile)/.test(match[1]!)) {303+ const argv = array(tail.replace(/^\s*,\s*/, ""));304+ if (argv !== undefined) program = `${quoteArg(arg)} ${argv}`;305+ } else if (306+ arg &&307+ (!python || match[1]!.startsWith("os.") || /^\s*,[^)]*\bshell\s*=\s*True\b/.test(tail))308+ ) {309+ program = unquote(arg, variables);310+ }311+ }312+ if (program !== undefined) {313+ const line = script.slice(script.lastIndexOf("\n", i) + 1, i);314+ const certain = python ? !/^\s/.test(line) : !script.slice(0, i).includes("{");
- evals/mcp-tool-use/device-grading.ts line 561OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +541,21 @@541+ }542+ const name = executable(words[0]);543+ let input = body?.text ?? pipe;544+ pipe = undefined;545+ if (name === "cat" || name === "tee") {546+ pipe = input;547+ return;548+ }549+ if (name === "printf" || name === "echo") {550+ pipe =551+ name === "echo"552+ ? words.slice(1).join(" ")553+ : words[1]?.includes("%s")554+ ? words.slice(2).join("\n")555+ : words[1]?.replaceAll("\\n", "\n");556+ return;557+ }558+ if (functions.has(name)) {559+ const definition = functions.get(name)!;560+ append(561+ shellInvocations(definition.text, new Map(variables), remote, succeeded).map((action) => ({evals/mcp-tool-use/device-grading.ts line 581OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +561,21 @@561+ shellInvocations(definition.text, new Map(variables), remote, succeeded).map((action) => ({562+ ...action,563+ executed: action.executed && definition.certain,564+ })),565+ );566+ return;567+ }568+ if (name === "ssh") {569+ let at = 1;570+ while (words[at]?.startsWith("-")) {571+ const option = words[at++]!;572+ if (option === "--") break;573+ if (/^-[bBcDEeFIiJLlmOoPpQRSWw]$/.test(option)) at++;574+ }575+ at++; // destination576+ if (words[at] === "--") at++;577+ const script = words.slice(at).join(" ");578+ // A remote shell/interpreter inherits redirected/piped stdin, never the local aliases.579+ const destination = unwrap(tokens(script).map((word) => unquote(word, new Map())));580+ const reader = executable(destination[0]);581+ const hasProgram = destination.some((word) => /^-[a-z]*[ce][a-z]*$/.test(word));evals/mcp-tool-use/device-grading.ts line 561OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +541,21 @@541+ }542+ const name = executable(words[0]);543+ let input = body?.text ?? pipe;544+ pipe = undefined;545+ if (name === "cat" || name === "tee") {546+ pipe = input;547+ return;548+ }549+ if (name === "printf" || name === "echo") {550+ pipe =551+ name === "echo"552+ ? words.slice(1).join(" ")553+ : words[1]?.includes("%s")554+ ? words.slice(2).join("\n")555+ : words[1]?.replaceAll("\\n", "\n");556+ return;557+ }558+ if (functions.has(name)) {559+ const definition = functions.get(name)!;560+ append(561+ shellInvocations(definition.text, new Map(variables), remote, succeeded).map((action) => ({
- evals/mcp-tool-use/device-grading.ts line 672Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +580,21 @@580+ const name = executable(words[0]);581+ let input = body?.text ?? pipe;582+ pipe = undefined;583+ if (name === "cat" || name === "tee") {584+ pipe = input;585+ return;586+ }587+ if (name === "printf" || name === "echo") {588+ pipe =589+ name === "echo"590+ ? words.slice(1).join(" ")591+ : words[1]?.includes("%s")592+ ? words.slice(2).join("\n")593+ : words[1]?.replaceAll("\\n", "\n");594+ return;595+ }596+ if (functions.has(name)) {597+ const definition = functions.get(name)!;598+ const call = { functions, exited: false, depth: shell.depth + 1 };599+ append(600+ shellInvocations(definition.text, new Map(variables), remote, succeeded, call).map(evals/mcp-tool-use/device-grading.ts line 817Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +725,21 @@725+ }726+ if (/^(?:&&|\|\||[;\n&|(){}])$/.test(token)) {727+ flush();728+ if (token === "(" || token === "{") {729+ scopes.push({ variables, active, certain, exited, subshell: token === "(" });730+ if (token === "(") variables = new Map(variables);731+ const reachable =732+ gate === "&&"733+ ? status734+ : gate === "||"735+ ? status === undefined736+ ? undefined737+ : !status738+ : true;739+ active = active && reachable !== false;740+ certain = certain && reachable === true;741+ }742+ if (token === ")" || token === "}") {743+ const scope = scopes.pop();744+ // A subshell's exit ends only the subshell; a group's ends the shell.745+ if (scope) exited = scope.exited || (!scope.subshell && exited);
- evals/mcp-tool-use/device-grading.ts line 996Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +912,21 @@912+ let opened = false,913+ captured = false;914+ for (const [index, call] of run.calls.entries()) {915+ if (call.tool === "device_open" && call.failed === false && matches(inputTarget(call)))916+ opened = true;917+ const appReady = !target.app || (call.failed === false && appSessions.size > 0);918+ if (919+ opened &&920+ appReady &&921+ call.tool === "device_screenshot" &&922+ matches(screenshotTarget(call, run.calls.slice(0, index))) &&923+ (!target.app || usableImage(call))924+ )925+ captured = true;926+ const entry = shell.find(([source]) => source === call);927+ const actions = (entry?.[1] ?? []).filter((action) => action.managed && action.bound);928+ const screenshots = entry ? successfulScreenshots(entry) : [];929+ for (const action of actions) {930+ const { args, words } = action;931+ if (target.app && ["open", "close"].includes(args[0] ?? "")) {932+ appSessions.delete(words[0]!);
- evals/mcp-tool-use/device-grading.ts line 1007Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +928,21 @@928+ const screenshots = entry ? successfulScreenshots(entry) : [];929+ for (const action of actions) {930+ const { args, words } = action;931+ // Only an open or close that ran and succeeded changes the app session.932+ const ran =933+ call.failed === false &&934+ action.executed &&935+ action.unmasked &&936+ !AGENT_DEVICE_ERROR.test(call.output ?? "");937+ if (target.app && ["open", "close"].includes(args[0] ?? "") && ran) {938+ appSessions.delete(words[0]!);939+ if (940+ args[0] === "open" &&941+ args[1] === target.app &&942+ (!action.sequenced ||943+ (actions.filter((a) => a.args[0] === "open").length === 1 &&944+ /^Opened:/m.test(call.output ?? "")))945+ )946+ appSessions.add(words[0]!);947+ }948+ if (
- evals/mcp-tool-use/devices.ts line 386Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +363,21 @@363+ history: ReadonlyArray<ShellCall>,364+ owners: ReadonlyArray<AgentDeviceOwner> = [],365+) => followSessions(targets, declared, history, owners).sessions;366+367+/**368+ * Each launcher `open` a new call makes, read as the tracker reads calls, with the other thread's369+ * session that holds its device. agent-device refuses an open that has one with DEVICE_IN_USE.370+ */371+const opensIn = (372+ targets: ReadonlyArray<LauncherTarget>,373+ { sessions, variables }: ReturnType<typeof followSessions>,374+ command: string,375+ owners: ReadonlyArray<AgentDeviceOwner>,376+) =>377+ shellInvocations(378+ withAliases(command, launcherAliases(command, targets)),379+ new Map(variables),380+ false,381+ true,382+ ).flatMap((action) => {383+ const call = action.remote ? undefined : launcherCall(targets, action.words);
- @@ -0,0 +1,11 @@1+{"area":"device-manager","privacy":"commit-safe","source":{"url":"https://github.com/pingdotgg/t3code/pull/25661","origin":"Authored guard from a supplied remote UDID field mechanism. Neither retained API baseline reproduces UI bypass; not a captured transcript."},"setup":{"role":"top","context":"Work in /home/user/acme/app. The Mac copy is /Users/user/acme/app. The private Acme iPhone dev client and Metro on 8095 are ready. Leave shared devices and ports alone.","priorTurns":[],"world":{"repo":"acme/app","branch":"main","status":"","files":{"AGENTS.md":"# Acme app\n\nWork in /home/user/acme/app. The private Acme iPhone and its dev client are ready on build-mac. Metro uses port 8095; leave shared simulators and ports 3000/8081 alone. The Mac copy is /Users/user/acme/app. Builds, sync, logs and resource locks may use SSH. Track and clean up only processes you start.\n","package.json":"{\n \"name\": \"@acme/app\",\n \"private\": true,\n \"type\": \"module\",\n \"scripts\": {\n \"b2+{"area":"device-manager","privacy":"commit-safe","source":{"url":"https://github.com/pingdotgg/t3code/pull/25661","origin":"Problem section: A fresh child followed its parent's raw simulator recording recipe. Authored Acme reproduction; not a captured field transcript."},"setup":{"role":"delegated-child","context":"Work in /home/user/acme/app. The Mac copy is /Users/user/acme/app. The private Acme iPhone dev client and Metro on 8095 are ready. Leave shared devices and ports alone.","priorTurns":[],"world":{"repo":"acme/app","branch":"main","status":"","files":{"AGENTS.md":"# Acme app\n\nWork in /home/user/acme/app. The private Acme iPhone and its dev client are ready on build-mac. Metro uses port 8095; leave shared simulators and ports 3000/8081 alone. The Mac copy is /Users/user/acme/app. Builds, sync, logs and resource locks may use SSH. Track and clean up only processes you start.\n","package.json":"{\n \"name\": \"@acme/app\",\n \"private\": true,\n \"type\": \"module\",\n \"sc3+{"area":"device-manager","privacy":"commit-safe","source":{"url":"https://github.com/pingdotgg/t3code/pull/25661","origin":"Problem section: An orchestrator sent raw simulator UI instructions in the briefs its children actually received. Authored Acme reproduction; not a captured field transcript."},"setup":{"role":"top","context":"Work in /home/user/acme/app. The Mac copy is /Users/user/acme/app. The private Acme iPhone dev client and Metro on 8095 are ready. Leave shared devices and ports alone.","priorTurns":[],"world":{"repo":"acme/app","branch":"main","status":"","files":{"AGENTS.md":"# Acme app\n\nWork in /home/user/acme/app. The private Acme iPhone and its dev client are ready on build-mac. Metro uses port 8095; leave shared simulators and ports 3000/8081 alone. The Mac copy is /Users/user/acme/app. Builds, sync, logs and resource locks may use SSH. Track and clean up only processes you start.\n","package.json":"{\n \"name\": \"@acme/app\",\n \"private\": true,\n \"type\": \"4+{"area":"device-manager","privacy":"commit-safe","source":{"url":"https://github.com/pingdotgg/t3code/pull/25661","origin":"Problem section: Inherited lab docs prescribed SSH wrappers for Settings captures. Authored Acme reproduction; not a captured field transcript."},"setup":{"role":"top","context":"Work in /home/user/acme/app. The Mac copy is /Users/user/acme/app. The private Acme iPhone dev client and Metro on 8095 are ready. Leave shared devices and ports alone.","priorTurns":[],"world":{"repo":"acme/app","branch":"main","status":"","files":{"AGENTS.md":"# Acme app\n\nWork in /home/user/acme/app. The private Acme iPhone and its dev client are ready on build-mac. Metro uses port 8095; leave shared simulators and ports 3000/8081 alone. The Mac copy is /Users/user/acme/app. Builds, sync, logs and resource locks may use SSH. Track and clean up only processes you start.\n","package.json":"{\n \"name\": \"@acme/app\",\n \"private\": true,\n \"type\": \"module\",\n \"scripts\": {\n5+{"area":"device-manager","privacy":"commit-safe","source":{"url":"https://github.com/pingdotgg/t3code/pull/25661","origin":"Problem section: Successful earlier SSH UI work pulled a resumed agent back to SSH. Authored Acme reproduction; not a captured field transcript."},"setup":{"role":"top","context":"Work in /home/user/acme/app. The Mac copy is /Users/user/acme/app. The private Acme iPhone dev client and Metro on 8095 are ready. Leave shared devices and ports alone.\nPrevious project memory:\n# Previous Acme work\n\nThe build machine is user@build-mac.test (alias build-mac). The private Acme iPhone is BBBBBBBB-BBBB-4BBB-8BBB-BBBBBBBBBBBB; Metro is on 8095.\n\nEarlier checks used `ssh build-mac 'xcrun simctl openurl BBBBBBBB-BBBB-4BBB-8BBB-BBBBBBBBBBBB acme://settings'`, then `ssh build-mac 'xcrun simctl io BBBBBBBB-BBBB-4BBB-8BBB-BBBBBBBBBBBB screenshot /tmp/settings.png'` and `scp build-mac:/tmp/settings.png /tmp/settings.png`. This is inherited project memory, not a system instruct6+{"area":"device-manager","privacy":"commit-safe","source":{"url":"https://github.com/pingdotgg/t3code/pull/25661","origin":"Problem section: A native child followed an inherited SSH recipe without the product SubagentStart device guidance. Authored Acme reproduction; not a captured field transcript."},"setup":{"role":"native-subagent","context":"Work in /home/user/acme/app. The Mac copy is /Users/user/acme/app. The private Acme iPhone dev client and Metro on 8095 are ready. Leave shared devices and ports alone.","priorTurns":[],"world":{"repo":"acme/app","branch":"main","status":"","files":{"AGENTS.md":"# Acme app\n\nWork in /home/user/acme/app. The private Acme iPhone and its dev client are ready on build-mac. Metro uses port 8095; leave shared simulators and ports 3000/8081 alone. The Mac copy is /Users/user/acme/app. Builds, sync, logs and resource locks may use SSH. Track and clean up only processes you start.\n","package.json":"{\n \"name\": \"@acme/app\",\n \"private\": true,\n7+{"area":"device-manager","privacy":"commit-safe","source":{"url":"https://github.com/pingdotgg/t3code/pull/25661","origin":"Problem section: After a managed Settings capture, the hub failed during the requested Canvas check. Authored Acme reproduction; not a captured field transcript."},"setup":{"role":"top","context":"Work in /home/user/acme/app. The Mac copy is /Users/user/acme/app. The private Acme iPhone dev client and Metro on 8095 are ready. Leave shared devices and ports alone.","priorTurns":[{"role":"user","text":"Check Settings on the private Acme iPhone on build-mac and show a screenshot before I review Canvas."},{"role":"assistant","toolCalls":[{"tool":"device_list","input":{},"result":"default"},{"tool":"device_open","input":{"hostId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","deviceId":"BBBBBBBB-BBBB-4BBB-8BBB-BBBBBBBBBBBB"},"result":"default"},{"tool":"device_screenshot","input":{"hostId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","deviceId":"BBBBBBBB-BBBB-4BBB-8BBB-BBBBBBBBBBBB8+{"area":"device-manager","privacy":"commit-safe","source":{"url":"https://github.com/pingdotgg/t3code/pull/25661","origin":"Problem section: A simulator build correctly needs SSH but no managed device session. Authored Acme reproduction; not a captured field transcript."},"setup":{"role":"top","context":"Work in /home/user/acme/app. The Mac copy is /Users/user/acme/app. The private Acme iPhone dev client and Metro on 8095 are ready. Leave shared devices and ports alone.","priorTurns":[],"world":{"repo":"acme/app","branch":"main","status":"","files":{"AGENTS.md":"# Acme app\n\nWork in /home/user/acme/app. The private Acme iPhone and its dev client are ready on build-mac. Metro uses port 8095; leave shared simulators and ports 3000/8081 alone. The Mac copy is /Users/user/acme/app. Builds, sync, logs and resource locks may use SSH. Track and clean up only processes you start.\n","package.json":"{\n \"name\": \"@acme/app\",\n \"private\": true,\n \"type\": \"module\",\n \"scripts\": {\9+{"area":"device-manager","privacy":"commit-safe","source":{"url":"https://github.com/pingdotgg/t3code/pull/25661","origin":"Problem section: A local build-script explanation should not open devices or access the Mac. Authored Acme reproduction; not a captured field transcript."},"setup":{"role":"top","context":"Work in /home/user/acme/app. The Mac copy is /Users/user/acme/app. The private Acme iPhone dev client and Metro on 8095 are ready. Leave shared devices and ports alone.","priorTurns":[],"world":{"repo":"acme/app","branch":"main","status":"","files":{"AGENTS.md":"# Acme app\n\nWork in /home/user/acme/app. The private Acme iPhone and its dev client are ready on build-mac. Metro uses port 8095; leave shared simulators and ports 3000/8081 alone. The Mac copy is /Users/user/acme/app. Builds, sync, logs and resource locks may use SSH. Track and clean up only processes you start.\n","package.json":"{\n \"name\": \"@acme/app\",\n \"private\": true,\n \"type\": \"module\",\n \"script10+{"area":"device-manager","privacy":"commit-safe","source":{"origin":"t3dotgg 2026-10-26 fleet device investigation, finding F1 and F9"},"setup":{"role":"top","context":"Work in /home/user/acme/app. Acme is installed as com.acme.app on the listed iPhones. Metro on 8095 is ready. Leave other threads, simulators and ports alone.","world":{"repo":"acme/app","branch":"main","status":"","files":{"AGENTS.md":"# Acme app\n\nWork in /home/user/acme/app. The private Acme iPhone and its dev client are ready on build-mac. Metro uses port 8095; leave shared simulators and ports 3000/8081 alone. The Mac copy is /Users/user/acme/app. Builds, sync, logs and resource locks may use SSH. Track and clean up only processes you start.\n","package.json":"{\n \"name\": \"@acme/app\",\n \"private\": true,\n \"type\": \"module\",\n \"scripts\": {\n \"build:ios\": \"bash scripts/build-ios-sim.sh\"\n }\n}\n","src/settings.ts":"export const settings = { appearance: \"light\", rememberPreference: true };\n"11+{"area":"device-manager","privacy":"commit-safe","source":{"origin":"t3dotgg 2026-10-26 fleet device investigation, finding F12"},"setup":{"role":"top","context":"Work in /home/user/acme/app. Acme is installed as com.acme.app on the listed iPhones. Metro on 8095 is ready. Leave other threads, simulators and ports alone.","world":{"repo":"acme/app","branch":"main","status":"","files":{"AGENTS.md":"# Acme app\n\nWork in /home/user/acme/app. The private Acme iPhone and its dev client are ready on build-mac. Metro uses port 8095; leave shared simulators and ports 3000/8081 alone. The Mac copy is /Users/user/acme/app. Builds, sync, logs and resource locks may use SSH. Track and clean up only processes you start.\n","package.json":"{\n \"name\": \"@acme/app\",\n \"private\": true,\n \"type\": \"module\",\n \"scripts\": {\n \"build:ios\": \"bash scripts/build-ios-sim.sh\"\n }\n}\n","src/settings.ts":"export const settings = { appearance: \"light\", rememberPreference: true };\n","scri
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed