Skip to content

[Safe Outputs Conformance] IMP-003: Dynamic schema generation function missing in schema validation #20703

@github-actions

Description

@github-actions

Conformance Check Failure

Check ID: IMP-003
Severity: MEDIUM
Category: Implementation

Problem Description

The conformance checker detected that the dynamic schema generation function referenced in the Safe Outputs specification is missing from the implementation. Schema validation consistency (IMP-003) requires that all handler input/output schemas be generated or validated through a centralized dynamic schema generation function, ensuring uniformity and preventing schema drift across handlers.

Affected Components

  • Files: actions/setup/js/ — handler files that perform schema validation
  • Specification Reference: docs/src/content/docs/reference/safe-outputs-specification.md (IMP-003 section)

Current Behavior

The codebase does not contain a generateSchema (or equivalent dynamic schema generation) function that the specification expects all handlers to use for producing or validating their input/output schemas at runtime.

Expected Behavior

Per IMP-003 of the Safe Outputs specification, there SHOULD be a centralized generateSchema(config) function (or equivalent) that:

  1. Accepts a handler configuration object.
  2. Returns a validated JSON schema describing the handler's inputs and outputs.
  3. Is used consistently by all handlers to ensure schema uniformity.

Remediation Steps

This task can be assigned to a Copilot coding agent with the following steps:

  1. Review the IMP-003 section in docs/src/content/docs/reference/safe-outputs-specification.md for the exact interface contract.
  2. Create (or expose) a generateSchema(config) function in a shared utility module (e.g., actions/setup/js/schema-utils.cjs).
  3. Update each handler to call generateSchema when producing or validating its schema, replacing any ad-hoc inline schema objects.
  4. Add unit tests for generateSchema covering edge cases (missing fields, unknown types, etc.).
  5. Confirm the conformance checker's IMP-003 pattern matches the new function name/export.

Verification

After remediation, verify the fix by running:

bash scripts/check-safe-outputs-conformance.sh

The check IMP-003 should pass without errors.

References

  • Safe Outputs Specification: docs/src/content/docs/reference/safe-outputs-specification.md
  • Conformance Checker: scripts/check-safe-outputs-conformance.sh
  • Run ID: §23014110791
  • Date: 2026-03-12

Generated by Daily Safe Outputs Conformance Checker ·

  • expires on Mar 13, 2026, 5:08 PM UTC

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions