Skip to content

docs: publish the claim-level provider↔verifier claims contract - #14

Merged
y1o1 merged 2 commits into
developfrom
docs/claims-contract
Aug 28, 2026
Merged

docs: publish the claim-level provider↔verifier claims contract#14
y1o1 merged 2 commits into
developfrom
docs/claims-contract

Conversation

@y1o1

@y1o1 y1o1 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Closes #13 (parent: #11).

What

  • New docs/claims-contract.md (+ .ja.md twin): the claim half of the provider↔verifier JWT contract — seven crossing claims (scope/sub/azp/aud/iss/typ/exp+iat), two deliberately non-crossing ones (jti, groups), the E2E tests that pin rows executable, and the two-repo change protocol.
  • Linked from docs/architecture.md's Auth Flow section and the README (both languages).

Why an index, not a new truth

Every row consolidates mapping statements that already exist as comments in the two sibling repos and this repo's E2E suites; the doc states explicitly that where a row and the cited code disagree, the code and its tests win. Rows are anchored to stable names (collector classes, config keys) so they rot slower than line numbers.

Verification

All rows were re-verified against the current siblings before writing (provider: generateToken claim assembly, CP-12 scope normalization, D-6 azp, claimFilter groups gating; verifier: tokenAuthenticator iss/aud/typ pins + required exp, PayloadScopeCollector string-split, RequestContextAttributeCollector context channel). Docs-only change — no code or config touched.

Follow-ups (tracked in the sub-issues of #11)

🤖 Generated with Claude Code

The JWT contract between auth.provider and auth.policy-verifier was
mapped only at signature mechanics (alg/key symmetry); the claim half —
which claims cross, who writes and reads each, what each side means by
them — existed only as comments scattered across both repos and two
provider CHANGELOG asides.

docs/claims-contract.md consolidates that correspondence as an index
over the existing mapping statements: seven crossing claims (scope, sub,
azp, aud, iss, typ, exp/iat), two deliberately non-crossing ones (jti,
groups), the E2E tests that pin rows executable, and the two-repo change
protocol. Rows are anchored to stable names (collector classes, config
keys) with file paths as secondary hints.

Linked from architecture.md's Auth Flow and the README, with .ja.md
twins per docs convention.

Closes #13

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 28, 2026 12:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an umbrella-repo documentation “index” for the claim-level JWT contract between auth.provider and auth.policy-verifier, and links it from the existing architecture/README docs (both English and Japanese) so readers can find the cross-repo mapping in one place.

Changes:

  • Introduces docs/claims-contract.md (+ docs/claims-contract.ja.md) documenting which JWT claims cross the provider→verifier boundary and what they mean on each side.
  • Links the new contract doc from docs/architecture.md / .ja.md and README.md / .ja.md.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
README.md Adds link to the new claim-level contract doc.
README.ja.md Adds link to the Japanese claim-level contract doc.
docs/claims-contract.md New English claim-level provider↔verifier JWT contract documentation.
docs/claims-contract.ja.md New Japanese translation of the claims contract doc.
docs/architecture.md Links the new contract doc from the Auth Flow section.
docs/architecture.ja.md Links the new Japanese contract doc from the Auth Flow section.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/claims-contract.md Outdated
Comment thread docs/claims-contract.md Outdated
…elling

The boundary-object paragraph cited packages/... paths without saying
which sibling repo owns them — ambiguous in an umbrella doc where both
siblings have a packages/core. Paths are now repo-qualified and the
tables carry an explicit path convention. Also 'builtins collectors' →
'built-in collectors (its packages/builtins)', and 'id_tokens' → 'ID
tokens (wire name id_token)'.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@y1o1
y1o1 merged commit 34c9c6a into develop Aug 28, 2026
1 check passed
@y1o1
y1o1 deleted the docs/claims-contract branch August 28, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs] Publish the claim-level provider↔verifier claims contract — today it exists only as scattered comments and CHANGELOG asides

2 participants