Skip to content

IMP-003: Move generateCustomJobToolDefinition to safe_outputs_config_generation.go#20080

Merged
pelikhan merged 2 commits intomainfrom
copilot/move-schema-generation-function
Mar 8, 2026
Merged

IMP-003: Move generateCustomJobToolDefinition to safe_outputs_config_generation.go#20080
pelikhan merged 2 commits intomainfrom
copilot/move-schema-generation-function

Conversation

Copy link
Contributor

Copilot AI commented Mar 8, 2026

The conformance check IMP-003 requires generateCustomJobToolDefinition to live in pkg/workflow/safe_outputs_config_generation.go, matching the architecture documented in safe_outputs_config.go. The function was instead defined in the large multi-purpose safe_outputs_generation.go, causing IMP-003 to fail.

Changes

  • New file: pkg/workflow/safe_outputs_config_generation.go — extracts generateCustomJobToolDefinition (MCP tool schema builder for custom safe-output jobs) into its own dedicated file as specified by the conformance checker and the existing architecture docs.
  • Removed the function and its section comment from safe_outputs_generation.go.

No functional changes — purely a file organization fix. The shared safeOutputsConfigLog logger (defined in safe_outputs_config.go) is accessible package-wide without changes.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…generation.go

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Move schema generation function to correct file IMP-003: Move generateCustomJobToolDefinition to safe_outputs_config_generation.go Mar 8, 2026
@pelikhan pelikhan marked this pull request as ready for review March 8, 2026 16:01
Copilot AI review requested due to automatic review settings March 8, 2026 16:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Reorganizes safe-outputs schema generation code to satisfy conformance check IMP-003 by relocating generateCustomJobToolDefinition into the file where the architecture documentation expects it.

Changes:

  • Moved generateCustomJobToolDefinition from safe_outputs_generation.go into a dedicated safe_outputs_config_generation.go.
  • Removed the old implementation and section header from safe_outputs_generation.go.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pkg/workflow/safe_outputs_generation.go Removes generateCustomJobToolDefinition from the large multipurpose generator file.
pkg/workflow/safe_outputs_config_generation.go Adds generateCustomJobToolDefinition in the architecture-specified location for custom safe-output job tool schema generation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@pelikhan pelikhan merged commit a4778b6 into main Mar 8, 2026
113 checks passed
@pelikhan pelikhan deleted the copilot/move-schema-generation-function branch March 8, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Safe Outputs Conformance] IMP-003: Schema generation function in wrong file — move to safe_outputs_config_generation.go

3 participants