Skip to content

Pull Requests 🟑 BETA

A pull request is a reviewable unit of work with small commits, a measured description and green checks.

Where this topic sits in the Developer guide

Overview

A pull request is the reviewable unit of work: small, described with measured evidence and backed by green checks.

Before Creating a PR

  1. Search for an existing issue and read its comments.
  2. Claim a disjoint set of owned files.
  3. Reproduce the problem with a debug build or a browser check.

Check Existing Work

Search issues first; a long review is tracked by one issue with scope and numbers.

Prepare Your Branch

Never change branches without explicit approval. Work in the working tree; the driver commits.

Make Your Changes

Fix the root cause in the owned files only. No #[allow], no panics, no CDN links, no new files at the repository root.

Creating a Pull Request

Describe the change, the evidence and the files touched. Keep the title English and descriptive.

PR Title

State the area and the effect, not a issue number alone.

PR Description

Include the reproduction, the measured numbers, the commands run and the screenshots or file:line evidence.

PR Best Practices

Practice Rule
Keep it small One area per commit
Commits Split by area; the driver commits, agents do not
Self-review Read the diff before requesting review

Keep It Small

Split a large change by area; two agents never own the same crate or UI app.

Commit Organization

Commit per issue with the measured numbers in the message, using exact git add -- <paths>.

Self-Review First

Check that no generated page, navigation file or stylesheet was touched by accident.

Code Review Process

Reviewers check traceability: does every claim map to a file, and is the fix minimal?

Requesting Review

Request review only after guards and the targeted tests pass locally.

Responding to Feedback

Answer with evidence. A requested change is made in the owned files and re-verified.

Making Changes

Push follow-up commits to the same branch; do not rewrite history without agreement.

Review Guidelines

  • No unverifiable claim in documentation.
  • No new lint exception.
  • No dead code kept for compatibility.
  • BotBook updated when user-facing behaviour changes.

For Reviewers

Read the authority file named in the change before accepting a claim.

Review Comments

Comment on the specific line and state the expected source.

CI/CD Checks

The gate is ci.yml on GitHub and the mirrored Forgejo runner. cargo test -p botserver --bin botserver is the correct binary-crate command.

Required Checks

Guards, i18n catalogue, clippy baseline, error ratchet, design system and the touched crate tests.

Fixing Failed Checks

Read the failing job name, fix the cause and re-run. Never add an allowlist row to silence a guard.

Merge Process

The driver merges after evidence is attached and checks are green.

Merge Requirements

Green CI, no unresolved review thread and a commit message describing the change.

Merge Methods

Use the repository merge policy; do not force-push over reviewed history.

After Merge

Push to both alm and origin; CI builds and deploys.

Clean Up

Recycle browser tabs belonging to finished issues; keep the active batch tabs.

Follow Up

Close the issue with per-criterion evidence; reopen if the deployed behaviour differs.

Common Issues

Issue Resolution
Merge conflict Rebase onto the current branch with approval
Large PR Split by area
Stale PR Re-run the targeted check and refresh evidence

Tips for Success

Keep work disjoint, report paths and diffs, and never idle while a build runs.

Summary

A pull request closes an issue only when the evidence shows the behaviour, not when the diff looks plausible.

Limits

  • Agents do not commit or push; the driver does.
  • Only the driver closes issues, with per-criterion evidence.
  • No branch change without explicit user approval.
  • Documentation plans belong in issues, never in a Markdown file.