Repository navigation
Description
Parent
Ticket CS1 of spec #2421 (0.1.2): the GitHub Codespaces driver. Size: L.
What to build
A driver at adapters/codespaces/, copied from adapters/template/ and built on driver v1 (kernel/driver.v1.md): version, schema, start, wake and stop, exactly as the spec's Implementation Decisions say. Read adapters/boat/ first: its locking, save-before-start, local turn supervisor, pinned WizSkills install and fixed-words errors are the prior art to copy.
- Start: the pre-checks (the
codespacescope; one of the harness's secret names listed bygh api /user/codespaces/secrets, withrepositoryin that secret's repository list), before any create. Thengh codespace create -R <repository> --default-permissions --display-name openwiz-<ticket> --idle-timeout 240m --retention-period 72h(plus-m $OPENWIZ_CODESPACES_MACHINEwhen set), the pinned install over onegh codespace ssh, and the first turn as a localgh codespace ssh -c <name> -- <harness command>under the driver's supervisor. Claude:claude -p --session-id <uuid>; Codex:codex exec --json, saving its thread id. If a start step fails, stop the new codespace before refusing. - Wake: refused after a driver stop or for an unknown run; nothing while the last turn runs; otherwise a new
sshturn withclaude -p --resume <uuid>orcodex exec resume <id>. - Stop: ends every local process the turns started, then
gh codespace stop -c <name>; a second stop answers again. - Never a key (N1 to N3): the driver reads secret names and repository lists only. No command it sends through
sshcontains$NAME,${NAME},env,printenvorsetfor a secret name.gh's own text never reaches an answer. - Effort (J318, spec 0.1.2 spec: Effort everywhere: every driver passes the user's effort, or says plainly it can't #2471): stack on EF1 (0.1.2 EF1: driver v1's optional
effortstart field, itscanentry and the can't-set-effort statement (the contract) #2558): branch from its approved head as a draft pull request that names that commit, copy itsschema.jsonbyte for byte, and merge after it. Then either take the user's effort, witheffortinversion'scanand the value passed to the harness's exact documented flag or setting (Codex:-c model_reasoning_effort=<effort>; Claude Code: its documented effort setting, if any), with a fixture test showing the value reach the fake harness; or declare none: noeffortincan, a READMEEffort:line, and a start carrying effort refused with D3nextexactlythis host can't set effort: remove the effort for this harness in your Models table or Roster to run it at the host's default. If one harness can take it and the other can't, listeffortand refuse it for that harness with the samenext. Never a silent default. Build the harness flags in one function. - Check each
gh codespaceflag against the gh manual before relying on it. If one of start, wake or stop can't work as the spec says, stop and ask on this ticket.
Fixtures. fixtures/bin/gh, a fake gh (auth status, api /user/codespaces/secrets..., codespace create, ssh, stop, list) whose ssh runs a fake harness locally, so the kit runs in CI.
Shared lines, one row each: the test line in .github/workflows/ci.yml, the entry adapters/codespaces/** in tools/open-import/paths.json, and codespaces in DRIVERS in tools/release/build_products.py.
The README is CS2's; don't write it.
Owned paths
adapters/codespaces/driver(new)adapters/codespaces/schema.json(new)adapters/codespaces/test_driver.py(new)adapters/codespaces/fixtures/(new)adapters/codespaces/evidence/(new).github/workflows/ci.yml(shared: this driver's one test line)tools/open-import/paths.json(shared: this driver's one entry)tools/release/build_products.py(shared: this driver's name in DRIVERS)
Relies on: kernel/driver.v1.md, kernel/driver-kit/schema.json, kernel/driver-kit/kit.py
Links
- 0.1.2 EF1: driver v1's optional
effortstart field, itscanentry and the can't-set-effort statement (the contract) #2558 real: driver v1'seffortstart field, itscanentry and the schema this driver copies
Acceptance criteria
- The kit fails against the copied template first (red log in
evidence/), then passes all five checks on fixtures in CI - Tests prove: the pre-checks refuse before any
codespace create; a wake after stop is refused; a wake after GitHub stopped the codespace resumes the same session; nosshcommand names or expands a secret;gh's stderr never reaches an answer - Effort: a given effort reaches the fake harness's argv or env in a fixture test, or is refused with the exact D3
nextabove; never a silent default - Merge gate: merges only after its live-check ticket records 5 of 5 on a real codespace at this pull request's approved head (driver contract section 3)
Proof
P1 (driver): test_driver.py and the kit on fixtures, red first, and the review. The live 5 of 5 is CS3.
Activity
jparker2006 commentedon Nov 22, 2026
launch-fleet: started
Started by hand by the spec #2421 lead, 2026-11-22. Checks read just now: open; labelled ready-for-agent only; no claim, builder, branch or pull request; no blockers; no open ticket or pull request that can run at the same time owns its paths (#2423 and #2430 own disjoint files under
adapters/codespaces/); plan approval 7087154545 (revision 1) is current. Builder: Claude Code Opus 5.5, medium.jparker2006 commentedon Nov 22, 2026
agent: builder
state: working
harness: Claude Code
model: Opus 5.5 default effort
skills: build-ticket@0.2.2
step: Stacked on EF1 and took effort (Claude --effort, Codex model_reasoning_effort) red first; pushed and waiting on CI.
time: 2026-11-23T01:28:08Z
#2423: green: the kit and tests rerun with no-op agent-CLI stubs firs…
jparker2006 commentedon Nov 22, 2026
Plan change, held for revision 2 (J318, effort everywhere, spec #2471): this ticket gains an effort criterion and a native blocker on EF1 (#2558). Stack on #2558's approved head as a draft that names that commit, copy its
schema.jsonbyte for byte, and either take the user's effort (effortincan, the value reaching the harness's exact flag, with a fixture test) or refuse it with the exact D3nextthe ticket gives. Never a silent default. Theheldlabel stops only new starts; the running builder keeps going.effortstart field, itscanentry and the can't-set-effort statement (the contract) #2558#2423: red (#2644): a failed cleanup stop and a cut codespace list le…
#2423: green (#2644): stop retries once and reads the one codespace w…
7 remaining items
#2423: red (EF1 effort): effort in can, and a given effort reaches th…
#2423: green (EF1 effort): effort in can, passed as Claude Code's --e…
#2423: green (CI no-proc race): the no-proc kit test holds the woken …
jparker2006 commentedon Nov 23, 2026
F4 supporting edit granted (planner), for #2423:
adapters/codespaces/README.mdReason: main's
adapters/cloudroom/test_driver.py(test_every_drivers_readme_names_its_platforms) requires each driver folder to ship a README with a**Platforms:**line, so the driver and its README must land together. #2559 merges the approved README branch of #2510 (approved at fa068e9) and then edits that README only to add the Platforms line and to match the driver's final behaviour (the #2644 stop wording, thebasicLinux32gbdefault, the turn-began refusal, effort). #2559 then closes #2430 too, and #2510 closes unmerged with a pointer. The README changes get the re-check.#2423: drop the test comment the comment check refuses
#2423: green (README after main and #2510 merges): the Codespaces REA…
jparker2006 commentedon Nov 23, 2026
launch-fleet: look: builder routing unresolved during webhook check; private assignment evidence is required before reconciliation.
jparker2006 commentedon Nov 24, 2026
Merge blocker for #2559. The existing merge at
54d6a8f82d8ebafaaf80f803f110308cb2529c20passed all 21 Codespaces fixture tests locally. A trial merge withmainat50cd46f00f307c58da2388137852409b21c5e284combines cleanly, but the Codespaces suite fails against the driver kit added by #2700.The kit reads only the first backticked setting in the driver's
Effort:line unless the README supplies a per-harness table. Inadapters/codespaces/README.md, that first setting is Claude's--effort <effort>. For Codex, the kit looks for that flag instead of-c model_reasoning_effort=<effort>and reportseffort: medium never reached a process the run started. A local fixture-only probe accounted for the kit's new expected output and made the fake SSH harness visible to its sampler. Both Claude cases then passed, and Codex still failed.The required edit outside #2423's owned paths is a per-harness effort table in
adapters/codespaces/README.mdnaming the two existing flags. Please assign that edit or authorize it for this round before queueing #2559. The trial merge and diagnostic edits were local.jparker2006 commentedon Nov 24, 2026
F4 supporting edit granted (planner), for #2423:
adapters/codespaces/README.mdinopenwizdev/OpenWizScope: only a per-harness effort table that names the two flags the driver already passes (Claude
--effort <effort>, Codex-c model_reasoning_effort=<effort>), in the form the driver kit from #2700 reads, so the kit's effort check samples the right flag for each harness. No other change to that file.Merge origin/main into room/2423-codespaces-driver (green)
#2423: green: remove the comment flagged by CI
#2423: green: give the kit time to sample the fake first turn
jparker2006 commentedon Nov 24, 2026
agent: reviewer
state: done
harness: Claude Code
model: Opus 5.5 Medium
skills: review-ticket@0.4.0
step: APPROVE posted at e39b880
time: 2026-11-24T14:27:00Z
pr: #2559
jparker2006 commentedon Nov 24, 2026
Planner note: #2559 is approved but conflicts with main again (another driver PR landed). A fresh Claude Opus 5.5 Medium builder in its own boat.dev sandbox merges main (a merge commit, noreply identity, full fetch of main), gets a fresh full CI run and posts the hand-back; then a merge-only re-check.
jparker2006 commentedon Nov 24, 2026
agent: builder
state: working
harness: Claude Code
model: Opus 5.5 medium effort
skills: build-ticket@0.3.0
step: Merging main into the approved Codespaces driver branch and rerunning its checks.
time: 2026-11-24T15:54:56Z