Skip to content

feat: make the policy optional (zero-policy mode) - #11

Merged
ommgh merged 1 commit into
mainfrom
zero-policy-mode
Nov 14, 2026
Merged

ommgh merged 1 commit into
mainfrom
zero-policy-mode

Conversation

@ommgh

@ommgh ommgh commented Nov 11, 2026

Copy link
Copy Markdown
Member

Plan 06, session 1 (plan B: no hosted backend).

What changes

  • policy is optional in UpwellOptions and <UpwellProvider>. Without it the controller skips the fetch and the last-known-good cache, policyError stays null, and the trace says policy: none.
  • The engine already handled a missing policy, so this is a small controller change. Without a policy:
    • Android (from Play): recommends Play's update with the flexible flow. Priority 5 stays a recommendation; it never becomes a required update.
    • iOS: recommends a newer App Store version with the App Store sheet.
    • OTA: updates still download and apply.
    • Not available: forced updates (minimum) and stranded detection.
  • A policy cached by an earlier setup is ignored once the option is removed.
  • Docs: the quick start leads with the no-policy setup, then "Add a policy" with a table comparing the two setups. The policy overview, intro, controller reference and READMEs say the policy is optional.
  • Example app: a "No policy" preset.
  • Fixes an import-order lint warning already on main (schema.test.ts), which was failing npm run lint.

Tests

  • 6 new controller tests (without a policy) and 1 provider test. npm test, npm run lint and npm run typecheck pass locally.
  • Not yet run on a device.

Changeset: upwell minor.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RX4BmMoDWeVe1veCF2cV8t

Without a policy, Upwell applies OTA updates and recommends store
updates that Play or the App Store report. Forced updates and stranded
detection still need one. Docs lead with the no-policy setup; the
example app gets a "No policy" preset. Plan 06 session 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RX4BmMoDWeVe1veCF2cV8t
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
upwell-docs Ready Ready Preview Nov 11, 2026 8:25pm UTC

@ommgh
ommgh merged commit 5eb2e3d into main Nov 14, 2026
1 check passed
@ommgh
ommgh deleted the zero-policy-mode branch November 14, 2026 07:21
@ommgh
ommgh restored the zero-policy-mode branch November 14, 2026 07:26
@ommgh
ommgh deleted the zero-policy-mode branch November 14, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant