@kya-os/checkpoint-shared 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/browser.d.mts +3 -2
- package/dist/browser.d.ts +3 -2
- package/dist/browser.js +1 -2
- package/dist/browser.mjs +1 -2
- package/dist/canonical-signer/index.d.mts +40 -0
- package/dist/canonical-signer/index.d.ts +40 -0
- package/dist/canonical-signer/index.js +186 -0
- package/dist/canonical-signer/index.mjs +175 -0
- package/dist/index.d.mts +480 -71
- package/dist/index.d.ts +480 -71
- package/dist/index.js +146 -117
- package/dist/index.mjs +144 -114
- package/dist/test-fixtures/index.js +0 -2
- package/dist/test-fixtures/index.mjs +0 -2
- package/package.json +6 -1
- package/dist/browser.js.map +0 -1
- package/dist/browser.mjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/test-fixtures/index.js.map +0 -1
- package/dist/test-fixtures/index.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/test-fixtures/vault-wire-contract.ts","../../src/test-fixtures/mcpi-delegation-fixture.ts"],"names":[],"mappings":";;;AAgEO,IAAM,gCAAA,GAAmC;AAAA;AAAA,EAE9C,gBAAA,EAAkB,8CAAA;AAAA;AAAA,EAElB,eAAA,EAAiB;AACnB;AAOO,IAAM,mCAAA,GAAsC;AAAA,EACjD,GAAA,EAAK,OAAA;AAAA,EACL,GAAA,EAAK,KAAA;AAAA,EACL,GAAA,EAAK;AACP;AAQO,IAAM,qCAAA,GAAwC;AAAA,EACnD,GAAA,EAAK,6BAAA;AAAA,EACL,SAAA,EAAW,sCAAA;AAAA,EACX,OAAA,EAAS,oBAAA;AAAA,EACT,QAAA,EAAU,cAAA;AAAA,EACV,SAAA,EAAW,4BAAA;AAAA,EACX,KAAA,EAAO,kBAAA;AAAA,EACP,GAAA,EAAK,UAAA;AAAA,EACL,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A,EAAa;AAAA,UACX,SAAA,EAAW,UAAA;AAAA,UACX,QAAA,EAAU,UAAA;AAAA,UACV,MAAA,EAAQ,CAAC,KAAK,CAAA;AAAA,UACd,QAAA,EAAU;AAAA,SACZ;AAAA,QACA,MAAA,EAAQ;AAAA;AACV,KACF;AAAA,IACA,gBAAA,EAAkB;AAAA,MAChB,EAAA,EAAI,4DAAA;AAAA,MACJ,IAAA,EAAM,qBAAA;AAAA,MACN,aAAA,EAAe,YAAA;AAAA,MACf,eAAA,EAAiB,IAAA;AAAA,MACjB,oBAAA,EAAsB;AAAA;AACxB,GACF;AAAA,EACA,KAAA,EAAO,sCAAA;AAAA,EACP,OAAA,EAAS,UAAA;AAAA,EACT,SAAA,EAAW;AACb;AAMO,IAAM,+BAAA,GAAkC;AAAA,EAC7C,GAAA,EAAK,OAAA;AAAA,EACL,GAAA,EAAK,KAAA;AAAA,EACL,GAAA,EAAK;AACP;AAgBO,IAAM,4BAAA,GACX","file":"index.js","sourcesContent":["/**\n * Shared test fixture for the #1532 gateway ↔ vault wire contract.\n *\n * **DO NOT IMPORT FROM PRODUCTION CODE.** This file is exposed only via\n * the `@kya-os/checkpoint-shared/test-fixtures` subpath export so\n * production bundles that import from the root package entry point\n * can't reach it — the tree-shaker has no path to these symbols unless\n * a caller explicitly imports from the test-fixtures subpath.\n *\n * ## Purpose\n *\n * #1532 spans two services that must agree byte-for-byte on:\n *\n * 1. The shape of the JWT assertion the gateway signs\n * 2. The HTTP request body the gateway POSTs to the vault endpoint\n * 3. The claims the vault endpoint extracts after verifying the JWT\n *\n * This fixture pins a known-good input/output pair that both sides'\n * unit tests import. If either side's implementation drifts from the\n * contract (wrong field order, wrong base64url encoding, wrong key\n * derivation, etc), the test against this fixture fails loudly without\n * requiring a live end-to-end test.\n *\n * The fixture values below were generated ONCE by running the gateway\n * side's `signAssertion` function against a deterministic seed + the\n * canonical claims. Ed25519 is deterministic per RFC 8032 §5.1.6, so\n * the same inputs ALWAYS produce the same signature — which is what\n * lets us commit `expectedJwt` as a string literal and assert equality\n * across both sides' test runs.\n *\n * ## Test keypair (NOT PRODUCTION)\n *\n * The private key below is 32 bytes of `0x01` — the simplest possible\n * deterministic seed. It is NOT a real private key and must NEVER be\n * used to sign any real vault assertion. Its only purpose is to produce\n * reproducible fixture bytes that both engineers can check against.\n *\n * The corresponding public key was derived via Node's\n * `createPublicKey(privateKey)` and is included here for Engineer 2's\n * vault-side verification tests — vault tests don't need to reconstruct\n * the private half, only to verify signatures against this public key.\n *\n * ## Claim fixture\n *\n * The `canonicalPayload` matches the wire contract §2.2 sample verbatim:\n * eight claims in the exact order `iss, projectId, userDid, toolName,\n * sessionId, nonce, iat, exp`. Field order is load-bearing because\n * `JSON.stringify` preserves insertion order in V8 and the resulting\n * byte sequence is what Ed25519 signs over — reordering would produce\n * a different signature, breaking cross-service determinism.\n *\n * The `iat`/`exp` timestamps are frozen at `1712975940` / `1712976000`\n * (60-second window ending 2024-04-13T01:20:00Z-ish). Tests that run\n * against this fixture must either (a) not validate `exp` against wall\n * clock time, or (b) use `vi.useFakeTimers({ now: 1712975940000 })` to\n * freeze the clock inside the fixture window.\n */\n\n/**\n * Test keypair for the wire-contract fixture. Ed25519 private seed is\n * 32 bytes of `0x01`; public key is derived from it.\n *\n * **DO NOT USE IN PRODUCTION.**\n */\nexport const VAULT_WIRE_CONTRACT_TEST_KEYPAIR = {\n /** 32 bytes of 0x01, base64-encoded. Load into the signer via `loadSigningKey`. */\n privateKeyBase64: 'AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE=',\n /** Raw 32-byte Ed25519 public key derived from the private seed, base64-encoded. */\n publicKeyBase64: 'iojj3XQJ8ZX9UtstPLpdcspnCb8dlBIb83SIAbQPb1w=',\n} as const;\n\n/**\n * The canonical JWT header both sides expect. Wire contract §2.1:\n * `alg` is `EdDSA` (NOT `Ed25519` — common mistake), `typ` is `JWT`,\n * `crv` is included for disambiguation per RFC 8037 §3.1.\n */\nexport const VAULT_WIRE_CONTRACT_EXPECTED_HEADER = {\n alg: 'EdDSA',\n typ: 'JWT',\n crv: 'Ed25519',\n} as const;\n\n/**\n * The canonical payload both sides assert against. Wire contract §2.2\n * order is load-bearing — rearranging these fields will produce a\n * different `expectedJwt` because `JSON.stringify` preserves insertion\n * order.\n */\nexport const VAULT_WIRE_CONTRACT_CANONICAL_PAYLOAD = {\n iss: 'did:web:gateway.knowthat.ai',\n projectId: '00000000-0000-0000-0000-000000000001',\n userDid: 'alice@example.test',\n toolName: 'create_issue',\n sessionId: 'gateway-oauth-test-sess-01',\n nonce: '0123456789abcdef',\n iat: 1712975940,\n exp: 1712976000,\n} as const;\n\n/**\n * The deterministic JWT produced by signing\n * {@link VAULT_WIRE_CONTRACT_CANONICAL_PAYLOAD} with the private half of\n * {@link VAULT_WIRE_CONTRACT_TEST_KEYPAIR}, via the gateway-side\n * `signAssertion` helper.\n *\n * Generated ONCE by running:\n *\n * ```\n * pnpm --filter @agentshield/gateway exec tsx -e \"...\"\n * ```\n *\n * and committed as a string literal. DO NOT regenerate this value\n * without understanding that both sides of the contract will need to\n * re-validate. If your implementation produces a different JWT for the\n * same canonical inputs, the bug is in YOUR code, not the fixture.\n *\n * Ed25519's deterministic signing property (RFC 8032 §5.1.6) is what\n * makes this string stable across runs, machines, and invocations.\n */\nexport const VAULT_WIRE_CONTRACT_EXPECTED_JWT =\n 'eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCIsImNydiI6IkVkMjU1MTkifQ.eyJpc3MiOiJkaWQ6d2ViOmdhdGV3YXkua25vd3RoYXQuYWkiLCJwcm9qZWN0SWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDEiLCJ1c2VyRGlkIjoiYWxpY2VAZXhhbXBsZS50ZXN0IiwidG9vbE5hbWUiOiJjcmVhdGVfaXNzdWUiLCJzZXNzaW9uSWQiOiJnYXRld2F5LW9hdXRoLXRlc3Qtc2Vzcy0wMSIsIm5vbmNlIjoiMDEyMzQ1Njc4OWFiY2RlZiIsImlhdCI6MTcxMjk3NTk0MCwiZXhwIjoxNzEyOTc2MDAwfQ.i-7vlvhLiohx6Qg0pXjfmllaDoZ_Fiu8KYW7vovHlQOPw9gsDrOECtM5qymv8bTf__hZKQeU8PyxBHtDusTDAg';\n\n/**\n * The expected HTTP request body the gateway sends to the vault\n * endpoint for the canonical payload. Wire contract §2.4 — all 5\n * fields are required, `assertion` is the full JWT from\n * {@link VAULT_WIRE_CONTRACT_EXPECTED_JWT}, and `userDid` MUST match\n * the assertion's `userDid` claim (the vault side rejects mismatches\n * with a 403).\n */\nexport const VAULT_WIRE_CONTRACT_EXPECTED_REQUEST_BODY = {\n userDid: 'alice@example.test',\n envVarNames: ['GITHUB_TOKEN'],\n toolName: 'create_issue',\n sessionId: 'gateway-oauth-test-sess-01',\n assertion: VAULT_WIRE_CONTRACT_EXPECTED_JWT,\n} as const;\n\n/**\n * The canonical vault endpoint URL path for the fixture's projectId.\n * Both sides use this to verify their URL construction logic. Base URL\n * is NOT included — this is the path portion only.\n *\n * Path note: the gateway's vault endpoint lives under\n * `/api/v1/gateway/vault/...`, NOT `/api/v1/vault/...`. The unprefixed\n * `/api/v1/vault/{projectId}/resolve` path is owned by the #1299\n * (VAULT-5) MCP-I worker flow, which uses `X-API-Key` auth and is\n * architecturally incompatible with #1532's Ed25519-only model per\n * #1542 Decision 1 = B. The gateway gets its own parallel namespace\n * under `/api/v1/gateway/vault/*` so the two flows can coexist\n * without the MCP-I handler needing auth-branching logic.\n *\n * See the corrected wire contract §2.4 on issue #1532.\n */\nexport const VAULT_WIRE_CONTRACT_URL_PATH =\n '/api/v1/gateway/vault/00000000-0000-0000-0000-000000000001/resolve';\n","/**\n * Shared test fixture for #1531 gateway OAuth ↔ MCP-I delegation credential contract.\n *\n * **DO NOT IMPORT FROM PRODUCTION CODE.** Exposed only via the\n * `@kya-os/checkpoint-shared/test-fixtures` subpath export.\n *\n * ## Purpose\n *\n * #1531 spans two services that must agree on the VC-JWT wire format:\n *\n * 1. Engineer 2's authorization server (Vercel) — issues the VC-JWT\n * 2. Engineer 1's gateway resolver (Fly) — verifies the VC-JWT\n *\n * This fixture pins a known-good VC-JWT that both sides' tests import.\n * If either side drifts from the contract, the test against this fixture\n * fails loudly.\n *\n * ## Test keypair (NOT PRODUCTION)\n *\n * Reuses the #1532 convention: private key is 32 bytes of `0x01`.\n * Ed25519 is deterministic (RFC 8032 §5.1.6), so same inputs always\n * produce the same signature — which is what makes the expected JWT\n * string stable across runs.\n *\n * ## VC-JWT structure\n *\n * The JWT follows the MCP-I §6.2 DelegationCredential as W3C VC pattern:\n * - Header: { alg: \"EdDSA\", typ: \"JWT\", kid: \"<issuer-key-id>\" }\n * - Payload: { iss, sub, aud, iat, exp, vc: { ... W3C VC ... }, orgId, orgSlug, sessionId }\n * - vc.credentialSubject.delegation contains the MCP-I delegation record\n * - vc.credentialStatus contains StatusList2021 revocation reference\n *\n * ## Clock note\n *\n * Timestamps are frozen at iat=1712975940 (April 2024). Tests that validate\n * expiry must use vi.useFakeTimers({ now: 1712975940000 }).\n */\n\n// ---------------------------------------------------------------------------\n// Test keypair (32 bytes of 0x01 — same convention as #1532 vault fixture)\n// ---------------------------------------------------------------------------\n\n/** Ed25519 test keypair. DO NOT USE IN PRODUCTION. */\nexport const MCPI_DELEGATION_TEST_KEYPAIR = {\n /** 32 bytes of 0x01, base64-encoded. */\n privateKeyBase64: 'AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE=',\n /** Raw 32-byte Ed25519 public key derived from the private seed, base64-encoded. */\n publicKeyBase64: 'iojj3XQJ8ZX9UtstPLpdcspnCb8dlBIb83SIAbQPb1w=',\n} as const;\n\n// ---------------------------------------------------------------------------\n// Canonical constants\n// ---------------------------------------------------------------------------\n\n/** DID of the gateway issuer (signs the VC-JWT). */\nexport const MCPI_DELEGATION_ISSUER_DID = 'did:web:gateway.knowthat.ai';\n\n/**\n * Key ID of the OAuth signing key in the DID document.\n *\n * This points at the gateway's existing `#key-1` verification\n * method — not a new `#oauth-signing-key-1` entry. Per the Option B\n * key-reuse decision on #1531, the gateway's existing Ed25519\n * keypair (already serving vault-assertion verification from\n * #1532) is reused for OAuth VC-JWT signing. The auth server reads\n * `OAUTH_SIGNING_KEY_B64` at boot (same bytes as Fly's\n * `GATEWAY_VAULT_SIGNING_KEY`) and signs with this kid, and the\n * gateway verifier looks up `#key-1` in the same `did.json`\n * document that's already live. v1.1 hardening will separate the\n * keys for blast-radius isolation without touching this fixture.\n */\nexport const MCPI_DELEGATION_ISSUER_KID = 'did:web:gateway.knowthat.ai#key-1';\n\n/** DID of the test MCP client (agent). */\nexport const MCPI_DELEGATION_AGENT_DID = 'did:key:z6MkTestAgent123';\n\n/** DID of the authorizing user. */\nexport const MCPI_DELEGATION_USER_DID = 'did:key:z6MkTestUser456';\n\n/** StatusList2021 endpoint URL. */\nexport const MCPI_DELEGATION_STATUS_LIST_URL =\n 'https://kya.vouched.id/api/v1/gateway/oauth/status-list';\n\n/** Audience claim — the gateway's HTTPS origin. */\nexport const MCPI_DELEGATION_AUDIENCE = 'https://gateway.knowthat.ai';\n\n// ---------------------------------------------------------------------------\n// Canonical payload (decoded JWT claims)\n// ---------------------------------------------------------------------------\n\n/**\n * The canonical JWT payload. Field order is load-bearing because\n * JSON.stringify preserves insertion order and Ed25519 signs over\n * the resulting bytes.\n */\nexport const MCPI_DELEGATION_CANONICAL_PAYLOAD = {\n iss: 'did:web:gateway.knowthat.ai',\n sub: 'did:key:z6MkTestAgent123',\n aud: 'https://gateway.knowthat.ai',\n iat: 1712975940,\n exp: 1712979540,\n vc: {\n '@context': [\n 'https://www.w3.org/2018/credentials/v1',\n 'https://schema.modelcontextprotocol-identity.io/xmcp-i/credentials/delegation.v1.0.0.json',\n ],\n type: ['VerifiableCredential', 'DelegationCredential'],\n issuer: 'did:web:gateway.knowthat.ai',\n issuanceDate: '2024-04-13T02:39:00.000Z',\n expirationDate: '2024-04-13T03:39:00.000Z',\n credentialSubject: {\n id: 'did:key:z6MkTestAgent123',\n delegation: {\n id: 'del-test-001',\n issuerDid: 'did:web:gateway.knowthat.ai',\n subjectDid: 'did:key:z6MkTestAgent123',\n userDid: 'did:key:z6MkTestUser456',\n userIdentifier: 'alice@vouched.id',\n scopes: ['mcp'],\n constraints: {\n notBefore: 1712975940,\n notAfter: 1712979540,\n scopes: ['mcp'],\n audience: 'https://gateway.knowthat.ai',\n },\n status: 'active',\n },\n },\n credentialStatus: {\n id: 'https://kya.vouched.id/api/v1/gateway/oauth/status-list#42',\n type: 'StatusList2021Entry',\n statusPurpose: 'revocation',\n statusListIndex: '42',\n statusListCredential: 'https://kya.vouched.id/api/v1/gateway/oauth/status-list',\n },\n },\n orgId: '00000000-0000-0000-0000-000000000010',\n orgSlug: 'test-org',\n sessionId: '00000000-0000-0000-0000-000000000020',\n} as const;\n\n// ---------------------------------------------------------------------------\n// Canonical header\n// ---------------------------------------------------------------------------\n\nexport const MCPI_DELEGATION_EXPECTED_HEADER = {\n alg: 'EdDSA',\n typ: 'JWT',\n kid: 'did:web:gateway.knowthat.ai#key-1',\n} as const;\n\n// ---------------------------------------------------------------------------\n// Expected VC-JWT (deterministic — Ed25519 + frozen claims)\n// ---------------------------------------------------------------------------\n\n/**\n * The deterministic VC-JWT produced by signing\n * {@link MCPI_DELEGATION_CANONICAL_PAYLOAD} with the private half of\n * {@link MCPI_DELEGATION_TEST_KEYPAIR}.\n *\n * Generated ONCE. DO NOT regenerate without understanding that both\n * sides of the #1531 contract will need to re-validate.\n *\n * Size: ~1.8KB — well within the 8KB HTTP header budget.\n */\nexport const MCPI_DELEGATION_EXPECTED_JWT =\n 'eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCIsImtpZCI6ImRpZDp3ZWI6Z2F0ZXdheS5rbm93dGhhdC5haSNrZXktMSJ9.eyJpc3MiOiJkaWQ6d2ViOmdhdGV3YXkua25vd3RoYXQuYWkiLCJzdWIiOiJkaWQ6a2V5Ono2T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EAAgB,kBAAA;AAAA,QAChB,MAAA,EAAQ,CAAC,KAAK,CAAA;AAAA,QACd,WAAA,EAAa;AAAA,UACX,SAAA,EAAW,UAAA;AAAA,UACX,QAAA,EAAU,UAAA;AAAA,UACV,MAAA,EAAQ,CAAC,KAAK,CAAA;AAAA,UACd,QAAA,EAAU;AAAA,SACZ;AAAA,QACA,MAAA,EAAQ;AAAA;AACV,KACF;AAAA,IACA,gBAAA,EAAkB;AAAA,MAChB,EAAA,EAAI,4DAAA;AAAA,MACJ,IAAA,EAAM,qBAAA;AAAA,MACN,aAAA,EAAe,YAAA;AAAA,MACf,eAAA,EAAiB,IAAA;AAAA,MACjB,oBAAA,EAAsB;AAAA;AACxB,GACF;AAAA,EACA,KAAA,EAAO,sCAAA;AAAA,EACP,OAAA,EAAS,UAAA;AAAA,EACT,SAAA,EAAW;AACb;AAMO,IAAM,+BAAA,GAAkC;AAAA,EAC7C,GAAA,EAAK,OAAA;AAAA,EACL,GAAA,EAAK,KAAA;AAAA,EACL,GAAA,EAAK;AACP;AAgBO,IAAM,4BAAA,GACX","file":"index.mjs","sourcesContent":["/**\n * Shared test fixture for the #1532 gateway ↔ vault wire contract.\n *\n * **DO NOT IMPORT FROM PRODUCTION CODE.** This file is exposed only via\n * the `@kya-os/checkpoint-shared/test-fixtures` subpath export so\n * production bundles that import from the root package entry point\n * can't reach it — the tree-shaker has no path to these symbols unless\n * a caller explicitly imports from the test-fixtures subpath.\n *\n * ## Purpose\n *\n * #1532 spans two services that must agree byte-for-byte on:\n *\n * 1. The shape of the JWT assertion the gateway signs\n * 2. The HTTP request body the gateway POSTs to the vault endpoint\n * 3. The claims the vault endpoint extracts after verifying the JWT\n *\n * This fixture pins a known-good input/output pair that both sides'\n * unit tests import. If either side's implementation drifts from the\n * contract (wrong field order, wrong base64url encoding, wrong key\n * derivation, etc), the test against this fixture fails loudly without\n * requiring a live end-to-end test.\n *\n * The fixture values below were generated ONCE by running the gateway\n * side's `signAssertion` function against a deterministic seed + the\n * canonical claims. Ed25519 is deterministic per RFC 8032 §5.1.6, so\n * the same inputs ALWAYS produce the same signature — which is what\n * lets us commit `expectedJwt` as a string literal and assert equality\n * across both sides' test runs.\n *\n * ## Test keypair (NOT PRODUCTION)\n *\n * The private key below is 32 bytes of `0x01` — the simplest possible\n * deterministic seed. It is NOT a real private key and must NEVER be\n * used to sign any real vault assertion. Its only purpose is to produce\n * reproducible fixture bytes that both engineers can check against.\n *\n * The corresponding public key was derived via Node's\n * `createPublicKey(privateKey)` and is included here for Engineer 2's\n * vault-side verification tests — vault tests don't need to reconstruct\n * the private half, only to verify signatures against this public key.\n *\n * ## Claim fixture\n *\n * The `canonicalPayload` matches the wire contract §2.2 sample verbatim:\n * eight claims in the exact order `iss, projectId, userDid, toolName,\n * sessionId, nonce, iat, exp`. Field order is load-bearing because\n * `JSON.stringify` preserves insertion order in V8 and the resulting\n * byte sequence is what Ed25519 signs over — reordering would produce\n * a different signature, breaking cross-service determinism.\n *\n * The `iat`/`exp` timestamps are frozen at `1712975940` / `1712976000`\n * (60-second window ending 2024-04-13T01:20:00Z-ish). Tests that run\n * against this fixture must either (a) not validate `exp` against wall\n * clock time, or (b) use `vi.useFakeTimers({ now: 1712975940000 })` to\n * freeze the clock inside the fixture window.\n */\n\n/**\n * Test keypair for the wire-contract fixture. Ed25519 private seed is\n * 32 bytes of `0x01`; public key is derived from it.\n *\n * **DO NOT USE IN PRODUCTION.**\n */\nexport const VAULT_WIRE_CONTRACT_TEST_KEYPAIR = {\n /** 32 bytes of 0x01, base64-encoded. Load into the signer via `loadSigningKey`. */\n privateKeyBase64: 'AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE=',\n /** Raw 32-byte Ed25519 public key derived from the private seed, base64-encoded. */\n publicKeyBase64: 'iojj3XQJ8ZX9UtstPLpdcspnCb8dlBIb83SIAbQPb1w=',\n} as const;\n\n/**\n * The canonical JWT header both sides expect. Wire contract §2.1:\n * `alg` is `EdDSA` (NOT `Ed25519` — common mistake), `typ` is `JWT`,\n * `crv` is included for disambiguation per RFC 8037 §3.1.\n */\nexport const VAULT_WIRE_CONTRACT_EXPECTED_HEADER = {\n alg: 'EdDSA',\n typ: 'JWT',\n crv: 'Ed25519',\n} as const;\n\n/**\n * The canonical payload both sides assert against. Wire contract §2.2\n * order is load-bearing — rearranging these fields will produce a\n * different `expectedJwt` because `JSON.stringify` preserves insertion\n * order.\n */\nexport const VAULT_WIRE_CONTRACT_CANONICAL_PAYLOAD = {\n iss: 'did:web:gateway.knowthat.ai',\n projectId: '00000000-0000-0000-0000-000000000001',\n userDid: 'alice@example.test',\n toolName: 'create_issue',\n sessionId: 'gateway-oauth-test-sess-01',\n nonce: '0123456789abcdef',\n iat: 1712975940,\n exp: 1712976000,\n} as const;\n\n/**\n * The deterministic JWT produced by signing\n * {@link VAULT_WIRE_CONTRACT_CANONICAL_PAYLOAD} with the private half of\n * {@link VAULT_WIRE_CONTRACT_TEST_KEYPAIR}, via the gateway-side\n * `signAssertion` helper.\n *\n * Generated ONCE by running:\n *\n * ```\n * pnpm --filter @agentshield/gateway exec tsx -e \"...\"\n * ```\n *\n * and committed as a string literal. DO NOT regenerate this value\n * without understanding that both sides of the contract will need to\n * re-validate. If your implementation produces a different JWT for the\n * same canonical inputs, the bug is in YOUR code, not the fixture.\n *\n * Ed25519's deterministic signing property (RFC 8032 §5.1.6) is what\n * makes this string stable across runs, machines, and invocations.\n */\nexport const VAULT_WIRE_CONTRACT_EXPECTED_JWT =\n 'eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCIsImNydiI6IkVkMjU1MTkifQ.eyJpc3MiOiJkaWQ6d2ViOmdhdGV3YXkua25vd3RoYXQuYWkiLCJwcm9qZWN0SWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDEiLCJ1c2VyRGlkIjoiYWxpY2VAZXhhbXBsZS50ZXN0IiwidG9vbE5hbWUiOiJjcmVhdGVfaXNzdWUiLCJzZXNzaW9uSWQiOiJnYXRld2F5LW9hdXRoLXRlc3Qtc2Vzcy0wMSIsIm5vbmNlIjoiMDEyMzQ1Njc4OWFiY2RlZiIsImlhdCI6MTcxMjk3NTk0MCwiZXhwIjoxNzEyOTc2MDAwfQ.i-7vlvhLiohx6Qg0pXjfmllaDoZ_Fiu8KYW7vovHlQOPw9gsDrOECtM5qymv8bTf__hZKQeU8PyxBHtDusTDAg';\n\n/**\n * The expected HTTP request body the gateway sends to the vault\n * endpoint for the canonical payload. Wire contract §2.4 — all 5\n * fields are required, `assertion` is the full JWT from\n * {@link VAULT_WIRE_CONTRACT_EXPECTED_JWT}, and `userDid` MUST match\n * the assertion's `userDid` claim (the vault side rejects mismatches\n * with a 403).\n */\nexport const VAULT_WIRE_CONTRACT_EXPECTED_REQUEST_BODY = {\n userDid: 'alice@example.test',\n envVarNames: ['GITHUB_TOKEN'],\n toolName: 'create_issue',\n sessionId: 'gateway-oauth-test-sess-01',\n assertion: VAULT_WIRE_CONTRACT_EXPECTED_JWT,\n} as const;\n\n/**\n * The canonical vault endpoint URL path for the fixture's projectId.\n * Both sides use this to verify their URL construction logic. Base URL\n * is NOT included — this is the path portion only.\n *\n * Path note: the gateway's vault endpoint lives under\n * `/api/v1/gateway/vault/...`, NOT `/api/v1/vault/...`. The unprefixed\n * `/api/v1/vault/{projectId}/resolve` path is owned by the #1299\n * (VAULT-5) MCP-I worker flow, which uses `X-API-Key` auth and is\n * architecturally incompatible with #1532's Ed25519-only model per\n * #1542 Decision 1 = B. The gateway gets its own parallel namespace\n * under `/api/v1/gateway/vault/*` so the two flows can coexist\n * without the MCP-I handler needing auth-branching logic.\n *\n * See the corrected wire contract §2.4 on issue #1532.\n */\nexport const VAULT_WIRE_CONTRACT_URL_PATH =\n '/api/v1/gateway/vault/00000000-0000-0000-0000-000000000001/resolve';\n","/**\n * Shared test fixture for #1531 gateway OAuth ↔ MCP-I delegation credential contract.\n *\n * **DO NOT IMPORT FROM PRODUCTION CODE.** Exposed only via the\n * `@kya-os/checkpoint-shared/test-fixtures` subpath export.\n *\n * ## Purpose\n *\n * #1531 spans two services that must agree on the VC-JWT wire format:\n *\n * 1. Engineer 2's authorization server (Vercel) — issues the VC-JWT\n * 2. Engineer 1's gateway resolver (Fly) — verifies the VC-JWT\n *\n * This fixture pins a known-good VC-JWT that both sides' tests import.\n * If either side drifts from the contract, the test against this fixture\n * fails loudly.\n *\n * ## Test keypair (NOT PRODUCTION)\n *\n * Reuses the #1532 convention: private key is 32 bytes of `0x01`.\n * Ed25519 is deterministic (RFC 8032 §5.1.6), so same inputs always\n * produce the same signature — which is what makes the expected JWT\n * string stable across runs.\n *\n * ## VC-JWT structure\n *\n * The JWT follows the MCP-I §6.2 DelegationCredential as W3C VC pattern:\n * - Header: { alg: \"EdDSA\", typ: \"JWT\", kid: \"<issuer-key-id>\" }\n * - Payload: { iss, sub, aud, iat, exp, vc: { ... W3C VC ... }, orgId, orgSlug, sessionId }\n * - vc.credentialSubject.delegation contains the MCP-I delegation record\n * - vc.credentialStatus contains StatusList2021 revocation reference\n *\n * ## Clock note\n *\n * Timestamps are frozen at iat=1712975940 (April 2024). Tests that validate\n * expiry must use vi.useFakeTimers({ now: 1712975940000 }).\n */\n\n// ---------------------------------------------------------------------------\n// Test keypair (32 bytes of 0x01 — same convention as #1532 vault fixture)\n// ---------------------------------------------------------------------------\n\n/** Ed25519 test keypair. DO NOT USE IN PRODUCTION. */\nexport const MCPI_DELEGATION_TEST_KEYPAIR = {\n /** 32 bytes of 0x01, base64-encoded. */\n privateKeyBase64: 'AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE=',\n /** Raw 32-byte Ed25519 public key derived from the private seed, base64-encoded. */\n publicKeyBase64: 'iojj3XQJ8ZX9UtstPLpdcspnCb8dlBIb83SIAbQPb1w=',\n} as const;\n\n// ---------------------------------------------------------------------------\n// Canonical constants\n// ---------------------------------------------------------------------------\n\n/** DID of the gateway issuer (signs the VC-JWT). */\nexport const MCPI_DELEGATION_ISSUER_DID = 'did:web:gateway.knowthat.ai';\n\n/**\n * Key ID of the OAuth signing key in the DID document.\n *\n * This points at the gateway's existing `#key-1` verification\n * method — not a new `#oauth-signing-key-1` entry. Per the Option B\n * key-reuse decision on #1531, the gateway's existing Ed25519\n * keypair (already serving vault-assertion verification from\n * #1532) is reused for OAuth VC-JWT signing. The auth server reads\n * `OAUTH_SIGNING_KEY_B64` at boot (same bytes as Fly's\n * `GATEWAY_VAULT_SIGNING_KEY`) and signs with this kid, and the\n * gateway verifier looks up `#key-1` in the same `did.json`\n * document that's already live. v1.1 hardening will separate the\n * keys for blast-radius isolation without touching this fixture.\n */\nexport const MCPI_DELEGATION_ISSUER_KID = 'did:web:gateway.knowthat.ai#key-1';\n\n/** DID of the test MCP client (agent). */\nexport const MCPI_DELEGATION_AGENT_DID = 'did:key:z6MkTestAgent123';\n\n/** DID of the authorizing user. */\nexport const MCPI_DELEGATION_USER_DID = 'did:key:z6MkTestUser456';\n\n/** StatusList2021 endpoint URL. */\nexport const MCPI_DELEGATION_STATUS_LIST_URL =\n 'https://kya.vouched.id/api/v1/gateway/oauth/status-list';\n\n/** Audience claim — the gateway's HTTPS origin. */\nexport const MCPI_DELEGATION_AUDIENCE = 'https://gateway.knowthat.ai';\n\n// ---------------------------------------------------------------------------\n// Canonical payload (decoded JWT claims)\n// ---------------------------------------------------------------------------\n\n/**\n * The canonical JWT payload. Field order is load-bearing because\n * JSON.stringify preserves insertion order and Ed25519 signs over\n * the resulting bytes.\n */\nexport const MCPI_DELEGATION_CANONICAL_PAYLOAD = {\n iss: 'did:web:gateway.knowthat.ai',\n sub: 'did:key:z6MkTestAgent123',\n aud: 'https://gateway.knowthat.ai',\n iat: 1712975940,\n exp: 1712979540,\n vc: {\n '@context': [\n 'https://www.w3.org/2018/credentials/v1',\n 'https://schema.modelcontextprotocol-identity.io/xmcp-i/credentials/delegation.v1.0.0.json',\n ],\n type: ['VerifiableCredential', 'DelegationCredential'],\n issuer: 'did:web:gateway.knowthat.ai',\n issuanceDate: '2024-04-13T02:39:00.000Z',\n expirationDate: '2024-04-13T03:39:00.000Z',\n credentialSubject: {\n id: 'did:key:z6MkTestAgent123',\n delegation: {\n id: 'del-test-001',\n issuerDid: 'did:web:gateway.knowthat.ai',\n subjectDid: 'did:key:z6MkTestAgent123',\n userDid: 'did:key:z6MkTestUser456',\n userIdentifier: 'alice@vouched.id',\n scopes: ['mcp'],\n constraints: {\n notBefore: 1712975940,\n notAfter: 1712979540,\n scopes: ['mcp'],\n audience: 'https://gateway.knowthat.ai',\n },\n status: 'active',\n },\n },\n credentialStatus: {\n id: 'https://kya.vouched.id/api/v1/gateway/oauth/status-list#42',\n type: 'StatusList2021Entry',\n statusPurpose: 'revocation',\n statusListIndex: '42',\n statusListCredential: 'https://kya.vouched.id/api/v1/gateway/oauth/status-list',\n },\n },\n orgId: '00000000-0000-0000-0000-000000000010',\n orgSlug: 'test-org',\n sessionId: '00000000-0000-0000-0000-000000000020',\n} as const;\n\n// ---------------------------------------------------------------------------\n// Canonical header\n// ---------------------------------------------------------------------------\n\nexport const MCPI_DELEGATION_EXPECTED_HEADER = {\n alg: 'EdDSA',\n typ: 'JWT',\n kid: 'did:web:gateway.knowthat.ai#key-1',\n} as const;\n\n// ---------------------------------------------------------------------------\n// Expected VC-JWT (deterministic — Ed25519 + frozen claims)\n// ---------------------------------------------------------------------------\n\n/**\n * The deterministic VC-JWT produced by signing\n * {@link MCPI_DELEGATION_CANONICAL_PAYLOAD} with the private half of\n * {@link MCPI_DELEGATION_TEST_KEYPAIR}.\n *\n * Generated ONCE. DO NOT regenerate without understanding that both\n * sides of the #1531 contract will need to re-validate.\n *\n * Size: ~1.8KB — well within the 8KB HTTP header budget.\n */\nexport const MCPI_DELEGATION_EXPECTED_JWT =\n 'eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCIsImtpZCI6ImRpZDp3ZWI6Z2F0ZXdheS5rbm93dGhhdC5haSNrZXktMSJ9.eyJpc3MiOiJ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