Skip to content

[Copilot Dreaming] Avoid misleading validation advice and remove repeated commands - #16839

Merged
lpcox merged 11 commits into
mainfrom
copilot/dream-curate-memories-20261119030058
Nov 19, 2026
Merged

lpcox merged 11 commits into
mainfrom
copilot/dream-curate-memories-20261119030058

Conversation

@Copilot

Copilot AI commented Nov 19, 2026

Copy link
Copy Markdown

🧠 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 NoError in 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-memories Dream, analyzing main at 2192fc6.

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.

copilot-dreamer[bot] 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 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
Copilot AI adaptive review requested due to automatic review settings November 19, 2026 03:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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-lint and Rust tests run only when the corresponding tools are available.
  • Replaces assert.Nil with assert.NoError for 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)

@lpcox
lpcox merged commit bbe9868 into main Nov 19, 2026
36 checks passed
@lpcox
lpcox deleted the copilot/dream-curate-memories-20261119030058 branch November 19, 2026 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants