Skip to content

fix(docs): hide pr-review signal in the manual publishing snippet too - #687

Merged
hongyi-chen merged 4 commits into
mainfrom
fix/hide-review-signal-manual-publish-path
Sep 8, 2026
Merged

hongyi-chen merged 4 commits into
mainfrom
fix/hide-review-signal-manual-publish-path

Conversation

@warp-factories

@warp-factories warp-factories Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #686. That PR hid the [SIGNAL:pr-review] record behind an HTML comment in publish_review_signal.py (the automated agent-docs-review.yml path), but left the manual/interactive publishing snippet documented in review-docs-pr/SKILL.md ("Publishing a GitHub review") rendering the same record under a visible ## Review signal heading. Any review published through that documented manual path (i.e. not through the GitHub Actions workflow) still leaks the machine-readable signal into GitHub's rendered PR body — the exact behavior #686 set out to fix.

Linear: QUALITY-2013

Changes

  • Wraps the [SIGNAL:pr-review] record in the manual publishing snippet in an HTML comment and removes its visible ## Review signal heading, matching publish_review_signal.py.
  • Adds a regression test (review-docs-pr/test_publishing_snippet.py) that extracts the documented snippet from SKILL.md and runs it against a stub, confirming the signal is hidden and still parseable. Verified this test fails against the pre-fix snippet and passes after the fix.
  • Wires the new test into CI (docs-technical-references job).

Validation

  • python3 .agents/skills/review-docs-pr/test_publishing_snippet.py — passed (3 tests).
  • python3 .agents/skills/doc_quality_policy/test_verify_review_signal.py — passed (14 tests).
  • python3 .agents/skills/doc_quality_policy/test_publish_review_signal.py — passed (4 tests).
  • Full doc_quality_policy test suite — passed.
  • python3 .agents/skills/style_lint/style_lint.py --changed — no issues.

PR #686 hid the [SIGNAL:pr-review] record behind an HTML comment in
publish_review_signal.py (the automated agent-docs-review.yml path) but
left the manual/interactive publishing snippet documented in
review-docs-pr/SKILL.md rendering the same record under a visible
"## Review signal" heading. A review published via that documented path
(i.e. not through the GitHub Actions workflow) still leaked the
machine-readable signal into GitHub's rendered PR body.

Wrap the signal in an HTML comment in the documented snippet too, matching
publish_review_signal.py's format, and add a regression test that extracts
the documented snippet and runs it to guard against the two paths drifting
out of sync again.
@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Sep 8, 2026 5:32am UTC

Request Review

@cla-bot cla-bot Bot added the cla-signed label Sep 8, 2026
@hongyi-chen
hongyi-chen enabled auto-merge (squash) September 8, 2026 05:18
@warp-for-oss

warp-for-oss Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

@hongyi-chen

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /warp-agent-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@warp-for-oss warp-for-oss Bot 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.

Overview

This PR hides the manual docs-review signal behind an HTML comment, adds a regression test that executes the documented publishing snippet, and wires that test into CI.

Concerns

  • No blocking concerns found. The changed snippet matches the automated hidden-signal format, the regression test exercises the manual publishing path, and the security pass did not identify a new exposure.
  • No approved or repository spec context was available for implementation drift checks.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /warp-agent-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@hongyi-chen
hongyi-chen merged commit 34bb4d2 into main Sep 8, 2026
11 of 12 checks passed
@hongyi-chen
hongyi-chen deleted the fix/hide-review-signal-manual-publish-path branch September 8, 2026 05:30
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.

1 participant