Repository navigation
[3827 by Claude Opus 5.5] Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup - #3852
Conversation
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
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThis 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 blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Prevent late requests from reopening completed setup
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Capture live dashboard acceptance evidenceThe 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 failureThe 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. ScoreThe 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
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
Please fix F1 from the latest review. Serialize every setup-wizard write (a single async mutex or a promise chain over 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. |
|
✅ Applied the requested follow-up changes in commit 7325c04 Summary of ChangesI'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 What changed in
Test ( 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 digestRisk-tiered paths
Diff size: 3 files changed, +117/−19 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
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
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe 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 ✅ 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 blockersEvery finding below was introduced by this PR and must be resolved before merging. F2: 🔴 Preserve late-request refusal responses
SuggestionsThese are optional follow-ups and are not sent to S3: 🟢 Record live acceptance evidenceThe 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. ScoreThe 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
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
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 The live dashboard launch is in progress on 7325c04; I'll post the Step 0 findings when it finishes. |
|
✅ Applied the requested follow-up changes in commit b3a41ef Summary of ChangesI'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, What changed in
Tests (
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 digestRisk-tiered paths
Diff size: 2 files changed, +135/−21 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
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 What to change:
Leave |
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
|
✅ Applied the requested follow-up changes in commit c7362c4 Summary of ChangesThe root Until the next release, the default path doesn't run ProPR. The pinned The two configs
Release integration
When the pinned image has no launch entry
Docs
Review digestRisk-tiered paths
Diff size: 11 files changed, +285/−37 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
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
|
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
Advanced: "Create your own GitHub App". The current manifest flow, unchanged, for people who want no ProPR-hosted service in the path. Also:
|
|
✅ Applied the requested follow-up changes in commit c902ba9 Summary of ChangesThe 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):
How the ProPR App path works:
Idle shutdown: the wake-target route is live on the hosted relay. When you tick idle shutdown on the ProPR App path, Finish registers Tests: 40 Fly launch tests pass, 9 of them new. Typecheck and lint are clean. The new tests cover:
Docs: Prebuilt image: that request was already done in the previous commit on this branch (c7362c4, root The Connect code is mostly in Review digestRisk-tiered paths
Diff size: 16 files changed, +969/−79 lines Visual previewSetup code entryFirst step: the one-time setup code from the Machine logs. Administrator sign-in (ProPR App path)Installed repositories from the ProPR App installation, sign-in with the registered OAuth App. Pick the installationA token that can use more than one ProPR App installation: pick one and paste the token again (it was not kept). Finish step, mobile darkThe ProPR App path finish step at 390px in dark mode. Finish: idle shutdown with Connect wakeLast step on the ProPR App path: idle shutdown registers /wake with ProPR Connect. Advanced: create your own GitHub AppThe advanced choice opened: the unchanged manifest flow with the instance URLs. GitHub step: ProPR App by defaultThe GitHub step now offers the shared ProPR App (recommended) first, and creating your own App as a collapsed advanced choice. Agent runtimeRuntime step with the ProPR App path step list. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Live test of ab19a8f via Fly dashboard "Launch from GitHub"App
F1 (blocker for merging into the epic): the wizard stores repositories only in
|
|
✅ Applied the requested follow-up changes in commit 4d53562 Summary of ChangesThe Fly setup wizard now registers repositories in SQLite before GitHub event intake starts, using the same validation and add-if-missing behavior as 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 digestRisk-tiered paths
Diff size: 151 files changed, +1,358/−1,926 lines Visual previewFly setup repository summaryThe administrator step shows the installation’s repository count and explains that all installed repositories will be monitored. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
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
F2 (blocker): the wizard must not monitor every installed repository by defaultThis 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 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:
The suggestion in the earlier comment is superseded: this is now required. |
|
✅ Applied the requested follow-up changes in commit 2070c72 Summary of ChangesThe 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 digestRisk-tiered paths
Diff size: 7 files changed, +87/−28 lines Visual previewFly setup repository selectionThe Finish page offers repositories from the GitHub installation, leaves every checkbox clear, and warns about duplicate processing. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
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
|
/merge |
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved both merge conflicts for PR #3852. A workspace-wide scan found no remaining conflict markers.
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
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
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe 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 blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S21: 🟢 Update repository selection instructionsIn S22: 🟢 Complete dashboard acceptance evidenceThe supplied successful runtime runs use ScoreThe 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
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
|
|
/fix S21 |
|
✅ Applied the requested follow-up changes in commit 30bcd3a
Summary of ChangesUpdated 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 digestRisk-tiered paths
Diff size: 1 file changed, +5/−3 lines Visual previewFinish step instructionsThe tutorial explains the repository picker, the unchecked default, and what ProPR monitors after setup. GitHub setup pathsBoth GitHub App paths explain how installed repositories become available for selection. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
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
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe 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 blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S23: 🟢 Complete dashboard acceptance evidenceThe 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
ScoreThe 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
Copy and edit to choose records from this review: 🤖 Review by ProPR |












AI Implementation Summary
Closes #3827
Branch:
3827/claude-opus-5-5-deploy-propr-from-the-fly-20261127-1654-htmCommits: ✅ 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.tomlis used as-is, and that a repository's settings include deploy-on-push and afly.tomlpath. Nothing I found says whether the dashboard:[[mounts]].fly.tomlwith no app name.The design avoids depending on most of that: nothing has to be entered at launch.
Design choices worth knowing
propr deploy fly, throughscripts/fly-launch-entrypoint.sh.propr/appimage.fly.tomlrestarts only on failure and keeps auto-start on. Idle shutdown stays off unless chosen in the wizard's last step.fly.tomlis generated from the CLI's builders bypackages/cli/scripts/render-fly-launch-toml.ts. A test fails if the committed file differs, and another checks that the boot env equals whatpropr deploy flysets for the same app.PROPR_FLY_LAUNCH=1(set by the committedfly.toml) run the new entry.propr deploy flyMachines start the control plane directly as before. An instance whose environment already has GitHub credentials never shows the wizard.What was added
src/flyLaunch/bootSecrets.ts):SESSION_SECRET,SYSTEM_TASK_SECRETandMCP_ENCRYPTION_KEYare generated once and kept indata/fly-launch/(folder 0700, files 0600). Values are never logged. The secret list now lives in@propr/sharedand the CLI reads it from there.src/flyLaunch/setupWizard.ts):fly logsclaims 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..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.setup-fly.mdwith wizard screenshots, how updates arrive (Sync fork, then deploy-on-push or Deploy), and a comparison withpropr deploy fly. Also a README row and a CHANGELOG entry.Testing
eslint src/are clean.Referrer-Policy: no-referrer, the browser sentOrigin: nullon the claim form and my origin check rejected it. It's fixed (same-origin) and a test now covers it./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:
propr deploy flyapp from this branch and confirm no wizard appears.Sources:
Review digest
Risk-tiered paths
.github/workflows/fly-agent-image.yml(added, +74/−0): CI or workflow filedocker/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)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
Installed repositories listed; signing in with GitHub makes that account the first administrator.
Full-size original
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
A wrong code is refused without claiming the instance.
Full-size original
Second browser shut out
Another browser after the claim: setup is refused even with the code.
Full-size original
Finish step
Last step with the idle shutdown opt-in, off by default.
Full-size original
Finish step, mobile dark
The finish step at 390px in dark mode for the claimant's browser.
Full-size original
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
The App was created from the manifest; install it on the chosen repositories.
Full-size original
Suggested agent tools