Repository navigation
fix(github): the defect classifier records a lesson in the document that owns it, not in AGENTS.md - #2358
Merged
Conversation
…hat owns it, not in AGENTS.md The defect classifier counted AGENTS.md as a hardening surface for defect pull requests. Issue #1961 converted AGENTS.md into a router document, so domain lessons and guardrails belong in owning documents. - Update CONST_HARDENING_SURFACES to replace AGENTS.md with docs/TESTING.md, ARCHITECTURE.md, SECURITY.md, and CONTRIBUTING.md. - Update match_hardening_surface and docstrings in src/devops_cli/github/defect_classifier.py to match the owning documents. - Update .github/workflows/defect-pr-hardening-audit.yml declared hardening surfaces list to match CONST_HARDENING_SURFACES. - Update defect classifier and hardening report tests to verify the owning documents and ensure additions to AGENTS.md do not satisfy hardening. Closes #1979 Change: `openspec/changes/archive/2026-10-27-1979-defect-classifier-hardening-surfaces/`
Owner
Author
|
Fail-to-pass check run: https://github.com/dan-petty/devops-cli/actions/runs/40552579231/job/122360002309 5 failed on base (5 failed and 9 passed in tests/test_defect_classifier.py, tests/test_pr_hardening_report.py; 0 errored). |
dan-petty
pushed a commit
that referenced
this pull request
Oct 27, 2026
🤖 I have created a release *beep* *boop* --- ## [0.7.1](v0.7.0...v0.7.1) (2026-10-27) ### Bug Fixes * **ci:** replay fail-to-pass tests in a git worktree of the base ([#2353](#2353)) ([5194d60](5194d60)) * **github:** a rate-limit check for another host leaves the github.com quotas unchanged ([#2357](#2357)) ([5d37762](5d37762)) * **github:** the defect classifier records a lesson in the document that owns it, not in AGENTS.md ([#2358](#2358)) ([a47167c](a47167c)) * **k8s:** create the Grafana token before it revokes the old ones ([#2352](#2352)) ([f9c7ef5](f9c7ef5)) * **service:** stop every roadmap job on a refused identity and keep GitHub requests under an hourly budget ([#2354](#2354)) ([0f00e96](0f00e96)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The defect classifier counted AGENTS.md as a hardening surface for defect pull requests. Issue #1961 converted AGENTS.md into a router document, so domain lessons and guardrails belong in owning documents.
Closes #1979
Change:
openspec/changes/archive/2026-10-27-1979-defect-classifier-hardening-surfaces/