Skip to content

docs(adr): record how OMP resolves account state - #57

Merged
DimoADE merged 1 commit into
DimoADE:masterfrom
moxi-2534:docs/adr-omp-auth-resolution
Nov 6, 2026
Merged

DimoADE merged 1 commit into
DimoADE:masterfrom
moxi-2534:docs/adr-omp-auth-resolution

Conversation

@moxi-2534

Copy link
Copy Markdown
Contributor

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 已删除的原因:它只复刻了「有活账号即登录」的一半,绕过了登出判断。

只改文档,没有代码与行为变化。

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.
@DimoADE
DimoADE merged commit 06e97b2 into DimoADE:master Nov 6, 2026
@moxi-2534
moxi-2534 deleted the docs/adr-omp-auth-resolution branch November 14, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants