Repository navigation
Model the Threat and Reuse Before Building, and Give Review a Design Lens - #2536
Conversation
…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]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved moderate findings and related review comments remain in the governance index, triage wording, section guidance, and prose.
8 open findings
Add canonical helpers to the Configuration Layout index · New Shorten review-criteria sentences to 25 words or fewer · New Broaden reuse guidance beyond files touched by the change · New Split triage paragraph sentences to meet the 25-word cap · New Shorten foundational-principles reuse statement · New Split reuse search instruction before merging · New Shorten generated-include explanation sentences · New Update section model destinations for primitive and trust lists · New
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.
…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]>
|
A recorded local strict-review pass covers head |
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]>
|
A recorded local strict-review pass covers head |
## 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)


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.GOVERNANCE.md, placed before "Trust Boundaries and Hardening Effort", declared inspec/files.jsonandspec/section-model.md, and routed fromAGENTS.md. It states that a repository keeps its list of consolidated primitives inOPERATIONS.mdunderConfiguration Layout, and the hub's ownOPERATIONS.mdnow lists its FIFO-safe read and write pair there, whichspec/section-model.mdnames as that list's destination.CODESTYLE.mdGeneral, and the reuse principle widened to all code.fleet-code-reviewcarries 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, andagent-conductgains the design trigger.STANDUP.md'sOPERATIONS.mdtemplate 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
b157542dand1479ad68, apart from theDesign Before Codeclosing sentence, which keeps the one-sentence include formulaskill-lifecycleprescribes. One finding from a later local pass is left to this review:agent-conduct"Before Designing a Change" points atGOVERNANCE.md"Design Before Code" rather than carrying it as an include, so in a repository not yet resynced the pointer names a section its carriedGOVERNANCE.mddoes not hold. The pointer form, and dropping its reason sentence, is what decision Decide How to Finish Design Before Code After the Local Review Budget Ran Out #2525 settled, so it is kept here.The pass over the branch brought up to date with develop, at
530a9b3c, raised six findings:Design Before Codeclosing sentence's length, at its source and its three generated copies. It keeps the one-sentence include formula, as above.agent-conductpointer above, which stays for the same reason.install.py, which the newOPERATIONS.mdline names, still has a probe and failure messages that predate the newCODESTYLE.mdrule. 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 thebuild_dist,spec_validate,carry,canonical_review,repo_gate, andprose_linttest suites pass locally. A recordedlocal-strict-reviewpass covers the pushed content.Closes on promotion: #2516, #2431
🤖 Generated with Claude Code