Repository navigation
Description
Build the Core-side shared authority foundation for hosted reset ownership of tenant provider-credentials and provider-sessions, starting from exact merged main commit 8aad09cbc947a0bf4929e244365ad134dc96c1b7. This is the contracts/state-machine lane only. It must be independently reviewable and must not release, deploy, enable hosted/public/reset/readiness gates, call providers, touch credentials, or modify Fleet/Routing pins.
Add canonical typed contracts and a durable producer state machine that later config, login and physical-launch integration PRs can consume without redefining semantics. Keep credentials and sessions as distinct categories but share a rigorously typed kernel where appropriate. Do not integrate individual agent implementations, config routes, login containers, job callbacks, reset composition, server startup or UI in this PR. One owner may add the minimum package exports required for the new modules and focused tests.
The authority must bind every record to exact hosted tenant, instance, predecessor generation/state scope/runtime/host identity, category, owner/policy epoch, creator implementation/catalog revision, operation/attempt, provider, agent/source kind and non-reusable resource incarnation. Model creator-enrolled append-before-effect reservations, committed issuance, unknown-after-crash, writer/use leases, inventory closure and high-water marks, deterministic reset intent/effect, exclusive dispatch ownership, independent readback, permanent tombstone and exact successor transfer. A session reservation exists before physical launch even when no provider session ID is ever returned. A credential writer reservation exists before any login/run can mutate a read-write provider home.
Zero inventory is valid only through an exhaustive creator/catalog coverage seal with every issuer closed at the exact epoch. Current file scans, empty queries, missing callbacks, process exit, expiry, 404, VM absence or deletion are never completeness or revocation evidence. A lost reply after dispatch claim cannot redispatch. ABA/reissued identifiers are distinct incarnations. Predecessor tombstones survive restart, reset and successor activation and can never be removed by ordinary deletion.
Separate private local custody from cross-boundary proof. Private locators may be retained only by a permissioned injected authority store and must never appear in public observations, errors or logs. Use keyed commitments for low-entropy env/token values; never raw secret hashes. Define explicit storage/clock/key ports with create-only compare semantics and atomic transitions. Do not silently persist this hosted authority in erasable tenant/app state. The production hosted constructor must require a durable control-root store supplied by later composition and fail closed when missing. Any self-hosted/no-op mode must be an explicit separate constructor and structurally impossible to select for hosted operation.
Expose stable typed hooks along these lines, refined as necessary without weakening them: credential config mutation preparation/commit; credential writer/use grants for login, run, probe and migration; provider launch reservation/grant; session-ID binding; finish; unknown-after-crash; inventory close/observe; reset fence/retire/observe; permanent predecessor admission refusal; successor transfer. Grants must be immutable, single-purpose, short-scope capabilities bound to exact identity—not booleans or caller-supplied proof.
Provider credential catalogs must distinguish managed tenant homes/env/API-key records from arbitrary host paths, process environment and shared operator credentials. Unknown/manual external paths must be unowned/unqualified rather than deleted. Cover Claude .claude plus separate .claude.json, Codex .codex, Antigravity .gemini, and OpenCode config plus data as distinct catalog resources, without embedding secret values. Provider session kinds must cover launch reservation, provider login/session, resume/conversation IDs, retry/replacement authority and callbacks without collapsing them into Routing app sessions or Fleet runtime-access.
Add adversarial tests for canonical/schema closure, exhaustive empty closure, missing issuer coverage, every crash point, concurrent reservations, lease expiry/renewal, ambiguous writes, lost replies, at-most-once effects, restart reconstruction, ABA/reissue, cross-tenant/generation/scope/category/provider substitution, stale policy/catalog/implementation revisions, successor transfer and permanent predecessor refusal. Prove secret/private locator redaction and deep immutability. Include deterministic storage conformance tests suitable for later Fleet control-root adapters. Run focused and relevant broad tests, typecheck, lint/format/generated checks and git diff --check; do not weaken existing failures.
Document that this foundation alone does not make hosted reset production-ready. Follow-up lanes must still integrate config issuance, login/writer custody, physical launch/session admission, task/goal projections, Fleet locked-R2 authority and final composition/qualification.
Activity
propr-dev commentedon Oct 15, 2026
🤖 AI processing has started for this issue using codex agent with gpt-6.1-sol model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
codexgpt-6.1-sol3145/gpt-6.1-sol-hosted-provider-credentia-20261015-2039-9j5mainissue-3145-20261015-2039-gpt-6.1-sol-9j5🔍 Track Task Execution
fix(ai): Resolve issue #3145 - Hosted provider credential and session…
[3145 by GPT-6.1 Sol] Hosted provider credential and session authorit…