Skip to content

fix(update): route stored dev package installs to git - #134440

Merged
RomneyDa merged 1 commit into
extended-stable/2026.6.33from
codex/backport-es35-stored-dev
Aug 31, 2026
Merged

RomneyDa merged 1 commit into
extended-stable/2026.6.33from
codex/backport-es35-stored-dev

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

Backports the stored update.channel: dev routing contract to the extended-stable candidate. A package install with stored dev now switches to the Git update flow; a one-off --tag remains package-scoped, while explicit --channel dev still takes precedence.

This replaces the main-only acceptance workaround proposed in #134394: the candidate package is the behavior under test, so its documented update contract belongs in update-command.ts, not in a capability-based test exemption.

Evidence

  • Prior release check: update-channel Docker lane expected Git but candidate returned npm/package routing: job 99385643608.
  • Candidate docs already define dev as a Git checkout, including package-to-Git switching: docs/install/development-channels.md.
  • Focused test runs in this checkout are blocked before collection by the known local Vitest/Rolldown worker stall; oxlint for both touched files and git diff --check pass. Hosted exact-head CI is the required runtime proof.

Scope

Production: +6/-2. Tests: +41/-0. No dependency, tag, npm, schema, or config-shape change.

@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added the cli CLI command changes label Aug 31, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 31, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. 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. labels Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 3:56 PM ET / 19:56 UTC.

ClawSweeper review

What this changes

This PR makes a package install with stored update.channel: dev use the existing Git update flow unless a one-off package --tag was supplied.

Regression provenance

Possible regression — probable (reviewed change; known regression link). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for maintainer release review. The focused updater change restores the documented stored-dev behavior and preserves the one-off tag exception, but it changes install-mode behavior on an extended-stable candidate and the supplied exact-head check rollup is still incomplete.

Priority: P2
Reviewed head: add06de767362b5e161864a300b6454f8d3bd58f
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a focused, owner-level restoration of documented routing with relevant regression controls; release-candidate validation is still pending.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored PR is exempt from the external-contributor proof gate; the source maps the changed selection directly to the existing Git/package execution branches, while completed exact-head candidate validation remains a release-review requirement.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored PR is exempt from the external-contributor proof gate; the source maps the changed selection directly to the existing Git/package execution branches, while completed exact-head candidate validation remains a release-review requirement.
Evidence reviewed 6 items Central routing owner: The command derives selectedChannel from explicit, stored, or install defaults, then the introduced condition sends a non-Git install to the Git flow for stored dev only when no explicit tag is present.
Existing user contract: The release-channel documentation says a persisted dev selection ensures a Git checkout, while --tag is a one-off package-install target that does not persist.
Regression coverage: The introduced tests cover stored dev/no tag selecting Git and stored dev with --tag latest retaining package mode.
Findings None None.
Security None None.

How this fits together

The update CLI combines explicit arguments, persisted update-channel configuration, and detected install type to select either a package-manager or Git update. That selection determines the code installation updated before plugin synchronization and gateway restart handling.

flowchart LR
  A[CLI arguments] --> C[Update-channel selection]
  B[Stored update configuration] --> C
  D[Detected install type] --> C
  C --> E{Choose update mode}
  E --> F[Git checkout updater]
  E --> G[Package manager updater]
  F --> H[Plugin sync and restart]
  G --> H
Loading

Decision needed

Question Recommendation
Should the extended-stable/2026.6.33 candidate include the already-main-proven stored-dev routing backport after its exact-head candidate validation completes? Include after validation: Merge after the exact-head candidate lane confirms the no-tag Git transition and tagged package transition.

Why: The code restores an existing documented contract, but deciding whether that install-mode correction belongs in this release candidate is a release-inclusion choice for maintainers.

Before merge

  • Resolve merge risk (P1) - Existing package installs with stored update.channel: dev will switch to a Git checkout on their next untagged update; that is documented behavior, but the extended-stable candidate still needs its exact-head candidate lane to complete before inclusion.
Agent review details

Security

None.

PR surface

Source +4, Tests +41. Total +45 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 6 2 +4
Tests 1 41 0 +41
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 47 2 +45

Review metrics

None.

Root-cause cluster

Relationship: canonical
Canonical: #134440
Summary: This is the focused extended-stable backport of stored-dev routing; the main-branch repair and prior test-harness proposal overlap but do not replace the release-target work.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Complete candidate validation (recommended)
    Wait for the exact-head extended-stable candidate lane to prove both routing outcomes before merging.
  2. Decline the backport
    Leave the release line unchanged if maintainers do not want stored dev installs to change modes in this candidate.

Technical review

Best possible solution:

Land the narrow owner-level backport only after completed exact-head candidate validation confirms both the stored-dev Git transition and the one-off-tag package transition on the release target.

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

Yes for a source-level reproduction: on the base, stored dev participates in channel selection but only an explicit --channel dev could set switchToGit. No reviewer-run candidate execution was performed.

Is this the best way to solve the issue?

Yes. The condition belongs at the centralized install-mode decision and retains the established explicit-dev and one-off-tag semantics; the closed harness workaround in #134394 would not repair the candidate runtime.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 72aae2182a60.

Labels

Label justifications:

  • P2: This is a bounded correction to documented update routing with limited but real impact on configured package installs.
  • merge-risk: 🚨 compatibility: Merging changes an existing stored-dev package install's next untagged update from a package operation to a Git checkout transition.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored PR is exempt from the external-contributor proof gate; the source maps the changed selection directly to the existing Git/package execution branches, while completed exact-head candidate validation remains a release-review requirement.

Evidence

What I checked:

Likely related people:

  • Chinmayrawat15: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let the exact-head candidate lane complete and inspect the stored-dev/no-tag and stored-dev/one-off-tag outcomes.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-31T19:48:31.374Z sha add06de :: needs maintainer review before merge. :: none

@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa
RomneyDa merged commit bc974c5 into extended-stable/2026.6.33 Aug 31, 2026
103 checks passed
@RomneyDa
RomneyDa deleted the codex/backport-es35-stored-dev branch August 31, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. 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