fix: exec supports 'cat SRC > DEST' copy form (#13) - #14
Merged
Conversation
The exec interpreter mirrors chant's in-process sprites-fake.ts, but the fake gained a 'cat SRC > DEST' copy form (chant #848) that spritzer lacked. An Op that stages a file, runs 'cat /src > /out' to process it, then reads /out worked against the fake but failed against spritzer (/out never written) — breaking chant's sprites-agent-task example and blocking the build-sandbox tutorial (#869). Add reCatRedirect (copy FS[src] -> FS[dest]) ahead of the plain cat form, matching the fake exactly. Table test covers it. build/vet/test/gofmt clean.
lex00
added a commit
to INTENTIUS/chant
that referenced
this pull request
Jul 14, 2026
…-task) (#869) (#876) * docs: Disposable Build Sandbox tutorial + spritzer 0.4.1 (fixes agent-task) (#869) Adds examples/sprites-build-sandbox + tutorials/sprites-build-sandbox.mdx — a disposable build box on a Sprite: warm a toolchain, checkpoint it (the prepared pool), stage source, build, collect the artifact, reset to the checkpoint, destroy. Registered in the Fly tutorials sidebar group; compile test included. Also fixes a latent bug from #848: the 'cat SRC > DEST' exec copy form was added only to the in-process fake, not spritzer's Go interpreter, so sprites-agent-task was broken against real spritzer (Run wrote nothing, Collect failed). Fixed in spritzer 0.4.1 (INTENTIUS/spritzer#14, closes spritzer#13); this bumps SPRITZER_IMAGE to 0.4.1 and the docker-run in the managed-agent-worker tutorial. Verified against ghcr.io/intentius/spritzer:0.4.1: build-sandbox runs green 8/8 phases, AND sprites-agent-task now completes (Collect succeeds). Docs build clean; compile tests pass. * fly-reconcile: rename op to "fly-reconcile" (unique across examples) The op was named "fly", colliding with local-fly's flyDeploy op (also "fly") — discoverOps() reported a duplicate-name error and discover.test went red on main (introduced in #868). Rename to "fly-reconcile" (unique; "reconcile" is taken by getting-started). Updates the run commands in the tutorial + README + the compile test. Verified: discover.test green, compile tests pass, docs build clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #13.
The exec interpreter is meant to mirror chant's in-process
sprites-fake.tsexactly, but the fake gained acat SRC > DESTcopy form (chant #848) that spritzer lacked. So an Op that stages a file, runscat /src > /out, then reads/outworks against the fake but fails against spritzer —/outis never written.This broke the shipped
sprites-agent-taskexample against real spritzer (its Run phase iscat /work/input > /work/output) and blocked the build-sandbox tutorial (chant #869).Add
reCatRedirect(copyFS[src] → FS[dest]) ahead of the plaincatform, matching the fake. Table test covers it.go build/vet/test/gofmtclean.Release 0.4.1 → chant bumps
SPRITZER_IMAGEand both examples run green offline.