This runbook is the fast path for humans and agents operating SupraGoFlow.
The Git repository root is the directory containing this project (often cloned as supragoflow).
Run all git and ./scripts/gg commands from the repository root directory.
Keep local scratch artifacts outside the project directory so they are not committed.
Use only ./scripts/gg stages:
./scripts/gg bootstrap
./scripts/gg deps
./scripts/gg fmt
./scripts/gg vet
./scripts/gg lint
./scripts/gg self-test
./scripts/gg test
./scripts/gg build linux amd64
./scripts/gg package- Print lifecycle contract:
./scripts/gg contract - Validate required config:
./scripts/gg validate-config - Validate writable roots:
./scripts/gg verify-writable
Fail-fast compatibility env vars:
SUPRAGOFLOW_EXPECT_SCHEMA_VERSIONSUPRAGOFLOW_EXPECT_LOG_SCHEMA_VERSIONSUPRAGOFLOW_EXPECT_GG_INTERFACE_VERSION
Collect bounded diagnostics bundle:
./scripts/gg diagnoseDiagnostics are written under dist/diagnostics/ (with fallback to /tmp when needed), and include redacted environment output.
Recommended first triage sequence:
./scripts/gg --log-level debug bootstrap
./scripts/gg validate-config
./scripts/gg verify-writable
./scripts/gg diagnoseCache mode:
SUPRAGOFLOW_CACHE_STRATEGY=volume(default)SUPRAGOFLOW_CACHE_STRATEGY=host(CI-friendly)
Prune host cache when bounded max is exceeded:
./scripts/gg cache-pruneIf containerized stages fail with permission errors, run:
./scripts/gg verify-writableThen ensure the current user owns/writes dist/ and .cache/ roots.
Run policy gate locally before PR:
./scripts/check-policy-conformance.shThis checks required policy docs, pinned GitHub Action SHAs, and no :latest workflow tags.