Repository navigation
Description
Parent
Ticket SG1 of spec #2427 (0.1.2): a harness row may name one alternative sign-in route in its not-signed-in error. This is a harness-row contract change, from the planner via the wave 2 lead. Size: M.
What to build
Today a row's not-signed-in D3 next names one exact login_command. CLIs that also take a key the user sets for the CLI can't name that route: Kiro's KIRO_API_KEY (#2424 wave 2) and Junie's JUNIE_API_KEY are the cases. Add one optional, data-only row field, login_env: the NAME of one environment variable the user may set for the CLI instead of signing in, for example KIRO_API_KEY.
- It's a name only. The validation is
^[A-Z][A-Z0-9_]{1,63}$, it's never a value, and it must pass the kit's credential check as a name. - When a row has
login_env, the not-signed-innextbecomes:sign in with <login_command>, or set <login_env> for <program> yourself, then start again. It stays within D3's 300 characters, and the runner proves the longest real case. - The driver never reads, checks, passes or prints that variable's value. The value reaches the CLI only through the environment the user ran the driver in (driver v1 N2). The runner proves the value never appears in an answer, the state or argv.
login_envrequireslogin_command.
Contract text goes in adapters/local/harness-row.md (the field). Planted rows: a lowercase name, a value-shaped entry, login_env without login_command, and a too-long result. One good fixture row shows the new next.
Shared lines (planner's pattern, as for #2538 and EF4 #2585). adapters/local/driver and adapters/local/harness-row.md are also being changed by #2538 (row loader, precheck and stop), EF4 #2585 (effort) and MG1 #2904 (the START model pattern). This ticket changes only the not-signed-in next and login_env's validation. It never rewrites or reformats other lines. Whichever merges later merges main in, keeps both sides, and gets a merge-only re-check.
First commit: an approach note at the top of the PR body. It covers the field, the threat list (a value smuggled in as a name, the value leaking through the error, argv or state, a reflected name) and what the tests can and can't prove.
Owned paths
adapters/local/driver(shared: the not-signed-in next and login_env validation only)adapters/local/harness-row.md(shared: the login_env field only)adapters/local/test_harnesses.py(shared: the login_env checks only)adapters/local/fixtures/rows/login-env-good/(new)adapters/local/fixtures/rows/login-env-lowercase/(new)adapters/local/fixtures/rows/login-env-value/(new)adapters/local/fixtures/rows/login-env-no-command/(new)adapters/local/fixtures/rows/login-env-too-long/(new)changes/2918.md(new)
Relies on: adapters/local/harness-row.md
Links
- 0.1.2 HR1: the harness-row contract, the local driver's row loader and the kit check for rows #2431 real: the harness-row contract and its signed_out and login_command fields, which this extends
Acceptance criteria
- Red first: a row naming
login_envis refused as an unknown field, then a good row's signed-out start gives the newnextnaming both routes - Each planted bad row fails with its named reason, and no answer, state file or argv ever holds a value of the named variable (a canary value set by the runner)
- Rows without
login_envbehave exactly as today (the full runner,test_driver.py)
Proof
The runner's red then green on fixtures, with the canary check.
Activity
#2918: red: a row naming login_env is refused as an unknown field
#2918: green: a row's login_env names a second sign-in route in its n…
#2918: green: planted rows use the ticket's exact names
jparker2006 commentedon Nov 24, 2026
launch-fleet: started
launch-fleet: start checked, branch room/2918-login-env
Started at 01:09:55Z on the planner's word, on Claude Opus 5.5 Medium. The record is delayed by GitHub's write pacing. Hand checks read just before the start:
adapters/local/driverandharness-row.mdare shared, by line, with #2538, EF4 #2585 and MG1 #2904, as the ticket says.