Skip to content

docs(rfcs): propose site-agnostic projects ADR - #1917

Merged
gerchowl merged 7 commits into
devfrom
feature/1908-site-agnostic-adr
Oct 26, 2026
Merged

gerchowl merged 7 commits into
devfrom
feature/1908-site-agnostic-adr

Conversation

@gerchowl

@gerchowl gerchowl commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

Proposed ADR for #1908: site-agnostic projects. CI runners come from the
CI_RUNNER_SMALL / CI_RUNNER_LARGE / CI_RUNNER_XLARGE variables with a fork predicate on every path. The legacy
DEVKIT_CI_RUNNER key and DEVKIT_CI_RESOLVE_RUNNER variable are deprecated for one release and then fail loudly. The ADR
also defines the gitignored .site/ convention and its site-init hook contract, an env-only endpoint lint, a site
leak-check hook point and a going-public checklist.

Design only. There is no implementation in this PR. Status: accepted.

Type of Change

  • docs -- Documentation only

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • New docs/rfcs/ADR-site-agnostic-projects.md, structured like ADR-publish-lanes.md. It contains:
    • the context and the evidence from the 2026-10-25 test comment;
    • the exact runs-on expressions for release N and N+1, and the runners / runner-sources algorithm, covering
      comma lists, blank values and the hosted default ubuntu-26.04;
    • an inventory of every scaffolded job and every devkit job that selects a runner;
    • migration: per-run full-text warnings as the primary channel, the migrating adoption (first ≥N devkit-upgrade.yml run from the default branch) as cleanup, an N+2 tombstone gated on the consumer's own variables, and the PR-body text;
    • the security analysis: fork PRs, pull_request_target, workflow_run, reusable cross-repo calls, and why the
      explicit check stays;
    • the .site/ schema, the site-init hook, the lint and the leak-check contracts;
    • the Decisions section, which records the owner's choices and the rejected options;
    • ordered implementation sub-issues S1, S1d, S1b, S2–S7, S7b, S8, S9 with file overlaps and merge order, which the architect files.

Decisions

Decided: a1 b1 c1 d1 e1 f1 (owner, 2026-10-26)

Changelog Entry

No changelog needed. This is a proposed ADR with no user-visible change. It matches the precedent of the publish-lanes ADR
PR, which did not touch CHANGELOG.md. The implementation sub-issues carry the Deprecated and Removed entries.

Testing

  • Tests pass locally (just test): not applicable, docs only
  • Manual testing performed (describe below)

Manual Testing Details

  • I ran prek run --files docs/rfcs/ADR-site-agnostic-projects.md and every hook passed, including pymarkdown in fix
    mode. The commit hooks passed too.
  • I built the inventory by parsing every runs-on: and uses: job in assets/workspace/.github/workflows/*.yml and
    .github/workflows/*.yml.
  • I grepped the ADR for site names, hostnames, private labels and /mnt paths. There were none.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas (n/a)
  • I have updated the documentation accordingly
  • I have updated CHANGELOG.md in the [Unreleased] section (not needed, see above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works (n/a, design record)
  • New and existing unit tests pass locally with my changes (n/a)
  • Any dependent changes have been merged and published

Additional Notes

Follow-ups noted in the ADR for the architect to file (not filed here):

Refs: #1908

@gerchowl
gerchowl force-pushed the feature/1908-site-agnostic-adr branch 2 times, most recently from e4816b9 to 1b5c66f Compare October 26, 2026 19:05
@gerchowl

Copy link
Copy Markdown
Contributor Author

Owner decision (2026-10-26): a1 b1 c1 d1 e1 f1, all Recommended options accepted. The ADR is accepted once the acceptance commit lands: status accepted, decisions recorded, and the three stale-wording nits from the final review fixed.

Record the design for CI runner selection via CI_RUNNER_* variables with
a fork predicate on every path, the one-release deprecation of
DEVKIT_CI_RUNNER and DEVKIT_CI_RESOLVE_RUNNER, the gitignored .site/
convention with its site-init hook contract, the env-only endpoint lint,
the site leak-check hook point and the going-public checklist. Lists the
open decisions for the owner and the ordered implementation sub-issues.

Refs: #1908
Define key inertness and the partial-setup notice over the required size
classes, keep the legacy resolve variable as the tombstone carrier so the
N+1 error is reachable, validate the raw variable value, state the
malformed-SMALL and key-only limits, complete the hook-caller rows, and
widen the scrub scope and acceptance.

Refs: #1908
Class every seeded-hook job LARGE with one stock expression so the
per-line reconcile is unambiguous, always require SMALL and LARGE for
key inertness and the partial-setup notice, pin the scrub target, and
add the notice to S1's acceptance.

Refs: #1908
@gerchowl
gerchowl force-pushed the feature/1908-site-agnostic-adr branch from 1b5c66f to 4f360c6 Compare October 26, 2026 19:29
Name the resolve-toolchain jobs and resolvers explicitly in the SMALL
class and the removal acceptance, assign the ci-extension header comment
to S2, and check the scrubbed names via the site leak check.

Refs: #1908
The adoption of release N runs the consumer's pre-N devkit-upgrade.yml,
which cannot see CI_RUNNER_* or lift new PR-body lines, so N ships the
new workflow and the N+1 adoption performs the migration; removal moves
to N+2. Make S1 landable alone with a scoped shape test and the pinned
wiring tests, split the lane-size override into S1b, forbid merge_group
alongside workflow_run, add a private no-variables notice, settle one
whitespace rule, add the private-fork decision and list the smoke-test
fixture workflows.

Refs: #1908
Scheduled devkit-upgrade runs use the default branch's workflow, so a
gitflow consumer may adopt N+1 or N+2 with the pre-N workflow. Make the
per-run warning carry the full migration text, gate the N+2 tombstone
on the consumer's own variables (error only when the key would still
decide a runner), and define the migrating adoption accordingly. State
the hosted-blocked notice limit, fix the whitespace-SMALL wording, split
S1 diagnostics into S1d and S7 into S7/S7b, record file overlaps and
merge order, name the vig-utils pyproject entries, and specify tests
for adopting N+1 before releasing N to main.

Refs: #1908
Mark the ADR accepted and record the owner's decisions a1 b1 c1 d1 e1
f1 with the rejected options and their reasons. Restore the overridden
classes to the per-run legacy-key warning so decision (a)'s cost holds,
scope S3 to the migrating adoption, and note that the warning already
runs on the N adoption PR's own CI.

Refs: #1908
@gerchowl
gerchowl merged commit 5412579 into dev Oct 26, 2026
16 checks passed
@gerchowl
gerchowl deleted the feature/1908-site-agnostic-adr branch October 26, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant