Skip to content

Send identity token + adopt server usage counts - #64

Merged
sgardoll merged 1 commit into
mainfrom
feat/send-identity-token
Aug 25, 2026
Merged

Send identity token + adopt server usage counts#64
sgardoll merged 1 commit into
mainfrom
feat/send-identity-token

Conversation

@sgardoll

Copy link
Copy Markdown
Owner

Pairs with buildship#80. Stores the identity JWT from authUserCheck, sends it as a Bearer header on pipeline calls, gates generation on identity resolution, and adopts the server's authoritative usage_count when present (local+1 fallback only). 206/206 tests pass.

- resolveIdentity stores the identity_token issued by authUserCheck
- callBuildShip sends Authorization: Bearer <identity_token>
- ensureIdentityReady gates pipeline start (5s cap) so generation
  never fires before a token exists
- generator responses with usage_status=success adopt the server count
  as authoritative; local+1 only as fallback when absent
@sgardoll
sgardoll merged commit 3937360 into main Aug 25, 2026
5 checks passed
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.

1 participant