Skip to content

fix(ci): keep switched release helper private - #200534

Merged
vincentkoc merged 1 commit into
mainfrom
fix/ci-private-switched-release-helper-20261117
Nov 17, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/ci-private-switched-release-helper-20261117

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

The production unused-export check reports the switched Git release helper even though only its own update module calls it.

Related: #199706

User Impact

No user-visible behavior changes. The update helper remains available to its existing local caller without exposing an unused module export.

Why This Change Was Made

Remove only the export modifier from isSwitchedGitRelease. Its implementation and the update convergence flow are unchanged; no SDK or external module imports it.

Evidence

  • Production Knip previously reported this helper plus two existing transcript-path exports. With this one-keyword change, the helper finding disappears and only those two known findings remain; the aggregate scan is still red.
  • All three existing switched-release cases pass: convergence without Doctor, --no-restart, and an already-current converted install.
  • CLI-update test typecheck, targeted type-aware lint, format, and diff checks pass.
  • Fresh independent local review: no P0–P3 findings.

Scoped validation used the qualified native checkout at 52a092684c20d2efec4848475382d0225bef0130, temporarily overlaying only this owner file. The update owner and test inputs match this branch; the checkout was restored byte-for-byte afterward. This is scoped validation, not a full exact-head CI result. Broader PR CI remains pending.

@vincentkoc vincentkoc self-assigned this Nov 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: XS labels Nov 17, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 17, 2026 09:44
@vincentkoc
vincentkoc enabled auto-merge (squash) November 17, 2026 09:48
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Removes the unused export from the internal switched Git release helper.

Example: Production Knip scans isSwitchedGitRelease.

  • Before: The locally used helper is exported and reported as an unused export.
  • After: The helper remains callable within its module without exposing an unused export.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Minimal, source-verified maintenance change with focused reported validation and no findings; broad exact-head CI is still pending.
Proof confidence 🐚 platinum hermit (4/6) This export-only cleanup changes no user-visible behavior; focused existing convergence tests and static checks are reported in the body.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: The production unused-export audit reports an internal helper that needs no module export.
Reason: The maintainer-authored change removes unnecessary exposure without changing defaults, public APIs, persisted state, or runtime behavior.

Merge readiness

✅ Ready for maintainer review

This PR is a useful, minimal cleanup: the helper has only a local caller, and removing its export preserves runtime behavior. No actionable findings; exact-head CI remains pending.

Priority: P3
Reviewed head: e1641a8feb581da2a9ebe95eb3045f28cc288337

Before merge

None.

Findings

None.

Agent review details

How this fits together

The CLI update convergence module receives update results and coordinates post-update plugin work; its private predicate identifies switched Git releases.

flowchart LR
  A[CLI update finalization] --> B[Plugin convergence]
  B --> C[Switched release predicate]
  C --> D[Release slot reader]
  B --> E[Post-update result]
Loading

Technical review

Best possible solution:

Keep the predicate private in its existing convergence owner.

Do we have a high-confidence way to reproduce the issue?

Source verifies an exported helper with no external consumers; the reported Knip result was not independently rerun.

Is this the best way to solve the issue?

Removing only export is the smallest complete fix and preserves the original update behavior without adding machinery or tests.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 71d835b63abc.

Provenance checked

  • Switched Git release detection keeps the original intent (6747b1e: Detect switched Git releases so convergence stays in the updater and preserves the release-specific Doctor and restart behavior.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 6747b1e adds src/cli/update-cli/update-command-convergence.ts:54 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6747b1ec5ae3; files: src/cli/update-cli/update-command-convergence.ts)
  • Vincent Koc: Raw commit 1232d3f adds src/cli/update-cli/update-command-convergence.ts:87 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1232d3f13ec0; files: src/cli/update-cli/update-command-convergence.ts)
  • Peter Steinberger: Raw commit 212f041 adds src/cli/update-cli/update-command-convergence.ts:76 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 212f04188a05; files: src/cli/update-cli/update-command-convergence.ts)

PR surface

Source 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: A one-keyword internal export cleanup with no user-visible runtime change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: A one-keyword internal export cleanup with no user-visible runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 17, 2026, 4:58 AM ET / 09:58 UTC.

@vincentkoc
vincentkoc merged commit 3437bc3 into main Nov 17, 2026
209 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-private-switched-release-helper-20261117 branch November 17, 2026 10:16
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant