Skip to content

docs: require fork-internal PRs by default (Hard Rule #20) - #2

Merged
geekjapan merged 1 commit into
mainfrom
chore/graphify-knowledge-graph
Jun 17, 2026
Merged

geekjapan merged 1 commit into
mainfrom
chore/graphify-knowledge-graph

Conversation

@geekjapan

Copy link
Copy Markdown
Owner

Summary

Fork-internal PR (base: geekjapan/OmniRoute:main) — does not target upstream. Follow-up to #1 (which merged before this commit landed).

Adds Hard Rule cheaper-inference#20: open pull requests inside the geekjapan/OmniRoute fork by default (base geekjapan/OmniRoute:main). Because this repo is a GitHub fork of diegosouzapw/OmniRoute, GitHub's PR page and gh pr create default the base to the upstream parent, so it must be overridden:

gh pr create --repo geekjapan/OmniRoute --base main …

Target upstream only when explicitly preparing an upstream contribution.

Reflected into all agent scopes

(Also recorded in the operator-scope agent memory.)

…ce#20)

Add Hard Rule cheaper-inference#20: open PRs inside the geekjapan/OmniRoute fork (base
geekjapan/OmniRoute:main) by default. Since this repo is a GitHub fork,
GitHub's PR page and `gh pr create` default the base to upstream
(diegosouzapw/OmniRoute) — override with
`gh pr create --repo geekjapan/OmniRoute --base main`. Target upstream
only when explicitly preparing an upstream contribution.

Reflected into all agent scopes: CLAUDE.md (canonical), AGENTS.md
(Hard Rules + Fork/Upstream Workflow), GEMINI.md, and
openspec/config.yaml (context + tasks rule).
Copilot AI review requested due to automatic review settings June 17, 2026 06:00

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces Hard Rule cheaper-inference#20 across AGENTS.md, CLAUDE.md, GEMINI.md, and openspec/config.yaml, instructing developers to default to opening pull requests inside the geekjapan/OmniRoute fork rather than the upstream repository. Feedback is provided regarding an accidental indentation change in CLAUDE.md that breaks markdown list formatting.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread CLAUDE.md
`fix/*`/`feat/*` — other sessions keep their own; delete only the branches you created, by name.
5. **Never touch another session's worktree, branch, or uncommitted changes.** If `git worktree
list` shows worktrees you didn't create, leave them alone. End every session with the main
list` shows worktrees you didn't create, leave them alone. End every session with the main

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The indentation of this line was accidentally removed, which breaks the markdown list formatting. It should be indented with three spaces to align with the list item above:

   list` shows worktrees you didn't create, leave them alone. End every session with the main

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Not ready to approve

CLAUDE.md has a markdown formatting regression where an inline code span is split across lines (git worktree / list), which will render incorrectly and should be fixed before merging.

Pull request overview

Updates the repo’s “Hard Rules” documentation across agent scopes to require creating pull requests against the fork’s geekjapan/OmniRoute:main by default (to avoid GitHub/gh defaulting PR bases to the upstream parent repo).

Changes:

  • Add Hard Rule cheaper-inference#20 to CLAUDE.md, AGENTS.md, and GEMINI.md describing the fork-internal PR default and the required gh pr create --repo geekjapan/OmniRoute --base main … override.
  • Mirror the same rule into OpenSpec agent context (openspec/config.yaml) and OpenSpec tasks rules.

Commands run: not run (docs-only changes; command execution not available in this review environment)
Coverage (custom): not run

File summaries
File Description
openspec/config.yaml Mirrors Hard Rule cheaper-inference#20 into the OpenSpec context and task rules so spec-driven workflows default to fork-internal PRs.
GEMINI.md Adds Hard Rule cheaper-inference#20 to Gemini agent rules to prevent accidentally targeting upstream in PR creation.
CLAUDE.md Adds Hard Rule cheaper-inference#20 to canonical rules; also touches Worktree Isolation section formatting.
AGENTS.md Adds Hard Rule cheaper-inference#20 and reinforces it in the “Fork / Upstream Workflow” section for non-Claude agents.

Copilot's findings

  • Files reviewed: 4/4 changed files
  • Comments generated: 1

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.

Comment thread CLAUDE.md
Comment on lines 442 to 444
5. **Never touch another session's worktree, branch, or uncommitted changes.** If `git worktree
list` shows worktrees you didn't create, leave them alone. End every session with the main
list` shows worktrees you didn't create, leave them alone. End every session with the main
checkout back on the branch it started on (the active `release/vX.Y.Z`, never `main`).
@geekjapan
geekjapan merged commit e2bee77 into main Jun 17, 2026
1 check passed
@geekjapan
geekjapan deleted the chore/graphify-knowledge-graph branch June 17, 2026 06:05
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.

2 participants