Adopting and tuning rules
Every rule in your rulebook has a page, and every page has a rollout panel. That is where you decide whether the rule is on, how far it is rolled out, and how serious a violation is, for the whole organization, one team, or one repository. For pack rules, you can also change the wording and where the rule applies, without copying the rule. This page covers all of it.
Who can change rules: admins, platform admins and standard owners. Everyone else sees the same page with the settings as labels.
The rule page
Section titled “The rule page”Open Rules and select a rule, or choose Open in your rulebook on a rule you found from Packs.

The header shows the ID and type, the title, the severity, whether the rule is Checked, AI review or Guidance, and where it comes from: “From pack”, or “Written by your team”.
One of your own rules that is a blocker or warning with no deterministic check shows a note above the requirement to people who can edit it: “This blocker rule can’t fail a change. It has no deterministic check, so coding agents are told about it but nothing stops a change that breaks it. Edit the standard and add a check to enforce it.” For a pack rule, the dial says the same: “This rule has no check, so it can only be told to agents.”
The tabs:
| Tab | What it shows |
|---|---|
| Overview | Everything below |
| Checks | Each check and its options. A rule with no check says “Guidance only”. For your own standards, Add or suggest a check opens the editor, where AI can suggest a check. |
| History | Your own standards only: every version, its note, author, and time |
| YAML | The rule as a YAML document, the same format the CLI reads |
The Overview tab:
| Section | What it holds |
|---|---|
| Requirement, Why it exists, How to fix a violation | The rule, as it applies in your workspace, with your wording if you changed it |
| See it catch this | The rule’s examples, with the rule’s own check run on them. See See a rule working. Titled Examples when the rule has no pattern check. |
| In your code | Up to three real findings for this rule from your scanned repositories. Shown once a scan has found some. |
| What happens when it is broken | What a coding agent reads and what a pull request shows, at the dial’s current setting |
| Evidence from your repositories | What the rule finds in your scanned repositories. See Evidence and impact. |
| Customize for your organization or Yours vs upstream | Pack rules only. See Change a pack rule’s wording. |
| Your rollout | The dial, described below |
| About this rule | Source, Category, Type, the category’s Owners, Version, and Applies to: paths, exceptions, languages, frameworks and tags, or “Every file in every repository.” |
Under About this rule, three sections stay folded until you select them:
| Section | What it holds |
|---|---|
| Adopting it | Pack rules: Start at, Expected noise, Known false positives, and Recommended for |
| Supports compliance | Compliance controls, when the rule has them |
| References | Links, when the rule has them |
See a rule working
Section titled “See a rule working”Every rule page shows the rule at work, without a scan or a repository.
See it catch this runs the rule’s own check on the rule’s own examples each time you open the page. Nothing is written by hand.
- A Don’t example the check reports is marked Caught, with the line number. The reported line is highlighted, and the finding’s message is shown under the code.
- A Do example the check leaves alone is marked Passes.
- An example the check doesn’t agree with is shown as plain code, with no mark. Four catalog rules have one. Three are secrets (SEC-007, SEC-008, SEC-010): their examples are shortened, such as a key written as “AIza…”, so that no agent file ever holds a real-looking key. The fourth, JAVA-005, is decided by the file’s name, which an example doesn’t have.
- A check that only reads one language is not run on an example written in another.
This works for rules checked by a pattern. Other rules show their examples under the title Examples.
Try your own code is at the bottom of the same panel, folded until you select it. Paste a few lines and the rule’s pattern checks run on them as you type.
- A caught line is shown with its line number and the finding’s message. Otherwise you see Passes and “This rule reports nothing in this code.”
- It runs in your browser tab. Your code is not sent to Groundrule and not saved.
- Use the Don’t example fills the box with the rule’s first Don’t example.
- Any file type appears when the rule has checks for different languages. Choose one to run only the checks that read that kind of file.
- The box takes up to 20,000 characters. A check that runs for more than a second is stopped.
- On a repository, a rule also looks at where a file is: its folder and name. That part is not applied here, so a rule limited to certain folders can report code here that it would skip in your repository.
The box is there for every rule with a pattern check, including your own standards.
In your code shows the rule on your own repositories. It lists up to three findings from the latest scan of each repository, one from each repository first. Each has the repository, the file and line, the line of code when the scan kept it, and the finding’s message. Scanned … opens that scan. The panel appears only when a scan has found something; every repository and finding is in Evidence from your repositories below it.
What happens when it is broken follows the dial. Move the dial and the panel changes.
| Dial | A coding agent reads | A pull request shows |
|---|---|---|
| Off | Nothing | Nothing |
| Tell agents | The rule’s entry, exactly as written into AGENTS.md and the other agent files | Nothing |
| Warn | The same entry | The Groundrule check passes and lists the rule under Warnings |
| Block | The same entry | The Groundrule check fails, with the rule’s ID, title and the finding’s message on the line |
A rule with no check says “Nothing. This rule has no check: it is an instruction for agents only.” in the pull request column. The panel is not shown for drafts or action policies.
The rollout panel
Section titled “The rollout panel”The panel answers one question: what does this rule do when someone changes code? It shows one dial with four positions.
| Position | What it does | The line under the dial |
|---|---|---|
| Off | Nothing reaches anyone | “Not sent to coding agents, and not shown on any change.” |
| Tell agents | The rule is in the files coding agents read | “Written into the files coding agents read. Nothing shows on pull requests.” |
| Warn | Agents are told, and findings are shown | “Agents are told, and findings show on pull requests. They never fail the check.” |
| Block | Agents are told, and a new violation stops the change | “Agents are told, and a new violation fails the check on the pull request.” |
A dot marks the position the rule’s author recommends. When yours differs, the panel says “Recommended: position.”
The dial can’t go further than the rule’s checks allow:
- A rule with no check can only be told to agents. Warn and Block are disabled, and the panel says “This rule has no check, so it can only be told to agents.”
- A rule reviewed only by AI can warn, never block: “This rule is reviewed by AI, which only advises, so it can’t block.”
Other settings on the panel:
| Setting | Options | Notes |
|---|---|---|
| Scope menu | Whole organization, each team, each repository | Appears once you have at least one team or registered repository. See Teams and owners. |
| Stage and severity | Select it to open Stage (Observe, Teach, Advise, Enforce) and Severity (Info, Advisory, Warning, Blocker) | The settings the dial reads and writes. See How the dial maps to stage and severity. |
Action policies have no dial: their panel shows In effect, Stage and Severity directly, because a policy’s hook answers allow, ask or deny. See Action policies.
Every change saves at once. You should see “Rollout updated”.
When a setting comes from a level above the one you’re viewing, the panel says so. For example, a team’s view might read “Findings count at the standard’s severity · set by the organization.”
At the bottom, the panel shows who last changed the rule at this level (“Changed by Maya Patel”) and Reset to defaults.
Turn a rule off
Section titled “Turn a rule off”-
Choose the scope in the scope menu, if your workspace has teams or repositories.
-
Choose Off on the dial. A box asks Why is it off?
-
Write the reason, for example “TLS is terminated by the service mesh”.
-
Choose Turn off.
You should see “Rollout updated”, and the panel shows “Off: reason”. The reason is shown to everyone who opens the rule, and it is recorded in the audit log. The next groundrule sync removes the rule from agent files, and groundrule check stops running it.
If the reason is shorter than 3 characters, Turn off stays disabled.
To turn it back on, choose any other position.
Move the dial
Section titled “Move the dial”Choose Tell agents, Warn or Block. The change applies to the scope shown in the scope menu, and saves at once.
Choosing Block also sets the rule’s severity to Blocker, because repositories fail a check only on blockers unless they chose otherwise. Choosing Warn or Tell agents leaves the severity as it is.
When your scans show a rule is ready to move on, a suggestion appears under the dial with the evidence and a Move to button. See Promotions.
Change the stage or severity directly
Section titled “Change the stage or severity directly”Open Stage and severity, then choose a stage in Stage or a severity in Severity. The dial follows. Use this for the cases the dial doesn’t name: Observe (watched silently; the dial reads Off and says “Watched silently (Observe): results are recorded, and nothing reaches anyone.”), or a rule enforced at warning severity (the dial reads Warn).
Two things to know about severity and stage together:
- At Enforce,
groundrule checkfails only on blockers by default. A warning at Enforce is reported but doesn’t fail. To stop merges, raise the severity to Blocker. - At Advise, findings never fail a check: blockers are reported as warnings.
Rollout stages has the full table.
Reset to defaults
Section titled “Reset to defaults”Reset to defaults removes everything set at the level you’re viewing: on or off, stage, severity, and any wording changes. The rule then follows the level above: the team follows the organization, and the organization follows the pack. You should see “Back to the defaults”.
The button appears only when something is set at this level.
Stricter, never looser
Section titled “Stricter, never looser”The organization can set anything: turn a pack rule off, lower its severity, or start it at an earlier stage. A team or a repository can only make a rule stricter than the levels above it:
| A team or repository can | It can’t |
|---|---|
| Turn on a rule the organization turned off | Turn off a rule that is on above it |
| Move a rule to a later stage | Move it to an earlier stage |
| Raise its severity | Lower its severity |
| Change its requirement, how to fix it, or where it applies |
A repository inherits its team’s settings, and the team inherits the organization’s. So a repository can’t go below its team either.
When you try a looser change, nothing is saved, and the panel lists the reason. The exact messages, for a team (a repository reads “its team and organization” and “A repository…”):
| What you tried | Message |
|---|---|
| Turning the rule off | “This rule is on for the organization. A team can’t turn it off; ask an org admin, or record an exception once exceptions are available.” |
| An earlier stage | “The organization uses advise. A team can only keep it or move it further (observe → teach → advise → enforce).” |
| A lower severity | “The organization uses warning. A team can only keep or raise it.” |
Other messages you might see:
| Message | Why |
|---|---|
| “Say why it’s off, so reviewers and auditors know.” | A rule was turned off without a reason. |
| “Say why it’s off, in a few words.” | The reason is shorter than 3 characters. |
| “Someone else just changed this rule. Reload and try again.” | Two people saved at the same moment. |
To loosen a rule for one team or repository, change the organization’s setting. Recording an exception for one repository from the dashboard isn’t available yet. In a repository, you can record exceptions in .groundrule/exceptions.yaml; see Overrides and exceptions.
Change a pack rule’s wording
Section titled “Change a pack rule’s wording”You can adapt a pack rule to your codebase without copying it. Only what you change is stored. Everything else keeps following the pack, including future updates.
-
Open the pack rule’s page. Under the evidence, find Customize for your organization.
-
Choose Customize. A window opens: Customize ID.
-
Change the fields you need:
Field What it changes Only these paths Where the rule applies. One glob per line. Empty means everywhere. Except these paths Paths the rule skips, for example scripts/**Requirement The rule’s wording How to fix The fix shown with each finding What agents read The sentence written into agent files. “Written for coding agents. Defaults to the requirement.” Why you changed it Optional. “Shown to reviewers and in the audit log.” -
Choose Save customizations.
You should see “Customizations saved”. The panel’s title changes to Yours vs upstream, and it lists each field you changed: the pack’s version struck through on the left, yours on the right. If a team or repository also has its own guidance, the panel adds “Also customized for names.”
The changed wording reaches agent files on the next groundrule sync, and the changed paths apply to the next groundrule check and scan.
If a change would make the rule invalid, nothing is saved, and the window lists why, field by field, for example “spec.requirement: With these overrides: …”.
Customizing changes the organization’s version. These aren’t available in the dashboard yet:
- changing a pack rule’s code examples;
- changing a pack rule’s check options by hand (for the architecture pack, pick a layout profile instead, or accept the inbox’s proposals);
- adding team-specific or repository-specific wording.
To change what a pack rule fundamentally requires, write your own standard instead. See Write a standard.
Go back to upstream
Section titled “Go back to upstream”- For one field: open Customize, set the field back to the pack’s text, and save. When nothing differs from the pack, you see “Back to upstream”.
- For everything at once: choose Reset to defaults in the rollout panel, with Whole organization selected. This also resets the rule’s on or off, stage, and severity.
Your own standards
Section titled “Your own standards”Your own standards have the same rollout panel. A few differences:
- They start at Enforce when you create them as Active. To start lower, save the standard as a draft and publish it at the stage you choose, or change the stage in the rollout panel after you create it. See Write a standard.
- You edit them directly with Edit standard. There is no “yours vs upstream”, because you are upstream. Every edit creates a new version.
- Drafts have no rollout panel. A draft’s page shows a Draft panel instead, with Publish at and Publish.
Related
Section titled “Related”- Rollout stages: what each stage does, and what fails a check.
- Teams and owners: create the teams and repositories the scope menu lists.
- Evidence and impact: see what a change would do before you make it.