Skip to content

Promote develop to main: Spend Hardening Effort Where a Failure Can Actually Occur - #2509

Merged
ptr727 merged 1 commit into
mainfrom
develop
Oct 8, 2026
Merged

ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Summary

Promotes one change from develop:

  • Spend Hardening Effort Where a Failure Can Actually Occur #2507: a new carried GOVERNANCE.md section, "Trust Boundaries and Hardening Effort".
    • Input is trusted or untrusted by where it originates. Against trusted input the only threat is a maintainer's mistake, and untrusted input is validated once at its boundary.
    • A hardening case earns a fix or an issue only where it can realistically occur in the code's deployment and fails silently, destructively, or at an outsider's trigger. A plain bug is still fixed.
    • fleet-code-review carries the section as a generated include. local-strict-review asks after races, coercions, and platform differences only where the deployment can produce one, and pr-review-conduct routes a ruled-out hardening finding to an evidence-backed decline.
    • Declared in spec/files.json and spec/section-model.md, and routed from AGENTS.md. The section is verbatim, so it re-vendors across the fleet on the next resync.

Closes #2501.

Verification

🤖 Generated with Claude Code

## Summary

Implements #2501: a governance rule that hardening effort follows the
real risk, not the theoretical one.

- **`GOVERNANCE.md` "Trust Boundaries and Hardening Effort"**, a new
carried verbatim section. Input is trusted or untrusted by where it
originates, not by the channel carrying it. Against trusted input the
only threat is a maintainer's mistake. Untrusted input is validated once
at its boundary. A hardening case earns a fix or an issue only where it
can realistically occur in the code's deployment and fails silently,
destructively, or at an outsider's trigger. A plain bug on the ordinary
path is still fixed. A review finding asking for hardening the section
rules out is declined, and a repository can name its own boundaries
under `OPERATIONS.md` `Configuration Layout`.
- **Declared** in `spec/files.json` and `spec/section-model.md`, and
**routed** from the `AGENTS.md` "Where the Rules Live" table.
- **`fleet-code-review` "Review the Change"** carries the section as a
generated include, so every review brief (`local-strict-review`,
Copilot) reaches it with no new trigger.
- **`local-strict-review`** asks after coercions, races, and platform
differences only where the code's deployment can produce one.
- **`pr-review-conduct`** outcome 2 and its triage list route a
ruled-out hardening finding to an evidence-backed decline. `drive-pr`
changes only through its regenerated include.

`.github/copilot-instructions.md` is deliberately unchanged. Copilot
already loads `fleet-code-review`, which now carries the rule, and that
file forbids duplicating `GOVERNANCE.md`.

## Verification

- `scripts/build_dist.py --check`, `spec/validate.py`, `spec/audit.py
--selftest`, the prose gate, markdownlint, cspell, and
editorconfig-checker all pass.
- `tests/test_build_dist.py`, `test_canonical_review.py`,
`test_carry.py`, `test_spec_validate.py`, `test_repo_gate.py`, and
`test_release_guards.py` all pass.
- Four `local-strict-review` passes ran. The first three found 9, 3, and
3 defects, each fixed in its own commit, and the fourth found none and
is recorded.

Refs #2501, which closes on the promotion PR.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 8, 2026 02:26
@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: 84eb8112-bcac-4fa4-9b2a-5f5e0ee8e765
  • 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 58.50%. Comparing base (e853b3a) to head (6ccffa8).
⚠️ Report is 324 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2509   +/-   ##
=======================================
  Coverage   58.50%   58.50%           
=======================================
  Files          16       16           
  Lines        8066     8066           
=======================================
  Hits         4719     4719           
  Misses       3347     3347           
Flag Coverage Δ
python-3.13 58.50% <ø> (ø)

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.

🔵 Needs a closer look

The change spans 20 coordinated governance and generated skill files, warranting final human verification.

0 open findings

What changed in this PR

Promotes the fleet-wide trust-boundary hardening governance rule from develop to main.

Changes:

  • Adds and registers the new governance section.
  • Routes it through review and triage guidance.
  • Updates generated skill copies and source digests.
File Summary
spec/​section-model.md Declares the new section.
spec/​files.json Registers the carried section.
GOVERNANCE.md Adds trust-boundary hardening guidance.
AGENTS.md Routes work to the new rule.
.github/​skills/​pr-review-conduct/​SKILL.md Updates generated conduct guidance.
.github/​skills/​local-strict-review/​SKILL.md Updates deployment-aware review guidance.
.github/​skills/​fleet-code-review/​SKILL.md Adds the generated governance include.
.github/​skills/​drive-pr/​SKILL.md Updates generated review guidance.
.claude-plugin/​fleet-skills/​skills/​pr-review-conduct/​SKILL.md Updates plugin conduct guidance.
.claude-plugin/​fleet-skills/​skills/​local-strict-review/​SKILL.md Updates plugin strict-review guidance.
.claude-plugin/​fleet-skills/​skills/​fleet-code-review/​SKILL.md Updates plugin fleet-review guidance.
.claude-plugin/​fleet-skills/​skills/​drive-pr/​SKILL.md Updates plugin PR guidance.
.claude-plugin/​fleet-skills/​.source-digests/​pr-review-conduct Refreshes the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​local-strict-review Refreshes the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​fleet-code-review Refreshes the source digest.
.claude-plugin/​fleet-skills/​.source-digests/​drive-pr Refreshes the source digest.
.agents/​skills/​pr-review-conduct/​SKILL.md Updates canonical conduct guidance.
.agents/​skills/​local-strict-review/​SKILL.md Updates canonical strict-review guidance.
.agents/​skills/​fleet-code-review/​SKILL.md Updates canonical fleet-review guidance.
.agents/​skills/​drive-pr/​SKILL.md Updates canonical PR guidance.

🧠 Review effort: Lite


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

@ptr727
ptr727 merged commit cecad1e into main Oct 8, 2026
13 checks 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.

Encode Trust Boundaries So Hardening Effort Follows the Real Threat, Not the Maintainer's Own Inputs

2 participants