10 · Recap and next steps
You took one repository through everything Redline does. Here is what to keep from it, how the rules stay current without you doing anything, and where to go next.
You will learn
- The ideas the whole path rests on, and the step that showed each
- How to take a new version of Redline into your repository
- How to check a repository still matches what was installed
What you built
| Idea | Where you saw it |
|---|---|
| One set of rules, three places. The same rules reach your assistant while it writes, your terminal before you push, and the pull request before merge. | 01, 02 |
Findings you can look up. Every finding names a rule id; explain says what it means, and the fix removes the problem, not the warning. | 02, 03 |
Your team's rules travel the same way. One file you own, .redline/local.md, reaches every assistant. | 04 |
| Big decisions are written down. A large change links an ADR, or says on the record that it decides nothing. | 05 |
| The security floor blocks from day one. A vulnerable dependency or a leaked secret fails the gate at every rung, and nothing waives it. | 06 |
| Blocking is separate from strictness. A required gate stops the merge; the rung decides what turns it red. | 07 |
| Exceptions are written down. Merging past a process check is allowed, with why, for which check and until when on the record. | 08 |
Blocking on findings is earned. At observe a BLOCKER still merges; a repository blocks on its findings only once the evidence says the rules are right. | 09 |
When the rules change
The rules, and the gate workflow that checks them, ship inside the redlinegate package. Step 01 pinned an exact version in your package.json, and init wrote that version's gate into .github/workflows/. A newer Redline brings new rules and gate fixes, but your repository keeps the old ones until you take them.
Taking them is a pull request. Raise the pin, see what it changes, and render again:
$ git checkout -b chore/redline-update $ pnpm add -D --save-exact redlinegate@latest $ pnpm redline status $ pnpm redline init --no-commit $ git add -A $ git commit -m "chore: update Redline" $ git push -u origin chore/redline-update $ gh pr create --title "chore: update Redline" --body-file .github/pull_request_template.md $ gh pr checks --watch $ gh pr merge --squash $ git checkout main $ git pull
$ git checkout -b chore/redline-update $ npm install -D --save-exact redlinegate@latest $ npx redlinegate status $ npx redlinegate init --no-commit $ git add -A $ git commit -m "chore: update Redline" $ git push -u origin chore/redline-update $ gh pr create --title "chore: update Redline" --body-file .github/pull_request_template.md $ gh pr checks --watch $ gh pr merge --squash $ git checkout main $ git pull
$ git checkout -b chore/redline-update $ yarn add -D --exact redlinegate@latest $ yarn redline status $ yarn redline init --no-commit $ git add -A $ git commit -m "chore: update Redline" $ git push -u origin chore/redline-update $ gh pr create --title "chore: update Redline" --body-file .github/pull_request_template.md $ gh pr checks --watch $ gh pr merge --squash $ git checkout main $ git pull
$ git checkout -b chore/redline-update $ bun add -d --exact redlinegate@latest $ bun run redline status $ bun run redline init --no-commit $ git add -A $ git commit -m "chore: update Redline" $ git push -u origin chore/redline-update $ gh pr create --title "chore: update Redline" --body-file .github/pull_request_template.md $ gh pr checks --watch $ gh pr merge --squash $ git checkout main $ git pull
status compares the standards your repository was rendered from with the ones in the version you just installed. Its standards line ends in current, or names the newer version when there is one. init keeps every choice recorded in .redline.json and rewrites AGENTS.md, CLAUDE.md, the gate workflow and the rest.
Raising the pin alone is not enough. The gate in .github/workflows/ is a copy, and only init replaces it.
In an organisation with many repositories, the team that owns Redline does this for everyone: redline sync opens the same pull request on every registered repository that is behind, and you review and merge it.
Don't run redline sync from your own repository: it fails there with no registry.json. It is the estate-wide command, run from a checkout of the Redline source repository, and opens pull requests on every registered repository.
Check nothing has drifted
To confirm the repository still matches what .redline.json says is installed (the gate workflow, the rendered files, the GitHub settings):
$ pnpm redline verify
$ npx redlinegate verify
$ yarn redline verify
$ bun run redline verify
It asks GitHub, so it needs gh auth login or GH_TOKEN.
Where to go next
- Onboard a repository: your own, with the options this path skipped, including your organisation's gate, and a short check that the gate is real.
- Adopting Redline: day one to month two with a real team.
- Enforcement ladder and Exemptions: the full rules behind steps 08 and 09.
- Troubleshooting: every failure that actually happens, and the command that resolves it.
Clean up
Finished with your copy? Deleting a repository needs a permission gh does not ask for by default, so grant it first. Then delete the repository and the folder:
$ gh auth refresh -h github.com -s delete_repo $ gh repo delete my-redline-demo $ cd .. $ rm -rf my-redline-demo