Skip to content

docs: add the fork safety rule to the core standard - #6

Merged
deathpie merged 1 commit into
mainfrom
docs/core-fork-rule
Nov 23, 2026
Merged

deathpie merged 1 commit into
mainfrom
docs/core-fork-rule

Conversation

@deathpie

Copy link
Copy Markdown
Owner

What changed

  • Adds C1.7 to standards/core.md: every local clone of a fork runs gh repo set-default <owner>/<fork> once, so gh never falls back to the upstream repository. Agents always pass -R <owner>/<repo> (and --base for forks) to gh pr, and never open, comment on, or close anything in an upstream repository.
  • Copies the shared source file verbatim; no other file changes, no reformatting.

Verification

  • diff against the shared source is empty; standards/core.md differs from main only by the four added C1.7 lines.
  • bun scripts/core-drift.ts after all five owner pull requests merge: standards/core.md and hooks/core.yml both ok for all five owners.
  • CI checks on this pull request must pass before squash merge.

Related context

Subagents twice opened pull requests on upstream repositories because gh defaulted to the fork's parent. C1.7 records the rule that prevents it.

@deathpie
deathpie merged commit 4eccd72 into main Nov 23, 2026
5 checks passed
@deathpie
deathpie deleted the docs/core-fork-rule branch November 23, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant