Skip to content

Scope Skill Forge PR deduplication to target repository - #47

Merged
GolaraJ merged 1 commit into
mainfrom
golaraj/fix-forge-pr-dedup-scope
Sep 2, 2026
Merged

Scope Skill Forge PR deduplication to target repository#47
GolaraJ merged 1 commit into
mainfrom
golaraj/fix-forge-pr-dedup-scope

Conversation

@GolaraJ

@GolaraJ GolaraJ commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • require Forge marker and related-PR searches to include the target repository
  • verify repository identity before parsing markers and filter foreign PRs
  • add regression coverage for malformed cross-repository proposal results

Ports the fix from github/copilot-dreaming-tasks#78 and addresses the unscoped deduplication problem tracked in github/copilot-dreaming-tasks#58.

Validation

  • python3 -m unittest discover -s plugins/repo-dreamer/skills/repository-skill-forge/tests

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The changes consistently scope catalog generation to the target repository, update documentation accordingly, and add focused regression tests for the new behavior.

Review tier: Lite
Findings: None

What changed in this PR

This PR scopes Skill Forge proposal deduplication and related-PR discovery to the intended target repository by requiring repository identity in PR search results, filtering out foreign-repo PRs before parsing markers, and erroring on marked PRs that lack repository identity.

Changes:

  • Updated proposal-ledger.py catalog building to require a --repository target, derive/validate PR repository identity, and filter foreign PRs before marker parsing.
  • Updated skill policy documentation to require repo:owner/name-scoped searches and pass the target repository into the catalog builder.
  • Added regression tests covering foreign-repo PR filtering and rejection of marked PRs without repository identity.
File Description
plugins/​repo-dreamer/​skills/​repository-skill-forge/​scripts/​proposal-ledger.py Adds repository identity extraction + target-repo filtering and makes catalog generation require the target repository.
plugins/​repo-dreamer/​skills/​repository-skill-forge/​SKILL.md Documents repo-scoped PR searching and the new --repository argument when building the proposal catalog.
plugins/​repo-dreamer/​skills/​repository-skill-forge/​tests/​test_stateless_forge.py Updates existing catalog tests for repository identity and adds regression coverage for cross-repo/malformed inputs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@GolaraJ
GolaraJ merged commit a23f75d into main Sep 2, 2026
1 check passed
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