Skip to content

fix(repo-universe): never mirror the target repo or already-closed issues - #11748

Merged
dezren39 merged 1 commit into
mainfrom
fix/universe-self-mirror
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/universe-self-mirror

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Before: the repo-universe pull-in mirrored developing-today/code into itself. Every new issue here got a [developing-today/code#N] mirror here, the next cycle mirrored that mirror ([developing-today/code#M] [developing-today/code#N] ...), and so on, one level per cycle. A new issue that was already closed when the cycle saw it also got an open mirror that nothing resolved, since the source never moved from open to closed in state. About 320 open universe/owned issues are such mirrors, many of closed work.

After: the target repo is never mirrored. Its state is still recorded, so the shared checker state stays complete, and the report says "never mirrored". A new issue that is already closed gets no mirror, and an open mirror found for it is resolved.

How: run_pull_in takes target_repo (from --target-repo, default developing-today/code) and skips acting on it; _act_on_delta skips closed new issues and shares a _resolve helper with the closed path. Two new offline tests: test_target_repo_is_never_mirrored, test_new_issue_already_closed_gets_no_mirror. All 12 pull-in tests pass.

The mirrors already open are left as they are; cleaning them up is a separate step.

Related to #1511.


Generated by Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…sues

The inventory watches developing-today/code, which is also the mirror
target, so each pull-in cycle mirrored new issues into the repo they
already live in, then mirrored those mirrors a level deeper next
cycle. A new issue that was already closed also got an open mirror
that nothing ever resolved.

pull-in now records the target repo's state but takes no mirror
action for it, and a closed new issue gets no mirror (an open one
found for it is resolved).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 marked this pull request as ready for review November 18, 2026 08:39
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 08:39
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit 94cae4a into main Nov 18, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T08:40:38.145681Z 6db9c59 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 deleted the fix/universe-self-mirror branch November 18, 2026 08:39
This was referenced Nov 18, 2026
This was referenced Nov 18, 2026
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