From e5ef415eeffb80c9fa377b7d7da565c46b014f89 Mon Sep 17 00:00:00 2001 From: Dotta Date: Wed, 30 Sep 2026 21:54:21 -0500 Subject: [PATCH] fix(runner): version rich tool correlation profiles Bind Cursor permission identity and Copilot semantic receipt sources across TypeScript, native admission, provider packaging, and recovery. Preserve historical v9 fixtures and pending qualification status. Co-Authored-By: Paperclip --- .../runner-copilot-capabilities.md | 24 +++++++- .../runner-cursor-capabilities.md | 12 +++- .../runner-rich-acp-capabilities.md | 14 ++++- .../runner-core/src/acpx_provider_backend.rs | 21 +++++-- .../scripts/build-copilot-distribution.mjs | 2 +- .../scripts/candidate-provider-pack.mjs | 2 +- .../backends/native-backend-factory.test.ts | 2 + .../drivers/acpx/copilot-installation.test.ts | 20 +++++-- .../drivers/acpx/cursor-installation.test.ts | 2 +- .../drivers/acpx/qualified-profiles.test.ts | 12 +++- .../src/drivers/acpx/qualified-profiles.ts | 8 +-- .../drivers/acpx/recovery-identity.test.ts | 3 + .../copilot-profile-v10-identity.json | 33 +++++++++++ .../cursor-acp/profile-v10-identity.json | 59 +++++++++++++++++++ 14 files changed, 192 insertions(+), 22 deletions(-) create mode 100644 packages/paperclip-runner/test/fixtures/copilot-profile-v10-identity.json create mode 100644 packages/paperclip-runner/test/fixtures/cursor-acp/profile-v10-identity.json diff --git a/doc/architecture/runner-copilot-capabilities.md b/doc/architecture/runner-copilot-capabilities.md index 86e9b31c68c..8c130f87c1e 100644 --- a/doc/architecture/runner-copilot-capabilities.md +++ b/doc/architecture/runner-copilot-capabilities.md @@ -1,6 +1,28 @@ # Copilot 1.0.88 rich ACP capability audit -Current source candidate (2026-09-30): **Copilot profile v9 is unqualified**. +Current source candidate (2026-10-01): **Copilot profile v10 is unqualified**. +Admitted Paperclip MCP calls append a bounded `paperclip.semantic_tool_receipt.v1` +text block after the original result blocks. It records the operation, call-ID +hash, canonical argument hash, result hash and transport outcome. An invocation +callback bound to the active turn emits matching durable evidence. Native tool +output alone is not authority: the projector requires that callback, exact +arguments and result, and one native lifecycle. It rejects foreign, late, +duplicate and conflicting receipts. Tool names and titles cannot grant a match. +`returned` does not mean accepted; a returned `accepted:false` remains a rejection. + +The native reader accepts at most 256 KiB of the complete `rawOutput`, including +its repeated text fields. Large and chunked bridge results still carry a receipt, +but output above that bound has no native correlation evidence. Error results +retain `isError`; deterministic tests cover errors, while the actual pinned +ARM64 executable has only been checked with a small two-block success response +and a local mock model. This is not paid or cross-platform qualification. +Native executable and distribution bytes are unchanged. The profile binds the +receipt, bridge and projector sources plus the complete permission-policy import +closure; retained v9 sessions are incompatible. Fresh packs and local/Daytona +qualification remain required. Completion feedback also preserves an explicitly +requested final-response format instead of overriding it with a summary request. + +Historical source candidate (2026-09-30): **Copilot profile v9 is unqualified**. Typed edit permission callbacks now put a single bounded workspace-relative target in the first canonical prompt (`Change file: path`). The same pure projector is used by both runner paths and the bounded diagnostic notice. It checks `path`, diff --git a/doc/architecture/runner-cursor-capabilities.md b/doc/architecture/runner-cursor-capabilities.md index 76934f2f250..e63e0557c91 100644 --- a/doc/architecture/runner-cursor-capabilities.md +++ b/doc/architecture/runner-cursor-capabilities.md @@ -1,6 +1,16 @@ # Cursor ACP capability inventory -Current source candidate (2026-09-30): **Cursor profile v9 is unqualified**. +Current source candidate (2026-10-01): **Cursor profile v10 is unqualified**. +Native tool IDs containing control characters now use the same bounded hash in +tool activity, permission details and correlated evidence. Safe IDs stay unchanged; +distinct native IDs stay distinct. The original ACP request and option identity +remain intact for response delivery. The declaration binds the identity helper, +permission adapter and evidence projector. Retained v9 sessions are incompatible. +The native distribution and its usage limits are unchanged. Deterministic tests +cover both permission/tool arrival orders and an unresolved real ACPX callback; +fresh local and Daytona qualification is still required. + +Historical source candidate (2026-09-30): **Cursor profile v9 is unqualified**. Its declaration binds `paperclip-cursor-usage-v4`, all three newly verified native closures and the shared ACPX patch that persists bounded diagnostic observations. Every native counter receipt remains partial with unverified semantics; it cannot diff --git a/doc/architecture/runner-rich-acp-capabilities.md b/doc/architecture/runner-rich-acp-capabilities.md index a3c0bf8e69f..9914cfabd7f 100644 --- a/doc/architecture/runner-rich-acp-capabilities.md +++ b/doc/architecture/runner-rich-acp-capabilities.md @@ -1,6 +1,18 @@ # Rich ACP integration and qualification report -Current source checkpoint (2026-09-30): **Cursor v9, Copilot v8 and Pi v10 +Current source checkpoint (2026-10-01): **Cursor v10, Copilot v10 and Pi v10 +remain unqualified**. Cursor now shares the exact opaque native tool-ID mapping +across activity and permissions. Copilot correlates native tool results with +authenticated, turn-bound semantic receipts instead of display names. Both new +profile identities reject v9 warm sessions. Their native distribution bytes +are unchanged; new sidecar assets, runner admission digests and fresh local/Daytona +qualification are required. The [Cursor](runner-cursor-capabilities.md) and +[Copilot](runner-copilot-capabilities.md) inventories describe the new contracts, +the Copilot 256 KiB output limit and the credential-free native proof scope. +Pi remains blocked on a verifiable OpenRouter spending cap. Prior paid failures +and case-specific passes remain historical; none is regraded by these fixes. + +Historical source checkpoint (2026-09-30): **Cursor v9, Copilot v8 and Pi v10 remain unqualified**. All three declarations bind shared ACPX patch SHA-256 `bd5393058a218040d217fa85449d59a6f30507de54cd645bf0ef21422823f85e`. Cursor additionally binds newly materialized `paperclip-cursor-usage-v4` closures; diff --git a/packages/paperclip-runner/runner/crates/runner-core/src/acpx_provider_backend.rs b/packages/paperclip-runner/runner/crates/runner-core/src/acpx_provider_backend.rs index 657cab463e4..c3c6dc2feba 100644 --- a/packages/paperclip-runner/runner/crates/runner-core/src/acpx_provider_backend.rs +++ b/packages/paperclip-runner/runner/crates/runner-core/src/acpx_provider_backend.rs @@ -215,7 +215,7 @@ impl AcpxProviderDescriptor { "2026.09.26-dd393fe", None, None, - "sha256:a76ad26878a3b3328154901563cbda857e53583e4e01787f35a797992ef76162", + "sha256:e4ffecec5a7d43252f7f79cd681df582492b41a40dd33c1ad1a8354a178ccddb", ), "copilot" => ( self.model.as_str(), @@ -223,7 +223,7 @@ impl AcpxProviderDescriptor { "1.0.88", None, None, - "sha256:98936d763497bd6f0e5605f52831a344f456357de58c457e440e69a1a468a2f4", + "sha256:2d501724197e00564fb8cd8ce7b0f951c32fb6c1d3bfdde2dd0531171e3db266", ), "grok" => ( "grok-4.7", @@ -2803,7 +2803,7 @@ mod tests { "cursor", "cursor-agent", "2026.09.26-dd393fe", - "sha256:a76ad26878a3b3328154901563cbda857e53583e4e01787f35a797992ef76162", + "sha256:e4ffecec5a7d43252f7f79cd681df582492b41a40dd33c1ad1a8354a178ccddb", None, None, "explicit-model", @@ -2812,7 +2812,7 @@ mod tests { "copilot", "@github/copilot", "1.0.88", - "sha256:98936d763497bd6f0e5605f52831a344f456357de58c457e440e69a1a468a2f4", + "sha256:2d501724197e00564fb8cd8ce7b0f951c32fb6c1d3bfdde2dd0531171e3db266", None, None, "explicit-model", @@ -2843,6 +2843,19 @@ mod tests { } let valid: AcpxProviderDescriptor = serde_json::from_value(value.clone()).unwrap(); valid.validate(&context()).unwrap(); + if matches!(agent, "cursor" | "copilot") { + let mut previous_v9 = value.clone(); + previous_v9["commandDigest"] = json!(match agent { + "cursor" => + "sha256:a76ad26878a3b3328154901563cbda857e53583e4e01787f35a797992ef76162", + "copilot" => + "sha256:98936d763497bd6f0e5605f52831a344f456357de58c457e440e69a1a468a2f4", + _ => unreachable!(), + }); + let previous_v9: AcpxProviderDescriptor = + serde_json::from_value(previous_v9).unwrap(); + assert!(previous_v9.validate(&context()).is_err()); + } if agent == "cursor" { let mut previous_v8 = value.clone(); previous_v8["commandDigest"] = json!( diff --git a/packages/paperclip-runner/scripts/build-copilot-distribution.mjs b/packages/paperclip-runner/scripts/build-copilot-distribution.mjs index 4a598a1846e..b7c7e632874 100644 --- a/packages/paperclip-runner/scripts/build-copilot-distribution.mjs +++ b/packages/paperclip-runner/scripts/build-copilot-distribution.mjs @@ -7,7 +7,7 @@ import { COPILOT_VERSION, materializePinnedCopilotBinary, resolveCopilotDistribu const MAX_ARCHIVE_BYTES = 128 * 1024 * 1024; const MAX_EXPANDED_BYTES = 384 * 1024 * 1024; -const PROFILE_DIGEST = "sha256:98936d763497bd6f0e5605f52831a344f456357de58c457e440e69a1a468a2f4"; +const PROFILE_DIGEST = "sha256:2d501724197e00564fb8cd8ce7b0f951c32fb6c1d3bfdde2dd0531171e3db266"; /** Build-time only; outputRoot is the exact runner-owned platform asset directory. */ export async function buildPinnedCopilotDistribution({ outputRoot, platform = process.platform, architecture = process.arch }, { fetchImpl = fetch } = {}) { diff --git a/packages/paperclip-runner/scripts/candidate-provider-pack.mjs b/packages/paperclip-runner/scripts/candidate-provider-pack.mjs index 598c9ce9915..863806e1184 100644 --- a/packages/paperclip-runner/scripts/candidate-provider-pack.mjs +++ b/packages/paperclip-runner/scripts/candidate-provider-pack.mjs @@ -28,7 +28,7 @@ export async function materializeCandidateProviderPack({ provider, outputRoot }) if (provider === "cursor") { const result = await materializePinnedCursorDistribution({ destination: outputRoot }); return { version: result.version, - profileDigest: "sha256:a76ad26878a3b3328154901563cbda857e53583e4e01787f35a797992ef76162", + profileDigest: "sha256:e4ffecec5a7d43252f7f79cd681df582492b41a40dd33c1ad1a8354a178ccddb", closureDigest: `sha256:${result.closureSha256}` }; } throw new Error(`The ${provider} candidate distribution builder is not included in this source revision`); diff --git a/packages/paperclip-runner/src/backends/native-backend-factory.test.ts b/packages/paperclip-runner/src/backends/native-backend-factory.test.ts index fafec259d1b..ff0d5f1d0fd 100644 --- a/packages/paperclip-runner/src/backends/native-backend-factory.test.ts +++ b/packages/paperclip-runner/src/backends/native-backend-factory.test.ts @@ -559,7 +559,9 @@ describe("native backend factory", () => { it.each([ ["cursor", "../../test/fixtures/cursor-acp/profile-v7-identity.json"], + ["cursor", "../../test/fixtures/cursor-acp/profile-v9-identity.json"], ["copilot", "../../test/fixtures/copilot-profile-v7-identity.json"], + ["copilot", "../../test/fixtures/copilot-profile-v9-identity.json"], ["pi", "../../test-fixtures/pi-acp/profile-v9-identity.json"], ] as const)("rejects the exact historical %s identity before runtime startup", (agent, path) => { const historical = JSON.parse(readFileSync(new URL(path, import.meta.url), "utf8")); diff --git a/packages/paperclip-runner/src/drivers/acpx/copilot-installation.test.ts b/packages/paperclip-runner/src/drivers/acpx/copilot-installation.test.ts index 8cff4072e21..b1d0a1114bc 100644 --- a/packages/paperclip-runner/src/drivers/acpx/copilot-installation.test.ts +++ b/packages/paperclip-runner/src/drivers/acpx/copilot-installation.test.ts @@ -16,6 +16,13 @@ const PERMISSION_POLICY_SOURCES = [ ["safe-locations.ts", "permissionLocationsSourceSha256"], ["../../semantic-tools/redaction.ts", "permissionRedactionSourceSha256"], ["generated-sidecar-contract.ts", "permissionClassifierSourceSha256"], + ["cursor-plan-tool-identity.ts", "permissionIdentitySourceSha256"], +] as const; + +const SEMANTIC_RECEIPT_SOURCES = [ + ["../semantic-tool-receipt.ts", "semanticReceiptSourceSha256"], + ["../runner-tool-bridge.ts", "semanticBridgeSourceSha256"], + ["copilot-tool-evidence.ts", "toolEvidenceSourceSha256"], ] as const; // Walk executable imports, not just the projector's immediate dependencies. @@ -44,11 +51,12 @@ async function permissionPolicyClosure(extraClassifierImport = false): Promise ({ verifyNativeAcpxInstallation: vi.fn() })); describe("Copilot build-owned installation", () => { - it("admits the current v9 declaration and binds its source policy/patch hashes", () => { - const identity = JSON.parse(readFileSync(new URL("../../../test/fixtures/copilot-profile-v9-identity.json", import.meta.url), "utf8")); + it("admits the current v10 declaration and binds its source policy, receipts and patch hashes", () => { + const identity = JSON.parse(readFileSync(new URL("../../../test/fixtures/copilot-profile-v10-identity.json", import.meta.url), "utf8")); expect(identity.declaration.systemInstructionDelivery).toBe(COPILOT_SYSTEM_INSTRUCTION_DELIVERY); expect(identity.declaration.sharedRuntimeContract).toBe("paperclip.acpx-runtime-contract.v1"); expect(identity.declaration.permissionContextContract).toBe(COPILOT_PERMISSION_CONTEXT_CONTRACT); + expect(identity.declaration.semanticToolReceiptContract).toBe("paperclip.semantic_tool_receipt.v1"); expect(identity.declaration.messageIdentityContract).toBe("copilot-native-message-id-v1"); expect(identity.declaration.ownedDistributionDelivery).toBe("COPILOT_CLI_DIST_DIR:lease-owned-guarded-inner-distribution:v1"); const inventory = JSON.parse(readFileSync(new URL("../../../test/fixtures/copilot-message-identity-distributions-1.0.88.json", import.meta.url), "utf8")); @@ -58,7 +66,7 @@ describe("Copilot build-owned installation", () => { expect(QUALIFIED_ACPX_PROFILES.copilot.commandDigest).toBe(identity.commandDigest); const sorted = Object.fromEntries(Object.entries(identity.declaration).sort(([a], [b]) => a.localeCompare(b))); expect(`sha256:${createHash("sha256").update(JSON.stringify(sorted)).digest("hex")}`).toBe(identity.commandDigest); - for (const [relative, field] of [...PERMISSION_POLICY_SOURCES, ["copilot-policy.ts", "policySha256"], ["../../../scripts/materialize-copilot-binary.mjs", "distributionSourceSha256"], ["../../../scripts/copilot-inner-distribution.mjs", "innerDistributionSourceSha256"], ["../../../../../patches/acpx@0.13.1.patch", "acpxPatchSha256"]]) { + for (const [relative, field] of [...PERMISSION_POLICY_SOURCES, ...SEMANTIC_RECEIPT_SOURCES, ["copilot-policy.ts", "policySha256"], ["../../../scripts/materialize-copilot-binary.mjs", "distributionSourceSha256"], ["../../../scripts/copilot-inner-distribution.mjs", "innerDistributionSourceSha256"], ["../../../../../patches/acpx@0.13.1.patch", "acpxPatchSha256"]]) { expect(createHash("sha256").update(readFileSync(new URL(relative!, import.meta.url))).digest("hex")).toBe(identity.declaration[field!]); } expect(readFileSync(new URL("../../../scripts/build-copilot-distribution.mjs", import.meta.url), "utf8")).toContain(identity.commandDigest); @@ -72,8 +80,8 @@ describe("Copilot build-owned installation", () => { const bound = new Set(PERMISSION_POLICY_SOURCES.map(([path]) => new URL(path, import.meta.url).href)); expect([...closure].filter(path => !bound.has(path))).toEqual(["negative-control:unbound-policy"]); }); - it.each(PERMISSION_POLICY_SOURCES)("changing %s changes the candidate identity", (_path, field) => { - const identity = JSON.parse(readFileSync(new URL("../../../test/fixtures/copilot-profile-v9-identity.json", import.meta.url), "utf8")); + it.each([...PERMISSION_POLICY_SOURCES, ...SEMANTIC_RECEIPT_SOURCES])("changing %s changes the candidate identity", (_path, field) => { + const identity = JSON.parse(readFileSync(new URL("../../../test/fixtures/copilot-profile-v10-identity.json", import.meta.url), "utf8")); identity.declaration[field] = "0".repeat(64); const sorted = Object.fromEntries(Object.entries(identity.declaration).sort(([a], [b]) => a.localeCompare(b))); expect(`sha256:${createHash("sha256").update(JSON.stringify(sorted)).digest("hex")}`).not.toBe(identity.commandDigest); @@ -114,7 +122,7 @@ describe("Copilot build-owned installation", () => { }); it("rejects changed profile identities before native file access", async () => { vi.mocked(verifyNativeAcpxInstallation).mockClear(); - for (const override of [{ agentServerVersion: "latest" }, { commandDigest: "sha256:untrusted" }, { commandDigest: "sha256:ed39259990cb0efda48d6105d2fa3599aac76873eb75cd80b4d0b179ce0579a6" }, { agent: "cursor" }, { agentProfileVersion: 1 }, { agentProfileVersion: 2 }, { agentProfileVersion: 3 }, { agentProfileVersion: 4 }, { agentProfileVersion: 5 }, { agentProfileVersion: 6 }, { agentProfileVersion: 7 }, { agentProfileVersion: 8 }]) { + for (const override of [{ agentServerVersion: "latest" }, { commandDigest: "sha256:untrusted" }, { commandDigest: "sha256:ed39259990cb0efda48d6105d2fa3599aac76873eb75cd80b4d0b179ce0579a6" }, { agent: "cursor" }, { agentProfileVersion: 1 }, { agentProfileVersion: 2 }, { agentProfileVersion: 3 }, { agentProfileVersion: 4 }, { agentProfileVersion: 5 }, { agentProfileVersion: 6 }, { agentProfileVersion: 7 }, { agentProfileVersion: 8 }, { agentProfileVersion: 9 }]) { await expect(verifyCopilotInstallation({ ...QUALIFIED_ACPX_PROFILES.copilot, ...override } as never)).rejects.toThrow("exact pinned"); } expect(verifyNativeAcpxInstallation).not.toHaveBeenCalled(); diff --git a/packages/paperclip-runner/src/drivers/acpx/cursor-installation.test.ts b/packages/paperclip-runner/src/drivers/acpx/cursor-installation.test.ts index 9c5b37e4c79..f9d607c78bd 100644 --- a/packages/paperclip-runner/src/drivers/acpx/cursor-installation.test.ts +++ b/packages/paperclip-runner/src/drivers/acpx/cursor-installation.test.ts @@ -22,7 +22,7 @@ it("matches build materializer pins and launches only package-owned complete dis it("rejects profile substitutions before reading any native distribution", async () => { const base = { ...QUALIFIED_ACPX_PROFILES.cursor, qualificationModel: "explicit", reportedModelId: "explicit" }; - for (const profile of [QUALIFIED_ACPX_PROFILES.cursor, { ...base, agentServerVersion: "latest" }, { ...base, commandDigest: "forged" }, { ...base, reportedModelId: "different" }, { ...base, agentProfileVersion: 7 as const }, { ...base, agentProfileVersion: 8 as const }]) { + for (const profile of [QUALIFIED_ACPX_PROFILES.cursor, { ...base, agentServerVersion: "latest" }, { ...base, commandDigest: "forged" }, { ...base, reportedModelId: "different" }, { ...base, agentProfileVersion: 7 as const }, { ...base, agentProfileVersion: 8 as const }, { ...base, agentProfileVersion: 9 as const }]) { await expect(verifyCursorInstallation(profile)).rejects.toThrow("exact pinned profile"); } }); diff --git a/packages/paperclip-runner/src/drivers/acpx/qualified-profiles.test.ts b/packages/paperclip-runner/src/drivers/acpx/qualified-profiles.test.ts index 611f44604af..28bd77a7b32 100644 --- a/packages/paperclip-runner/src/drivers/acpx/qualified-profiles.test.ts +++ b/packages/paperclip-runner/src/drivers/acpx/qualified-profiles.test.ts @@ -63,12 +63,13 @@ describe("qualified ACPX profiles", () => { }); }); -it("binds Cursor v9 to inspectable native instructions, closures and exact ACPX guard patch", () => { - const identity = JSON.parse(readFileSync(new URL("../../../test/fixtures/cursor-acp/profile-v9-identity.json", import.meta.url), "utf8")); +it("binds Cursor v10 to native instructions, tool identity, closures and the exact ACPX guard patch", () => { + const identity = JSON.parse(readFileSync(new URL("../../../test/fixtures/cursor-acp/profile-v10-identity.json", import.meta.url), "utf8")); const distribution = JSON.parse(readFileSync(new URL("../../../cursor-distributions.json", import.meta.url), "utf8")); expect(identity.declaration.distribution).toEqual(distribution); expect(identity.declaration.sharedRuntimeContract).toBe("paperclip.acpx-runtime-contract.v1"); expect(identity.declaration.nativePlanToolIdentity).toBe("request-item-id-bound-lifecycle-v1"); + expect(identity.declaration.nativePermissionToolIdentity).toBe("opaque-native-tool-id-sha256-v1"); expect(identity.declaration.sessionModeAdmission).toBe("native-config-ack-recovery-bound-v1"); expect(identity.declaration.sessionModes).toEqual(["agent", "plan", "ask"]); expect(identity.declaration.defaultSessionMode).toBe("agent"); @@ -77,4 +78,11 @@ it("binds Cursor v9 to inspectable native instructions, closures and exact ACPX expect(identity.commandDigest).toBe(`sha256:${createHash("sha256").update(JSON.stringify(identity.declaration)).digest("hex")}`); const patch = readFileSync(new URL("../../../../../patches/acpx@0.13.1.patch", import.meta.url)); expect(identity.declaration.acpxPatchSha256).toBe(createHash("sha256").update(patch).digest("hex")); + for (const [path, field] of [ + ["cursor-plan-tool-identity.ts", "toolIdentitySourceSha256"], + ["acp-permission-adapter.ts", "permissionAdapterSourceSha256"], + ["cursor-tool-evidence.ts", "toolEvidenceSourceSha256"], + ]) { + expect(identity.declaration[field!]).toBe(createHash("sha256").update(readFileSync(new URL(path!, import.meta.url))).digest("hex")); + } }); diff --git a/packages/paperclip-runner/src/drivers/acpx/qualified-profiles.ts b/packages/paperclip-runner/src/drivers/acpx/qualified-profiles.ts index 73c53cb7104..828191b8a61 100644 --- a/packages/paperclip-runner/src/drivers/acpx/qualified-profiles.ts +++ b/packages/paperclip-runner/src/drivers/acpx/qualified-profiles.ts @@ -61,10 +61,10 @@ export const QUALIFIED_ACPX_PROFILES: Readonly< }, cursor: { driverKind: ACPX_DRIVER_KIND, protocolVersion: ACPX_DRIVER_PROTOCOL_VERSION, - acpxVersion: QUALIFIED_ACPX_VERSION, agent: "cursor", agentProfileVersion: 9, + acpxVersion: QUALIFIED_ACPX_VERSION, agent: "cursor", agentProfileVersion: 10, agentServerPackage: "cursor-agent", agentServerVersion: "2026.09.26-dd393fe", agentRuntimePackage: null, agentRuntimeVersion: null, - commandDigest: "sha256:a76ad26878a3b3328154901563cbda857e53583e4e01787f35a797992ef76162", + commandDigest: "sha256:e4ffecec5a7d43252f7f79cd681df582492b41a40dd33c1ad1a8354a178ccddb", // Authenticated discovery has not established a qualification model. Never // turn this empty declaration into a default; callers must select an ID. qualificationModel: "", reportedModelId: "", permissionPolicy: "interactive", @@ -72,10 +72,10 @@ export const QUALIFIED_ACPX_PROFILES: Readonly< }, copilot: { driverKind: ACPX_DRIVER_KIND, protocolVersion: ACPX_DRIVER_PROTOCOL_VERSION, - acpxVersion: QUALIFIED_ACPX_VERSION, agent: "copilot", agentProfileVersion: 9, + acpxVersion: QUALIFIED_ACPX_VERSION, agent: "copilot", agentProfileVersion: 10, agentServerPackage: "@github/copilot", agentServerVersion: "1.0.88", agentRuntimePackage: null, agentRuntimeVersion: null, - commandDigest: "sha256:98936d763497bd6f0e5605f52831a344f456357de58c457e440e69a1a468a2f4", + commandDigest: "sha256:2d501724197e00564fb8cd8ce7b0f951c32fb6c1d3bfdde2dd0531171e3db266", // Authenticated discovery has not established a qualification model. Never // turn this empty declaration into a default; callers must select an ID. qualificationModel: "", reportedModelId: "", permissionPolicy: "interactive", diff --git a/packages/paperclip-runner/src/drivers/acpx/recovery-identity.test.ts b/packages/paperclip-runner/src/drivers/acpx/recovery-identity.test.ts index efe0d3da3f4..3dfbe319e28 100644 --- a/packages/paperclip-runner/src/drivers/acpx/recovery-identity.test.ts +++ b/packages/paperclip-runner/src/drivers/acpx/recovery-identity.test.ts @@ -29,7 +29,10 @@ describe("ACPX recovery identity", () => { it.each([ ["cursor", "../../../test/fixtures/cursor-acp/profile-v7-identity.json"], ["cursor", "../../../test/fixtures/cursor-acp/profile-v8-identity.json"], + ["cursor", "../../../test/fixtures/cursor-acp/profile-v9-identity.json"], ["copilot", "../../../test/fixtures/copilot-profile-v7-identity.json"], + ["copilot", "../../../test/fixtures/copilot-profile-v8-identity.json"], + ["copilot", "../../../test/fixtures/copilot-profile-v9-identity.json"], ["pi", "../../../test-fixtures/pi-acp/profile-v9-identity.json"], ] as const)("rejects retained %s sessions after the execution identity changes", async (agent, path) => { const fixture = await recoveryFixture(); diff --git a/packages/paperclip-runner/test/fixtures/copilot-profile-v10-identity.json b/packages/paperclip-runner/test/fixtures/copilot-profile-v10-identity.json new file mode 100644 index 00000000000..3ecc5414a84 --- /dev/null +++ b/packages/paperclip-runner/test/fixtures/copilot-profile-v10-identity.json @@ -0,0 +1,33 @@ +{ + "commandDigest": "sha256:2d501724197e00564fb8cd8ce7b0f951c32fb6c1d3bfdde2dd0531171e3db266", + "declaration": { + "schema": "paperclip.acpx_profile_declaration.v1", + "agent": "copilot", + "agentProfileVersion": 10, + "acpxVersion": "0.13.1", + "agentServerVersion": "1.0.88", + "protocolPolicyRevision": "copilot-agent-manual-v1", + "acpxPatchSha256": "bd5393058a218040d217fa85449d59a6f30507de54cd645bf0ef21422823f85e", + "policySha256": "a4be69be43db84052560420a3ca546a665c9165573c24d543eb33d144ba138a3", + "distributionSourceSha256": "c0a65e247fc47b263bd369a3d5ab505c4b323d4e6493be8a9ecbeb0e9dbb9107", + "agentFilesBinding": "registered-runtime-context-v1", + "systemInstructionDelivery": "COPILOT_HOME/copilot-instructions.md:replace-under-lifetime-lease-before-launch:v1", + "sharedRuntimeContract": "paperclip.acpx-runtime-contract.v1", + "innerDistributionSourceSha256": "9bb08347eed01f1ab44e065c8b06ead9be3a25973d6e6329dc4c0a099096279a", + "upstreamAppSha256": "7b48282a19b5b0814a0c96ad5e3a125173d792cc55f9525b2effea962f6063c0", + "patchedAppSha256": "61f8eebe0c30cc03b311c6818b2acb158a6d16ca58c8bfac5ebd42db095c2679", + "messageIdentityContract": "copilot-native-message-id-v1", + "ownedDistributionDelivery": "COPILOT_CLI_DIST_DIR:lease-owned-guarded-inner-distribution:v1", + "permissionContextContract": "copilot-edit-permission-context-v1", + "permissionContextSourceSha256": "fe1bb611bea289d81b1c7c973fbb01b93de133a7caa8fe78b7ff4ee1f485b224", + "permissionAdapterSourceSha256": "cef0777f90837bc87748de1dff5b17ab03b89e7e5df115037e82318baf4e02ff", + "permissionLocationsSourceSha256": "f39a81da395b6e23aa2a1a45572a28846e5e81bfd3d764d9a456f74a79c752e9", + "permissionRedactionSourceSha256": "687270d7bbe3dccce6c2fed8664e76cda724b43e545cb153b9f54b018de52927", + "permissionClassifierSourceSha256": "1161eabd82e26133e3b3db3ab567f65d52808b03f176e93497e02c8330349fb4", + "permissionIdentitySourceSha256": "a23ea952e6d760b2692c85c4d5bf0c620682ff2efb62ac5c2e3af0cf0d95eafc", + "semanticToolReceiptContract": "paperclip.semantic_tool_receipt.v1", + "semanticReceiptSourceSha256": "3d3d0fe5ce0e4dbfc78cf95b1bfcff4d4b3760c548e74c6c12db5bcacdd46ae2", + "semanticBridgeSourceSha256": "ab8f872344b2beb50e3f9970e0631c451a5493e66d259582ecc9a214624269b5", + "toolEvidenceSourceSha256": "f0a93aab9940051972028d6f2610b4018a5a0d6b2326b7c61b767b38442629ca" + } +} diff --git a/packages/paperclip-runner/test/fixtures/cursor-acp/profile-v10-identity.json b/packages/paperclip-runner/test/fixtures/cursor-acp/profile-v10-identity.json new file mode 100644 index 00000000000..819b3eb018e --- /dev/null +++ b/packages/paperclip-runner/test/fixtures/cursor-acp/profile-v10-identity.json @@ -0,0 +1,59 @@ +{ + "commandDigest": "sha256:e4ffecec5a7d43252f7f79cd681df582492b41a40dd33c1ad1a8354a178ccddb", + "declaration": { + "schema": "paperclip.acpx_profile_declaration.v1", + "agent": "cursor", + "agentProfileVersion": 10, + "acpxVersion": "0.13.1", + "agentServerVersion": "2026.09.26-dd393fe", + "patchVersion": "paperclip-cursor-usage-v4", + "distribution": { + "schema": "paperclip.cursor_distribution.v1", + "version": "2026.09.26-dd393fe", + "platforms": { + "darwin-arm64": { + "url": "https://downloads.cursor.com/lab/2026.09.26-dd393fe/darwin/arm64/agent-cli-package.tar.gz", + "archiveSha256": "538827d96a779bab854a865c8e42859e8e87db34b5f69770261b90fc8cfff191", + "closureSha256": "257424bd48e35412091c6adfc61e4648e836757ec1d240d890bba81a24918c30", + "executable": "node", + "entrypoint": "index.js", + "vendorClosureSha256": "77394184a89b0e7384971181da19c3c82d83a399b04e7944b3f94fe3d7e62b25" + }, + "darwin-x64": { + "url": "https://downloads.cursor.com/lab/2026.09.26-dd393fe/darwin/x64/agent-cli-package.tar.gz", + "archiveSha256": "ed1771c44cbf0f8059c67cac0d939e6a60eb730bd066d7dc4cbb14de314cfb6e", + "closureSha256": "6f28c799c5afdc64fbdff8a2157f565f17ae7615efe014ac389d63bf70cf2be2", + "executable": "node", + "entrypoint": "index.js", + "vendorClosureSha256": "7c8775160af74e5fb8d25a30e8412c1a6476b0661529078a686e5118fd1c5e5f" + }, + "linux-x64": { + "url": "https://downloads.cursor.com/lab/2026.09.26-dd393fe/linux/x64/agent-cli-package.tar.gz", + "archiveSha256": "8085fd120f5c71f4eae7fea26a043718e5644e3071e4fab3220a0e58c51f9593", + "closureSha256": "eadb8bb8ffb0450455b15b88c9b230307a9e149958a0c452d16dd157b4633d74", + "executable": "node", + "entrypoint": "index.js", + "vendorClosureSha256": "bf04ef8ea6a63191067a6b3e15139aa2c793d8419daab246aa3f0a012e1bbcd9" + } + }, + "patchVersion": "paperclip-cursor-usage-v4" + }, + "agentFilesBinding": "registered-runtime-context-v1", + "instructionBinding": "native-global-rules-v1", + "instructionAdmission": "synchronous-protocol-guard-v1", + "acpxPatchSha256": "bd5393058a218040d217fa85449d59a6f30507de54cd645bf0ef21422823f85e", + "sessionModeAdmission": "native-config-ack-recovery-bound-v1", + "sessionModes": [ + "agent", + "plan", + "ask" + ], + "defaultSessionMode": "agent", + "sharedRuntimeContract": "paperclip.acpx-runtime-contract.v1", + "nativePlanToolIdentity": "request-item-id-bound-lifecycle-v1", + "nativePermissionToolIdentity": "opaque-native-tool-id-sha256-v1", + "toolIdentitySourceSha256": "a23ea952e6d760b2692c85c4d5bf0c620682ff2efb62ac5c2e3af0cf0d95eafc", + "permissionAdapterSourceSha256": "cef0777f90837bc87748de1dff5b17ab03b89e7e5df115037e82318baf4e02ff", + "toolEvidenceSourceSha256": "8310308ed9605415cb28b7c350d83defef68e90cd30bc2f0491d3d09825e8cd9" + } +}