Repository navigation
Conversation
The login-envelope scope test (#2793) and the source-credential check in token issuance (#2919) merged together. The test's login principal carried no login session, so the token store rejected the issued tokens and the test failed on main. Give the principal a login session as the other login tests do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Add login session ID internal/audiobooks/abs/login_scope_test.go |
The test's Principal now includes LoginSessionID: "login-1". |
Estimated code review effort: 1 (Trivial) | ~2 minutes
Change: Other
Possibly related PRs
- Silo-Server/silo-server#2793: Added the login path and test that this change updates.
Merge Risk: 
Minimal · up to b0e21
-
The test fixture correctly exercises session-aware token persistence and is ready to merge.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.
-
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Problem
Related issue: N/A
Validation tasks: none
mainfailsci / Go testininternal/audiobooks/abs, so every open pull request's Go test job fails too. Two changes that merged within seconds of each other caused it: #2919 made token issuance reject tokens with no source credential, and #2793 addedTestTokenHandlers_ScopeLibrariesToAuthenticatedProfile, whose login case signs in with a principal that has no login session. Each passed CI on its own. Together, the login case gets a 500 (persist tokens: tokens issued with no source credential).This gives that principal a login session, as the other login tests already do.
Approach
Test-only change: the login case's
Principalnow setsLoginSessionID. The production check from #2919 is correct and stays as it is. A real login always carries a login session.Validation
go test ./internal/audiobooks/abs/: the failing test fails onmainand the package passes with this change.go veton the package passes. golangci-lint was not run locally; CI's Go lint covers it.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3303/
No user-visible change. The evidence page has the steps and test output.
Risks
None identified.
Checklist
AI Disclosure
🤖 Generated with Claude Code