Repository navigation
[dead-code] chore: remove dead functions — 2 functions removed - #74148
Conversation
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Protected files were modified in this pull request and require manual scrutiny before merge.
Please verify that each protected-file change is intentional, policy-compliant, and safe:
- Protected files:
README.md
To allow intentional changes to specific files or folders in future runs, configure safe-outputs.create-pull-request.protected-files.exclude in the workflow Markdown frontmatter. For example, this allows .changeset/* by excluding the folder:
safe-outputs:
create-pull-request:
protected-files:
policy: request-review
exclude:
- .changeset/Keep your existing policy and exclusions. Use folder prefixes, not glob patterns; .changeset/ also allows subfolders. Other protected files still require review, and allowed-files, if configured, must also permit these paths. Run gh aw compile after updating the workflow. This configuration change applies to future runs; review this pull request separately.
Threat detection produced a warning for this pull request output.
These changes need to be scrutinized before merge and only merged after a careful manual review.
- Detection reason:
agent_failure - Review workflow run logs: https://github.com/github/gh-aw/actions/runs/41460294115
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer failed during the skills-based review. Warning threat detection engine error What happenedThe threat detection engine failed to produce results. Review the workflow run logs for details.
|
|
✅ Test Quality Sentinel completed test quality analysis. Warning threat detection engine error What happenedThe threat detection engine failed to produce results. Review the workflow run logs for details. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review. Warning threat detection engine error What happenedThe threat detection engine failed to produce results. Review the workflow run logs for details.
|
There was a problem hiding this comment.
🟡 Changes recommended
The test deletions remove coverage for still-active legacy verdict parsing, duplicate acceptance, conflict rejection, and required-field validation.
1 open issue
What changed in this PR
Removes two unused helpers from gh-aw’s threat-detection auditing and npm engine-installation code, with corresponding test and documentation updates.
Changes:
- Delete the verdict lookup wrapper and no-cooldown installation helper.
- Migrate remaining audit assertions to
readThreatDetectionEvidenceand remove associated tests. - Remove the deleted installation helper from the API appendix.
| File | Description |
|---|---|
pkg/workflow/README.md |
Remove the obsolete helper’s API entry. |
pkg/workflow/nodejs.go |
Delete the no-cooldown installation wrapper. |
pkg/workflow/engine_helpers_test.go |
Remove the wrapper’s test and unused import. |
pkg/cli/audit_threat_detection.go |
Delete the unused verdict lookup wrapper. |
pkg/cli/audit_threat_detection_test.go |
Remove three verdict tests and migrate one assertion. |
pkg/cli/audit_threat_detection_session_test.go |
Migrate verdict assertions to the evidence reader. |
Review effort: Max (auto)
| assert.True(t, verdict.PromptInjection) | ||
| } | ||
|
|
||
| func TestGenerateThreatDetectionFindingsUsesUsageExecutionEvidence(t *testing.T) { |
|
🎉 This pull request is included in a new release. Release: |

Warning
threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.
What happened
The threat detection engine failed to produce results.
Review the workflow run logs for details.
Caution
Protected files were modified in this change.
This pull request is in
request-reviewmode and requires explicit human scrutiny before merge.Protected files:
README.mdAllow intentional protected-file changes
If this workflow is intended to modify these files, add specific filenames or folder prefixes to
safe-outputs.create-pull-request.protected-files.excludein the workflow Markdown frontmatter. For example, to allow.changeset/*, exclude the folder using.changeset/:Keep your existing policy and exclusions. Folder exclusions use path prefixes, not glob patterns, and allow all files beneath that folder, including subfolders. Other protected files still require review. If
allowed-filesis configured, these paths must also match it. Rungh aw compileafter updating the workflow.Functions Removed
findThreatDetectionVerdictpkg/cli/audit_threat_detection.goBuildStandardNpmEngineInstallStepsNoCooldownpkg/workflow/nodejs.goTests Removed
TestFindThreatDetectionVerdictFromLegacyLog,TestFindThreatDetectionVerdictRejectsMalformedAndConflictingResults,TestFindThreatDetectionVerdictAcceptsDuplicateResults(other tests that called the removed function now callreadThreatDetectionEvidencedirectly)TestBuildStandardNpmEngineInstallStepsNoCooldownpkg/workflow/README.mdtable row.Verification
go build ./...go vet ./...go vet -tags=integration ./...make fmt(gofmtclean; the make target failed becauseprettieris not installed in this environment)https://github.com/github/gh-aw/actions/runs/41460294115