Task · GTO-0005

Add cloud environment setup script

Status
Parked
Updated
2026-08-16

Description

Provide one repository setup script that Codex cloud and Claude Code cloud can run to install the project toolchain, including Backlog.md, so cloud agents can execute the tracked development and validation workflow.

Acceptance Criteria

Definition of Done

Implementation Plan

  1. Derive required runtimes and pinned validation tools from the repository Makefile and CI.
  2. Add a defensive, idempotent Bash setup script with persistent PATH configuration suitable for both cloud products.
  3. Add a lightweight contract test, run it failing first, then implement and run the full repository gate.

Implementation Notes

Implemented an idempotent Ubuntu provisioning script for both cloud products. It installs Go 1.26.6 (the patched release satisfying the module minimum), Backlog.md 1.50.1, pinned lint/vulnerability/Helm documentation tools, Helm, shellcheck, and base build dependencies; it persists PATH in .bashrc because Codex runs setup in a separate shell.

Validation passed: bash -n scripts/cloud-environment-setup.sh; go test ./scripts -run TestCloudEnvironmentSetupContract -count=1; git diff –check; and make check using Go 1.26.6. The first Go 1.26.5 make check attempt correctly exposed the standard-library vulnerabilities tracked by GTO-0004, which is why the cloud script provisions the patched release.

Implementation commit: 47b4b9c. This checkout has no configured Git remote, so the required push could not be performed here; resume boundary: configure the repository remote, then push commit 47b4b9c (and the tracker finalization commit).

Final Summary

Added the cross-cloud setup script and its Go contract test. Verified shell syntax, the focused contract test, diff hygiene, and the complete make check gate under the provisioned Go 1.26.6 toolchain.

References

View the source file on GitHub