You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Site-agnostic projects: site init hook, gitignored .site/, CI runner via org variables #1908
Goal: a project repo carries no site or infrastructure settings. Where it runs (HPC, cloud, laptop) is configured at clone time or by the runtime environment, so publishing a repo or running it at another site inherits nothing.
Proposal
.site/ convention: gitignored by the template. Its schema is a site name, logical-dataset → location bindings (matching the repo's data.toml names), the output location, and optional runner/scheduler hints. No credentials in it.
site init hook: a devkit command that runs site-specific initialisers when present (e.g. a <site> site init on PATH writes .site/<site>.toml). With no site detected, it falls back to an interactive or empty template. Documented contract only; devkit ships no site.
Org/repo variables are visible to fork-PR workflows, so the explicit fork check is required. A repo or fork without the variables runs hosted.
Env-only runtime config: code reads endpoints and credentials only from the environment (AWS_ENDPOINT_URL, AWS_*, <SITE>_*); there is a lint against hard-coded endpoints.
Leak-check hook point: the pre-commit/CI leak check loads extra patterns from a site-provided file if present (patterns are site-private, so they don't ship in devkit).
Publish checklist in the docs: history scan (gitleaks over all commits), fork-safe workflows, credential rotation if anything is found.
Acceptance: a fresh clone with no .site/ and no org variables passes CI on hosted runners; the template's .gitignore covers .site/ and .aws/; the docs explain both the site and the fork paths.
Related: #1907 (NIX_CONFIG on self-hosted runners).
Test results for item 3 (CI runner via variables), 2026-10-25. Throwaway repos (private and public, a fork, an org on GitHub Free and one on Team), all deleted afterwards.
reusable workflow (workflow_call), same repo and cross-repo (callee in a public repo with no variables)
vars resolve from the caller; github.event is the caller's, so the fork check works inside the called workflow
fork PR into a public repo whose org has the variables
ubuntu-latest, every job
repo with no variables
ubuntu-latest, every job
private repo in a GitHub Free org, org variables only
ubuntu-latest: org variables are not available to private repos on GitHub Free. Team orgs resolve them.
Findings:
GitHub Free: organization variables do not reach private repositories. The expression degrades silently to hosted runners. Free-plan orgs need repo-level variables (settings, still nothing in git). The docs should say so.
Fork PRs got no variables at all, neither org nor repo level (a hosted-only control job printed vars.X != '' = false for the fork and true for a same-repo PR). Keep the explicit fork check anyway: it states the intent, it covers pull_request_target (base context, variables present), and it doesn't depend on that GitHub behaviour.
devkit's runner-json path can adopt this without breaking DEVKIT_CI_RESOLVE_RUNNER. Emulated and tested:
runner-json: fork → the hosted default; else the .vig-os key DEVKIT_CI_RUNNER if set; else vars.CI_RUNNER_SMALL (passed in through env:); else the hosted default.
The lanes keep runs-on: ${{ fromJSON(needs.resolve-toolchain.outputs.runner-json) }}.
Then a consumer needs no site label in .vig-os at all. Today a fork PR into a public consumer that sets DEVKIT_CI_RUNNER (in git) or an org-wide DEVKIT_CI_RESOLVE_RUNNER has its lanes target the self-hosted label, so add the fork check there as well.
Templates should pin actions to full SHAs: some orgs enforce it (sha_pinning_required), and a tag-pinned action fails at "Set up job".
schedule was not observed: GitHub fired no run of a */10 cron on the default branch in about 2 h, across 3 new repos. A scheduled run has the same context as workflow_dispatch on the default branch (base repo, variables present, no PR), which passed. So schedule is covered by equivalence, but this was not proven empirically.
ADR accepted (#1917), amended in #1923 so every lane defaults to SMALL. Implementation sub-issues, with the full spec in the ADR's Implementation section:
Consumer data point: vig-os/tessera (public, devkit 1.17.0) is moving its repo-owned Linux lanes to the vig-os ksb ARC runners in vig-os/tessera#700, but its scaffolded ci.yml lanes have to stay on GitHub-hosted runners until this lands in a release: DEVKIT_CI_RUNNER (and, on 1.18.0, vars.DEVKIT_CI_RESOLVE_RUNNER) carries no fork predicate, so on a public repo a fork PR's lint/test/summary lanes would route to ksb. There the runner's job-started fork guard (exo-pet/exo-fleet#949) kills them and the required checks go red for every outside contributor. That is defect 2 in ADR-site-agnostic-projects. Tessera will adopt the fork-safe CI_RUNNER_SMALL / CI_RUNNER_LARGE variables once S1 (#1925) and S2 (#1928) ship. Its repo-owned workflows already use the ADR §2 predicate verbatim, with a lint (scripts/check-ksb-fork-guard.sh) that pins the shape.
Activity
gerchowl commentedon Oct 25, 2026
Test results for item 3 (CI runner via variables), 2026-10-25. Throwaway repos (private and public, a fork, an org on GitHub Free and one on Team), all deleted afterwards.
Expression:
runs-on: ${{ (github.event.pull_request.head.repo.fork && 'ubuntu-latest') || vars.CI_RUNNER_LARGE || 'ubuntu-latest' }}(same for SMALL/XLARGE).workflow_dispatchin a private repo with the variablesruns-on: ${{ … || vars[format('CI_RUNNER_{0}', matrix.size)] || … }}workflow_call), same repo and cross-repo (callee in a public repo with no variables)varsresolve from the caller;github.eventis the caller's, so the fork check works inside the called workflowubuntu-latest, every jobubuntu-latest, every jobubuntu-latest: org variables are not available to private repos on GitHub Free. Team orgs resolve them.Findings:
GitHub Free: organization variables do not reach private repositories. The expression degrades silently to hosted runners. Free-plan orgs need repo-level variables (settings, still nothing in git). The docs should say so.
Fork PRs got no variables at all, neither org nor repo level (a hosted-only control job printed
vars.X != ''= false for the fork and true for a same-repo PR). Keep the explicit fork check anyway: it states the intent, it coverspull_request_target(base context, variables present), and it doesn't depend on that GitHub behaviour.devkit's
runner-jsonpath can adopt this without breakingDEVKIT_CI_RESOLVE_RUNNER. Emulated and tested:runs-on: ${{ (github.event.pull_request.head.repo.fork && 'ubuntu-26.04') || vars.DEVKIT_CI_RESOLVE_RUNNER || vars.CI_RUNNER_SMALL || 'ubuntu-26.04' }}runner-json: fork → the hosted default; else the.vig-oskeyDEVKIT_CI_RUNNERif set; elsevars.CI_RUNNER_SMALL(passed in throughenv:); else the hosted default.runs-on: ${{ fromJSON(needs.resolve-toolchain.outputs.runner-json) }}.Then a consumer needs no site label in
.vig-osat all. Today a fork PR into a public consumer that setsDEVKIT_CI_RUNNER(in git) or an org-wideDEVKIT_CI_RESOLVE_RUNNERhas its lanes target the self-hosted label, so add the fork check there as well.Templates should pin actions to full SHAs: some orgs enforce it (
sha_pinning_required), and a tag-pinned action fails at "Set up job".schedulewas not observed: GitHub fired no run of a*/10cron on the default branch in about 2 h, across 3 new repos. A scheduled run has the same context asworkflow_dispatchon the default branch (base repo, variables present, no PR), which passed. So schedule is covered by equivalence, but this was not proven empirically.docs(rfcs): close review gaps in site-agnostic ADR
docs(rfcs): make seeded-hook runner class consistent in ADR
docs(rfcs): disambiguate resolver jobs in site-agnostic ADR
docs(rfcs): propose site-agnostic projects ADR
docs(rfcs): close review gaps in site-agnostic ADR
docs(rfcs): make seeded-hook runner class consistent in ADR
docs(rfcs): disambiguate resolver jobs in site-agnostic ADR
docs(rfcs): redesign runner migration as a two-step adoption
docs(rfcs): propose site-agnostic projects ADR
docs(rfcs): close review gaps in site-agnostic ADR
docs(rfcs): make seeded-hook runner class consistent in ADR
docs(rfcs): disambiguate resolver jobs in site-agnostic ADR
docs(rfcs): redesign runner migration as a two-step adoption
9 remaining items
docs(rfcs): warn on unset opted-in runner class and reject list values
docs(rfcs): default every CI lane to SMALL in site-agnostic ADR (#1923)
gerchowl commentedon Oct 27, 2026
ADR accepted (#1917), amended in #1923 so every lane defaults to SMALL. Implementation sub-issues, with the full spec in the ADR's Implementation section:
Release N chain (strict order): #1925 S1 runner selection core → #1926 S1d diagnostics → #1927 S1b
DEVKIT_CI_LANE_SIZES→ #1928 S2 remaining workflows → #1929 S3 devkit-upgrade migrationIndependent: #1930 S4
.site/+ site-init hook · #1931 S5 env-only lint · #1932 S6 leak-check hook pointDocs: #1933 S7 MIGRATION.md self-hosted rewrite · #1934 S7b remaining docs + scrub
Gate: #1935 S8 release N gate · N+2: #1936 S9 removal (Backlog)
feat: enforce env-only endpoint configuration (#1943)
ci: run the x86_64 nix flake check on the vig-os ksb runners
gerchowl commentedon Oct 29, 2026
Consumer data point: vig-os/tessera (public, devkit 1.17.0) is moving its repo-owned Linux lanes to the vig-os ksb ARC runners in vig-os/tessera#700, but its scaffolded
ci.ymllanes have to stay on GitHub-hosted runners until this lands in a release:DEVKIT_CI_RUNNER(and, on 1.18.0,vars.DEVKIT_CI_RESOLVE_RUNNER) carries no fork predicate, so on a public repo a fork PR's lint/test/summary lanes would route to ksb. There the runner's job-started fork guard (exo-pet/exo-fleet#949) kills them and the required checks go red for every outside contributor. That is defect 2 in ADR-site-agnostic-projects. Tessera will adopt the fork-safeCI_RUNNER_SMALL/CI_RUNNER_LARGEvariables once S1 (#1925) and S2 (#1928) ship. Its repo-owned workflows already use the ADR §2 predicate verbatim, with a lint (scripts/check-ksb-fork-guard.sh) that pins the shape.ci: run the x86_64 nix flake check on the vig-os ksb runners
ci: run the x86_64 nix flake check on the vig-os ksb runners
ci: run the x86_64 nix flake check on the vig-os ksb runners
ci: run the x86_64 nix flake check on the vig-os ksb runners
ci: run the x86_64 nix flake check on the vig-os ksb runners
ci: run the x86_64 nix flake check on the vig-os ksb runners
ci: run the x86_64 nix flake check on the vig-os ksb runners
ci: run the x86_64 nix flake check on the vig-os ksb runners
ci: run the x86_64 nix flake check on the vig-os ksb runners (#700)