Skip to content

[docs] Self-healing documentation fixes from issue analysis - 2026-05-15 #32229

@github-actions

Description

@github-actions

Self-Healing Documentation Fixes

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

Gaps Fixed

  • emoji frontmatter field missing from frontmatter-full.md — PR Add emoji frontmatter field #32200 added the emoji top-level field to the JSON schema and to frontmatter.md, but the auto-generated companion reference docs/src/content/docs/reference/frontmatter-full.md was not regenerated. Added the entry in the position the generator would have placed it (between description and source), matching the surrounding comment-wrapping style.
  • gh aw update --repo flag missing from docs/src/content/docs/setup/cli.md — PR Add gh aw update --repo support with isolated shallow checkout and target-repo PR flow #32213 added cross-repository targeting to gh aw update (isolated shallow checkout under .github/aw/updates/<sanitized-repo-id> and target-repo PR creation when combined with --create-pull-request), but the CLI reference was not updated. Added the new flag to the example block, added the target-repo execution note, and appended --repo/-r to the Options list.

Class of issue this matches: the gaps follow the same pattern as #31968 — schema/source change ships, but the canonical reference doc drifts.

Root Cause

DDUw's Step 2 ("Analyze Changes") only inspects the PR body to decide whether docs were updated. When a PR ships a user-facing surface change but its own diff does not modify the matching reference file, DDUw has no mechanism to detect that omission unless it independently audits the schema or CLI surface against the documented surface.

Specifically:

  1. frontmatter-full.md is generated by scripts/generate-schema-docs.js, so a schema change that adds a new top-level field requires regenerating that file. DDUw does not currently run or compare against the generator output.
  2. gh aw update --repo was added in Go source (pkg/cli/update_command.go) without a paired edit to docs/src/content/docs/setup/cli.md. DDUw scans documentation files but does not currently diff the CLI's --help surface against the **Options:** line in cli.md.

Also noted: DDUw's Step 3 instructs cat .github/instructions/documentation.instructions.md. That path does not exist in this repo — the documentation style guide actually lives at .github/skills/documentation/SKILL.md. Any DDUw run that depends on the cat output for style guidance is silently operating without it.

💡 DDUw Improvement Suggestions

DDUw Improvement Suggestions

Proposed changes to .github/workflows/daily-doc-updater.md:

  1. Add a schema/full-reference drift check (new sub-step in Step 4)

    After loading recent commits, list top-level property names in pkg/parser/schemas/main_workflow_schema.json and grep for each in docs/src/content/docs/reference/frontmatter-full.md. Any schema property missing from frontmatter-full.md is a confirmed gap that requires either regenerating the file (preferred — node scripts/generate-schema-docs.js) or adding the entry manually matching the generator's comment style. Treat this as the analogue of the existing artifact-constant check the Healer runs.

  2. Add a CLI surface drift check (new sub-step in Step 4)

    For each top-level subcommand under pkg/cli/*_command.go, parse the registered Cobra flags and confirm each appears in the **Options:** line of the corresponding section in docs/src/content/docs/setup/cli.md. A flag in source but not in cli.md is a confirmed CLI documentation gap.

  3. Fix the broken documentation guidelines path

    Update Step 3 in .github/workflows/daily-doc-updater.md:

    - cat .github/instructions/documentation.instructions.md
    + cat .github/skills/documentation/SKILL.md

    The current path does not exist and is silently being skipped on every run, which means DDUw is not actually loading the style guide it claims to follow.

  4. Strengthen the "Features Modified" sweep (Step 2)

    Currently Step 2 lists features to analyze but does not include an explicit instruction to confirm a paired documentation edit landed in the same PR. Add: "For each new flag, frontmatter field, or CLI command, after analyzing the PR, run a follow-up check: does the same PR's diff include an edit to the matching reference file (cli.md for CLI flags, frontmatter.md/frontmatter-full.md for frontmatter fields, etc.)? If not, treat the missing reference edit as a confirmed gap regardless of the PR body's claims."

These changes prevent the specific class of gap fixed here (schema/CLI surface ships in source, reference doc untouched) from recurring without adding heavy new scanning logic.

Related Issues

References:

Generated by 📝 Daily Documentation Healer · ● 37.1M ·

  • expires on May 18, 2026, 12:15 AM UTC

Note

This was originally intended as a pull request, but the git push operation failed.

Workflow Run: View run details and download bundle artifact

The bundle file is available in the agent artifact in the workflow run linked above.

To create a pull request with the changes:

# Download the artifact from the workflow run
gh run download 25892603434 -n agent -D /tmp/agent-25892603434

# Fetch the bundle into a temporary ref, then update the local branch
git fetch /tmp/agent-25892603434/aw-docs-self-healing-2026-05-15.bundle refs/heads/docs/self-healing-2026-05-15:refs/bundles/create-pr-docs-self-healing-2026-05-15-310cf3b5de99a40e-0ec90867
git update-ref refs/heads/docs/self-healing-2026-05-15-310cf3b5de99a40e refs/bundles/create-pr-docs-self-healing-2026-05-15-310cf3b5de99a40e-0ec90867
git checkout docs/self-healing-2026-05-15-310cf3b5de99a40e
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d refs/bundles/create-pr-docs-self-healing-2026-05-15-310cf3b5de99a40e-0ec90867

# Push the branch to origin
git push origin docs/self-healing-2026-05-15-310cf3b5de99a40e

# Create the pull request
gh pr create --title '[docs] Self-healing documentation fixes from issue analysis - 2026-05-15' --base main --head docs/self-healing-2026-05-15-310cf3b5de99a40e --repo github/gh-aw

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions