Repository navigation
Description
Problem
After init-workspace.sh finishes, the scaffold assumes the vigOS dev/main branching convention is already in place (workflows like sync-issues.yml, sync-main-to-dev.yml, and the release cycle all target dev by default, and rely on COMMIT_APP_* / RELEASE_APP_* secrets plus COMMIT_APP being in the dev branch-protection bypass list).
On a non-Enterprise GitHub org (e.g. a community org or a second org alongside the vig-os Enterprise one), none of that is bootstrapped automatically: there's no dev branch, no rulesets, no GitHub App installations, and no secrets. The scaffolded workflows fail daily ("Sync Issues and PRs" → appId is required or git checkout of refs/heads/dev returning exit 1) until an operator figures out the full manual setup.
Closed issue #38 confirms that this is intentional — protection rules are applied as GitHub Enterprise org-wide rules, not per-repo scripts. That's fine for the Enterprise org, but the rest of us need a paved path.
What's missing
Everything between init-workspace.sh finishing and the release workflows being runnable:
devbranch creation frommain- Branch rulesets on both
mainanddevwith theCOMMIT_APP+RELEASE_APPApp IDs in the bypass list - GitHub App installation on the target repo (
commit-action-bot,vig-os-release-app) - Org/repo secrets (
COMMIT_APP_ID,COMMIT_APP_PRIVATE_KEY,RELEASE_APP_ID,RELEASE_APP_PRIVATE_KEY) - Required status check contexts matched to the scaffold's
ci.ymljob names
Prior art in this repo
docs/RELEASE_CYCLE.mddefines the branch model and protection intent (~L40–90) and describes the two apps' permissions in "GitHub App Configuration" (~L546)docs/DOWNSTREAM_RELEASE.md"Required App Secrets" lists the four secretsassets/workspace/.devcontainer/scripts/setup-gh-repo.sh— the closest thing to repo setup automation; only tweaks merge-commit format and detaches security configassets/init-workspace.sh— substitutes{{SHORT_NAME}}/{{ORG_NAME}}/{{GITHUB_REPOSITORY}}placeholders, runsjust sync; does not touch branches/rulesets/apps/secrets- Closed [FEATURE] Standardize Branching Strategy and Enforcement #38 (Enterprise-level enforcement) and closed [FEATURE] Bootstrap smoke-test repo with bare-runner CI #170 (manual smoke-test bootstrap)
Proposal
Either (or both):
A. just bootstrap-repo recipe in assets/workspace/justfile.gh that:
- Reads the current repo from
gh repo view - Creates
devfrommainviagh api - Applies two rulesets via
gh api repos/{owner}/{repo}/rulesetswithCOMMIT_APPandRELEASE_APPbypass by App ID (reading the IDs from env /.vig-os/ prompt) - Prints an interactive checklist for the manual parts that require human judgment (App installation page, secret values)
- Idempotent — safe to re-run
B. Post–init-workspace.sh printable checklist with the actual {{GITHUB_REPOSITORY}} substituted into every URL and command, so an operator can just follow along:
- `https://github.com/apps/commit-action-bot/installations/new\` → select this repo
- `https://github.com/apps/vig-os-release-app/installations/new\` → select this repo
- `https://github.com/organizations/{{ORG_NAME}}/settings/secrets/actions\` → set the four secrets
- `gh api -X POST repos/{{GITHUB_REPOSITORY}}/git/refs -f ref=refs/heads/dev -f sha=$(...)`
- `gh api repos/{{GITHUB_REPOSITORY}}/rulesets -X POST --input ...`
- ...etc.
Option B alone would resolve the gap; Option A is nicer but more work and needs careful handling of secret input.
Impact
Any repo scaffolded onto a non-Enterprise org hits this wall and has to reverse-engineer the convention from the failing workflows and template workflows. A first-time user of the devcontainer on a community org will spend an hour figuring out that COMMIT_APP_* isn't a stub, the App needs to be installed, the PEM has to be set by piping to gh secret set, and that dev doesn't exist yet — none of which is in the README or docs.
References
- [FEATURE] Standardize Branching Strategy and Enforcement #38 — Enterprise-level enforcement
- [FEATURE] Bootstrap smoke-test repo with bare-runner CI #170 — manual smoke-test bootstrap
- `docs/RELEASE_CYCLE.md` — branch model + app config
- `docs/DOWNSTREAM_RELEASE.md` — required secrets list
Activity
c-vigo commentedon Jul 8, 2026
Closing as part of an agreed backlog cleanup (with @gerchowl) — valid but dormant, no work in progress since the Nix migration. Reopen or refile fresh if picked up.