Repository navigation
Description
Split from #4730.
The project review sends the summary of a private repository only to its own tracker issue. The current issue chooses review facts by project profile. The routing of a private summary is a separate behavior and the issue's acceptance criteria do not cover it. Defer it so that the profile-based fact selection can ship alone. Acceptance criteria: A fixture private repository with a tracker issue writes the summary to that tracker issue and sends no summary request for another repository. A fixture public repository writes its summary as before.
Proposed design
Problem statement
A project review sends the summary of a private repository only to that repository's tracker issue. The current review summary routing does not handle this case, so the profile-based review fact selection cannot ship alone. Add private-summary routing and keep the public summary path unchanged.
Acceptance criteria
Requirement: Private summary goes to tracker issue
When a project review runs for a private repository that has a tracker issue, the review SHALL write the summary to that tracker issue and MUST NOT send a summary request for another repository.
Scenario: Private repository with tracker issue
- WHEN The review summary routing runs for a fixture private repository with a tracker issue and a fake summary sink.
- THEN The fake summary sink records exactly one summary write, and its repository and issue match the fixture tracker issue.
Requirement: Public summary keeps existing route
When a project review runs for a public repository, the review SHALL keep the existing summary destination and MUST NOT write to a tracker issue.
Scenario: Public repository
- WHEN The review summary routing runs for a fixture public repository with a fake summary sink.
- THEN The fake summary sink records exactly one summary request to the existing public destination, and it records no tracker-issue write.
Requirement: Private repository without tracker issue sends no summary
When a project review runs for a private repository that has no tracker issue, the review SHALL send no summary request.
Scenario: Private repository without tracker issue
- WHEN The review summary routing runs for a fixture private repository with no tracker issue and a fake summary sink.
- THEN The fake summary sink records zero summary writes.
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers this internal routing of a private project review summary. Build it in the existing review summary code: about 15,000 tokens to build, keep and fix, and about 2 hours elapsed.
Key questions
- How should the review choose the summary destination for a private repository?: Use the project profile: a private repository with a tracker issue targets that issue. Keep the existing public path for every other repository. Do not add a summary-target config key. (best practice) [sources: CONTEXT.md]
- Chosen: Derive the target from the project profile. The project profile holds repository facts, and CONTEXT.md says config holds operational keys only, never a project fact.
- Rejected: Add a summary-target config key. This puts a project fact in devops-cli config, which CONTEXT.md forbids.
- How should a test prove that no summary request goes to another repository?: Inject a fake summary sink into the review summary routing and assert the recorded calls. The private fixture must record exactly one call to its tracker issue. (best practice) [sources: docs/TESTING.md]
- Chosen: Inject a fake summary sink. It records calls without network access and lets the test assert the target.
- Rejected: Patch the HTTP client globally. A global patch is brittle and hides which repository the code requested.
- What happens for a private repository with no tracker issue?: Send no summary request. The summary must not go to another repository. (best practice) [sources: SECURITY.md, AGENTS.md]
- Chosen: Send no summary. A private summary must not leave its tracker issue, and no tracker issue means no valid destination.
- Rejected: Send to the existing public path. That would send private data outside its tracker issue.
Fit
Fits in one pull request.
Suspected block
None.
Activity
devops-cli-service commentedon Nov 25, 2026
Both work on the project review pipeline; #4730 selects review facts by profile while this item routes the private summary to the correct tracker issue.devops-cli-service commentedon Nov 25, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
devops-cli-service commentedon Nov 25, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.