You're right, and my "liveness probe" framing was a post-hoc defense of the current behavior. Let me correct the record.
The honest version: what auth status should report is whether the session is alive, not whether the access token is momentarily stale. Those aren't the same thing:
| State | Truthful status | Current behaviour (raw read) |
|---|
| Access token valid | logged in | logged in ✓ |
| Access token expired, refresh token valid | logged in (session alive) | ❌ "re-login" |
Refresh token revoked/expired (ErrReauthRequired) | re-login | re-login ✓ |
| No credential | not logged in | not logged in ✓ |
The middle row is exactly the false-negative COR-389 was created to kill for control-plane commands — and resolveStatusTarget's raw LoginTokenForContext read reproduces it. So entire activity silently refreshes and works, while entire auth status looks at the same expired-but-refreshable token and tells you to re-login. That's not a feature; it's the same bug, just not yet fixed on this path.
The right behaviour: status should attempt the refresh (like the control plane), and surface "re-login" only when refresh fails with ErrReauthRequired — that's the real "session is dead" signal. A successful refresh is the proof the session is alive, which is what status exists to tell you.
Where I was only-half-wrong: logout genuinely operates on stored state — but even there, refresh likely helps rather than hurts, because revoking the family via the core's session endpoint needs a non-expired bearer to authenticate the revoke call; refresh-then-revoke (the new tokens die with the family) is cleaner than failing on an expired access token. So "no refresh" isn't clearly right for logout either.
So COR-389's "status/logout are display/revoke paths, no refresh needed" was a wrong call, not a subtle one.
Scope, though: this is auth status/logout refresh behaviour — not the data-API discovery that PR #1377 is about. I don't want to smuggle a behaviour change into the discovery PR. COR-393 already rewrites all these paths (it touches auth.go/logout.go status/logout targets), so the natural home is a scope item there: "status/logout resolve via a refreshing provider; report re-login only on ErrReauthRequired."
Want me to add that to COR-393, or would you rather I fix it now as its own small commit (separate from the discovery work)?