You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: warn when instruction is missing required fields during apm compile (#449)
* fix: warn when instruction is missing required applyTo field during compile
Instructions without applyTo were silently dropped during 'apm compile'
in distributed and claude modes because validate_primitives() was only
called in the single-file path. This adds validation to all compilation
modes and surfaces warnings through the CLI.
- Call validate_primitives() in _compile_distributed() and _compile_claude_md()
- Merge self.warnings into dry-run and normal compilation results
- Remove distributed-mode warning suppression in CLI
- Add unit and CLI integration tests for the warning
* fix: capture validate_primitives errors in distributed and claude compile paths
Address Copilot PR review comments:
- Capture return value of validate_primitives() and extend self.errors
in _compile_distributed() and _compile_claude_md(), matching the
pattern already used in _compile_single_file()
- Add target='agents' to test config to isolate distributed path testing
* fix: change missing applyTo from error-like warning to informational note
Instructions without applyTo are valid -- they apply globally:
- Distributed compile: placed at project root
- Claude deploy: becomes unconditional rule (no paths: key)
- Copilot/Cursor: deployed verbatim
The warning message now reflects this ('will apply globally') instead of
implying applyTo is required. Suggestion updated to explain the choice.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Daniel Meppiel <51440732+danielmeppiel@users.noreply.github.com>
Co-authored-by: danielmeppiel <dmeppiel@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments