Skip to content

Remove vestigial applyTo from parser validFields allowlist#36309

Merged
pelikhan merged 2 commits into
mainfrom
copilot/deep-report-quick-win-reconcile-applyto
Jun 1, 2026
Merged

Remove vestigial applyTo from parser validFields allowlist#36309
pelikhan merged 2 commits into
mainfrom
copilot/deep-report-quick-win-reconcile-applyto

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 1, 2026

applyTo was silently accepted by the parser's validFields allowlist but absent from the JSON schema and undocumented — any workflow with applyTo: would pass parser validation without ever being schema-validated.

Changes

  • pkg/parser/include_processor.go — Remove "applyTo": true from collectUnexpectedIncludedFrontmatterFields. applyTo is vestigial: it was previously in the "silently ignored" list, co-promoted with description to validFields, but unlike description it was never added to the schema. Removing it means any workflow using applyTo: will now get a proper unknown-field validation error.

  • pkg/parser/schema_utilities_test.go — Remove two test cases ("frontmatter with applyTo - no longer filtered") that documented the incomplete promotion transition rather than meaningful behavior.

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix inconsistency of applyTo between parser allowlist and schema Remove vestigial applyTo from parser validFields allowlist Jun 1, 2026
Copilot AI requested a review from gh-aw-bot June 1, 2026 19:13
@pelikhan pelikhan marked this pull request as ready for review June 1, 2026 19:31
Copilot AI review requested due to automatic review settings June 1, 2026 19:31
@pelikhan pelikhan merged commit 5a74ace into main Jun 1, 2026
@pelikhan pelikhan deleted the copilot/deep-report-quick-win-reconcile-applyto branch June 1, 2026 19:31
Copy link
Copy Markdown
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

This PR tightens parser validation by removing the vestigial applyTo key from the included-frontmatter “valid fields” allowlist, so applyTo is no longer silently treated as an acceptable frontmatter field.

Changes:

  • Removed applyTo from the allowlist used when collecting “unexpected” included-frontmatter fields.
  • Deleted now-obsolete unit test cases that asserted applyTo was not filtered.
Show a summary per file
File Description
pkg/parser/include_processor.go Removes applyTo from the set of included-frontmatter fields treated as “valid” for unexpected-field reporting.
pkg/parser/schema_utilities_test.go Removes test cases that covered applyTo behavior that is no longer intended/supported.

Copilot's findings

Tip

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

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

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.

[deep-report] [quick-win] Reconcile applyTo between parser allowlist and schema/docs

4 participants