Skip to content

[3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup - #3852

Merged
integry merged 26 commits into
3758-epic-runtime-abstraction-sc0from
3827/claude-opus-5-5-deploy-propr-from-the-fly-20261127-1654-htm
Nov 30, 2026
Merged

integry merged 26 commits into
3758-epic-runtime-abstraction-sc0from
3827/claude-opus-5-5-deploy-propr-from-the-fly-20261127-1654-htm

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3827

Branch: 3827/claude-opus-5-5-deploy-propr-from-the-fly-20261127-1654-htm
Commits: ✅ Changes committed (ee115ca)


AI Processing Completed

Execution Details:

Summary:
I've built the dashboard launch path: a committed fly.toml, secrets generated on first boot, and a setup wizard behind a one-time code. Unit tests and a local boot pass. Step 0 and the live acceptance runs have not been done. I have no Fly or GitHub test account here, so the PR has no run links or dashboard screenshots yet.

What's still unconfirmed about the dashboard. Fly's deployments API notes say a repo's fly.toml is used as-is, and that a repository's settings include deploy-on-push and a fly.toml path. Nothing I found says whether the dashboard:

  • creates the volume from [[mounts]].
  • accepts a fly.toml with no app name.
  • lets you enter secrets at launch.
  • keeps to one Machine.

The design avoids depending on most of that: nothing has to be entered at launch.

Design choices worth knowing

  • One container instead of separate app and Redis containers. A dashboard deploy can't list which Fly secrets each container of a multi-container Machine receives, so Redis runs inside the app container. It uses the same flags as propr deploy fly, through scripts/fly-launch-entrypoint.sh.
  • Valkey instead of Redis. The image installs Valkey (BSD-licensed) because Alpine's Redis 8 package is AGPL/SSPL. This adds Valkey to the propr/app image.
  • Idle stop needs no stop token. In one container, ProPR exiting stops the Machine. fly.toml restarts only on failure and keeps auto-start on. Idle shutdown stays off unless chosen in the wizard's last step.
  • No drift from the CLI. fly.toml is generated from the CLI's builders by packages/cli/scripts/render-fly-launch-toml.ts. A test fails if the committed file differs, and another checks that the boot env equals what propr deploy fly sets for the same app.
  • Credentials stay on the volume. The wizard stores the GitHub App credentials on the volume, not as Fly secrets. Fly secrets still override any stored value, and you can set them from the dashboard's Secrets page.
  • Existing instances are unchanged. Only Machines with PROPR_FLY_LAUNCH=1 (set by the committed fly.toml) run the new entry. propr deploy fly Machines start the control plane directly as before. An instance whose environment already has GitHub credentials never shows the wizard.

What was added

  • Boot secrets (src/flyLaunch/bootSecrets.ts): SESSION_SECRET, SYSTEM_TASK_SECRET and MCP_ENCRYPTION_KEY are generated once and kept in data/fly-launch/ (folder 0700, files 0600). Values are never logged. The secret list now lives in @propr/shared and the CLI reads it from there.
  • Setup wizard (src/flyLaunch/setupWizard.ts):
    • Access: a one-time code printed to fly logs claims the instance for one browser. A second browser is refused even with the code. Wrong codes are rate-limited, and forms must come from the instance's own origin.
    • Steps: create the GitHub App with the manifest flow, install it (it verifies the installation belongs to that App), sign in the first admin with GitHub, then pick and check Sprites or Fly Machines (or "not yet"). After that it closes for good.
  • Agent image workflow (.github/workflows/fly-agent-image.yml): builds the Fly Machines agent image from a fork's Actions tab, so no terminal is needed for that runtime.
  • Docs: a "Deploy from the Fly dashboard" section in setup-fly.md with wizard screenshots, how updates arrive (Sync fork, then deploy-on-push or Deploy), and a comparison with propr deploy fly. Also a README row and a CHANGELOG entry.

Testing

  • 23 new tests cover generating and reusing secrets, Fly secrets winning, the setup code and single claim, the wizard closing once done, and storing the manifest credentials. The full wizard runs over HTTP with GitHub faked.
  • The existing Fly CLI, idle-stop, CI-workflow and Docker-input tests pass. Typecheck and eslint src/ are clean.
  • Running the wizard in Chromium found a real bug: with Referrer-Policy: no-referrer, the browser sent Origin: null on the claim form and my origin check rejected it. It's fixed (same-origin) and a test now covers it.
  • A local boot printed the setup code, served /health, reused the stored secrets on restart, and handed off to the control plane. Without Redis and a real App key here it stopped before full startup.

Before merging, on a throwaway fork in a Free Plan org:

  1. Launch from the dashboard.
  2. Get a PR from a labeled issue on both Sprites and Fly Machines.
  3. Restart, and idle-stop then wake, and confirm the same secrets and App.
  4. Redeploy an existing propr deploy fly app from this branch and confirm no wizard appears.
  5. Add the run links and dashboard screenshots to the PR, then delete the app, volume and fork.

Sources:

Review digest

Risk-tiered paths

  • High risk (1 file)
    • .github/workflows/fly-agent-image.yml (added, +74/−0): CI or workflow file
  • Normal risk (19 files)
    • docker/Dockerfile.app.prod (+8/−1)
    • fly.toml (added, +71/−0)
    • packages/cli/scripts/render-fly-launch-toml.ts (added, +13/−0)
    • packages/cli/src/commands/deploy/flyGeneratedSecrets.ts (+11/−20)
    • packages/cli/src/commands/deploy/flyLaunchToml.ts (added, +136/−0)
    • packages/cli/src/commands/deploy/flyMachineConfig.ts (+10/−6)
    • packages/shared/src/flyLaunch.ts (added, +61/−0)
    • packages/shared/src/index.ts (+1/−0)
    • scripts/fly-launch-entrypoint.sh (added, +52/−0)
    • src/flyLaunch.ts (added, +75/−0)
    • src/flyLaunch/bootSecrets.ts (added, +68/−0)
    • src/flyLaunch/githubSetup.ts (added, +188/−0)
    • src/flyLaunch/launchConfig.ts (added, +125/−0)
    • src/flyLaunch/launchStore.ts (added, +78/−0)
    • src/flyLaunch/runtimeValidation.ts (added, +119/−0)
    • src/flyLaunch/setupAccess.ts (added, +105/−0)
    • src/flyLaunch/setupPages.ts (added, +193/−0)
    • src/flyLaunch/setupWizard.ts (added, +332/−0)
    • src/flyMachineStop.ts (+8/−0)
  • Low risk (12 files)
    • CHANGELOG.md (+14/−0)
    • README.md (+1/−0)
    • THIRD_PARTY_LICENSES.md (+2/−1)
    • docs/docs/tutorials/setup-fly.md (+63/−0)
    • docs/static/img/screenshots/fly-launch/wizard-claim.png (added, +0/−0)
    • docs/static/img/screenshots/fly-launch/wizard-finish.png (added, +0/−0)
    • docs/static/img/screenshots/fly-launch/wizard-github-app.png (added, +0/−0)
    • docs/static/img/screenshots/fly-launch/wizard-runtime.png (added, +0/−0)
    • test/flyLaunchBootSecrets.test.ts (added, +96/−0)
    • test/flyLaunchLayout.test.ts (added, +67/−0)
    • test/flyLaunchSetupAccess.test.ts (added, +85/−0)
    • test/flyLaunchWizard.test.ts (added, +269/−0)

Diff size: 32 files changed, +2,325/−28 lines

View task for the run's logs and conversation.


This PR was created automatically by ProPR after processing issue #3827.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!


Visual preview

First administrator

First administrator

Installed repositories listed; signing in with GitHub makes that account the first administrator.

Full-size original

Setup code entry

Setup code entry

First visit to an unconfigured Fly dashboard launch: the wizard asks for the one-time setup code printed in the Machine's logs.

Full-size original

Wrong setup code

Wrong setup code

A wrong code is refused without claiming the instance.

Full-size original

Second browser shut out

Second browser shut out

Another browser after the claim: setup is refused even with the code.

Full-size original

Finish step

Finish step

Last step with the idle shutdown opt-in, off by default.

Full-size original

Finish step, mobile dark

Finish step, mobile dark

The finish step at 390px in dark mode for the claimant's browser.

Full-size original

Create the GitHub App

Create the GitHub App

After the claim: the manifest-flow step with the instance's webhook and callback URLs filled in.

Full-size original

Install the GitHub App

Install the GitHub App

The App was created from the manifest; install it on the chosen repositories.

Full-size original

Suggested agent tools

  • Fly.io test organization and flyctl: Needed to capture the real Fly dashboard Launch an App → From GitHub flow and verify volume creation, deploy-on-push and wake behaviour end to end

I've built the dashboard launch path: a committed `fly.toml`, secrets generated on first boot, and a setup wizard behind a one-time code. Unit tests and a local boot pass. Step 0 and the live acceptance runs have not been done. I have no Fly or GitHub test account here, so the PR has no run links or dashboard screenshots yet.

What's still unconfirmed about the dashboard. Fly's deployments API notes say a repo's `fly.toml` is used as-is, and that a repository's settings include deploy-on-push and a `fly.toml` path. Nothing I found says whether the dashboard:
- creates the volume from `[[mounts]]`.
- accepts a `fly.toml` with no app name.
- lets you enter secrets at launch.
- keeps to one Machine.

The design avoids depending on most of that: nothing has to be entered at launch.

Design choices worth knowing
- One container instead of separate app and Redis containers. A dashboard deploy can't list which Fly secrets each container of a multi-container Machine receives, so Redis runs inside the app container. It uses the same flags as `propr deploy fly`, through `scripts/fly-launch-entrypoint.sh`.
- Valkey instead of Redis. The image installs Valkey (BSD-licensed) because Alpine's Redis 8 package is AGPL/SSPL. This adds Valkey to the `propr/app` image.
- Idle stop needs no stop token. In one container, ProPR exiting stops the Machine. `fly.toml` restarts only on failure and keeps auto-start on. Idle shutdown stays off unless chosen in the wizard's last step.
- No drift from the CLI. `fly.toml` is generated from the CLI's builders by `packages/cli/scripts/render-fly-launch-toml.ts`. A test fails if the committed file differs, and another checks that the boot env equals what `propr deploy fly` sets for the same app.
- Credentials stay on the volume. The wizard stores the GitHub App credentials on the volume, not as Fly secrets. Fly secrets still override any stored value, and you can set them from the dashboard's Secrets page.
- Existing instances are unchanged. Only Machines with `PROPR_FLY_LAUNCH=1` (set by the committed `fly.toml`) run the new entry. `propr deploy fly` Machines start the control plane directly as before. An instance whose environment already has GitHub credentials never shows the wizard.

What was added
- Boot secrets (`src/flyLaunch/bootSecrets.ts`): `SESSION_SECRET`, `SYSTEM_TASK_SECRET` and `MCP_ENCRYPTION_KEY` are generated once and kept in `data/fly-launch/` (folder 0700, files 0600). Values are never logged. The secret list now lives in `@propr/shared` and the CLI reads it from there.
- Setup wizard (`src/flyLaunch/setupWizard.ts`):
  - Access: a one-time code printed to `fly logs` claims the instance for one browser. A second browser is refused even with the code. Wrong codes are rate-limited, and forms must come from the instance's own origin.
  - Steps: create the GitHub App with the manifest flow, install it (it verifies the installation belongs to that App), sign in the first admin with GitHub, then pick and check Sprites or Fly Machines (or "not yet"). After that it closes for good.
- Agent image workflow (`.github/workflows/fly-agent-image.yml`): builds the Fly Machines agent image from a fork's Actions tab, so no terminal is needed for that runtime.
- Docs: a "Deploy from the Fly dashboard" section in `setup-fly.md` with wizard screenshots, how updates arrive (Sync fork, then deploy-on-push or Deploy), and a comparison with `propr deploy fly`. Also a README row and a CHANGELOG entry.

Testing
- 23 new tests cover generating and reusing secrets, Fly secrets winning, the setup code and single claim, the wizard closing once done, and storing the manifest credentials. The full wizard runs over HTTP with GitHub faked.
- The existing Fly CLI, idle-stop, CI-workflow and Docker-input tests pass. Typecheck and `eslint src/` are clean.
- Running the wizard in Chromium found a real bug: with `Referrer-Policy: no-referrer`, the browser sent `Origin: null` on the claim form and my origin check rejected it. It's fixed (`same-origin`) and a test now covers it.
- A local boot printed the setup code, served `/health`, reused the stored secrets on restart, and handed off to the control plane. Without Redis and a real App key here it stopped before full startup.

Before merging, on a throwaway fork in a Free Plan org:
1. Launch from the dashboard.
2. Get a PR from a labeled issue on both Sprites and Fly Machines.
3. Restart, and idle-stop then wake, and confirm the same secrets and App.
4. Redeploy an existing `propr deploy fly` app from this branch and confirm no wizard appears.
5. Add the run links and dashboard screenshots to the PR, then delete the app, volume and fork.

Sources:
- [Fly.io changelog: experimental deployments API](https://fly.io/changelog/experimental-deployments-api/)
- [Fly.io changelog: dashboard app launch redesign](https://fly.io/changelog/dashboard-app-launch-redesign.md)
- [Fly community: auto-deploy on push to GitHub](https://community.fly.io/t/auto-deploy-on-push-to-github/22306)
- [Fly community: Deploy on GitHub push questions](https://community.fly.io/t/deploy-on-github-push-questions/23085)

ProPR-Agent: claude/claude-opus-5-5
@propr-dev propr-dev Bot changed the title 🔨 [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup ✅ [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup Nov 27, 2026

integry commented Nov 27, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev propr-dev Bot changed the title ✅ [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup 🔨 [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup Nov 27, 2026
@propr-dev

propr-dev Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

This PR adds a browser-based Fly deployment path with persistent boot secrets, a GitHub setup wizard, and an agent-image workflow. It needs changes before merge: overlapping setup requests can overwrite completed configuration and reopen setup on restart. Live dashboard acceptance also remains unverified.

✅ Secret persistence and precedence — Generated secrets are reused from the volume, environment values take precedence, and writes use restrictive permissions and temporary-file renames.

✅ Setup access controls — Claim tokens are hashed, cookies are HttpOnly, and manifest and administrator callbacks consume single-use state values.

✅ Configuration consistency — Tests compare the committed Fly configuration with its generator and compare derived boot settings with the CLI deployment settings.

The supplied current-head status reports 36 passed checks, 22 skipped, and no failures. This review uses static tracing only; no commands were run.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Prevent late requests from reopening completed setup

  • Category: correctness

  • Required behavior: Completing setup must permanently close the wizard, and earlier asynchronous requests must not overwrite the completed configuration.

  • Evidence: src/flyLaunch/setupWizard.ts, claimantRoute, saveRuntime, finishSetup, and runSetupWizard.

    1. The claimant saves a valid runtime, reaching the finish step, and opens setup in two tabs.
    2. One tab submits another runtime choice. saveRuntime captures the existing configuration and awaits validateRuntimeChoice; the external validation request remains pending.
    3. The other tab submits Finish. finishSetup writes completedAt, deletes the claim, sets done, and resolves the wizard’s completion promise. Startup proceeds using this completed configuration.
    4. The pending runtime validation succeeds. Its handler still executes writeLaunchConfig(store, { ...config, runtime, env: ... }) using the earlier snapshot, which has no completedAt.
    5. On the next restart, setupRequired sees an incomplete configuration and starts the wizard again. The deleted claim means a new setup code is issued instead of preserving the completed instance’s closed setup state.

    The done check occurs only when requests enter the handler. Closing HTTP connections does not cancel the independent validation promise or prevent its subsequent filesystem write. There is no mutation lock or completion recheck. The asynchronous manifest and administrator callbacks, installation verification, and finish form reading likewise retain configuration snapshots across awaits and then write them without checking completion.

    static trace: This sequence follows the supplied handler, shutdown, and configuration code. Existing wizard tests await requests sequentially, so they do not exercise this interleaving. proposed regression: Hold a runtime validator pending, finish setup through another request, release the validator, and assert that durable configuration remains completed and unchanged.

  • Minimum fix: Serialize setup mutations and recheck completion before executing queued mutations, covering runtime changes, GitHub callbacks, and finish. Ensure requests already in flight cannot write after completion or replace newer configuration with an obsolete snapshot.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Capture live dashboard acceptance evidence

The implementation summary explicitly leaves dashboard launch, both runtime issue-to-PR runs, restart and wake persistence, and existing CLI deployment compatibility unconfirmed. Capture those results and run links before declaring the deployment path verified. This is a material verification gap, rather than an additional demonstrated code defect; generated-config comparisons and mocked GitHub tests cannot establish the dashboard’s volume creation or Machine-count behavior.

S2: 🟢 Exercise Redis child failure

The new entrypoint checks Valkey during startup but subsequently waits only for Node. A focused fault-injection test would clarify recovery when Valkey exits after readiness, including whether the control plane exits or remains alive with unavailable queues and sessions. This is optional follow-up because the supplied context does not establish the complete post-failure behavior of every control-plane component.

Score

The persistence and access-control foundations are sound, and current checks pass. The verified setup-state race requires correction, while the central live deployment path still lacks acceptance evidence.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 28s
  • Tokens: 93,721 (91,814 in / 1,907 out)
  • Cost: $0.90

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F1 S1 S2

🤖 Review by ProPR

@propr-dev propr-dev Bot changed the title 🔨 [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup ⚠️❻ [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup Nov 27, 2026
@integry

integry commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Please fix F1 from the latest review. Serialize every setup-wizard write (a single async mutex or a promise chain over writeLaunchConfig). Each write re-reads the stored config inside the lock and refuses (409 "setup already completed") when completedAt is set, instead of writing a stale snapshot. Apply this to every async handler: runtime validation, manifest and administrator callbacks, installation verification and finish. Add a test where a runtime save is pending, Finish completes, and then the save resolves: the stored config keeps completedAt, and the wizard doesn't start again on restart.

I'm also about to run the dashboard launch (Launch an App → From GitHub) on this branch myself and will report what I find for Step 0. Hold off on other changes until then.

@propr-dev propr-dev Bot changed the title ⚠️❻ [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup 🔨 [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup Nov 27, 2026
@propr-dev

propr-dev Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 7325c04

Summary of Changes

I've fixed F1. Setup-wizard writes now go one at a time, and a write that arrives after Finish is refused with 409 "Setup already completed" instead of overwriting the finished config. The wizard tests, typecheck and eslint src/flyLaunch/ all pass.

What changed in src/flyLaunch/setupWizard.ts

  • One write queue. Every write goes through commitConfig, a promise chain. When a write's turn comes, it re-reads the stored config. If completedAt is set, it throws SetupCompletedError. Otherwise it builds its change on the config as it is now, not on what it read when the request arrived.
  • Every async handler uses it:
    • Manifest callback: the App key file is now written inside the queue too, so it can't change after Finish.
    • Installation check: refused if the App changed while the check ran.
    • Administrator sign-in: refused if the OAuth client changed.
    • Runtime save: refused if setup has moved back to an earlier step.
    • Finish: checks again that it is at the finish step before setting completedAt.
  • The 409 answer. A late write gets a 409 page (setupCompletedPage in setupPages.ts). The page says the step's result wasn't saved and that a Fly secret with the same name overrides a stored value. Only a log line says this happened; no values are logged.

Test (test/flyLaunchWizard.test.ts): a Sprites runtime check is held open, Finish is posted and completes, then the check is released. The late save gets 409. The stored config is exactly what Finish wrote, completedAt included, and the late Sprites token isn't stored. setupRequired on the stored config is false, so the wizard doesn't start again on restart. Against the previous code this test fails: the late save got 303 instead of 409.

I wrote a second race test as well, but deleted it because it also passed on the old code, so it tested nothing.

No preview images: this is a server-side fix, and the new page only shows up in that race.

As you asked, I've made no other changes; I'll wait for your Step 0 findings from the dashboard launch.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • src/flyLaunch/setupPages.ts (+10/−0)
    • src/flyLaunch/setupWizard.ts (+61/−18)
  • Low risk (1 file)
    • test/flyLaunchWizard.test.ts (+46/−1)

Diff size: 3 files changed, +117/−19 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 6m 5s
  • Tokens: 952,389 (942,843 in / 9,546 out)
  • Cost: $0.74
  • Subscription usage: Weekly +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 7225293926✓

I've fixed F1. Setup-wizard writes now go one at a time, and a write that arrives after Finish is refused with 409 "Setup already completed" instead of overwriting the finished config. The wizard tests, typecheck and `eslint src/flyLaunch/` all pass.

**What changed in `src/flyLaunch/setupWizard.ts`**
- **One write queue.** Every write goes through `commitConfig`, a promise chain. When a write's turn comes, it re-reads the stored config. If `completedAt` is set, it throws `SetupCompletedError`. Otherwise it builds its change on the config as it is now, not on what it read when the request arrived.
- **Every async handler uses it:**
  - **Manifest callback:** the App key file is now written inside the queue too, so it can't change after Finish.
  - **Installation check:** refused if the App changed while the check ran.
  - **Administrator sign-in:** refused if the OAuth client changed.
  - **Runtime save:** refused if setup has moved back to an earlier step.
  - **Finish:** checks again that it is at the finish step before setting `completedAt`.
- **The 409 answer.** A late write gets a 409 page (`setupCompletedPage` in `setupPages.ts`). The page says the step's result wasn't saved and that a Fly secret with the same name overrides a stored value. Only a log line says this happened; no values are logged.

**Test** (`test/flyLaunchWizard.test.ts`): a Sprites runtime check is held open, Finish is posted and completes, then the check is released. The late save gets 409. The stored config is exactly what Finish wrote, `completedAt` included, and the late Sprites token isn't stored. `setupRequired` on the stored config is false, so the wizard doesn't start again on restart. Against the previous code this test fails: the late save got 303 instead of 409.

I wrote a second race test as well, but deleted it because it also passed on the old code, so it tested nothing.

No preview images: this is a server-side fix, and the new page only shows up in that race.

As you asked, I've made no other changes; I'll wait for your Step 0 findings from the dashboard launch.

PR: #3852
Comment by: @integry (ID: 7225293926)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5
@propr-dev propr-dev Bot changed the title 🔨 [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup ⚠️❻ [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup Nov 27, 2026

integry commented Nov 27, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev propr-dev Bot changed the title ⚠️❻ [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup 🔨 [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup Nov 27, 2026
@propr-dev

propr-dev Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR implements browser-based Fly deployment with persisted boot secrets and a protected setup wizard. The requested write serialization is implemented, but the production server shutdown prevents pending requests from receiving the promised 409 response. A localized correction is needed before merge; live dashboard acceptance also remains unverified.

✅ Completion is preserved — Every configuration mutation uses commitConfig, which re-reads persisted state and rejects writes after completedAt.

✅ Credentials are protected — Stored credentials use restrictive permissions, token fields are not repopulated, and environment values override stored configuration.

✅ Targeted regression coverage — The new delayed-runtime test verifies that a late save cannot erase completion or cause setup to restart.

Current-head checks report 36 passed, 12 skipped/neutral, and no failures. This review used the supplied code; no commands were run.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F2: 🔴 Preserve late-request refusal responses

  • Category: requirement

  • Required behavior: The authorized follow-up requires asynchronous setup writes that finish after completion to be refused with HTTP 409 “setup already completed.”

  • Evidence: src/flyLaunch/setupWizard.ts, runSetupWizard and finishSetup; test/flyLaunchWizard.test.ts, startWizard

    1. In the production wizard, a claimant submits a runtime save whose validateRuntimeChoice call remains pending, after previously saving a runtime.
    2. The claimant submits Finish. finishSetup persists completedAt and resolves wizard.completed when the Finish response finishes.
    3. runSetupWizard immediately calls server.closeAllConnections(), destroying the pending runtime request’s connection.
    4. When validation resolves, commitConfig correctly rejects the write, but its 409 response cannot reach the browser. The browser receives a disconnected request instead of the required refusal.

    The write queue protects persisted configuration but does not protect response delivery. The new test uses its own HTTP server around createSetupWizard; it never invokes the production shutdown wrapper, so its successful 409 assertion does not cover this sequence. static trace: verified from the supplied production wrapper and test harness; not executed.

  • Minimum fix: Stop accepting new wizard connections while allowing already-running handlers to deliver their completion refusal before closing their connections. Keep shutdown bounded, and exercise the actual runSetupWizard lifecycle in the delayed-runtime regression.

Suggestions

These are optional follow-ups and are not sent to /fix.

S3: 🟢 Record live acceptance evidence

The dashboard launch, both runtime issue-to-PR runs, restart and idle-wake persistence, and existing CLI deployment compatibility remain unverified in the supplied evidence. Record the operator’s planned results before declaring deployment readiness. This is verification follow-up, not a request for additional implementation while the operator’s Step 0 check is pending.

Score

The configuration race is fixed and current checks are green, but the production lifecycle still violates the requested late-write response contract. Live deployment evidence is also outstanding.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 2m 22s
  • Tokens: 94,484 (93,096 in / 1,388 out)
  • Cost: $0.87

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F2 S3

🤖 Review by ProPR

@propr-dev propr-dev Bot changed the title 🔨 [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup ⚠️❻ [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup Nov 27, 2026
@fly-io
fly-io Bot requested a deployment to production November 27, 2026 22:03 In progress
@integry

integry commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Please fix F2 from the latest review: after Finish, stop accepting new wizard connections, but let in-flight handlers send their 409 before connections close. Keep shutdown bounded (for example, close idle connections at once and force-close the rest after a few seconds). Exercise the real runSetupWizard lifecycle in the delayed-runtime regression.

The live dashboard launch is in progress on 7325c04; I'll post the Step 0 findings when it finishes.

@propr-dev propr-dev Bot changed the title ⚠️❻ [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup 🔨 [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup Nov 27, 2026
@propr-dev

propr-dev Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit b3a41ef

Summary of Changes

I've fixed F2. After Finish, the setup wizard stops taking new connections at once, but a request already in progress can still send its 409. Anything still open after 5 seconds is closed. The wizard suite passes 8 of 8, and five reruns in a row passed. Typecheck, eslint --max-warnings 0 and the other Fly launch suites (25 tests) are clean.

What changed in runSetupWizard (src/flyLaunch/setupWizard.ts)

  • No new connections: once Finish is saved, the wizard stops listening, so the port is free for the control plane.
  • Idle connections: idle keep-alive connections are closed right away.
  • Requests in progress: they keep running, so a runtime check that was pending when Finish landed still gets its 409. Their answers, and Finish's own answer, carry Connection: close, and the connection closes after the answer is sent.
  • Bounded shutdown: after SETUP_WIZARD_CLOSE_GRACE_MS (5 s), every remaining connection is closed. If all answers go out sooner, the wizard returns as soon as the last one is sent.
  • Two new options: closeGraceMs sets that limit, and onListening(port) reports the bound port so tests can listen on port 0. src/flyLaunch.ts needed no change.

Tests (test/flyLaunchWizard.test.ts)

  • Delayed-runtime regression: it now runs through the real runSetupWizard. A Sprites check is held open and Finish is posted. The test then checks that:

    • Finish answers 200 with Connection: close.
    • A new TCP connection is refused.
    • runSetupWizard hasn't returned yet.

    When the check is released, the late save gets 409 with Connection: close. runSetupWizard then returns within 5 seconds, even though this test's limit is set to 60 seconds. The F1 checks are unchanged: the stored config keeps completedAt and doesn't restart the wizard.

  • Bounded-shutdown test (new): a request that never answers is cut at a 300 ms limit. runSetupWizard returns, and the stuck request fails.

As a check, I temporarily put back the old shutdown, which closed every connection at once. Both tests failed: the late save got "fetch failed" instead of a 409, and the server closed after 2 ms instead of waiting. Both pass with the fix.

There are no preview images because nothing here changes what a user sees. I've made no other changes while you finish the Step 0 dashboard launch.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • src/flyLaunch/setupWizard.ts (+36/−4)
  • Low risk (1 file)
    • test/flyLaunchWizard.test.ts (+99/−17)

Diff size: 2 files changed, +135/−21 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 9m 18s
  • Tokens: 1,058,614 (1,047,145 in / 11,469 out)
  • Cost: $0.78
  • Subscription usage: Weekly +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 7229194181✓

@integry

integry commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Please add a fast path: deploy a prebuilt image, and keep building from source as the opt-in path.

Why: in the live dashboard test on 7325c04, "Build image" took more than 18 minutes on Fly's builder. Most users just want the released version, and propr/app is already published to Docker Hub on every release, built from the same docker/Dockerfile.app.prod.

What to change:

  1. Root fly.toml: the default, prebuilt path.
    • [build] image = "propr/app:<version>", pinned to the release version, not latest.
    • The dashboard's "From GitHub" on main (or a release tag) then pulls the image instead of building it.
  2. A second config that builds from source, for modified forks and PR branches: for example, deploy/fly/source/fly.toml.
    • It keeps [build] dockerfile = "docker/Dockerfile.app.prod", with paths relative to the repo root.
    • Users pick it with the dashboard's Config path field. Check whether the dashboard resolves the build context from the repo root or from the config's directory, and set the config's paths to match.
    • Everything other than [build] (env, mounts, http_service, checks, restart, vm) must stay identical between the two configs. Generate both from the same builders in flyLaunchToml.ts, and extend the drift test to cover both files.
  3. Release integration: the release flow (scripts/build-images.sh / docker-images.yml, or the version bump) updates the pinned tag in the root fly.toml, so main always points at an image that exists and includes scripts/fly-launch-entrypoint.sh. A test or check fails when the pinned tag doesn't match package.json's version.
  4. Before the first release that includes this, the pinned image has no launch entrypoint. Fail clearly instead of crash-looping: for example, the entrypoint's absence leaves the Machine stopped with a log line saying to use the source config, or the docs say the prebuilt path starts with the next release. Pick whichever is simpler and document it.
  5. Docs (setup-fly.md):
    • Default: Launch from GitHub on main; no build, about a minute.
    • "Deploy your own changes": set Config path to the source config; expect a long first build on Fly's builder.

Leave propr deploy fly (CLI) as it is.

I've fixed F2. After Finish, the setup wizard stops taking new connections at once, but a request already in progress can still send its 409. Anything still open after 5 seconds is closed. The wizard suite passes 8 of 8, and five reruns in a row passed. Typecheck, `eslint --max-warnings 0` and the other Fly launch suites (25 tests) are clean.

**What changed in `runSetupWizard`** (`src/flyLaunch/setupWizard.ts`)
- **No new connections:** once Finish is saved, the wizard stops listening, so the port is free for the control plane.
- **Idle connections:** idle keep-alive connections are closed right away.
- **Requests in progress:** they keep running, so a runtime check that was pending when Finish landed still gets its 409. Their answers, and Finish's own answer, carry `Connection: close`, and the connection closes after the answer is sent.
- **Bounded shutdown:** after `SETUP_WIZARD_CLOSE_GRACE_MS` (5 s), every remaining connection is closed. If all answers go out sooner, the wizard returns as soon as the last one is sent.
- **Two new options:** `closeGraceMs` sets that limit, and `onListening(port)` reports the bound port so tests can listen on port 0. `src/flyLaunch.ts` needed no change.

**Tests** (`test/flyLaunchWizard.test.ts`)
- **Delayed-runtime regression:** it now runs through the real `runSetupWizard`. A Sprites check is held open and Finish is posted. The test then checks that:
  - Finish answers 200 with `Connection: close`.
  - A new TCP connection is refused.
  - `runSetupWizard` hasn't returned yet.

  When the check is released, the late save gets 409 with `Connection: close`. `runSetupWizard` then returns within 5 seconds, even though this test's limit is set to 60 seconds. The F1 checks are unchanged: the stored config keeps `completedAt` and doesn't restart the wizard.
- **Bounded-shutdown test (new):** a request that never answers is cut at a 300 ms limit. `runSetupWizard` returns, and the stuck request fails.

As a check, I temporarily put back the old shutdown, which closed every connection at once. Both tests failed: the late save got "fetch failed" instead of a 409, and the server closed after 2 ms instead of waiting. Both pass with the fix.

There are no preview images because nothing here changes what a user sees. I've made no other changes while you finish the Step 0 dashboard launch.

PR: #3852
Comment by: @integry (ID: 7229194181)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit c7362c4

Summary of Changes

The root fly.toml now pulls propr/app:0.9.3 instead of building, and deploy/fly/source/fly.toml builds from source. The layout tests and release-validation tests pass (68 tests), the CLI typecheck is clean, and npm run release:verify passes. Nothing has been deployed on Fly with either config yet.

Until the next release, the default path doesn't run ProPR. The pinned propr/app:0.9.3 exists on Docker Hub (amd64) but has no launch entry. Until the next release, the Machine logs one line pointing to the source config and stays stopped. Use the source config until then.

The two configs

  • Root fly.toml (default): [build] image = "propr/app:0.9.3". Launching from GitHub on main or a release tag pulls this image, so there's no build.
  • deploy/fly/source/fly.toml (opt-in): builds docker/Dockerfile.app.prod, chosen with the dashboard's Config path field.
  • Paths: flyctl's source resolves [build] dockerfile from the config file's own directory and uses the working directory as the build context. So this config uses dockerfile = "../../../docker/Dockerfile.app.prod" rather than a repo-root path, and a test checks that it lands on the real Dockerfile.
  • Unconfirmed: I couldn't check the dashboard's own deployer, so it's not certain that it runs from the repository root. Your first live run with this config is the check.
  • Shared builders: both files come from the same builders in flyLaunchToml.ts, and render-fly-launch-toml.ts writes both.
  • Drift test: test/flyLaunchLayout.test.ts checks that both committed files match the generated output and that they differ only in [build]. It now fails when the source config's memory is changed or the root pin is wrong.

Release integration

  • npm run release:verify (scripts/lib/release-validation.mjs) now fails when fly.toml's image isn't exactly propr/app:<package.json version>. It runs in every PR's Validate Changes and in docker-images.yml on the release tag. The layout test checks the same pin.
  • The release checklist in .github/CONTRIBUTING.md now says to rerun the render script when bumping the version.
  • For a short time after each version bump, main will point at an image that isn't published yet: it is pushed only when the tag is. The docs say to deploy again once the Docker Images run finishes.

When the pinned image has no launch entry

  • The process command checks for scripts/fly-launch-entrypoint.sh first.
  • If it's missing, it logs that the image predates the dashboard launch and to set Config path to deploy/fly/source/fly.toml, then exits 0. The on-failure restart policy leaves the Machine stopped instead of crash-looping.
  • If the entry is present, the command hands straight over to it. A test runs both cases with sh.
  • A request to the app will start the Machine again, and it will log the same line and stop.

Docs

  • Default in setup-fly.md: launch from GitHub on main with no build, about a minute.
  • Availability note: a callout that this works from the release after v0.9.3.
  • "Deploy your own changes": set Config path to the source config and expect a long first build.
  • Updates and comparison table: the updates section and the comparison table now describe both paths.
  • CHANGELOG: the entry is updated to match.

propr deploy fly is unchanged. Nothing in this change is visible in a UI, so there are no previews.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (6 files)
    • deploy/fly/source/fly.toml (added, +75/−0)
    • fly.toml (+6/−2)
    • packages/cli/scripts/render-fly-launch-toml.ts (+17/−8)
    • packages/cli/src/commands/deploy/flyLaunchToml.ts (+71/−9)
    • scripts/lib/release-validation.mjs (+8/−0)
    • scripts/verify-release.mjs (+1/−0)
  • Low risk (5 files)
    • .github/CONTRIBUTING.md (+1/−1)
    • CHANGELOG.md (+7/−2)
    • docs/docs/tutorials/setup-fly.md (+11/−5)
    • test/flyLaunchLayout.test.ts (+68/−9)
    • test/releaseValidation.test.mjs (+20/−1)

Diff size: 11 files changed, +285/−37 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 9m 55s
  • Tokens: 3,205,760 (3,180,543 in / 25,217 out)
  • Cost: $1.62

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 7229281201✓

The root `fly.toml` now pulls `propr/app:0.9.3` instead of building, and `deploy/fly/source/fly.toml` builds from source. The layout tests and release-validation tests pass (68 tests), the CLI typecheck is clean, and `npm run release:verify` passes. Nothing has been deployed on Fly with either config yet.

**Until the next release, the default path doesn't run ProPR.** The pinned `propr/app:0.9.3` exists on Docker Hub (amd64) but has no launch entry. Until the next release, the Machine logs one line pointing to the source config and stays stopped. Use the source config until then.

**The two configs**
- **Root `fly.toml` (default):** `[build] image = "propr/app:0.9.3"`. Launching from GitHub on `main` or a release tag pulls this image, so there's no build.
- **`deploy/fly/source/fly.toml` (opt-in):** builds `docker/Dockerfile.app.prod`, chosen with the dashboard's Config path field.
- **Paths:** flyctl's source resolves `[build] dockerfile` from the config file's own directory and uses the working directory as the build context. So this config uses `dockerfile = "../../../docker/Dockerfile.app.prod"` rather than a repo-root path, and a test checks that it lands on the real Dockerfile.
- **Unconfirmed:** I couldn't check the dashboard's own deployer, so it's not certain that it runs from the repository root. Your first live run with this config is the check.
- **Shared builders:** both files come from the same builders in `flyLaunchToml.ts`, and `render-fly-launch-toml.ts` writes both.
- **Drift test:** `test/flyLaunchLayout.test.ts` checks that both committed files match the generated output and that they differ only in `[build]`. It now fails when the source config's memory is changed or the root pin is wrong.

**Release integration**
- `npm run release:verify` (`scripts/lib/release-validation.mjs`) now fails when `fly.toml`'s image isn't exactly `propr/app:<package.json version>`. It runs in every PR's Validate Changes and in `docker-images.yml` on the release tag. The layout test checks the same pin.
- The release checklist in `.github/CONTRIBUTING.md` now says to rerun the render script when bumping the version.
- For a short time after each version bump, `main` will point at an image that isn't published yet: it is pushed only when the tag is. The docs say to deploy again once the Docker Images run finishes.

**When the pinned image has no launch entry**
- The process command checks for `scripts/fly-launch-entrypoint.sh` first.
- If it's missing, it logs that the image predates the dashboard launch and to set Config path to `deploy/fly/source/fly.toml`, then exits 0. The on-failure restart policy leaves the Machine stopped instead of crash-looping.
- If the entry is present, the command hands straight over to it. A test runs both cases with `sh`.
- A request to the app will start the Machine again, and it will log the same line and stop.

**Docs**
- **Default in `setup-fly.md`:** launch from GitHub on `main` with no build, about a minute.
- **Availability note:** a callout that this works from the release after v0.9.3.
- **"Deploy your own changes":** set Config path to the source config and expect a long first build.
- **Updates and comparison table:** the updates section and the comparison table now describe both paths.
- **CHANGELOG:** the entry is updated to match.

`propr deploy fly` is unchanged. Nothing in this change is visible in a UI, so there are no previews.

PR: #3852
Comment by: @integry (ID: 7229281201)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5
@integry

integry commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Please make the wizard's GitHub step a choice, with ProPR Connect as the default.

Default: "Use the ProPR App (recommended)". This is the same path propr deploy fly uses (see deploy-fly.md#github-relay-and-connect).

  1. Link to the shared ProPR App's install page so the user can install it on their repos. Detect the installation, or let them pick it when there's more than one.
  2. Enroll a relay token for this instance, labelled fly:<app>@<host> as the CLI does: enrollRelayToken → /v1/relay-tokens, authenticated by a GitHub user token.
    • The CLI gets that token from gh, and a browser wizard can't. Use GitHub's device flow against the shared ProPR App's client ID if the App allows it: show the code and github.com/login/device, poll, enroll, then throw the user token away. Never store it.
    • If device flow isn't enabled on the shared App, or enrollment needs any propr-routing change, don't change propr-routing. Stop and report what's missing. A pasted fine-grained token is an acceptable fallback, as long as it's used once and never stored.
  3. Persist it like the CLI does: GH_AUTH_MODE=relay, the relay token and installation id, and event intake routing_websocket. Then the instance needs no public webhook and no App of its own.
  4. Browser sign-in for the admin step: use whatever the Connect / relay path supports. If it needs an OAuth client the instance doesn't have, keep the admin step's current sign-in mechanism and say which one applies.
  5. Idle shutdown: the Connect path relies on the relay's wake hint and replay. If that isn't available, disable or warn on the idle-shutdown option when Connect is chosen, and document it.

Advanced: "Create your own GitHub App". The current manifest flow, unchanged, for people who want no ProPR-hosted service in the path.

Also:

  • Update setup-fly.md and the wizard screenshots list for both paths.
  • Add tests for path selection, enrollment success and failure, and persistence: config written atomically under the existing write lock, a restart that resumes correctly, and a Fly secret still winning over a stored value.
  • The prebuilt-image request above still stands. Do both in this PR.

@propr-dev

propr-dev Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit c902ba9

Summary of Changes

The wizard's GitHub step is now a choice. Use the ProPR App (recommended) is the default, and Create your own GitHub App is a collapsed advanced section with the manifest flow unchanged. Two things you asked for need changes outside this repo, and I stopped there as you said: device flow and Connect browser sign-in, both explained below. Nothing has been run on a real Fly app or against the real relay; the GitHub and relay calls are faked in the tests.

What's missing (no propr-routing changes made):

  • Device flow is off on the shared App. Asking GitHub for a device code with propr-dev's public client ID returns device_flow_disabled. So the wizard uses your fallback: paste a GitHub token, used for that one request and never stored, logged or shown again. A fine-grained token with no permissions is enough, because the relay only reads who you are and checks ownership in its own records. To switch to device flow later, someone has to turn on "Device Flow" in the propr-dev App settings.
  • Connect can't sign browsers in to a fly.dev instance. Connect's instance login only returns to a local address or an active hosted tunnel, and refuses any other callback URL. So the admin step keeps its current mechanism, GitHub OAuth sign-in. On the ProPR App path you register a GitHub OAuth App with the instance's callback URL and paste its client ID and secret. That app also signs browsers in after setup; without it, nobody could sign in.

How the ProPR App path works:

  1. A link to the App's install page.
  2. Paste the token. The wizard finds the installation, or lets you pick when there's more than one (you paste the token again, since it wasn't kept).
  3. It enrolls a relay token labelled fly:<app>@<host>, then uses it once to list the installed repositories, which also proves it works. If that check fails, the relay token is revoked.
  4. It saves the same settings as the CLI: GH_AUTH_MODE=relay, the relay URL and token, the installation ID, and GITHUB_EVENT_INTAKE_MODE=routing_websocket. No webhook, no App of your own.
  5. Sign-in app → administrator → runtime → finish.

Idle shutdown: the wake-target route is live on the hosted relay. When you tick idle shutdown on the ProPR App path, Finish registers https://<app>.fly.dev/wake with Connect, and refuses with an error if Connect rejects it. Connect then wakes the stopped Machine when an event arrives and replays the events it held. I couldn't confirm that the deployed relay acknowledges the wake hint. If it doesn't, the instance never stops idle, so no events are lost. The docs explain this.

Tests: 40 Fly launch tests pass, 9 of them new. Typecheck and lint are clean. The new tests cover:

  • The default choice and the install link.
  • Enrollment end to end: the CLI's label, which token each call uses, and the pasted token absent from the volume and the logs.
  • Picking an installation.
  • Six failure cases (bad token, not the owner, relay down, and so on), each storing nothing.
  • A late enrollment refused under the write lock, with its relay token revoked. I confirmed this test fails when the lock check is removed.
  • Restarts resuming at the right step with the same claim.
  • A Fly secret winning over stored values.
  • A failed wake registration keeping the wizard open.

Docs: setup-fly.md now covers both paths, the sign-in app, idle shutdown with Connect, the volume table and the comparison table. I updated the CHANGELOG and regenerated the wizard screenshots with an https://<app>.fly.dev address. Two screenshots are new: the GitHub choice and the sign-in app.

Prebuilt image: that request was already done in the previous commit on this branch (c7362c4, root fly.toml pinned to propr/app:0.9.3). I left it unchanged.

The Connect code is mostly in src/flyLaunch/connectSetup.ts. I moved the step logic into src/flyLaunch/setupSteps.ts so setupWizard.ts stays under the 400-line lint limit.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (7 files)
    • src/flyLaunch.ts (+2/−0)
    • src/flyLaunch/connectSetup.ts (added, +269/−0)
    • src/flyLaunch/githubSetup.ts (+17/−7)
    • src/flyLaunch/launchConfig.ts (+27/−2)
    • src/flyLaunch/setupPages.ts (+110/−20)
    • src/flyLaunch/setupSteps.ts (added, +25/−0)
    • src/flyLaunch/setupWizard.ts (+116/−27)
  • Low risk (9 files)
    • CHANGELOG.md (+12/−3)
    • docs/docs/tutorials/setup-fly.md (+30/−12)
    • docs/static/img/screenshots/fly-launch/wizard-claim.png (+0/−0)
    • docs/static/img/screenshots/fly-launch/wizard-finish.png (+0/−0)
    • docs/static/img/screenshots/fly-launch/wizard-github-app.png (+0/−0)
    • docs/static/img/screenshots/fly-launch/wizard-github-choice.png (added, +0/−0)
    • docs/static/img/screenshots/fly-launch/wizard-runtime.png (+0/−0)
    • docs/static/img/screenshots/fly-launch/wizard-signin-app.png (added, +0/−0)
    • test/flyLaunchWizard.test.ts (+361/−8)

Diff size: 16 files changed, +969/−79 lines

Visual preview

Setup code entry

Setup code entry

First step: the one-time setup code from the Machine logs.

Full-size original

Administrator sign-in (ProPR App path)

Administrator sign-in (ProPR App path)

Installed repositories from the ProPR App installation, sign-in with the registered OAuth App.

Full-size original

Pick the installation

Pick the installation

A token that can use more than one ProPR App installation: pick one and paste the token again (it was not kept).

Full-size original

Finish step, mobile dark

Finish step, mobile dark

The ProPR App path finish step at 390px in dark mode.

Full-size original

Finish: idle shutdown with Connect wake

Finish: idle shutdown with Connect wake

Last step on the ProPR App path: idle shutdown registers /wake with ProPR Connect.

Full-size original

Advanced: create your own GitHub App

Advanced: create your own GitHub App

The advanced choice opened: the unchanged manifest flow with the instance URLs.

Full-size original

GitHub step: ProPR App by default

GitHub step: ProPR App by default

The GitHub step now offers the shared ProPR App (recommended) first, and creating your own App as a collapsed advanced choice.

Full-size original

Agent runtime

Agent runtime

Runtime step with the ProPR App path step list.

Full-size original


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 20m 13s
  • Tokens: 12,982,709 (12,904,598 in / 78,111 out)
  • Cost: $5.31
  • Subscription usage: Weekly +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 7229603244✓

@integry

integry commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Live test of ab19a8f via Fly dashboard "Launch from GitHub"

App propr-dash-3852b (personal org), launched from the dashboard at this PR's branch. Driven end to end in a browser.

Check Result
Dashboard launch ⚠️ The first attempt hung after Depot pushed every layer: "Build image" spun for 30+ min, and no release or machine was created. After cancelling, the step showed ✓. "Retry same commit" deployed in about 5 min. This is Fly-side (handoff from build to deploy), not this PR.
First boot ✅ /health → {"setup":"pending"}. The log prints fly-launch: ProPR setup code: XXXX-XXXX-XXXX.
Step 1, setup code ✅ The code from the logs claims the instance.
Step 2, GitHub ("Use the ProPR App", recommended) ✅ Device code → GitHub authorize (ProPR.dev). The wizard then reports the ProPR App installed on 87 repositories.
Step 3, administrator ✅ A second device sign-in.
Step 4, runtime ✅ "Not yet" saved. Sprites wasn't tested in the wizard, because a Sprites API token shouldn't be pasted into a public web form by an automated tester. The runtime itself is covered by fly-e2e below.
Step 5, start ✅ Idle stop is off by default. "Finish setup" restarts into the normal app.
Wizard closed ✅ /setup serves the normal UI, and the setup claim endpoint returns 404.
Dashboard sign-in ✅ Device sign-in works. The dashboard shows ProPR v0.9.3 and "No AI Agent Configured".
fly machine restart ✅ secrets from Fly: [], from the volume: [SESSION_SECRET, SYSTEM_TASK_SECRET, MCP_ENCRYPTION_KEY], generated now: []. Setup values are re-applied and the wizard doesn't return.
Stop, then wake on request ✅ Woke in 16 s with the same secrets and setup. The browser session survived.
This image on an existing propr deploy fly app (propr-dev-3868) ✅ No setup code is logged, /health has no setup field, and the claim endpoint returns 404. The existing secrets and relay are untouched.

F1 (blocker for merging into the epic): the wizard stores repositories only in GITHUB_REPOS_TO_MONITOR

src/flyLaunch/setupWizard.ts:243 and src/flyLaunch/connectSetup.ts:226 write the selected repositories to GITHUB_REPOS_TO_MONITOR in the setup values, and adminPage reads them back from there (setupWizard.ts:182). The epic branch now includes #3885, which retires GITHUB_REPOS_TO_MONITOR: the DB is the only source of repositories, and the variable only triggers a startup warning. This branch doesn't contain #3885 yet, and GitHub reports no textual conflict. Once merged, though, a wizard-launched instance would monitor no repositories, and an issue labeled AI would never be picked up.

Required:

  1. Merge the epic into this branch.
  2. Have the wizard register the selected repositories in the DB, through the same path [3805 by GPT-6.2 Sol] Config: drop env duplicates of DB config (GITHUB_REPOS_TO_MONITOR etc.), clear no-agent error, HEAD~1 loop on 1-commit repos #3885 uses for propr deploy fly --repo, and drop GITHUB_REPOS_TO_MONITOR from the setup values and from OWN_APP_ENV_KEYS and githubSetup.ts:120.
  3. Keep step 3's repository summary working from the stored list.
  4. Add a test showing that after setup completes, the repositories are in the DB and the startup log has no retired-variable warning.
  5. Consider registering only the repositories the user picks, rather than all 87 installed ones, or at least say in the wizard that every installed repository will be monitored.

Nits (non-blocking)

  • fly.toml has no primary_region. The dashboard form showed iad, but the machine landed in arn. Pinning a region, or documenting that Fly picks one, would avoid surprises.
  • The admin sign-in in step 3 doesn't create a dashboard session, so the user signs in a third time right after setup. Reusing that sign-in would make for a smoother first run.

@propr-dev propr-dev Bot changed the title ⚠️❼ [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup 🔨 [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup Nov 29, 2026
@propr-dev

propr-dev Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 4d53562

Summary of Changes

The Fly setup wizard now registers repositories in SQLite before GitHub event intake starts, using the same validation and add-if-missing behavior as propr deploy fly --repo. Step 3 shows the stored repository count and explains that setup will monitor every repository on the chosen installation.

The epic’s three-way merge result is applied in the workspace. Read-only Git metadata prevented recording the merge ancestry.

All 141 targeted tests, typecheck, and lint passed. The startup regression verifies that completed setup registers the repositories, emits no retired-variable warning, and preserves later repository edits across restart. I also captured the updated wizard in Chromium and documented Fly’s region behavior. Dashboard sign-in still requires a separate sign-in after setup.

Review digest

Risk-tiered paths

  • High risk (2 files)
    • .github/workflows/fly-e2e.yml (+7/−12): CI or workflow file
    • packages/core/src/daemon/issueTriggerAuthorization.ts (+2/−1): auth-looking path
  • Normal risk (86 files)
    • .env.example (+8/−20)
    • docker-compose.yml (+0/−1)
    • docker/launcher/orchestrator.mjs (+0/−3)
    • packages/api/mcp/settingsCatalog.ts (+12/−14)
    • packages/api/mcp/toolsManagement.ts (+1/−1)
    • packages/api/mcp/toolsTriggerAccess.ts (+7/−38)
    • packages/api/routes/configRevision.ts (+0/−7)
    • packages/api/routes/configRoutes.ts (+57/−65)
    • packages/api/routes/configRoutesRepos.ts (+17/−2)
    • packages/api/routes/configRoutesSettings.ts (+5/−5)
    • packages/api/routes/hostedFleetRoutes.ts (+3/−3)
    • packages/api/routes/taskFollowupRoutes.ts (+2/−2)
    • packages/api/server.ts (+6/−2)
    • packages/api/services/configReloadSubscription.ts (+1/−1)
    • packages/api/userWhitelist.ts (+2/−6)
    • packages/cli/src/api/repos.ts (+10/−3)
    • packages/cli/src/commands/checkCommands.ts (+8/−7)
    • packages/cli/src/commands/deployFly.ts (+46/−1)
    • packages/cli/src/commands/setup/hostActions.ts (+4/−0)
    • packages/core/src/agents/agentImagePreparation.ts (+1/−1)
    • packages/core/src/agents/impl/OpenCodeAgent.ts (+1/−7)
    • packages/core/src/agents/runtime/fly/registry.ts (+3/−1)
    • packages/core/src/claude/claudeService.ts (+3/−3)
    • packages/core/src/config/agentWatchdogSettings.ts (+3/−5)
    • packages/core/src/config/configManager.ts (+13/−11)
    • packages/core/src/config/configManagerAgents.ts (+3/−20)
    • packages/core/src/config/configManagerUltrafix.ts (+1/−8)
    • packages/core/src/config/modelAliases.ts (+1/−5)
    • packages/core/src/config/modelLabelResolution.ts (+16/−1)
    • packages/core/src/daemon/configLoader.ts (+160/−175)
    • packages/core/src/index.ts (+5/−4)
    • packages/core/src/network/networkPolicy.ts (+3/−4)
    • packages/core/src/services/agentTankBundledRunner.ts (+3/−2)
    • packages/core/src/services/agentTankService.ts (+1/−7)
    • packages/core/src/services/worktreeMonitorService.ts (+37/−15)
    • packages/core/src/utils/commentFilters.ts (+11/−12)
    • packages/core/src/utils/errorHandler.ts (+6/−1)
    • packages/core/src/utils/userWhitelist.ts (+8/−2)
    • packages/core/src/webhook/ciFailureFollowup.ts (+1/−1)
    • packages/core/src/webhook/commentEventHandler.ts (+1/−1)
    • packages/core/src/webhook/epicMergeProgress.ts (+1/−1)
    • packages/core/src/webhook/followupAssignmentGate.ts (+1/−1)
    • packages/core/src/webhook/planIssueTracking.ts (+3/−2)
    • packages/local-setup/src/engine.ts (+8/−5)
    • packages/local-setup/src/github.ts (+4/−8)
    • packages/shared/src/userWhitelist.ts (+2/−15)
    • propr-ui/src/components/RepositorySettingsBar.tsx (+1/−1)
    • propr-ui/src/pages/SettingsPage/AgentNetworkSettingsSection.tsx (+2/−2)
    • …and 38 more
  • Low risk (63 files)
    • …and 63 more

Diff size: 151 files changed, +1,358/−1,926 lines

Visual preview

Fly setup repository summary

Fly setup repository summary

The administrator step shows the installation’s repository count and explains that all installed repositories will be monitored.

Full-size original


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @integry
  • Time: 7m 41s
  • Tokens: 2,867,720 (2,857,204 in / 10,516 out)
  • Cost: $0.57

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 7263238419✓

The Fly setup wizard now registers repositories in SQLite before GitHub event intake starts, using the same validation and add-if-missing behavior as `propr deploy fly --repo`. Step 3 shows the stored repository count and explains that setup will monitor every repository on the chosen installation.

The epic’s three-way merge result is applied in the workspace. Read-only Git metadata prevented recording the merge ancestry.

All 141 targeted tests, typecheck, and lint passed. The startup regression verifies that completed setup registers the repositories, emits no retired-variable warning, and preserves later repository edits across restart. I also captured the updated wizard in Chromium and documented Fly’s region behavior. Dashboard sign-in still requires a separate sign-in after setup.

PR: #3852
Comment by: @integry (ID: 7263238419)
Model: GPT-6.2 Sol

ProPR-Agent: codex/gpt-6.2-sol
@propr-dev propr-dev Bot changed the title 🔨 [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup ⚠️❼ [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup Nov 29, 2026
@integry

integry commented Nov 29, 2026

Copy link
Copy Markdown
Owner

F2 (blocker): the wizard must not monitor every installed repository by default

This happened on the live test instance. Step 2 ("Use the ProPR App") registered all 87 repositories the shared App is installed on. Within minutes the instance had taken a real AI-labeled issue (integry/propr-site#266) that the owner's main instance was already working on. It also posted a "Set PROPR_SPRITES_TOKEN…" failure comment there, removed the main instance's AI-processing label, and queued a follow-up on another repository's PR. I destroyed the instance and restored the label.

Every ProPR instance enrolled with the shared App can see the same installation, so monitoring everything by default makes a second instance race the first one.

Required:

  1. The wizard asks which repositories to monitor, with none preselected (or at most one, picked explicitly). It warns that a repository another ProPR instance already monitors will be processed twice.
  2. The selection is stored in the DB, as described in F1.
  3. A test shows that finishing setup without choosing a repository monitors nothing.

The suggestion in the earlier comment is superseded: this is now required.

@propr-dev propr-dev Bot changed the title ⚠️❼ [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup 🔨 [3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup Nov 29, 2026
@propr-dev

propr-dev Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 2070c72

Summary of Changes

The Fly setup wizard now asks which repositories to monitor on the Finish page. Every checkbox starts unchecked, and the wizard warns that both instances will process events for a repository they both monitor.

The wizard saves the selection to SQLite before event intake starts. Regression tests confirm that finishing with no selection monitors zero repositories and that selecting one monitors only that repository.

All 87 targeted tests passed, along with type checking and linting. Captured a Chromium preview and verified that repository selection works with JavaScript disabled.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (6 files)
    • src/flyLaunch.ts (+5/−5)
    • src/flyLaunch/launchConfig.ts (+5/−2)
    • src/flyLaunch/setupHttp.ts (+2/−2)
    • src/flyLaunch/setupLayout.ts (+2/−0)
    • src/flyLaunch/setupPages.ts (+18/−4)
    • src/flyLaunch/setupWizard.ts (+23/−5)
  • Low risk (1 file)
    • test/flyLaunchWizard.test.ts (+32/−10)

Diff size: 7 files changed, +87/−28 lines

Visual preview

Fly setup repository selection

Fly setup repository selection

The Finish page offers repositories from the GitHub installation, leaves every checkbox clear, and warns about duplicate processing.

Full-size original


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @integry
  • Time: 9m 53s
  • Tokens: 3,146,424 (3,135,396 in / 11,028 out)
  • Cost: $0.58
  • Subscription usage: Weekly +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 7263537889✓

The Fly setup wizard now asks which repositories to monitor on the Finish page. Every checkbox starts unchecked, and the wizard warns that both instances will process events for a repository they both monitor.

The wizard saves the selection to SQLite before event intake starts. Regression tests confirm that finishing with no selection monitors zero repositories and that selecting one monitors only that repository.

All 87 targeted tests passed, along with type checking and linting. Captured a Chromium preview and verified that repository selection works with JavaScript disabled.

PR: #3852
Comment by: @integry (ID: 7263537889)
Model: GPT-6.2 Sol

ProPR-Agent: codex/gpt-6.2-sol

integry commented Nov 29, 2026

Copy link
Copy Markdown
Owner

/merge

@propr-dev

propr-dev Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from 3758-epic-runtime-abstraction-sc0 into 3827/claude-opus-5-5-deploy-propr-from-the-fly-20261127-1654-htm in commit ab08467

Conflicting Files

  • packages/api/routes/configRoutes.ts
  • packages/api/test/deviceAuth.test.ts

Resolution Summary

Resolved both merge conflicts for PR #3852. A workspace-wide scan found no remaining conflict markers.

  • Both branches implemented case-insensitive deduplication for add-only repository updates. I kept the PR’s appendMissingRepos helper because it provides the same behavior as the target branch’s inline logic. The API and Fly launch setup share the helper, which preserves existing entries and lets the route skip saving and publishing when there are no additions. configRoutes.ts
  • The target branch added cleanup to the device sign-in whitelist test. I kept the test’s HTTP 403 and unauthenticated-session assertions and adopted the cleanup hook. It clears the persisted whitelist and reloads settings even if the test fails, so the temporary restriction cannot leak into other tests. deviceAuth.test.ts

TypeScript syntax checks passed for both files, and all 27 tests across the two focused suites passed. Git could not record the resolutions in its index because the worktree’s index lock is on a read-only filesystem.


🤖 Resolution Details

  • Model: GPT-6.2 Sol
  • Time: 5m 9s

View Task Execution


System-triggered merge conflict resolution

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- packages/api/routes/configRoutes.ts
- packages/api/test/deviceAuth.test.ts

PR: #3852
Model: GPT-6.2 Sol

integry commented Nov 29, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=10

@propr-dev

propr-dev Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 10)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR implements browser-based Fly deployment with persistent secrets, resumable setup, explicit repository selection, and instance-specific Sprite cleanup. The changed code addresses the reported setup races and accidental repository enrollment. No verified code blocker remains, but final dashboard acceptance evidence is still needed before calling it merge-ready.

✅ Explicit monitoring consent — Repository checkboxes start unchecked; Finish stores the selection, and startup imports it into SQLite before event intake. Regression tests cover selecting nothing and preserving later repository changes.

✅ Late writes are refused — Wizard writes re-read configuration inside a serialized queue and reject writes after completion. Tests exercise delayed runtime validation through the real bounded server shutdown.

✅ Sprite allocation is fenced — Cleanup reserves listed Sprites atomically against checkout and refuses active or provisioning resources, including outstanding create records.

The authoritative current checks report 36 passed, none failed or pending. This review used the supplied code and context; no commands or tests were executed.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S21: 🟢 Update repository selection instructions

In docs/docs/tutorials/setup-fly.md, both GitHub paths still say installed repositories become the monitored repository list. Step 8 also omits the new repository picker. Update these passages to explain that monitoring begins only for repositories explicitly selected at Finish, with none selected by default. This is a non-blocking documentation mismatch; the implementation and regression coverage enforce the safer behavior.

S22: 🟢 Complete dashboard acceptance evidence

The supplied successful runtime runs use propr deploy fly, while the history leaves the dashboard/device-flow acceptance run pending. Record the dashboard path’s end-to-end task results, restart and idle-wake persistence, and existing CLI deployment compatibility against the final implementation. This is a verification follow-up rather than a demonstrated code defect; the CLI results do not exercise the new launch entry and setup handoff.

Score

The implementation has substantial regression coverage and green current checks, with no verified code blocker. The outstanding dashboard acceptance evidence remains a material verification gap.

Score: 7/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 55s
  • Tokens: 171,126 (169,904 in / 1,222 out)
  • Cost: $1.63

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S21 S22

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Ultrafix stopped before reaching its goal. Requested goal: 8/10. Last score: 7/10. Stopped in cycle 1 of 10. The review has no actionable blockers, so no fix was scheduled. Manual review and merge are now required.

integry commented Nov 29, 2026

Copy link
Copy Markdown
Owner

/fix S21

@propr-dev

propr-dev Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 30bcd3a

Addressed 1 AI review comment (IDs: 7264587523)

Addressed suggestion S21

Summary of Changes

Updated both GitHub setup paths and step 8 of the Fly deployment tutorial. The tutorial now explains that the Finish picker starts with every box unchecked and ProPR monitors only the repositories explicitly selected there.

The docs build and all 41 existing wizard tests passed. Captured two previews of the rendered tutorial.

Separately, the tutorial’s existing Finish screenshot predates the repository picker.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk: none
  • Low risk (1 file)
    • docs/docs/tutorials/setup-fly.md (+5/−3)

Diff size: 1 file changed, +5/−3 lines

Visual preview

Finish step instructions

Finish step instructions

The tutorial explains the repository picker, the unchecked default, and what ProPR monitors after setup.

Full-size original

GitHub setup paths

GitHub setup paths

Both GitHub App paths explain how installed repositories become available for selection.

Full-size original


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @integry
  • Time: 7m 14s
  • Tokens: 877,051 (872,257 in / 4,794 out)
  • Cost: $0.23

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 7264792344✓

Updated both GitHub setup paths and step 8 of the [Fly deployment tutorial](/home/node/workspace/docs/docs/tutorials/setup-fly.md:74). The tutorial now explains that the Finish picker starts with every box unchecked and ProPR monitors only the repositories explicitly selected there.

The docs build and all 41 existing wizard tests passed. Captured two previews of the rendered tutorial.

Separately, the tutorial’s existing Finish screenshot predates the repository picker.

PR: #3852
Comment by: @integry (ID: 7264792344)
Model: GPT-6.2 Sol

ProPR-Agent: codex/gpt-6.2-sol

integry commented Nov 30, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR implements browser-based Fly setup, durable credentials, explicit repository selection, and instance-scoped Sprite cleanup. No merge-blocking defect was verified in the supplied code. Merge readiness remains conditional on the outstanding acceptance evidence and current checks.

✅ Explicit repository consent — Finish defaults to no repositories selected, and startup imports the selection into SQLite before event intake starts.

✅ Late writes stay rejected — Serialized configuration writes re-read persisted state and reject changes after completion; lifecycle tests cover delayed runtime validation and bounded shutdown.

✅ Cleanup checks allocation ownership — Sprite removal reserves inventory entries atomically, with tests covering an agent allocation racing the removal.

This was a static review; no commands or tests were executed.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S23: 🟢 Complete dashboard acceptance evidence

The supplied live evidence establishes dashboard setup and separate CLI-driven agent runs, but does not establish all requested dashboard acceptance cases: agent runs on both runtimes, restart persistence, and idle-stop/wake. Record those results against the reviewed implementation. This is a verification follow-up, not a demonstrated code defect.

S24: 🟢 Clarify the token fallback limitation

src/flyLaunch/setupPages.ts offers pasted-token enrollment when device flow is disabled, but administrator setup subsequently requires that same device flow. Explain this prerequisite before enrollment so users understand that pasting a token will not complete setup while device flow remains disabled. This is optional guidance improvement; the administrator step correctly refuses to bypass authentication.

Score

The implementation includes substantial regression coverage and addresses the repository-monitoring incident explicitly. The remaining dashboard acceptance evidence prevents an unconditional merge-ready assessment; the supplied current checks report no failures, with 22 pending.

Score: 7/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 14s
  • Tokens: 180,175 (178,776 in / 1,399 out)
  • Cost: $1.75

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S23 S24

🤖 Review by ProPR

This branch is being deployed

1 in progress deployment
production — 30bcd3a2 Deployed Nov 30, 2026 by fly-io[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant