Skip to content

dataPlane=wisp, and just up / just register hand studio its URL, data plane and key (#121 items 3, 4) - #122

Merged
lex00 merged 1 commit into
mainfrom
issue-121-local-stacks
Sep 25, 2026
Merged

lex00 merged 1 commit into
mainfrom
issue-121-local-stacks

Conversation

@lex00

@lex00 lex00 commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Items 3 and 4 of #121: an external Sprites endpoint as a data plane, and the two facts studio needs from just up and just register. Item 2 (spritzer's real mode as dataPlane=spritzer) is not here: spritzer's newest release is still 0.5.0, and INTENTIUS/spritzer#22 has not shipped. The pin (item 1) landed in #120 at v0.21.0.

dataPlane=wisp. A third data plane beside sprites and spritzer, for a Sprites-compatible server somebody else runs (arugula-salad/wisp; wisp.widgets.wtf, or any Linux host with /dev/kvm).

  • spritesBaseUrl (no default) becomes fountain's SPRITES_BASE_URL. A trailing slash is dropped.
  • spritesTokenSecret (default fountain-sprites-token) names the Secret whose SPRITES_TOKEN key becomes fountain's SPRITES_TOKEN. It is an explicit env entry, so it overrides the platform Secret's value (a placeholder on k3d) without rewriting that Secret.
  • Nothing is deployed for it, and it is accepted on k3d, on the laptop tier and at ha.
  • Refused at build time: wisp without spritesBaseUrl (fountain would fall back to api.sprites.dev and send the wisp token there); spritesBaseUrl with sprites or spritzer; a URL that is not http(s), or carries a query, fragment or credentials.
  • Refused at apply time, before anything is applied: wisp whose token Secret is missing or empty. Without this the pod sits in CreateContainerConfigError until wait times out.
  • just sprites-token creates or rotates that Secret from $SPRITES_TOKEN or a prompt that does not echo, then restarts the app if it is running.
  • verify-conversation holds wisp to a turn that exits 0 (no emulator exemption) and allows strict.

Surfacing. The Deployment now carries fountain-ops/data-plane, fountain-ops/sprites-base-url and, for wisp, fountain-ops/sprites-token-secret annotations. just up ends with announce, which reads them off the live Deployment:

  fountain    http://localhost:4000   (reach it with: just forward)
  data plane  spritzer -> http://fountain-spritzer.fountain.svc.cluster.local:4290
              the in-cluster emulator: turns stop at the ACP handshake (#91)
  next        just register you@example.com   (an API key for chant's fountain profile)

verify-conversation reads the same annotation, with the old env scan as a fallback for older Deployments.

just register EMAIL [PROFILE] does the API half of waterpark's compose/bin/register.sh: registers or reuses the account (422 "already been taken" continues, any other 422 is printed and fails), mints a key at /api/auth/token, refuses to print it unless GET /api/agents accepts it, and prints export FOUNTAIN_ENDPOINT=... / export FOUNTAIN_TOKEN=... on stdout, which is what chant's fountain lexicon falls back to. A fountain.profiles block goes to stderr. It writes no files.

Validation:

  • just check passes: typecheck, lint, 40 tests (5 new for wisp), build.
  • just e2e passes from nothing on k3d, including the new step: just register against the e2e account prints FOUNTAIN_ENDPOINT=http://localhost:4000 and a token that authenticates.
  • By hand on k3d, default data plane: just register studio@example.com, then chant 0.89.0's fountainApply of an Environment and an Agent with sandbox_mode: persistent, using the exported endpoint and token, created both. fountainRun on that agent provisioned a sandbox on spritzer, dispatched the turn, and the turn failed at the ACP handshake (-32601 initialize is not supported), as it does at every pin since v0.9.0. The persistent conversation then sat open until fountainRun's deadline terminated it, and the sandbox was kept (persistent_home).
  • By hand on k3d, dataPlane=wisp pointed at a second spritzer 0.5.0 standing in for a wisp host: apply refused without the token Secret; just sprites-token created it; up announced wisp -> http://wisp-standin... and the token Secret; inside the app pod SPRITES_TOKEN was the Secret's value, not the platform placeholder; verify-conversation provisioned through the stand-in and then failed the turn with "the turn did not exit 0", which is correct for spritzer on a plane with no exemption.
  • Not done: nothing here has talked to a real wisp host, and no real wisp token was used. That hand check is on Local stacks for a studio box: spritzer's real mode as the laptop data plane, a wisp endpoint as the production model, and a v0.21+ pin #121, along with one open question: whether a turn needs the sprite to call fountain back at PUBLIC_URL, which a public wisp host cannot do against a laptop's http://localhost:4000.

Refs #121 (items 3 and 4). Item 2 and both acceptance turns stay open there.

…he URL and data plane; just register hands back a key (#121)
@lex00
lex00 merged commit cede537 into main Sep 25, 2026
2 checks passed
@lex00
lex00 deleted the issue-121-local-stacks branch September 25, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant