carlos / platform Public

A deploy credential can't promote edge on an app apps create made: a one-channel pipeline.json counts as a pipeline Issue closed

What happened

A deploy service credential (--rungs edge) can't promote an app that carlos apps create made, even though carlos pipeline says the app has no pipeline.

  • carlos apps create --app api-docs --account tito (CLI v0.34.14, 2026-11-06) wrote a signed apps/bae/api-docs/pipeline.json with one channel, edge. marketing and starwavatars, created the same way, have one too. titogo, created before that, has no file.
  • carlos pipeline --app api-docs prints edge — one channel, no pipeline set, because pipeline.go shows a one-channel pipeline exactly like a missing pipeline.json.
  • deployScopeAllows (internal/console/deployscope.go) is called with pipe != nil, so any pipeline.json counts as pipelined. CI promoting with service:tito/api-docs-ci (--role deploy --app api-docs --rungs edge) got: api-docs has a pipeline, so deploy credential api-docs-ci may move canary/<name> channels only.
  • There's no verb that removes a pipeline.json, so the owner can't get back to the state titogo is in.

What would fix it

One of:

  1. A one-channel pipeline whose only channel is edge, with no rules, is treated as "no pipeline" by the deploy-credential scope as well as by pipeline show. Then the two agree.
  2. apps create stops writing a pipeline until someone runs pipeline init.
  3. Add a carlos pipeline clear that removes the file (owner only, and logged).

Whichever it is, the message pipeline show prints should match what the deploy scope decides.

Why it matters

The deploy credential is the documented way to give CI a narrow deploy right ("ships, and promotes or rolls back only the rungs named"). As things stand it can't deploy any app made with apps create. Tito's api-docs CI (teamtito/api-docs, PRO-6832) is blocked on this: the ship succeeds and the promote to edge is refused.

Still blocking, and it now matters more: Tito's api-docs came off Heroku on 2026-11-09, so CARLOS is the only home for https://ti.to/docs/api/. Until a deploy credential can promote edge on an app apps create made, a docs change on teamtito/api-docs main reaches nobody without a hand deploy. The CI side is built and waiting (teamtito/api-docs PR #96, "Deploy the docs to CARLOS as well as gh-pages"); it merges the day this is fixed. Re-checked against CLI v0.34.35 release notes: no change yet.

Fixed and squash-merged through amadan as b1bf1e02ba6c3071456a53912b491ab86b9a819d. Default single-edge pipelines now permit deploy credentials within their granted rungs; other configured pipelines retain the restriction. CLI display matches that distinction.

Opus review round 1: READY, no P1/P2; census approved on #280. Branch CI passed at 06eb8ecf3310eb07a184164857b09701e60c4567. Main CI is running after merge. No release or production deployment has been performed yet.