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/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. * 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: () => {},