Skip to content

fix(copilot): keep Copilot modular instructions split at user-scope since supported - reverts #1619 - #2317

Merged
Daniel Meppiel (danielmeppiel) merged 5 commits into
microsoft:mainfrom
kilianpaquier:fix/copilot-user-scope-instructions
Oct 2, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 5 commits into
microsoft:mainfrom
kilianpaquier:fix/copilot-user-scope-instructions

Conversation

@kilianpaquier

@kilianpaquier kilianpaquier commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Description

Reverts changes introduced in #1619 since Copilot CLI (and VSCode Chat) support user-scope ~/.copilot/instructions/**/*.instructions.md.

Fixes #650.

Type of change

  • Bug fix

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Spec conformance (OpenAPM v0.1)

If this PR changes behaviour that an OpenAPM v0.1 req-XXX covers,
confirm the three-step ritual (see CONTRIBUTING.md "Adding or
changing a normative requirement"):

  • N/A -- this PR does not change OpenAPM-observable behaviour.

apm-spec-waiver: restore modular user-scope Copilot paths; no new OpenAPM-observable behaviour

Proof of tests

Current APM installed version v0.24.1

❯ apm --version
Agent Package Manager (APM) CLI version 0.24.1 (4257698)
❯ apm install kilianpaquier/agent-rules -g --target claude,copilot
[i] Installing to user scope (~/.apm/)
[!] User-scope primitives are fully supported by claude, kiro, gemini, agent-skills, openclaw, hermes, copilot-cowork, copilot-app. Partially supported: copilot, 
cursor, opencode, antigravity, codex, windsurf.
Some primitives are not supported: cursor (instructions); opencode (hooks); antigravity (instructions, hooks); windsurf (instructions)
[*] Validating 1 package...
[+] kilianpaquier/agent-rules (already in apm.yml)
[>] Installing 1 new package...
  [+] kilianpaquier/agent-rules @d2029530 (cached)
  |-- 1 instruction(s) integrated (11 adopted) -> .claude/rules/, .copilot/
  [+] <project root> (local)
  |-- (files unchanged)
[i] Cleaned 11 stale files from kilianpaquier/agent-rules
  [!] 1 dependency unpinned: kilianpaquier/agent-rules -- add #tag or #sha to prevent drift
[*] Installed 1 APM dependency (11 stale files cleaned) in 0.7s
❯ lla ~/.copilot/instructions
ls: cannot access '/home/kilianpaquier/.copilot/instructions': No such file or directory
❯ cat ~/.copilot/copilot-instructions.md
<!-- apm-managed: copilot-instructions.md -->
<!-- apm:source:kilianpaquier/agent-rules -->

Local build of this branch:

❯ ./dist/apm-linux-x86_64/apm install kilianpaquier/agent-rules -g --target claude,copilot
[i] Installing to user scope (~/.apm/)
[!] User-scope primitives are fully supported by claude, kiro, gemini, agent-skills, openclaw, hermes, copilot-cowork, copilot-app. Partially supported: copilot, cursor, opencode, antigravity, codex, windsurf.
Some primitives are not supported: cursor (instructions); opencode (hooks); antigravity (instructions, hooks); windsurf (instructions)
[*] Validating 1 package...
[+] kilianpaquier/agent-rules (already in apm.yml)
[>] Installing 1 new package...
  [+] kilianpaquier/agent-rules @d2029530 (cached)
  |-- 11 instruction(s) integrated (11 adopted) -> .claude/rules/, .copilot/instructions/
  [+] <project root> (local)
  |-- (files unchanged)
[i] Cleaned 1 stale file from kilianpaquier/agent-rules
  [!] 1 dependency unpinned: kilianpaquier/agent-rules -- add #tag or #sha to prevent drift
[*] Installed 1 APM dependency (1 stale file cleaned) in 0.8s.
❯ lla ~/.copilot/instructions
total 60
-rw-r--r--  1 kilianpaquier kilianpaquier 1533 Jul 19 00:12 docker-compose.instructions.md
-rw-r--r--  1 kilianpaquier kilianpaquier 2123 Jul 19 00:12 typescript.instructions.md
-rw-r--r--  1 kilianpaquier kilianpaquier 1238 Jul 19 00:12 terraform.instructions.md
-rw-r--r--  1 kilianpaquier kilianpaquier  924 Jul 19 00:12 shell.instructions.md
-rw-r--r--  1 kilianpaquier kilianpaquier 1013 Jul 19 00:12 markdown.instructions.md
-rw-r--r--  1 kilianpaquier kilianpaquier  542 Jul 19 00:12 makefile.instructions.md
-rw-r--r--  1 kilianpaquier kilianpaquier 1942 Jul 19 00:12 go-test.instructions.md
-rw-r--r--  1 kilianpaquier kilianpaquier 4258 Jul 19 00:12 go.instructions.md
-rw-r--r--  1 kilianpaquier kilianpaquier 7681 Jul 19 00:12 global.instructions.md
-rw-r--r--  1 kilianpaquier kilianpaquier 2157 Jul 19 00:12 gitlab-ci.instructions.md
-rw-r--r--  1 kilianpaquier kilianpaquier 1831 Jul 19 00:12 docker.instructions.md
drwxr-xr-x  2 kilianpaquier kilianpaquier 4096 Jul 19 00:12 .
drwxr-xr-x 10 kilianpaquier kilianpaquier 4096 Jul 19 00:12 ..
❯ lla ~/.copilot/copilot-instructions.md
ls: cannot access '/home/kilianpaquier/.copilot/copilot-instructions.md': No such file or directory

Copilot AI review requested due to automatic review settings July 18, 2026 22:13
@kilianpaquier kilianpaquier changed the title fix(copilot): keep Copilot modular instructions split at user-scope since supported - #1619 fix(copilot): keep Copilot modular instructions split at user-scope since supported - reverts #1619 Jul 18, 2026
@kilianpaquier

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

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.

Pull request overview

This PR reverts the Copilot user-scope instructions behavior introduced in #1619 by restoring modular instruction deployment for the Copilot target at user scope (deploying *.instructions.md files under ~/.copilot/instructions/ instead of concatenating into ~/.copilot/copilot-instructions.md).

Changes:

  • Remove the Copilot user-scope instruction concat override from the Copilot TargetProfile and revert to the standard github_instructions mapping.
  • Delete the concat integration/sync implementation from InstructionIntegrator and simplify sync cleanup back to directory-based removal.
  • Update unit/integration tests and the targets matrix docs to reflect modular user-scope Copilot instruction deployment.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/unit/integration/test_scope_integration.py Updates expectations for Copilot user-scope instructions mapping (github_instructions).
tests/unit/integration/test_scope_install_uninstall.py Updates user-scope install assertions to expect .copilot/instructions/ files rather than a single concat file.
tests/unit/integration/test_data_driven_dispatch.py Adjusts for-scope filtering/mapping expectations for Copilot user-scope instructions.
tests/unit/install/test_install_copilot_user_instructions.py Reworks acceptance tests to validate per-file deployment under .copilot/instructions/ and frontmatter preservation.
tests/integration/test_integration_runtime_coverage.py Removes coverage tests specific to the deleted concat helpers and concat integration path.
src/apm_cli/integration/targets.py Removes Copilot user-scope primitive override; updates Copilot user-scope behavior comments.
src/apm_cli/integration/instruction_integrator.py Removes concat integration path and collapses sync cleanup logic to directory-prefix behavior.
docs/src/content/docs/reference/targets-matrix.md Updates Copilot user-scope documentation to describe modular instructions under ~/.copilot/instructions/.
Comments suppressed due to low confidence (1)

src/apm_cli/integration/instruction_integrator.py:271

  • sync_for_target() now only removes managed files under "//". If a user previously installed Copilot user-scope instructions with the old concat format, the lockfile can still contain ".copilot/copilot-instructions.md" (root file), and an uninstall with this code will never match the new prefix, leaving that legacy file behind. Consider adding a small legacy cleanup pass for that specific path when uninstalling copilot at user scope.
        return self.sync_remove_files(
            project_root,
            managed_files,
            prefix=prefix,
            legacy_glob_dir=legacy_dir,

@kilianpaquier
kilianpaquier force-pushed the fix/copilot-user-scope-instructions branch from 9850cbd to 0a8af14 Compare August 1, 2026 08:01
@kilianpaquier
kilianpaquier force-pushed the fix/copilot-user-scope-instructions branch from 0a8af14 to 55cce80 Compare August 8, 2026 08:27
@sergio-sisternes-epam Sergio Sisternes (sergio-sisternes-epam) added the panel-review Request an advisory PR review; consumed after review. Not human approval or a merge gate. label Aug 18, 2026

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.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.

Suppressed comments (1)

src/apm_cli/integration/instruction_integrator.py:264

  • Legacy cleanup: now that Copilot user-scope instructions deploy under .copilot/instructions/ (prefix ${root}/${subdir}/), sync_for_target() will no longer remove the previously-managed legacy file .copilot/copilot-instructions.md created by the reverted concat implementation (#1619). That path does not match the new prefix, and BaseIntegrator.partition_managed_files() also routes managed paths only by ${root}/${subdir}/ prefixes (so .copilot/copilot-instructions.md won't even land in the instructions bucket during uninstall). This can leave a stale copilot-instructions.md behind after uninstall/cleanup and potentially orphaned lockfile entries.
        effective_root = mapping.deploy_root or target.root_dir
        prefix = f"{effective_root}/{mapping.subdir}/"
        legacy_dir = project_root / effective_root / mapping.subdir
        if mapping.format_id == "cursor_rules":
            legacy_pattern = "*.mdc"

@sergio-sisternes-epam

Copy link
Copy Markdown
Collaborator

APM Review Panel: ship_with_followups

Reverts the Copilot user-scope concat workaround now that modular instructions are natively supported, removing 350 LOC of special-case complexity contributed by a community member.

cc kilianpaquier Daniel Meppiel (@danielmeppiel) Sergio Sisternes (@sergio-sisternes-epam) -- a fresh advisory pass is ready for your review.

All eight panelists converge on the same call: this PR is correct, simplifying, and safe to ship. The only substantive concern -- raised independently by python-architect, devx-ux-expert, and supply-chain-security-expert -- is the absence of a migration path for the orphaned ~/.copilot/copilot-instructions.md that APM previously managed under the concat approach. This is a real gap but not a blocking one: the stale file is inert unless it contains instructions from a since-removed package, and even then the risk is informational drift, not code execution. A follow-up issue with a one-time sentinel-based cleanup is the right resolution.

The test-coverage-expert flags a missing unit assertion on the generated_files guard at user scope. Per the evidence-weighting contract, a missing test on a behavioral guard that prevents lockfile tracking leakage is a real regression-trap gap. However, the guard itself is a single conditional with no branching complexity, and the existing integration tests exercise the end-to-end deploy path. This warrants a fast follow-up assertion, not a blocking rework.

Strategically, this is exactly the kind of PR APM should land fast: community-authored, net-negative LOC, removes a workaround that existed only because an upstream limitation has since been resolved. Shipping it quickly signals that external contributors see their work merged without bureaucratic drag.

Aligned with: Portable by manifest (user-scope and project-scope now use the same modular file layout -- one mental model, one manifest shape); Multi-harness multi-host (Copilot target parity across scopes strengthened; no other harness affected); Pragmatic as npm (fewer special cases means fewer surprises on install -- the tool does what the user expects without scope-dependent exceptions).

Growth signal. This is a textbook simplification-equals-adoption moment. The next release note should frame it as 'Copilot instructions just work at every scope' rather than referencing the internal revert. Crediting community contributor kilianpaquier reinforces the signal that external PRs land fast in APM.

Panel summary

Persona B R N Takeaway
Python Architect 0 2 1 Clean special-case removal with one data-modeling gap (generated_files still declared on the profile) and a missing migration path for existing managed files.
CLI Logging Expert 0 0 1 Output path change is factually correct; no migration noise needed for a revert to the originally-supported layout.
DevX UX Expert 0 2 1 Missing migration path leaves stale concat file on existing users' machines after upgrade.
Supply Chain Security Expert 0 1 1 No exploitable regression; standard path guards preserved. Minor concern about orphaned user-scope concat file from prior installs.
OSS Growth Hacker 0 2 1 High-signal community PR that simplifies the Copilot UX and deserves a release beat.
Doc Writer 0 1 3 The diff is accurate and well-scoped; one minor prose gap and a stale cross-reference in the same file are worth a follow-up.
Test Coverage Expert 0 1 0 Modular user-scope deploy well-covered at unit tier; missing assertion on generated_files=() guard at user scope.
Performance Expert 0 0 2 Net positive: removes an O(n) read+regex+concat loop and replaces it with the standard O(n) per-file write path that is strictly cheaper per iteration.

B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.

Top 5 follow-ups

  1. [DevX UX Expert] Add one-time cleanup of orphaned ~/.copilot/copilot-instructions.md containing the APM sentinel -- Three panelists independently flagged this. Users upgrading from the concat era will have a stale file that Copilot CLI still reads, causing duplicate or outdated instructions.
  2. [Test Coverage Expert] Assert copilot.for_scope(user_scope=True).generated_files == () in the existing user-scope test suite -- Missing regression trap on the behavioral guard that prevents lockfile tracking leakage at user scope. One-line assertion, high defensive value.
  3. [Python Architect] Replace the string-equality name check in for_scope() with a declarative field on TargetProfile -- The if self.name == 'copilot' guard is a special case that should be expressed via the existing unsupported_user_primitives mechanism or a new user_generated_files field.
  4. [Doc Writer] Add user-scope generated path to the file-conventions block in targets-matrix.md -- The reference page now describes project-scope output but omits the analogous user-scope path, creating an incomplete mental model for readers.
  5. [OSS Growth Hacker] Frame CHANGELOG entry as a UX win and credit kilianpaquier in release notes -- Positions the change as user-facing simplification rather than internal housekeeping; signals community PR velocity.

Architecture

classDiagram
    direction LR
    class TargetProfile {
      <<ValueObject>>
      +name str
      +root_dir str
      +user_root_dir str
      +primitives dict
      +generated_files tuple
      +unsupported_user_primitives frozenset
      +user_primitive_overrides dict
      +for_scope(user_scope) TargetProfile
    }
    class PrimitiveMapping {
      <<ValueObject>>
      +subdir str
      +extension str
      +format_id str
      +deploy_root str
      +output_compare bool
    }
    class InstructionIntegrator {
      +integrate()
      +remove_files_for_target()
      -_render_instruction()
      -_deploy_plain_copy()
    }
    class BaseIntegrator {
      <<Abstract>>
      +sync_remove_files()
      +check_collision()
    }
    BaseIntegrator <|-- InstructionIntegrator
    TargetProfile *-- PrimitiveMapping : primitives
    InstructionIntegrator ..> TargetProfile : reads profile
    InstructionIntegrator ..> PrimitiveMapping : dispatches on format_id
    class TargetProfile:::touched
    class InstructionIntegrator:::touched
    classDef touched fill:#fff3b0,stroke:#d47600
Loading
flowchart TD
    A["apm install -g"] --> B["InstructionIntegrator.integrate()"]
    B --> C{"format_id in RULE_FORMATS?"}
    C -->|Yes| D["_render_instruction() -- format transform"]
    C -->|No| E["_deploy_plain_copy() -- verbatim deploy"]
    D --> F["[FS] write_text_lf(target_path)"]
    E --> F
    F --> G["Return IntegrationResult"]
    B --> H{"REMOVED: format_id == copilot_user_instructions?"}
    H -.->|Was| I["REMOVED: _integrate_copilot_user_instructions()"]
    style H stroke-dasharray: 5 5
    style I stroke-dasharray: 5 5
    A --> J["TargetProfile.for_scope(user_scope=True)"]
    J --> K{"self.name == copilot?"}
    K -->|Yes| L["Drop generated_files"]
    K -->|No| M["Keep generated_files"]
    L --> N["replace(self, root_dir=.copilot, generated_files=())"]
    M --> N
Loading

Recommendation

Ship now. The PR is correct, safe, net-negative LOC, and community-authored. The orphaned-file cleanup and missing assertion are real gaps but neither blocks the behavioral correctness of this change. File a follow-up issue for the migration hook (highest priority) and the unit assertion (fast fix). Land this promptly to honor the community contribution velocity signal.


Full per-persona findings

Python Architect

  • [recommended] generated_files should be empty on the profile or scoped via unsupported_user_primitives rather than a name-check in for_scope() at src/apm_cli/integration/targets.py:411
    The if self.name == "copilot": guard in for_scope() is a string-equality special case that violates the data-driven target model. The existing unsupported_user_primitives mechanism or a new user_generated_files field on TargetProfile would express this declaratively.
    Suggested: Either (a) set generated_files=() on the profile and add copilot-instructions.md only to a project-scope-specific field, or (b) add a user_generated_files: tuple[str, ...] | None = None field defaulting to generated_files when None, and use it in for_scope(). Both eliminate the name check.

  • [recommended] No migration/cleanup for the legacy ~/.copilot/copilot-instructions.md file APM previously managed at src/apm_cli/integration/instruction_integrator.py
    Users who installed packages with the concat approach now have a stale copilot-instructions.md. After this PR, apm install -g will not touch or remove that file. A migration hook or at minimum a deprecation warning during next install would prevent user confusion.
    Suggested: Add a one-time cleanup in integrate() or a pre-install migration step that detects the APM sentinel header in ~/.copilot/copilot-instructions.md and removes or renames it, logging a diagnostic message.

  • [nit] generated_files declaration on the copilot profile is now dead at user scope -- the comment says 'compile output' but the tuple still exists for project scope at src/apm_cli/integration/targets.py:522
    The field serves project-scope compile tracking, so keeping it is correct. But the comment on line 407-409 inside for_scope() should cross-reference line 522 to avoid future confusion.

CLI Logging Expert

  • [nit] Count jump from '1 instruction(s)' to '11 instruction(s)' may surprise users on first run after upgrade
    Users who relied on the old concat approach saw '1 instruction(s) integrated' for 11 source files. Post-revert they see '11 instruction(s) integrated'. This is correct but a one-line verbose-only note like '[i] copilot user-scope now deploys per-file to ~/.copilot/instructions/' on the first install that hits the new path would smooth the transition.

DevX UX Expert

  • [recommended] No cleanup of legacy ~/.copilot/copilot-instructions.md on reinstall
    Users who ran pre-PR versions have an APM-managed ~/.copilot/copilot-instructions.md (identifiable by the sentinel). After this PR, apm install -g deploys modular files but never removes the old concat file. User ends up with duplicate/stale instructions that Copilot CLI will still read.
    Suggested: During user-scope copilot install, check for ~/.copilot/copilot-instructions.md containing the APM sentinel header. If found: (a) remove it automatically (it was APM-managed), or (b) emit a one-time warning with the exact rm command. Option (a) is safest since the sentinel proves APM ownership.

  • [recommended] apm uninstall -g --target copilot should also clean the legacy concat file
    The uninstall path only looks for files matching the new instructions/*.instructions.md prefix. The old single-file path is orphaned from the ownership model, so uninstall will not find or remove it either.
    Suggested: Add the old concat path to the uninstall sweep when the sentinel is detected.

  • [nit] Consider a CHANGELOG migration note for existing global-install users
    Users scanning the changelog for breaking changes would benefit from a one-liner about deleting the old file and the new path.

Supply Chain Security Expert

  • [recommended] Orphaned ~/.copilot/copilot-instructions.md from prior concat installs may persist with stale content
    The removed sync path no longer tracks or cleans up the old file. If it contained content from a since-removed or compromised package, the stale instructions persist silently in the user's Copilot context.
    Suggested: Add a one-time migration that detects the APM-managed sentinel and removes or renames it.

  • [nit] Provenance markers lost at user scope -- no per-file equivalent of apm:source:pkg_source
    The concat file embedded HTML comment provenance markers per package section. The new per-file deploy relies on filename-based attribution only. This is a minor observability regression.

OSS Growth Hacker

  • [recommended] CHANGELOG entry should frame this as a UX win, not just a revert
    Users care that modular instructions now work at user scope -- not that internal workaround code was removed.

  • [recommended] Quickstart or Copilot guide should mention user-scope parity
    The mental-model simplification ('user scope mirrors project scope exactly') removes a friction point that confused Copilot-first adopters.

  • [nit] Acknowledge community contributor in release notes
    kilianpaquier fixing a real UX gap and deleting 350 lines is exactly the contributor signal that attracts more contributors.

Auth Expert -- inactive

No auth-relevant files changed; PR only modifies instruction file deploy path at user scope.

Doc Writer

  • [recommended] File-conventions block still shows .github/copilot-instructions.md as generated output with no user-scope analogue at docs/src/content/docs/reference/targets-matrix.md
    The updated prose describes ~/.copilot/instructions/ for individual files but the nearby file-conventions bullet has no user-scope generated note.
    Suggested: Under the - **File conventions.** bullet for copilot, add: user-scope instructions: ~/.copilot/instructions/<name>.instructions.md

  • [nit] 'mirroring the project-scope layout' is slightly ambiguous -- spell out .github/instructions/
    Suggested: Change to 'mirroring the .github/instructions/ project-scope layout' for explicitness.

  • [nit] Reference URL change is correct and more specific; positive accuracy fix.

  • [nit] No other doc page contains surviving old concat wording; corpus is clean.

Test Coverage Expert

  • [recommended] No test asserts copilot.for_scope(user_scope=True).generated_files == () at src/apm_cli/integration/targets.py
    The PR adds a guard that clears generated_files at user scope to prevent copilot-instructions.md leaking into user-scope lockfile tracking. grep'd tests for 'generated_files' -- zero hits in user-scope tests. A one-line assertion in the existing test would defend this.
    Suggested: Add assert user_profile.generated_files == () to TestCopilotUserScopeTargetProfile.test_for_scope_user_instructions_uses_modular_format or as a new test.
    Proof (missing): tests/unit/install/test_install_copilot_user_instructions.py::test_for_scope_user_generated_files_empty -- proves: User-scope copilot profile does not leak project-scope generated file into lockfile tracking [DevX]
    assert user_profile.generated_files == ()

Performance Expert

  • [nit] Marginal wall-time improvement on multi-package Copilot user-scope installs
    The deleted _integrate_copilot_user_instructions read the target file, ran a regex finditer, and rewrote the whole file per package. Savings are real but small in absolute terms (sub-100ms for typical workloads).

  • [nit] No new O(n^2) patterns introduced
    The for_scope() change adds a single O(1) conditional and a tuple reassignment. All paths remain linear in the number of instruction files.

This panel is advisory. It does not block merge. Re-apply the
panel-review label after addressing feedback to re-run.

@sergio-sisternes-epam Sergio Sisternes (sergio-sisternes-epam) removed the panel-review Request an advisory PR review; consumed after review. Not human approval or a merge gate. label Aug 18, 2026
@kilianpaquier
kilianpaquier force-pushed the fix/copilot-user-scope-instructions branch 2 times, most recently from 0c41d97 to b6141ce Compare August 19, 2026 20:00
@kilianpaquier

kilianpaquier commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Took into account:

  • Test asserting generated_files == () at user scope.
  • Docs: user-scope instructions path added to targets-matrix.md.

Do you want me to provide an orphaned removal implementation for older managed user-scope copilot-instructions.md ?

EDIT : Per my testing, orphaned copilot-instructions.md is already removed during upgrade (see my terminal proofs in PR description)

@kilianpaquier
kilianpaquier force-pushed the fix/copilot-user-scope-instructions branch from b6141ce to c0636e6 Compare August 19, 2026 20:19
@kilianpaquier
kilianpaquier force-pushed the fix/copilot-user-scope-instructions branch 2 times, most recently from adbe7d5 to fbac8c3 Compare September 1, 2026 16:57
@sergio-sisternes-epam

Copy link
Copy Markdown
Collaborator

PR triage recommendation

ready-for-review

Recommendation only, not merge or scope approval. A responsible
human maintainer must approve. Labels, automated advice, and
silence are not approval.

Linked issue

#650 -- CLOSED, labelled status/accepted (also status/triaged,
type/feature, theme/portability, area/multi-target, area/cli,
area/docs-site). Closed 2026-06-02 by Daniel Meppiel (@danielmeppiel) after #1619
landed the concat workaround. This PR cites Fixes #650 and
reverts #1619 now that Copilot CLI / VS Code Chat read modular
~/.copilot/instructions/**/*.instructions.md.

No auto-defer: a same-repo linked issue carries status/accepted.

Proposed classification

PR currently has no type/area/theme labels. Useful allowlisted
additions:

  • type/bug (revert of a now-incorrect concat special case)
  • area/cli
  • area/multi-target
  • area/docs-site (targets-matrix.md)
  • theme/portability

Conflict to name, not replace: #650 is type/feature. That is the
original user-scope Copilot instructions request. This PR is a
post-merge correction of how that feature deploys. Existing human
choices on the issue stay unchanged.

Processing: triage/recommended. CODEOWNERS owners already in
reviewRequests: Daniel Meppiel (@danielmeppiel), Sergio Sisternes (@sergio-sisternes-epam). Not
adding or removing review requests.

Suggested next action

Wait for human review from the CODEOWNERS already requested.
Author should rebase onto main first: mergeable is CONFLICTING.
Do not merge from this recommendation.

Suggested PR comment

Thanks @kilianpaquier -- this is a clear, bounded follow-up to #650.

#650 was accepted and then closed when #1619 shipped user-scope
Copilot instructions via a concatenated `~/.copilot/copilot-instructions.md`.
On the issue, maintainers already called that concat an antipattern.
Your PR (and the GitHub docs you cited) say Copilot now loads modular
`~/.copilot/instructions/**/*.instructions.md`, so reverting the
special case is in line with that direction.

An advisory review panel already posted `ship_with_followups` here.
You answered the generated_files test and docs follow-ups, and you
showed the concat file being cleaned on upgrade. That is useful
evidence; it is not maintainer approval.

This comment is classification only. It does not accept, assign, or
merge the work. CODEOWNERS remain @danielmeppiel and
@sergio-sisternes-epam (already requested). The branch currently
conflicts with `main`, so a rebase will make human review easier.

@sergio-sisternes-epam Sergio Sisternes (sergio-sisternes-epam) added triage/recommended Automated advice completed; not human scope approval. type/bug Something does not work as documented. area/cli CLI command surface, flags, help text (cross-cutting). area/multi-target Multi-target deploy spec, target directory creation, agent surface routing. area/docs-site docs/src/content (Starlight), README, doc generation. theme/portability status/accepted Human scope approval; verify the issue's approval record and review contact before work. labels Sep 16, 2026
@sergio-sisternes-epam

Copy link
Copy Markdown
Collaborator

Thanks kilianpaquier for the Copilot user-scope modular instructions work on this PR.

Status: the branch still has merge conflicts with main, and there has been no newer contributor push addressing that blocker for a while. Delivery is taking the conflict/blocker next, preferring your originator branch and keeping credit with you.

This path does not approve or merge.


Generated by autopilot-pr-ready-takeover-steward. This comment is AI-generated and may contain errors.

@sergio-sisternes-epam

Copy link
Copy Markdown
Collaborator

Thanks for the PR, kilianpaquier — and for keeping Copilot modular instructions split at user-scope now that it is supported.

This branch currently conflicts with main, so it is not mergeable yet. Checks on the current tip look green.

Delivery is taking the conflict from here: rebasing onto the latest base while keeping your authorship and preferring your branch (fix/copilot-user-scope-instructions), then driving the PR toward merge readiness for human approval. Credit stays with you.

I will follow up on this thread with the outcome.


Generated by autopilot-pr-ready-takeover. This comment is AI-generated and may contain errors.

@sergio-sisternes-epam

Copy link
Copy Markdown
Collaborator

Follow-up on the rebase attempt: Delivery rebased fix/copilot-user-scope-instructions onto the latest main and hit a real content conflict in src/apm_cli/integration/instruction_integrator.py. Other touched files auto-merged cleanly.

Per policy I am not hand-merging that conflict from here. Next step is either a conflict-resolution pass with explicit authorization, or an update from kilianpaquier on that file against current main. Credit remains with the originator either way.


Generated by autopilot-pr-ready-takeover. This comment is AI-generated and may contain errors.

@sergio-sisternes-epam

Copy link
Copy Markdown
Collaborator

kilianpaquier — short update: the base conflict on fix/copilot-user-scope-instructions is resolved. Delivery rebased onto latest main, kept your authorship and PR intent (modular Copilot user-scope instructions / revert of the old concat path), and pushed the updated tip to your branch.

GitHub now reports the PR as mergeable again (checks may still be catching up). Thanks again for the work here.


Generated by autopilot-pr-ready-takeover. This comment is AI-generated and may contain errors.

Keep `_strip_frontmatter` as a thin `_parse_frontmatter` wrapper so unit
coverage of four-hyphen fences still passes after removing the concat path.

Point policy/lifecycle unicode fixtures at modular
`.copilot/instructions/*.instructions.md` now that user-scope no longer
tracks the legacy concat file in generated_files.
apm-spec-waiver: restore modular user-scope Copilot paths; no new OpenAPM-observable behaviour

Co-authored-by: Copilot <[email protected]>
@sergio-sisternes-epam

Copy link
Copy Markdown
Collaborator

kilianpaquier — Spec Mode B update: Delivery added an empty commit on fix/copilot-user-scope-instructions that carries the Mode B bypass trailer:

apm-spec-waiver: restore modular user-scope Copilot paths; no new OpenAPM-observable behaviour

  • New head: 67083b69c0cdba68393be705fb6cb5adc0a1af7e (author remains kilianpaquier; Co-authored-by Copilot)
  • No OpenAPM-observable behaviour change; PR description left untouched
  • Spec conformance gate should re-run on this tip

Thanks for the modular user-scope Copilot work.


Generated by autopilot-pr-ready-takeover. This comment is AI-generated and may contain errors.

@sergio-sisternes-epam Sergio Sisternes (sergio-sisternes-epam) added the panel-review Request an advisory PR review; consumed after review. Not human approval or a merge gate. label Oct 1, 2026
@github-actions github-actions Bot removed the panel-review Request an advisory PR review; consumed after review. Not human approval or a merge gate. label Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

APM Review Panel: ship_with_followups

Reverts the Copilot user-scope concat workaround so instructions deploy per-file, aligning Copilot with every other target's github_instructions mapping.

panel-mode=full; personas=python-architect,test-coverage-expert,doc-writer,devx-ux-expert,supply-chain-security-expert,apm-ceo

cc kilianpaquier @danielmeppiel @sergio-sisternes-epam -- a fresh advisory pass is ready for your review.

The revert is architecturally correct and removes a one-off code path. Delta since the 2026-08-18 advisory: the generated_files == () test and targets-matrix docs landed, the branch was rebased, and a spec waiver was added. The earlier migration concern is largely settled by the author's terminal proof (stale concat file cleaned on upgrade), though no test locks it in.

The highest-signal item: tests/integration/test_local_uninstall_alias_e2e.py lines 262 and 484 still assert on ~/.copilot/copilot-instructions.md after a global Copilot install. The PR does not touch that file. If those scenarios run the changed path, they will fail on the merge commit even though an earlier tip was green. Confirm on the merge-commit CI run, or update to the per-file path.

Second: with format_id == github_instructions at user scope, sync_for_target falls back to the *.instructions.md legacy glob when managed_files is None (old lockfiles). That could delete user-authored files in ~/.copilot/instructions/. Claude, Windsurf and Kiro set legacy_pattern=None for this reason. Edge case, but it is silent data loss.

Docs drift (verified against base): no CHANGELOG [Unreleased] entry, concepts/primitives-and-targets.md line 99 still says instructions are project-scope only, and reference/cli/audit.md still mentions the aggregate file.

Aligned with: multi-harness support, portable by manifest, pragmatic as npm, community-driven. Secure by default needs the legacy-glob follow-up.

Panel summary

Persona B R N Takeaway
Python Architect 1 0 2 Revert is clean; e2e tests still assert the old concat path.
Test Coverage Expert 0 1 1 Per-file deploy and generated_files covered; no upgrade-cleanup regression trap.
Doc Writer 0 2 1 targets-matrix updated; CHANGELOG, primitives-and-targets and audit pages are stale.
Devx Ux Expert 0 1 1 Layout mirrors project scope; "partial" label now under-explained.
Supply Chain Security Expert 0 1 0 Managed-files path safe; legacy glob can hit user-authored files.

B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.

Top 5 follow-ups

  1. [Python Architect] (blocking-severity) Update test_local_uninstall_alias_e2e.py lines 262 and 484 (and the synthetic fixture at test_audit_primitive_contract.py:772) to the per-file path -- the only item with immediate CI-failure risk on the merge commit.
  2. [Supply Chain Security Expert] Set legacy_pattern=None for github_instructions at user scope in sync_for_target -- avoids deleting user-authored files when upgrading from old lockfiles.
  3. [Doc Writer] Add the CHANGELOG entry, fix primitives-and-targets.md line 99, and drop the aggregate reference in audit.md -- three verified stale references.
  4. [Devx Ux Expert] Name the remaining gap behind user_supported="partial" for Copilot (or drop the label) and align targets-matrix wording.
  5. [Test Coverage Expert] Add a regression test that a legacy .copilot/copilot-instructions.md in deployed_files is cleaned after the upgrade -- manual terminal proof does not survive refactors.

Architecture

classDiagram
    direction LR
    class TargetProfile {
        <<Dataclass>>
        +primitives dict
        +generated_files tuple
        +for_scope(user_scope) TargetProfile
    }
    class PrimitiveMapping {
        <<ValueObject>>
        +subdir str
        +extension str
        +format_id str
    }
    class InstructionIntegrator {
        <<BaseIntegrator>>
        +integrate_instructions_for_target()
        +sync_for_target()
        +_strip_frontmatter() str
    }
    class BaseIntegrator {
        <<Abstract>>
        +sync_remove_files()
    }
    InstructionIntegrator --|> BaseIntegrator
    TargetProfile *-- PrimitiveMapping
    InstructionIntegrator ..> TargetProfile
    class TargetProfile:::touched
    class InstructionIntegrator:::touched
    classDef touched fill:#fff3b0,stroke:#d47600
Loading
flowchart TD
    A["apm install -g --target copilot"] --> B["TargetProfile.for_scope(user_scope=True)"]
    B --> D{"name == copilot?"}
    D -- Yes --> E["generated_files = ()"]
    D -- No --> F["generated_files unchanged"]
    E --> H["integrate_instructions_for_target()"]
    F --> H
    H --> J["Deploy each file to ~/.copilot/instructions/name.instructions.md"]
    H --> M["sync_for_target(): prefix ~/.copilot/instructions/, legacy glob *.instructions.md"]
    style J fill:#fff3b0,stroke:#d47600
    style M fill:#fff3b0,stroke:#d47600
Loading

Recommendation

The revert is sound and community-requested. Merge after confirming the two test_local_uninstall_alias_e2e.py assertions pass on the merge commit or are updated to the per-file path. File the legacy-glob edge case as a scoped follow-up (legacy_pattern=None for github_instructions at user scope). The doc fixes are low effort and can land in this PR or immediately after. CODEOWNERS (@danielmeppiel, @sergio-sisternes-epam) remain the deciding reviewers.


Full per-persona findings

Python Architect

  • [blocking] Untouched e2e tests still assert on .copilot/copilot-instructions.md at tests/integration/test_local_uninstall_alias_e2e.py:262
    Lines 262 and 484 run a real apm install --global --target copilot and read the old concat file; per-file deploy never creates it. test_audit_primitive_contract.py:772 uses the old path as a synthetic fixture.
    Suggested: assert on .copilot/instructions/<name>.instructions.md.
  • [nit] self.name == "copilot" check in for_scope follows the claude/hermes precedent; a declarative field would be cleaner if a second consumer appears.
  • [nit] _strip_frontmatter now has no production callers; kept as a thin wrapper for tests.

Test Coverage Expert

  • [recommended] No regression-trap test for legacy ~/.copilot/copilot-instructions.md cleanup on upgrade at tests/unit/integration/test_scope_install_uninstall.py
    Plant the legacy file, list it in managed_files, call sync_for_target, assert removal with zero errors.
  • [nit] test_for_scope_user_generated_files_empty is unit-tier; adequate for now.

Doc Writer

  • [recommended] No CHANGELOG [Unreleased] entry at CHANGELOG.md
    The shipped feat: apm install -g deploys copilot instructions to ~/.copilot/copilot-instructions.md #1619 entry still describes concatenation. State whether the legacy file is removed on upgrade.
  • [recommended] Stale pages at docs/src/content/docs/concepts/primitives-and-targets.md:99
    Says instructions are project-scope only; reference/cli/audit.md still names the aggregate file.
  • [nit] Note legacy file handling in targets-matrix.md if cleanup is not guaranteed.

Devx Ux Expert

  • [recommended] user_supported="partial" for Copilot is under-motivated at src/apm_cli/integration/targets.py:557
    The install warning says "Partially supported: copilot" without naming a gap. Set full support or list the unsupported primitive.
  • [nit] targets-matrix says "User scope. Partial." but the text names no limitation at docs/src/content/docs/reference/targets-matrix.md:126.

Supply Chain Security Expert

  • [recommended] Legacy glob fallback can delete user-authored files under ~/.copilot/instructions/ at src/apm_cli/integration/instruction_integrator.py:554
    Only when managed_files is None (old lockfiles). The managed-files path is safe.
    Suggested: legacy_pattern=None for github_instructions at user scope.

This panel is advisory. It does not block merge. Re-apply the
panel-review label after addressing feedback to re-run.

Generated by PR Review Panel for #2317 · copilot · auto · 567 AIC · ⌖ 6.6 AIC · ⊞ 10K · ◷

@sergio-sisternes-epam

Copy link
Copy Markdown
Collaborator

Steward receipt restamping the GH Action panel for ready-lane gates (advisory only). Source: github-actions[bot] comment 5942549352 (ship_with_followups).

Panel summary

Source B R N Takeaway
steward-restamp (from GH Action panel) 1 5 5 e2e still asserts old concat path; several docs/legacy-glob follow-ups

B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.

Parseable findings (restamped)
  • [blocking] Untouched e2e tests still assert on .copilot/copilot-instructions.md at tests/integration/test_local_uninstall_alias_e2e.py:262
  • [recommended] No regression-trap test for legacy ~/.copilot/copilot-instructions.md cleanup on upgrade at tests/unit/integration/test_scope_install_uninstall.py
  • [recommended] No CHANGELOG [Unreleased] entry at CHANGELOG.md
  • [recommended] Stale pages at docs/src/content/docs/concepts/primitives-and-targets.md:99
  • [recommended] user_supported="partial" for Copilot is under-motivated at src/apm_cli/integration/targets.py:557
  • [recommended] Legacy glob fallback can delete user-authored files under ~/.copilot/instructions/ at src/apm_cli/integration/instruction_integrator.py:554
  • [nit] self.name == "copilot" check in for_scope follows the claude/hermes precedent; a declarative field would be cleaner if a second consumer appears
  • [nit] _strip_frontmatter now has no production callers; kept as a thin wrapper for tests
  • [nit] test_for_scope_user_generated_files_empty is unit-tier; adequate for now
  • [nit] Note legacy file handling in targets-matrix.md if cleanup is not guaranteed
  • [nit] targets-matrix says "User scope. Partial." but the text names no limitation at docs/src/content/docs/reference/targets-matrix.md:126

Advisory only. Not a merge gate or scope approval. Re-apply panel-review after addressing feedback to re-run.

@sergio-sisternes-epam

Copy link
Copy Markdown
Collaborator

Thanks for the PR, kilianpaquier — and for the careful Copilot user-scope instructions split.

Panel review left a required finding on this tip: a couple of e2e (and related) asserts still expect the legacy single-file .copilot/copilot-instructions.md path. Delivery is updating those asserts to the per-file Copilot instruction paths this PR designs, while keeping your authorship and preferring your branch.

No action needed from you unless you want to steer a different approach.


Generated by autopilot-pr-ready-takeover. This comment is AI-generated and may contain errors.

…ns (microsoft#2317)

Panel-feedback follow-up for microsoft#2317, which restores modular Copilot
instructions at user scope (~/.copilot/instructions/**/*.instructions.md,
mirroring project-scope .github/instructions/) and clears
generated_files for user-scope Copilot so the legacy concatenated
copilot-instructions.md is no longer tracked there. Credit to
@kilianpaquier for the original feature design.

Required:
- tests/integration/test_local_uninstall_alias_e2e.py: update the two
  global Copilot assertions that still pointed at the retired
  .copilot/copilot-instructions.md concat file to assert on the
  modular per-file .copilot/instructions/*.instructions.md paths
  instead, consistent with the project-scope pattern already used in
  the same file.
- tests/integration/test_audit_primitive_contract.py: switch the
  user-scope tracked-metadata fixture path from
  .copilot/copilot-instructions.md to a modular
  .copilot/instructions/probe.instructions.md path.

Soft (done):
- CHANGELOG.md: [Unreleased] entry crediting @kilianpaquier for microsoft#2317.
- docs/.../primitives-and-targets.md and docs/.../reference/cli/audit.md:
  replace stale 'prompts and instructions are project-scope only' /
  'copilot-instructions.md aggregate' language with the modular
  user-scope instructions description.
- src/apm_cli/integration/targets.py: short comment motivating
  user_supported="partial" for copilot now that instructions work at
  user scope but prompts/agents/skills/hooks/canvas still don't.
- src/apm_cli/integration/instruction_integrator.py: harden the
  legacy-glob fallback in sync_for_target so Copilot's broad
  '*.instructions.md' legacy cleanup only applies to project scope
  (.github/instructions/, always APM-managed); user scope
  (.copilot/instructions/) now gets legacy_pattern=None, following the
  existing Claude/Windsurf/Kiro precedent, since other tools may also
  drop .instructions.md files into that shared user directory.
- tests/unit/integration/test_scope_install_uninstall.py: new
  regression test proving a hand-authored file under
  .copilot/instructions/ survives an APM uninstall/sync cycle.

Verified: full CI-mirror lint chain (ruff check, ruff format --check,
pylint R0801, lint-auth-signals.sh) passes; targeted unit/integration
suites pass (tests/unit/integration/ + test_audit_primitive_contract.py:
2181 passed); the two directly-touched e2e scenarios in
test_local_uninstall_alias_e2e.py pass against a freshly built apm
binary. The other two scenarios in that same e2e file
(test_global_absolute_list_key_drives_update_and_uninstall,
test_global_duplicate_alias_preserves_exact_path_survivor) fail in
this sandbox both before and after this change -- confirmed
pre-existing via git stash -- due to a tmp-dir/package-name collision
('Shared Package'/'Mixed Case Package' substrings leaking into CLI
output paths) unrelated to this fix.

Co-authored-by: Copilot <[email protected]>
Co-authored-by: GitHub Copilot <[email protected]>
@sergio-sisternes-epam Sergio Sisternes (sergio-sisternes-epam) added the panel-review Request an advisory PR review; consumed after review. Not human approval or a merge gate. label Oct 2, 2026
@github-actions github-actions Bot removed the panel-review Request an advisory PR review; consumed after review. Not human approval or a merge gate. label Oct 2, 2026
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown

APM Review Panel: ship_with_followups

Delta pass on tip c2a4e75: every item from the previous advisory has been folded; one small upgrade-path gap remains.

panel-mode=delta; personas=python-architect,test-coverage-expert,doc-writer,supply-chain-security-expert,apm-ceo (consolidated in-thread)

cc kilianpaquier @danielmeppiel @sergio-sisternes-epam -- a fresh advisory pass is ready for your review.

Delta since the 2026-10-02 advisory (head 67083b6): commit c2a4e75 addresses the earlier findings.

  • Blocking item resolved. The two assertions in test_local_uninstall_alias_e2e.py and the fixture in test_audit_primitive_contract.py now point at per-file .copilot/instructions/*.instructions.md paths.
  • Legacy-glob data-loss edge resolved. sync_for_target now sets legacy_pattern=None for github_instructions at user scope (gated on target.root_dir == target.user_root_dir), matching the Claude/Windsurf/Kiro precedent. A regression test proves a hand-authored .copilot/instructions/user-authored.instructions.md survives cleanup.
  • Docs resolved. CHANGELOG [Unreleased] entry, primitives-and-targets.md, audit.md, and a comment motivating user_supported="partial" all landed.

CI at the time of this pass: Lint, shards 1 and 2, binary smoke, spec gate and CodeQL are green; Windows Compatibility Gate and Lifecycle Smoke were still running. The commit message notes two other scenarios in test_local_uninstall_alias_e2e.py fail in the author's sandbox before and after this change; confirm they pass in CI rather than taking that on trust.

Aligned with: multi-harness support, portable by manifest, pragmatic as npm, secure by default.

Panel summary

Persona B R N Takeaway
Python Architect 0 0 1 Revert is clean; prior e2e blocker fixed.
Test Coverage Expert 0 1 0 Legacy-file cleanup on upgrade/uninstall still has no regression trap.
Doc Writer 0 0 0 Prior drift items closed.
Supply Chain Security Expert 0 0 0 Legacy glob hardened for user scope; managed-files path safe.

B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.

Top follow-ups

  1. [Test Coverage Expert] Add a regression test that a legacy .copilot/copilot-instructions.md listed in deployed_files is removed after the upgrade. The author's terminal proof shows install-time stale cleanup works; no test locks it in, and the Copilot reviewer raised the same gap twice.
  2. [Python Architect] Uninstall with an old lockfile: sync_for_target now matches only the .copilot/instructions/ prefix, so a legacy .copilot/copilot-instructions.md entry is not matched by uninstall-time cleanup. If the follow-up test above shows it is orphaned, add a one-line legacy-path cleanup for user-scope Copilot. If install-time cleanup already covers it, document that in the test and skip the code change.
  3. [Python Architect, nit] _strip_frontmatter has no production callers and is kept as a test-only wrapper; fine for now, drop it when convenient.

Recommendation

Merge once the still-running CI jobs (Windows gate, Lifecycle Smoke) finish green and the two remaining test_local_uninstall_alias_e2e.py scenarios pass in CI. The legacy concat-file cleanup test is a low-effort follow-up and can land here or right after. CODEOWNERS (@danielmeppiel, @sergio-sisternes-epam) remain the deciding reviewers.

This panel is advisory. It does not block merge. Re-apply the panel-review label after addressing feedback to re-run.

Generated by PR Review Panel for #2317 · copilot · auto · 58.9 AIC · ⌖ 6.48 AIC · ⊞ 10K · ◷

@sergio-sisternes-epam

Copy link
Copy Markdown
Collaborator

Steward receipt restamping the GH Action confirmation panel for ready-lane gates (advisory only). Source: github-actions[bot] comment 5944941385 (ship_with_followups delta on tip c2a4e75).

Panel summary

Source B R N Takeaway
steward-restamp (from GH Action confirmation panel) 0 1 1 Prior blocking e2e asserts fixed; one soft recommended on legacy cleanup regression trap

B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.

Parseable findings (restamped)
  • [recommended] Add a regression test that a legacy .copilot/copilot-instructions.md listed in deployed_files is removed after upgrade at tests/unit/integration/test_scope_install_uninstall.py
  • [nit] _strip_frontmatter has no production callers and is kept as a test-only wrapper; fine for now, drop when convenient

Advisory only. Not a merge gate or scope approval. Re-apply panel-review after addressing feedback to re-run.


Generated by apm-pr-cockpit. This comment is AI-generated and may contain errors.

The Lifecycle Smoke (Linux) job on fix/copilot-user-scope-instructions
has been hitting the hard 6-minute job wall-clock timeout even though
the required pytest selection itself passes cleanly (233 passed, 1
skipped in ~340s/5:40 on this tip). This is a CI wall-clock budget
cascade, not a failing assertion: the 6-minute cap originally had
headroom for checkout/setup/sync/cleanup plus test time, but as the
required selection has grown it now routinely approaches ~5:40 of
pytest time alone, leaving too little room for the surrounding job
overhead.

Raise lifecycle-smoke's timeout-minutes from 6 to 8 in
.github/workflows/ci.yml and update the adjacent rationale comment to
explain why. Keep tests/quality/test_ci_topology.py's
LIFECYCLE_SMOKE_MAX_TIMEOUT_MINUTES guard in lockstep (6 -> 8) in the
same commit so the topology contract stays green and still enforces a
hard, tight hang bound. No change to the pytest selection expression,
markers, required-check membership, E2E opt-in, or hermetic
prohibitions.

Credit to @kilianpaquier for the original work on microsoft#2317; this commit
only addresses the CI timeout cascade observed on its tip.

Co-authored-by: GitHub Copilot <[email protected]>
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 00842df into microsoft:main Oct 2, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli CLI command surface, flags, help text (cross-cutting). area/docs-site docs/src/content (Starlight), README, doc generation. area/multi-target Multi-target deploy spec, target directory creation, agent surface routing. status/accepted Human scope approval; verify the issue's approval record and review contact before work. triage/recommended Automated advice completed; not human scope approval. type/bug Something does not work as documented.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Copilot CLI user-scope instructions: can apm install -g write copilot-instructions.md

4 participants