Merge current master lifecycle and CI fixes into Claude behavior

Co-Authored-By: Paperclip <noreply@paperclip.ing>

* codex/claude-runner-protocol:
  fix(grok): avoid routine wakes for proactive admission (#16422)
  feat(ci): profile full CODEOWNER PR suites in Honeycomb (#16378)
  test: bound command snapshot forwarding checks (#16421)
  fix(agents): report actionable lifecycle failure steps (#16418)
This commit is contained in:
DottaandPaperclip committed 2026-10-15 07:23:22 -05:00
commit bd3ceab2b2
50 files changed
+1630 -60

No files matched your search

@@ -427,7 +427,11 @@ describe("sandbox managed runtime", () => {
const local = path.join(root, "local"), remote = path.join(root, "remote");
await mkdir(local);
await writeFile(path.join(local, "file.txt"), "before");
const capture = vi.spyOn(restoreMerge, "captureDirectorySnapshotOffThread");
const mergeDirectoryWithBaseline = restoreMerge.mergeDirectoryWithBaseline;
const capture = vi.spyOn(restoreMerge, "captureDirectorySnapshotOffThread")
.mockImplementation(restoreMerge.captureDirectorySnapshot);
const merge = vi.spyOn(restoreMerge, "mergeDirectoryWithBaseline")
.mockImplementation(input => mergeDirectoryWithBaseline({ ...input, workspaceSnapshotIsolation: undefined }));
try {
const prepared = await prepareCommandManagedRuntime({
runner: makeInlineSpawnRunner(),
@@ -442,9 +446,11 @@ describe("sandbox managed runtime", () => {
expect(await readFile(path.join(remote, "file.txt"), "utf8")).toBe("before");
await writeFile(path.join(remote, "file.txt"), "after");
await prepared.restoreWorkspace();
expect(merge).toHaveBeenCalled();
expect(merge.mock.calls.every(([input]) => input.workspaceSnapshotIsolation === isolation)).toBe(true);
expect(await readFile(path.join(local, "file.txt"), "utf8")).toBe("after");
} finally { capture.mockRestore(); }
}, 30_000);
} finally { capture.mockRestore(); merge.mockRestore(); }
});
it.each(["host_current", "adopt_remote", "durable_seed"] as const)("stages and restores both project repositories with independent Git histories (%s)", async (mode) => {
const root = await mkdtemp(path.join(os.tmpdir(), "paperclip-multi-repo-"));