Skip to content

feat: deliver Companion alpha releases through a Store development flight - #2027

Merged
RomneyDa merged 5 commits into
openclaw:mainfrom
RomneyDa:feat/store-development-flight
Nov 17, 2026
Merged

RomneyDa merged 5 commits into
openclaw:mainfrom
RomneyDa:feat/store-development-flight

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Enrolled Companion testers need alpha releases through a Store Development flight without restoring native-repository publishing authority.

User Impact

Qualified alpha releases can request the central Development destination; production remains the default. Delivery depends on releases #51, administrator configuration and live flight qualification. Automatic delivery remains default-off.

Why This Change Was Made

Resolved conflicts with merged #1891 by retaining its request-only adapter and deleting the retired native publisher, resolver and tests. The five-file residual change adds alpha source witnesses, channel-aware central requests, independent automatic-request gating, tests and documentation. Publisher authorization and GUID normalization now belong to releases #51.

Evidence

Current head: ccc08f9ee51cf635ed0dd481cae87c1a1213ec76, merging main 1739bad4bc4e3a0642e4acabd9516937f73d3ac7. Original contributor commits remain ancestors; no force push.

45 request scenarios pass. Independent Codex P0-P3 review of the residual five-file candidate: scoped-clean. The central dependency separately passed 72 authorization, 23 flight, 4 workflow-handoff cases and the production publisher suite. Neither assessment establishes live Store publication.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required proof pools

  • windows-clean-installer-upgrade: first certified flight must update the installed Store identity without data loss.
  • windows-11-arm64: verify flight delivery and launch for the ARM64 package.

Validation

  • pwsh -NoProfile -File scripts/test-store-publication-request.ps1: 45 scenarios passed.
  • actionlint -shellcheck= -pyflakes= .github/workflows/submit-microsoft-store.yml .github/workflows/ci.yml: passed.
  • git diff --cached origin/main --check: passed; no unresolved merge paths.
  • scripts/test-ci-workflow-contract.ps1: failed at line 890, crash-metadata field fixture on macOS; no test weakened or unrelated repair included.
  • scripts/validate-docs.ps1: blocked by existing Windows-backslash proof-pool path lookup on macOS.
  • build.ps1: blocked, Windows required. Full Shared/Tray/native Windows test closeout not rerun for this integration.
  • Fresh hosted CI pending; previous-head CI is not current proof.
  • No live OIDC, approval deployment, Store upload/commit, certification or tester upgrade executed.

Real Behavior Proof

  • Environment tested: macOS, PowerShell 7; real request adapter with synthetic GitHub transport.
  • PR head or commit tested: ccc08f9ee51cf635ed0dd481cae87c1a1213ec76 (same five-file source candidate tested before commit).
  • Exact steps or command run: request suite and actionlint above.
  • Evidence after fix: 45 scenarios pass, including alpha.0/alpha.1, case variants, cross-channel rejection and automatic/manual dispatch parameters.
  • Observed result: requests select the fixed central Companion product; no native Store credential exchange or publisher remains.
  • Screenshot or artifact links verified? N/A; fixtures, not live Store receipts.
  • Not verified or blocked: central dependency landing, required Windows proof and complete live flight qualification.

Security Impact

  • New permissions or capabilities? No new native Store permission; central eligibility extension is isolated in releases chore: clean up stale files, fix repo URLs, delete 10 stale branches #51.
  • Secrets or tokens handling changed? No; existing request-only GitHub App token.
  • New or changed network calls? Yes; central requests carry Development channel and automatic status.
  • Command or tool execution surface changed? Yes; destination input on the existing request adapter.
  • Data access scope changed? No.
  • Risk and mitigation: release-manager approval, source/witness/hash verification and product-specific flight identity remain central. No restored native publisher or bypass.

Compatibility and Migration

  • Backward compatible? Yes; production is the default and retains existing dispatch arguments.
  • Config or environment changes? Yes; native MSSTORE_DEVELOPMENT_ENABLED gates automatic requests. Central MSSTORE_COMPANION_DEVELOPMENT_FLIGHT_ID and MSSTORE_COMPANION_DEVELOPMENT_ENABLED own destination/activation.
  • Migration needed? Yes; land releases chore: clean up stale files, fix repo URLs, delete 10 stale branches #51 before flight use, configure the central destination, resolve initial draft and qualify Store install/upgrade before activation. The retired native flight variable is no longer consumed.
  • No settings or activation changed during this repair.

Review Conversations

Earlier native-publisher reviews are historical; do not treat their scores or fixture counts as review of this reduced request-only patch.

@clawsweeper

clawsweeper Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

🦞👀
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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge.

What this changes

Adds qualified Companion alpha delivery through a Microsoft Store Development flight using the existing protected publisher.

Example: Publish the qualified v2026.11.1-alpha.1 release for enrolled Store testers.

  • Before: The Store source resolver rejects alpha releases.
  • After: The alpha can target the configured Development flight after qualification and activation.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful and focused architecture, but an introduced destination-selection defect blocks correctness and mocked fixtures do not establish the changed publishing behavior; application storage schemas and existing production defaults remain unchanged.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦪 silver shellfish (2/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Enrolled community testers cannot receive Companion alphas through normal Microsoft Store updates.
Reason: The maintainer-authored direction provides a useful distribution path while retaining the existing publisher, production default, protected identity, and independent activation flags.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep this maintainer-authored feature open: main lacks Development-flight delivery, and the proposed publisher has an actionable channel-selection defect.

Priority: P2
Reviewed head: 106b76821ed00ba6ae1a175888625498c7dfe98c

Before merge

  • Add real behavior proof - Authority-chain proof required: supplied current-head evidence exercises the resolver and publisher separately with mocked HTTP/upload callbacks. After repair, show the protected publishing path accepting a qualified alpha only for its configured flight and rejecting production targeting, missing flight identity, and foreign or reassigned drafts before mutation or commit. Live OIDC, upload/commit, certification, and Store install/upgrade are expressly unverified; provide redacted terminal output or logs without tokens, personal data, or non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Normalize channels before choosing the Store destination (P2) - ValidateSet accepts capitalization variants by default, so -Channel Development is valid input but makes $isFlight false. With no FlightId, the missing-flight guard is bypassed and an otherwise valid invocation proceeds against production submission endpoints, potentially committing the bundle to the public audience. With a FlightId it instead raises the misleading production error. The workflow's lowercase choices avoid this, but the script parameter itself accepts the unsafe input. Normalize the channel or use consistent case-insensitive channel comparisons; apply the same correction to the resolver, where Auto and Development currently return ineligible.
  • Resolve security concern: Destination selection can widen the publication audience - The publisher has sufficient authority to commit production submissions, so a channel-parsing mistake reaches a consequential external effect rather than merely producing incorrect diagnostics.

Findings

  • [P2] Normalize channels before choosing the Store destination — scripts/Submit-MicrosoftStore.ps1:20-23
  • [medium] Destination selection can widen the publication audience — scripts/Submit-MicrosoftStore.ps1:20

Tests

  • Missing end-to-end proof: Supplied fixtures do not demonstrate the composed protected workflow's real Store submission, forbidden-destination rejection, certification, or retained-data install/upgrade on the declared Windows proof pools.
Agent review details

How this fits together

GitHub release workflows produce a bundle and provenance witness; the protected Store workflow selects the release, obtains an OIDC identity, and submits its packages to Partner Center.

flowchart LR
  A[Published release] --> B[Bundle and witness]
  B --> C[Source authorization]
  C --> D[Protected Store publisher]
  D --> E[Production submission]
  D --> F[Development flight]
  F --> G[Enrolled Store testers]
Loading

Technical review

Best possible solution:

Normalize channel values in the existing resolver and publisher, preserve production isolation, and complete the staged Store qualification before activation.

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

Main's alpha rejection is source-verifiable, and the introduced capitalization defect follows directly from ValidateSet's documented case-insensitive acceptance and the publisher's case-sensitive branch; no target code was executed.

Is this the best way to solve the issue?

Extending the existing protected publisher is the smallest coherent approach, provided every accepted channel spelling preserves the destination invariant.

Full review comments:

  • [P2] Normalize channels before choosing the Store destination — scripts/Submit-MicrosoftStore.ps1:20-23
    ValidateSet accepts capitalization variants by default, so -Channel Development is valid input but makes $isFlight false. With no FlightId, the missing-flight guard is bypassed and an otherwise valid invocation proceeds against production submission endpoints, potentially committing the bundle to the public audience. With a FlightId it instead raises the misleading production error. The workflow's lowercase choices avoid this, but the script parameter itself accepts the unsafe input. Normalize the channel or use consistent case-insensitive channel comparisons; apply the same correction to the resolver, where Auto and Development currently return ineligible.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 4aee38a1bfaa.

Provenance checked

  • Publisher ownership, metadata verification, and ambiguous commit handling keeps the original intent (8ca63eb: Publish validated bundles through protected main code while preserving product metadata and foreign or ambiguously committed submissions.)
  • Stable-only release eligibility and witness creation changes intended behavior with a stated reason (8ca63eb: Bind production submission to successful published stable/correction releases or approved promotion; this PR explicitly adds a separate alpha flight.)

Testing

Proof path: unit tests only.

Security

Needs attention: Accepted channel capitalization can cross the intended Development-to-production publication boundary.

Evidence

Security concerns:

  • [medium] Destination selection can widen the publication audience — scripts/Submit-MicrosoftStore.ps1:20
    The publisher has sufficient authority to commit production submissions, so a channel-parsing mistake reaches a consequential external effect rather than merely producing incorrect diagnostics.
    Confidence: 0.98

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 8ca63eb adds scripts/Submit-MicrosoftStore.ps1:1 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 8ca63eb746bf; files: scripts/Submit-MicrosoftStore.ps1)
  • Karen: Raw commit 94006b3 adds .github/workflows/ci.yml:1869 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 94006b3672a0; files: .github/workflows/ci.yml)

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.

Review metrics

Metric Value Why it matters
Introduced change size Publisher/resolver and workflows +113/-30; tests +177/-3; documentation +50/-4. The growth extends existing owners and adds distinct flight routing, draft ownership, metadata drift, and ambiguous-commit cases without a parallel publisher.

Labels

Label changes:

  • add P2: This is an opt-in release-distribution improvement with a direct-script destination defect; the current workflow supplies lowercase channel values.
  • add merge-risk: 🚨 security-boundary: An accepted Development capitalization variant can select the public production submission path during direct publisher invocation.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • P2: This is an opt-in release-distribution improvement with a direct-script destination defect; the current workflow supplies lowercase channel values.
  • merge-risk: 🚨 security-boundary: An accepted Development capitalization variant can select the public production submission path during direct publisher invocation.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

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 5, 2026, 7:10 PM ET / November 6, 2026, 00:10 UTC.

@RomneyDa
RomneyDa marked this pull request as ready for review November 7, 2026 01:07
@roboclaw-bot

Copy link
Copy Markdown
Contributor

PR cleanup review

Reviewed head: ea8efa0852dcaadca78571c6fbb993a2d4103c06. Main comparison: e59374c064f43d68f5c72d070d4c89ef2d20ec3b.

The development-flight path is not on main and is not a duplicate of the existing production publisher. The source keeps separate channel flags, verified release witnesses and draft ownership, which is the right boundary. This is release automation rather than a low-risk cleanup item: please retain the default-off policy and provide an authorized current-head flight rehearsal, certification/publication receipt and tester install/upgrade evidence before enabling automation. Fixture passes and CommitStarted alone do not establish Store publication.

Action in this cleanup pass: leaving this PR open. No branch changes or runtime-proof waiver. The findings above come from source, discussion and recorded-CI review; Windows validation was not rerun in this pass.

@RomneyDa
RomneyDa requested a review from a team as a code owner November 17, 2026 01:07
@RomneyDa
RomneyDa merged commit 9080a27 into openclaw:main Nov 17, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. P2 Normal priority bug or improvement with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants