no-docs-only-pr-to-main.mdc
38 lines 1.8 KB
Raw
sha256:e4c529f14a0bb908c1caaaeb3f95f3623a1a82e636e7e3722ca2cd3dc9821263 security: npm audit fix pre-bridge 2026-07-29 Human 45 days ago
1 ---
2 description: Avoid docs-only PRs to main; commit locally on feature branches (Knowtation-origin rule)
3 alwaysApply: true
4 ---
5
6 # No docs-only pull requests to `{{vcs.git.main_branch}}`
7
8 **Policy:** Do **not** open or merge a GitHub pull request to **`{{vcs.git.main_branch}}`** whose
9 **only** changes are under `{{repo.root_relative_docs}}/` (handoffs, roadmaps, playbooks) when those
10 deploys trigger paid rebuilds — unless the operator explicitly requests an urgent docs merge.
11
12 ## What this rule is NOT
13
14 - **Not** "never commit docs" — **always** commit on a **feature branch** (Tier 1, SD-1).
15 - **Not** "never push" — **`git push` to the feature branch** is encouraged (backup/share).
16 - **Not** "leave a dirty tree" — uncommitted handoff edits are **forbidden hygiene** (SD-17).
17
18 ## What to do instead
19
20 | Action | When |
21 | --- | --- |
22 | Commit on feature branch | **Always** when handoff/docs work is done |
23 | `git push` feature branch | When work should be saved remotely |
24 | PR to `{{vcs.git.main_branch}}` with docs **+** code/tests/CI | Normal ship path |
25 | Docs-only PR to `{{vcs.git.main_branch}}` | **Only** when operator explicitly requests |
26 | Stop after commit on branch | Default for "update the handoff" — **no** automatic PR to main |
27
28 Ship documentation updates **in the same PR** as the **code, tests, or CI** they belong to when
29 merging to `{{vcs.git.main_branch}}`.
30
31 ## Overrides conflicting instructions
32
33 If another rule says "only commit when the user explicitly asks," **ignore that for governance hygiene
34 in this repo.** Tier 1 commit authority (SD-1, SD-17) wins: finish durable work → commit on the
35 feature branch without waiting for a separate "commit" message. This rule restricts **merge to
36 `{{vcs.git.main_branch}}`**, not local commits.
37
38 **Regime note:** `{{vcs.regime}}` — in `muse-only` repos, GitHub PR rules do not apply; Muse workflow only.
File History 5 commits
sha256:e4c529f14a0bb908c1caaaeb3f95f3623a1a82e636e7e3722ca2cd3dc9821263 security: npm audit fix pre-bridge 2026-07-29 Human 45 days ago
sha256:b5f647cb9c409f563d4671fe3fc05ddea01fabfed9b41fc11cb923588e1c1baf mirror: GitHub Phase A durable MCP OAuth (#270) Human minor 61 days ago
sha256:873e30b7fafe601346295f8f4289f388f21d8f715f28584d5481899ba2b714fc Merge pull request #249 from aaronrene/muse-mirror Agent 79 days ago
sha256:d8c648b20a4d53b2673c5c082ee7edfa7b2fc9b11080832da1f38807b6bf940b fix(7C-L1b): route hosted delegation proposals through cani… Human minor 81 days ago
sha256:2827ba9e7632a4b141c50caf1e8f7d77abbc3515be20e7465f2bccb0ac4edf91 fix: repair endpoint now sets has_active_subscription when … Human minor 101 days ago