Skip to content

[Copilot Dreaming] Avoid formatting retries and remove impossible family-merge guidance - #451

Open
Copilot wants to merge 3 commits into
mainfrom
copilot/dream-curate-memories-20261201144040
Open

Copilot wants to merge 3 commits into
mainfrom
copilot/dream-curate-memories-20261201144040

Conversation

@Copilot

Copilot AI commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

🧠 How this helps Copilot

Copilot can spend extra lint runs on formatting errors that the existing formatter can fix first. The Hub guide gives a scoped formatting command before linting.

Copilot can be told to merge page families even when only one family exists or no permitted pair can be combined. Removing the unconditional count warning and limiting the merge instruction avoids directing agents toward regrouping without a valid target.

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 a3dda10.

copilot-dreamer[bot] added 3 commits December 1, 2026 14:40
Copilot repeated lint after formatting failures before running the existing formatter. Giving the scoped fixer before linting can avoid that extra check cycle.

Hub already defines Prettier, its authored-source formatting command and a separate read-only lint check.
https://github.com/github/replica/blob/a3dda1046b271c8008b7982555799c0338c7c906/hub/package.json#L21-L23

The development guide requires commands from hub/ through the devcontainer, which mounts that directory as the working tree.
https://github.com/github/replica/blob/a3dda1046b271c8008b7982555799c0338c7c906/hub/docs/development.md#L25-L31

The command is limited to changed Hub source. It does not replace lint or the final checks.
Copilot can be told that a single page's only family is too fine, inviting regrouping with no second family to combine. Removing the unconditional warning prevents that false diagnosis.

The Discover example contains one build page in one family and a separate authentication stub.
https://github.com/github/replica/blob/a3dda1046b271c8008b7982555799c0338c7c906/starters/minimal/.agents/skills/create-prototype-from-production/workflows/discover.md#L88-L112

Readers must load Discover, which owns the fingerprint comparison and count-based merge procedure; a second threshold summary adds another place to maintain its conditions.
https://github.com/github/replica/blob/a3dda1046b271c8008b7982555799c0338c7c906/starters/minimal/.agents/skills/create-prototype-from-production/SKILL.md#L43-L51

The row still requires ordered section-type comparison. Conditional merging remains in Discover, rather than a blanket family-count limit in this table.
Copilot can be sent into an impossible merge or risk combining structurally different pages just to satisfy a count. Requiring a second family and allowing unchanged families when no permitted pair exists gives that instruction a valid stopping point.

The shipped example has one build page in one family, so its family count exceeds half its build-page count without offering a pair to merge.
https://github.com/github/replica/blob/a3dda1046b271c8008b7982555799c0338c7c906/starters/minimal/.agents/skills/create-prototype-from-production/workflows/discover.md#L88-L112

Families are defined by ordered section types, not by content differences.
https://github.com/github/replica/blob/a3dda1046b271c8008b7982555799c0338c7c906/starters/minimal/.agents/skills/create-prototype-from-production/workflows/discover.md#L50-L57

The count threshold still triggers consideration of merges for multiple families, and only pairs differing by one optional section may merge before re-checking. Each family still needs exactly one representative.
https://github.com/github/replica/blob/a3dda1046b271c8008b7982555799c0338c7c906/starters/minimal/.agents/skills/create-prototype-from-production/scripts/check-ledger.mjs#L99-L123
@Copilot
Copilot AI requested review from a team and nshki as code owners December 1, 2026 14:40
Copilot AI adaptive review requested due to automatic review settings December 1, 2026 14:40

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

No active issues remain, and the documentation updates clearly scope family merging guidance and add the targeted Hub formatting command.

No open issues 🎉

What changed in this PR

This documentation-only PR refines Copilot guidance for production-site discovery and adds a targeted Hub formatting command so agents can format changed files before linting.

Changes:

  • Restricts family merging to cases with multiple families and a valid optional-section pairing.
  • Removes the unconditional family-count warning from the Minimal skill summary.
  • Documents the scoped Prettier command for Hub source formatting.
File Description
starters/​minimal/​.agents/​skills/​create-prototype-from-production/​workflows/​discover.md Clarifies when family merging is applicable and permits leaving families unchanged when no valid pair exists.
starters/​minimal/​.agents/​skills/​create-prototype-from-production/​SKILL.md Removes the unconditional family-count warning from the skill’s red-flag guidance.
hub/​docs/​testing-and-operations.md Adds the command for formatting changed Hub source before linting.

Review effort: Lite (adaptive)

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

Labels

None yet

2 participants