# Auth acceptance

Target journeys for the 16 October 2026 workforce identity contract follow. Each paragraph carries the matching clause ID and its implementation status. Use the product’s real UI, HTTP, protocol or CLI doors, real persistence and real cryptography; fakes belong only at external paid/network edges in tests. Integration acceptance additionally needs authorized provider test tenants: synthetic export fixtures do not prove a real cutover or SaaS connector. For each unfinished journey, include success, denied authority and failure/recovery end states. Employee/admin web changes are checked at 1440 and 390 with realistic employer data; native journeys run on iOS and Android. No UI or code is changed in this contract round.

Status starts at main `cdd103e1ceeeedbacf52badf7a51bfc6b18296f6`, the unchanged code-audit revision. `done` is evidence for the bounded retained clause, `partial` has the specific missing part named, and `missing` remains a build target. Referenced test files are existing evidence, not a claim they were all rerun for this document edit. The check guidance and historical implementation/conformance notes below remain applicable. Build round gr-auth-contract-1 (17 October 2026) moved AUTH-SAML-001, AUTH-SCIM-001, AUTH-OIDC-001 and AUTH-EVENTS-001 to done and AUTH-CATALOG-001, AUTH-LAUNCHER-001 and AUTH-MAPPING-001 to partial, with the evidence named in each paragraph.

## Retained identity and RER guarantees

**AUTH-HOST-001 — Issuer host (done).** Choose localhost on fresh setup; repeat with an explicit/saved issuer; enroll a passkey and link an app. Attempt a host move and require a new app-owner approval rather than preserving issuer authority.

Existing evidence and limits: tests/auth/linking.test.mjs; scripts/installer/local.mjs

**AUTH-PRIVACY-001 — Shared claims (done).** Sign in to two linked apps with different granted identity scopes; inspect UserInfo and tokens for only the permitted claims. Add a RER approval key and confirm it grants no user-data access without an ordinary app sign-in.

Existing evidence and limits: src/auth/userinfo.mjs; tests/auth/userinfo.test.mjs; tests/auth/rer-approval.test.mjs

**AUTH-RER-TRUST-001 — RER trust (done).** Link using a correctly signed RER approval, then refuse wrong issuer/origin/key/claim, stale assertion and jti replay. Withdraw trust through both supported doors and prove the key cannot be restored or used again.

Existing evidence and limits: src/auth/links/rer-trust.mjs; src/auth/links/rer-approval.mjs; tests/auth/rer-approval.test.mjs

**AUTH-IDENTITY-001 — Owner and sign-in proof (done).** Through the real email, WebAuthn and administration routes, prove same-browser one-use confirmation, first/additional enrollment, fresh local email step-up rechecked at commit, wrong-session and revoked-session refusal, and approved/delayed/canceled/emergency recovery.

Existing evidence and limits: src/auth/local-email.mjs; src/auth/recovery.mjs; tests/auth/security.test.mjs; tests/auth/fresh-proof.test.mjs; tests/auth/local-email.test.mjs; tests/auth/recovery-cli.test.mjs

**AUTH-PROTOCOL-001 — OpenID Connect profile (done).** A registered RER client completes code/PKCE/private_key_jwt, validates nonce/issuer/audience/pairwise subject, and calls scoped GET/POST UserInfo. Refuse code/assertion replay and inactive client/person/session/grant/policy; test encrypted ES256/RS256 publish-before-use and retirement.

Existing evidence and limits: src/auth/protocol.mjs; src/auth/userinfo.mjs; src/auth/keys.mjs; tests/auth/protocol.test.mjs; tests/auth/userinfo.test.mjs; tests/auth/authorization-policy.test.mjs

**AUTH-BOUNDARY-001 — Private authorization (done).** Request each private page/API signed out, as an email-only member, as a passkey administrator and with revoked authority; deny inherited Base management and production dev tokens. Remove the local dev gate and confirm authority ends.

Existing evidence and limits: src/server.ts; src/auth/index.mjs; tests/integration/http.test.mjs

**AUTH-MOVEIN-001 — Staged move-in (done).** Stage Google, Entra, Auth0, Okta and JumpCloud exports through Move-in, inspect collision/disabled rows, admit selected members without proof/roles/mail, explicitly invite, and undo only untouched admissions. Refuse former Auth0 subjects as credentials and concurrent/stale administrative authority.

Existing evidence and limits: src/auth/move-in/routes.mjs; src/auth/move-in/sources.mjs; tests/auth/move-in-staging.test.mjs; tests/auth/move-in-admission.test.mjs; tests/integration/move-in-browser.test.mjs

**AUTH-ADMIN-001 — Agent preparation (done).** Mint/renew/revoke a preparer key, inspect its allow-listed inventory, file each supported proposal and approve its exact state with a person’s passkey and fresh local email. Prove expiry, stale-state refusal, one winner under concurrent approvals and permanent loss of key authority after administrator removal.

Existing evidence and limits: src/auth/agents/keys.mjs; src/auth/agents/preparer.mjs; src/auth/agents/approval.mjs; tests/auth/agents-keys.test.mjs; tests/auth/agents-proposals.test.mjs; tests/integration/agents-browser.test.mjs

**CMD-001 — Commands (done).** Run real install/setup/dev, start browser sign-in, repeat setup without replacing owner/settings/data, stop the managed process, and generate/redeem local recovery with only a digest in D1 and a mode-0600 raw token file.

Existing evidence and limits: AUTH-COMMANDS.md; scripts/installer/local.mjs; tests/auth/recovery-cli.test.mjs

**HTTP-001 — HTTP surfaces (done).** Call health, Auth APIs and public/private documents through the emitted Worker; confirm identity interception, per-request authorization and an ordinary 404 for unknown routes.

Existing evidence and limits: src/server.ts; tests/integration/http.test.mjs; tests/runtime.mjs

**AUTH-LINK-001 — App links (done).** Use the pull/link-token flow to link a real Base app Worker, sign in, re-link with continuity, and remove it. Refuse mismatched callbacks/origins, replay/concurrent redemption, unauthorized key swap and unapproved downgrade; observe linked-app sessions end on removal.

Existing evidence and limits: src/auth/links/handshake.mjs; src/auth/links/routes.mjs; src/auth/links/versions.mjs; tests/auth/linking.test.mjs; tests/auth/agents-proposals.test.mjs

**AUTH-LOGOUT-001 — Sign-out reach (done).** Sign out everywhere, suspend a person and request RP logout through real Auth/app endpoints; the app rejects the old session and replayed logout tokens. Exercise bounded retries and inspect the persisted delivery outcome; discovery advertises the supported endpoints.

Existing evidence and limits: src/auth/links/logout.mjs; src/auth/links/end-session.mjs; tests/auth/linking.test.mjs; tests/auth/protocol.test.mjs

**AUTH-TRANSFER-001 — Export and import (done).** Export a populated installation, import into an empty installation at the same host, and re-link the app with unchanged client/sector/pairwise subject. Inspect retained records and absent authority; refuse incompatible origins and active dev personas.

Existing evidence and limits: scripts/installer/transfer.mjs; src/auth/links/grant-map.mjs; tests/auth/linking.test.mjs

## Target clauses

### The workforce directory and employee experience

**AUTH-DIRECTORY-001 — One workforce directory (done).** In People/API, onboard a W-2 employee and a contractor, rename and transfer one, preview a bulk edit, evaluate dynamic groups, suspend and rehire; verify stable identifiers, explicit source conflicts and resulting assignments without duplicate accounts.

Existing evidence and limits: src/auth/workforce/people/; tests/auth/directory.test.mjs; tests/integration/directory-browser.test.mjs — exact semantic: a person's values are kept per source (an administrator's override, the HR system, the directory feed, the employee) and the highest ranked wins; sources identify people by their own immutable id, never by email; states are invited, active, suspended, terminated, and rehire keeps the person id; groups are static or follow a rule over effective values, with manual members, explicit exclusions and owners; every edit, single or bulk, meets one planner and audit, and a bulk edit applies only against its exact preview. AUTH-ADMINAPI-001 credentials, AUTH-HRIS-001 and AUTH-SCIM-002 sources, AUTH-LIFECYCLE-001 plans and AUTH-ROLES-001 scopes inherit that planner (`directory/preview`, `directory/apply`, `directory/source`).

**AUTH-TENANCY-001 — Organizations and delegated administration (done).** Invite a contractor into two employers, switch organization, delegate one app to an app administrator and one recovery case to help desk; deny cross-organization reads/writes/exports and unauthorized role escalation, including direct API requests.

Existing evidence: `tests/auth/security.test.mjs` ("organizations isolate every existing HTTP family, admit expiring memberships and switch only between proven sessions") covers isolated stores/issuers, a contractor in two employers, explicit switching, invitation expiry/cancellation, one-app/one-case delegation and cross-employer read/write/export and role-escalation refusals. `tests/integration/directory-browser.test.mjs` contains "organization and authority journey: switch employers, delegate a scoped reset, authorize a service and erase a worker at desktop/mobile". `tests/integration/http.test.mjs` ("owner erasure fences a pre-erasure rer archive with its later journal, restores anonymous evidence and resets the local installation") additionally exercises root CLI export/import refusal around an active isolated employer and anonymous erased-namespace export. The actual archive journey passes at `64d257be` in Verify Auth `39703632411`; the 1440/390 authority journey passes at `64d257be` in Verify Auth `39703632411`. All newly created employers are isolated and installation-operated mode is not offered. Additional named organization assertions prove every installation-owner/admin family refusal and issuer/connector custody. The no-linking/proof-transfer target is tracked separately in AUTH-TENANCY-002.

**AUTH-TENANCY-002 — No cross-organization linking or proof transfer (done).** Give one person memberships in two isolated organizations with the same email and upstream subject; confirm no automatic link or match, that a passkey sign-in, step-up, recovery or approval completed in one does not satisfy the other, and that an administrator of one cannot see or act on the other membership through UI, admin API or export. Reset one organization, create a new organization with the same name, domain and people, and confirm none of the retained receipts or sealed work appears in, links to or can be retried from it.

Existing evidence: the named organization journey in `tests/auth/security.test.mjs` proves same-email memberships, independent enrollment, passkey, email step-up, recovery and agent approval, plus cross-employer UI/API/export boundaries. The protected reset journey in `tests/auth/provisioning.test.mjs` proves retained-record anti-reattachment. The same named organization journey now independently registers encrypted employer-local Google clients and positively proves identical issuer/subject/email produce separate people, with no root provider inheritance or cross-callback/session proof transfer. `docs/employer-providers.md`. No acceptance gap remains.

**AUTH-ROLES-001 — Custom administrator roles and resource sets (done).** Create a help-desk role with "reset factors" over group A and view-only over group B. As its holder, reset a factor for a person in A; be refused editing in B (view succeeds), refused on an administrator in A, and refused via direct API and export. Attempt to grant the role over a wider set and be refused; change group A's membership and observe the next decision follow it.

Existing evidence: `tests/auth/directory.test.mjs` ("scoped help desk separates view and edit, refuses privileged and out-of-group people, and follows live membership") covers custom roles, A reset/B view, edit/export/direct-door refusals, protected administrators, no wider delegation and live membership. `tests/auth/security.test.mjs` ("recovery waits 72 hours, notifies every session, supports cancellation and distinct admin approval") includes equal-rank account-administration refusals, higher-owner administration and viewing without a rank fence. `docs/administrator-roles.md` publishes built-ins, ranks and preview semantics. The 1440/390 authority journey passes at `64d257be` in Verify Auth `39703632411`; `tests/auth/agents-keys.test.mjs` ("scoped credential custodians own exact automation whose tokens and native decisions track current permissions, dynamic resources and revocation") proves scoped credential custody. Named help-desk assertions also prove chooser bounds, security/policy administration, auditor viewing and exact gain/loss previews; the named machine directory journey proves rank refusals, and the sensitive-action journey in `tests/auth/fresh-proof.test.mjs` proves every roles proof gate. Future machine role doors inherit AUTH-ADMINAPI-001; everyday decisions remain under AUTH-DECISIONS-001.

**AUTH-DOMAINS-001 — Verified employer domains (done).** Claim a domain through the admin setup door, fail an incorrect or expired challenge and competing claim, then enroll and route an eligible worker. Revoke domain ownership and confirm policy reevaluation and audited recovery access.

Existing evidence: `tests/auth/domains.test.mjs` — "domain setup refuses unproved, incorrect, expired and competing ownership; exact aliases need proof and eligible enrollment still needs individual email proof" proves admin claim, challenge refusals, competing employer, aliases, affected-person preview and enrollment; "revocation reevaluates existing sessions and enrollment while emergency owners retain audited access and can reverify" proves revocation, current policy, audited emergency access and reverification. `tests/auth/upstreams.test.mjs` — "required provider enrollment respects exact allowed domains and never supplies Auth email enrollment proof" proves eligible worker federation routing. `tests/auth/fresh-proof.test.mjs` — "every sensitive action refuses a stale local email proof without change and succeeds after a fresh confirmation" proves committing administrator authority. `tests/integration/security-settings-browser.test.mjs` — "security settings: prove and revoke employer ownership, preview affected workers, and authorize persistent notification preferences at desktop and mobile" proves setup, preview and revocation at 1440 and 390 with tooltips. Live receipt sx-auth-c-i817-dns-live: records before 3, after 3. `docs/verified-domains.md`. No acceptance gap remains.

**AUTH-PROFILE-001 — Profiles and safe identity linking (done).** Edit an employee profile and protected HR field, connect a second proven upstream and then unlink it; refuse an email collision, foreign subject, concurrent binding and last usable sign-in removal. Inspect app claims for only consented fields.

Existing evidence and limits: src/auth/profiles/; src/auth/upstreams.mjs; src/auth/userinfo.mjs; tests/auth/profile.test.mjs; tests/auth/upstreams.test.mjs; tests/integration/directory-browser.test.mjs — exact semantic: connecting is for the signed-in account (this session with a fresh local email proof, one explicit confirmation, then the provider's verified response), is single use, binds one identity per provider and refuses an address that is another person's, a subject bound elsewhere and a replay; disconnecting refuses the last usable sign-in (a required provider is the only way in for everyone but the owner). Sign-in at a provider continues to admit by the provider-verified address under domain policy (AUTH-FEDERATION-001). GitHub, Apple and generic OIDC/SAML adapters (AUTH-SOCIAL-001, AUTH-FEDERATION-001) inherit this link door.

**AUTH-ENROLLMENT-001 — Managed enrollment and password compatibility (partial).** Enroll an invited employee and an approved-domain self-registrant, reject an outside address, complete a password reset under AUTH-PASSWORD-002 and a one-use SMS/email challenge, and prove weaker methods cannot administer or bypass required MFA. Cancel enrollment and verify its outstanding links stop.

Existing evidence and limits: src/auth/email.mjs; src/auth/passkeys.mjs; tests/auth/security.test.mjs; tests/auth/registration.test.mjs — email/domain enrollment and passkeys exist; passwords and SMS do not.

**AUTH-PASSWORD-001 — Password policy per group (missing).** Assign a policy of length 12, history 24, minimum age 1 hour and lockout at 10 attempts to group A, and a policy of length 16 with symbols required and a 90-day maximum age with a 14-day warning to group B; preview the affected people. Through the web change door and a RADIUS sign-in, refuse for a person in A each of: 11 characters, a password from their history, a second change within the hour, a password containing their last name, a block-list word and a breached password; refuse a password without a symbol for B. Fail 10 attempts for A's person across web and RADIUS and see the password locked while passkey sign-in still succeeds; self-unlock under AUTH-PASSWORD-002. Age B's person's password into the warning window and past expiry, and see the warning at each surface and the forced change. Move the person from A to B and see B's rules at their next change.

Existing evidence and limits: No implementing product path or acceptance test yet.

**AUTH-PASSWORD-002 — Self-service password reset, unlock and propagation (missing).** For a person in group A with Auth push enrolled, reset a forgotten password through self-service with push, and be refused when offering email alone; unlock a locked password the same way. Within 60 seconds see the new password accepted and the old one refused at GlobalProtect RADIUS, an LDAPS bind, the WS-Trust endpoint and the Mac login in password-sync mode, and read the written-back password's change time from AD. Take the AD connector offline during a reset and see AD pending until it returns. Request a reset for an unknown address and receive the same response as for a known one; refuse a self-service reset by email alone for an administrator.

Existing evidence and limits: No implementing product path or acceptance test yet.

**AUTH-ONBOARD-001 — New-hire activation before the start date (partial).** From an HR test source, add a hire starting in 10 days with a 7-day lead time; see no invitation until 7 days before start, then the invitation at the HR personal address. Enroll a passkey and push before start; be refused app launch and token issuance until the start time, then launch. Let a second hire's link expire, reissue it and refuse the old link. Move a start date earlier and later and see the gate follow; rescind an offer and see the enrollment revoked. Confirm no message reaches the personal address after start except enabled recovery notices.

CT policy ruling, 27 October 2026: Personal-contact activation is limited to the pre-start window. Auth must not dispatch an initial activation, reissue, retry or reminder to the personal address at or after the current authorized employer-local start time. Recheck the current start time, rescission and sending authority immediately before dispatch. A lead time of zero creates no permitted personal-email activation window and grants no exception. At or after start, only employer-enabled recovery notices may use that address under their existing controls.

Before personal-contact dispatch, record the employer’s authority to use the contact for transactional onboarding and its responsibility for required notice and consent. Importing an address does not prove mailbox ownership or legal consent; opening activation proves only the personal address. The address never becomes a work sign-in identifier or administrator credential.

Preserve day-one onboarding: an unenrolled hire requires the existing temporary-access-pass path, with recorded verification, a manager request where applicable, and issuance by authorized administration or group-scoped help desk. Owner-only handling is interim and cannot satisfy this workforce promise. Existing administrator proof, role scope, enrollment restrictions and start-time access gates remain binding. This ruling removes no original acceptance obligation.

Assert one initial activation dispatch within a permitted pre-start lead window. For initial activation, explicit reissue, queued retry and reminder, assert zero activation dispatches exactly at start and after start. With lead time zero, assert zero personal activation dispatches and expose the unenrolled hire’s required temporary-pass next step. Move start earlier and later immediately before dispatch and assert the current schedule governs; rescind the offer and assert no dispatch. Refuse personal-contact dispatch without recorded employer authority. Exercise the permitted recovery-notice case separately. Complete the manager-request and scoped-help-desk temporary-pass journey, including refusal outside scope. Preserve the original HR-source, delivered-recipient, enrollment and access-gating journeys; local dispatch assertions alone do not prove them.

<!-- contract-status:AUTH-ONBOARD-001 -->
Existing evidence and limits: `tests/auth/onboarding.test.mjs` — future hire activates once at the lead boundary, enrolls with personal proof only, and obeys changed start times at protocol doors; expiry, explicit reissue, duplicate addresses and rescission never merge identities or retain enrollment authority; future-hire administration refuses missing, weak, foreign and expired authority and invalid local schedules; `tests/integration/browser.test.mjs`; `docs/onboarding.md`; `tests/auth/onboarding.test.mjs` — activation dispatch uses recorded employer authority and the current schedule at every queued transport boundary; `tests/auth/temporary-passes.test.mjs` — manager verification and scoped issuance give a one-use pass that enrolls after work email proof and ends its restricted session; temporary pass authority follows current group, manager, revocation, expiry and privileged-target protection — Administrator-created hires support unverified personal contacts, employer-local start times, bounded lead time, digest-only single-use activation, passkey enrollment, reissue and rescission. Personal activation is enrollment-only; ordinary work-address proof remains required for application access. Local scheduling and native SAML and OIDC gates are proved. HR-source ingestion and start-date qualification, authorized HR test source and verified delivery recipient, live delivered invitations and reminders, manager escalation with outbound authority, optional SMS and Persona or CLEAR checks, Auth authenticator and password enrollment, temporary-pass fallback, downstream joiner provisioning, RADIUS, desktop and every other device or network acceptance point remain unproved. Uncertain activation delivery needs explicit reissue. Zero-day lead has no pre-start activation window; late enrollment still depends on the unbuilt temporary-pass path. CT policy approval does not complete AUTH-ONBOARD-001. Zero-day and missed-window onboarding still require the unbuilt AUTH-TAP-001 fallback and its scoped issuance and refusal proof. Recorded personal-contact authority, required notice and consent handling, dispatch-boundary proofs for initial activation, reissue, retry and reminder, and live recipient proof remain unestablished. Mail accepted by a provider before start may arrive afterward; the original delivered-message acceptance sentence remains unproved, including that in-flight delivery boundary. The strict cutoff is interim and does not remove day-one onboarding or any existing acceptance obligation. Native contact-authority recording, dispatch-boundary refusals for initial sends and explicit reissues, retries and reminders, and hosted manager-requested scoped temporary-pass enrollment are implemented; the complete AUTH-TAP-001 obligation, live recipient delivery and in-flight provider boundary remain open.
<!-- /contract-status -->

**AUTH-TAP-001 — Temporary access pass (partial).** As help desk scoped to a new hire's group, record manager attestation and issue a pass. At a fresh Mac's login window (Platform SSO) and at a fresh Windows PC, sign in with it, create the local account and enroll a passkey. Refuse the pass on reuse, after expiry, at an app launch, at app MFA step-up and at GlobalProtect RADIUS. Refuse issuance without a recorded verification, outside the issuer's scope and for an administrator. Inspect the audit trail and the notices.

<!-- contract-status:AUTH-TAP-001 -->
Existing evidence and limits: `tests/auth/temporary-passes.test.mjs` — manager verification and scoped issuance give a one-use pass that enrolls after work email proof and ends its restricted session; temporary pass authority follows current group, manager, revocation, expiry and privileged-target protection; `tests/integration/browser.test.mjs` — real Auth pages, via temporaryPassJourney in `tests/integration/helpers/temporary-pass-journey.mjs` — Native onboarding-only manager attestation, scoped issuance, digest-only custody, hosted redemption, real work-email confirmation and passkey enrollment are implemented. Group lifetime policy, optional reusable passes, scheduled validity, remaining-factor and identity-provider verification, general recovery targets, desktop login and local account creation, RADIUS refusal, and employee and manager notices remain unproved.
<!-- /contract-status -->

**AUTH-EXPERIENCE-001 — Hosted and embedded identity journeys (partial).** Configure branding and an employee journey, use both hosted and embedded account/membership screens, preview a changed MFA step and roll it back. At 1440 and 390, in light/dark with keyboard and assistive technology, complete sign-in/recovery and expose durable errors without leaking hidden fields.

Existing evidence and limits: src/ui/pages/signin.ts; src/ui/pages/account.ts; tests/integration/browser.test.mjs — hosted responsive pages exist; branding controls, embedded components and journey orchestration are missing.

**AUTH-LOCALE-001 — End-user display languages (missing).** Set a person's language to Spanish and complete activation, sign-in, push approval with number matching, password reset, the launcher, an extension fill and the Mac login window entirely in Spanish; receive the new-device and password-changed notices in Spanish. On the sign-in page switch to Arabic and complete sign-in at 390 in right-to-left layout. Leave an employer notification template in English only and see the English fallback used and flagged in preview. A build check fails when any end-user string key is missing from a supported language.

Existing evidence and limits: src/ui/shell.ts; src/ui/pages/signin.ts — every page renders English only (`lang="en"`); language selection, translations and per-language employer text are missing.

**AUTH-LAUNCHER-001 — Employee app launcher (partial).** As an employee with Google Workspace, Slack, AWS, a password-only app and a RER app assigned, launch each into its proper account. Request an unassigned app, remove an assignment and expire a temporary grant; the dashboard, the extension and direct launch all enforce the changed access. Assign a bookmark tile to a group and see it only for members.

Existing evidence and limits: `tests/auth/saml.test.mjs`, "launcher preferences never grant access" proves bookmark membership, preference isolation across restart, blocked provisioning states, temporary expiry and stale-favorite refusal; `tests/auth/oidc-apps.test.mjs`, "wrong, mismatched and rotated-out secrets" proves native authorization and pre-expiry code refusal after the grant expires; `tests/integration/company-apps-browser.test.mjs`, "company apps journey" proves search, favorites, recent opens, request links, group removal and protocol refusal at 1440 and 390 in both themes. Existing `requestDecisionsFlow` and the published-role reduction journey retain decision and denial coverage. Native search, per-person durable favorites and recent opens, request links using the existing passkey decision flow, group-only credential-free bookmarks, and denied, expired, unprovisioned and connector-blocked explanations are implemented. Shared native assignment checks refuse removed and expired temporary grants at SAML launch and OIDC authorization and token issuance; saved preferences confer no access. Held: password-app tiles and extension fill and enforcement need the browser-extension release; RER tiles need the Base local link and Spool owner-link path; the complete five-app journey needs authorized Google Workspace, Slack and AWS tenants and a password-app account. Native protocol peers do not establish vendor or extension qualification.

**AUTH-SWA-001 — Password-based app sign-in (missing).** Install the extension in each of the four browsers, and force-install it preconfigured through Intune on Windows and Jamf Pro on macOS, assign a shared-credential and an individual-credential app, sign in from the launcher and by direct visit, generate a password and refuse fill on a lookalike origin. Unassign one employee and offboard another; their next fill is refused within 60 seconds, the shared password is rotated, and the audit shows every reveal, fill and rotation without the secret. Import an Okta SWA app definition and launch it.

Existing evidence and limits: No implementing product path or acceptance test yet.

### Authentication, SSO and policy

**AUTH-MFA-001 — Passkey-first multifactor policy (partial).** Enroll a platform passkey, hardware key, Auth push and TOTP, require step-up for a sensitive app, revoke a lost factor and consume a recovery code once. Deny downgraded admin access and prove factor removal/rotation reaches current sessions according to policy.

<!-- contract-status:AUTH-MFA-001 -->
Existing evidence and limits: `tests/auth/security.test.mjs`: native TOTP enrollment protects secrets, refuses replay and preserves administrator assurance; lost-factor removal ends current sessions and preserves a replacement passkey; single-use recovery codes rotate, refuse foreign or privileged use and end after replacement enrollment; sensitive app factor policy rechecks assurance at authorization and token issuance. `tests/auth/local-email.test.mjs` retains fresh-email gates. `tests/integration/security-settings-browser.test.mjs`: native multifactor settings enroll TOTP, publish app assurance and end sessions on factor loss or code rotation. — Native web TOTP, digest-only single-use recovery codes, factor inventory and lost-factor revocation, app assurance and current-session revocation built. Conservative native default: only the owner with passkey and fresh email configures app assurance; TOTP never grants administration; recovery codes require fresh email, refuse every active delegated role and permit only replacement enrollment for members; factor removal and code rotation end all Auth sessions. Scoped factor-policy delegation and broader assurance policy await ct. Real Auth push and native authenticator TOTP need AUTH-AUTHENTICATOR-001 devices and gr signing; RADIUS and OS-login assurance need AUTH-LEGACY-001 and AUTH-DESKTOP-001. Live notification delivery, mobile and desktop inventory and revocation, and same-business-day lost-factor recovery remain unproved under AUTH-NOTIFY-001 and AUTH-RECOVERY-003.
<!-- /contract-status -->

**AUTH-AUTHENTICATOR-001 — Push authenticator in the Auth mobile app (missing).** On real iOS and Android builds, enroll the authenticator, approve a web sign-in with number matching, deny another and see it refused and reported, and complete a sign-in with the app's offline TOTP. Replay an approval, answer after expiry and answer from a second unenrolled device; each is refused. Send repeated pushes and observe the fatigue control; remove the device and prove its next approval is refused.

Existing evidence and limits: No implementing product path or acceptance test yet.

**AUTH-POLICY-001 — Conditional access and session policy (partial).** Preview and publish a payroll-app rule requiring a managed US device and fresh passkey; attempt allowed, foreign-network, stale-posture and expired-session launches through app and direct protocol routes. Add an AUTH-RISK-001 "step up on new country" condition and see a new-country sign-in stepped up with the signal named in the decision. Change group/policy during sign-in and verify the current decision at token issuance.

Existing evidence and limits: src/auth/domain-policy.mjs; src/auth/authorization-login.mjs; tests/auth/authorization-policy.test.mjs; tests/auth/upstreams.test.mjs — current domain, session and prompt/max-age checks exist; general device/location/risk engine is missing. Future machine administration doors inherit AUTH-ADMINAPI-001 credential, scope/resource, excluded-action, live-authority, audit and concurrency checks before shipping.

**AUTH-ABUSE-001 — Automated attack protection (partial).** Attack real authentication/reset/token HTTP doors with bot traffic, password spraying, a breached password and distributed source attempts; observe rate limits/lockouts, protected notifications and legitimate recovery. Sign in through a Tor exit and from a location implying impossible travel, and verify step-up or denial with the AUTH-RISK-001 signal named in an explainable log.

Existing evidence and limits: `tests/auth/abuse.test.mjs` — “attack configuration requires live administrator hardware and fresh email authority at commit” proves configuration protection including email proof expiring or hardware authority changing at the committing statement; “native attack doors enforce durable burst and distributed budgets without trusting forwarding headers or leaking employers” proves burst, distributed attempts, restart, trusted source selection, employer isolation and non-sliding cooldowns; “email responses stay uniform under distributed traffic and every native authentication family refuses excess attempts” and “proved emergency recovery survives anonymous exhaustion and retains one-use proof” prove uniform replies, native door refusals and single-use emergency recovery. `tests/auth/protocol.test.mjs` — “token attack budgets isolate registered clients, survive restart and release the original valid grant after cooldown” proves client isolation and successful token issuance after cooldown. `tests/integration/security-settings-browser.test.mjs` — “attack protection settings persist, explain refusal and preserve proved recovery at desktop and mobile” proves configuration, refusal and recovery screens, with screenshots at 1440 and 390. Tenant-scoped configurable native throttling is proven for email, WebAuthn, recovery and token requests, with durable aggregate and source budgets, bounded cooldowns, explained refusal audit and commit-time administrator hardware and fresh-email protection. Tor-exit and impossible-travel proof awaits AUTH-RISK-001 and licensed MaxMind feeds; password spraying, breached-password screening, lockout and unlock await AUTH-PASSWORD-001 and AUTH-PASSWORD-002; remaining bot-challenge controls and protected notifications under AUTH-NOTIFY-001 remain unproved.

**AUTH-RISK-001 — Named sign-in behavior signals (missing).** Publish "step up on new country, allow new city, deny Tor" for a group. Sign in from a known location and pass; from a new US city and pass with "new city" logged; from a new country and be stepped up; from a location implying 900 km/h travel since the previous sign-in and be stepped up with velocity logged; through a Tor exit and be denied. Change the radius and look-back and see the next decision follow them. Each decision log names the signal, its value and the feed version. Simulate the draft rule over 30 days of history and see per-signal counts.

Existing evidence and limits: No implementing product path or acceptance test yet.

**AUTH-NOTIFY-001 — Employee security notifications and suspicious-activity reports (partial).** Sign in from a new browser and receive the new-device email with its stated context. Enroll a factor, have help desk reset a factor and change a password, and receive each notification. From the new-device email, while signed out, click "Report suspicious activity": see the security owner's escalation in Slack and, under the end-sessions policy, the person's sessions ended and a linked app's back-channel logout delivered. Refuse the report link's reuse and use after expiry. Turn off new-device notices and receive none; try to turn off recovery notices and be refused.

<!-- contract-status:AUTH-NOTIFY-001 -->
Existing evidence and limits: `tests/auth/notifications.test.mjs` — "security notifications report suspicious activity, escalate once and end sessions and refresh grants with back-channel logout" proves contextual new-device email, bound app context, signed-out one-use report, linked event stream and Activity, Slack escalation, follow-up, Auth session and refresh ending, and native app back-channel delivery. "security notice preferences retain mandatory recovery and factor notices, and report links refuse forgery, cross-employer use and expiry" proves factor enrollment, scoped help-desk reset, recovery cancellation, role notices, optional new-device off, mandatory recovery off refusal, signature, issuer and expiry. `tests/auth/fresh-proof.test.mjs` — "every sensitive action refuses a stale local email proof without change and succeeds after a fresh confirmation" proves policy consent authority. `tests/integration/security-settings-browser.test.mjs` — "security settings: prove and revoke employer ownership, preview affected workers, and authorize persistent notification preferences at desktop and mobile" proves preference and report states at 1440 and 390 with tooltips. Live receipt sx-auth-c-i817-notifications-live: 6 messages accepted and received; received report escalated to the configured fleet Slack destination, ended sessions and refused reuse. `docs/security-notifications.md`. `tests/auth/notifications-flow.mjs` (roleGrantNotices, within the mandatory-notice test): built-in and custom scoped grants, atomic rollback, lost commit response, concurrent restart maintenance, verified-address refusal, failed and uncertain delivery, employer isolation, erasure and signed-out single-use reporting. `tests/auth/fresh-proof.test.mjs` extends the sensitive-action proof to scoped grants. `tests/integration/directory-browser.test.mjs` (organization and authority journey): explicit custom grant, gated outbox, signed-out report and replay screens at 1440 and 390 in both themes. — Push notices depend on AUTH-AUTHENTICATOR-001. Password-changed and password-lockout notices depend on AUTH-PASSWORD-001; temporary access pass notice coverage remains under AUTH-TAP-001. Explicit scoped grants now atomically retain required email intents bound to the operation and verified work address, including before setup; failed or uncertain attempts remain actionable without automatic resend. Remaining: every role-grant path outside this existing explicit action, remaining factor-removal and other unbuilt event doors, required-notice intents before setup at those doors, connected SaaS session revocation under AUTH-LOGOUT-002, additional report responses, Oncall escalation and configured SIEM qualification. RL-104 approves explicit verified channel configuration and separate audited Slack and destructive-response consent; mandatory types cannot be disabled after setup, and existing recovery notices continue. Live delivery qualification of this scoped-grant path remains unproved.
<!-- /contract-status -->


**AUTH-LOGOUT-002 — Universal logout from connected SaaS for a compromised account (partial).** In authorized Google Workspace, Microsoft 365, Slack Enterprise Grid, Zoom and Salesforce test tenants, sign a person in to each through Auth on the web and in each vendor's desktop or mobile client. From a new-device notice, report suspicious activity under the end-sessions policy: within 60 seconds the person's Auth sessions and a linked app's session end; within 5 minutes each vendor's API shows the sessions or tokens revoked, and each web and client session is refused at its next request, while the person stays active and signs in again with a passkey. Repeat from help desk's End all sessions action and be refused outside the holder's scope. An app with no revocation API is shown as unsupported with its manual step, and a vendor failure stays an open obligation.

Existing evidence and limits: src/auth/links/logout.mjs; src/auth/index.mjs; tests/auth/linking.test.mjs — Sign out everywhere ends the person's own Auth sessions and signs them out of linked RER apps by back-channel logout; ending another person's sessions, report and risk triggers, and vendor-API revocation in SaaS apps are missing.

**AUTH-SAML-001 — SAML 2.0 workforce identity provider (done).** Configure a generic SAML SP through the admin door, launch as an assigned employee over each binding, validate mapped role/NameID in each of the four formats, sign the response, the assertion and both with SHA-256 and SHA-512, decrypt an encrypted assertion with each named algorithm at the SP, and roll certificates with overlap. Complete SP- and IdP-initiated logout over both bindings. Refuse a forged request, altered ACS, wrong audience, SHA-1 without an exception, stale/replayed assertion and unassigned user.

Existing evidence and limits: src/auth/saml/; src/auth/workforce/routes.mjs; tests/auth/saml.test.mjs; tests/integration/company-apps-browser.test.mjs — an independent SAML service provider library (node-saml with xml-crypto and xml-encryption) validates every response: SP- and IdP-initiated sign-in, Redirect and POST bindings, the four NameID formats, response/assertion/both signatures with RSA-SHA256 and RSA-SHA512, AES-256-GCM and AES-128-CBC encryption with RSA-OAEP, SP- and IdP-initiated single logout over both bindings, certificate rollover with overlap, and refusal of forged, SHA-1 without the named exception, replayed, stale, misaddressed and unassigned requests. Limits: attributes use fixed directory sources or versioned expressions (AUTH-MAPPING-001); metadata is pasted, not fetched by URL; RequestedAuthnContext is not interpreted.

**AUTH-OIDC-001 — General SaaS OIDC and OAuth profiles (done).** Register confidential SaaS clients with each of `client_secret_basic`, `client_secret_post` and `private_key_jwt`, and a public native client with `none` plus PKCE, through the catalog/API; complete code flows and logout for each and rotate a secret with overlap. Refuse a wrong or rotated-out secret, a public client without PKCE, redirect substitution, token substitution, code replay and unsupported grants. Re-run the strict RER journey unchanged and inspect each connection’s advertised profile.

Existing evidence and limits: src/auth/oidc-apps/; src/auth/protocol.mjs; src/auth/links/end-session.mjs; tests/auth/oidc-apps.test.mjs; tests/integration/company-apps-browser.test.mjs; COMPANY-APPS.md — openid-client (a certified relying party library) completes the code flow with client_secret_basic, client_secret_post, private_key_jwt and a public native client with none and PKCE, reads UserInfo, validates the opt-in implicit and hybrid flows, and follows RP-initiated logout with front-channel frames and signed back-channel logout tokens; secrets are 256-bit, shown once, stored as digests and rotated with an overlap; wrong, mismatched and rotated-out secrets, public clients without PKCE, redirect and code substitution, code replay, unsupported grants and unassigned people are refused; per-app pairwise or public subjects and mapped claims; the strict RER profile and its tests are unchanged apart from discovery listing the general methods and the fragment response mode. Limit: a fresh install signs only with keys published five minutes earlier.

**AUTH-MAPPING-001 — Attribute and NameID transform language (done).** Through the app setup door, map NameID to a computed `first.last` value with a collision suffix, map a role from group membership and push a formatted date over SCIM; preview against three people including one with a missing field, then launch and provision and read the values back at the SP and SCIM service. Refuse an expression that reads a secret, calls out or exceeds the time bound; roll back to the previous version.

Existing evidence: `tests/auth/saml.test.mjs` ("app setup previews typed mappings for three people, launches computed collision-safe NameID and group role, provisions formatted dates, refuses unsafe programs and rolls back an audited version": three-person missing/duplicate preview, independent SP and SCIM read-back, secret/network/type/budget refusals, version rollback and audit); `tests/auth/oidc-apps.test.mjs` ("SaaS clients sign in with client_secret_basic, client_secret_post and private_key_jwt, and a native app with none and PKCE; RP-initiated logout reaches front- and back-channel apps": computed ID-token claim); `tests/integration/company-apps-browser.test.mjs` ("company apps journey: the owner adds a SAML app from its metadata, an OpenID Connect app, a group and assignments; an employee signs in through Auth, and loses both when removed, at desktop/mobile in both themes": editor, preview and save at 1440 and 390); `docs/attribute-mapping.md`. Exact semantics: typed language version 1 has bounded character work, nodes, depth, values and elapsed time; directory-only contexts cannot read credentials or call a network. Collision allocation covers the whole directory; saves bind the preview and version, rollback creates an audited version. SAML, generic OIDC and SCIM use the same program; AUTH-CATALOG-002 API adapters and AUTH-LIFECYCLE-001 future provisioning doors inherit it.

### SaaS, directories and workforce lifecycle

**AUTH-CATALOG-001 — Production SaaS application catalog (partial).** For each of the seven named services, an authorized US test tenant connects from catalog, assigns a test group/role, creates or binds the correct account, launches SSO, changes role and offboards it; read back remote state and document any external-session limit. Inject one provider denial and prove it remains unresolved.

Existing evidence and limits: src/auth/catalog/recipes.mjs; tests/auth/catalog.test.mjs — Google Workspace, Microsoft 365, Slack, GitHub Enterprise Cloud, AWS IAM Identity Center, Salesforce and Zoom recipes fill a working SAML app and, for the SCIM vendors, a provisioning connector, and state edition, permissions, roles, attributes, test-user procedure, certificate rotation and session limits. Missing: every authorized vendor-tenant journey (needs accounts), the Google Directory API and Microsoft Graph provisioning adapters, and Zoom's client-credentials token refresh.

**AUTH-CATALOG-002 — Catalog breadth and verification cadence (missing).** The catalog door lists at least 100 recipes, every one named above among them, each with protocol tags and a last-verified date within 90 days. A random sample of 10 recipes, drawn by the test run, each passes AUTH-CATALOG-001's connect/assign/launch/role-change/offboard journey with remote state read back. Age one recipe past its date and see it marked stale at the catalog and at activation.

Existing evidence and limits: No implementing product path or acceptance test yet.

**AUTH-M365-001 — Microsoft 365 domain federation and licensing (missing).** In an authorized Microsoft 365 test tenant, federate a verified domain in a staged-rollout group, then fully; sign in with each client in the matrix and inspect the ImmutableID and IDPEmail claims. Roll back to managed and sign in again. Add a person to a licensing group and see the SKU assigned, remove them and offboard another, and see each license reclaimed in Microsoft's admin data; a client that fails is shown as a failed matrix row, never omitted.

Existing evidence and limits: No implementing product path or acceptance test yet.

**AUTH-SCIM-001 — Outbound provisioning and deprovisioning (done).** Assign a group through admin UI/API to a real SCIM service, provision users/groups, change a role and email, then revoke while the provider returns 429/503 and later recovers. Inspect one account per person, persisted per-app outcomes with dispatch and verification times inside the bounds while healthy, no duplicate side effect and verified deactivation rather than a green queue submission.

Existing evidence and limits: src/auth/provisioning/; src/auth/workforce/; tests/auth/provisioning.test.mjs; tests/auth/scim-server.mjs (the SCIM service at the network edge) — group and person assignments create, update (role), deactivate/delete and reactivate users and push groups; preview of attribute, role and destructive effects; credential sealed, tested and rotated; adoption only by Auth's external ID, a name collision held for an administrator's decision; 429 with Retry-After, 503 and a lost response retried without a duplicate account; paged reconciliation of remote drift; per-app obligations with event, dispatch and remote-verified times, unverified past 15 minutes flagged; suspension denies locally first. Limit: an email change travels the same update path (AUTH-DIRECTORY-001 edit door).

**AUTH-SCIM-002 — Inbound directory synchronization (partial).** Connect each named directory and a generic SCIM client through setup, import paginated users/groups, apply a mover and deactivate a leaver. Send a foreign-tenant request, duplicate event and incomplete/full-empty snapshot; verify isolation, stable IDs and a held destructive change pending confirmation.

<!-- contract-status:AUTH-SCIM-002 -->
Existing evidence and limits: `tests/auth/directory.test.mjs` — "inbound directories and scoped SCIM stage immutable users and groups, require exact approval, retain incomplete feeds and fence reviewed leavers" (all four source adapters at their network edges, paginated users and groups, stable IDs, reviewed mover and leaver effects, foreign credentials, duplicates, incomplete and empty holds); `tests/integration/move-in-browser.test.mjs` — "move-in journey: stage a 30-person Google export, review, admit, invite and undo at desktop and mobile in both themes" (source setup, held preview, application and disable, generic SCIM stale and recovered source cards and retained non-dispatchable Activity obligations at 1440 and 390 in both themes); `tests/auth/provisioning.test.mjs` — "request, review and stale HR obligations retain decider reminders and resolution history across DST and restart" (implementation: `tests/auth/directory-source-flow.mjs`, directoryFreshnessFlow: generic SCIM pull liveness, one durable failure or overdue episode, unchanged-content recovery, restart and concurrent maintenance, source custody and employer refusals, held snapshots, no reminder under global or HR consent, and closed-episode expiry under confirmed retention); `journeys/directory-sandboxes.mjs` (held-key qualification journey; live result remains pending); `docs/directory-sources.md` — Partial remains unchanged. Native connectors stage observations and apply only exact human-approved changes. Generic SCIM pull sources now refresh liveness on successful unchanged content and retain visible source-bound failure and overdue episodes under their registered custodian and existing polling schedule. Recovery closes an episode without approving changes; disablement and custody loss stop it with retained history. No global or HR follow-up consent authorizes a directory reminder. Remaining Gaps are complete live provider mover and leaver qualification, Google Workspace directory delegation, measured pushed and polling bounds, full-reconciliation timing, receipt-to-application timeliness while human approval is pending, stale-source follow-up for other directory profiles and every outbound reminder, and nested or external membership support. Timely provisioning and deprovisioning remain complete category requirements. CT approves approval-origin timing only for the interim approved-delivery execution profile; it does not redefine receipt-origin source performance, authorize recurring approval, infer termination from absence or grant outbound consent.
<!-- /contract-status -->


CT policy ruling, 26 October 2026: Incoming observations remain staged until an authorized organization administrator approves one exact delivery, selected changes and preview digest with hardware passkey and fresh local email proof. Receipt and staging grant no sign-in, enrollment, assignment or authority-changing effect. Execution rechecks current approver authority, approved content and target; drift returns to review, and interruption recovery prevents duplicate effects. Recurring pulls and later deliveries never approve themselves. Missing or empty feeds never infer termination, and outbound reminders require separate audited consent. For this interim approved-delivery profile, execution timing starts at exact approval or the approved future effective time. Record receipt, approval, effective and application times separately. Approval delay remains visible and cannot be excluded when assessing the complete receipt-to-application source promise. The original 60-second pushed application, 15-minute polling and 24-hour full-reconciliation targets remain unchanged; staging alone does not satisfy them or timely deprovisioning. An approved leaver event retains every AUTH-TIMING-001 local-denial and downstream obligation. AUTH-HRIS-002 exact-approval and interruption-recovery protections, AUTH-DIRECTORY-001 identity and planner protections, AUTH-HOOKS-001 import protections and AUTH-FOLLOWUP-003 consent and follow-through obligations remain inherited before their receiving doors ship. Every original acceptance point remains required.

**AUTH-HRIS-001 — HR-driven identity sources (missing).** Connect each of the ten named HR sources in an authorized tenant; synchronize a future hire, US employment start, department/manager move, scheduled termination and rehire, and measure each change's arrival against its event or polling bound. Exercise DST/timezone effective times, conflicting sources, duplicate/out-of-order events and a stale feed; verify resulting access and unresolved source errors.

Existing evidence and limits: No implementing product path or acceptance test yet. Its future password-verification or match/create import doors inherit every AUTH-HOOKS-001 signature, minimal-payload, timeout/fail-policy, protected-identity, destination and audited-call obligation before shipping.


**AUTH-HRIS-002 — Scheduled HR file feeds (done).** Configure an SFTP feed with a mapping, deliver a file with a hire, a move and a termination and see the preview and resulting access; deliver a malformed file, an empty file and one terminating 20% of workers and see each held; skip a delivery and see the stale flag and follow-up. Refuse a wrong SFTP key and a file for another employer.

Existing evidence: `tests/auth/directory.test.mjs` — "saved HR file mappings hold destructive, empty and malformed deliveries, preview current and future rows, and retain one stale-feed follow-up across restart" proves mappings, held empty, malformed and 20-percent termination files, future preview, duplicate-delivery and stale-episode restart behavior, recovery and retained-row erasure. "a real SFTP listener verifies the employer key, applies reviewed hires, moves and leavers, refuses traversal and shells, and ends ingress after disabling" proves the real SSH and SFTP protocol, wrong-key refusal, bounded upload, employer isolation and credential destruction. "an explicitly approved HR file applies current and dated hires, moves and leavers once, resolves managers and resumes interruptions while preserving enrollment and authority refusals" proves current-time native group and app effects, signed minimal import hooks and protected-authority refusal, explicit destructive confirmation, ordinary new-worker email and passkey enrollment and replay and restart behavior. `tests/integration/directory-browser.test.mjs` — "directory journey: an administrator onboards a worker, edits and bulk-moves people with a preview, sets a group rule, terminates and rehires, at desktop/mobile in both themes" proves the built stale-source Activity row, consent-limited reminder controls and guide link at 1440/390. `tests/integration/browser.test.mjs` — "docs pages support keyboard code scrolling and remain readable at desktop and mobile" proves all published guides and keyboard scrolling at both widths. `docs/hr-file-feeds.md`. The same approved-file journey additionally proves current and future hires, moves and leavers; exactly one native application and approver plus digest receipt per row under concurrent scheduled workers; manager IDs resolved through the same feed's HR source bindings; changed digest or target and demoted or removed approver refusal; unapproved deliveries remaining unapplied; and an interrupted multi-row apply resuming after restart without duplicate people or application receipts. `tests/auth/provisioning.test.mjs` — "request, review and stale HR obligations retain decider reminders and resolution history across DST and restart" proves stale-source messages require separately selected source-owner consent and stop after refresh. No acceptance gap remains for CT's 24 October exact per-file-approved execution profile: approval requires hardware plus fresh local email, scheduled execution rechecks current approver authority and approved content and target, and drift returns to review. Recurring pulls never self-approve, and outbound actions require separate consent. AUTH-HRIS-001 and AUTH-SCIM-002 inherit these protections before automation.

**AUTH-LIFECYCLE-001 — Complete joiner, mover and leaver execution (partial).** From HR/admin doors, onboard a sales hire across Workspace, Slack and Salesforce, move them to engineering/GitHub, then terminate while one provider is unavailable. Restart the worker, inspect deadlines and approvals, restore the provider and confirm each remote outcome with its timestamps; local access must remain denied throughout.

Existing evidence and limits: src/auth/admin.mjs; src/auth/links/logout.mjs; tests/auth/linking.test.mjs — manual invitations, suspension and RER fences exist; multi-app HR-driven execution is missing.

**AUTH-TIMING-001 — Measured lifecycle time bounds (partial).** With healthy connectors to three SaaS test tenants, terminate a person and measure: local refusal on every door and logout delivery within 60 seconds, dispatch within 60 seconds and remote verification within 5 minutes per app. Hold one connector down past 15 minutes and see the escalation; add a future hire and see verified accounts before 06:00 local on the start date. Export the timeliness report for the period and reconcile each row's four timestamps with the audit trail.

Existing evidence and limits: src/auth/admin.mjs; src/auth/links/logout.mjs; src/auth/provisioning/obligations.mjs; tests/auth/security.test.mjs; tests/auth/linking.test.mjs; tests/auth/provisioning.test.mjs — suspension denies Auth sessions at once and starts signed RER back-channel logout with bounded retries; each SCIM obligation records event, dispatch and remote-verified times and is flagged unverified past 15 minutes. Missing: source and joiner bounds, the 24-hour reconciliation of every source, and the timeliness report.

**AUTH-WORKFLOWS-001 — Employer-built identity automations (partial).** In authorized Google Workspace and Microsoft 365 test tenants, enable the leaver templates and terminate a person through HR: read back Drive files owned by the manager, the transferred calendar, the Gmail auto-reply and delegate, the shared mailbox with manager access and every reclaimed license. Dry-run an edited automation and see no remote change; fail one step and see it held as an unresolved obligation in the person's plan; refuse a step outside the automation's granted scope. Call a generic REST endpoint with stored OAuth client credentials and use its response in a later step; refuse an HTTP step aimed at a private address.

<!-- contract-status:AUTH-WORKFLOWS-001 -->
Existing evidence and limits: `tests/auth/automations.test.mjs` ("automation public doors dry run without calls, acquire OAuth and chain two signed steps, retain history and exclude credentials from projections and archives"; "automation refuses lost permission, foreign scope and stale configuration, and holds failed or interrupted effects as person obligations without replay"; "automation hosted destinations refuse private addresses and DNS, redirects and unbounded response mapping without credential diagnostics"); `tests/auth/events.test.mjs` (retained native event delivery); `tests/integration/automations-browser.test.mjs` (editor, person dry run and failure history at 1440 and 390 in both themes); `docs/automations.md` — The bounded native slice implements one group-membership trigger, two signed HTTP steps, encrypted OAuth client-credentials custody, scoped authority, exact named approval for every run, person-specific zero-outbound dry runs and durable failure obligations. Held: authorized Google Workspace and Microsoft 365 tenants with Drive, Calendar, Gmail and Graph mailbox and license consent. All live HR-triggered leaver-template journeys, Drive and Calendar transfer, Gmail delegation and auto-reply, shared mailbox and OneDrive manager access, and Google, Microsoft 365, Slack, Zoom and Salesforce license reclaim remain unproved. Other trigger families, full mapping conditions, connector-action steps, waits, branches, notification steps, remaining authentication modes, template copying and editing, full remote verification and retry journeys, and complete lifecycle-plan integration remain unbuilt. Native peers qualify no vendor template.
<!-- /contract-status -->

**AUTH-FEDERATION-001 — Generic upstream federation (partial).** Through delegated setup, connect generic SAML/OIDC plus the three named providers, sign in to an assigned downstream app and rotate upstream keys. Refuse an email-only collision, replay, changed issuer/configuration, malicious metadata URL and foreign organization setup; simulate upstream outage and use approved recovery.

<!-- contract-status:AUTH-FEDERATION-001 -->
Existing evidence and limits: `tests/auth/upstreams.test.mjs` — "delegated federation tests a representative without granting a session, previews exact immutable mappings, activates with owner consent and refuses drift and collisions" (generic OIDC and SAML setup, representative isolation, exact mapping approval, assigned downstream sign-in, signing-key refresh, SAML overlapping-certificate employee sign-in and assigned OIDC launch, explicitly reapproved certificate retirement, persistent replacement trust, expired and unapproved certificate refusal, disabled and replaced callbacks, correlation, replay, collision, private metadata and commit-time authority refusal); `tests/auth/security.test.mjs` — "organizations isolate every existing HTTP family, admit expiring memberships and switch only between proven sessions" (foreign employer setup); `tests/integration/move-in-browser.test.mjs` — "move-in journey: stage a 30-person Google export, review, admit, invite and undo at desktop and mobile in both themes" (delegated setup, tested mapping, activation, SAML overlap and explicitly reapproved replacement setup, stale-review refusal and provider screens at 1440 and 390 in both themes); `docs/upstream-campaigns.md` — Partial remains unchanged. The owner-only delegated RS256 OIDC and plaintext SAML profile is implemented according to the cited repository evidence. Remaining Gaps are live Google callback and consenting test-user proof, an authorized Okta web registration, live Entra employee callback, full live downstream qualification, complete upstream rotation qualification beyond the native SAML journey, outage-recovery qualification, and broader federation-loop qualification. Every original generic and named-provider acceptance journey remains required. CT approves exact owner activation with isolated representative testing and the stated riders; this ruling certifies neither provider interoperability nor implementation completion.
<!-- /contract-status -->


CT policy ruling, 26 October 2026: The interim activation profile is owner-only and limited to exact reviewed ordinary subjects and their immutable mappings. The affected organization’s owner approves with hardware passkey and fresh local email proof; current authority, organization binding, trust configuration and mapping are rechecked at commit, and drift returns to review. Installation authority grants no administration of an isolated organization. A representative test validates upstream proof and previews mappings only: it creates no employee session, authenticated membership, downstream grant or administrator authority. Activation does not itself sign in the employee or bypass assignments, policy or AUTH-PROFILE-001 existing-account and new-identity proof. Record only necessary trust configuration, reviewed bindings, approval facts and redacted validation outcomes; disclosure remains governed by existing claims and scope rules. Upstream proof never replaces local administrator proof. Machine administration remains limited to enabling or disabling approved trust; future machine doors inherit all AUTH-ADMINAPI-001 protections. Every original federation acceptance point remains required.

**AUTH-SOCIAL-001 — Controlled external identity sign-in (partial).** Configure each adapter with a real provider app, sign in an invited contractor, exercise private/changed email and unlink/relink, then withdraw employer permission. Refuse a same-email unproven identity and observe immediate policy denial on further token issuance.

Existing evidence and limits: src/auth/upstreams.mjs; tests/auth/upstreams.test.mjs — Google OIDC is exercised; GitHub and Apple adapters are missing.

**AUTH-LEGACY-001 — LDAP, Active Directory and RADIUS access (missing).** Install the real private connector. Sign in to GlobalProtect through RADIUS with password plus push and with password plus TOTP; deny the push and let one time out, and each sign-in is refused. Join Meraki Wi-Fi with EAP-TLS and with EAP-TTLS plus push, bind an LDAPS app, and exercise each AD direction (source import, delegated authentication, password write-back, group push). Disable the employee, rotate trust and disconnect the connector; prove new access stops within AUTH-TIMING-001's leaver bound and unresolved external sessions remain visible.

Existing evidence and limits: No implementing product path or acceptance test yet.

**AUTH-DEVICE-001 — Device identity and trust (missing).** Enroll one device per supported desktop OS and an iPhone and an Android phone, and read posture from each named management service; launch from a jailbroken or rooted phone and from one below the required OS version and be denied. Launch an app, stale the posture, mark a device noncompliant and revoke it; verify policy denial, trust removal and an auditable employee/help-desk recovery path.

Existing evidence and limits: No implementing product path or acceptance test yet.

**AUTH-DESKTOP-001 — Sign in to the computer with company identity (missing).** On a managed Mac and Windows PC, sign in at the OS login with company identity using push, TOTP and a security key; on the Mac exercise both password-sync and Secure Enclave modes. Sign in offline within and beyond the cached period. Lock an employee out and restore them with a help-desk recovery PIN, then refuse the PIN's reuse and its use after an hour. Offboard the employee and see the next online login and unlock refused. On a domain-joined Windows PC, open the launcher and be signed in by Kerberos, then be stepped up where policy requires.

Existing evidence and limits: No implementing product path or acceptance test yet.

**AUTH-GATEWAY-001 — On-premises web apps through an access gateway (missing).** Deploy the gateway on a private network with no inbound port and publish a header-based test app and an IIS app using Kerberos constrained delegation. Launch both as an assigned employee and read the identity headers and Kerberos identity at each app. Send a forged identity header and see it stripped; deny an unassigned employee and a path-level rule; offboard the employee and see the next request refused within 60 seconds.

Existing evidence and limits: No implementing product path or acceptance test yet.

**AUTH-PRIVILEGED-001 — Server and SSH access without standing keys (missing).** Enroll two Linux servers (one with the agent, one with only the CA key) and one Windows server. As an engineer in a server group, sign in with a passkey, obtain a certificate and SSH in; RDP to the Windows server through the gateway. Be refused sudo until a time-bound request is approved, then gain it and see it expire. Refuse a server outside the person's groups, an expired certificate and an unassigned engineer. Offboard the engineer and see the next connection refused and the local account removed; the audit shows each session.

Existing evidence and limits: No implementing product path or acceptance test yet.

### Access governance and application authorization

**AUTH-GRANTS-001 — App roles, APIs and service identities (done).** Register an API, map a group to read/write and resource-level permissions, and call it as an employee and a service identity. Deny an unassigned role, cross-employer resource, wrong audience, excessive scope and revoked service credential; role removal must change the next authorization decision.

Existing evidence: `tests/auth/oidc-apps.test.mjs` ("resource APIs use live app roles and tenant resources for employees and distinct accountable OAuth services"): registration, native group roles, employee/service checks, resource relationships, no subject substitution, active cross-employer/wrong-audience/excess-scope refusals, revocation and next-decision role changes. Existing `tests/auth/provisioning.test.mjs` group-assignment/SCIM-role journey proves the shared assignment effects. `docs/authorization-api.md` documents app-holder scope, public JWKS, expiring accountable clients and mandatory live decisions. `tests/integration/directory-browser.test.mjs` ("organization and authority journey: switch employers, delegate a scoped reset, authorize a service and erase a worker at desktop/mobile") proves registration, group-role mapping, service issuance, live authorization and next-call revocation at 1440/390. No remaining acceptance gap.

**AUTH-TOKENS-001 — Refresh and delegated session lifecycle (done).** Use a native SDK to obtain an approved refresh grant, rotate it, replay an old token and revoke the family through My account. Run concurrent refresh, expiry, suspension and app removal, confirming the resource API refuses invalid authority and strict RER clients receive no refresh token.

Existing evidence: `tests/auth/oidc-apps.test.mjs` — "native offline consent and SDK rotation preserve device binding, detect reuse and concurrency, and end resource authority on expiry, revocation, suspension and app removal": native SDK consent and rotation, device/client/tenant binding, least scopes and pairwise subjects, SDK single-flight and storage failure, consumed-token reuse and simultaneous raw refresh, restart and browser-expiry continuity, idle/absolute expiry, scoped/ranked/fresh-email administrator controls, employee revocation, suspension/app removal, live resource denial, supported logout and store cleanup; `tests/integration/refresh-browser.test.mjs` — "offline app journey: publish a profile, consent to a native device, inspect and revoke it through My account at 1440 and 390": profile publication/disablement, exact consent, employee/admin inventory and My account family revocation, readable end states and every icon-only control's delayed-hover/immediate-focus tooltip at 1440/390; `tests/auth/protocol.test.mjs` — "code flow preserves ES256 ID token claims and adds a userinfo access token": strict RER has no refresh token and refuses offline authorization/refresh; `docs/offline-sessions.md`; `packages/session-sdk/index.mjs`. No acceptance gap remains. The exact current profile and inheritance are documented in CONTRACT.md and docs/offline-sessions.md.

**AUTH-HOOKS-001 — Inline hooks for custom sign-in logic (done).** Register a token hook that adds a cost-center claim and see it in the ID token; a registration hook that denies an outside domain; and a hook that tries to add an administrator role and change the subject, and see both changes refused. Let a fail-closed hook time out and see the sign-in refused with a clear error, then a fail-open hook time out and see sign-in continue with the event logged. Refuse a hook URL that resolves to a private address.

Existing evidence: `tests/auth/oidc-apps.test.mjs` ("inline hooks add only approved token and SAML fields, deny registration and imports, enforce signed minimal payloads and timeout choices, and refuse private DNS and protected identity changes": cost-center ID token and independent SP assertion, registration/import denial, subject/admin-role/MFA/policy refusal, real fail-closed/fail-open timeouts with public error and audit, private DNS at registration and invocation, revocation during the call); `tests/auth/protocol.test.mjs` ("code flow preserves ES256 ID token claims and adds a userinfo access token": strict RER hook and unchanged proof claims); `tests/auth/move-in-admission.test.mjs` ("admission is the ordinary invitation: administrators only, no proof, right, session or mail, and existing people never rebound": signed import denial and creation); `tests/integration/company-apps-browser.test.mjs` ("company apps journey: the owner adds a SAML app from its metadata, an OpenID Connect app, a group and assignments; an employee signs in through Auth, and loses both when removed, at desktop/mobile in both themes": register/refuse/stop hook and Activity latency/outcome at 1440/390); `docs/inline-hooks.md`. Exact current-door semantics cover strict RER/general OIDC issuance, SAML, self-registration, staged move-in and source-id-matched imports. Subjects, roles, MFA, policy and reviewed identity bindings remain protected, and live authority is rechecked after each remote call. AUTH-MIGRATION-002 inherits the password-verification/first-login hook; new match/create doors in AUTH-HRIS-001, AUTH-HRIS-002 and AUTH-SCIM-002 inherit every hook protection before shipping. Password-hook registration currently refuses; no password-verification or general identity-matching bridge is claimed.

**AUTH-REQUESTS-001 — Access requests and time-bound grants (partial).** Request Salesforce access and temporary AWS elevation from the launcher, have the required independent people approve, provision only those roles, and let the grant expire while a connector fails. Reject self/stale/concurrent approvals and verify revocation/escalation before closing the request.

Existing evidence and limits: `tests/auth/directory.test.mjs` — independent request decisions bind the current approver and temporary access expires without claiming remote removal; `src/auth/requests/index.mjs`; `docs/access-decisions.md`. Gap: Native single-decider temporary requests and exact decision/expiry foundation built for DECISIONS-001. Authorized Salesforce/AWS role/elevation tenants, multi-stage routing, extensions/emergency rules, chat and live remote expiry qualification remain. Default ADOPTED pending ct: explicit administrator-selected decider and maximum 30-day duration; no standing direct assignment overwritten.

**AUTH-REVIEWS-001 — Periodic access certification (partial).** Start a quarterly review of employee, contractor and service-account access, delegate one reviewer, certify one role and revoke another. Change membership mid-review, miss a deadline and fail a provider removal; inspect immutable snapshot, new drift and an export whose completion cannot conceal unfinished remediation.

Existing evidence and limits: `tests/auth/directory.test.mjs` — quarterly access snapshots retain delegation, drift, overdue escalation and verified remediation; `tests/auth/access-decisions-flow.mjs`; `src/auth/reviews/routes.mjs`; `docs/access-decisions.md`. Gap: Employee/contractor/service snapshots, recurring quarterly runs, delegation, certify/reduce/revoke, new drift, calendar/DST reviewer reminders, absence/overdue escalation, provider-failure closure and immutable export built. Scoped published review permissions and optional native Auth administrator-grant snapshots are built; native revocation reuses live role/rank fences, terminates sessions and refuses owner removal. Generic obligations are FOLLOWUP-003; future POLICY/PASSWORD clauses inherit immutable policy-version evidence before shipping. Default ADOPTED pending ct: scoped hardware-plus-email management/delegation/export, explicit app hierarchy with persistent caps and fail-closed republication.
Additional public journeys: `tests/auth/directory.test.mjs` ("review reductions follow a published app order and cap live access through provider readback"; "review reminders follow current reviewer consent and business calendars across restart with absence escalation"). The former proves lower-role SCIM/SAML/resource effects and stale/unknown ordering refusals; the latter proves consent, calendar/DST, delegation/absence, overdue escalation and interrupted-transport restart behavior.
Native and scoped journeys: `tests/auth/directory.test.mjs` ("native administration reviews preserve scoped grant evidence and enforce the existing revocation door"; "scoped review coordinators schedule only editable resources and cannot hide excluded evidence in exports") prove immutable grant/resource provenance, independent certification, hardware/fresh-email and owner/rank refusals, session ending, stale role revision, bounded campaigns, full-scope exports and recurring authority loss.
Browser journey: `tests/integration/directory-browser.test.mjs` ("access decision and review journey: ordinary manager proof, request approval, immutable certification and unfinished removal, and retention controls at 1440 and 390").

**AUTH-DECISIONS-001 — Proof levels for administration and everyday decisions (partial).** As a manager with an employee passkey and no local email confirmation, approve a Salesforce request, edit a non-privileged group as its owner, and certify access in a review; each commits after step-up. Attempt to approve a request for an administrator role, edit a privileged group and approve an administrator's recovery with the same proof; each is refused until the administrator gate is satisfied. Approve a stale request and one the decider lost authority over between view and commit; both are refused.

Existing evidence and limits: `tests/auth/directory.test.mjs` — group owners confirm exact ordinary decisions without email and lose stale or privileged authority; independent request decisions bind the current approver and temporary access expires without claiming remote removal; quarterly access snapshots retain delegation, drift, overdue escalation and verified remediation; `tests/auth/access-decisions-flow.mjs`; `src/auth/decisions/routes.mjs`; `docs/access-decisions.md`. Gap: Native group/request submission/approval/review certify-reduce-revoke doors, exact UV proof, stale/lost/concurrent refusal built. Authorized Salesforce/AWS live request qualification remains under REQUESTS-001; configurable step-up policy inherits POLICY-001. Request submission now uses the same exact UV proof. Default ADOPTED pending ct: apps and their unclassified roles privileged until audited administrator classification; exact app-role overrides propagate to group decisions; management/delegation/export published scoped permission with hardware plus fresh email; explicit role-order caps fail closed on republication.
Browser journey: `tests/integration/directory-browser.test.mjs` ("access decision and review journey: ordinary manager proof, request approval, immutable certification and unfinished removal, and retention controls at 1440 and 390").

**AUTH-CHAT-001 — Approve, deny and certify from Slack and Microsoft Teams (missing).** In authorized Slack and Teams test workspaces, bind a manager, approve one request and deny another from each, certify a review item, and see the outcomes provisioned and audited. Refuse an action from an unbound chat account, one bound to a different person, a stale or already-decided request and a removed binding; a privileged-role request offers only the web link.

Blocked dependency for this round: main must choose and configure the shared Slack app Interactivity Request URL or router; Teams requires Entra administrator consent. No native chat completion is claimed.

Existing evidence and limits: No implementing product path or acceptance test yet.

**AUTH-AUDIT-001 — Identity investigation and reporting (partial).** Investigate an employee’s failed sign-in through its policy decision and provisioning history, export a review period to each named sink/Evidence, and reconcile the AUTH-REPORTS-001 MFA-enrollment export for one employer row by row with its directory, with every person who has no factor present and marked non-compliant. Query an event 12 months old through the log API on a default installation. Reconcile event counts across pages, detect tampering/gaps, deny an auditor’s write attempt and prove erased subjects no longer disclose personal identifiers.

<!-- contract-status:AUTH-AUDIT-001 -->
Existing evidence and limits: `tests/auth/audit.test.mjs` — "interactive audit finds twelve-month sign-ins and reconciles a frozen authorized set beyond the old cap across restart and concurrent appends"; "interactive audit rechecks employer, person scope and revoked auditor authority without conferring directory or export writes"; "interactive audit preserves stable event IDs and opaque projections after real subject erasure". The same journeys prove paginated native JSON export beyond the legacy cap, separate export authority, current fresh-email proof at receipt commit and retained page receipts across restart, refusal of captures made before erasure and opaque redaction of their stored filter details; the scope probe checks related people and groups before counts and pagination; the erasure probe includes an invitation, two email changes, persistent restart and an independent new holder of the old address. `tests/auth/agents-keys.test.mjs` — "admin service apps use private-key OAuth for scoped group and assignment writes; resource, IP, expiry, owner and ETag fences refuse automation while every scope excludes identity and credential custody" includes related-target machine log refusals. `tests/integration/directory-browser.test.mjs` — "organization and authority journey" includes Activity pagination, authority loss between pages and erased-subject readback at 1440 and 390 in both themes. `docs/activity.md`. — Native interactive Activity, role audit queries and the separately authorized paginated JSON export have stable employer-bound event IDs, bounded time, person and event filters, as-of pagination and current authority checks. Twelve-month sign-in readback, reconciliation beyond the old cap despite concurrent appends, auditor write and related-target scope refusals before counts and pagination, recoverable Activity filter and cursor errors, and opaque erased-subject projections are implemented. Native export pages retain audited release receipts and recheck hardware, fresh-email and current scoped export authority before release; these receipts establish no external delivery or general tamper proof. Held: authorized Datadog, Splunk, Microsoft Sentinel and Evidence destinations, sink export and streaming, complete failed-sign-in, policy and provisioning correlation, full employee device and grant history, MFA and other report reconciliation including password, push and policy dependencies, and general durable tamper and gap evidence remain unproved. AUTH-RETENTION-001 and AUTH-ERASURE-002 policy holds are unchanged.
<!-- /contract-status -->

**AUTH-REPORTS-001 — Named per-person identity reports (partial).** With 20 people (15 with a passkey or push, 3 with only a password, 2 with no factor), export the MFA-enrollment report and reconcile it row by row with the directory: all 20 rows are present and the 5 non-compliant people are marked. Terminate two people, one while a connector is held down, export the terminated-people report and reconcile each row's local-denial and full-deprovision times with the AUTH-TIMING-001 audit; the held app is named. Grant and revoke a custom administrator role and see the administrators report follow; age a person past 90 days without sign-in and see them on the dormant report. Refuse export to a role without export rights. Each export's row count equals the directory count for its filter at its as-of time.

Existing evidence: `tests/auth/directory.test.mjs` — "native MFA reports reconcile every scoped directory row and keep no-factor workers noncompliant while separate export rights and audit gates apply" proves 20 scoped rows with 15 enrolled passkeys and 5 no-factor workers, filters, separate export denial, audit and unknown employer-policy outcomes. "the administrators report follows a live published custom role grant and its revocation" proves current custom grants; "the dormant report distinguishes an aged successful sign-in from recent activity and explicit unknown history" proves the 90-day filter; "terminated reports retain held app names and verified remote outcomes while connector failures and unmeasured timing stay explicit" proves named residual access and honest native SCIM health. `docs/identity-reports.md` defines columns, capture/count semantics and limitations. Gap: the exact password/push acceptance cohort and employer MFA policy, local-denial/full-deprovision timing audit reconciliation, all connector coverage, schedules, machine exports and compliance/Evidence delivery remain unproved. No unknown is counted compliant, and no queue acknowledgment becomes a full-deprovision timestamp.

**AUTH-COMPLIANCE-001 — Identity-provider connectors for compliance platforms (missing).** In an authorized Vanta test tenant, connect Auth through the private integration: Vanta's accounts page shows every Auth person in scope with the correct status, MFA status and factor types, and a custom MFA test passes. Remove one person's last factor and see the test fail within one sync; offboard another and see them in Vanta's offboarding queue within one sync. Scope by an Auth group and see Vanta's scope follow a membership change. Repeat in a Drata test tenant and see "MFA on Identity Provider" pass and then fail the same way. Configure the Secureframe and Thoropass recipes in authorized test accounts and see each person's MFA status. Revoke the Vanta credential and see the connector unhealthy, with a follow-up raised, within two hours.

Existing evidence and limits: No implementing product path or acceptance test yet.

### Migration, integration and operations

**AUTH-MIGRATION-001 — Switch from Okta, Entra ID or JumpCloud (partial).** For Okta Workforce Identity, Microsoft Entra ID and JumpCloud separately, migrate a populated authorized test tenant with groups, apps, a collision, suspended worker and privileged assignment. Pilot a cohort, re-enroll factors through the AUTH-MIGRATION-003 campaign, compare counts/permissions, roll back and cut over; prove old subjects cannot act as credentials and no app is silently omitted. With Vanta and Drata connected to the incumbent, see both listed with AUTH-COMPLIANCE-001 as their replacement, and cutover held until each replacement's first sync succeeds.

Existing evidence and limits: src/auth/move-in/sources.mjs; src/auth/move-in/routes.mjs; tests/auth/move-in-staging.test.mjs; tests/auth/move-in-admission.test.mjs — Export staging and admission exist for all three; full configuration, group and app migration and live cutover are missing. JumpCloud, Vanta and Drata accounts are not held.

**AUTH-MIGRATION-002 — Custom-directory and progressive move-in (done).** Import Google and Auth0 records, migrate one eligible legacy worker at first login through the real bridge, and compare downstream subject mapping before/after. Refuse a wrong password, email collision and disabled worker; interrupt migration and prove an idempotent outcome and a cleanly disabled bridge.

Existing evidence: `tests/auth/move-in-staging.test.mjs` and `tests/auth/move-in-admission.test.mjs` retain documented Google/Auth0 staging/admission and former-subject proof. `tests/auth/move-in-admission.test.mjs` — "reviewed custom-directory workers migrate at first legacy login with protected history, exact subject mapping, inherited hooks and permanent bridge shutdown" proves the real signed bounded verifier profile through its network edge, immutable reviewed identifiers/profile history, normal Auth email and passkey enrollment, real linked-app sign-in, wrong-password/collision/disabled refusal, interrupted mail delivery and restart without duplicate people, old-password retirement and disabling during an in-flight verifier call. `tests/integration/move-in-browser.test.mjs` — "move-in journey: stage a 30-person Google export, review, admit, invite and undo at desktop and mobile in both themes" proves the built Worker migration/enrollment and the clause screens at 1440/390, including icon hover/focus tooltips. `docs/progressive-migration.md`. The signed verifier additionally refuses private DNS and substituted subjects and fails closed at its actual five-second timeout; standalone exact-candidate receipt `sx-auth-c12-final-targets` records this outside push Verify. No acceptance point remains unproved for this constrained profile; a live incumbent enrollment campaign and password preservation at RADIUS remain MIGRATION-003/PASSWORD-001.

**AUTH-MIGRATION-003 — Cutover enrollment campaign (partial).** In an authorized Okta test tenant with 20 staged employees, run a campaign: all 20 enroll through Okta-federated proof with no help-desk action while the dashboard counts down. Leave 3 unenrolled and see them named as overdue with manager reminders and in the export. Refuse a person whose email matches but whose Okta subject differs, an unstaged person, proof after the campaign window and campaign proof for an administrator. Bridge one employee's Okta password and sign in with it at RADIUS after cutover. Repeat the enrollment proof with Entra ID and JumpCloud as upstreams.

Existing evidence and limits: `tests/auth/move-in-admission.test.mjs` — "an immutable-subject campaign enrolls twenty staged workers, counts down, reminds managers once and refuses MFA, window and administrator bypasses" (twenty local passkey-ready workers, countdown, three overdue names, CSV, durable consent-bound reminders, exact subject, MFA, administrator and cutover refusal); `tests/integration/move-in-browser.test.mjs` — "move-in journey: stage a 30-person Google export, review, admit, invite and undo at desktop and mobile in both themes" (campaign setup, pending, overdue and closed screens at 1440 and 390); `docs/upstream-campaigns.md`.

Gap: Partial remains unchanged. Native campaign passkey readiness is distinct from complete enrollment. Remaining Gaps are the live twenty-worker Okta callback with an authorized web registration, live Entra employee proof and JumpCloud qualification, native Auth authenticator enrollment, optional eligible Okta password preservation and RADIUS cutover, Slack or Teams delivery, and temporary access passes after cutover. Every original campaign acceptance point remains required. CT approves the separately consented minimal cohort-manager reminder policy with the stated riders; this ruling supplies no implementation or live-provider proof.

CT policy ruling, 26 October 2026: The owner may explicitly select a cohort manager. Sending that manager enrollment reminders requires separate audited outbound consent in a policy write by the organization owner or a role holding the published manage-follow-up permission, with hardware passkey and fresh local email proof rechecked at commit. Campaign creation, a directory manager field and existing reminder consent do not grant this consent. Each manager notice contains only the affected employee’s name, work address and enrollment deadline. Dispatch rechecks the selected manager’s current organization membership, state and cohort duty; a failed recheck follows the existing approved escalation rule. The notice grants no enrollment, recovery, approval or administrator authority and contains no credential or proof-bypassing link. Consent, dispatch outcomes and stopping history remain subject to AUTH-FOLLOWUP-001, AUTH-FOLLOWUP-002, AUTH-RETENTION-001 and AUTH-ERASURE-001. Completion, cancellation or expired campaign authority stops reminders. This policy does not replace any enrollment, channel, escalation, export, cutover or provider acceptance requirement.

**AUTH-DEVELOPER-001 — Working integration SDKs and admin API (partial).** Build and run each framework quickstart against a fresh Auth install; enroll an employee, sign in, verify a protected API, switch an authorized organization, revoke access and observe logout. Follow the docs from an empty app and diagnose a deliberately wrong redirect without hand-editing SDK internals.

Existing evidence and limits: `tests/auth/agents-keys.test.mjs` — "a packed Node SDK installs in an empty app and enforces scoped private-key administration, pagination, ETags and live revocation over HTTP" proves the installed Node client and quickstart. "a built Python wheel installs in an empty app and enforces scoped administration, ETags, pagination and cached-token revocation over HTTP" builds version 0.1.0, installs its wheel in a fresh virtual environment, runs the installed quickstart unchanged and proves real private-key OAuth, scope and resource denial, pagination, stale ETags without retry, path confinement and cached-token revocation. "an installed Hono quickstart checks genuine employee consent, callback binding, rotation and live revocation against fresh Auth" installs both packages in an empty app, enrolls an employee with browser-bound email and hardware proof, completes genuine OAuth consent with PKCE and DPoP, refuses a wrong callback, runs the unchanged installed protected-route example and proves rotation and next-request revocation. The guides `packages/session-sdk/README.md`, `packages/admin-python/README.md` and `packages/hono-sdk/README.md` state supported profiles, errors, rotation, custody and deployment limits. Gap: Next.js and React, embedded components, Python employee sessions, authorized organization switching and complete fresh-install browser sign-in and logout journeys remain unproved. These are proven SDK slices; neither whole acceptance sentence is complete.

**AUTH-ADMINAPI-001 — Admin API credentials for automation (done).** Create a service app with `groups.manage` and `assignments.manage` from an allowed IP, call the API to create a group and assign an app; call a policy endpoint and from another IP and be refused; attempt each excluded action with every scope and be refused. Expire the app, suspend its owner, and replay a stale ETag; each is refused or suspended as stated, and the audit shows every call.

Existing evidence: `tests/auth/agents-keys.test.mjs` ("admin service apps use private-key OAuth for scoped group and assignment writes; resource, IP, expiry, owner and ETag fences refuse automation while every scope excludes identity and credential custody": allowed group/assignment, wrong scope/IP/resource, every exclusion under every advertised scope, app/token expiry, persistent suspension/demotion/departure, reassignment, stale ETag, complete call audit and no stored assertions/tokens/private keys; "machine directory and company-app commands share native lifecycle planning, dynamic membership, safe paginated reads and optimistic updates": native people/rule/app/policy composition, pagination, safe reads and optimistic updates); `tests/auth/fresh-proof.test.mjs` ("every sensitive action refuses a stale local email proof without change and succeeds after a fresh confirmation": service create/reassign/revoke); `tests/integration/agents-browser.test.mjs` ("agents journey: mint a key, an agent files a suspension, a person approves with a passkey, the session ends and Activity records it, at desktop/mobile in both themes": register, use and revoke a real service app and inspect attributed Activity at 1440/390); `docs/admin-api.md`. Current v1 exposes native people/profile/lifecycle, groups/rules/membership, SAML/OIDC company apps and assignments, exact-domain provider requirements, configured-provider availability, domains and safe audit reads. Resource sets are explicit people/group/app IDs; creation requires unrestricted access to the new resource kind, and compound effects must remain within the grant. Provider identity and credentials remain owner configuration; `idps.manage` enables or disables that configuration and cannot replace its issuer, client or bindings. Tokens are issuer-local, at most five minutes, with live owner/revision/IP checks; mutations use guarded native commands and atomic shared-revision ETags. AUTH-ROLES-001, AUTH-POLICY-001 and AUTH-FEDERATION-001 inherit the same scoped, excluded-action, audit and concurrency obligations for their future machine doors before shipping.

**AUTH-TERRAFORM-001 — Terraform provider (partial).** Against a fresh install, `terraform plan` and `terraform apply` create a group, an app assignment and a policy; a second plan shows no changes; a change made in the UI appears as drift on the next plan; `terraform import` adopts an existing app. A resource needing a scope outside the credential's grant fails at apply with a refused, audited call and no partial change to that resource.

Existing evidence and limits: `packages/terraform-provider/README.md` documents local Terraform and OpenTofu installation and the three resource schemas. `tests/auth/terraform-provider.test.mjs` ("terraform installs the Auth provider and reconciles native resources with drift, import and audited scope and stale-plan refusals" and the matching OpenTofu journey) uses actual CLIs against fresh native Auth persistence: group, SAML app and assignment creation, a second unchanged plan, app update drift, existing-app import, exact stale ETag refusal with one attempted mutation and previous state preserved, audited scope and resource refusal without partial mutation, RSA and P-256 private-key OAuth, and no private keys or tokens in state or diagnostics. `tests/integration/company-apps-browser.test.mjs` (company apps journey, extended by `tests/integration/helpers/terraform-journey.mjs`) applies native resources with actual Terraform, checks an unchanged plan and detects an app removed through the Apps UI; screenshots cover 1440 and 390 in both themes. `packages/terraform-provider/internal/provider/provider_test.go` ("TestRefusalNeverRetriesOrLeaksResponse") asserts refusal sanitization and no retry or tag advancement. Machine updates preserve omitted service-provider certificates.

Gap: Public Terraform Registry publication and signing remain gr-held. People, group rules, OIDC and password apps, attribute mappings, policies, identity providers, domains and automations remain unimplemented provider families. The required conditional-access policy remains AUTH-POLICY-001 device-held and automations remain AUTH-WORKFLOWS-001 account-blocked; the exact-domain provider rule does not replace that policy. Full policy and automation acceptance and public release remain unproved.

**AUTH-MOBILE-001 — Native employee and administrator access (partial).** On real iOS and Android builds plus Expo SDK clients, deploy the app with managed configuration through Intune and Android Enterprise, enroll a passkey, return through a verified link, launch an assigned app, approve an authorized request and revoke the lost device. Refuse a hijacked callback and offline approval; exercise web equivalents at 1440 and 390.

Existing evidence and limits: src/ui/pages/account.ts; tests/integration/browser.test.mjs — responsive account/admin web exists; native apps, mobile SDKs and launcher do not.

**AUTH-EVENTS-001 — Reliable lifecycle events and webhooks (done).** Subscribe a real app endpoint through admin/API, perform a joiner/mover/leaver, rotate signing material and recover after 429, timeout and outage. Replay an event and request a historical cursor; verify ordered/versioned reconstruction without duplicate grants or missing unresolved work.

Existing evidence and limits: src/auth/events/; src/auth/outbound.mjs; tests/auth/events.test.mjs; COMPANY-APPS.md — administrators subscribe HTTPS endpoints (private, IP and internal destinations refused); versioned events with stable IDs and commit-order cursors for people, memberships, assignments, provisioning outcomes, recovery and policy are signed (Standard Webhooks HMAC), retried through 429 with Retry-After, a timeout and an outage without changing their ID, signed with both secrets during a rotation overlap, replayable with the original ID, and readable from a resumable cursor with a per-subscription read key; a delivery acknowledgment closes no access obligation.

**AUTH-FOLLOWUP-001 — Follow-through until access is resolved (done).** Leave an invitation, a recovery awaiting a distinct administrator's approval, and a failed deprovision unresolved across a weekend/DST change and a process restart. Observe due actions, reminders and escalation, including for a legacy policy with no escalation recipient. Complete or cancel each through its normal door, and verify reminders cease while the complete history remains.

Evidence: `tests/auth/provisioning.test.mjs` — "durable follow-up dispatches on the employer business calendar across DST and restart, escalates unresolved revocation and stops on source completion, cancellation and expiry": invitation, recovery awaiting distinct-admin approval and failed deprovision across weekend/DST/restart; due actions and reminders; legacy policy recipient-recheck escalation (including a stopped pre-0047 deadline); exact 15-minute downstream escalation outside business hours, concurrent/restart deduplication; normal-door completion/cancellation/expiry stops with retained history; policy refusals and credential-free mail. `tests/integration/agents-browser.test.mjs` — "agents journey: mint a key, an agent files a suspension, a person approves with a passkey, the session ends and Activity records it, at desktop/mobile in both themes": Activity policy/scheduling, pending recovery restart and cancellation, enrollment completion and retained history at 1440/390 in both themes. `docs/follow-up.md`. Legacy upgrades copy only the policy’s already approved administrator IDs into escalation and audit that migration; no new person or address is added. Current role/state and source authority are rechecked on every dispatch. AUTH-FOLLOWUP-003/004 retain the additional-source and channel work.

**AUTH-FOLLOWUP-002 — Role-derived recipients, manage-follow-up authority and early send (done).** A custom role with 'manage follow-up' saves the policy. An installation role is refused. The employee receives their own enrollment and recovery reminders, and the holding help desk receives its case reminders. A help-desk holder who loses the role escalates. A holder's early send reaches only allowed recipients, and a non-holder is refused. All of this runs at 1440 and 390.

Evidence: `tests/auth/provisioning.test.mjs` — "follow-up duties resolve employees and scoped case holders, restrict early send and escalate lost case authority": a custom role holding the published manage follow-up permission (followup.manage) saves the policy and loses that write when revoked; an installation session has no employer session (401) and the same installation-role holder, signed in as a passkey member of the isolated employer, is refused with role_permission_required; scheduled reminders reach the invited and active employee for enrollment, the employee for their own recovery and the help desk holding the exact case, never administrators or policy managers; a holder who loses exact case authority fails the dispatch recheck and escalates to the named owner; holder early send ignores injected recipients, non-holders are refused with followup_holder_required and an early occurrence is not resent after restart or when due; cancellation stops reminders; a pre-0048 employer upgrades and case-binding erasure keeps anonymous history. `tests/integration/agents-browser.test.mjs` — "agents journey: mint a key, an agent files a suspension, a person approves with a passkey, the session ends and Activity records it, at desktop/mobile in both themes", through `tests/integration/helpers/followup-roles-journey.mjs` followupRolesJourney at 1440 and 390 with light/dark captures: custom-role save in the settings form; installation owner, administrator and coordinator sessions refused at the isolated employer and the coordinator refused as its passkey member; employee enrollment, own-recovery and holding help-desk case reminders delivered through the gated outbox; injected-recipient and non-holder refusal; lost case role escalation with its visible recheck failure. `docs/follow-up.md`. The published `followup.manage` permission manages organization-wide follow-up only, with passkey and fresh local email proof. Case reminders resolve the opener only while current exact-case edit authority remains; the separately assigned follow-up owner may send early but cannot change source custody. Existing named administrator selections retain their approved owner/admin roles. Source decisions keep their original proof gates. Employee read coverage replaces the former blanket employee-refusal assertion with scoped own-record/history assertions.

**AUTH-FOLLOWUP-003 — Access-request, review and stale-source obligations (done).** Leave an access approval, an overdue review item and a stale source unresolved across a weekend and DST change and a restart. Observe that decider reminders and escalation happen. Decide, cancel or refresh each through its normal door, and verify reminders cease while the history remains.

Evidence: `tests/auth/provisioning.test.mjs` — "request, review and stale HR obligations retain decider reminders and resolution history across DST and restart" (implementation: `tests/auth/followup-decisions-flow.mjs`): (1) pending native requests, an overdue review item and a stale HR file feed remain recorded across the weekend, DST and a Worker restart; (2) current-decider reminders and approved-administrator escalation, explicit HR source-owner consent, concurrent and restart deduplication, changed request-policy expiry and refusal after source-owner demotion; (3) normal request denial, requester cancellation, review certification and valid HR refresh stop the old obligations while history remains. `tests/auth/directory.test.mjs` — "review reminders follow current reviewer consent and business calendars across restart with absence escalation": live delegation, absence and uncertain transport. `tests/integration/directory-browser.test.mjs` — "access decision and review journey: ordinary manager proof, request approval, immutable certification and unfinished removal, and retention controls at 1440 and 390" (implementation: `tests/integration/helpers/access-review-journey.mjs`): real Activity source records, normal source links, explicit consent saved through the settings form, responsive layout, accessibility and icon tooltips at 1440 and 390. `docs/follow-up.md`.

Implemented semantics: Current source doors are native pending access requests, open native review items and registered HR file feeds. Requests and review items resolve the current decider at dispatch; follow-up ownership never grants decision authority. Stale HR delivery reminders require the separately selected source-owner duty in an explicit audited policy write; registering a feed and existing reviewer consent grant no additional outbound consent. The source owner must retain current administrator authority and the registered version. Source completion, cancellation or expired request authority stops reminders without deciding access. Future source doors in AUTH-SCIM-002 and AUTH-HRIS-001, and additional request or review doors in AUTH-REQUESTS-001 and AUTH-REVIEWS-001, inherit the same adapter, current-authority, consent, stop and retained-history obligations before shipping.

**AUTH-FOLLOWUP-004 — Slack, Teams and Oncall follow-up channels (missing).** Through authorized Slack, Teams and Oncall test workspaces, deliver a reminder, decide a request from Slack and from Teams, and raise a security escalation to Oncall. A recipient whose binding or authority has lapsed receives nothing and the reminder escalates. Reminders contain no credentials and no links that act without their door's own proof.

Existing evidence and limits: Email only; no chat or Oncall adapters (depends on CHAT-001).

**AUTH-DELIVERY-001 — Email and SMS delivery operations (partial).** Configure SES and Twilio in authorized test accounts, enroll/recover a worker and observe accepted, bounced, throttled and unavailable outcomes. Prove tokens/credentials absent from logs/exports and a notification failure leaves the original access obligation unresolved.

SendGrid slice evidence: the two mail delivery tests in `tests/auth/notifications.test.mjs` prove signed recipient-bound reconciliation, durable suppression, provider and local throttling, unresolved enrollment on failure and no automatic uncertain-send replay. The mail delivery diagnostics journey in `tests/integration/security-settings-browser.test.mjs` loads `tests/integration/helpers/delivery-journey.mjs` for private delivery diagnostics at 1440 and 390. SES and Twilio live enrollment and recovery, shared-relay live delivery and bounce and full live archive qualification remain unproved. Conservative default adopted pending ct: suppression is private, excluded from archives and has no automatic expiry or self-service bypass.

Existing evidence and limits: src/auth/email.mjs; src/mail.server.mjs; tests/integration/http.test.mjs; tests/email-link.mjs — Base mail/outbox wiring and send-failure activity exist; SES/Twilio-specific setup and delivery reconciliation are missing.

**AUTH-OPS-001 — Operate a company identity service (partial).** Deploy to the supported production host, perform a rolling/key-certificate upgrade, fail a dependency, restore a backup and measure against each numeric objective: availability from synthetic sign-ins at one-minute intervals across a month, the restore's elapsed time against the 1-hour RTO and its newest recovered write against the 5-minute RPO, p95 authorization/SAML and token/UserInfo latency under a load of 50 sign-ins per second, and leaver processing against AUTH-TIMING-001. Trigger Uptime/Oncall escalation and reconcile the USD usage forecast to actual provider usage without exposing secrets.

Existing evidence and limits: AUTH-COMMANDS.md; scripts/installer/local.mjs; src/auth/keys.mjs — local command/recovery and key operations exist; hosted resilience, SLO measurement, region selection and usage forecasting are missing.

**AUTH-RECOVERY-002 — Emergency continuity and recovery drills (done).** Drill lost phone/key, unavailable upstream, expired signing certificate and restoration of an owner installation through the public account/CLI doors. Confirm ordinary workers cannot invoke emergency authority, cancellation wins against completion where applicable, all notices persist and used credentials cannot be replayed.

Existing evidence: `tests/auth/security.test.mjs` ("scheduled continuity drill exercises protected lost-factor recovery, upstream outage and expired signing-certificate replacement") proves a separately held backup administrator with redundant hardware, distinct higher-rank recovery approval, employee notices and mail for each change, signed delivery to the security owner across receiver outage/restart, cancellation after approval, lost-factor/recovery replay refusal, the required-upstream failure and protected administrator recovery, then a strict independent relying-party edge’s actual X.509 date refusal and manual signer replacement/old-trust refusal. `tests/integration/http.test.mjs` ("scheduled installation continuity drill restores an owner through real archive and local recovery commands without replaying authority") proves real CLI export/reset/import with separately held private configuration, no live archived authority, owner-only local emergency recovery with an atomic persistent notice, replaced hardware and old-token/link/factor replay refusal. `tests/auth/provisioning.test.mjs` ("a provider answering 429 and 503, or losing a response, is retried until it recovers with no duplicate account; a name collision waits for an administrator; drift is found across pages") supplies the connector recovery drill. `tests/integration/browser.test.mjs` ("real Auth pages: browser email, first setup, hardware passkey, people and account at desktop/mobile in both themes") now exercises pending/cancelled recovery at 1440 and 390. `pnpm run drill:continuity`, `.github/workflows/continuity.yml` and `docs/continuity-drills.md` preserve each failed and explicitly unmeasured step. AUTH-IDENTITY-001 already permits the local owner emergency token; the drill adds no approval exception or bypass. Isolated-employer archive restoration and hosted disaster recovery remain TRANSFER-002 and OPS-001, and inherit these drills before shipping. The certificate test edge’s strict date policy is explicit and is not attributed to every vendor.

**AUTH-RECOVERY-003 — Same-day help-desk recovery for employees (partial).** As help desk scoped to the employee's group, restore a non-admin employee with no recovery code through manager attestation, and another through a Persona check in an authorized test account, each from case opening to a newly enrolled passkey in under 1 hour. Refuse the path for an administrator, for an employee outside scope, without a recorded verification, and on reuse or after an hour of the enrollment link; see the revoked sessions and every notice.

<!-- contract-status:AUTH-RECOVERY-003 -->
Existing evidence and limits: `tests/auth/security.test.mjs` ("recovery waits 72 hours, notifies every session, supports cancellation and distinct admin approval", including `tests/auth/recovery-cases-flow.mjs`: manager-bound attestation, current manager and issuer sign-in policy, hardware-protected case reads, privileged group and app refusal, active-case link enforcement, cancellation and later administrator-reset enrollment, replay and expiry refusal, replacement passkey authentication); `tests/auth/directory.test.mjs` ("retention previews export before expiry and preserve held classes and unfinished work across restart", including dependent recovery enrollment cleanup); `tests/integration/directory-browser.test.mjs` ("organization and authority journey") — Manager-session attestation, scoped reset, native session and passkey revocation, digest-only case-bound single-use enrollment, employee and manager email notices, and the native passkey journey are implemented. Case reads require hardware proof beyond the employee's own cases, stored manager and issuer sessions recheck native sign-in policy, and privileged group and app assignments refuse the employee path. Closing a case or a later administrator factor reset voids incomplete enrollment requirements; active and expired case links retain their existing gates. Retention removes dependent enrollment capabilities before deleting selected closed cases. Persona or CLEAR qualification requires an authorized test account and consenting subject; remaining push or TOTP verification, temporary access pass and desktop PIN alternatives, real-device revocation, every enrolled-channel notification and live delivery remain unproved.
<!-- /contract-status -->

### Privacy, custody and Base replacements

**AUTH-ERASURE-001 — Authorized erasure with retained accountability (partial).** Erase a worker with multiple factors, imports, agent grants and SaaS access through the owner door; query/export all stores, inspect receipt and anonymized audit, and attempt restore of a pre-erasure archive with the later journal. Keep a blocked remote deletion visible, test legal hold and last-owner protection, then reset a local installation.

<!-- contract-status:AUTH-ERASURE-001 -->
Existing evidence and limits: `tests/auth/provisioning.test.mjs` — "owner erasure previews every store, honors legal holds, anonymizes decisions and keeps refused remote deletion visible"; "app erasure removes connector custody and protected organization reset retains only installation-owner anonymous outcomes and credential-free pending work"; `tests/integration/http.test.mjs` — "owner erasure fences a pre-erasure rer archive with its later journal, restores anonymous evidence and resets the local installation"; `tests/auth/fresh-proof.test.mjs` — "every sensitive action refuses a stale local email proof without change and succeeds after a fresh confirmation"; `tests/integration/directory-browser.test.mjs` — "organization and authority journey: switch employers, delegate a scoped reset, authorize a service and erase a worker at desktop/mobile"; `docs/erasure.md`; `src/auth/erasure/agent-custody.mjs`; production native-door proof (29 October 2026): paired root erasure HTTP 409, isolated-employer erasure HTTP 200 — Shared-door custody family is partial: root erasure refuses after signed binding or retained agent evidence until client mapping, redaction and retention are defined. Isolated-employer erasure remains native and proved.
<!-- /contract-status -->

**AUTH-ERASURE-002 — Per-person erasure across separate organization identities (partial).** Give one person isolated memberships A, B and C. Link A from proved sessions, refuse a link to B from a root session alone, and leave C unlinked. No administrator sees the link in UI, admin API or export. Installation-identity erasure commits without a membership check; only A gets a handle-only obligation; the root preview and receipt name no employer or count; the person's receipt shows A's notice and the unlinked sentence. Erasing an organization's creator leaves the organization.

Existing evidence: `tests/auth/security.test.mjs` — "voluntary independent identity pairs keep employer release notices private through installation erasure, holds, membership erasure and creator removal" proves the A, B and C independent two-passkey pairing, root, foreign and replay refusal, own-only export and unlink and administrator privacy, opaque A-only release, root preview and receipt privacy, durable owner obligation with holds and reopening, receipt and creator preservation. `tests/integration/directory-browser.test.mjs` — "identity release journey: two independent passkeys, private administration, opaque employer follow-up and erasure contact at 1440 and 390" passes through the built Worker at 1440/390 in light and dark, including the shared hover and focus tooltips. `docs/erasure.md`. CT 23 Oct approved the receipt key with riders and requires PARTIAL. The same HTTP journey additionally proves explicit own-passkey issuance, digest-only persistence, no sign-in or erasure or membership authority, body-only transport, opaque receipt fields, post-erasure self-revocation and retained expiry and revocation facts across maintenance and restart. The browser journey asserts opaque receipt fields and revocation through the built Worker. Gap: CT requires PARTIAL. Default ADOPTED pending CT: key possession plus explicit confirmation is the proof for surrendering only that key after sign-in ends. Pre-rider encrypted receipts resolve opaque fields only while the original notice survives; missing handles after an earlier employer reset cannot be reconstructed and access fails closed.

**AUTH-ERASURE-003 (partial).** Give one account a live session, an API key, a passkey, an OAuth client token with refresh token, a delegation it issued to a second account, and a grant another account issued to it. Before erasure each credential works. Erase the account: the same calls are refused at the very next request, with no grace window, and the delegation it issued stops working for its holders at their next call while the grant issued to it by the other account is removed. The audit row exists, holds the opaque id and the per-kind revocation counts, and a search of it for the account's email and name finds nothing. Restore an export and a backup taken before erasure: the erased account's credentials stay inactive and the account does not reappear, and the restore writes the same opaque-id audit row. Force one revocation step to fail: the erasure aborts and every credential still works. Each refusal is asserted beside its positive case, and removing any revocation (sessions, keys, passkeys, OAuth tokens, delegations) fails its own assertion.

Existing evidence: the named owner-erasure journey in `tests/auth/provisioning.test.mjs` proves live sessions, preparer keys, passkeys and client OAuth authority beside their next-request refusals, an injected storage failure with rollback, and the opaque audit with kind counts and no name or email. The native offline journey in `tests/auth/oidc-apps.test.mjs` proves independently live access and refresh credentials, rollback, next-request refusal after erasure and nonzero refresh revocation counts. The person-consented assignment journey in `tests/auth/agents-proposals.test.mjs` proves matched one-use resource successes beside issuer and holder erasure refusals, removed grants, usable resource authority after storage-failure rollback and nonzero delegation revocation counts. The archive journey in `tests/integration/http.test.mjs` proves the post-erasure archive preserves the same opaque audit and does not restore the erased passkey; the organization-and-authority journey in `tests/integration/directory-browser.test.mjs` covers erasure screens at 1440 and 390. Remaining: AUTH-TRANSFER-002 receives the unproved assertion that restoring a pre-erasure product export or backup never revives the erased account or any credential, drops erased records and replays the same opaque audit. Its required Base staged journal hook is not in released rer 0.2.80; the current whole-archive refusal does not prove that assertion. Kind counts describe durable credential authorities rather than every signed stateless token string. Platform-operator backups outside the product remain excluded. AUTH-ERASURE-002 receipt semantics are unchanged.

**AUTH-RETENTION-001 — Explicit retention and secret custody (partial).** On a default installation, confirm 13-month audit retention; try to set it to 30 days and be refused; open a review over a period and see its events kept past their expiry. Populate every retained class, age it across each configured expiry, restart and inspect the public history/export doors: transient secrets expire, retained history and unresolved obligations remain, held data is preserved and scheduled deletion produces accountable results. Rotate a connector/signing key and verify secrets absent from logs/assets/archive.

Existing evidence and limits: `tests/auth/directory.test.mjs` — retention previews export before expiry and preserve held classes and unfinished work across restart; `tests/auth/provisioning.test.mjs` — scheduled retention expiry preserves erasure audit verification while altered expiry commitments fail; `tests/auth/retention-flow.mjs`; `tests/auth/retention-integrity-flow.mjs`; `docs/retention.md`; `src/auth/retention/index.mjs`. Gap: Eight-class retention, calendar default/bounds, review/request/investigation/legal holds, pre-delete export, restart/concurrent cleanup and authenticated expiry built. Default ADOPTED pending ct: scheduled expiry waits for an explicit audited policy confirmation; non-audit classes inherit 13 months; terminated profiles anonymize while identity/state remain; whole-employer erasure holds and unfinished-period holds; seven-day export window and 200-row batches. Deployment region/processors disclosed, not independently verified.
Secret/archive journey: `tests/integration/http.test.mjs` ("owner erasure fences a pre-erasure rer archive with its later journal, restores anonymous evidence and resets the local installation") rotates signing/connector custody through public doors, excludes current and previous credentials and all private columns from actual rer archives/logs/assets, and restores review parent/snapshot records.
Browser journey: `tests/integration/directory-browser.test.mjs` ("access decision and review journey: ordinary manager proof, request approval, immutable certification and unfinished removal, and retention controls at 1440 and 390").

**AUTH-TRANSFER-002 — Complete workforce portability (partial).** Create a populated workforce installation, export/import/export through rer and compare every declared portable record. Refuse corrupt/foreign/unknown schema and nonempty destination; restore with later erasure journal, confirm all jobs/grants are inactive, then reauthorize one connector and verify exactly its approved work resumes.

Existing evidence and limits: `scripts/installer/transfer.mjs`, `src/auth/stores.mjs` and `src/auth/links/grant-map.mjs` use the shared explicit portable inventory and exclude installation-local credentials, sessions and sealed remote work. `tests/auth/linking.test.mjs` ("an app links with a one-use token, signs a person in through Auth, and Sign out everywhere ends that app session") covers identity continuity; `tests/integration/http.test.mjs` ("owner erasure fences a pre-erasure rer archive with its later journal, restores anonymous evidence and resets the local installation") contains the real rer fence/restore journey. The actual archive journey passes at `64d257be` in Verify Auth `39703632411`. Whole-archive refusal when given a later erasure journal is an accepted interim; complete inactive workforce/grant/job restoration, validation/conflict preview, destination organization schemas and receiving-owner reauthorization remain obligations, so this clause stays partial.

## Push further: agents serving workforce identity

**AUTH-AGENT-001 — Agent-led SaaS onboarding (partial).** Ask the agent to onboard Slack and a generic SAML/SCIM SaaS, approve a scoped configuration diff, and run a real assigned employee through sign-in/provision/change/revoke. Inject malicious vendor text, stale settings and withheld domain consent; prove no unauthorized change and a blocked readiness state with an actionable next step.

Existing evidence and limits: src/auth/agents/app-kinds.mjs; src/auth/agents/approval.mjs; tests/auth/agents-proposals.test.mjs — exact human-approved RER link proposals exist; native SaaS onboarding remains unbuilt. Model access and the held Slack app are available. BLOCKED: the required generic SAML and SCIM SaaS acceptance journey needs an authorized tenant and assigned employee that this run does not hold. Scoped vendor setup, real employee sign-in, provisioning, change and revocation, plus malicious metadata, stale settings and withheld domain-consent readiness proof remain unproved. No substitute tenant establishes this acceptance point.

**AUTH-AGENT-002 — Diagnose and repair broken sign-in (done).** Break a callback, expire a certificate and fail recovery mail on separate app journeys; ask the agent to diagnose with source citations, approve a repair and verify end-to-end behavior. Deny approval and inject untrusted trace instructions, confirming no configuration or authority changes.

Existing evidence: `tests/auth/agents-proposals.test.mjs` — "sign-in diagnosis cites approved facts and exact repairs restore callback, expired certificate and recovery mail journeys through sign-in and logout" proves each broken journey, cited diagnosis, exact owner passkey approval, repair and complete scoped OIDC or signed SAML sign-in and logout with denied next requests. It also proves that a repeated mail failure stays failed, a successful resend occurs once to the verified recipient, and recovery delay, approval and factors remain unchanged. "diagnostic consent, denied approval, untrusted instructions, unknown citations, uncertainty and stale targets cannot change configuration or authority" proves denied consent and approval, rejected raw trace instructions and model authority instructions, unknown citations, provider outage, uncertain diagnosis and stale approval including a target changed during the model call. `tests/integration/agents-browser.test.mjs` — "sign-in repair journey: owner snapshot consent, cited exact diff, passkey approval, employee callback and uncertainty at 1440 and 390" proves the actual owner form, cited before and after, passkey approval, repaired callback and employee sign-out, uncertain next action without approval, accessibility and delayed hover with immediate keyboard-focus icon tooltips. `scripts/diagnostic-probe.mjs` runs the same independent protocol consumers against the exact approved proposal and employee, outside model context. `docs/agent-diagnostics.md` documents consent, supported repairs, custody and honest unverified outcomes. A held-key Anthropic Messages call through the public diagnosis route returned a cited callback repair (provider request `msg_011CgPhRMW3c7neioSmd8X1a`, 25 October 2026); provider transport alone does not prove working access. No acceptance gap remains. Unsupported repair or probe profiles stay unverified; uncertainty has a next diagnostic action and cannot be approved.

**AUTH-AGENT-003 — Find orphaned and excessive access (partial).** Feed real approved connector data containing a departed worker’s remote account, an excessive role and an unused but required emergency grant. Review the cited findings, approve only the first two, and verify downstream state plus the worker’s allowed tasks; stale data or changed employment invalidates the proposal.

Existing evidence and limits: src/auth/agents/preparer.mjs; src/auth/agents/approval.mjs; tests/auth/agents-proposals.test.mjs — allow-listed inventory and human-approved suspension/domain proposals exist; cross-app usage analysis and regression verification do not.

**AUTH-AGENT-004 — Person-bound delegated agent identities (done).** Authorize an agent to update one approved app assignment until a fixed deadline, invoke its target API/MCP tool and inspect attribution. Deny another person, purpose, resource, target, scope, expired grant and replay/substitution; show and revoke the active grant in My account and prove its next request is refused.

Existing evidence: `tests/auth/agents-proposals.test.mjs` — "a person-consented agent changes exactly one employer assignment after independent employer approval; substitutions, replay and every local ending deny its next request": real private-key OAuth and DPoP, one existing assignment and fixed deadline; concrete consent and independent passkey approval; agent/person/approver execution and refusal attribution through Activity; person/purpose/resource/target/scope/deadline substitutions, expiry and replay; human-cookie and publicly minted preparer-key refusal at token and execution doors with no token or assignment change; forged client/grant claims retain attempted identifiers without verified attribution; refused scope/resource requests exhaust a bounded per-agent proof budget, return 429 without verified attribution and recover after its window; My account inventory, revoke/next-request denial and reversal request; `tests/integration/agents-browser.test.mjs` — "agents journey: mint a key, an agent files a suspension, a person approves with a passkey, the session ends and Activity records it, at desktop/mobile in both themes": consent, approval, My account and Activity at 1440/390; `docs/delegated-agents.md`. CT 22 Oct approved the native profile; the token-door and refusal-audit gaps identified in its 03:46 re-read are now asserted. Unknown attempted IDs never supply verified attribution. AUTH-AGENT-006 separately proves registered external API/MCP POST tasks; this native profile remains bound to its original assignment target.

**AUTH-AGENT-005 — Verify revocation everywhere (partial).** Revoke a delegated grant and offboard its accountable worker while one SaaS is offline and another offers no session-revocation API. Prove immediate Auth denial, enumerate all derivatives, resume verification after restart/provider recovery and retain the manual exception until a person resolves it; every final claim must match a remote read/probe.

Existing evidence and limits: src/auth/links/logout.mjs; src/auth/agents/keys.mjs; tests/auth/linking.test.mjs; tests/auth/agents-keys.test.mjs — local key revocation and RER fences exist; app-wide delegated-credential inventory and verified remote reconciliation are missing.

**AUTH-AGENT-006 — External and MCP delegated task identities (done).** Register a test MCP server and an external API. Authorize one tool and one operation for one person. At each resource, deny an unregistered audience, another tool or operation, scope, person, replay and an expired grant. Revoke in My account and prove the next call is refused.

Existing evidence: `tests/auth/agents-proposals.test.mjs` — "registered MCP and external API resources execute one person-consented task; operation, person, scope, audience, replay, expiry and live revocation are enforced at each resource" proves both registered resources, exact tasks and all acceptance refusals through independent HTTP handlers using `packages/delegated-resource/index.mjs`, plus concurrent one-use consumption, current authority and person erasure. `tests/integration/agents-browser.test.mjs` — "agents journey: mint a key, an agent files a suspension, a person approves with a passkey, the session ends and Activity records it, at desktop/mobile in both themes" proves both resource tasks in My account, consent, independent approval, inventory/revocation and hover/focus tooltips at 1440 and 390 in both themes. `docs/delegated-agents.md` declares the bounded POST profile, errors, live resource enforcement, key replacement and unknown remote outcomes. No acceptance gap remains for this profile.

105 clauses: **37 done / 51 partial / 17 missing**. A completed request, review, lifecycle plan or agent job must satisfy every affected app’s end state; provider acknowledgment or local queue success alone is insufficient.

## Retained implementation checks and historical outcomes

The independent Auth slice has tests through real D1 and the emitted Worker. `tests/auth/security.test.mjs`, `protocol.test.mjs` and `upstreams.test.mjs` exercise browser-bound proof, passkey policy, recovery, encrypted ES256/RS256 signing-key lifecycle, PKCE/private-key JWT protocol behavior and signed upstream responses. Domain-policy coverage includes required-provider management, owner exemption, excluded email/passkey routes, current policy at code redemption, provider removal/configuration changes, exact-domain enrollment and retained provider evidence through email, passkeys and recovery. `recovery-cli.test.mjs` exercises real local wrangler and private recovery-token storage. These are implementation checks, not OpenID certification.

`tests/integration/http.test.mjs` proves the real runtime/mail/outbox wiring, owner bootstrap versus Auth authority, inherited Base route denial, per-request private authorization, native confirmation, first-run completion and publication of real public signing keys. The retained `tests/email-link.mjs` now proves Auth sessions and browser-bound links instead of inherited Base email-cookie behavior. `tests/runtime.mjs` now expects the root to redirect to sign-in instead of serving a public placeholder.

`tests/integration/browser.test.mjs` exercises actual Auth pages, email confirmation, first setup, native Chromium passkey enrollment/authentication, people invitation/domain/suspension and recovery cancellation. It checks the five private pages at 1440 and 390 in light and dark, with axe serious/critical violations required to be zero. CI installs Chromium before running them. Test success must be read from the run evidence; having these tests alone is not acceptance.

Run `rer check --profile first-party`, `pnpm typecheck`, and the appropriate targeted tests after changes. `rer verify` is the complete seed check. `tests/auth/userinfo.test.mjs` exercises real signed access tokens and scoped GET/POST UserInfo, expiry, issuer/audience/type/subject/client/session refusal, sign-out revocation, account/client/policy changes and RS256 key publication/retirement. The existing ID-token flows still prove nonce, issuer, audience, pairwise subjects and one-time owner claims. The old ID-token-only assertion is replaced by the approved access-token response; no refusal or claim assertions were weakened.

`tests/auth/authorization-policy.test.mjs` adds one HTTP regression for each authorization-policy requirement: sessions ending with the email proof and returning through email re-proof to the app; prompt/max-age active authentication with fresh `auth_time`, silent refusal, continuation binding/expiry/replay and upstream SSO followed by a local email confirmation; and discovery matching explicit request-object refusals with callback validation. No previous test is weakened or removed, and no wider Basic OP or logout profile is introduced.

Run site (run-auth.com, HOMEPAGE-VARIANTS.md): `tests/site/run-site.test.mjs` builds it with `rer build --site` and checks that the homepage's Run Auth action opens `/run`, that it links no installed-instance route, and that every guide `docs/site.json` lists is built. `rer build --site` itself refuses broken links, instance-only routes, other origins and installation data. Its deploy (`.github/workflows/run-site.yml`) stays off until the repository variable `RUN_SITE_DEPLOY` is `true`.

Move-in (MOVE-IN.md): `tests/auth/move-in-staging.test.mjs` stages each source's documented export (Google CSV and JSON, Entra CSV, Auth0 CSV and NDJSON, Okta Users API JSON, JumpCloud CSV and JSON) through the staging route, refuses the hostile set and oversize or unknown files, proves staging leaves people, sessions, grants and mail untouched apart from one Activity entry, and flags every review class. `tests/auth/move-in-admission.test.mjs` proves admission through the admin route (member, email-only, signed-out and stale-proof sessions refused; invited members with no proof, right, session or mail; the owner's address and matching emails change nothing), undo (untouched person removed, signed-in and granted people kept and named), and that an Auth0 former subject is refused by UserInfo and the token endpoint and never becomes the pairwise subject. `tests/integration/move-in-browser.test.mjs` runs the 30-row Google journey at 1440 and 390 in light and dark with axe serious/critical at zero. Fixtures are hand-written from provider documentation (tests/fixtures/move-in/README.md); no provider account or live tenant was used, so live cutover is not accepted. Export carries the former subject map with the signed grant map (below).

Agents (AUTH-ADMIN-001): `tests/auth/agents-keys.test.mjs` proves minting, renewal and revocation through the admin routes (no-session, member, email-link-only and stale-proof sessions refused; expired, revoked and orphaned keys refused on the next request; the key absent from listings, Activity, every stored row and the test process's output) and that a key opens nothing but the preparer API while a session cookie is no key. `tests/auth/agents-proposals.test.mjs` parses the inventory from a populated store against an allow-list of field names, files and approves each proposal kind (filing leaves people, sessions, apps, links, rules and mail unchanged), and proves approval rules: passkey signature by the approver in the session that asked, replay, stale targets with what changed, expiry, rejection, concurrent approvals held at a commit barrier, a revoked key's pending proposals, owner and self-suspension refusals. `tests/integration/agents-browser.test.mjs` runs mint, file, review, passkey approval and Activity at 1440 and 390 in light and dark with axe serious/critical at zero. `remove_app_link` is proven the same way; `approve_app_link` reads the app's own documents when filed and again at approval.

Linking (AUTH-LINK-001, AUTH-LOGOUT-001, AUTH-TRANSFER-001, LINKING.md): `tests/auth/linking.test.mjs` links an app Worker built only from Base's own app side with a one-use link token (a replayed token refused), signs a person in to it through Auth, and proves Sign out everywhere ends that app session. On 13 Oct 2026 a fresh clone of Spool, whose setup declares the optional `oidc-provider@1` dependency, linked a fresh local Auth install through `rer setup --non-interactive` and a person signed in to it through Auth at 1440 and 390 (screenshots and network log kept with the task evidence). The same run proved, through HTTP: a replayed redeem code, a second concurrent redemption, a link token reused or presented for another origin, a key swap without continuity, a version downgrade before owner approval, and loopback or plain-http origins on a production install, each refused; Sign out everywhere and suspension ending Spool sessions (200 before, 401 after); a replayed logout token refused at Spool (409) while a fresh one is accepted; and `rer export` into a fresh install with `rer import`, after which Spool re-linked with the same client, sector and pairwise subject. Hosted acceptance, a public release and certification are not claimed.

OpenID conformance, 13 Oct 2026, Auth `9915adf`: the unchanged release-v5.3.2 suite through `tests/conformance` (listener on 127.0.0.1, browser automation for the authorization and logout pages). **Config OP PASSED**: `oidcc-discovery-endpoint-verification` PASSED. **Back-Channel Logout OP** (code, static client, the plan's own client_secret_basic variant): `oidcc-backchannel-logout-discovery-endpoint-verification` now PASSED (Auth advertises `end_session_endpoint`, `backchannel_logout_supported` and `backchannel_logout_session_supported`); `oidcc-backchannel-rp-initiated-logout` FAILED at `EnsureServerConfigurationSupportsClientSecretBasic`, the kept strict profile (private_key_jwt and mandatory PKCE), as decided. No expectation annotations were added and the profile was not widened.

OpenID conformance, 12 Oct 2026: the unchanged OpenID Foundation release-v5.3.2 suite ran through `tests/conformance` against real local Workerd/D1 Auth with signed access tokens and UserInfo. **Config OP PASSED**: its discovery module PASSED, runner exit 0, no warnings, reviews or skips. **Back-Channel Logout OP FAILED**: with Auth's private_key_jwt variant the suite refuses to create the plan (HTTP 400, the plan fixes client authentication); with the plan's own variant (code, static client, client_secret_basic) both modules FAILED. `oidcc-backchannel-logout-discovery-endpoint-verification` finds no `backchannel_logout_supported`, `backchannel_logout_session_supported` or `end_session_endpoint`; `oidcc-backchannel-rp-initiated-logout` fails `EnsureServerConfigurationSupportsClientSecretBasic` and then sends an authorization request without PKCE, which Auth refuses with HTTP 400. **Basic OP not run**: plan creation HTTP 400 for private_key_jwt. Config's native configuration declares the required `rer_interfaces` extension through upstream's `server.allow_unexpected_metadata_fields`; structural validation and every protocol condition remain active, with no expected-failure or skip annotations.

Back-Channel Logout OP can pass only with client_secret_basic for the test client and authorization without PKCE, which widen the approved private_key_jwt and mandatory-PKCE profile (the same decision that holds Basic OP); the end-session endpoint and signed `logout_token` sender it also needed now exist. An earlier unchanged static Basic diagnostic exported two FAILED results (`EnsureServerConfigurationSupportsClientSecretBasic`) and was stopped after an ordinary Basic authorization request without mandatory PKCE returned Auth HTTP 400; it is incomplete, not certification.

**BASE-AGENT-001 — One MCP door per seed (partial).**

*Tier:* Agent surface

**Requirement.** Every seed, hosted or self-hosted, serves one remote MCP endpoint at `/mcp` over Streamable HTTP. It speaks the current revision (2026-07-28) and accepts 2025-11-25 clients through the twelve-month deprecation window. It implements `server / discover`, tools, resources and prompts. Lists are deterministic and carry `ttlMs` and `cacheScope: "private"`. Roots, Sampling and Logging are not served.

**Acceptance.**
1. `server / discover` returns the supported versions, capabilities, `serverInfo` and instructions.
2. A 2026-07-28 request works with no handshake, and a 2025-11-25 client completes `initialize` and lists the same tools.
3. An unsupported version returns `UnsupportedProtocolVersion`.
4. Two `tools / list` calls return the same order, with cache fields.
5. A foreign Origin returns 403, and a header and body method mismatch returns `HeaderMismatch`.
6. An oversized body returns 413 with no effect.

<!-- contract-status:BASE-AGENT-001 -->
Existing evidence and limits: `agent-surface.json`; `src/agent-door`; `tests/agent-door/initialize-owner.mjs` — installed rer 0.2.87 production-door conformance: 1024/1024 PASS (29 October 2026); `docs/shared-agent-door.md` — Shared transport exercised in the 1024-point production-door journey; UI parity, generated /docs/agents and full native job coverage remain undeclared.
<!-- /contract-status -->

**BASE-AGENT-002 — The seed's jobs are tools, through the UI's own actions (partial).**

*Tier:* Agent surface

**Requirement.** Each Core job a person does in the product is a tool. Where one is not, the Agent surface says why: it runs on a device, it is a person's interactive screen, it belongs to a connector or the import door, or it is an installation fact. Risk is never the reason: a risky job is a tool with its class (BASE-AGENT-006). Tools are named `<seed>.<area>.<verb>` and declare input and output schemas and truthful annotations. Each calls the same server action as the UI, so validation and authorization are written once, and the seed's embedded agents use the same registry. A business refusal returns `isError` with the seed's stable error code.

**Acceptance.**
1. The Core clause ids in each tool's `_meta`, with the not-a-tool reasons that `server / discover` serves, cover every Core clause in the contract, and no reason is risk; the harness and `rer check` fail on a gap.
2. Each tool's fixture result validates against its `outputSchema`.
3. Read tools declare `readOnlyHint`; tools that can carry destructive declare `destructiveHint`, and tools that can carry external declare `openWorldHint`.
4. A refusal returns the same error code the UI gets for the same action.
5. The UI action and its tool, on the same fixture, give the same record state and the same audit event type.
6. The seed's embedded agents appear in the audit as calls to the same tools.

<!-- contract-status:BASE-AGENT-002 -->
Existing evidence and limits: `agent-surface.json`; `src/agent-door`; `tests/agent-door/initialize-owner.mjs` — installed rer 0.2.87 production-door conformance: 1024/1024 PASS (29 October 2026); `docs/shared-agent-door.md` — CORE registry is bounded to identity inspection and internal groups; remaining native tool families in the ct identity-steward table are undeclared. Group-dependent app claim and subject mappings remain outside the core membership boundary.
<!-- /contract-status -->

**BASE-AGENT-003 — Records are resources (partial).**

*Tier:* Agent surface

**Requirement.** Each primary record type has a URI template, and tools return `resource_link`s to the records they touch. A read returns exactly the fields the caller's role sees in the UI. File bytes count against any byte budget on the grant. A record the caller cannot open reads as not found, identical to a missing id. Text from customers, imports or files carries an untrusted marker in `_meta`.

**Acceptance.**
1. `resources / templates / list` names every record type in the Agent surface.
2. Reads as two roles return exactly what the UI shows each.
3. An out-of-scope id and a missing id give identical responses.
4. A write's `resource_link` reads back the new state.
5. Bytes over budget return `budget_exhausted` and no partial content.
6. Customer-sourced text carries the untrusted marker.

<!-- contract-status:BASE-AGENT-003 -->
Existing evidence and limits: `agent-surface.json`; `src/agent-door`; `tests/agent-door/initialize-owner.mjs` — installed rer 0.2.87 production-door conformance: 1024/1024 PASS (29 October 2026); `docs/shared-agent-door.md`; `tests/auth/agents-keys.test.mjs` — machine directory and company-app commands share native lifecycle planning, dynamic membership, safe paginated reads and optimistic updates, extended by `tests/agent-door/untrusted-results.mjs` — untrustedGroupResults: autonomous and held policy, marked result and linked content, unchanged policy, refused self-escalation and missing write scope, marked successful replay — Resources family is partial: redacted people/groups/apps only; organization, request, review, obligation, task and native-event resources are undeclared.
<!-- /contract-status -->

**BASE-AGENT-004 — Business identity and short-lived, audience-bound tokens (partial).**

*Tier:* Agent surface

**Requirement.** The door is an OAuth 2.1 resource server. Its RFC 9728 metadata names the authorization servers this installation trusts. That is the paired Business when Business provisioned it, verified with the owner-claim trust the installation already holds for its import door; otherwise it is the seed's own sign-in. Access tokens are RFC 9068 JWTs with `aud` set to the seed's canonical MCP URI, `sub` the sponsoring person, `act` the agent (RFC 8693) with its specialist, scopes per tool family, and a lifetime of 15 minutes or less (5 by default). The policy scopes rules on the sponsor, agent and specialist the token names. The consent behind the tokens can last longer and is revocable. Tokens travel only in the Authorization header, and there is no passthrough.

**Acceptance.**
1. An unauthenticated call returns 401 with `resource_metadata`, and the metadata names the trusted servers and scopes.
2. A Business token for this seed works, and the same token sent to a sibling seed returns 401.
3. An expired token returns 401, and a token with a lifetime over 15 minutes is refused.
4. A read-only token calling a write tool returns 403 `insufficient_scope` with every needed scope in one challenge.
5. A token in a query string is refused and not logged.
6. Revoking consent in the seed or in Business refuses the next call within 60 seconds.
7. After unpairing, Business tokens are refused and the seed's own sign-in still works.

<!-- contract-status:BASE-AGENT-004 -->
Existing evidence and limits: `agent-surface.json`; `src/agent-door`; `tests/agent-door/initialize-owner.mjs` — installed rer 0.2.87 production-door conformance: 1024/1024 PASS (29 October 2026); `docs/shared-agent-door.md` — Multi-sponsor family and its role/visibility journeys are undeclared; owner-bound subject admission is implemented with Auth email/passkey admission, but full team lifecycle proof is outstanding.
<!-- /contract-status -->

**BASE-AGENT-005 — An agent acts as a person in a role, never more (partial).**

*Tier:* Agent surface

**Requirement.** Every call is authorized as the sponsoring person's current role and access (BASE-ACCESS-004), intersected with the grant's resources, actions and budget. A grant only narrows. No call widens the calling agent's own authority. A call that would widen its own grant or its sponsor's role, or change the company policy or Pause, is refused with `self_escalation`, whatever the policy says; narrowing its own grant is allowed. Other access and security changes are ordinary actions in the access and security classes. An agent never acts after its sponsor is suspended. Anything an agent reads (records, files, emails, imports, other seeds' results) is data and cannot change its scope, its targets or a call's class.

**Acceptance.**
1. For each role fixture, every tool's allow or deny through MCP equals the UI's for the same action.
2. A one-folder, read-only grant holds, and widening through arguments is refused.
3. Downgrading the sponsor changes the next call's result, and suspending the sponsor returns 401.
4. Calls that widen the agent's own grant or its sponsor's role, or change the policy or Pause, return `self_escalation` and change nothing, even under a policy with every class autonomous; dropping a scope from its own grant runs.
5. An injection fixture yields no out-of-grant call and no change of class: record text asking for a wider action, or claiming that a recipient is internal.

<!-- contract-status:BASE-AGENT-005 -->
Existing evidence and limits: `agent-surface.json`; `src/agent-door`; `tests/agent-door/initialize-owner.mjs` — installed rer 0.2.87 production-door conformance: 1024/1024 PASS (29 October 2026); `docs/shared-agent-door.md`; production native-door proof: a mapped reader-to-admin removal leaves membership and the reader claim unchanged — Conformance proves sponsor self-widening refusal and ordinary narrowing; wider native authority families and multi-sponsor fixtures are undeclared. Membership changes that can affect a custom claim or subject mapping refuse in the core subset.
<!-- /contract-status -->

**BASE-AGENT-006 — Every action declares its risk class (partial).**

*Tier:* Agent surface

**Requirement.** Classes come from the fleet list in RISK-POLICY.md: standard, external, money, commitment, accounts, gated, access, security, destructive, sensitive and live. In the registry, each tool declares the classes it can carry and a server-side classifier that decides them per call from the arguments, current records and, for gated, the provider's answer. The classifier also supplies each class's facts: the measure (items, recipients, amount and currency, people or records), the counterparty (internal, known, new or public), the direction for access, the provider and step for gated, and the data kind for sensitive. A classifier never reads a flag, label or claim supplied by the agent or by record text. A seed cannot add a class; it proposes one for the fleet list.

**Acceptance.**
1. Every tool in `tools / list` carries its possible classes in `_meta`, equal to the Agent surface table.
2. For each tool, fixture calls cover every class it can carry, and the computed classes and facts equal the fixture's expected values.
3. An argument or record text asserting a class or a confirmation (`internal: true`, `confirmExternal: true`) leaves the computed classes unchanged.
4. Money calls carry amount and currency, external calls their counterparty and recipient count, access calls their direction, and destructive calls their item count.
5. No tool in `tools / list` declares a class outside the fleet list, and `rer check` fails on one.
6. A refused call's audit row still records its computed classes.

<!-- contract-status:BASE-AGENT-006 -->
Existing evidence and limits: `agent-surface.json`; `src/agent-door`; `tests/agent-door/initialize-owner.mjs` — installed rer 0.2.87 production-door conformance: 1024/1024 PASS (29 October 2026); `docs/shared-agent-door.md` — Only standard/access effects are declared; provider, money, commitment, accounts, gated, security, destructive, sensitive and live effect families are undeclared.
<!-- /contract-status -->

**BASE-AGENT-007 — The company's policy decides, at one chokepoint (partial).**

*Tier:* Agent surface

**Requirement.** Every agent door calls one decision function: MCP, the integration API with agent tokens, and the seed's embedded agents. It evaluates the call's classes against the company's policy, as above. The seed ships no dispositions and fills no gap with one: agent access opens only under a complete policy that setup has asked for (RISK-POLICY.md), and before then every agent call returns `policy_unset` with the setup link and changes nothing. *Autonomous* runs the call. *Review* runs it and adds it to the review feed. *Approval* saves a pending action with server-computed facts and returns `input_required`, with a URL-mode elicitation to the seed's approval page and a pending handle. Each person the rule names approves the exact saved revision in a signed-in browser, and changed inputs need a new approval. The retried call returns the result and a receipt. A rejection returns `approval_rejected`, and a lapse past the wait the rule sets returns `approval_expired`. *Blocked* returns `policy_blocked`, naming the class, rule and revision.

**Acceptance.**
1. The Base harness runs each tool under each disposition for every class it can carry, and sees it run, run and enter the review feed, wait with no effect, or be refused.
2. Before setup is complete, the setup page lists every class the seed's tools carry with examples and no answer pre-selected, an agent call returns `policy_unset` with the setup link and changes nothing, and an incomplete revision cannot be confirmed; a `*` rule completes it, and a tool an upgrade adds with an unanswered class appears in `tools / list` once that class is answered, while the other tools keep running.
3. Under "money autonomous up to $500, approval up to $10,000, blocked above", calls of $400, $600 and $20,000 run, wait and are refused; a per-day cap sends the call that crosses it to the next rule.
4. A call carrying two classes takes the stricter disposition.
5. An approval shows server-computed facts and an expiry, returns the URL elicitation and a handle, and completes once after the named approver approves; a changed input needs a new approval, and a rejection or lapse leaves no effect.
6. The same call through MCP, the integration API and an embedded agent gets the same decision.
7. A policy change applies to the next call within 60 seconds, and the audit cites the new revision.
8. A policy document with a bad signature or another Business's id is rejected, and the door keeps the last valid revision.

<!-- contract-status:BASE-AGENT-007 -->
Existing evidence and limits: `agent-surface.json`; `src/agent-door`; `tests/agent-door/initialize-owner.mjs` — installed rer 0.2.87 production-door conformance: 1024/1024 PASS (29 October 2026); `docs/shared-agent-door.md` — Core policy, approval, Pause and revocation journey is green; optional provider/spend and full native job families are undeclared.
<!-- /contract-status -->

**BASE-AGENT-008 — Truthful attribution (partial).**

*Tier:* Agent surface

**Requirement.** Every agent act is recorded and shown as `"<agent> for <person>"`, and mail and messages an agent sends outside name it that way as their sender. An approval, a review mark, a confirmation (a warning dialog, a typed-field confirmation, a delivery confirmation), a decision or a signature attributed to a person comes only from that person's signed-in session. When an agent does the equivalent act, the record names the agent, and the act carries its own class; a binding decision or a signature is commitment. Agent doors ignore arguments that stand for a person's confirmation. No tool solves a bot check, or enters a person's own password or 2FA code at an outside service. A provider step that demands a person goes to a person, whatever the policy says; the gated class marks such steps before they run.

**Acceptance.**
1. An agent call carrying a person-confirmation flag is classified and decided exactly as without it.
2. Approving, marking reviewed or answering a policy question with an agent or device token returns 403 and changes nothing.
3. A form-mode elicitation "accept" never completes an approval.
4. Where an agent's decision, signature or field confirmation runs without a person, it reads `"<agent> for <person>"` in the record, the activity view, exports and any certificate, never as the person's own act.
5. After a person approves an agent's prepared action, the record shows the person as approver and the agent as preparer.
6. Activity and exports at 1440 and 390 show `"<agent> for <person>"` for every agent act.
7. Mail an agent sends to an outside address names `"<agent> for <person>"` as its sender.

<!-- contract-status:BASE-AGENT-008 -->
Existing evidence and limits: `agent-surface.json`; `src/agent-door`; `tests/agent-door/initialize-owner.mjs` — installed rer 0.2.87 production-door conformance: 1024/1024 PASS (29 October 2026); `docs/shared-agent-door.md` — Native group Activity records agent for sponsor and named approvers; outbound, native Undo and other mutation families are undeclared.
<!-- /contract-status -->

**BASE-AGENT-009 — Every agent action is audited with its class and decision (partial).**

*Tier:* Agent surface

**Requirement.** Extending BASE-OPS-005, each call that reads private data or changes anything records the agent client, name and specialist, and the run or task id (`traceparent` when sent); the sponsoring person, the grant, the tool and the targets; the classes and their facts, and the policy revision and rule; the decision (autonomous, review, approval, blocked, unset or self_escalation) and the outcome (done, refused, pending or failed); the approval or review id and person, and the idempotency key. For a period, the seed's Agents page shows actions by class and decision with the notable ones, the review feed (Mark reviewed, Flag, and Undo where reversible), pending approvals, steps waiting for a person and setup questions. Business shows the same across seeds.

**Acceptance.**
1. One write leaves a complete audit row.
2. Refused, pending, unset and self-escalation calls are audited.
3. The Agents page's counts by class and decision equal the audit rows on a fixture week.
4. The review feed lists exactly the calls decided as review; Mark reviewed records the person, and Undo restores a reversible one.
5. Filtering by agent or class lists only those rows, and export includes every field.
6. Removing the agent keeps its rows and its name.
7. The Agents page works at 1440 and 390 with no serious or critical axe findings.

<!-- contract-status:BASE-AGENT-009 -->
Existing evidence and limits: `agent-surface.json`; `src/agent-door`; `tests/agent-door/initialize-owner.mjs` — installed rer 0.2.87 production-door conformance: 1024/1024 PASS (29 October 2026); `docs/shared-agent-door.md` — Core audit reconciles all declared calls with differs_from_policy zero; wider native job families are undeclared. Native erasure retains a closed custody exception after pairing.
<!-- /contract-status -->

**BASE-AGENT-010 — Agents can follow changes (partial).**

*Tier:* Agent surface

**Requirement.** The seed emits a typed event for every record change and for every approval, review and policy decision. Each event carries a stable id, a type, the record URI, the actor (a person, or an agent acting for a person) and a time. Events never carry secrets or more than the subscriber may read. Agents can read events three ways: `subscriptions / listen`, an `events.list` tool with a cursor, and signed webhooks from Base `integrations` using the same ids. Every channel delivers at least once and filters by access at delivery.

**Acceptance.**
1. A subscribed record changed in the UI produces a notification within 10 seconds.
2. `events.list` returns the same event id the webhook carries.
3. Replaying from a cursor returns the same ids in order.
4. After access is revoked, no channel delivers events about that record.
5. A failed webhook is visible and replays without duplicate effects.
6. `approval.pending`, `approval.decided`, `review.flagged` and `policy.adopted` carry the class and decision and nothing the subscriber may not read.

<!-- contract-status:BASE-AGENT-010 -->
Existing evidence and limits: `agent-surface.json`; `src/agent-door`; `tests/agent-door/initialize-owner.mjs` — installed rer 0.2.87 production-door conformance: 1024/1024 PASS (29 October 2026); `docs/shared-agent-door.md` — Events/subscriptions family is undeclared beyond the built-in retained door event reader; native lifecycle handoff, subscription revocation and erasure replay proof remain gaps.
<!-- /contract-status -->

**BASE-AGENT-011 — Limits are policy, and Pause stops everything (partial).**

*Tier:* Agent surface

**Requirement.** Business limits are rules in the company's policy: per-call and per-day thresholds on any class's measure, such as money moved, outside recipients or items destroyed; spend caps on provider cost (models, SMS, email) per seed, specialist or agent, which setup asks with the classes; "no cap" is an answer. Tools with provider cost declare an estimate before they run, and an exhausted cap returns `budget_exhausted` before any partial effect. The seed's capacity limits (request rate, body and byte sizes) protect the installation: they bound rate and size, never daily business volume, are documented and are not policy. A grant carries budgets only when the person granting it sets them. A **Pause agents** control in the seed, and Pause all agents in Business when paired, refuses every agent token within 60 seconds until a person resumes; browser sessions and devices keep working.

**Acceptance.**
1. A rate overrun returns 429 with `Retry-After`.
2. A per-day cap of three outside recipients sends the fourth to the rule that applies past the cap.
3. An exhausted spend cap returns `budget_exhausted` with no partial effect and shows the spend.
4. Under the answer "no cap", a spending call runs and its spend shows in usage; a call that spends nothing is unaffected by any cap.
5. The usage view shows calls, decisions by class, money moved and provider spend per agent.
6. Pause and Pause all agents each stop the next call within 60 seconds, and resume restores access.
7. An agent token cannot resume.

<!-- contract-status:BASE-AGENT-011 -->
Existing evidence and limits: `agent-surface.json`; `src/agent-door`; `tests/agent-door/initialize-owner.mjs` — installed rer 0.2.87 production-door conformance: 1024/1024 PASS (29 October 2026); `docs/shared-agent-door.md` — Long-jobs and provider capacity families are undeclared; core Pause, scopes and rate/body capacity use the shared door.
<!-- /contract-status -->

**BASE-AGENT-012 — Writes are idempotent and conflict-safe (partial).**

*Tier:* Agent surface

**Requirement.** Every mutating tool requires an idempotency key and takes an optional expected revision. The same key with the same arguments returns the first outcome for at least 24 hours; the same key with different arguments returns `idempotency_conflict`; a stale revision returns `revision_conflict` with the current revision. Long work returns a job handle and a status tool, with no dependence on the Tasks extension.

**Acceptance.**
1. Two calls with one key give one effect and equal results.
2. A retry with a new JSON-RPC id and the same key, after a dropped stream, returns the recorded outcome.
3. The same key with different arguments returns a conflict and no effect.
4. A stale revision returns a conflict naming the current revision.
5. A job handle used by another person's token reads as not found.

<!-- contract-status:BASE-AGENT-012 -->
Existing evidence and limits: `agent-surface.json`; `src/agent-door`; `tests/agent-door/initialize-owner.mjs` — installed rer 0.2.87 production-door conformance: 1024/1024 PASS (29 October 2026); `docs/shared-agent-door.md` — Core replay/changed-key and current-admission conformance passes; long-job continuation and uncertain provider outcome families are undeclared.
<!-- /contract-status -->

**BASE-AGENT-013 — Manifest, docs and the conformance journey (partial).**

*Tier:* Agent surface

**Requirement.** `server / discover` instructions and an on-site `/docs/agents` page are generated from the action registry. The page lists tools by job, with each tool's classes, the test that adds each computed class, its scopes, resource templates, event types, capacity limits and error codes, and the specialist role. `prompts / list` carries the specialist's jobs. Base ships the conformance journey, a harness that `rer verify` runs against `rer dev` and seeds run in CI. It is an MCP client; a signed-in test person takes a person's steps (setup answers, approvals, review marks, resume) through the URLs the door returns, and the same browser leg runs the UI-parity actions and the page checks at 1440 and 390. It runs every acceptance point of BASE-AGENT-001 to 012 and of the seed's SURFACE clauses under two company policies: *all autonomous* (`*`), and *held* (standard review, every other class the seed declares approval, which the test person grants), plus the single-class variants a point names. A point that names no disposition passes under both.

**Acceptance.**
1. The docs list exactly the names in `tools / list` and `resources / templates / list`.
2. Each tool's classes, and the test behind each computed one, are documented.
3. The harness fails on any of: a tool without a schema; an effect under approval or blocked, or before setup is complete; a computed class that differs from its fixture; a flag that changes a class or completes a person's step; a role-parity mismatch; a wrong-audience token being accepted; a duplicate effect on retry.
4. Every acceptance point runs under both policies, every decision matches the policy in force, and under all autonomous no call waits for a person or is refused by policy.
5. A stranger agent given only the seed URL completes the specialist journey through MCP.

<!-- contract-status:BASE-AGENT-013 -->
Existing evidence and limits: `tests/site/run-site.test.mjs` — rer build --site writes the homepage, the Run page and every listed docs page, invoking `tests/agent-door/docs-flow.mjs` agentDocsFlow: production registry parity, per-tool scopes and input schemas, computed class facts and fixture links, missing and duplicate fixture refusal, and public data isolation; `tests/integration/browser.test.mjs` — docs pages support keyboard code scrolling and remain readable at desktop and mobile, invoking `tests/integration/helpers/docs-journey.mjs`: installation and run-site guide, keyboard access and accessibility in both themes; existing declared-subset conformance in `tests/agent-door/initialize-owner.mjs` — Points 1–2 implemented for the currently declared registry only. Registry-generated discovery instructions, complete specialist prompt coverage, full ct workforce-week, specialist stranger completion and every remaining acceptance obligation remain open; wider tool families are undeclared. Shared transport, discovery and conformance stay maintained Base copies. The shared-door capture and erasure boundary stays closed pending client mapping, evidence redaction and retention agreement; existing account, ct, Base, device and prerequisite holds are unchanged.
<!-- /contract-status -->
