Repository navigation
[Copilot Dreaming] Avoid misleading validation advice and remove repeated commands - #16839
Merged
Merged
Conversation
added 11 commits
November 19, 2026 03:00
Maintainers otherwise have two copies of the same unit-test selection to keep aligned. The Test Structure section already gives this reader both aliases and the no-build condition, so removing the quick-start copy avoids that upkeep without removing the recipe. https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/AGENTS.md#L222-L226
Maintainers otherwise have to synchronize another copy of the unit-test command for the same reader. The Test Structure entry already provides make test-unit, its alias and the no-build prerequisite, so this extra copy adds no selection advice. https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/AGENTS.md#L222-L226
… absent linter Copilot could mistake a successful lint target for execution of golangci-lint even when that executable is absent. Naming its availability condition makes the quick-start coverage claim match the target's explicit skip branch; vet and gofmt checking still run. https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/Makefile#L30-L46
Maintainers otherwise have a shorter second completion mandate to keep synchronized with its full checklist. That same reader already receives the mandatory command, stages, failure recovery and success gate in the checklist, so removing this copy avoids parallel upkeep. The before-completion prohibition on declaring success without the gate remains there. https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/AGENTS.md#L245-L271
Copilot could copy an ordinary-error assertion that conflicts with the guide's own prescribed error check. Using NoError makes the example agree with that rule; the separate typed-pointer Nil exception is unaffected. https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/AGENTS.md#L154-L166 https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/AGENTS.md#L181-L192
Copilot could infer that the third-party linter executed from the detailed coverage description even though the target can explicitly skip it. The availability condition keeps this entry accurate without requiring installation on every run. https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/Makefile#L30-L46
…mmand Maintainers otherwise have two whole-codebase linter recipes for the same configuration to synchronize. The ordinary manual invocation already enables testifylint through the checked-in configuration, so the extra command adds no check or scope; the distinct file-scoped invocation remains. https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/AGENTS.md#L200-L212 https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/.golangci.yml#L8-L23
Maintainers otherwise have an integration-command copy that omits the automatic-build condition already given to the same reader in Quick Start. Removing the shorter copy avoids that divergence risk; the complete command and build condition remain available there. https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/AGENTS.md#L11-L12 https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/Makefile#L74-L82
Maintainers otherwise have two descriptions of the same all-tests selection and unconditional build to keep aligned. Quick Start already supplies the exact command, both test categories and the build prerequisite for this audience, so the second description adds upkeep without a different action. https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/AGENTS.md#L11-L12 https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/Makefile#L55-L58
Copilot could attribute a separate formatting check to the completion target's lint stage and miss its optional third-party linter. The target formats earlier, then runs vet and the available linter, so this stage description makes those responsibilities explicit without changing the validation duty. https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/Makefile#L101-L125
Copilot could read a successful completion target as proof that Rust guard tests executed even when cargo was absent. The downstream target explicitly skips in that case, so naming the prerequisite prevents that coverage assumption while preserving the mandatory aggregate and existing integration caveat. https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/Makefile#L63-L72 https://github.com/github/gh-aw-mcpg/blob/2192fc666ca984f76c4bfe0544dc04eefa506301/Makefile#L127-L133
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The changes are confined to clarifying and consolidating project guidance and correcting the documented Go error assertion, with no outstanding review concerns identified.
No open issues 🎉
What changed in this PR
Updates AGENTS.md to remove duplicated command guidance, clarify optional tooling behavior, and align the error assertion example with the guide’s recommendations.
Changes:
- Removes redundant test, lint, and completion-command descriptions.
- Clarifies that
golangci-lintand Rust tests run only when the corresponding tools are available. - Replaces
assert.Nilwithassert.NoErrorfor ordinary Go errors.
| File | Description |
|---|---|
| AGENTS.md | Consolidates testing and completion guidance, documents optional lint and Rust tooling behavior, and corrects the error assertion example. |
Review effort: Lite (adaptive)
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.
🧠 How this helps Copilot
Repeated test commands and completion requirements give maintainers extra copies to keep aligned. Removing redundant copies reduces that upkeep while keeping complete recipes available, including the unit-test aliases, automatic integration build, all-tests build prerequisite, and mandatory completion checklist.
Copilot could mistake a successful Make target for proof that an unavailable linter or Rust test runner executed, or attribute a separate formatting check to the wrong stage. Naming the actual lint actions and optional-tool prerequisites makes those coverage descriptions accurate.
Copilot could also copy an ordinary-error assertion that conflicts with the guide's own error-checking advice. Using
NoErrorin that example avoids the conflicting recommendation without changing the separate typed-pointer nil-check exception.Review commit by commit for each change's rationale and evidence.
Note
Copilot Dreaming curates this repository's Copilot instructions and skills in the background, proposing updates to help agents work here. Learn more about Copilot Dreaming.
Automated details
Source:
curate-memoriesDream, analyzingmainat2192fc6.Discarded guidance: A direct-Cargo rewrite and runtime test-skip message change were withheld. The existing build examples and diagnostic remain unchanged: the observed recovery depended on host compiler selection, and the runtime diagnostic is outside instruction/skill publication scope.