Repository navigation
[3145 by GPT-6.1 Sol] Hosted provider credential and session authority foundation - #3150
Conversation
… authority f Implemented by ProPR AI using gpt-6.1-sol model. Implementation completed successfully.
|
/review codex-astra Review exact head Audit every CAS/lost-ack/restart/concurrency boundary for at-most-once behavior, including mutations of the in-memory capability before ambiguous CAS returns. Check that expiry or missing/404/process/VM evidence never becomes closure/revocation, that finish is not treated as revocation, and that replacement cannot proceed without exact retirement. Verify canonical retained-state validation and that old handles/grants cannot operate after successor activation. Confirm hosted construction has no default/erasable backend and requires explicit durable control-root CAS, clock, keyed commitment and independent reader ports; self-hosted mode must be structurally incapable of granting hosted authority. Private locators may exist only in the permissioned store and must never appear in grants, inventory, errors or logs; raw credential/session values and unkeyed low-entropy hashes must not persist. Confirm there is no config/login/physical-launch/callback/server/provider/Fleet/Routing integration, provider/network/filesystem side effect, rollout gate change, release or deployment behavior in this foundation. Independent exact-head validation found no blocker: 89/89 focused tests, Core typecheck/build, lint (only 10 pre-existing unrelated warnings), and diff-check passed; CodeQL and Validate Changes were green while full public CI shards were still running. Review the complete exact delta rather than a partial unrelated PR diff. Assess whether the head safely supports stacked config, login, and physical-runtime hook lanes while keeping task/goal projection sequenced behind the runtime receipt shape. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex-astraOverall EvaluationThe PR provides a well-scoped authority foundation, but needs a correction before merge: failed effect redemption can still authorize committed issuance and session binding. ✅ Durable exclusive claims — Dispatch claims persist before grants are created; lost acknowledgements cannot reacquire the same dispatch. ✅ Explicit authority boundaries — Hosted construction requires injected storage, clock, keys and reader ports. Self-hosted mode exposes no hosted authority methods, and the delta adds no production integrations or provider effects. ✅ Conservative retirement — Exhaustive issuer closure and independent revoked-and-quiescent readback gate retirement; expiry and ordinary finish do not establish revocation. This assessment uses static tracing of the supplied complete delta. No commands were run. The authoritative check summary reports no failed or pending checks. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Failed redemption authorizes issuance
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe scope boundaries, durable claims and retirement safeguards are strong, and current checks are green. The capability-state defect needs correction before downstream integration lanes rely on this contract. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
/fix F1 Fix Astra finding F1 at exact reviewed head Add deterministic regressions at the before-CAS, false-CAS, thrown-CAS, after-commit/lost-ack, and renewal boundaries proving that an unconfirmed consume cannot authorize issuance or session binding and cannot be laundered through renewal. Also prove a durably confirmed consume still permits the intended exact follow-on once and that retries/restarts remain closed as specified. Run the complete focused authority suite, Core typecheck, build, lint, diff check, and relevant broader tests. Do not add provider/login/config/runtime wiring, deploy, publish, enable gates, or mutate credentials or live tenants. |
|
/use claude-fable |
|
✅ Applied the requested follow-up changes in commit 336d8dd
Summary of ChangesFixed F1: redemption now burns the attempt before CAS and sets Validation: 102 focused tests and 329 broader tests passed; four privileged mount tests skipped. Core typecheck, build, lint, and diff check passed. All 12 new failure-path regressions fail against the reviewed head. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
/switch claude-fable |
…ets `effectConsumed` only after confirmed success. Pending, failed, and ambiguous attempts cannot authorize issuance, session binding, or renewal. Fixed F1: redemption now burns the attempt before CAS and sets `effectConsumed` only after confirmed success. Pending, failed, and ambiguous attempts cannot authorize issuance, session binding, or renewal. Validation: 102 focused tests and 329 broader tests passed; four privileged mount tests skipped. Core typecheck, build, lint, and diff check passed. All 12 new failure-path regressions fail against the reviewed head. PR: #3150 Comment by: @integry (ID: 6202618625) Model: GPT-6.1 Sol
|
ℹ️ Analyzed the follow-up request by @integry Analysis SummaryNo code changes were needed on this turn. The new request body was empty. The two newest PR comments from @integry are I verified that head rather than modifying it:
The working tree is clean and no preview files were generated, since the change is not visually perceptible. If a further fix or review pass is wanted, a new No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
/review codex-astra Review exact head Also recheck that the full authority foundation still preserves exclusive durable dispatch, exact identity/creator/source/operation/attempt/incarnation binding, committed keyed metadata, exhaustive closure, independent revoked-and-quiescent readback, permanent tombstones, exact successor transfer, private locator custody, hosted fail-closed construction, and the structurally separate self-hosted path. Confirm the delta adds no config/login/runtime/provider/network/filesystem integration, rollout gate change, deployment, or release behavior. Independent exact-head evidence: the implementation reported 102 focused and 329 broader tests passing; a subsequent Claude Fable 5.1 analysis-only task independently reran 102/102 focused tests; local exact-delta audit found no blocker and |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
🔍 AI Code Review — codex-astraOverall EvaluationMerge-ready within the foundation’s scope, conditional on pending CI completing successfully. Static review of the supplied exact-head code found the prior redemption defect corrected. No commands were run or files modified. ✅ Confirmed redemption only — ✅ Renewal preserves authority boundaries — Renewal refuses attempted-but-unconfirmed redemption, preserves confirmed redemption without permitting another effect, and invalidates the previous grant. Restart cannot reconstruct process-local capabilities. Issuance remains single-transition; session-binding retries require the identical keyed commitment. ✅ Foundation remains isolated — Durable exclusive dispatch, exact bindings, exhaustive issuer closure, independent readback, retained tombstones, successor checks, private custody, and separate self-hosted construction remain intact. The supplied changes add no operational integrations, deployment behavior, or rollout gates. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Qualify concrete storage adaptersRun the supplied conformance suite against independently opened production storage handles, supplemented by process-crash, root-loss, and rollback tests, as the documentation specifies. The in-memory fixture establishes kernel behavior but cannot establish physical durability. This belongs to the explicitly deferred adapter integration lane and does not block this foundation. ScoreThe redemption correction is localized and supported by deterministic failure-boundary tests. Static review found no merge blocker; the supplied current-head status reports zero failures and nine pending checks. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit e88817e Processed 2 comments:
Summary of ChangesFixed the Validate Changes failure. The only CI error was the core package lint gate: What changed
Verification
This is a non-visual change, so no preview files were created. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…he core package lint gate: `packages/core/src/providerAuthority/authority.ts` had grown to 404 counted lines against the 400-line max-lines limit after the F1 fix. Fixed the Validate Changes failure. The only CI error was the core package lint gate: `packages/core/src/providerAuthority/authority.ts` had grown to 404 counted lines against the 400-line max-lines limit after the F1 fix. **What changed** - Moved the pure module-level helpers out of the authority file into a new sibling module, `packages/core/src/providerAuthority/authorityHelpers.ts`. It holds the canonical-equality, hash, and clone helpers, the custody and commitment schemas, and the purpose-to-allowed-source table that was previously built inline inside `reserve`. - The authority file now imports those helpers and references the frozen source table directly. No state machine logic, CAS ordering, grant semantics, or exports changed. The table was a constant literal before, so hoisting it is behavior-preserving. - The file now has 392 counted lines, under the limit, with some headroom for future small edits. **Verification** - Linting exactly the two changed files with zero warnings allowed, which is what the CI step does, passes. - Core package typecheck and build pass. - The provider authority suite passes under the Node test runner, all 102 tests. The 10 remaining core lint warnings are in untouched files and are excluded by CI's changed-files lint. This is a non-visual change, so no preview files were created. PR: #3150 Comment by: @propr-dev[bot] (ID: 6202908270) Comment by: @github-actions[bot] (ID: 6202909018) Model: Claude Fable 5.1
|
/review codex-astra Review exact head Independent exact-head validation passed: changed-file lint with zero warnings, Core typecheck, provider-authority focused tests, and diff check. Fresh public CI has Validate Changes, package guard, docs, compatibility and classification green; CodeQL and full shards are still running. Do not deploy, publish, enable gates, or mutate credentials/live tenants. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex-astraOverall EvaluationThe foundation has strong lifecycle protections, but the helper extraction exposes a mutable source-policy catalog. A localized correction is required before merge. ✅ Redemption confirmation preserved — ✅ Integration scope preserved — The supplied diff adds no provider calls, filesystem/network integration, deployment behavior, or gate activation. The helper exports are not re-exported through either public package barrel. ✅ Focused failure coverage — Tests cover pending, false, thrown, and lost-ack redemption, including renewal and restart. This is a static review of the supplied code; no commands were run. Authoritative current checks report zero failures and five pending checks. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F2: 🔴 Deep-freeze the exported source catalog
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation preserves the redemption fix and maintains the intended integration boundary, but the exported mutable authorization catalog prevents approval. The correction is small; current checks have no reported failures. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
/fix F2 Fix Astra finding F2 at exact reviewed head Add a deterministic regression that imports/reaches the catalog through the same module boundary, attempts runtime mutation (including via casts/ordinary JavaScript semantics), proves the mutation is rejected or has no effect, and proves an enrolled |
|
✅ Applied the requested follow-up changes in commit 07dc1e5
Summary of ChangesF2 is fixed. The purpose-to-source catalog is now transitively frozen at runtime, and a regression proves a cast-based mutation cannot admit a forbidden source. Change in
Regression added in
Sibling check. The resource catalog in the contracts module was already deep-frozen per element and is covered by an existing test. No other shallowly frozen authority tables exist in the PR delta. Verification
One note: the core package eslint config does not cover its 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ely frozen at runtime, and a regression proves a cast-based mutation cannot admit a forbidden source. F2 is fixed. The purpose-to-source catalog is now transitively frozen at runtime, and a regression proves a cast-based mutation cannot admit a forbidden source. **Change in `packages/core/src/providerAuthority/authorityHelpers.ts`** - The catalog is now built with the existing recursive helper `immutableAuthority` instead of a shallow freeze. Every nested source array is frozen along with the outer object. - The source policy is byte-for-byte unchanged, the export shape is unchanged, and no new export or wider authority surface was added. The consumer in the reserve path still does the same membership check. **Regression added in `packages/core/test/providerAuthority.test.ts`** - Imports the catalog through the same helper module boundary and asserts the exact declared policy. - Casts away the readonly types and attempts push, index write, length reset, key reassignment, new key, delete, and `Reflect.set` / `Reflect.defineProperty`. Each throws a `TypeError` or returns false, and the catalog remains identical afterward. - Enrolls a `probe` issuer covering credential resources, which enrollment validation permits, and proves it is refused for both the credential writer and config-mutation purposes with zero records persisted. - Proves valid pairs still work: probe may reserve credential use, and the existing run issuer may still reserve a credential writer. **Sibling check.** The resource catalog in the contracts module was already deep-frozen per element and is covered by an existing test. No other shallowly frozen authority tables exist in the PR delta. **Verification** | Check | Result | |---|---| | Full provider-authority suite | 103 passed, 0 failed | | Changed source lint, zero warnings | passed | | Core typecheck and build | passed | | `git diff --check` | clean | One note: the core package eslint config does not cover its `test/` directory, so the test file is reported as ignored by eslint. That is pre-existing configuration and unchanged here. No preview was generated because the change is not visually perceptible. PR: #3150 Comment by: @integry (ID: 6203072631) Model: Claude Fable 5.1
|
/review codex-astra Final exact-head review of Reconfirm the previously reviewed F1 redemption correction and all provider-authority lifecycle, crash, closure, private-custody, hosted fail-closed, and self-hosted isolation invariants remain unchanged. Confirm no operational integration, provider call, filesystem/network behavior, rollout gate, deployment, or release behavior entered the delta. Independent exact-head audit found a two-file delta only, clean diff, Core typecheck, zero-warning changed-source lint, and all 103 provider-authority tests passing including the mutation regression. Fresh public CI is running. Do not deploy, publish, enable gates, or mutate credentials/live tenants. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex-astraOverall EvaluationReady to merge within the foundation-only scope, conditional on the four pending test shards completing successfully. This review is based on the supplied code; no commands were run. ✅ F2 is closed — ✅ F1 remains corrected — Redemption burns ✅ Foundation boundaries remain intact — The supplied implementation retains exclusive dispatch, exact binding, exhaustive closure, independent retirement readback, permanent tombstones, private-custody projections and separate self-hosted behavior. No operational integration, provider call, filesystem/network implementation, rollout gate, deployment or release behavior appears in the changes. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe runtime immutability correction is localized and supported by a deterministic regression, while the redemption safeguards remain intact. The supplied current-head status reports no failures; four full-suite shards remain pending. Score: 9/10 🤖 Review Details
🤖 Review by ProPR |
AI Implementation Summary
Closes #3145
Branch:
3145/gpt-6.1-sol-hosted-provider-credentia-20261015-2039-9j5Commits: ✅ Changes committed (ca61715)
AI Processing Completed
Execution Details:
Summary:
Implemented the authority foundation: typed catalogs, durable CAS state transitions, scoped grants, leases, exhaustive inventory seals, independent readback, permanent tombstones, and exact successor transfer.
Validation passed: 89 focused tests, 195 regression tests, typechecks, build, lint, generated checks, and whitespace checks. Four privileged mount tests were skipped.
Production readiness still requires the documented follow-up integrations.
Detailed Logs:
01a1414c-cf68-7211-a489-87752c335c4bLog files stored at:
/usr/src/app/logs/executions/issue-3145-2026-10-15T21-06-17-200Z-conversation.json/usr/src/app/logs/executions/issue-3145-2026-10-15T21-06-17-200Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3145.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!