Skip to content

Commit 59ea855

Browse files
docs(agents): autonomy-first guardrails and Bugbot policy (#10)
Updates `AGENTS.md` and `.cursor/BUGBOT.md` with shared policy: - **Autonomous work first** — default to finishing useful work without unnecessary gates (within safety rules). - **Multi-repo work encouraged** — one PR per repo; link sibling PRs. - **Fresh tip** — `git fetch` + prefer `merge --ff-only`; `git pull --rebase` ideal but **not required**. - **No automatic force-push** — agents stop and give humans explicit **reasoning**, **effects**, and **why**; approval required per repo/branch. - **Worktrees** — optional operator choice (not mandated in docs). Does **not** include winget-pkgs (excluded by policy). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Documentation-only changes that adjust contributor/agent workflow guidance; no code paths, runtime behavior, or data handling are affected. > > **Overview** > Adds a new `.cursor/BUGBOT.md` with reviewer guidance emphasizing autonomy-first reviews, allowing intentionally split multi-repo work, and requiring explicit justification before suggesting history rewrites/force-push. > > Expands `AGENTS.md` with an **Agentic guardrails** section codifying autonomy-first execution, multi-repo PR coordination, preferred fast-forward updates (with rebase optional), and a **no automatic force-push** policy requiring explicit human approval. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 4499587. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 0993b45 commit 59ea855

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

‎.cursor/BUGBOT.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Bugbot review guidance
2+
## Autonomy, cross-repo, and history (reviewers)
3+
4+
- **Autonomy first:** Prefer review feedback that keeps agents unblocked. Ask for repository splits or extra ceremony only when risk truly warrants it.
5+
- **Multi-repo efforts:** A change may be intentionally split across repositories; read the PR body for links to sibling PRs before calling the work incomplete for only touching one repo.
6+
- **Force-push:** Never suggest force-push as a silent or automatic fix. If history rewrite is raised, require clear **user-visible** justification: **why** it is proposed, **blast radius** and effects on others and CI, and why non-destructive options are insufficient—default to safer paths.

‎AGENTS.md‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# AGENTS.md
22

3+
<!-- agentic-guardrails:start -->
4+
## Agentic guardrails
5+
6+
These notes apply to humans and to automated agents (including Cloud Agents).
7+
8+
1. **Autonomous work comes first**
9+
The default posture is to **finish useful work without unnecessary human gates**. Prefer actions that keep momentum (fetch, build, test, open PRs) over asking for permission for routine steps—while still honoring the hard safety rules below.
10+
11+
2. **Multi-repository work is encouraged**
12+
When a task genuinely spans more than one codebase (services, libraries, docs, sibling CLIs), work across **multiple repositories or local clones** as needed. Open **one PR per repository**, keep each PR scoped, and **link related PRs** in every description so reviewers see the coordinated change.
13+
14+
3. **Stay on a fresh enough tip; rebase is optional**
15+
Before substantive work: `git fetch origin`, check out your branch, then prefer **`git merge --ff-only origin/<branch>`** (or `git pull --ff-only` when upstream exists). If you cannot fast-forward, pause and use the repository’s normal merge or rebase workflow—**do not** silently work on a stale checkout. **`git pull --rebase`** is *ideal* when updating an active feature branch, but it is **not required**; a merge commit or team-standard flow is fine when it avoids needless churn.
16+
17+
4. **Force-push is never automatic and needs explicit human buy-in**
18+
Do **not** run `git push --force`, `git push --force-with-lease`, or rewrite published history on your own. If you believe it might be warranted, **stop** and give the **human** explicit **reasoning**, **effects** on collaborators, CI, and open PRs, and **why** a force-push would be needed versus safer alternatives (new branch, revert, merge). Proceed **only** after they **explicitly approve** that exact repository and branch.
19+
20+
5. **Focused changes and verification**
21+
Keep pull requests focused; run this repository’s standard build, test, and lint commands (see `README`, `Makefile`, or `CLAUDE.md`) before requesting review.
22+
23+
6. **Workflow shape is yours**
24+
Using **git worktree** versus a single working directory is an **operator choice**; these docs do **not** require worktrees.
25+
26+
<!-- agentic-guardrails:end -->
27+
28+
---
29+
30+
331
## Cursor Cloud specific instructions
432

533
This is a **pure Go test-utility library** with zero external dependencies beyond the Go toolchain and `git` CLI. There are no services, databases, or containers to start.

0 commit comments

Comments
 (0)