Task · GHC-0001

Add cloud-agent manual environment setup

Description

Provide a reproducible setup script for Codex Cloud tasks so agents can use this repository task tracker and run every local validation gate without relying on automatic environment setup.

Acceptance Criteria

Definition of Done

Implementation Plan

  1. Derive pinned tool requirements from the repository gates and the Codex Cloud manual-setup lifecycle.

  2. Add an idempotent setup script and concise operator documentation.

  3. Exercise the script in an isolated HOME/PATH where practical, then run the repository gates and safety sweep.

  4. Remove dependencies on cross-repository GitHub release downloads and document the same script for Claude Code cloud environment constraints.

  5. Add the required local-agent execution guard at the start of the script and validate it without executing the cloud-only script locally.

Implementation Notes

Added the pinned manual setup and operator instructions. An isolated temporary HOME run installed every tool, a second run skipped every install, and the generated bashrc contained one PATH entry.

Validation: shellcheck, bash syntax, actionlint, diff checking, and the backlog identifier sweep passed. zizmor 1.29.0 completed its full 13-file audit but exits 14 for two pre-existing github-env findings in the bao-secret and broker-token actions; the setup change introduces no Actions YAML finding.

Claude Code follow-up: renamed the script for both cloud agents and replaced the GitHub release-asset download with a pinned Go module-proxy install. This avoids Claude cloud GitHub proxy restrictions on release assets from unattached repositories; the isolated install finished well inside the five-minute setup limit and its second run reused all tools.

Local-agent guard follow-up: added the required opening comment and README warning. Per that guard, validation used non-executing Bash parsing and an exact comment assertion; the cloud-only script was not run locally. actionlint and the CI-equivalent zizmor audit were invoked independently.

Final Summary

Added one idempotent setup for Codex and Claude Code cloud environments that installs pinned Backlog.md, actionlint, and zizmor tools into a persistent PATH. The script now opens with an explicit prohibition against local-agent execution, reinforced in the README. Verified the guard and Bash syntax without executing the cloud-only script locally, then ran actionlint and the CI-equivalent zizmor audit independently.

References

View the source file on GitHub