You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(roadmap): the job clone and the change filter fail closed when the session login lookup fails, instead of falling back to a made-up devops-cli identity #1409
priority/p0-criticalPriority P0: a release blocker or a critical defectscope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationsource/agentFiled by an agenttype/bugType bug: the code does not do what it must
_get_session_login (src/devops_cli/roadmap/run.py) catches every exception from get_github_session().login and returns "devops-cli". Two callers then act on that made-up identity, and nothing is logged:
ensure_checkout writes it into the job clone's user.name and user.email, so the release cut can commit as an identity that doesn't exist;
_current_actor uses it to drop the Service's own events, so a failed login lookup stops that filter, and the Service then reacts to its own writes.
Found while delivering #1366 on 2026-10-08: a test fake that refused the login lookup still passed unless the test asserted the identity.
Acceptance criteria
_get_session_login lets a failed login lookup raise, with no fallback. The error names the session and the gh error.
A test at the gh process edge refuses gh api user and shows that the clone rows and the change filter fail closed, with no devops-cli identity written.
Each test call phase stays under 1 s, and uv run devops ci passes. changelog.d/<n>.md records the change.
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
Priority: P2-Medium. It only manifests when the session login lookup fails, but when it does it corrupts commit identity and disables the self-event filter, so it is a real correctness defect without being a constant outage.
Value: Medium. Prevents the service from committing as a non-existent identity and from reacting to its own writes, but only under a specific failure condition.
Effort: Low. Remove the try/except fallback in one function, let two callers propagate the error, and add a focused test at the gh process edge.
Linked: #1365. After this item, a failed login lookup fails the clone rows (roadmap/run.py:333), which #1365 logs as one ExceptionGroup member. Found by the 2026-10-08 backlog review.
priority/p0-criticalPriority P0: a release blocker or a critical defectscope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationsource/agentFiled by an agenttype/bugType bug: the code does not do what it must
Activity
dan-petty-bot commentedon Oct 8, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
It only manifests when the session login lookup fails, but when it does it corrupts commit identity and disables the self-event filter, so it is a real correctness defect without being a constant outage.Prevents the service from committing as a non-existent identity and from reacting to its own writes, but only under a specific failure condition.Remove the try/except fallback in one function, let two callers propagate the error, and add a focused test at the gh process edge.dan-petty commentedon Oct 8, 2026
Linked: #1365. After this item, a failed login lookup fails the clone rows (
roadmap/run.py:333), which #1365 logs as one ExceptionGroup member. Found by the 2026-10-08 backlog review.fix(roadmap): the job clone and change filter fail closed when the se…
dan-petty commentedon Oct 19, 2026
What changed
#1699, merged into
release/v0.2.37as 3b70671.8 file(s) changed.
How it was verified
Check runs at 74ae80b:
Acceptance Criteria of
docs/agent/tasks/task-1409-fail-closed-session-login.md:_get_session_loginlets a failed login lookup raise, with no fallback.user.nameis never written as"devops-cli"._current_actorcaller (run_due_jobs/_fetch_filtered_changes) fails the round when the actor is absent and login lookup fails.github_api/GitHubApiFake) refusingGET /user.uv run devops cipasses.changelog.d/1409.mdrecords the change.feat(release): v0.2.37 (#1720)