Skip to content

0.1.2 HW6: JetBrains Junie CLI as a local harness row #2442

Done

Description

@jparker2006

Parent

Ticket HW6 of spec #2424 (0.1.2), the JetBrains Junie CLI harness row. Size: S.

What to build

junie as a harness row on the local driver, in the shape the harness-row contract (HR1) fixes, built in its own folder and stacked as a draft on HR1's branch until it merges.

  • Start: junie --task "<p>" --output-format json.
  • Wake (same run): junie --session-id <id> --resume --task "<msg>".
  • Stop: end the process tree.
  • Login: a JetBrains sign-in, or JUNIE_API_KEY set by the user. The row never reads, sets or stores a key.
  • Effort: settle from primary sources which flag, setting or environment value sets the CLI's reasoning effort, and map each effort value to it in the row (an {effort} placeholder or a fixed environment setting), or declare effort none with its reason and source, in the row, its README and the driver's version answer, as the contract requires. The effort start field is driver v1's change, 0.1.2 spec: Effort everywhere: every driver passes the user's effort, or says plainly it can't #2471.
  • Permission mode: map the owner's approved mode to the CLI's own option, as the contract says, or refuse with a clear next if the CLI has no safe equivalent.

Settle this fact first, from primary sources (the Junie CLI docs and junie --help v26.9.7; read only, no sign-up, no paid call): Does the JSON output include the session id a wake needs, or can the driver choose it up front with --session-id? Record the answer with its sources in the row's README. If it comes back against the row (no same-run wake, or a stop that cannot leave nothing running), stop and report with the evidence instead of building.

Owned paths

  • adapters/local/harnesses/junie/ (new: the row file, its fake CLI, its README with the login line and the fact's resolution, an optional row test, and its evidence folder)

Relies on: nothing

Links

Acceptance criteria

  • The row's fact is settled from cited primary sources in its README.
  • HR1's harness check discovers the row and it passes the contract checks and the driver kit's five checks with its fake CLI, red first.
  • Effort: a claimed effort reaches the fake CLI's arguments or environment in HR1's runner; or the row declares none with its reason and source, and a start carrying an effort refuses with a D3 error and starts nothing, never falling back to a default.
  • Not installed and not signed in each give a JSON error whose next says what to do; a stop leaves no process of the run, including any background service the CLI started.

Proof

P1 and P2: HR1's harness check on this row, red first, and the cited fact.

Activity

  1. added this to the 0.1.2 milestone on Nov 22, 2026
  2. added
    ready-for-agent
    on Nov 22, 2026
  3. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started (the 0.1.2 lead's direct start; Opus 5.5 Medium builder), stacked as a draft on wave 1's HR1 (#2431, branch room/2431-harness-rows) for the 30-agent push. Hand checks: open, only ready-for-agent, no claim, builder or pull request yet; #2431 open, so this stays a draft until it merges; owns only its own harness folder, which no open pull request touches.

  4. added
    held
    and removed
    ready-for-agent
    on Nov 22, 2026
  5. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Plan change coming (hold-first): wave 1's harness-row contract (#2431) now requires every row to take effort, as a mapping or as an explicit none with its source, with the effort start field from #2471. This ticket's body gains that acceptance line; it is held until the new approval. Its builder has been told and keeps working.

  6. added
    ready-for-agent
    and removed
    held
    on Nov 22, 2026
  7. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    agent: builder
    state: done
    harness: Claude Code
    model: Opus 5.5
    skills: build-ticket@0.2.2
    step: Draft PR green on fixtures with the signed-out check from HR1 revision 4; watching CI.
    time: 2026-11-23T00:03:40Z
    pr: #2638

  8. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Builder question (HW6, junie row): the harness-row contract on HR1's branch doesn't cover Junie's "not signed in".

    What I found (Junie CLI 26.9.7, read only, no sign-in):

    • Signed out, junie --task "..." --output-format json prints one line, {"errors":["Cannot find authorization. Please authenticate before running Junie."]}, and exits 0.
    • HR1's first-turn watch (ended_at_once in adapters/local/driver at 6352ffd) calls a turn that ends at once with exit 0 a failure only when SIGNED_OUT or REFUSAL matches. Neither matches that line. The phrase isn't in SIGNED_OUT, and DIAGNOSTIC_LINE anchors at the line's start, so text inside a JSON string can't match either. Checked against the driver's own regexes.
    • So a signed-out Junie start returns a started run with no error. The next wake then refuses with "no session id from its first turn yet", which doesn't say to sign in. That misses this ticket's criterion: "not signed in ... give[s] a JSON error whose next says what to do". A row is data only, so it can't fix this from inside adapters/local/harnesses/junie/.

    Options:

    • A (my pick): HR1's driver adds Junie's phrases (cannot find authorization, please authenticate) to SIGNED_OUT, and also checks the string values of a JSON output line (Junie's errors array). Small, driver-only, and other JSON-printing rows get the same check.
    • B: the contract adds a row field (say signed_out, one regex) that the first-turn watch also checks. More general, but it's a new contract field for every row.
    • C: accept the gap for Junie. The start looks fine, and only the wake refuses. This misses the criterion.

    Meanwhile I'm building everything else: the row, the fake, the README, and the session, effort and daemon facts. The signed-out proof lands once this is answered. I won't edit HR1's files.

  9. added
    needs-info
    on Nov 22, 2026
  10. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Lead ruling, final (planner's final word, superseding every earlier ruling here): HR1 itself carries the optional signed_out patterns and login_command (its revision 4); #2538 does not. When HR1's head moves, this row merges HR1's branch in (never rebase), fills both fields for its CLI's signed-out output, and its not-signed-in check passes. Until then that check stays red.

  11. added 2 commits that reference this issue on Nov 23, 2026
  12. removed
    needs-info
    on Nov 23, 2026
  13. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: look: builder routing could not be verified for branch room/2442-junie-row; PR #2638 review waits for a checked builder assignment and model family.

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