Repository navigation
Description
Parent
Ticket W3-SP1 of spec #2520 (0.1.2): the Fly Sprites driver. Size: L.
What to build
A driver at adapters/sprites/, copied from adapters/template/ and built on driver v1 (kernel/driver.v1.md), exactly as the spec's "Sprites driver" decisions say. Prior art: adapters/boat/ (locking, save-before-start, the local turn supervisor, the pinned WizSkills install, fixed-words errors) and the Codespaces driver (#2423, building now).
First, the GitHub question. A Sprite has no GitHub login, and the driver never copies one in (N2). The agent must reach GitHub only through the user's GitHub Connector (https://api.sprites.dev/v1/gateway/github/<connection id>/...). Find, from Fly's docs, how an agent in a Sprite posts its status note and pushes its branch that way. Write the answer with links on this ticket before building. If there is no documented path for the push, stop and ask on this ticket.
- Start:
sprite create openwiz-<run>with a label for the connectors' access policies; the pinned install oversprite exec; the first turn as a localsprite exec -s <name> -- <harness command>under the driver's supervisor (a running exec keeps the Sprite active). Claude:claude -p --session-id <uuid>withANTHROPIC_BASE_URLset to the Anthropic connector's gateway URL; Codex:codex exec --jsonwithOPENAI_BASE_URLset to the OpenAI or Codex connector's gateway URL. The connection ids come from$OPENWIZ_SPRITES_ANTHROPICand$OPENWIZ_SPRITES_OPENAI; they are not credentials. A key variable the harness insists on gets a fixed placeholder word that fails the kit's credential check, never a real key. If a start step fails, destroy the new Sprite before refusing. - Wake: refused after a driver stop or for an unknown run; nothing while a turn runs; otherwise a new
sprite execturn withclaude -p --resume <uuid>orcodex exec resume <id>. - Stop: ends every local process the turns started, then
sprite destroy --force <name>; a second stop answers again. - 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
spritecommand and flag against Fly's CLI reference before relying on it.
Fixtures. fixtures/bin/sprite, a fake sprite CLI (create, exec, list, destroy) whose exec runs a fake harness locally and records each command's environment names and values, so the kit runs in CI.
Shared lines, one row each: the test line in .github/workflows/ci.yml, adapters/sprites/** in tools/open-import/paths.json, and sprites in DRIVERS in tools/release/build_products.py.
The README is SP2's; don't write it.
Owned paths
adapters/sprites/driver(new)adapters/sprites/schema.json(new)adapters/sprites/test_driver.py(new)adapters/sprites/fixtures/(new)adapters/sprites/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 GitHub path is answered with Fly's doc links on this ticket before the build
- The kit fails against the copied template first (red log in
evidence/), then passes all five checks on fixtures in CI - Tests prove: the only connector values passed are gateway URLs; no real key or GitHub token is passed in any argument or environment; a wake after stop is refused; stop runs
sprite destroy; the CLI'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 Sprite at this pull request's approved head (driver contract section 3)
Proof
P3 (Sprites): test_driver.py and the kit on fixtures, red first, and the review. The live 5 of 5 is SP3.
Activity
effortstart field, itscanentry and the can't-set-effort statement (the contract) #2558jparker2006 commentedon Nov 23, 2026
The GitHub question (first criterion), from Fly's docs, read 2026-11-23 with plain curl.
Status note: documented. A Sprite calls
https://api.sprites.dev/v1/gateway/github/<connection id>/<path>with noAuthorizationheader; the gateway checks the calling Sprite against the connector's access policy (here, theopenwizlabel) and forwards the path to GitHub's REST API with the stored OAuth token attached. Fly's own example isPOST .../gateway/github/<id>/repos/<owner>/<repo>/issues, so an issue comment isPOST .../repos/<owner>/<repo>/issues/<n>/comments. Every Sprite also ships asprite-api-gatewayskill for Claude Code and Codex, andGET https://api.sprites.dev/v1/gateway/listgives the agent each connector'sgateway_base_url. Sources: Connectors: how it works, calling a connector, using connectors with a coding agent, connector catalog, GitHub entry.Branch push: no documented path. The docs describe the gateway only as an HTTP API proxy ("whatever path you append after the connector ID gets forwarded to the provider"). Nothing in the Sprites docs (the full docs index and every Sprites page) covers
git push, git's smart-HTTP endpoints, a git credential helper, or handing the connector's token to git. The GitHub entry offers "repositories, issues, and pull requests", through the API. So, as the ticket says, I stop and ask before building.Options I see:
refs/heads/<branch>). Every call is a REST path under/repos/*, which Fly documents the gateway forwarding, and N2 holds: no login enters the Sprite. Costs: Fly doesn't document this use, so it is unproven until the live check (0.1.2 W3-SP3: live check: the Fly Sprites driver passes 5 of 5 through the gateway (a person) #2642); each commit is rebuilt through the API, which is slow for big diffs and binary files; the commit author is the connector's account; edits to.github/workflows/need theworkflowscope on the connector. The driver itself barely changes: the agent pushes, and the prompt (or thesprite-api-gatewayskill) tells it how.sprite exec -s <name> -- git bundle create - <branch>) and pushes it with the user's own local git login. N2 holds, and git push is ordinary, but it changes the driver's job (the spec has the agent push), needs a new seam and tests, and puts the user's login on every push.My pick: A, with #2642 proving it live and recording how the branch was pushed (the spec's P4 already asks for that). It keeps the spec's shape and N2. If A is ruled, the driver build is unchanged apart from the prompt's push instruction; I'll wait for the ruling before building.
jparker2006 commentedon Nov 23, 2026
agent: builder
state: working
harness: claude
model: claude-opus-5-5
skills: build-ticket@0.2.2
step: Merged EF1 cd1d393 and main into the branch; kit and 33 tests green on fixtures at 5c98629; watching CI.
time: 2026-11-23T02:58:19Z
jparker2006 commentedon Nov 23, 2026
launch-fleet: started at 2026-11-23T01:09:20Z, record delayed by GitHub's write pacing
Started by hand by the spec #2520 lead. Checks: open; labelled ready-for-agent only; no claim, builder, branch or pull request (#2684 only mentions it); blocker EF1 #2558 has a reviewed head (PR #2659 at 21a3513), which this builder stacks on as a draft that merges after it; no open ticket or pull request that can run at the same time owns its paths; plan approval 7088047278 (revision 1) is current. Builder: Claude Code Opus 5.5, medium.
#2543: green: the kit's five checks for claude and codex and 33 drive…
#2543: red: stop trusts a truncated sprite list; it must confirm on t…
#2543: green: stop confirms on the one Sprite (sprite api /sprites/<n…
#2543: drop a bytecode file the evidence commit picked up by mistake
jparker2006 commentedon Nov 23, 2026
Question (unowned path): CI on #2720 now needs
adapters/sprites/README.md, which is SP2's (#2545).EF1 (#2659) has merged, so I merged
origin/maininto #2720 (headda5f0939). Its diff is now only this ticket's paths, andscope: ok. Main'sadapters/cloudroom/test_driver.pyhastest_every_drivers_readme_names_its_platforms: everyadapters/*/folder holding adrivermust have aREADME.mdmatching**Platforms:** (Linux|macOS)..., Python 3.N or later. This PR addsadapters/sprites/driverwithout a README (the ticket says the README is SP2's), sorelease (2)fails withFileNotFoundError: adapters/sprites/README.md. Also, the README on #2684's head (ee2dfb5a) has no**Platforms:**line yet, so merging it as it stands would still fail.Options:
My pick: A (or B if #2720 should not wait). The line could read:
**Platforms:** Linux and macOS, Python 3.9 or later (on Linux it keeps each turn's localsprite execwith/procand a subreaper; on macOS with each turn's process group,psandlsof).That matches the driver's two paths, both tested on fixtures.Every other check that ran at
ee058035passed (lint, rust, release (1), changelog, privacy);owned-pathsfailed only on EF1's files, which the merge has now removed.1 remaining item
#2543: green: the Sprites README (merged from #2545 at ee2dfb5) gets …
#2543: green: the README's billing limit says Codex uses an OpenAI AP…
#2543: the no-proc kit test holds the woken turn until stop, so ps -E…
#2543: drop the test comment the comment contract refuses
jparker2006 commentedon Nov 23, 2026
Approach note: R1 of the #2720 review (pinning the Fly organization).
OPENWIZ_SPRITES_ORG, holds the Fly organization's name. The driver checks it before anyspritecall, the same way it checks the connection ids (Ruling 3). Connectors and their connection ids belong to one organization, so the user names it once. The driver never falls back to the CLI's default. It never reads~/.sprites/sprites.json(Fly says its format "may evolve") or a.spritefile.-o <org>, which Fly's CLI reference lists oncreate,execanddestroy(sprite create -o myorg …,sprite destroy -o myorg …). It is also the global per-command selector in Switching organizations (sprite -o my-team list), so it applies tosprite apitoo. The organization is saved in the run's state at start, and wake and stop use the saved value, never the current variable.sprite api -o <org> /sprites/<name>. It saves that response'sid(sprite-<uuid>) andorganization, as shown in Get a Sprite, and requiresnameandorganizationto match. If the read fails, the run doesn't start and the new Sprite is destroyed, as today.idlets destroy go ahead. A 200 with anotheridor organization is refused: nothing is destroyed, and stop doesn't report success. A 404 counts as gone only under the pinned organization and only when an identity was saved. Afterdestroy -o <org> --force, the same read must give 404.spritekeeps Sprites per organization, and its default organization is switched between start and stop. Stop must destroy the original Sprite and say it's gone only when it is. Further cases: a missing org variable is refused before any call, and a same-name Sprite with anotheridis not destroyed.sprite org list's human-readable output. Also dropped: theSPRITE_ORGvariable alone, because a.spritefile or a changed environment could override it.#2543: red for review R1 to R3: org pinning, Sprite identity, history…
#2543: pin the Fly organization and the Sprite's id (R1), dedupe blob…
#2543: green: review R1 to R8 fixed at the org-pinned driver; kit and…
jparker2006 commentedon Nov 24, 2026
CI is blocked on #2720 at
a10efffb913598910d20f50ce8995f713070917c. In release (2),adapters/cloudroom/test_driver.py::Driver.test_kit_passes_all_fivefailed itscloudcase withfail start: effort: medium never reached a process the run started. The job stopped before reaching the Sprites suite.The Cloudroom driver, its test, and the kernel kit match the merged
mainparent. The focused Cloudroom test passed locally, as did all 38 Sprites fixture tests. The failing Cloudroom check is outside #2543's owned paths.Failed release (2) job
jparker2006 commentedon Nov 24, 2026
The fresh full CI run for #2720 at
0a1a235ae4312aafa9929b27ea6f33a78cfe5be9passed the kernel kits step, which includes the Cloudroom effort case tracked in #3041 and the Sprites suite. Release (2) was then cancelled after 25m08s against its configured 25-minute job limit. Its last reported active step was the GitHub App tests. The aggregate CI check is red.The release job limit and GitHub App tests are outside #2543's owned paths. Fresh CI run · Release (2) job
jparker2006 commentedon Nov 24, 2026
launch-fleet: waiting for #3046
Hand-recorded by the planner: the CI release job times out under load (#3046); after it merges, this pull request merges main for a fresh full run.
jparker2006 commentedon Nov 24, 2026
agent: reviewer
state: done
harness: claude
model: claude-opus-5-5
skills: review-ticket@0.4.0
step: re-check posted APPROVE at 413eeb1
time: 2026-11-24T14:58:11Z
pr: #2720
jparker2006 commentedon Nov 24, 2026
Planner note: #2720 is approved at 413eeb1 but now conflicts with main. A fresh builder in its own boat.dev sandbox merges main (a merge commit, noreply identity), 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: done
harness: codex
model: GPT-6.2-Sol medium effort
skills: build-ticket@0.2.2
step: Pushed the merge-only update after 38 fixture tests and scoped packaging checks passed; fresh CI, the exact-head re-check and the live gate remain pending.
time: 2026-11-24T15:02:10Z
pr: #2720
jparker2006 commentedon Nov 24, 2026
agent: reviewer
state: done
harness: Claude Code
model: Claude Opus 5.5 Medium
skills: review-ticket@0.4.0
step: re-check posted: APPROVE at ce7b47f
time: 2026-11-24T15:39:56Z
pr: #2720