Skip to content

Commit 6022cec

Browse files
authored
Standardize on American spelling (#104)
## Summary Applies our house spelling convention (American English) to docstrings and one test comment. The docstrings ship inside the published package, so this is user-visible in the same small way a README typo is. ## Type of change - [ ] Bug fix (no breaking change) - [ ] New feature (no breaking change) - [ ] Breaking change (existing callers must update) - [x] Docs, tests, or internal maintenance only ## Public API None. No exported name, signature, wire format, or response shape changed. The edits are docstring prose plus one comment in a policy test. ## Test plan Full suite run locally: 1841 passed, 4 skipped, coverage 95.36% against the 95% floor. Ruff format and check both clean. No new tests, since no behavior changed. ## Checklist - [x] Tests cover the new behavior, and the suite passes locally - [x] Lint, format, and type checks pass - [x] Docs and README examples updated if the public surface changed - [x] No secrets, credentials, or personal data in the diff or the tests
1 parent c257e12 commit 6022cec

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

agentscore_commerce/aip/http_signature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
``Signature-Input`` / ``Signature`` dictionaries (a parenthesized inner list + integer/string
2222
params, and a single byte-sequence value). It is not a general RFC 8941 parser.
2323
24-
Byte-compatibility: this is a behaviour-exact port of the reference ``aip/http-signature.ts``.
24+
Byte-compatibility: this is a behavior-exact port of the reference ``aip/http-signature.ts``.
2525
A node/pay-signed proof-of-possession MUST verify here and vice versa. The signature base,
2626
component ordering, canonicalization, the standard (not base64url) base64 of the signature
2727
value, and the RFC 7638 thumbprint are all reproduced byte-for-byte.

agentscore_commerce/aip/jwks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
1919
Pure-ish: the only I/O is the HTTP fetch, injectable for tests via ``fetch_impl``.
2020
21-
This is a behaviour-exact port of the reference implementation; the canonicalization,
21+
This is a behavior-exact port of the reference implementation; the canonicalization,
2222
caching, and selection logic mirror that file line-for-line so an AIT verified by one SDK
2323
resolves the same key set in the other.
2424
"""
@@ -225,7 +225,7 @@ def json(self) -> Any:
225225
class JwksCache:
226226
"""JWKS resolver bound to a trusted-issuer allowlist.
227227
228-
One instance can serve many issuers; each issuer's key set is cached independently. Behaviour
228+
One instance can serve many issuers; each issuer's key set is cached independently. Behavior
229229
mirrors the reference ``JwksCache``.
230230
"""
231231

tests/test_policy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ async def test_run_gate_soft_does_not_swallow_sanctions_unavailable() -> None:
224224
@pytest.mark.asyncio
225225
async def test_run_gate_soft_does_not_swallow_signer_sanctions_error_code() -> None:
226226
# A signer-sanctions SDN deny that surfaces as a top-level error.code (not in reasons)
227-
# is still recognised as a sanctions deny and stays terminal under soft.
227+
# is still recognized as a sanctions deny and stays terminal under soft.
228228
from agentscore_commerce.identity.fastapi import _GateDenialError
229229

230230
body = {"error": {"code": "sanctions_flagged", "message": "signer on SDN list"}}

0 commit comments

Comments
 (0)