repo-platform
Push-based standards management for @Vivswan's repositories: a file writer plus reusable GitHub Actions workflows and composite actions.
Everything originates here. This repo pushes standards files into managed repos as PRs and applies their repository settings centrally; managed repos carry no sync workflow and no sync secret. The code is the source of truth for how any of it behaves, so this README stays at map level and points at the rest.
Mental model
Sources on main, a moving stable tag, sync PRs into each repo:
- files.yml is the file list and the module data: every path the platform writes, its ownership class, the condition it lands under, each module's data, the settings layers, and the fleet's mirrors (docs/platform/sync/files.md).
- Every green
main commit moves the stable tag, the one delivery channel; the written workflows pin @stable and read everything from that commit (docs/platform/build-provenance.md).
- sync-repos.yml copies the files at that commit into each managed repo as a PR, armed for auto-merge when nothing needs a human (docs/platform/sync/operator.md).
- Settings are rendered into every managed repo as a managed
.github/settings.yml from the fleet layers and the repo's own overlay, and applied centrally (docs/settings.md).
Design
The measure of the design is the cost of a simple change, not the number of checks.
| Principle | What it means here |
|---|
| Behavior never lives in a written file | ci.yml is byte-identical in every repo; fleet.yml's plan step reads the registration at run time and every leg keys on its outputs. Adding a leg is one static job in the skeleton plus its platform workflow. |
| Fewer derived artifacts beats a better generator | What the fleet receives is written once under files/ and copied whole; the one rendered file is each repo's .github/settings.yml, folded by the sync from the settings layers and the repo's overlay. The generators that remain (gitignore blocks, toolchain pin dotfiles, the theme CSS, this repo's own settings document) each have one offline drift check. |
| One run, one order | Everything after the gate is a job in the same run, ordered by needs: move the stable tag, sync the fleet, deploy the docs. No dispatch tokens between workflows. |
| Sync is copy, not merge | Managed files are replaced whole, split files have their managed region replaced around the repository's own sides, starters are written once, and a file no entry writes any more is deleted when it still holds the platform's own content. |
| Private is private by where it runs and by what the run can emit | Job names carry row indexes, names are masked where they enter a step, per-row logs go to files, and the details land in the target repository (docs/platform/sync/private-repositories.md). |