Skip to content

fix(hardening): defect PR #3539 missing declared surface hardening #3549

Closed as not planned

Description

@github-actions

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.md
  • ARCHITECTURE.md
  • SECURITY.md
  • CONTRIBUTING.md
  • src/devops_cli/ai/tasks/*.md
  • src/devops_cli/ai/knowledge_base/
  • .devops/review.toml
  • src/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]
  • 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

  1. added
    type/bug
    status/new
    value/medium
    effort/low
    on Nov 5, 2026
  2. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: none. The title has the scope hardening, and .github/labels.yml declares no scope/hardening label. Add the label to the file to give the scope to this item.
    • Priority: P2-Medium. A required process step was skipped, but no user-facing defect is active.
    • Value: Medium. Adding guardrails prevents the same class of regression from recurring.
    • Effort: Low. The work is to add guardrail text to one or more existing declared surfaces.
    • Related: fix(hardening): defect PR #3534 missing declared surface hardening #3538, which asks for a different change. Both follow the same hardening-audit template, but the candidate targets PR #3539 while #3538 targets PR #3534.
  3. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    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.

    • What is the audit finding? (missing verified source)
  4. dan-petty commented on Nov 11, 2026

    @dan-petty
    Owner

    Closed as not planned. The check that filed this item passes now.

    • Command: uv run devops pr hardening-report --pr 3539
    • Result: is_hardened: true. The hardened surfaces are tests/ and openspec/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.

  5. removed
    status/new
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions