Skip to content

0.1.2 W3-SP1: the Fly Sprites driver passes the kit on fixtures #2543

Open

Description

@jparker2006

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 over sprite exec; the first turn as a local sprite exec -s <name> -- <harness command> under the driver's supervisor (a running exec keeps the Sprite active). Claude: claude -p --session-id <uuid> with ANTHROPIC_BASE_URL set to the Anthropic connector's gateway URL; Codex: codex exec --json with OPENAI_BASE_URL set to the OpenAI or Codex connector's gateway URL. The connection ids come from $OPENWIZ_SPRITES_ANTHROPIC and $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 exec turn with claude -p --resume <uuid> or codex 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 effort start field, its can entry 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 its schema.json byte for byte, and merge after it. Then either take the user's effort, with effort in version's can and 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: no effort in can, a README Effort: line, and a start carrying effort refused with D3 next exactly this 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, list effort and refuse it for that harness with the same next. Never a silent default. Build the harness flags in one function.
  • Check each sprite command 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

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 next above; 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

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

    @jparker2006
    MemberAuthor

    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 no Authorization header; the gateway checks the calling Sprite against the connector's access policy (here, the openwiz label) and forwards the path to GitHub's REST API with the stored OAuth token attached. Fly's own example is POST .../gateway/github/<id>/repos/<owner>/<repo>/issues, so an issue comment is POST .../repos/<owner>/<repo>/issues/<n>/comments. Every Sprite also ships a sprite-api-gateway skill for Claude Code and Codex, and GET https://api.sprites.dev/v1/gateway/list gives the agent each connector's gateway_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:

    • A. Publish the branch through GitHub's REST Git Database API, via the gateway (create blobs, a tree and a commit, then create or update 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 the workflow scope on the connector. The driver itself barely changes: the agent pushes, and the prompt (or the sprite-api-gateway skill) tells it how.
    • B. The host pushes. At the end of each turn the driver copies the branch out (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.
    • C. Defer the push. Build the driver now with status notes through the gateway, leave the push to the live check to discover, and ask Fly for a documented git path. Cheapest, but the 5 of 5 can't pass if no push works.

    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.

  4. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    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

  5. added
    needs-info
    and removed
    needs-info
    on Nov 23, 2026
  6. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    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.

  7. added 4 commits that reference this issue on Nov 23, 2026
  8. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    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/main into #2720 (head da5f0939). Its diff is now only this ticket's paths, and scope: ok. Main's adapters/cloudroom/test_driver.py has test_every_drivers_readme_names_its_platforms: every adapters/*/ folder holding a driver must have a README.md matching **Platforms:** (Linux|macOS)..., Python 3.N or later. This PR adds adapters/sprites/driver without a README (the ticket says the README is SP2's), so release (2) fails with FileNotFoundError: 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 local sprite 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 ee058035 passed (lint, rust, release (1), changelog, privacy); owned-paths failed only on EF1's files, which the merge has now removed.

  9. 1 remaining item

  10. added 4 commits that reference this issue on Nov 23, 2026
  11. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    Approach note: R1 of the #2720 review (pinning the Fly organization).

    • Which organization. A new required variable, OPENWIZ_SPRITES_ORG, holds the Fly organization's name. The driver checks it before any sprite call, 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 .sprite file.
    • How it's pinned. Every Sprite command passes -o <org>, which Fly's CLI reference lists on create, exec and destroy (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 to sprite api too. The organization is saved in the run's state at start, and wake and stop use the saved value, never the current variable.
    • What identity is saved. Right after create, the driver reads the one Sprite with sprite api -o <org> /sprites/<name>. It saves that response's id (sprite-<uuid>) and organization, as shown in Get a Sprite, and requires name and organization to match. If the read fails, the run doesn't start and the new Sprite is destroyed, as today.
    • Stop. Under the saved organization, the driver reads the Sprite first. A 200 with the saved id lets destroy go ahead. A 200 with another id or 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. After destroy -o <org> --force, the same read must give 404.
    • Tests (red first). A two-organization fixture: the fake sprite keeps 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 another id is not destroyed.
    • Dropped. Using the CLI's default at start and saving it: the default can't be read except from an undocumented config file, or by parsing sprite org list's human-readable output. Also dropped: the SPRITE_ORG variable alone, because a .sprite file or a changed environment could override it.
  12. added 3 commits that reference this issue on Nov 23, 2026
  13. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    CI is blocked on #2720 at a10efffb913598910d20f50ce8995f713070917c. In release (2), adapters/cloudroom/test_driver.py::Driver.test_kit_passes_all_five failed its cloud case with fail 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 main parent. 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

  14. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    The fresh full CI run for #2720 at 0a1a235ae4312aafa9929b27ea6f33a78cfe5be9 passed 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

  15. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    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.

  16. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    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

  17. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    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.

  18. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    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

  19. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    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

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