Repository navigation
Description
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_KEYset 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
nextif 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
- 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, its row folder shape and the kit check this row is built and tested against
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
nextsays 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
jparker2006 commentedon Nov 22, 2026
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.
jparker2006 commentedon Nov 22, 2026
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.
jparker2006 commentedon Nov 22, 2026
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
jparker2006 commentedon Nov 22, 2026
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):
junie --task "..." --output-format jsonprints one line,{"errors":["Cannot find authorization. Please authenticate before running Junie."]}, and exits 0.ended_at_onceinadapters/local/driverat 6352ffd) calls a turn that ends at once with exit 0 a failure only whenSIGNED_OUTorREFUSALmatches. Neither matches that line. The phrase isn't inSIGNED_OUT, andDIAGNOSTIC_LINEanchors at the line's start, so text inside a JSON string can't match either. Checked against the driver's own regexes.nextsays what to do". A row is data only, so it can't fix this from insideadapters/local/harnesses/junie/.Options:
cannot find authorization,please authenticate) toSIGNED_OUT, and also checks the string values of a JSON output line (Junie'serrorsarray). Small, driver-only, and other JSON-printing rows get the same check.signed_out, one regex) that the first-turn watch also checks. More general, but it's a new contract field for every row.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.
jparker2006 commentedon Nov 22, 2026
Lead ruling, final (planner's final word, superseding every earlier ruling here): HR1 itself carries the optional
signed_outpatterns andlogin_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.#2442: red: a signed-out Junie start, which exits 0, still starts a r…
#2442: green: the row's signed_out pattern and login_command fail a s…
jparker2006 commentedon Nov 23, 2026
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.