fix(auth): retry stale scoped token once after 403#890
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 30, 2026, 1:48 AM ET / 05:48 UTC. Summary Reproducibility: no. live high-confidence reproduction was established in this review. Source inspection does show current main would return the first replayable 403 insufficient-scope response without refreshing, and the PR adds a focused test harness for that path. Review metrics: 2 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the focused auth retry after CI and, ideally, a redacted stored-OAuth Calendar or Contacts smoke confirms the remint path without changing true permission-denial behavior. Do we have a high-confidence way to reproduce the issue? No live high-confidence reproduction was established in this review. Source inspection does show current main would return the first replayable 403 insufficient-scope response without refreshing, and the PR adds a focused test harness for that path. Is this the best way to solve the issue? Yes, the proposed one-time refresh/remint retry for replayable insufficient-scope 403s is the narrow maintainable direction. It should stay limited to stored OAuth and continue preserving direct access token, service account, ADC, ordinary 403, and non-replayable behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 213ddb60d7d1. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
🦞✅ Source: Why human review is needed: What the maintainer can do as a next step: I added |
Summary
Testing
Fixes #889