Skip to content

feat(identity): compose request-context authority on credential resolution (stacked on #46) - #79

Merged
Knucklessg1 merged 5 commits into
mainfrom
feat/eg-identity-request-context-producer
Oct 8, 2026
Merged

Knucklessg1 merged 5 commits into
mainfrom
feat/eg-identity-request-context-producer

Conversation

@Knucklessg1

Copy link
Copy Markdown
Member

Stacked on #46 (feat/land-identity-operations). Draft until #46 lands; then retarget to main.

Recovers the parked Codex identity-producer work (claim codex-eg-identity-producer-01a10219). The work was uncommitted in an isolated checkout on a stale #46 base. It cherry-picks cleanly onto the current #46 head.

Change

  • PrincipalResolution<C = ()> and IdentityReply<C = ()> gain a request-context parameter.
  • The public Identity result now carries IdentityReply<RequestContextClaims>.
  • dispatch/identity_store/resolution_context.rs composes request-context claims at the live store boundary, under the write lock. A bare User::Resolve lookup cannot issue a context.

Known follow-ups

🤖 Generated with Claude Code

…ution

Recovered from the parked Codex claim codex-eg-identity-producer-01a10219
(isolated GR1080 checkout, base afcf5638). PrincipalResolution and
IdentityReply gain a request-context parameter; the public Identity result
carries RequestContextClaims composed at the live store boundary.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Knucklessg1
Knucklessg1 changed the base branch from feat/land-identity-operations to main October 8, 2026 18:23
Knucklessg1 and others added 4 commits October 8, 2026 13:23
…ter main merge

Ports the IsolationLayer::with_policy_store adapter seam from Codex 6a235113e that the resolution-context tests use. Regenerates contract artifacts with gen_contract for the changed Identity result type.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Extract locked_fixture_snapshot() so arbitrary_broker_lookup_refuses_
before_store_change and unauthorized_broker_cannot_use_subject_credential
share the bootstrapped-state + pre-mutation snapshot setup instead of
repeating it verbatim. Fixes the jscpd new-duplicate-pair gate (fragment
feba492f03a1) on PR #79; merged origin/main first (already resolved the
check-public-specs homelab-token failure in
specs/engine-identity-and-scope/test-spec.md).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Knucklessg1
Knucklessg1 marked this pull request as ready for review October 8, 2026 19:16
@Knucklessg1
Knucklessg1 merged commit 09ad783 into main Oct 8, 2026
23 checks passed
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.

1 participant