#8289·zeroclaw

[Tracker]: OIDC milestone: canonical principals and inbound authentication

Author: singleriderCreated Jun 24, 2026Updated Sep 30, 2026
Labelsenhancementgatewaysecuritydomain:securitypriority:p2status:acceptedstatus:no-stalerisk:high

Current status — 2026-09-29

The core OIDC stack is merged; this remains a close-out tracker. #10248, #10255, #10259, #10263 and #10265 landed individually. #11082 merged the consolidated enrollment, gateway, private-memory and migration slices; the corresponding older slice PRs are no longer pending merges.

Recent follow-ups #11121, #11133, #11151, #11177, #11202 and #11206 also merged. The documentation close-out PR #11190 and incremental Nevis cleanup PR #11191 have merged. Remaining work includes enrollment #10592, the unresolved issue-level hardening linked below, UI/token lifecycle acceptance, and the required two-provider migration/rollback evidence. #11082's functional evidence explicitly uses a local mock IdP; it is not by itself proof of the full two-provider criterion. Keep the tracker open.


Tracker kind

roadmap / implementation tracker

Purpose

This tracker coordinates the staged implementation of #7141 for the Identity & Access: Authentication, Isolation & Authorization milestone.

The governing contract has three separate stages: an AuthProvider verifies one credential into an authenticated identity; one shared resolver maps that identity to a canonical PrincipalId and the current ZeroClaw permission profile; dispatch, gateway, session, memory, tool, and configuration boundaries enforce that principal and its effective grants. Providers do not emit a parallel authorization vocabulary, and raw IdP roles do not become grants directly.

OIDC is the headline external provider. Native pairing and local peer credentials are required compatibility paths so inbound enforcement can ship without requiring an IdP.

Current governance state: #7141 Rev 8 is accepted and the RFC issue is closed; implementation close-out continues here. #8672 is implementation evidence and a source of reusable slices, not the architecture authority or an approved single landing unit.

Scope and non-goals

Stage Status Required result Evidence / next boundary
1. Foundation seam Landed Behavior-neutral Principal, AuthProvider, registry, and contract-test groundwork #8063 and #8272 merged. The Rev 8 seam amendment (identity/grant separation, issuer+sub keying, explicit provider selection) is the first commit of #10248.
2. Canonical identity and grant resolution Core landed Canonical principals and current ZeroClaw grants #10248 merged; later integration is in #11082.
3. Native/local compatibility and RPC enforcement Core landed; follow-ups open Shared native/peercred authority and authenticated dispatch #10259 and #10263 merged; #11082 consolidated the rollout. Remaining scoped follow-ups include #11123 and #11126.
4. Principal-owned sessions and private memory Core landed; hardening open Principal-owned storage and private-memory isolation #10265 merged; #10268 was incorporated through #11082. #11127, #11197 and #11198 remain open; #8290 owns wider isolation work.
5. OIDC and gateway integration Core landed; UI/lifecycle close-out open Verification, user/service enrollment and principal-aware gateway routes #10255 merged; #10270, #10274 and #10321 were incorporated through #11082. #6250 original route-layer scope is complete. Dashboard sign-in and token-expiry/re-enrollment acceptance still need close-out.
6. Migration, recovery and end-to-end proof Partial; close-out open Truthful migration, recovery, reconnect, two-provider and rollback evidence #11082 landed the core migration path. #11190 and #11191 merged. Draft #11218 covers the complementary load-time schema retirement path; preserve #11191’s incremental-save cleanup when integrating it. Mock-IdP evidence must not be represented as the two-standards-compliant-provider close criterion.

Non-goals for this tracker:

  • Completing the local password provider in #8076, SSH-key authentication, mTLS, SCIM, or later provider extensions. They may reuse the architecture but do not block this OIDC milestone unless separately promoted.
  • Completing channel or agent-to-agent principal resolution. Those surfaces require separately reviewed boundaries.
  • Defining the runtime tool and command security-decision pipeline in #7142 or operating-system sandbox policy in #6996.
  • Landing #8672 as one combined provider, dispatcher, gateway, storage, migration, and documentation change.

Linked work

Governing contract:

  • #7141: accepted and closed governance record; implementation close-out remains tracked here

Landed foundation:

  • #8063: Principal and AuthProvider seam
  • #8272: Principal and AuthOutcome contract tests

Active implementation and delivery boundaries:

  • #9587 / #9744: authenticated webhook ingress delivered; #9744 merged and #9587 is closed, including the #8586 dispatch-centralization prerequisite
  • #8672: closed integration prototype; its core slices were delivered individually and through #11082, with attribution retained: #10248 (stage 2), #10255 (OIDC verification), #10259 + #10263 (stage 3), #10265 + #10268 (stage 4), #10270 (stage 5 enrollment), #10274 (stage 5 gateway consumption), #10275 (stage 6 close-out), #10321 (stage 5 browser PKCE + cross-surface enrollment API). The old slice PR states in this historical breakdown are superseded by the current stage table above.
  • #6250: original config/quickstart route-layer authentication acceptance delivered through #11082
  • #8290: detailed principal-isolation and per-sender-authorization rollout

Linked extensions and adjacent security work:

  • #8076: local username/password provider; accepted child extension, not a closure requirement here
  • #7142: runtime-owned tool and command security-decision pipeline
  • #6996: operating-system sandbox policy

This tracker remains part of the v0.9.0 security program in #7432 and shares the identity-and-access milestone with #8290.

OIDC production-integration prerequisites — implementation landed

The encoding implementation is present: OAuth Basic credentials are form-encoded before base64, with reserved-character unit coverage. Accepted inbound-auth configuration is validated before the production registry is published. Provider activation is no longer a future library-only step. Preserve the original proof requirement: link the reserved-character HTTP wire assertion and activation-boundary evidence during final close-out; the unit assertion alone should not be described as wire evidence. The rollout close criteria below still apply.

Routing evidence and next decision

  • Reason to stay open: this issue is the active sequencing and progress surface for the multi-PR #7141 rollout.
  • Next decision: finish the open close-out and hardening items linked in the current stage table; reconcile dashboard sign-in, token-expiry/re-enrollment and two-provider migration/rollback evidence against the shipped code. Broader gateway route sweeps are separate from the completed original #6250 scope.
  • Revisit boundary: after each stage lands, verify that the next stage still matches the ratified contract and that no combined branch has crossed more than one independently reversible security boundary.
  • Visible owner and cadence: Audacity88 is the current RFC sponsor; implementation ownership belongs on each child issue or PR. Refresh this table whenever a stage opens, merges, is replaced, or is deferred.

Close criteria

Close this tracker only when all six stages above are complete or explicitly deferred through a recorded decision, including:

  • providers verify credentials into authenticated identities without assigning runtime grants directly;
  • the shared resolver produces globally unambiguous principals and current permission-profile grants;
  • native pairing, peer credentials, RPC dispatch, and gateway routes enforce authentication by construction without unauthenticated remote fallback;
  • expiry, introspection revalidation, pairing revocation, roster changes, permission-profile changes, and reconnect continuity affect established authorization at the documented boundary;
  • sessions and private memory enforce principal ownership at their storage boundaries;
  • OIDC browser, browserless-user, and service-principal flows work end to end against at least two standards-compliant providers;
  • existing remote WSS and Nevis users have tested migration paths, and local-only recovery cannot create a remote bypass; and
  • the required implementation landed as independently reviewable and reversible security changes with truthful documentation and rollback evidence.

Password, SSH-key, mTLS, SCIM, channel identity, A2A identity, broader per-sender RBAC, and policy-administration expansion do not block closure unless a later decision explicitly promotes them into this tracker.

Stale-exemption requested?

Yes - this tracker is the active sequencing and progress surface for the #7141 rollout. Revisit the exemption when the rollout closes, is superseded, or stops representing live implementation state.