Skip to content

Suppress context files under review in elaboration output#81

Merged
Malcolmnixon merged 4 commits into
mainfrom
feature/suppress-context-duplicates
Jun 23, 2026
Merged

Suppress context files under review in elaboration output#81
Malcolmnixon merged 4 commits into
mainfrom
feature/suppress-context-duplicates

Conversation

@Malcolmnixon

Copy link
Copy Markdown
Member

This pull request implements and documents a new deduplication rule for context files in the ReviewMark configuration system. Now, when a file appears in both the context: list and a review set's paths: list, it is shown only in the Files subsection and suppressed from the Context subsection in the elaboration output. This ensures each file's purpose is clear and avoids conflicting guidance. The change is fully documented, requirements-tracked, and tested.

Deduplication logic and implementation:

  • Updated ElaborateReviewSet in ReviewMarkConfiguration.cs to resolve files-under-review first and suppress any overlapping files from the Context subsection, ensuring a file cannot serve both purposes in the same output.
  • Adjusted file emission logic in ElaborateReviewSet to reflect the new deduplication behavior.

Documentation and requirements:

  • Added a new requirement (ReviewMark-Config-ContextDeduplication) to the requirements YAML, specifying that files present in both context and paths are only shown in the Files list, with justification and test references.
  • Updated the Markdown documentation to explain the new suppression rule, including coverage notes and requirement references. [1] [2] [3]

Testing:

  • Added two new unit tests to verify that files present in both context and paths are suppressed from the Context subsection, and that context files not in paths are shown as expected.

Malcolm Nixon and others added 2 commits June 22, 2026 21:51
…n output

When a file appears in both the context: list and the paths: list for a
given review set, it is suppressed from the Context subsection and shown
only in the Files subsection. This prevents the same file from being
presented with contradictory purpose in a single elaboration output.

- Update ElaborateReviewSet() to subtract files-under-review from context
- Add requirement ReviewMark-Config-ContextDeduplication
- Add design note for the deduplication step
- Add tests for suppression and non-suppression cases
- Add verification entries

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…n output

When a file appears in both the context: list and the paths: list for a
given review set, it is suppressed from the Context subsection and shown
only in the Files subsection. This prevents the same file from being
presented with contradictory purpose in a single elaboration output.

- Update ElaborateReviewSet() to subtract files-under-review from context
- Add requirement ReviewMark-Config-ContextDeduplication
- Add design note for the deduplication step
- Add tests for suppression and non-suppression cases
- Add verification entries

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 23, 2026 02:15

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 updates ReviewMark’s configuration elaboration output so that any file that is both (a) under review via a review set’s paths: and (b) matched by context: is shown only under Files and suppressed from Context, preventing the same file from being presented with two purposes in one elaboration.

Changes:

  • Updated ElaborateReviewSet to resolve files-under-review first and filter overlapping context entries out of the Context subsection.
  • Added unit tests covering suppression when a file is in both context and paths, and non-suppression when a context file is not in paths.
  • Documented and requirements-tracked the new deduplication rule (design + verification + reqstream requirement).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/DemaConsulting.ReviewMark.Tests/Configuration/ReviewMarkConfigurationTests.cs Adds tests validating context-vs-files suppression behavior in elaboration output.
src/DemaConsulting.ReviewMark/Configuration/ReviewMarkConfiguration.cs Implements context suppression for files that are also under review in the same review set.
docs/verification/review-mark/configuration/review-mark-configuration.md Documents verification coverage for the new requirement and the added tests.
docs/reqstream/review-mark/configuration/review-mark-configuration.yaml Adds a new requirement describing the context deduplication/suppression behavior.
docs/design/review-mark/configuration/review-mark-configuration.md Updates design documentation to describe the new suppression rule.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/DemaConsulting.ReviewMark/Configuration/ReviewMarkConfiguration.cs Outdated
Comment thread src/DemaConsulting.ReviewMark/Configuration/ReviewMarkConfiguration.cs Outdated
Malcolmnixon and others added 2 commits June 22, 2026 22:18
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants