Skip to content

[Meta] Autodeploy lane on vela — merged main reaches the daemon without an operator - #756

Merged
unohee merged 1 commit into
mainfrom
swarm/AGT-4182-meta-autodeploy-lane-on-vela-merged-main
Sep 28, 2026
Merged

unohee merged 1 commit into
mainfrom
swarm/AGT-4182-meta-autodeploy-lane-on-vela-merged-main

Conversation

@unohee

@unohee unohee commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Salvaged from a draft left by a failed autonomous run (original body said "execution failed 4 times … very likely incomplete"). Re-applied onto current main (branch was 178 commits behind); the package-lock.json churn (npm libc field removal, unrelated to the feature) was dropped.

What it does — an autodeploy lane so a merged main reaches the daemon without an operator:

  • src/ops/velaAutodeployGates.ts: decideAutodeployGate — a pure checklist (build SHA already current / ledger has active runs / container inside the rate-limit window) returning deploy or skip + reason. Kept in TypeScript so CI can lock the skip reasons without SSHing to the host.
  • src/ops/velaAutodeployGates.test.ts, src/ops/velaAutodeploy.script.test.ts: contract tests over the decisions and the shell steps.
  • vela-autodeploy.sh, vela-build.sh: the host runtime.
  • .gitignore, ARCHITECTURE.md.

Verification (on current main)

  • npx tsc --noEmit → clean
  • npx vitest run src/ops/velaAutodeployGates.test.ts src/ops/velaAutodeploy.script.test.ts → 9 passed / 7 skipped (skips require host SSH, by design)
  • Pre-commit (oxlint + type check + file sizes) → passed
  • Confirmed unique vs main: src/ops/velaAutodeployGates.ts, vela-autodeploy.sh, vela-build.sh do not exist on main.

Notes

  • Host-side lane; needs an operator to install the scripts on the target host after merge.

This was referenced Sep 26, 2026
…out an operator (AGT-4182)

Salvaged from draft PR #756: re-applied onto current main (was 178 commits
behind), package-lock.json churn dropped. Adds decideAutodeployGate (pure
checklist over ledger state + container age + build SHA) with contract tests,
plus the host vela-autodeploy.sh / vela-build.sh runtime.
@unohee
unohee force-pushed the swarm/AGT-4182-meta-autodeploy-lane-on-vela-merged-main branch from 4d9f737 to d1e56b5 Compare September 28, 2026 05:39
@unohee
unohee marked this pull request as ready for review September 28, 2026 05:39
@unohee
unohee merged commit a00dfc9 into main Sep 28, 2026
7 checks passed
@unohee
unohee deleted the swarm/AGT-4182-meta-autodeploy-lane-on-vela-merged-main branch September 28, 2026 05:50
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