Skip to content

fix(docs-review): address PR 8643 feedback and move to Sonnet 5.5 - #393

Merged
theletterf merged 11 commits into
mainfrom
docs-review-pr8643-feedback
Oct 6, 2026
Merged

theletterf merged 11 commits into
mainfrom
docs-review-pr8643-feedback

Conversation

@theletterf

@theletterf theletterf commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Wajiha ran the docs review on a non-writer's PR (elastic/docs-content#8643) and shared detailed feedback in elastic/docs-content-internal#1868. She liked that the review caught things a non-writer wouldn't know and offered fixes the author could apply. She also found three gaps. This PR fixes them, plus a few problems that came up while I tested the fixes.

The first gap was naming. The PR said "Elastic FedRAMP Cloud" and "Cloud connect", where the docs use "FedRAMP authorized Cloud offerings" and "Cloud Connect". The review didn't flag either, and its own suggestion block repeated both. The Language criterion now tells the agent to check each product, feature, and offering name against published page titles and bodies, including names in the text it suggests. Suggestions also keep the page's substitutions, such as {{ecloud}}, and repo-relative links.

The second gap was a false "verified" claim. The review said the PR's claim was accurate because a stale FedRAMP page agreed with it, and it compared AutoOps availability with a Cloud Connect claim. The Technical accuracy criterion now says to use published docs only to find conflicts, report them as Verify both, and check that both sources describe the same feature first.

The third gap was a linked issue in a private repo (elastic/docs-content#8645). I looked at giving the review a scoped Vault token, but in a public repo the agent's logs become downloadable run artifacts, so private issue text would leak. We dropped that idea. Instead, every issue linked in the description counts as a parent issue, and the agent says plainly when it can't read one.

Testing also turned up template drift: in one or two of seven runs, the agent dropped the ## Docs review summary heading or printed an empty section, although the prompt forbids both. I tried a shell checker for this, but review rounds kept finding new ways around it, so I removed it. The drift touches only the advisory summary. Rendering the summary from structured output, as elastic/libra does, is the better fix, and it's tracked in #394.

Smaller changes:

  • The review agent now runs on Claude Sonnet 5.5. The sonnet alias resolved to Sonnet 5 in Claude Code 2.1.273, so ANTHROPIC_DEFAULT_SONNET_MODEL pins it to anthropic/claude-sonnet-5.5. The price per token is the same.
  • elastic.github.io is allowed through the firewall. It hosts the docs-builder syntax reference. The agent tried to open it to confirm a directive-nesting claim, and the block added a warning to the public review.
  • The agent no longer asks authors to add type: frontmatter. Only about 3% of docs-content pages declare it.

I tested this in docs-actions-sandbox on replicas of three real PRs, each pinned to the commit the original review saw: #180 (docs-content#8643), #181 (#8367, Brandon's noise feedback), and #182 (#8617, a private source issue). Over seven runs, every rule passed at least once. On #180, the review flags both names, and its suggestion reads "Cloud Connect isn't available in Elastic FedRAMP authorized Cloud offerings." Results still vary between runs in which findings appear, so this is good evidence, not proof.

One gh-aw quirk worth knowing: the words "issues", "discussion", "push", or "pull_request" anywhere in on:, even in an input description, make the compiler drop the agent job's concurrency block. This PR doesn't touch on:.

Callers pick this up after the v1 tag moves. The registry entry for the workflow should be updated at the same time, because it still says Sonnet 5.

🤖 Generated with Claude Code

Related to #402

theletterf and others added 4 commits October 6, 2026 11:06
When a public-repo PR links an issue in a private repository, the review
cannot read it and left the satisfaction check unclear
(elastic/docs-content#8645). Tell the agent to name the issue URL and say
that it could not read it, instead of guessing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Feedback on elastic/docs-content#8643 showed two gaps:

- The review missed nonstandard names ("Elastic FedRAMP Cloud",
  "Cloud connect") and repeated them in its own suggestion block. Check
  each product, feature, and offering name, including suggested text,
  against published page titles and bodies.
- The review called a claim accurate because a stale published page
  agreed with it, and compared AutoOps availability with a Cloud Connect
  claim. Use published docs only to find conflicts, report them as
  `Verify both`, and check that both sources describe the same feature.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The `sonnet` alias resolved to anthropic/claude-sonnet-5 in Claude Code
2.1.273 (run elastic/docs-content 37031170383). Remap the alias to
anthropic/claude-sonnet-5.5 on OpenRouter, the same pattern the triage
workflow uses for Haiku. Same per-token price.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
In the sandbox replica of elastic/docs-content#8643, the review fixed
the names but wrote "Elastic Cloud" instead of the page's {{ecloud}}
substitution and kept a full elastic.co URL for an internal page.
Tell the agent to keep both conventions in replacement text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@theletterf theletterf self-assigned this Oct 6, 2026
@theletterf theletterf added the enhancement New feature or request label Oct 6, 2026
@theletterf
theletterf marked this pull request as ready for review October 6, 2026 09:32
@theletterf
theletterf requested a review from a team as a code owner October 6, 2026 09:32
@theletterf
theletterf requested a review from reakaleek October 6, 2026 09:32

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No actionable issues found in this change set.


What is this? | From workflow: PR Review

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

theletterf and others added 3 commits October 6, 2026 11:40
…ests

Sandbox replicas of elastic/docs-content#8617 and #8367 showed two gaps:

- The PR description cited a private issue as its source. The review
  treated it as not a parent issue and dropped Issue satisfaction
  instead of saying it could not read it. Treat every linked issue as a
  parent issue.
- The review asked to add `type:` frontmatter on two pages. Few pages
  declare it, so report it only when an existing value is wrong.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
….github.io

In a sandbox replica of elastic/docs-content#8617, the review dropped the
"## Docs review summary" heading and filled Review coverage with search
narratives, although the prompt already forbids both. Prompt rules alone
do not hold the template reliably.

Add a setup step that writes check-review-body.sh. The agent writes its
body to a file, runs the checker, fixes each reported error, and posts the
file only after the checker prints OK. The checker enforces the heading,
the allowed sections and their order, the three coverage bullets, and no
"Not applicable". It accepts the one-line <details> form and bold labels.
Tested on the five sandbox bodies: four pass, the broken one fails.

Also allow elastic.github.io, which hosts the docs-builder syntax
reference. The firewall blocked it in the same run, so the agent could
not confirm a directive-nesting claim, and gh-aw added a warning to the
review.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t issues

Sandbox re-runs showed two gaps:

- The checker passed "### Follow-up outside this PR" followed only by
  "None.". Flag a section whose only content says there is nothing to
  report, so the agent omits it.
- The review treated a linked pull request as a parent issue after the
  rule change. Say that pull request links are context only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@theletterf theletterf changed the title fix(docs-review): check product names, never certify claims, flag unreadable issues fix(docs-review): address PR 8643 feedback, check the summary template, move to Sonnet 5.5 Oct 6, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Requesting changes: the new review-body checker currently allows malformed section content to pass (empty required section content and emphasized placeholder-only content). Please tighten the section-content validation so these invalid summaries are rejected before posting.


What is this? | From workflow: PR Review

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

Comment thread .github/workflows/gh-aw-docs-review.md Resolved
Comment thread .github/workflows/gh-aw-docs-review.md Resolved
Review feedback on #393: the checker passed a section heading with no
content, and placeholders wrapped in Markdown emphasis such as
`- **None**` or `_N/A_`. Flag empty sections and strip `*` and `_` from
both ends before matching placeholders.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Requesting changes: the review-body checker still accepts multi-line placeholder-only section content (for example, an Action required section containing only None/nothing to report bullets). Please tighten section validation so placeholder-only sections are rejected regardless of line count.


What is this? | From workflow: PR Review

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

Comment thread .github/workflows/gh-aw-docs-review.md Resolved
Review feedback on #393: a section with several placeholder lines, such
as `- None` and `- nothing to report`, passed because the checker only
looked at one-line sections. Count placeholder lines and reject the
section when every content line is a placeholder.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Requesting changes: the review-body checker still allows forbidden placeholder text when Not applicable appears with different casing (for example not applicable). Please close this bypass so malformed summaries are reliably rejected before posting.


What is this? | From workflow: PR Review

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

Comment thread .github/workflows/gh-aw-docs-review.md Resolved
theletterf and others added 2 commits October 6, 2026 15:34
Review feedback on #393: the checker matched only "Not applicable" with
that exact casing. Treat a "not applicable" line as a placeholder in the
normalized, lowercased check instead. This also stops rejecting prose
such as "the setting is not applicable to ECE", which the old substring
match would have flagged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The checker caught real template drift in one or two of seven sandbox
runs, but four review rounds found four more ways around it, none seen
in a real run. Each fix added rules for inputs the agent never produced,
and the checker drew review attention away from the feedback this PR
addresses. Template drift touches only the advisory summary.

Remove the setup step and the prompt instructions. Keep the
elastic.github.io network rule and the rule that pull request links are
not parent issues. A structured summary rendered by code, as in
elastic/libra, is the more complete fix and is tracked separately.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Requesting changes: the new review-body checker still has a reproducible placeholder bypass (1. None) that allows malformed placeholder-only sections to validate as OK. Please close that normalization gap before merge.


What is this? | From workflow: PR Review

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

Comment thread .github/workflows/gh-aw-docs-review.md Resolved
@theletterf theletterf changed the title fix(docs-review): address PR 8643 feedback, check the summary template, move to Sonnet 5.5 fix(docs-review): address PR 8643 feedback and move to Sonnet 5.5 Oct 6, 2026
@theletterf

Copy link
Copy Markdown
Member Author

I removed the review body checker in e36bdb9. Each review round found another valid way around it, but none of those came from a real run, so it was patching the wrong layer. The template drift it targeted affects only the advisory summary. The structured-output fix is tracked in #394. The checker findings from the PR Review bot no longer apply to this diff.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No new actionable issues found; this update is ready to merge.


What is this? | From workflow: PR Review

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@theletterf
theletterf merged commit e1608f9 into main Oct 6, 2026
11 checks passed
@theletterf
theletterf deleted the docs-review-pr8643-feedback branch October 6, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants