Skip to content

[Safe Outputs Conformance] USE-001: Standardize error codes in 7 safe-output helper modules - #77365

Merged
pelikhan merged 1 commit into
mainfrom
conformance/use-001-error-codes-08bca067a2cf8a8b
Nov 13, 2026
Merged

pelikhan merged 1 commit into
mainfrom
conformance/use-001-error-codes-08bca067a2cf8a8b

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Conformance Check Failure

Check ID: USE-001
Severity: LOW (7 findings, accumulated)
Category: Usability

Problem Description

scripts/check-safe-outputs-conformance.sh reported 7 modules that throw errors without a standardized error code (E###, ERR_*).

Affected Components

  • actions/setup/js/model_attribution.cjs — now prefixes thrown errors with ERR_SYSTEM
  • actions/setup/js/connector_content.cjs — exempted
  • actions/setup/js/connector_runtime.cjs — exempted
  • actions/setup/js/safe_outputs_mcp_arguments.cjs — exempted
  • actions/setup/js/skip_if_decision.cjs — exempted
  • actions/setup/js/work_queue_delivery_evidence.cjs — exempted
  • actions/setup/js/work_queue_deployment_control.cjs — exempted
  • scripts/check-safe-outputs-conformance.sh — USE-001 now honors @safe-outputs-exempt USE-001, mirroring the existing USE-003 mechanism

Remediation Implemented

  1. model_attribution.cjs: its 3 file I/O errors now use ERR_SYSTEM from error_codes.cjs (already shipped by setup.sh). No existing test matches on those messages.
  2. The other 6 modules are internal helpers whose errors are intentionally not catalog-coded, so each carries an @safe-outputs-exempt USE-001 annotation with its reason:
    • JSON-RPC numeric codes (safe_outputs_mcp_arguments)
    • stable machine-readable reason tokens (skip_if_decision, work_queue_*)
    • standalone connector runtime shipped to dev tooling without error_codes.cjs (connector_content, connector_runtime)
  3. Conformance script gained the exemption check.

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 without error_codes.cjs.

Validation

  • bash scripts/check-safe-outputs-conformance.sh: USE-001 now PASSES; Low failures 7 → 0; Critical/High 0.
  • All 7 modified modules load under node -e require(...).
  • Not run: the vitest suites. vitest is not installed in this sandbox (no node_modules) and npx could not download it (self-signed certificate error). grep found no tests asserting on the changed model_attribution messages; the connector_content tests use substring regexes and that file only gained a comment.
  • make fmt / make agent-report-progress were not run for the same reason (no toolchain access); changes are comment-only plus the 3 prefixed messages.

Not addressed

27 MEDIUM REQ-002 findings (spec sections missing for 27 safe-output types) remain; they require substantial spec authoring and are better handled separately.

References

  • Conformance Checker: scripts/check-safe-outputs-conformance.sh
  • Run ID: 43373463533

🤖 Generated with [Claude Code]((claude.com/redacted)

Generated by ✅ Daily Safe Outputs Conformance Checker · claude · routed: sonnet55 high · ~38 AIC · ⌖ ~2 AIC · ⊞ 5.8K · ◷

  • expires on Nov 13, 2026, 9:48 PM UTC-08:00

@pelikhan
pelikhan marked this pull request as ready for review November 13, 2026 06:26
Copilot AI adaptive review requested due to automatic review settings November 13, 2026 06:26
@pelikhan
pelikhan merged commit b9683fe into main Nov 13, 2026
14 checks passed
@pelikhan
pelikhan deleted the conformance/use-001-error-codes-08bca067a2cf8a8b branch November 13, 2026 06:26
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_no_action

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.

Generated from PR Specification Reviewer · gpt56 · ~1 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 1.6K · ◷

Generated by PR Specification Reviewer for #77365

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

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.

Generated from Ponytail Reviewer · routed: gpt61 medium · ~5 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 182 · ◷

Generated by Ponytail Reviewer for #77365

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

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.

Generated from Test Quality Sentinel · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 7.3K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

⚠️ PR Code Quality Reviewer failed to deliver outputs during code quality review.

PR Code Quality Reviewer

Outcome: reported_action

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.

Generated from PR Code Quality Reviewer · gpt56 · ~3 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 1.6K · ◷

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ 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: reported_no_action

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.

Generated from Design Decision Gate 🏗️ · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 8.6K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

Copy link
Copy Markdown
Contributor Author

🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills...

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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-001 annotations.
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)

@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v1.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants