Repository navigation
fix(cursor): comma-joined bare globs/description in .mdc frontmatter - #3011
Conversation
|
@microsoft-github-policy-service agree company="SLB"
…________________________________
From: microsoft-github-policy-service[bot] ***@***.***>
Sent: Thursday, September 17, 2026 1:45 PM
To: microsoft/apm ***@***.***>
Cc: Yannick Guyomar ***@***.***>; Mention ***@***.***>
Subject: [Ext] Re: [microsoft/apm] fix(cursor): comma-joined plain-scalar globs/description in .mdc frontmatter (PR #3011)
microsoft-github-policy-service[bot] left a comment (microsoft/apm#3011) Yannick Guyomar (@ YGuyomar) please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information. @microsoft-github-policy-service
[https://avatars.githubusercontent.com/in/95686?s=20&v=4]microsoft-github-policy-service[bot] left a comment (microsoft/apm#3011)<https://urldefense.com/v3/__https://github.com/microsoft/apm/pull/3011*issuecomment-5713779501__;Iw!!Kjv0uj3L4nM6H-I!gEN3mQTBll4YY8oxdwOJZAyL_ZPEg1r5aFIGQZEjH-yfu3WQjERCg_GStqgaGtEDm3PLu0AInbQAEQvjOkb7Pg$>
Yannick Guyomar ***@***.***)<https://urldefense.com/v3/__https://github.com/YGuyomar__;!!Kjv0uj3L4nM6H-I!gEN3mQTBll4YY8oxdwOJZAyL_ZPEg1r5aFIGQZEjH-yfu3WQjERCg_GStqgaGtEDm3PLu0AInbQAEQv43ByVaw$> please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]
Options:
* (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
* (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"
Contributor License Agreement
Contribution License Agreement
This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
and conveys certain license rights to Microsoft Corporation and its affiliates (“Microsoft”) for Your
contributions to Microsoft open source projects. This Agreement is effective as of the latest signature
date below.
1. Definitions.
“Code” means the computer software code, whether in human-readable or machine-executable form,
that is delivered by You to Microsoft under this Agreement.
“Project” means any of the projects owned or managed by Microsoft and offered under a license
approved by the Open Source Initiative (www.opensource.org<https://urldefense.com/v3/__http://www.opensource.org__;!!Kjv0uj3L4nM6H-I!gEN3mQTBll4YY8oxdwOJZAyL_ZPEg1r5aFIGQZEjH-yfu3WQjERCg_GStqgaGtEDm3PLu0AInbQAEQvE_dYfBw$>).
“Submit” is the act of uploading, submitting, transmitting, or distributing code or other content to any
Project, including but not limited to communication on electronic mailing lists, source code control
systems, and issue tracking systems that are managed by, or on behalf of, the Project for the purpose of
discussing and improving that Project, but excluding communication that is conspicuously marked or
otherwise designated in writing by You as “Not a Submission.”
“Submission” means the Code and any other copyrightable material Submitted by You, including any
associated comments and documentation.
2. Your Submission. You must agree to the terms of this Agreement before making a Submission to any
Project. This Agreement covers any and all Submissions that You, now or in the future (except as
described in Section 4 below), Submit to any Project.
3. Originality of Work. You represent that each of Your Submissions is entirely Your original work.
Should You wish to Submit materials that are not Your original work, You may Submit them separately
to the Project if You (a) retain all copyright and license information that was in the materials as You
received them, (b) in the description accompanying Your Submission, include the phrase “Submission
containing materials of a third party:” followed by the names of the third party and any licenses or other
restrictions of which You are aware, and (c) follow any other instructions in the Project’s written
guidelines concerning Submissions.
4. Your Employer. References to “employer” in this Agreement include Your employer or anyone else
for whom You are acting in making Your Submission, e.g. as a contractor, vendor, or agent. If Your
Submission is made in the course of Your work for an employer or Your employer has intellectual
property rights in Your Submission by contract or applicable law, You must secure permission from Your
employer to make the Submission before signing this Agreement. In that case, the term “You” in this
Agreement will refer to You and the employer collectively. If You change employers in the future and
desire to Submit additional Submissions for the new employer, then You agree to sign a new Agreement
and secure permission from the new employer before Submitting those Submissions.
5. Licenses.
* Copyright License. You grant Microsoft, and those who receive the Submission directly or
indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license in the
Submission to reproduce, prepare derivative works of, publicly display, publicly perform, and distribute
the Submission and such derivative works, and to sublicense any or all of the foregoing rights to third
parties.
* Patent License. You grant Microsoft, and those who receive the Submission directly or
indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license under
Your patent claims that are necessarily infringed by the Submission or the combination of the
Submission with the Project to which it was Submitted to make, have made, use, offer to sell, sell and
import or otherwise dispose of the Submission alone or with the Project.
* Other Rights Reserved. Each party reserves all rights not expressly granted in this Agreement.
No additional licenses or rights whatsoever (including, without limitation, any implied licenses) are
granted by implication, exhaustion, estoppel or otherwise.
1. Representations and Warranties. You represent that You are legally entitled to grant the above
licenses. You represent that each of Your Submissions is entirely Your original work (except as You may
have disclosed under Section 3). You represent that You have secured permission from Your employer to
make the Submission in cases where Your Submission is made in the course of Your work for Your
employer or Your employer has intellectual property rights in Your Submission by contract or applicable
law. If You are signing this Agreement on behalf of Your employer, You represent and warrant that You
have the necessary authority to bind the listed employer to the obligations contained in this Agreement.
You are not expected to provide support for Your Submission, unless You choose to do so. UNLESS
REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, AND EXCEPT FOR THE WARRANTIES
EXPRESSLY STATED IN SECTIONS 3, 4, AND 6, THE SUBMISSION PROVIDED UNDER THIS AGREEMENT IS
PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY OF
NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
2. Notice to Microsoft. You agree to notify Microsoft in writing of any facts or circumstances of which
You later become aware that would make Your representations in this Agreement inaccurate in any
respect.
3. Information about Submissions. You agree that contributions to Projects and information about
contributions may be maintained indefinitely and disclosed publicly, including Your name and other
information that You submit with Your Submission.
4. Governing Law/Jurisdiction. This Agreement is governed by the laws of the State of Washington, and
the parties consent to exclusive jurisdiction and venue in the federal courts sitting in King County,
Washington, unless no federal subject matter jurisdiction exists, in which case the parties consent to
exclusive jurisdiction and venue in the Superior Court of King County, Washington. The parties waive all
defenses of lack of personal jurisdiction and forum non-conveniens.
5. Entire Agreement/Assignment. This Agreement is the entire agreement between the parties, and
supersedes any and all prior agreements, understandings or communications, written or oral, between
the parties relating to the subject matter hereof. This Agreement may be assigned by Microsoft.
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/microsoft/apm/pull/3011?email_source=notifications&email_token=AEV52NYYPK3QG3USETLDIJL5PPFDZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNZRGM3TOOJVGAY2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM*issuecomment-5713779501__;Iw!!Kjv0uj3L4nM6H-I!gEN3mQTBll4YY8oxdwOJZAyL_ZPEg1r5aFIGQZEjH-yfu3WQjERCg_GStqgaGtEDm3PLu0AInbQAEQt5-9egcw$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AEV52N6TENVHHMP3S2NOEKD5PPFDZAVCNFSNUABGKJSXA33TNF2G64TZHMYTANJZGQ3TENJUHE5US43TOVSTWNJUHA3DQNZYGAYTFILWAI__;!!Kjv0uj3L4nM6H-I!gEN3mQTBll4YY8oxdwOJZAyL_ZPEg1r5aFIGQZEjH-yfu3WQjERCg_GStqgaGtEDm3PLu0AInbQAEQu9TKj4Ag$>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS<https://urldefense.com/v3/__https://github.com/notifications/mobile/ios/AEV52N6ZK2DNO6ZEYAHG3OT5PPFDZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNZRGM3TOOJVGAY2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y__;!!Kjv0uj3L4nM6H-I!gEN3mQTBll4YY8oxdwOJZAyL_ZPEg1r5aFIGQZEjH-yfu3WQjERCg_GStqgaGtEDm3PLu0AInbQAEQtdwerShw$> and Android<https://urldefense.com/v3/__https://github.com/notifications/mobile/android/AEV52N5NBF36PE7NITMNNVD5PPFDZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNZRGM3TOOJVGAY2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI__;!!Kjv0uj3L4nM6H-I!gEN3mQTBll4YY8oxdwOJZAyL_ZPEg1r5aFIGQZEjH-yfu3WQjERCg_GStqgaGtEDm3PLu0AInbQAEQugzSQdxQ$>. Download it today!
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
There was a problem hiding this comment.
🟡 Changes recommended
Three moderate implementation findings and one documentation inconsistency remain unresolved.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Updates Cursor .mdc frontmatter to emit comma-joined YAML scalar globs and readable UTF-8 descriptions.
Changes:
- Added
yaml_plain_scalar()and updated Cursor conversion. - Updated unit and integration coverage.
- Updated documentation and changelog.
Review findings:
docs/src/content/docs/producer/author-primitives/instructions-and-agents.md— nit (3 votes): update the maintained usage skill’s outdated Cursor guidance.src/apm_cli/integration/instruction_integrator.py— moderate (2 votes): preserve escaped literal commas when joining globs.src/apm_cli/utils/patterns.py— moderate (3 votes): use the bounded YAML loader.src/apm_cli/utils/patterns.py— moderate (1 vote): escape YAML-invalid or non-preserving control characters.
File summaries
| File | Description |
|---|---|
tests/unit/utils/test_patterns.py |
Tests YAML scalar formatting and round trips. |
tests/unit/integration/test_instruction_integrator.py |
Updates Cursor conversion expectations. |
tests/integration/test_local_install.py |
Updates local-install expectations. |
tests/integration/test_integration_runtime_coverage.py |
Updates runtime coverage expectations. |
tests/integration/test_apply_to_comma_e2e.py |
Verifies comma-joined Cursor output. |
src/apm_cli/utils/patterns.py |
Adds YAML scalar rendering. |
src/apm_cli/integration/instruction_integrator.py |
Emits Cursor-compatible frontmatter. |
docs/src/content/docs/producer/author-primitives/instructions-and-agents.md |
Documents the new Cursor format. |
CHANGELOG.md |
Records the fix. |
Review details
Suppressed comments (1)
src/apm_cli/utils/patterns.py:122
- The
ensure_ascii=Falsefallback is not sufficient for every YAML value: it leaves YAML-invalid controls such as U+007F unescaped, and leaves U+2028/U+2029 as YAML line breaks. A valid description containing one of these characters can therefore produce frontmatter that fails to parse or changes the text on a round trip. Escape YAML-invalid/non-preserving code points while keeping ordinary non-ASCII literal, and add regression coverage.
return json.dumps(value, ensure_ascii=False)
- Files reviewed: 9/9 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
353313d to
4cea9e2
Compare
4cea9e2 to
7bb0169
Compare
|
Also addressing the suppressed finding on Fixed in 7bb0169. The double-quoted fallback ( While adding regression coverage I found the round-trip check itself (not just the fallback) had a related blind spot: PyYAML folds any line-break-like character, not just That same pass also surfaced a real regression against New coverage: |
|
Thank you for contributing this pull request, Yannick Guyomar (@YGuyomar), and for #3002 is not yet Generated by autopilot-pr-triage-worker. This comment is AI-generated and may contain errors. |
a1ecda1 to
9ac256c
Compare
Cursor's .mdc frontmatter never uses a YAML list for globs and never shows quoted values in its own docs, but the Cursor converter emitted a quoted YAML list for comma-separated applyTo (inherited from the ensure_ascii=True, escaping non-ASCII description text as \uXXXX. Add yaml_plain_scalar() (patterns.py) for description: prefer a bare scalar verified via YAML's own resolver, fall back to single-quoted, and only use a double-quoted UTF-8-preserving scalar for values neither can represent (embedded newlines). globs gets its own, more permissive yaml_globs_scalar(): always bare, including patterns starting with "**". A leading "**" is technically a YAML alias indicator under a strict parser, but Cursor's own docs never quote it either and its frontmatter reader tolerates it -- glob syntax has none of the ": "/reserved-word ambiguity that description free text can have. The only thing still quoted is a literal embedded newline, which would inject extra lines into the frontmatter block regardless of parser leniency. Wire both into _convert_to_cursor_rules; globs is always comma-joined into one scalar instead of a YAML list. Scoped to Cursor only; other targets keep yaml_double_quote(). Address review feedback from Copilot's automated PR review: - Re-escape each glob (escape_apply_to_segment, renamed public) before comma-joining, so a literal comma the author escaped in applyTo (\,) doesn't become indistinguishable from the join separator. - Route the plain/single-quoted round-trip check through the project's bounded YAML loader (load_yaml_str) instead of stock yaml.safe_load, closing a YAML alias/merge-key expansion DoS that parsing untrusted description text a second time would otherwise reintroduce. - Escape DEL, NEL, LS, and PS, plus any lone UTF-16 surrogate, in the double-quoted fallback: ensure_ascii=False otherwise leaves them raw, which either changes silently on a strict YAML re-parse (NEL/ LS/PS are YAML 1.1 line breaks) or crashes the eventual UTF-8 file write outright (DEL and lone surrogates cannot be UTF-8 encoded -- the latter is this project's existing hidden-unicode security-gate attack shape). - Update package-authoring.md's applyTo/globs section: Cursor's globs is a comma-joined bare scalar, not a YAML array like the other targets, and a literal comma inside one glob still isn't representable in a Cursor rule even though the escape round-trips through APM's own tooling. Fixes microsoft#3002.
9ac256c to
153f083
Compare
Co-authored-by: Copilot App <[email protected]>
APM Review Panel:
|
| Panel lens | Remaining findings |
|---|---|
| Python architecture | 0 |
| Test coverage | 0 |
| Documentation | 0 |
| Performance | 0 |
| DevX | 0 |
| Metadata safety | 0 |
| Evidence | Observed result |
|---|---|
| Exact-head functional scenarios | 544 passed, including scalar/sequence lifecycle and control-character installation |
| Existing policy/target behavior | 7 passed: five target cases plus two hidden-Unicode cases, each executing rejection and --force |
| Test quality | 63 passed; assertion and duplicate ratchets clean |
| Regression mutations | Old safety regex caused 112 failures; always-quoted globs broke both lifecycle cases; restored before final execution |
| Canonical ownership | Version-2 schema and semantic verification passed; the detected owner is covered by both executed lifecycle cases |
| Lint | Full local mirror and remote lint passed |
| CI | CI, CodeQL, docs build, spec, NOTICE, and required gate succeeded at this head |
The three existing inline threads have been answered and resolved. Starlight, the maintained usage guide, and the PR description now agree on the verified behavior.
Boundary: these results certify APM's artifacts, not execution inside Cursor or literal-comma matching. GitHub reports MERGEABLE / BLOCKED; code-owner approval, last-push approval and merge-queue rules remain in effect. This recommendation is not human approval, and no merge or policy change was performed.
Generated by autopilot-pr-merge-worker. This comment is AI-generated and may contain errors.
Complete scalar escaping, verify real install/compile/repeat/update behavior, and narrow documentation to the native writer contract. Co-authored-by: Copilot App <[email protected]>
d6bafc5
into
microsoft:main
Resolve CHANGELOG.md: keep Unreleased Changed for #2983 and take main Unreleased Fixed for #3011. Co-authored-by: Copilot App <[email protected]>
Reconcile microsoft#1744 with current main. Main now renders Cursor globs as one comma-joined scalar (microsoft#3002/microsoft#3011), owns req-tg-015 (Codex agent model) and Section 8.5.9 (Cursor hooks), and is at working-draft revision 0.1.57. Keep main's rendering and add only the universal branch: exactly one parsed `**` emits `alwaysApply: true` with no globs, via a named `_is_universal_glob` predicate (panel nit). Renumber the spec amendment to req-tg-018 / Section 8.5.10 / 0.1.58 (proposed), restate it against comma-scalar globs with the nine-case boundary from the apm-scope:v1 record, bind a nine-case conformance test, regenerate CONFORMANCE from main's coverage plus the new node IDs, update the apm-usage guide, author and targets-matrix docs (absent/empty/null case), and move the CHANGELOG entry to Unreleased. Co-authored-by: WilliamK112 <[email protected]> Co-authored-by: Copilot App <[email protected]>
fix(cursor): preserve native rule globs and readable descriptions
TL;DR
Cursor rules now contain one comma-joined
globsscalar instead of a YAML list.Ordinary patterns, including leading
**, remain bare; descriptions keepreadable Unicode while quoting and escaping preserve their values.
The contributor's fix is retained, with complete control-character escaping
and real install/compile/repeat/update regression coverage.
Fixes #3002.
Important
This verifies APM's generated artifacts, not execution inside the Cursor
application. Literal-comma matching must be checked in the user's Cursor
version; the upstream documentation does not specify it.
Problem (WHY)
the comma-separated representation requested in [BUG] Cursor target emits quoted YAML list for globs instead of unquoted comma-separated string #3002.
disabling ASCII escaping left C1 controls and noncharacters unsafe for YAML;
raw control characters also reached the glob scalar.
real installation, compilation, repetition, and dependency revision updates.
The validation loop follows the Agent Skills guidance:
"do the work, run a validator (a script, a reference checklist, or a self-check), fix any issues, and repeat until validation passes."
The recorded mutations below establish that the new tests detect the defects,
rather than merely passing with the proposed implementation.
Approach (WHAT)
normalize_apply_toandparse_apply_toas the pattern authorities.and backslash boundaries.
UTF-8-preserving double quotes when required.
Implementation (HOW)
src/apm_cli/utils/patterns.pyyaml_double_quoteremains unchanged.src/apm_cli/integration/instruction_integrator.pytests/unit/utils/test_patterns.pytests/unit/integration/test_instruction_integrator.pytests/integration/test_apply_to_comma_e2e.pytests/integration/test_integration_runtime_coverage.pytests/integration/test_local_install.pytests/integration/test_required_lifecycle_state_machine.pydocs/src/content/docs/producer/author-primitives/instructions-and-agents.mdpackages/apm-guide/.apm/skills/apm-usage/package-authoring.mdCHANGELOG.mdThe scalar writers
and lifecycle assertions
are the principal review points.
Diagrams
The dashed stages are the Cursor-specific rendering changes; normalization remains shared.
flowchart LR subgraph Input["Instruction metadata"] A["applyTo"] D["description or derived heading"] end subgraph Normalize["Existing pattern authority"] N["normalize_apply_to"] P["parse_apply_to"] E["escape_apply_to_segment"] end subgraph Render["Cursor scalar rendering"] G["Comma join and yaml_globs_scalar"] S["yaml_plain_scalar"] Q["Escape unsafe literal characters"] end subgraph Output["Target artifact"] O["Write .cursor/rules/name.mdc"] end A --> N --> P --> E --> G D --> S G --> Q S --> Q Q --> O classDef new stroke-dasharray: 5 5; class G,S,Q new;Trade-offs
**remains bare,following the documented Cursor representation. A whole-frontmatter strict
YAML parse is therefore not the oracle for ordinary native globs.
“normally unquoted” is intentional, not an unconditional no-quotes promise.
emitted files. They do not establish Cursor matching for literal commas.
their existing formats. No README or shared rendering-contract change.
Benefits
applyToinputs produce the same native Cursor shape.Validation
Local evidence is for
893540a418c343896a72a195314b23c3f7978fb7,which includes main
07a465bcac8594c4eee5a6af79a6647ae2450366.The complete lint mirror passed, including duplication, auth, architecture,
YAML I/O, file-length, and portable-path checks. On macOS, the three shell text
guards used equivalent Python regular expressions and line counting.
Executed test and mutation evidence
An isolated Python wrapper ran
python -m pytest -q -p no:cacheproviderwithAPM_E2E_TESTS=1, the installed.venv/bin/apm, and isolated user state.Selectors: patterns units, instruction-integrator units, comma integration,
the two new lifecycle cases, runtime coverage, and local-install control cases.
The same wrapper selected
hidden_unicode or four_hyphen or forcedintests/integration/test_local_install.py. The hidden-Unicode test itselfexecutes both rejection and
--force, for both bidi and surrogate-pair inputs;the remaining five cases cover target-specific four-hyphen handling.
uv run --frozen --extra dev pytest -p no:cacheprovider -q tests/quality:uv run --frozen python scripts/check_test_assertions.pyanduv run --frozen python scripts/check_exact_test_duplicates.py:Mutation checks intentionally failed before restoring the production code:
the old safety regex produced 112 failures; always-quoted globs broke both
new lifecycle cases. The restored committed head passed the runs above.
The Mermaid diagram also passed
mmdc.Remote CI is tracked separately in the PR checks; local results are not a claim
that remote CI is green.
Scenario Evidence
tests/integration/test_required_lifecycle_state_machine.py::test_required_cursor_metadata_survives_install_compile_update(regression-trap for #3002)tests/integration/test_required_lifecycle_state_machine.py::test_required_cursor_metadata_survives_install_compile_updatetests/integration/test_local_install.py::TestLocalInstall::test_install_cursor_quotes_multiline_control_characterstests/integration/test_local_install.py::TestLocalInstall::test_install_rejects_yaml_escaped_hidden_unicode_before_writestests/unit/integration/test_instruction_integrator.py::TestConvertToCursorRules::test_escaped_literal_comma_in_glob_survives_the_comma_jointests/unit/utils/test_patterns.py::TestYamlPlainScalar::test_round_trip_check_stays_bounded_for_flow_style_alias_bombHow to test
uv run --frozen --extra dev pytest -q -p no:cacheprovider tests/unit/utils/test_patterns.py tests/unit/integration/test_instruction_integrator.py tests/integration/test_apply_to_comma_e2e.py; expect passing scalar, converter, and file-integration assertions..venv/bin/apm, run the new lifecycle test withAPM_E2E_TESTS=1 APM_BINARY_PATH="$PWD/.venv/bin/apm"; both scalar and sequence cases should pass..mdc: ordinaryglobsare one bare comma-joined line; descriptions retain readable text with necessary quoting.Co-authored-by: Copilot [email protected]