Skip to content

Model the Threat and Reuse Before Building, and Give Review a Design Lens - #2536

Merged
ptr727 merged 8 commits into
developfrom
feature/auto-2516
Oct 8, 2026
Merged

ptr727 merged 8 commits into
developfrom
feature/auto-2516

Conversation

@ptr727

@ptr727 ptr727 commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds GOVERNANCE.md "Design Before Code", so the threat model and the search for an existing primitive happen before the first edit rather than in review, and gives review a design lens to check it.

  • "Design Before Code" in GOVERNANCE.md, placed before "Trust Boundaries and Hardening Effort", declared in spec/files.json and spec/section-model.md, and routed from AGENTS.md. It states that a repository keeps its list of consolidated primitives in OPERATIONS.md under Configuration Layout, and the hub's own OPERATIONS.md now lists its FIFO-safe read and write pair there, which spec/section-model.md names as that list's destination.
  • "Operations and Failure Messages" in CODESTYLE.md General, and the reuse principle widened to all code.
  • fleet-code-review carries the section as an include, with item 7 and the finding shape adjusted for design findings.
  • pr-review-conduct "Triaging findings" gains a class for a design finding the section backs: fixed by extending a helper this repository holds and moving the touched files' sites onto it, with the other sites and any other repository's helper filed as issues, rather than parked as an architectural opinion.
  • local-strict-review's brief gains the reuse search, and agent-conduct gains the design trigger.
  • STANDUP.md's OPERATIONS.md template asks for the primitive list once a repository has consolidated any, and for trust boundaries only where the general classes leave them unclear.

Open Findings From the Local Passes

Findings 1 to 4 from the first local pass, which Copilot's first round also raised, are fixed in b157542d and 1479ad68, apart from the Design Before Code closing sentence, which keeps the one-sentence include formula skill-lifecycle prescribes. One finding from a later local pass is left to this review:

The pass over the branch brought up to date with develop, at 530a9b3c, raised six findings:

  • Four are the Design Before Code closing sentence's length, at its source and its three generated copies. It keeps the one-sentence include formula, as above.
  • One is the agent-conduct pointer above, which stays for the same reason.
  • One is a design finding: install.py, which the new OPERATIONS.md line names, still has a probe and failure messages that predate the new CODESTYLE.md rule. Those sites sit in a file this change does not touch, so they are filed as Move install.py's Probe and State-Describing Messages Onto the Operations Rule #2606, per "Design Before Code".

Verification

build_dist.py --check, spec/validate.py, spec/audit.py --selftest, repo_gate.py, the diff-scoped prose gate, and the build_dist, spec_validate, carry, canonical_review, repo_gate, and prose_lint test suites pass locally. A recorded local-strict-review pass covers the pushed content.

Closes on promotion: #2516, #2431

🤖 Generated with Claude Code

ptr727 and others added 5 commits October 7, 2026 21:01
…Lens

Add GOVERNANCE.md "Design Before Code" before "Trust Boundaries and
Hardening Effort", routed from AGENTS.md and declared verbatim in the
spec. Put the two code-level lessons in CODESTYLE.md General, widen the
reuse principle to all code, carry the section into fleet-code-review
with a design criterion, add a reuse search to local-strict-review's
brief, surface the design moment in agent-conduct, and ask for a
shared-primitive list in the OPERATIONS.md template.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Name the non-blocking open the named-pipe example depends on, make the
removed thing the near-duplicate rather than the existing helper, scope
the failure-message rule to targets without a path, make the review
criterion a check and the brief's report conditional, search the hub as
the rule says, start the search at the OPERATIONS.md list rather than
replacing it, name the hub's own primitives, and point agent-conduct at
the section without a partial summary.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The finding-shape contracts in fleet-code-review and the local review
brief asked every finding for a failing behavior, which a consolidation
or over-hardening finding does not have. Drop the hub primitive list from
OPERATIONS.md, since those primitives' messages predate the new
failure-message rule.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Match Verification Discipline's sweep bound: sites a change does not
touch move in their own change, filed as one issue naming each.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… to a Fix

Apply the four fixes decision #2525 settled. "Design Before Code" now
states that a repository keeps its list of consolidated primitives, so
the carried rule no longer depends on hub-only STANDUP.md for that duty.
STANDUP.md's Configuration Layout paragraph matches the conditions each
rule sets. agent-conduct keeps one pointer to the section without an
inaccurate reason, and pr-review-conduct gains a triage class for a
finding "Design Before Code" backs, so it is fixed rather than parked
as an architectural opinion.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 8, 2026 14:27
@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5ec94399-ea37-4bcc-90e5-01068b54185d
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.09%. Comparing base (280e3b4) to head (530a9b3).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2536   +/-   ##
========================================
  Coverage    59.09%   59.09%           
========================================
  Files           16       16           
  Lines         8231     8231           
========================================
  Hits          4864     4864           
  Misses        3367     3367           
Flag Coverage Δ
python-3.13 59.09% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved moderate findings and related review comments remain in the governance index, triage wording, section guidance, and prose.

8 open findings
What changed in this PR

Adds a fleet-wide “Design Before Code” governance rule covering threat modeling, reuse, consolidation, and design-focused review.

Changes:

  • Updates governance, specifications, operations, and style guidance.
  • Routes the new design lens through review and agent skills.
  • Refreshes GitHub, Claude, canonical skills, and source digests.

Review findings include two moderate issues involving the primitive registry, plus wording and sentence-length nits in the affected governance and skill documentation.

File Summary
STANDUP.md Documents primitive and trust-boundary lists.
spec/​section-model.md Registers the new governance section.
spec/​files.json Adds the section to the baseline.
GOVERNANCE.md Adds design-before-code, reuse, and consolidation rules.
CODESTYLE.md Adds operations and failure-message guidance.
AGENTS.md Routes design work to the new guidance.
.github/​skills/​pr-review-conduct/​SKILL.md Updates finding triage.
.github/​skills/​local-strict-review/​SKILL.md Adds reuse review criteria.
.github/​skills/​fleet-code-review/​SKILL.md Adds the design review lens.
.github/​skills/​agent-conduct/​SKILL.md Surfaces the design step.
.claude-plugin/​fleet-skills/​skills/​pr-review-conduct/​SKILL.md Regenerated triage skill.
.claude-plugin/​fleet-skills/​skills/​local-strict-review/​SKILL.md Regenerated review skill.
.claude-plugin/​fleet-skills/​skills/​fleet-code-review/​SKILL.md Regenerated design review skill.
.claude-plugin/​fleet-skills/​skills/​agent-conduct/​SKILL.md Regenerated conduct skill.
.claude-plugin/​fleet-skills/​.source-digests/​pr-review-conduct Updates generated-source digest.
.claude-plugin/​fleet-skills/​.source-digests/​local-strict-review Updates generated-source digest.
.claude-plugin/​fleet-skills/​.source-digests/​fleet-code-review Updates generated-source digest.
.claude-plugin/​fleet-skills/​.source-digests/​agent-conduct Updates generated-source digest.
.agents/​skills/​pr-review-conduct/​SKILL.md Updates canonical triage guidance.
.agents/​skills/​local-strict-review/​SKILL.md Updates canonical review guidance.
.agents/​skills/​fleet-code-review/​SKILL.md Updates canonical design review guidance.
.agents/​skills/​agent-conduct/​SKILL.md Updates canonical conduct guidance.

🧠 Review effort: Lite


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment thread STANDUP.md Resolved
Comment thread GOVERNANCE.md Resolved
Comment thread GOVERNANCE.md Resolved
Comment thread GOVERNANCE.md Resolved
Comment thread spec/section-model.md Resolved
ptr727 and others added 2 commits October 8, 2026 07:37
…he Helper

Answer the first review round on this pull request. The hub's
OPERATIONS.md now lists the FIFO-safe read and write pair under
Configuration Layout, so the hub meets the rule it adds, and the section
model names that heading as where the primitive and trust-boundary lists
go. pr-review-conduct's design-finding class now lets the fix extend the
existing helper wherever it lives, filing only the other sites. Long
sentences on changed lines are split.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A helper another repository holds is that repository's to extend, so
the triage class files an issue there rather than fixing it here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727

ptr727 commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 1479ad6804c18261b3bc286434f614304a0bedec, the content this pull request carries at that commit against develop, and it recorded 0 findings.

Bring the branch up to develop before the merge to develop, and
regenerate the skill digest the two sides both changed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727

ptr727 commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 530a9b3c18fb9fa44931c1389854dfbf0d312ca1, the content this pull request carries at that commit against develop, and it recorded 6 findings.

@ptr727
ptr727 merged commit b6cdf60 into develop Oct 8, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/auto-2516 branch October 8, 2026 23:32
ptr727 added a commit that referenced this pull request Oct 9, 2026
## Summary

Promotes develop to main.

- #2536: add `GOVERNANCE.md` "Design Before Code", the `CODESTYLE.md`
operations and failure-message rules, and a design lens in review.

Fixes #2516
Fixes #2431

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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