Skip to content

0.1.2 SG1: a harness row may name one alternative sign-in route (login_env) in its not-signed-in error #2918

Done

Description

@jparker2006

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-in next becomes: 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_env requires login_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

Acceptance criteria

  • Red first: a row naming login_env is refused as an unknown field, then a good row's signed-out start gives the new next naming 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_env behave exactly as today (the full runner, test_driver.py)

Proof

The runner's red then green on fixtures, with the canary check.

Activity

  1. added this to the 0.1.2 milestone on Nov 24, 2026
  2. added 3 commits that reference this issue on Nov 24, 2026
  3. added
    ready-for-agent
    on Nov 24, 2026
  4. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    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/driver and harness-row.md are shared, by line, with #2538, EF4 #2585 and MG1 #2904, as the ticket says.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions