Skip to content

meta(repo): adopt ConaryLabs house contract and PR gate - #3

Merged
TusanHomichi merged 2 commits into
mainfrom
claude/repo-setup-complete-y2qmmk
Aug 28, 2026
Merged

TusanHomichi merged 2 commits into
mainfrom
claude/repo-setup-complete-y2qmmk

Conversation

@TusanHomichi

@TusanHomichi TusanHomichi commented Aug 28, 2026 •

Copy link
Copy Markdown
Member

Primary Issue

Closes #2

Problem And Outcome

Consolebook had principles and ADRs but no repo-level contract for agents and contributors and no CI enforcement. After merge, the repo carries the ConaryLabs house pattern scaled to its size: AGENTS.md as the concise shared contract, a thin CLAUDE.md importing it, an enforced fmt/clippy/test gate on every PR, and templates that anchor work to one primary issue.

Changes

  • AGENTS.md: orientation, verification gates, issue/branch/PR workflow, product and authority constraints drawn from PRINCIPLES.md, defect discipline, Rust conventions, privacy rules
  • Thin tool entrypoints: CLAUDE.md (imports AGENTS.md), .agents/rules/consolebook.md, .github/copilot-instructions.md
  • .github/workflows/pr-gate.yml: cargo fmt --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace on the pinned toolchain, pinned action SHAs
  • PR template; work-item and bug-report issue templates (bug report includes a required invented-fixtures privacy check); blank issues disabled with a private-advisory contact link
  • CONTRIBUTING.md owns the issue/branch/PR lifecycle and the engineering-over-heuristics discipline
  • README repo map lists AGENTS.md

Scope

  • In scope: repo contract, CI gate, templates, contributing lifecycle
  • Out of scope: feature-ownership cards, routing scripts, docs/llms/ (premature at this size); branch protection settings (admin action); application code

Verification

  • Listed the exact verification commands run below
  • Added or updated tests when behavior changed — no code behavior changed
  • Added or updated an ADR when a durable decision changed — none changed; the contract restates existing principles
  • All fixtures and examples are invented; no real agency data
- cargo fmt --check
- cargo clippy --workspace --all-targets -- -D warnings
- cargo test --workspace   (10 passed)
- YAML validity checked for the workflow and issue templates

Review And Merge Notes

  • Review focus: whether AGENTS.md states the product/authority constraints the way you want them stated — it is the file agents will actually obey
  • User or operator impact: none at runtime; contributors and agents get an enforced contract

claude added 2 commits August 28, 2026 08:30
Bring consolebook in line with the ConaryLabs repo pattern, scaled to a
two-crate workspace:

- AGENTS.md: concise repo-wide contract (smallest useful context,
  verification gates, issue/branch/PR workflow, product and authority
  constraints from PRINCIPLES.md, defect discipline, conventions)
- thin CLAUDE.md importing AGENTS.md; .agents/rules/ and
  copilot-instructions.md as thin pointers
- pr-gate workflow: fmt --check, clippy --workspace --all-targets
  -D warnings, test --workspace on the pinned toolchain
- PR template anchored to one primary issue; work-item and bug-report
  issue templates including the invented-fixtures privacy check
- CONTRIBUTING.md owns the issue/branch/PR lifecycle and the
  engineering-over-heuristics discipline
- README repo map lists AGENTS.md

Deliberately omitted at this size: feature-ownership cards, routing
scripts, docs/llms. Refs #2 acceptance criteria are all covered here.
Carry the house maintainability ladder into the consolebook contract:
ownership-based reorganization for slices growing a Rust file past
1,000 lines, a named ownership boundary before behavior changes in
files past 1,500, and a reviewed decomposition path past 2,500.

Refs #2
@TusanHomichi
TusanHomichi merged commit 8d92ec2 into main Aug 28, 2026
1 check passed
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.

Adopt the ConaryLabs house repo contract and PR gate

2 participants