Skip to content

[docs] Self-healing documentation fixes from issue analysis - 2026-05-18#32915

Merged
pelikhan merged 1 commit into
mainfrom
docs-healer-2026-05-18-406b179d88e7a38d
May 18, 2026
Merged

[docs] Self-healing documentation fixes from issue analysis - 2026-05-18#32915
pelikhan merged 1 commit into
mainfrom
docs-healer-2026-05-18-406b179d88e7a38d

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Self-Healing Documentation Fixes

This PR was automatically created by the Daily Documentation Healer workflow.

Gaps Fixed

  • Removed tools.serena example in blog postdocs/src/content/docs/blog/2026-02-05-how-workflows-work.md showed tools.serena (with mode: remote, version: latest) as a built-in MCP example. The schema marks tools.serena as REMOVED (x-removed: true) and PR Reject removed tools.serena in parser and align with schema #32909 made the parser reject it at compile time. Users copying the example would now hit a hard compile error directing them to import shared/mcp/serena.md instead. Replaced the entry with a valid tools.playwright example (mode: cli) so the three-tool illustration remains intact. The reference page docs/src/content/docs/reference/serena.md already documents the migration, so no further change was needed.

Root Cause

DDUw Step 2 ("Removed Features in Docs") scans for properties present in docs but absent from the schema. tools.serena is still present in the schema as a property — only with "x-removed": true and a REMOVED: description prefix. A simple property-exists check would not flag it. The scan needs to also flag any schema property whose description starts with REMOVED: or whose x-removed flag is true, regardless of whether the property name itself still appears in the schema.

Additionally, the gap sits in a blog post, and the existing scan focuses on docs/src/content/docs/reference/, setup/, and guides/. Blog posts (docs/src/content/docs/blog/) hold concrete code examples that can age out the same way reference examples do, so they should be in scope when the check is for invalid example syntax.

💡 DDUw Improvement Suggestions

DDUw Improvement Suggestions

Add a schema-removed property scan to .github/workflows/daily-doc-updater.md Step 2, alongside the existing Removed Features in Docs bullet:

Schema-removed properties in docs: Parse pkg/parser/schemas/main_workflow_schema.json for any property whose object contains "x-removed": true OR whose description starts with "REMOVED:". For each such property P, grep the entire docs/src/content/docs/ tree (including blog/) for code-fenced YAML/aw blocks containing P: under a tools: key. Any match is a documentation gap, even if the surrounding prose acknowledges the removal. The fix is either to replace the example with a still-valid property or to remove the offending block.

Concrete grep pattern for the workflow to run:

# 1. Extract removed top-level tool names from the schema
jq -r '.["$defs"].tools.properties | to_entries[] | select(.value["x-removed"] == true or (.value.description // "" | startswith("REMOVED:"))) | .key' pkg/parser/schemas/main_workflow_schema.json

# 2. For each NAME, search ALL doc directories (not just reference)
grep -rn "^[[:space:]]*<NAME>:" docs/src/content/docs/ --include='*.md' --include='*.mdx'

Also widen Step 1's documentation directory list: add docs/src/content/docs/blog/ to the directories scanned for invalid example code. Blog posts are historical commentary, but the code examples inside them must still compile against the current schema — otherwise the post becomes a trap for new readers who copy from it.

Other Closed-Issue Outcomes (No Action Needed)

For full transparency, the other documentation issues closed in the last 7 days were verified and required no additional fixes in this run:

Related Issues

No specific issue is closed by this PR — the gap was identified by direct cross-reference against pkg/parser/schemas/main_workflow_schema.json and merged PR #32909.

Generated by 📝 Daily Documentation Healer · ● 27.9M ·

  • expires on May 21, 2026, 12:14 AM UTC

…ywright

The 2026-02-05 'how workflows work' blog post showed tools.serena as a built-in MCP tool example, but the schema has marked tools.serena as REMOVED (with x-removed: true) and PR #32909 made the parser reject it at compile time. Users copying the example would now get a hard compile error.

Replaced with tools.playwright (mode: cli) — a still-valid built-in MCP tool — to keep the three-tool illustration intact. The mcp-servers prose mention of serena is unchanged because Serena remains accessible as an external server via shared/mcp/serena.md import.
@github-actions github-actions Bot added automation documentation Improvements or additions to documentation labels May 18, 2026
@pelikhan pelikhan marked this pull request as ready for review May 18, 2026 00:20
Copilot AI review requested due to automatic review settings May 18, 2026 00:20
@pelikhan pelikhan merged commit 324a11b into main May 18, 2026
4 checks passed
@pelikhan pelikhan deleted the docs-healer-2026-05-18-406b179d88e7a38d branch May 18, 2026 00:20
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 replaces an outdated tools.serena example in a blog post with a valid tools.playwright example. The serena built-in was removed (per PR #32909) and the parser now rejects it at compile time, so the blog example would have failed for users copying it. The surrounding prose (which still mentions serena as an extension via imports) is left intact.

Changes:

  • Replace the serena: {mode: remote, version: latest} block in the three-tool YAML illustration with playwright: {mode: cli} so the example continues to compile against the current schema.
Show a summary per file
File Description
docs/src/content/docs/blog/2026-02-05-how-workflows-work.md Replaces removed serena built-in MCP example with the still-valid playwright (CLI mode) example.

Copilot's findings

Tip

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

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

@github-actions github-actions Bot mentioned this pull request May 18, 2026
Copy link
Copy Markdown
Contributor Author

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · ● 3.7M

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants