Pass the user into Backlog::Checkout from the bin instead of reading ENV #1407

Open
opened 2026-10-26 21:20:26 +00:00 by jared · 0 comments
Owner

Problem

Backlog::Checkout reads ENV['USER'] itself (plugins/os-backlog/lib/backlog/checkout.rb:25). A test cannot inject the user, so test_checkout_ignores_cc_os_agent_id_env_and_falls_back_to_user must stay a subprocess. The bin should pass the user in.

Reproduce

n/a: see rulings.tsv row R7.

Origin

  • Trigger: fast-batch-15 (#1329-#1336), ruling R7
  • Improvised this session: the test stays a subprocess with a constraint comment (115e3711)
  • Chain: test cannot run in-process ← Checkout reads ENV itself ← DESIGN (checkout.rb:25)
  • Root candidate: none found; searched checkout, ENV, USER
  • Where: plugins/os-backlog/lib/backlog/checkout.rb:25
  • Session: 6c6b6eae-4ebd-4ac4-9b32-535875a6b39b
  • Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os--claude-worktrees-fast-batch-15/6c6b6eae-4ebd-4ac4-9b32-535875a6b39b.jsonl

VERDICT: CREATE

## Problem `Backlog::Checkout` reads `ENV['USER']` itself (`plugins/os-backlog/lib/backlog/checkout.rb:25`). A test cannot inject the user, so `test_checkout_ignores_cc_os_agent_id_env_and_falls_back_to_user` must stay a subprocess. The bin should pass the user in. ## Reproduce n/a: see rulings.tsv row R7. ## Origin - Trigger: fast-batch-15 (#1329-#1336), ruling R7 - Improvised this session: the test stays a subprocess with a constraint comment (115e3711) - Chain: test cannot run in-process ← Checkout reads ENV itself ← DESIGN (checkout.rb:25) - Root candidate: none found; searched checkout, ENV, USER - Where: plugins/os-backlog/lib/backlog/checkout.rb:25 - Session: 6c6b6eae-4ebd-4ac4-9b32-535875a6b39b - Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os--claude-worktrees-fast-batch-15/6c6b6eae-4ebd-4ac4-9b32-535875a6b39b.jsonl VERDICT: CREATE
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jared/cc-os#1407
No description provided.