Skip to content

[Copilot Dreaming] Avoid test discovery detours and preserve supported styling - #353

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

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

Conversation

@Copilot

Copilot AI commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

🧠 How this helps Copilot

Package-import errors can stop Brand Check unit tests before they provide useful feedback. An explicit recovery route helps Copilot reach those tests without repeated package-path guessing.

CoreAI's cleanup and final spacing check can contradict their own exceptions, leading Copilot to remove supported responsive typography or replace permitted large spacing. Keeping the exceptions at those decisions avoids unnecessary styling changes.

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 71a3f1a.

copilot-dreamer[bot] added 3 commits November 24, 2026 14:36
Package-import errors can prevent unit-test feedback even though the tests need only a supported Python. Giving Copilot the import-name alias and discovery directory avoids repeated package-path guessing while retaining the installed test workflow and its conditional integration check.
https://github.com/github/replica/blob/71a3f1a5d9394f709ddef8acd025569eb59cd019/packages/learning/environments/brand-check/README.md#L29-L43

The package explicitly maps replica_brand_check to the environment directory and loads OpenEnv exports only on first use, which supports testing the uninstalled source through that alias.
https://github.com/github/replica/blob/71a3f1a5d9394f709ddef8acd025569eb59cd019/packages/learning/environments/brand-check/pyproject.toml#L11-L19
https://github.com/github/replica/blob/71a3f1a5d9394f709ddef8acd025569eb59cd019/packages/learning/environments/brand-check/__init__.py#L3-L23
A blanket text-property cleanup can remove container-based heading styles that the same skill requires preserving. Keeping that exception at the cleanup decision prevents the conflicting instruction from stripping responsive typography; ordinary text styling still belongs in the Text component.
https://github.com/github/replica/blob/71a3f1a5d9394f709ddef8acd025569eb59cd019/starters/coreai/.agents/skills/css-styling/SKILL.md#L90-L100

The home heading already uses a container-dependent font size, so this exception protects an existing supported use.
https://github.com/github/replica/blob/71a3f1a5d9394f709ddef8acd025569eb59cd019/starters/coreai/app/routes/home.module.css#L47-L51
…lues

The spacing checklist can reject larger pixel values that the detailed rule permits. Putting that exception at the final check avoids unnecessary substitutions and gives contributors one consistent criterion; the small-spacing token requirement still applies.
https://github.com/github/replica/blob/71a3f1a5d9394f709ddef8acd025569eb59cd019/starters/coreai/.agents/skills/css-styling/SKILL.md#L186-L203

The home layout already combines larger pixel spacing with token-based adjustments at narrower widths.
https://github.com/github/replica/blob/71a3f1a5d9394f709ddef8acd025569eb59cd019/starters/coreai/app/routes/home.module.css#L6-L19
@Copilot
Copilot AI requested review from a team and nshki as code owners November 24, 2026 14:37
Copilot AI adaptive review requested due to automatic review settings November 24, 2026 14:37

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.

🟡 Changes recommended

The documentation’s recovery instructions are ambiguous and would cause the stated -s tests command to fail from the referenced directory.

1 open issue
What changed in this PR

This PR updates Copilot guidance for CoreAI styling and documents a recovery path for Brand Check tests when package imports fail.

Changes:

  • Preserve responsive typography inside container queries.
  • Clarify spacing-token requirements and allow larger hardcoded spacing when necessary.
  • Add package-symlink and PYTHONPATH guidance for rerunning Brand Check tests.
File Description
starters/​coreai/​.agents/​skills/​css-styling/​SKILL.md Refines CSS guidance to preserve supported responsive typography and larger spacing exceptions.
packages/​learning/​environments/​brand-check/​README.md Adds package-import recovery guidance for rerunning Brand Check unit tests.

Review effort: Lite (adaptive)

.venv/bin/python -m unittest discover -s tests -t .
```

To rerun Brand Check unit tests after package-import errors, use a supported Python and a `PYTHONPATH` parent with `replica_brand_check` symlinked to the environment directory, then run `<python> -m unittest discover -s tests -t .` from that directory.
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.

2 participants