From 5ced5f77d0729a2ca520fcaa5f9f74729d56ddc6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 16:43:37 +0000 Subject: [PATCH 1/2] Initial plan From e4604f4ad008010356869126adc3b6483a8635ab Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 16:45:18 +0000 Subject: [PATCH 2/2] docs: add milestone-scope restriction to Copilot instructions Co-authored-by: SureshKViswanathan <257696045+SureshKViswanathan@users.noreply.github.com> --- .github/copilot-instructions.md | 12 ++++++++++++ COPILOT_INSTRUCTIONS.md | 11 +++++++++++ 2 files changed, 23 insertions(+) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 8520be2..bd26b2c 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -9,6 +9,17 @@ JXLSwift is a native Swift implementation of the JPEG XL (ISO/IEC 18181) compres --- +## Scope of Work + +> **You must only work on tasks that are explicitly defined in [`MILESTONES.md`](../MILESTONES.md).** + +- **Do not** implement features, fix bugs, refactor code, add tests, or make any other changes that are not part of a milestone listed in `MILESTONES.md`. +- **Do not** add new milestones, deliverables, or acceptance criteria without explicit instruction from the project maintainer. +- Before starting any task, verify that it maps to an active (⬜ Not Started or 🔶 In Progress) milestone in `MILESTONES.md`. +- If a requested task falls outside the defined milestones, **stop and ask the maintainer** rather than proceeding. + +--- + ## Unit Test Coverage ### Coverage Target: 95% and Above @@ -181,6 +192,7 @@ Whenever a feature is added, modified, or removed, you **must** update the follo When reviewing or generating code, verify: +- [ ] Task is part of an active milestone in `MILESTONES.md` (⬜ Not Started or 🔶 In Progress) — **do not proceed if it is not**. - [ ] All public APIs have `///` documentation comments. - [ ] Unit tests cover the new code with ≥ 95% branch coverage. - [ ] Performance-sensitive code includes `measure {}` benchmarks. diff --git a/COPILOT_INSTRUCTIONS.md b/COPILOT_INSTRUCTIONS.md index d5d70bd..f53ba21 100644 --- a/COPILOT_INSTRUCTIONS.md +++ b/COPILOT_INSTRUCTIONS.md @@ -17,6 +17,17 @@ The **public API must be backend-agnostic**. Consumers should never need to know --- +## Scope of Work + +> **You must only work on tasks that are explicitly defined in [`MILESTONES.md`](MILESTONES.md).** + +- **Do not** implement features, fix bugs, refactor code, add tests, or make any other changes that are not part of a milestone listed in `MILESTONES.md`. +- **Do not** add new milestones, deliverables, or acceptance criteria without explicit instruction from the project maintainer. +- Before starting any task, verify that it maps to an active (⬜ Not Started or 🔶 In Progress) milestone in `MILESTONES.md`. +- If a requested task falls outside the defined milestones, **stop and ask the maintainer** rather than proceeding. + +--- + ## Architecture Rules ### No UI Frameworks in Core Targets