Skip to content

Fix investigate-security protocol mismatch breaking CI#246

Merged
Alan-Jowett merged 2 commits intomicrosoft:mainfrom
Alan-Jowett:fix/investigate-security-protocol-mismatch
Apr 14, 2026
Merged

Fix investigate-security protocol mismatch breaking CI#246
Alan-Jowett merged 2 commits intomicrosoft:mainfrom
Alan-Jowett:fix/investigate-security-protocol-mismatch

Conversation

@Alan-Jowett
Copy link
Copy Markdown
Member

@Alan-Jowett Alan-Jowett commented Apr 14, 2026

Problem

CI is failing on both validate-manifest.py and validate-graph-integrity.py because the investigate-security template frontmatter contains an inline YAML comment that the lightweight parsers don't strip:

- reasoning/exhaustive-path-tracing  # optional — apply selectively to parser/decoder functions

The parsers treat the entire line (including the comment) as the protocol name, causing mismatches.

Fix

  1. templates/investigate-security.md — Removed the inline comment (the information is already documented in the template body at lines 93-94)
  2. tests/validate-manifest.py — Added inline comment stripping for multi-line list items
  3. tests/validate-graph-integrity.py — Same hardening

Validation

Both python tests/validate-manifest.py and python tests/validate-graph-integrity.py pass after this change.

Remove inline YAML comment from investigate-security.md frontmatter
that the lightweight YAML parsers were not stripping, causing
'exhaustive-path-tracing' to be parsed as
'exhaustive-path-tracing  # optional — apply selectively to
parser/decoder functions'.

Also harden both validate-manifest.py and validate-graph-integrity.py
to strip inline YAML comments from list items, preventing similar
issues in the future.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 14, 2026 16:36
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

Note

Copilot was unable to run its full agentic suite in this review.

Fixes CI failures caused by inline YAML comments in template frontmatter being interpreted as part of protocol names by lightweight frontmatter parsers.

Changes:

  • Removes the inline YAML comment from templates/investigate-security.md protocol list.
  • Adds inline-comment stripping for multi-line list items in tests/validate-manifest.py.
  • Applies the same hardening in tests/validate-graph-integrity.py.

Reviewed changes

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

File Description
templates/investigate-security.md Removes inline YAML comment that broke protocol-name matching in CI checks.
tests/validate-manifest.py Strips inline YAML comments from parsed list item values to prevent mismatches.
tests/validate-graph-integrity.py Same comment-stripping logic to harden template frontmatter parsing.

Comment thread tests/validate-manifest.py Outdated
Comment thread tests/validate-graph-integrity.py Outdated
Address PR review feedback: replace regex that treats any # as a
comment delimiter with re.split(r'\s+#', ...) which only strips #
when preceded by whitespace, matching YAML comment semantics.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Alan-Jowett Alan-Jowett merged commit 135c6ae into microsoft:main Apr 14, 2026
4 checks passed
@Alan-Jowett Alan-Jowett deleted the fix/investigate-security-protocol-mismatch branch April 14, 2026 20:06
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.

2 participants