[docs] Self-healing documentation fixes from issue analysis - 2026-05-12#31604
Merged
pelikhan merged 1 commit intoMay 12, 2026
Merged
Conversation
…default Adds a glossary entry for the top-level `max-effective-tokens` frontmatter field introduced for AWF apiProxy enforcement, mirroring the existing `max-runs` pattern. Updates the `max-runs` entry to mention the default value of 100, set by PR #31484. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
pelikhan
approved these changes
May 12, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the documentation glossary to cover recently added/updated workflow frontmatter limit fields so the reference docs match current schema/runtime defaults.
Changes:
- Added a new glossary entry for top-level
max-effective-tokens, including default value and accepted formats. - Updated the existing
max-runsglossary entry to document the new default (100) and that GitHub Actions expressions are accepted.
Show a summary per file
| File | Description |
|---|---|
| docs/src/content/docs/reference/glossary.md | Adds/updates glossary entries for max-effective-tokens and max-runs to reflect current defaults and supported value formats. |
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: 1
|
|
||
| ### Max Effective Tokens (`max-effective-tokens`) | ||
|
|
||
| A top-level frontmatter field that caps the total effective-token (ET) budget the AWF proxy will spend within a single workflow run. Effective tokens are weighted by model multipliers and are the primary cost proxy for Copilot. Applies to all engines and maps to `apiProxy.maxEffectiveTokens` in the compiled lock file. Defaults to `25000000` when omitted. Accepts an integer or a GitHub Actions expression that resolves to an integer at runtime. Example: |
Contributor
Author
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /grill-with-docs — the appropriate skill for documentation-only changes.
Key Themes
- Both new/updated glossary entries accurately match the JSON schema definitions in
pkg/parser/schemas/main_workflow_schema.json - Terminology is consistent with existing glossary vocabulary (
effective tokens,AWF proxy,apiProxy.*, GitHub Actions expression) - The
max-effective-tokensentry mirrors the structure of the adjacentmax-runsentry — parallel phrasing, same format, appropriate cross-links
Positive Highlights
- ✅ Default values (
25000000/100) match the schema and PR #31484 - ✅ The
aw wrapcode block fencing matches the pattern used throughout the glossary - ✅ Cross-references to the Effective Tokens Specification and Cost Management pages are correct
- ✅ The DDUw Improvement Suggestions in the PR body are well-reasoned and actionable
Verdict
Changes are accurate, well-scoped, and consistent with the project's domain vocabulary. No issues found.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · ● 4.9M
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Self-Healing Documentation Fixes
This PR was automatically created by the Daily Documentation Healer workflow.
Gaps Fixed
Max Effective Tokens (max-effective-tokens)entry todocs/src/content/docs/reference/glossary.md. The field was added to the workflow schema (and AWFapiProxy.maxEffectiveTokensenforcement) by Refactorengine.max-runsto top-levelmax-runswith AWF enforcement #31418 / Set frontmatter defaults and add shared import/expression support for max limits #31484 but was only referenced in a single bullet insideengines.md. Cross-references point to the existing Effective Tokens Specification and Cost Management pages.Max Runs (max-runs)glossary entry to document the new default value (100) and accepted formats (integer or GitHub Actions expression). PR Set frontmatter defaults and add shared import/expression support for max limits #31484 set the default and broadened the schema to accept expressions, but the glossary still described the field without a default.Root Cause
DDUw's most recent run (PR #31491) explicitly evaluated #31418 but only verified
engines.mdandglossary.mdfor the renamedmax-runsfield — it did not check whether the companion fieldmax-effective-tokenshad analogous glossary coverage. PR #31484 (which set the new defaults ofmax-runs=100andmax-effective-tokens=25000000and added expression / shared-import support) merged at 12:03 UTC on 2026-05-11, after DDUw's run at 11:49 UTC, so DDUw could not have processed it in the same 24-hour window.💡 DDUw Improvement Suggestions
DDUw Improvement Suggestions
Sibling-field coverage check (Step 2 of
daily-doc-updater.md). When DDUw processes a PR that adds or renames a top-level frontmatter field, it should look at the JSON Schema diff (pkg/parser/schemas/main_workflow_schema.json) for all sibling properties touched in the same PR, not only the renamed field. Concretely: after analyzing Refactorengine.max-runsto top-levelmax-runswith AWF enforcement #31418, DDUw should have noticed the schema diff also touchedmax-effective-tokensblock alignment and confirmed it had glossary coverage equivalent tomax-runs.Suggested wording to add under Step 2. Analyze Changes:
Same-day late-merge re-scan. PR Set frontmatter defaults and add shared import/expression support for max limits #31484 merged 14 minutes after DDUw's run. DDUw's 24-hour scanning window starts from the run time, so any PR merging in the trailing window of the same day is missed by the current day's DDUw and not re-evaluated tomorrow if the next DDUw's window begins exactly 24h later. Two options:
frontmatter-full.mdregeneration verification. DDUw assumedfrontmatter-full.mdwould be "regenerated by build tooling" after the schema change. The healer verified the file does not yet include top-levelmax-runsormax-effective-tokenssections (onlymax-runs-per-windowunderuser-rate-limit). DDUw should explicitly check whetherscripts/generate-schema-docs.jshas been re-run after a schema change rather than assume.Suggested wording to add under Step 4. Identify Documentation Gaps:
Related Issues
--codespaceswas addressed by DDUw in [docs] Update documentation for features from 2026-05-11 #31491; items about CLI help text remain unaddressed but require code changes, not docs edits)engine.max-runsto top-levelmax-runswith AWF enforcement #31418 (max-runs refactor) and PR Set frontmatter defaults and add shared import/expression support for max limits #31484 (defaults + expression support)What Was Verified But Not Fixed
*ArtifactNameconstants inpkg/constants/are already documented indocs/src/content/docs/reference/artifacts.md✅max-effective-tokensglossary coverage.frontmatter-full.md: This file is auto-generated byscripts/generate-schema-docs.jsand would be best regenerated rather than hand-edited. Flagged in the DDUw Improvement Suggestions above instead of edited here.--helpstrings in cobra commands (code changes), not docs files, so out of scope for the healer.