Repository navigation
[Safe Outputs Conformance] USE-001: Standardize error codes in 7 safe-output helper modules - #77365
Conversation
|
✅ PR Specification Reviewer completed successfully! PR Specification 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.
|
|
✅ 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.
|
|
✅ Test Quality Sentinel completed test quality analysis. 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 ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. 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 is reviewing this pull request using Matt Pocock's engineering skills... |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the safe-output error-code conformance changes.
No open issues 🎉
What changed in this PR
This PR addresses USE-001 error-code conformance in gh-aw’s safe-output helpers by adding catalog codes to model-attribution errors and documenting exemptions where existing error formats are intentional.
Changes:
- Prefixes three model-attribution metadata errors with
ERR_SYSTEM. - Adds exemption comments to six helpers without changing their runtime behavior.
- Updates the conformance checker to honor
@safe-outputs-exempt USE-001annotations.
| File | Description |
|---|---|
scripts/check-safe-outputs-conformance.sh |
Recognizes documented USE-001 exemptions. |
actions/setup/js/work_queue_deployment_control.cjs |
Documents exemption for stable work-queue reason tokens. |
actions/setup/js/work_queue_delivery_evidence.cjs |
Documents exemption for stable work-queue reason tokens. |
actions/setup/js/skip_if_decision.cjs |
Documents exemption for machine-readable decision reason tokens. |
actions/setup/js/safe_outputs_mcp_arguments.cjs |
Documents exemption for JSON-RPC numeric error codes. |
actions/setup/js/model_attribution.cjs |
Imports ERR_SYSTEM and prefixes three metadata errors. |
actions/setup/js/connector_runtime.cjs |
Documents exemption for standalone connector runtime errors. |
actions/setup/js/connector_content.cjs |
Documents exemption for standalone connector validation errors. |
Review effort: Balanced (dynamic)
|
🎉 This pull request is included in a new release. Release: |
Conformance Check Failure
Check ID: USE-001
Severity: LOW (7 findings, accumulated)
Category: Usability
Problem Description
scripts/check-safe-outputs-conformance.shreported 7 modules that throw errors without a standardized error code (E###,ERR_*).Affected Components
actions/setup/js/model_attribution.cjs— now prefixes thrown errors withERR_SYSTEMactions/setup/js/connector_content.cjs— exemptedactions/setup/js/connector_runtime.cjs— exemptedactions/setup/js/safe_outputs_mcp_arguments.cjs— exemptedactions/setup/js/skip_if_decision.cjs— exemptedactions/setup/js/work_queue_delivery_evidence.cjs— exemptedactions/setup/js/work_queue_deployment_control.cjs— exemptedscripts/check-safe-outputs-conformance.sh— USE-001 now honors@safe-outputs-exempt USE-001, mirroring the existing USE-003 mechanismRemediation Implemented
model_attribution.cjs: its 3 file I/O errors now useERR_SYSTEMfromerror_codes.cjs(already shipped bysetup.sh). No existing test matches on those messages.@safe-outputs-exempt USE-001annotation with its reason:safe_outputs_mcp_arguments)skip_if_decision,work_queue_*)error_codes.cjs(connector_content,connector_runtime)Reviewers: the exemptions are a judgment call. If you would rather have these modules adopt
ERR_*prefixes, say so, but the work-queue tokens are matched by consumers and the connector modules ship withouterror_codes.cjs.Validation
bash scripts/check-safe-outputs-conformance.sh: USE-001 now PASSES; Low failures 7 → 0; Critical/High 0.node -e require(...).vitestis not installed in this sandbox (nonode_modules) andnpxcould not download it (self-signed certificate error).grepfound no tests asserting on the changedmodel_attributionmessages; theconnector_contenttests use substring regexes and that file only gained a comment.make fmt/make agent-report-progresswere not run for the same reason (no toolchain access); changes are comment-only plus the 3 prefixed messages.Not addressed
27 MEDIUM
REQ-002findings (spec sections missing for 27 safe-output types) remain; they require substantial spec authoring and are better handled separately.References
🤖 Generated with [Claude Code]((claude.com/redacted)