Skip to content

fix(hardening): defect PR #3526 missing declared surface hardening #3531

Closed as not planned

Description

@github-actions

Unhardened Defect PR Audit Finding

Defect Pull Request #3526 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

The defect fix of pull request 3526 (issue 3271) made a policy refusal of the implement step's shell a normal tool result that adds no tool retry, and added a limit of refusals to the step. The change adds the root-cause guardrail for that defect to a declared hardening surface, which the defect pull request did not do.

Acceptance criteria

Existing Tool Considered

pytest (open, maintained) already runs the regression test; the project needs no new library. The change adds one test to the existing test file of the behavior, and the guardrail already present in that file pins the root cause. Cost of the own code: about 15,000 tokens to write the test and its fixture, about 3,000 tokens per year to keep it, about 8,000 tokens to fix it after a behavior change, and about 2 hours elapsed.

Key questions

None.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/bug
    status/new
    value/medium
    effort/low
    on Nov 4, 2026
  2. devops-cli-service commented on Nov 4, 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 process compliance gap that risks recurrent regressions but does not break user-facing behaviour.
    • Value: Medium. Adding guardrails to declared surfaces prevents the same class of regression from recurring.
    • Effort: Low. The change adds guardrail text to one or more existing documentation surfaces.
    • Related: fix(hardening): defect PR #3521 missing declared surface hardening #3525, which asks for a different change. Both are hardening audit findings for a specific defect PR, but the candidate targets PR #3526 while #3525 targets PR #3521.
  3. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at be8d18a 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.

    • The proposal has no problem statement, no acceptance criterion with its requirement, scenario, WHEN and THEN, or no answer to the existing-tool question. State the problem, the requirements with their scenarios, and the open tool that covers the need or the cost of building it.
  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 3526
    • 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 #3526 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