Skip to content

Adopt the ConaryLabs house repo contract and PR gate #2

Closed

Description

@TusanHomichi

Problem or outcome

Consolebook has principles, ADRs, and a working Milestone 1 slice, but no repo-level contract for agents and contributors and no CI gate. Conary carries the house pattern: a concise AGENTS.md contract imported by a thin CLAUDE.md, an enforced fmt/clippy/test gate on pull requests, issue/PR templates that anchor work to one primary issue, and an explicit engineering discipline (typed contracts over heuristics; fix defects found in scope or file an exact-evidence issue).

Bring consolebook in line, scaled to its size — no routing scripts or ownership maps a two-crate workspace doesn't need yet.

Scope

In scope:

  • AGENTS.md repo contract tailored to consolebook (orientation, verification gates, workflow, product/authority constraints drawn from PRINCIPLES.md, defect discipline, conventions)
  • thin CLAUDE.md importing it, .agents/rules/ and .github/copilot-instructions.md pointers
  • .github/workflows/pr-gate.yml: cargo fmt --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace on the pinned toolchain
  • PR template and issue templates (bug report, work item) adapted to consolebook, including its privacy constraint on fixtures
  • CONTRIBUTING.md gains the issue → branch → PR workflow section

Out of scope:

  • feature-ownership cards, agent-context.sh-style routing, docs/llms/ (premature at this size)
  • branch protection settings (repository admin action, not repository content)
  • any application code changes

Acceptance criteria

  • AGENTS.md exists and CLAUDE.md imports it
  • PR gate workflow runs fmt, clippy -D warnings, and tests on pull requests to main
  • PR and issue templates in place
  • CONTRIBUTING.md owns the contribution lifecycle
  • All gates pass locally on the pinned 1.98 toolchain

Expected proof

  • cargo fmt --check && cargo clippy --workspace --all-targets -- -D warnings && cargo test --workspace
  • pr-gate workflow green on the PR adopting this

Activity

  1. added a commit that references this issue on Aug 28, 2026
    8d92ec2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions