Repository navigation
docs(adr): record how OMP resolves account state - #57
Merged
Merged
Conversation
The 0082 record described where OMP credentials live but not which rule decides the reported authentication state, so rebasing onto the unified resolve_observed_authentication looked like it needed an OMP-specific override. Write the rule down: the shared resolver decides, an explicit omp logout outranks leftover agent.db rows, and management.rs keeps no OMP branch.
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.
ADR-0082 记了 OMP 的凭据放在哪(
agent.db的auth_credentials、models.yml的 apiKey),但没记「状态由谁判定」。结果把我那份 OMP 分支 rebase 到统一认证之后,看起来像是需要给 OMP 加回一个特判。这次把规则写下来,一格一条:
resolve_observed_authentication,account_signed_out是它的入参;server/src/host/management.rs不保留 OMP 分支。omp logout优先于agent.db里的残留账号 —— 有 oauth 行但已登出,必须显示未登录。omp_live_account已删除的原因:它只复刻了「有活账号即登录」的一半,绕过了登出判断。只改文档,没有代码与行为变化。