clawdinators/scripts
joshp123 33755bec7a 🤖 fix: remove inline remote deploy logic from fleet switch
What:
- move host-side nixos switch + revision verification into scripts/remote-fleet-switch-host.sh
- update scripts/fleet-switch-nixos.sh to fetch and execute the committed remote script at the target git rev
- keep canary host loop behavior unchanged while eliminating inline remote bash payload logic

Why:
- prevent local shell interpolation bugs in deploy assertions
- align deploy flow with repo rule: put logic in script files and call them
- make host-side deploy verification easier to audit and reason about

Tests:
- nix shell nixpkgs#shellcheck nixpkgs#shfmt -c sh -c "find scripts -type f -name *.sh -print0 | xargs -0 shellcheck -S warning && find scripts -type f -name *.sh -print0 | xargs -0 shfmt -i 2 -ci -sr -d"
2026-02-16 08:59:22 -08:00
..
aws-resolve-instance-id.sh Add shellcheck + shfmt linting for scripts 2026-02-15 15:51:40 -08:00
aws-ssm-run.sh Add shellcheck + shfmt linting for scripts 2026-02-15 15:51:40 -08:00
bootstrap-runtime.sh infra: rebootstrap on prefix change 2026-02-03 18:27:30 -08:00
build-image.sh Add shellcheck + shfmt linting for scripts 2026-02-15 15:51:40 -08:00
clawdinator-version.sh Add shellcheck + shfmt linting for scripts 2026-02-15 15:51:40 -08:00
fetch-ec2-metadata.sh infra: restore ec2 user-data fetch 2026-02-03 16:36:21 -08:00
fleet-control.sh Add shellcheck + shfmt linting for scripts 2026-02-15 15:51:40 -08:00
fleet-deploy.sh infra: add fleet control api + multi-instance 2026-02-03 01:20:23 +01:00
fleet-status.sh Fix jq precedence in fleet-status 2026-02-15 17:13:09 -08:00
fleet-switch-nixos.sh 🤖 fix: remove inline remote deploy logic from fleet switch 2026-02-16 08:59:22 -08:00
gh-sync.sh Add shellcheck + shfmt linting for scripts 2026-02-15 15:51:40 -08:00
import-image.sh Add shellcheck + shfmt linting for scripts 2026-02-15 15:51:40 -08:00
init-memory.sh Add shellcheck + shfmt linting for scripts 2026-02-15 15:51:40 -08:00
landpr.md refine: landpr flow to single approval gate 2026-02-01 17:15:33 +01:00
lint-shell.sh Add shellcheck + shfmt linting for scripts 2026-02-15 15:51:40 -08:00
memory-edit.sh Add EFS shared memory and locking tools 2026-01-08 13:43:56 +01:00
memory-read.sh Add EFS shared memory and locking tools 2026-01-08 13:43:56 +01:00
memory-write.sh Add EFS shared memory and locking tools 2026-01-08 13:43:56 +01:00
mint-github-app-token.sh Bake repo seeds into image build 2026-01-08 23:21:58 +01:00
pi-auth.sh Switch pi defaults to OpenAI API provider 2026-02-02 17:22:25 +01:00
prepare-repo-seeds.sh Bake repo seeds into image build 2026-01-08 23:21:58 +01:00
remote-fleet-switch-host.sh 🤖 fix: remove inline remote deploy logic from fleet switch 2026-02-16 08:59:22 -08:00
resolve-latest-ami.sh infra: add fleet control api + multi-instance 2026-02-03 01:20:23 +01:00
seed-repos-from-snapshot.sh Bake repo seeds into image build 2026-01-08 23:21:58 +01:00
seed-repos.sh Make seed-repos resilient to single repo failures 2026-01-08 23:10:52 +01:00
seed-workspace.sh Make seed-workspace resilient to permission drift 2026-02-15 17:15:12 -08:00
sync-public-s3-tree.sh Add shellcheck + shfmt linting for scripts 2026-02-15 15:51:40 -08:00
upload-bootstrap-all.sh infra: add fleet control api + multi-instance 2026-02-03 01:20:23 +01:00
upload-bootstrap.sh Move secrets + repo seeds to runtime bootstrap 2026-01-10 17:04:18 +01:00
upload-image.sh Harden AWS image pipeline and cleanup host config 2026-01-07 23:00:21 +01:00
validate-age-secrets.sh feat: control api invoke creds 2026-02-03 11:10:39 +01:00