Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ Adding workers reduces wall-clock time only while independent shards remain queu
| `examples/multi-host/fleet.json` | Fictional two-project, two-location controller topology |
| `SECURITY.md` | Secret handling and vulnerability reporting |
| `AGENTS.md` | Non-negotiable rules for humans and coding agents |
| `docs/UPDATING.md` | Keeping a derived private repository current: schema vs template versions, releases, migrations, Dependabot |

## Public and private boundary

Expand Down
81 changes: 81 additions & 0 deletions docs/UPDATING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Keeping a private configuration repository up to date

A private configuration repository is created from this public template
and then lives its own life. This guide explains how it stays current.

## Two different version numbers

- **`schema_version`** (inside `fleet.json`) is the version of the
*data contract* — the fields the engine and validator understand. It
changes rarely and only through an explicit migration (see below).
- **Template version** is the version of the *starting content* — the
scripts, validators, examples, and documentation you copied from this
template. It is tracked by the template's tagged releases, not by
anything inside `fleet.json`.

Bumping one never bumps the other. A new template release can ship
validator fixes with an unchanged `schema_version`; a schema migration
can happen without any other template change.
Comment thread
Nickfost marked this conversation as resolved.
Outdated

## Template releases are versioned

This template publishes tagged releases. Record the release you started
from in your private repository (for example in its README), and review
release notes when updating. Treat template files as vendored code:
update them deliberately, not casually.

## GitHub template repositories have no fork ancestry

A repository created with GitHub's "Use this template" button is **not**
a fork: it has no git ancestry link to the template, so
`git pull upstream` does not work and GitHub will never offer sync PRs.
Updating is an explicit operation:

1. Add the template as a remote and fetch a tag:

```bash
git remote add template https://github.com/RandomDevelopment/ci-fleet-config-template.git
Comment thread
Nickfost marked this conversation as resolved.
Outdated
git fetch template --tags
Comment thread
Nickfost marked this conversation as resolved.
Outdated
```

2. Cherry-pick or merge the tagged release you want, resolving conflicts
Comment thread
Nickfost marked this conversation as resolved.
Outdated
against your local `fleet.json` (which is yours and must never be
overwritten by template examples).
3. Run `./scripts/validate.sh --strict` before committing.

## Validation is pinned to immutable releases

Controller `engine_ref` values and any reusable workflow references must
be full reviewed commit SHAs, not moving tags or branches. When you
update the pinned engine, resolve the exact merge commit on the engine's
default branch, review it, and pin that 40-hex SHA. The strict validator
runs against the pinned contract, so validation results are reproducible.
Comment thread
Nickfost marked this conversation as resolved.
Outdated

## Dependabot update PRs

Keep a `.github/dependabot.yml` in the private repository covering
GitHub Actions. When your workflows pin actions or reusable workflows to
commit SHAs, Dependabot still opens update PRs for them (it understands
SHA-pinned actions with version comments). Review each PR like any
engine update: confirm the new SHA is a reviewed upstream release, then
let the strict validator and CI run before merge.

## Schema migrations are explicit tooling

When the engine introduces a new `schema_version`, the migration is a
reviewed, mechanical transformation — not a hand edit:

1. Read the migration notes for the new schema version.
2. Run the migration tooling shipped with that engine/template release
against a branch of the private repository.
3. Run `./scripts/validate.sh --strict` and review the diff.
Comment thread
Nickfost marked this conversation as resolved.
4. Merge only when every controller in the fleet runs an engine that
understands the new schema.
Comment thread
Nickfost marked this conversation as resolved.
Outdated

## Optional adopter registration, never telemetry

This project collects **no telemetry** and there is no phone-home of any
kind. If the community wants visibility into who operates a fleet, it is
strictly optional and opt-in: an `ADOPTERS.md` pull request or a
registration issue form on the public engine repository. Never a
requirement, never automatic.