mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-29 23:56:43 +01:00
test(runner): retain isolated Linux Copilot image initialization proof
Record exact image, pack and executable digests with no credentials, network, fixture requests or model prompts. Keep Daytona Product qualification pending. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
e405de788a
commit
96a9725f34
3 files changed
+109
-4
No files matched your search
@@ -47,8 +47,9 @@ must independently verify the trusted closure digest before every launch.
|
||||
| Linux x64 | `0059754cf78c3f3bf2c9d4564dfa7e9e25f3a3f8f411f2f0cdad9363f5662748` | 169544512 | `1a675c5b54ae4d94f08718a318451e0499708ded388b4cfd98acec6b4311ccbd` |
|
||||
|
||||
All three archives were verified against the npm SHA-512 integrity value before
|
||||
hashing the executable. Archive pins are retained in the materializer. Only the
|
||||
ARM64 executable was run. The binary contains its JavaScript/native runtime and
|
||||
hashing the executable. Archive pins are retained in the materializer. The macOS
|
||||
ARM64 executable has live evidence; Linux x64 now has the initialize-only image
|
||||
proof described below. macOS x64 remains execution-unverified. The binary contains its JavaScript/native runtime and
|
||||
extracts it into `COPILOT_PKG_CACHE_HOME`; this must be a fresh per-spawn private
|
||||
lease directory, never a writable cache shared across executions. The native
|
||||
distribution verifier supplied by the foundation owns that isolation boundary.
|
||||
@@ -537,7 +538,7 @@ that the unchanged counter cannot prove zero included-credit consumption. This
|
||||
external reconciliation remains separate from unknown provider USD. No further paid prompt is
|
||||
authorized or running from this branch. The profile remains pending.
|
||||
|
||||
Final provider checks after these evidence updates pass 73 focused TypeScript
|
||||
Final provider checks after these evidence updates pass 74 focused TypeScript
|
||||
tests and 24 packaging/discovery/risk-probe tests. The discovery regressions cover
|
||||
rejecting the mutable `auto` model selector, releasing leases on early setup
|
||||
failures, and rejecting pending RPC calls immediately after native exit or
|
||||
@@ -549,3 +550,19 @@ mentioning the marker cannot satisfy the oracle. The original paid denial names
|
||||
that exact target; offline replay of its retained wire and marker observations
|
||||
passes the corrected oracle. The fixture records the original evidence and oracle
|
||||
script digests. No additional provider prompt was sent.
|
||||
|
||||
|
||||
## Linux image initialize-only proof
|
||||
|
||||
The [Linux x64 pack proof](../../packages/paperclip-runner/test/fixtures/copilot-provider-pack-linux-x64-2026-09-28.json)
|
||||
uses image `ghcr.io/paperclipai/paperclip-daytona-runner@sha256:5457769683fd310223d3b0d4f1ed9a6cf341bdb16514746b3aaeabca2e888fee`
|
||||
from the same source `8aa867b64d5fc2fd62cff110bd000addf5dc54de`. Its platform-specific
|
||||
pack digest is `sha256:b11984fe02bd5d5a36b01ed559d2f4c765663df09a46117d3092b1183be08ba4`.
|
||||
The verified executable matches the Linux pin, initializes Copilot 1.0.88/ACP 1
|
||||
with request ID 0, and exits 0 after stdin EOF. The maintained smoke script ran
|
||||
under network-none, a read-only root and private tmpfs, with no provider
|
||||
credentials and zero fixture requests or inference. Missing-token production
|
||||
preflight still rejects. Two earlier operator invocations used the wrong image
|
||||
repository or Node path and failed before provider launch; both are retained.
|
||||
This is Linux packaging evidence, not an authenticated Daytona Product run or
|
||||
model qualification. The profile remains pending.
|
||||
@@ -65,7 +65,7 @@ describe("Copilot pinned executable evidence", () => {
|
||||
expect(evidence.modelSelection.configEcho.configOptions.find((option: { id: string }) => option.id === "model").currentValue).toBe("gpt-5.6-luna");
|
||||
expect(JSON.stringify(evidence)).not.toMatch(/\/Users\/|\/tmp\/|github_pat_|gho_|sessionId|accessToken/);
|
||||
});
|
||||
it.each(["copilot-provider-pack-darwin-arm64-1.0.88.json", "copilot-provider-pack-final-2026-09-28.json"])("retains a complete packaged native launch without promoting offline proof to qualification (%s)", (name) => {
|
||||
it.each(["copilot-provider-pack-darwin-arm64-1.0.88.json", "copilot-provider-pack-final-2026-09-28.json", "copilot-provider-pack-linux-x64-2026-09-28.json"])("retains a complete packaged native launch without promoting offline proof to qualification (%s)", (name) => {
|
||||
const evidence = fixture(name);
|
||||
expect(evidence.sourceRevision).toMatch(/^[a-f0-9]{40}$/);
|
||||
expect(evidence.providerPackDigest).toMatch(/^sha256:[a-f0-9]{64}$/);
|
||||
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"schema": "paperclip.copilot-provider-pack-smoke/v1",
|
||||
"sourceRevision": "8aa867b64d5fc2fd62cff110bd000addf5dc54de",
|
||||
"providerPackDigest": "sha256:b11984fe02bd5d5a36b01ed559d2f4c765663df09a46117d3092b1183be08ba4",
|
||||
"platform": "linux",
|
||||
"architecture": "x64",
|
||||
"candidate": {
|
||||
"version": "1.0.88",
|
||||
"profileDigest": "sha256:b18c01603dd0169d233140709cfaa8bf5304a03cf5de78ca4f625f30013e8457",
|
||||
"closureDigest": "sha256:1a675c5b54ae4d94f08718a318451e0499708ded388b4cfd98acec6b4311ccbd",
|
||||
"qualification": "pending",
|
||||
"path": "provider-assets/copilot/linux-x64",
|
||||
"sha256": "sha256:e9413d46e5feeec5e7708b3092af02399319342531345fdfdccb4f0853cd87cc"
|
||||
},
|
||||
"executableSha256": "sha256:0059754cf78c3f3bf2c9d4564dfa7e9e25f3a3f8f411f2f0cdad9363f5662748",
|
||||
"registryLaunch": "verifyAcpxProfileInstallation/openCommand/spawn",
|
||||
"initializeRequestId": 0,
|
||||
"initialize": {
|
||||
"protocolVersion": 1,
|
||||
"agentCapabilities": {
|
||||
"loadSession": true,
|
||||
"mcpCapabilities": {
|
||||
"http": true,
|
||||
"sse": true
|
||||
},
|
||||
"promptCapabilities": {
|
||||
"image": true,
|
||||
"audio": false,
|
||||
"embeddedContext": true
|
||||
},
|
||||
"sessionCapabilities": {
|
||||
"close": {},
|
||||
"list": {}
|
||||
}
|
||||
},
|
||||
"agentInfo": {
|
||||
"name": "Copilot",
|
||||
"title": "Copilot",
|
||||
"version": "1.0.88"
|
||||
},
|
||||
"authMethods": [
|
||||
{
|
||||
"id": "copilot-login",
|
||||
"name": "Log in with Copilot CLI",
|
||||
"description": "Run `copilot login` in the terminal",
|
||||
"_meta": {
|
||||
"terminal-auth": {
|
||||
"command": "/fixture/verified/copilot",
|
||||
"args": [
|
||||
"login"
|
||||
],
|
||||
"label": "Copilot Login"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"missingCredentialPreflight": "COPILOT_AUTH_REQUIRED",
|
||||
"cleanExit": true,
|
||||
"inheritedCredentials": false,
|
||||
"promptSent": false,
|
||||
"networkMode": "COPILOT_OFFLINE=true; loopback metadata-only provider",
|
||||
"fixtureRequests": [],
|
||||
"protocolFixtureModel": "gpt-4.1 (not a qualified GitHub model)",
|
||||
"costUsd": 0,
|
||||
"qualification": "pending: no credential, entitlement, model execution or Daytona",
|
||||
"executionBoundary": {
|
||||
"kind": "Linux image initialize-only build proof",
|
||||
"image": "ghcr.io/paperclipai/paperclip-daytona-runner@sha256:5457769683fd310223d3b0d4f1ed9a6cf341bdb16514746b3aaeabca2e888fee",
|
||||
"network": "none",
|
||||
"rootFilesystem": "read-only",
|
||||
"writableState": "private tmpfs",
|
||||
"providerCredentials": false,
|
||||
"probeScript": "maintained copilot-provider-pack-smoke.mjs mounted read-only",
|
||||
"actualDaytonaServiceExecution": false
|
||||
},
|
||||
"originalOutputSha256": "sha256:46cfc84ce0d180fdaf5b75730683dffc65af4506bfaf8fdd07dd496186a7bec8",
|
||||
"retainedOperatorSetupFailures": [
|
||||
{
|
||||
"reason": "wrong image repository",
|
||||
"providerLaunched": false
|
||||
},
|
||||
{
|
||||
"reason": "wrong Node path",
|
||||
"providerLaunched": false
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user