← Guides

Delivery · 5 min read

Working agreements that teams actually keep

Pick three or four checkable rules, set them once with per-repository overrides and report breaches by PR, in working hours, without naming anyone.

Most teams have working agreements. Few keep them. The rules get written at a kickoff, pinned in a channel and forgotten by the third sprint. That isn't because people don't care. It's because nobody notices a rule slipping until it has slipped for weeks.

An agreement that's checked and reported, gently, is one a team can hold itself to. This guide covers choosing the rules, setting them across many repositories, reporting breaches without blame and keeping the rules honest.

Choose three or four rules, not ten

Every rule you add dilutes the others. A team with ten agreements remembers none. Pick the few that address your real friction and that a machine can check without argument.

Four cover most delivery problems:

  1. First review within N weekday hours. Waiting for review is one of the most common delays. Count weekday hours, so a PR opened on Friday afternoon isn't late by Monday morning.
  2. Maximum PR size. Large PRs get slower, shallower reviews. A line limit pushes work into reviewable pieces.
  3. Approval before merge. At least one approval from someone other than the author. Simple, and often quietly broken.
  4. Maximum open PRs per person. A limit on work in progress. Five PRs open at once means four are waiting, and someone is switching between them.

Each limit should be a number the team chose, not one handed down. Start from where you are. If the median first review takes two days, agreeing to four hours sets the team up to fail. Agree to something a little better than today and tighten it later.

Organisation defaults, repository overrides

Once you have more than a handful of repositories, setting rules one repository at a time is tedious, and the copies drift. Yet repositories have genuinely different needs. A data-migration repository may need bigger PRs; a payments service may want faster reviews.

The pattern that works:

  • Set the rules once for the organisation.
  • Switch agreements on per repository, so you choose where they apply and can start small.
  • Let a repository override a single rule, switching it off or on or changing its limit, while inheriting the rest.
  • Make clearing an override return the repository to the organisation's rule, so a deliberate exception can always be told apart from a stale copy.

Keep a short history of who changed each rule and when. When someone asks why the limit is 600 lines, the answer should be a click away.

Name the PR, never the person

This rule decides whether agreements feel like support or surveillance. When an agreement is broken, the alert should say which pull request in which repository broke which rule. It shouldn't name the author or mention anyone.

“PR #482 in payments-api has waited 9 weekday hours for a first review (agreed: 8)” invites someone to pick it up. “Your PR is late” in a team channel invites defensiveness. Most breaches aren't one person's fault anyway. A review wait is the team's queue, not the author's failing.

For the open-PRs rule, report a count, not a list: “3 people in this repository are over the open-PR limit.” The team knows what to do with that. A named list is a shaming board.

Each person should still be able to see the agreements missed on their own PRs, privately, so they can correct course without an audience.

Get the timing right

An alert that arrives at 22:00 on a Saturday teaches people to mute the channel. So does one alert per push.

  • Working hours only. Post on weekdays between 08:00 and 18:00 in the team's time zone. Anything outside waits.
  • Once per breach. A PR that breaks the size rule should alert once, however many times it's pushed afterwards.
  • Choose the cadence per rule. Some breaches deserve a message within the hour, such as an overdue first review. Others read better as a daily summary, such as PRs over the size limit.
  • Post where the team already looks. Use the repository's own channel, not a new channel per rule.

Review the rules, not just the breaches

Agreements aren't permanent. Every month or quarter, look at the breach count for each rule with the team and ask:

  • Is this rule broken so often that it's really an aspiration? Loosen it or drop it.
  • Is it never broken? It may be too loose to matter, or the habit is now automatic and the rule can go.
  • Is a rule met in letter but not in spirit, such as PRs split artificially to stay under the size limit?
  • Is there friction we keep talking about that no rule covers?

Changing an agreement is a team decision, made in the open. That's what makes it the team's agreement rather than management's policy.

Be honest about the edges, too. Decide whether lockfiles and generated files count towards the size limit, and whether a draft's review clock starts when it's opened or when it's marked ready. Whatever you choose, write it beside the rule.

How Encora handles this

Encora's working agreements use these four rules: first review within N weekday hours, a maximum number of lines changed, approval from someone other than the author and a maximum number of open PRs per person. Settings admins set organisation rules, switch them on per repository and override single rules where a repository differs. New rules start switched off, pre-filled from your existing thresholds, and every change is kept with who made it and when.

Breaches post to the repository's chat channels on weekdays between 08:00 and 18:00, either within the hour or as a daily summary. The message names the PR and the repository, never a person, and mentions nobody. Each breach alerts once. The open-PRs rule is recorded as a count of people, and who they are is never kept. Engineers see agreements missed on their own PRs on their own page. See chat workflow and delivery.

See what's draining your team

Thirty minutes, your own GitHub organisation, and a straight answer on whether Encora fits. Setup is one GitHub App install, and your source code is never stored or sent to an AI model.