From 2c0ab45d717eb30479ed0dc52a913a3097981e47 Mon Sep 17 00:00:00 2001 From: vvillait88 Date: Thu, 17 Sep 2026 22:57:35 -0400 Subject: [PATCH 1/2] American spelling: recognize One comment in the identity policy spelled it the British way; the org rule is American spelling in prose and code alike. Comment only, so nothing published changes and no release is cut for it. --- src/identity/policy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/identity/policy.ts b/src/identity/policy.ts index 03e02a0..d7a0b44 100644 --- a/src/identity/policy.ts +++ b/src/identity/policy.ts @@ -46,7 +46,7 @@ export type IdentityStatus = 'verified' | 'unverified' | 'anonymous' | 'denied'; * `POST /v1/assess` directly is rejected with a 400 `invalid_policy`. * * That rejection is deliberate and recent. The API previously ignored a key it - * did not recognise, which meant a camelCase policy matched no rule, ran no + * did not recognize, which meant a camelCase policy matched no rule, ran no * check, and came back `decision: "allow"`, a silent pass from a compliance * gate. It now fails loudly instead, and the 400 names the correct spelling. * From 2a657201ea47e2504c7615c0e9ba7e1f3d4085db Mon Sep 17 00:00:00 2001 From: vvillait88 Date: Thu, 17 Sep 2026 23:04:15 -0400 Subject: [PATCH 2/2] American spelling in comments and test names Comments and test names only (recognize, honors); the receipt's fulfillment status values stay as the wire contract spells them. Nothing published changes and no release is cut for it. --- src/core.ts | 2 +- tests/express.test.ts | 4 ++-- tests/payment/x402_server.test.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core.ts b/src/core.ts index b2ae4c8..8470c33 100644 --- a/src/core.ts +++ b/src/core.ts @@ -936,7 +936,7 @@ export function createAgentScoreCore(options: AgentScoreCoreOptions): AgentScore if (decisionIsUnreadable) { // No decision field. Indistinguishable from a truncated or proxied - // response, so this is an INFRASTRUCTURE failure and honours the + // response, so this is an INFRASTRUCTURE failure and honors the // merchant's explicit `failOpen` choice, exactly as an unreachable API // does above. What changed is that it is no longer a silent allow for // merchants who did NOT opt into that. diff --git a/tests/express.test.ts b/tests/express.test.ts index 373bd40..b9d1cd8 100644 --- a/tests/express.test.ts +++ b/tests/express.test.ts @@ -426,7 +426,7 @@ describe('agentscoreGate middleware — a response with no decision fails closed // The merchant's explicit availability choice still applies here, exactly as // it does for an unreachable API: a missing decision is an unreadable // response, not a compliance verdict. - it('honours failOpen when the merchant opted into it', async () => { + it('honors failOpen when the merchant opted into it', async () => { mockFetchOk({ ...ALLOW_RESPONSE, decision: null }); const mw = agentscoreGate({ apiKey: API_KEY, failOpen: true }); const req = makeReq(WALLET); @@ -442,7 +442,7 @@ describe('agentscoreGate middleware — a response with no decision fails closed // decision on the API side cannot silently open the gate on old SDKs. This one // denies at 403 rather than 503: the API returned a READABLE decision that is // simply not an approval, which is a verdict rather than an infrastructure - // failure, so it is not retryable and must not honour failOpen. + // failure, so it is not retryable and must not honor failOpen. it('denies an unrecognised decision value', async () => { mockFetchOk({ ...ALLOW_RESPONSE, decision: 'review' }); const mw = agentscoreGate({ apiKey: API_KEY }); diff --git a/tests/payment/x402_server.test.ts b/tests/payment/x402_server.test.ts index bebb14c..a56b43e 100644 --- a/tests/payment/x402_server.test.ts +++ b/tests/payment/x402_server.test.ts @@ -114,7 +114,7 @@ describe('buildX402AcceptsFor402', () => { expect(accept.extra).toEqual({ name: 'USD Coin', version: '2' }); }); - it('honours scheme + maxTimeoutSeconds + extensions when supplied', async () => { + it('honors scheme + maxTimeoutSeconds + extensions when supplied', async () => { let captured: { config?: Record; extensions?: unknown } = {}; const fakeServer = { register: () => {},