Repository navigation
Description
Unhardened Defect PR Audit Finding
Defect Pull Request #3539 was merged without adding guardrails or lessons to any declared hardening surface.
Declared Hardening Surfaces
docs/TESTING.mdARCHITECTURE.mdSECURITY.mdCONTRIBUTING.mdsrc/devops_cli/ai/tasks/*.mdsrc/devops_cli/ai/knowledge_base/.devops/review.tomlsrc/devops_cli/review/rules/
Per project invariants (AGENTS.md), defect fixes must codify root-cause guardrails into at least one declared surface to prevent recurrent regressions.
Proposed design
Problem statement
Defect PR #3539 merged without a guardrail or a lesson in a declared hardening surface. The project rule requires a defect fix to codify its root cause in a declared surface. This change adds the missing lesson to CONTRIBUTING.md and names PR #3539.
Acceptance criteria
Requirement: Contribution guide states the hardening rule
CONTRIBUTING.md SHALL state that a defect fix pull request adds a guardrail or a lesson to at least one declared hardening surface.
Scenario: The contribution guide states the rule
- WHEN A person runs
git grep -n "declared hardening surface" -- CONTRIBUTING.md. - THEN The command exits 0.
Requirement: Lesson names PR #3539
The lesson SHALL name PR #3539 as a defect fix that missed the hardening rule.
Scenario: The lesson cites the audit finding
- WHEN A person runs
git grep -n 3539 -- CONTRIBUTING.md. - THEN The command exits 0.
Requirement: Documentation check passes
The change SHALL pass the documentation check.
Scenario: The documentation check passes
- WHEN A person runs
uv run devops ci docs. - THEN The command exits 0.
Requirement: Hardening audit reports hardened
The hardening audit SHALL report a pull request that changes CONTRIBUTING.md as hardened.
Scenario: The audit sees a declared surface
- WHEN The hardening audit runs on a pull request that changes only
CONTRIBUTING.md. - THEN The audit report says the pull request is hardened.
Existing Tool Considered
No alternatives check has run. No open, maintained tool covers a project-specific process lesson. The project writes the lesson in CONTRIBUTING.md. The written cost is about 2,000 tokens to write and keep the lesson, and about 30 minutes of elapsed time. The change builds no code.
Key questions
- Which declared hardening surface carries the lesson for the PR fix(roadmap): one failed item does not suspend the stage row #3539 audit finding?:
CONTRIBUTING.md, because it owns the contribution rules and the AGENTS.md table sends a contributor there for pull request rules. (best practice) [sources: AGENTS.md, CONTRIBUTING.md]- Chosen: CONTRIBUTING.md. It owns the contribution rules, and AGENTS.md sends a contributor there for pull request rules.
- Rejected: docs/TESTING.md. It owns test design, not the contribution process.
- Rejected: ARCHITECTURE.md. It owns the architecture, not the contribution process.
- What does the lesson state?: A defect fix pull request SHALL add a guardrail or a lesson to at least one declared hardening surface. The lesson names PR fix(roadmap): one failed item does not suspend the stage row #3539 as a defect fix that missed the rule. (best practice) [sources: AGENTS.md]
- Chosen: Rule with PR fix(roadmap): one failed item does not suspend the stage row #3539. It states the rule and names the audit finding that the issue records.
- Rejected: Generic rule only. It does not name the audit finding, so the lesson is not tied to PR fix(roadmap): one failed item does not suspend the stage row #3539.
- Rejected: Full surface list only. A list without the rule does not state the requirement.
- What command proves the lesson?:
uv run devops ci docs, because the change is a document and adds no behavior. (best practice) [sources: CONTRIBUTING.md, docs/TESTING.md]- Chosen: uv run devops ci docs. The project requires a documentation check for a document change.
- Rejected: A new pytest test. The change adds no behavior, and docs get no test.
- Rejected: No command. The project requires a command that proves a non-behavior change.
- How does the change satisfy the hardening audit?: The change edits
CONTRIBUTING.md, a declared hardening surface. The hardening audit reports a pull request that changes a declared surface as hardened. (best practice) [sources: openspec/specs/pr-hardening-audit/spec.md, CONTRIBUTING.md]- Chosen: Edit CONTRIBUTING.md. It is a declared surface and the audit counts a changed declared surface.
- Rejected: Edit no declared surface. The audit would report the pull request as unhardened.
Open questions
- What is the audit finding? (missing verified source)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 5, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.hardening, and .github/labels.yml declares no scope/hardening label. Add the label to the file to give the scope to this item.A required process step was skipped, but no user-facing defect is active.Adding guardrails prevents the same class of regression from recurring.The work is to add guardrail text to one or more existing declared surfaces.Both follow the same hardening-audit template, but the candidate targets PR #3539 while #3538 targets PR #3534.devops-cli-service commentedon Nov 6, 2026
Refine cannot set this item to Ready at c1191e2 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
dan-petty commentedon Nov 11, 2026
Closed as not planned. The check that filed this item passes now.
uv run devops pr hardening-report --pr 3539is_hardened: true. The hardened surfaces aretests/andopenspec/specs/.#3684 (merged 2026-11-05) counts tests and specs as hardening guardrails. Thus PR #3539 has the guardrail that the audit did not find. #3661 closes this family of items under the issue stewards plan #4780 (AGENTS.md rule 2). If the check fails again, reopen this item.