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.

About 4 minutesWorks on your machine

✓

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

IdeaWhere 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:

terminal
$ 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

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):

terminal
$ pnpm redline verify

It asks GitHub, so it needs gh auth login or GH_TOKEN.

Where to go next

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:

terminal
$ gh auth refresh -h github.com -s delete_repo
$ gh repo delete my-redline-demo
$ cd ..
$ rm -rf my-redline-demo