Skip to content

Commit 8d3ba74

Browse files
committed
docs(spec): ConnectorConnectionState.status JSDoc drops "expired" from the no-refresh-token reconnect reason
A refresh also runs on a cache miss and on a dispatch's 401, so a connection with no refresh token, or no client, is marked while its access token may still be valid. Match the runtime's own wording. Claude-Session: https://claude.ai/code/session_01ADHkmQs2bVYuybG5pYYUg2 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 104cd1a commit 8d3ba74

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
docs(spec): `ConnectorConnectionState.status` no longer says a connection with no refresh token is marked because its access token expired
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Comment only. The `reconnect_required` JSDoc said such a connection "keeps nothing to renew an expired access token with". A refresh also runs on a cache miss (a fresh replica, or a `revision` another replica moved) and on a dispatch's 401, so a connection with no refresh token, or no client to refresh with, is marked even while its access token is still valid. The JSDoc now reads "keeps nothing to renew an access token it has to renew with", the wording the runtime's own `markReconnectRequired` doc and the `sys_connector_connection.status` description use, and the sense of the `status_reason` the runtime stores ("an access token the connection has to renew cannot be renewed").

‎packages/spec/src/contracts/automation-service.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,9 +1143,9 @@ export interface ConnectorConnectionState {
11431143
* dispatches nothing for this organization); `connected`; or
11441144
* `reconnect_required` — the grant stopped working: the authorization
11451145
* server refused it on refresh, the connection keeps nothing to renew an
1146-
* expired access token with (no refresh token was issued, or no client to
1147-
* refresh with), or the upstream refused the connection's token while an
1148-
* `mcp` instance discovered its tools. `statusReason` says which.
1146+
* access token it has to renew with (no refresh token was issued, or no
1147+
* client to refresh with), or the upstream refused the connection's token
1148+
* while an `mcp` instance discovered its tools. `statusReason` says which.
11491149
*/
11501150
status: 'not_connected' | 'connected' | 'reconnect_required';
11511151
/** Why the grant stopped working, when `status` is `reconnect_required`. */

0 commit comments

Comments
 (0)