-
Notifications
You must be signed in to change notification settings - Fork 228
[BUG] Regression instruction deduplication suppresses Codex AGENTS.md when .github/instructions exists #1678
Copy link
Copy link
Open
Labels
area/cliCLI command surface, flags, help text (cross-cutting).CLI command surface, flags, help text (cross-cutting).area/docs-sitedocs/src/content (Starlight), README, doc generation.docs/src/content (Starlight), README, doc generation.priority/highShips in current or next milestoneShips in current or next milestonestatus/acceptedDirection approved, safe to start work.Direction approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).Initial agentic triage complete; pending maintainer ratification (silence = approval).theme/portabilityOne manifest, every target. Multi-target deploy, marketplace, packaging, install.One manifest, every target. Multi-target deploy, marketplace, packaging, install.type/bugSomething does not work as documented.Something does not work as documented.
Metadata
Metadata
Assignees
Labels
area/cliCLI command surface, flags, help text (cross-cutting).CLI command surface, flags, help text (cross-cutting).area/docs-sitedocs/src/content (Starlight), README, doc generation.docs/src/content (Starlight), README, doc generation.priority/highShips in current or next milestoneShips in current or next milestonestatus/acceptedDirection approved, safe to start work.Direction approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).Initial agentic triage complete; pending maintainer ratification (silence = approval).theme/portabilityOne manifest, every target. Multi-target deploy, marketplace, packaging, install.One manifest, every target. Multi-target deploy, marketplace, packaging, install.type/bugSomething does not work as documented.Something does not work as documented.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Todo
Summary
APM’s instruction deduplication introduced in
0.17.0appears to suppress instruction content fromAGENTS.mdwhenever.github/instructions/exists in the output root.This is a regression for Codex/OpenCode-style consumers of
AGENTS.md: even though Copilot can read.github/instructions/, Codex does not use that directory as its instruction source. As a result,apm compilecan generate an effectively emptyAGENTS.mdwhile reporting that instructions were detected and placed there.Reproduction
Given an APM project with instruction primitives:
and targets including both Copilot and Codex:
Run:
The generated
AGENTS.mdcontains only the generated header/footer and no instruction bodies.Expected Behavior
Deduplication should only avoid duplicate context for consumers that actually read the deduplicated target.
For example:
.github/instructions/.claude/rules/AGENTS.mdSo when codex is a selected target,
AGENTS.mdshould include the applicable instruction bodies even if.github/instructions/exists.Actual Behavior
AGENTS.mdis generated without instruction content when.github/instructions/exists.This happens even with:
Why This Is A Regression
This behavior appears to come from the instruction deduplication shipped in 0.17.0.