Skip to content

Add Copilot code-review instructions#221

Merged
chris-colinsky merged 2 commits into
mainfrom
chore/copilot-instructions
Jul 19, 2026
Merged

Add Copilot code-review instructions#221
chris-colinsky merged 2 commits into
mainfrom
chore/copilot-instructions

Conversation

@chris-colinsky

Copy link
Copy Markdown
Member

Adds .github/copilot-instructions.md so GitHub Copilot code review runs with the repo's conventions instead of re-deriving style opinions each pass.

Encodes the conventions that generated review noise: the no-em-dash rule for user-facing copy, examples as teaching artifacts using house idioms (lazy providers, moon-themed, no spec refs, build_graph() factory), illustrative vs runnable documentation snippets, typed default factories for strict pyright (Field(default_factory=list[int])), the nullable-usage contract (usage = None is the spec contract, never fabricated), and the strict-pyright / ruff toolchain. Also marks the generated AGENTS.md / _patterns/ as not-hand-written.

Pairs with two GitHub settings changes: per-push re-review turned off (auto-review remains on per PR), plus custom coding guidelines and generated-file path exclusions in Settings.

Give GitHub Copilot code review the repo's conventions so it reviews with
context: the no-em-dash rule for user-facing copy, examples as teaching
artifacts using house idioms, illustrative vs runnable doc snippets, typed
default factories for strict pyright, the nullable-usage contract, and the
strict-pyright / ruff toolchain. Reduces style-nit noise on PRs.
Copilot AI review requested due to automatic review settings July 19, 2026 00:13

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.

Pull request overview

Adds a repository-level Copilot code review instruction file so automated reviews follow OpenArmature’s spec-first and tooling conventions rather than re-deriving style guidance each run.

Changes:

  • Introduces .github/copilot-instructions.md documenting review conventions (spec-as-source-of-truth, no-em-dash for user-facing copy, examples/doc snippet expectations).
  • Captures Python toolchain expectations (Python 3.12+, strict pyright, ruff) and provider/error-handling guidance for consistent review feedback.
  • Flags generated paths (e.g., shipped AGENTS.md, _patterns/) as non-hand-written to reduce review noise.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/copilot-instructions.md Outdated
The error-category line read as if six categories were the complete
canonical set; reword to describe the retrieval-applicable subset mapped
by status and point at openarmature.llm.errors for the full taxonomy
(PR #221 review).
@chris-colinsky
chris-colinsky merged commit a0cf0fa into main Jul 19, 2026
5 checks passed
@chris-colinsky
chris-colinsky deleted the chore/copilot-instructions branch July 19, 2026 00:34
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