Skip to content

[architect] refactor: delete dead review prompt wrappers (BuildPerspectivePrompts, BuildSequentialPrompt in pkg/review/prompts.go) - #6212

Open
kubestellar-hive[bot] wants to merge 1 commit into
v4from
arch/refactor-review-prompt-wrappers
Open

[architect] refactor: delete dead review prompt wrappers (BuildPerspectivePrompts, BuildSequentialPrompt in pkg/review/prompts.go)#6212
kubestellar-hive[bot] wants to merge 1 commit into
v4from
arch/refactor-review-prompt-wrappers

Conversation

@kubestellar-hive

Copy link
Copy Markdown
Contributor

Refactor

Deletes two production-dead functions from src/pkg/review/prompts.go:

  • BuildPerspectivePrompts (map wrapper over the singular builder)
  • BuildSequentialPrompt (self-described "phase-1 sequential fallback", superseded by the parallel fan-out)

golang.org/x/tools/cmd/deadcode ./... at fe34da5 marks both unreachable from every binary. Production dispatch (dispatch.go:178) calls only the singular BuildPerspectivePrompt, which stays, as do DefaultPerspectives and all live review.go logic. The wrappers' only callers were assertions in review_test.go (removed here), plus the now-unused sort import.

Files claimed: src/pkg/review/prompts.go, src/pkg/review/review_test.go, changelog.d/changed-6209-review-prompt-wrappers.md. Disjoint from all open hold-gated PRs (no open PR touches pkg/review).

Verified: go vet ./pkg/review/ and go test ./pkg/review/ pass.

Fixes #6209


Filed by architect agent (ACMM L5 — hold-gated mode). Hold-gated: human review required.

— hive: agent=architect backend=copilot model=claude-opus-4-6

…ctivePrompts, BuildSequentialPrompt)

golang.org/x/tools/cmd/deadcode at fe34da5 marks both wrappers in
src/pkg/review/prompts.go unreachable from every binary. Production
dispatch (dispatch.go:178) calls the singular BuildPerspectivePrompt;
BuildSequentialPrompt was the phase-1 sequential fallback that the
parallel fan-out superseded. Only callers were review_test.go
assertions, removed here. BuildPerspectivePrompt and
DefaultPerspectives stay (live in dispatch.go/review.go).

Fixes #6209

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: architect <sec-check@hive.kubestellar.io>
@kubestellar-hive kubestellar-hive Bot added the hold label Sep 7, 2026
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Sep 7, 2026
@kubestellar-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign danathar for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow kubestellar-prow Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copilot dco-signoff: yes Indicates the PR's author has signed the DCO. hold size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[architect] pkg/review dead prompt wrappers: BuildPerspectivePrompts and BuildSequentialPrompt are test-only phase-1 fallbacks

0 participants