feat(setup): persist PowerContext Agent authorization - #1539
Closed
frf12 wants to merge 0 commit into
Closed
Conversation
frf12
force-pushed
the
feat/persist-agent-authorization
branch
from
September 10, 2026 07:39
776f301 to
5da78b4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue or RFC does this PR close?
Closes #1538.
Depends on #1535 for the shared setup-time Server URL and insecure-HTTP consent contract.
Rationale for this change
Users connecting an Agent Host to an authenticated PowerContext Server should not need to export an Authorization variable before every new session. Sourcing the Server
.envis also the wrong boundary because it can expose Generation Provider and database credentials that an Agent client does not need.This draft opens the design-review gate requested by the repository workflow. Implementation is intentionally pending approval of the committed design.
What changes are included in this PR?
Current draft:
config.authorizationdecision;After design approval, this same draft PR will receive the TDD implementation, integration documentation, and host validation. It will not be marked ready until those changes and gates are complete.
Are there any user-facing changes?
The intended behavior is user-facing but is not implemented in this draft yet. After implementation,
powercontext setup <host>will collect or reuse a Server credential once, and users will start supported Agents normally without per-launch authorization exports.--clear-authorizationand redacted authorization diagnostics will be added.No OpenAI, Anthropic, Generation Provider, embedding, or database credential will be reused or copied.
How was this change tested?
Current design-only validation:
ty checkpassed;git diff --checkpassed;agent_hostintegrations;Repository baseline before implementation: the local macOS run has four environment/version-specific failures (three Linux-only systemd receiver tests and one OpenCode host ordering test). These are not accepted as final PR gates; the completed implementation must pass clean upstream CI and all affected focused suites.
AI usage statement
OpenAI Codex was used to inspect the repository, compare host configuration contracts, draft the design, and run validation. The human selected the UX-first persistence policy and explicitly chose DSH
config.authorization.