Skip to content

[3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month - #3804

Merged
integry merged 13 commits into
3758-epic-runtime-abstraction-sc0from
3769/gpt-6.2-astra-docs-and-end-to-end-smoke-20261125-1156-i09
Nov 25, 2026
Merged

integry merged 13 commits into
3758-epic-runtime-abstraction-sc0from
3769/gpt-6.2-astra-docs-and-end-to-end-smoke-20261125-1156-i09

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3769

Branch: 3769/gpt-6.2-astra-docs-and-end-to-end-smoke-20261125-1156-i09
Commits: ✅ Changes committed (5ed7133)


AI Processing Completed

Execution Details:

Summary:
Implemented issue #3769. The new Fly tutorial covers both remote runtimes, measured resource usage, the Free plan’s $5 threshold and PAYG switch, and the trust model. It shows how opt-in idle shutdown can bring the estimated control-plane cost to $1.52 per 30 days under the documented assumptions. Idle shutdown remains off by default.

Added a runtime capabilities matrix, clarified the roadmap’s operator-owned compute scope, and added a secret-gated nightly/manual smoke workflow. It waits for the Machine to stop, labels a test issue, observes the wake, verifies the PR’s contents and recorded Sprites execution, then tears down the fixture.

The tutorial and workflow use the existing Machine configuration builder because this branch’s deploy CLI still rejects remote runtimes. The docs build, workflow lint, shell syntax checks, and all 18 Fly configuration tests passed. The live E2E is verified: smoke run 9 (https://github.com/integry/propr/actions/runs/45706507010, head 70db790) passed end to end with the dedicated fixture: deploy, idle stop, wake on the AI label, direct-webhook recovery (webhookRecovery.redelivered=1), a Claude run on Sprites (compute_runtime: sprites), the expected PR contents and full teardown, with no leftovers. Evidence: #3804 (comment). Runs 5–8 found and fixed F7–F11 along the way.

Review digest

Risk-tiered paths

  • High risk (1 file)
    • .github/workflows/fly-e2e.yml (added, +203/−0): CI or workflow file
  • Normal risk: none
  • Low risk (3 files)
    • docs/ROADMAP.md (+5/−2)
    • docs/docs/architecture/agent-runtime.md (+12/−1)
    • docs/docs/tutorials/setup-fly.md (added, +115/−0)

Diff size: 4 files changed, +335/−3 lines

View task for the run's logs and conversation.


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


💡 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

Fly deployment budget

Fly deployment budget

Monthly scenarios for a single control plane, including idle shutdown and stopped storage.

Full-size original

Agent runtime capabilities

Agent runtime capabilities

Supported agents, workspace transfer, network restrictions and capacity across the three runtimes.

Full-size original

Implemented issue #3769. The new Fly tutorial covers both remote runtimes, measured resource usage, the Free plan’s $5 threshold and PAYG switch, and the trust model. It shows how opt-in idle shutdown can bring the estimated control-plane cost to $1.52 per 30 days under the documented assumptions. Idle shutdown remains off by default.

Added a runtime capabilities matrix, clarified the roadmap’s operator-owned compute scope, and added a secret-gated nightly/manual smoke workflow. It waits for the Machine to stop, labels a test issue, observes the wake, verifies the PR’s contents and recorded Sprites execution, then tears down the fixture.

The tutorial and workflow use the existing Machine configuration builder because this branch’s deploy CLI still rejects remote runtimes. The docs build, workflow lint, shell syntax checks, and all 18 Fly configuration tests passed. The live E2E remains unverified because the dedicated fixture credentials were unavailable.

ProPR-Agent: codex/gpt-6.2-astra

integry commented Nov 25, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=5

@propr-dev propr-dev Bot added the ultrafix label Nov 25, 2026
@propr-dev

propr-dev Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

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

First action: /review

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

@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds a practical Fly deployment tutorial, a runtime comparison, and a disposable smoke workflow. The changes fit the stated scope. No merge-blocking defect is established by the supplied code, but the central live deployment-and-wake path remains unverified.

✅ Shared configuration recipe — The workflow extracts and executes the tutorial’s configuration script, reducing drift between documentation and automation.

✅ Deployment-scoped cleanup — Sprite cleanup reproduces the inventory marker calculation and checks the deployment-specific prefix before deletion.

✅ Meaningful smoke assertions — Verification ties the requested file to an issue-linked PR and checks for a successful Sprites execution associated with both.

This was a static review of the supplied diff and excerpts; no commands were run. Current checks show 18 passed, five pending, and no failures.

Merge blockers

No merge blockers.

Suggestions

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

S1: 🟢 Capture a live fixture run

Run the workflow with the dedicated credentials and retain evidence of deployment, natural shutdown, webhook wake, PR creation, execution recording, and teardown. The supplied configuration tests support the rendering contract, but cannot establish that this complete external integration works. This is a verification follow-up, not an identified code defect.

S2: 🟢 Consider cleanup after runner loss

The workflow’s always() teardown steps cover ordinary step failures, but cannot guarantee cleanup after runner loss or exhaustion of the overall job timeout. A periodic reconciliation process for expired fixture apps and their associated Sprites would help control recurring test costs. This is optional operational hardening; the supplied evidence does not establish an actual resource leak.

Score

The implementation is coherent and appropriately scoped, with no verified blocker. The unavailable live smoke result leaves a material verification gap in the PR’s central end-to-end claim.

Score: 7/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 39s
  • Tokens: 47,477 (46,723 in / 754 out)
  • Cost: $0.39

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 S1 S2

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 25, 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 5. The review has no actionable blockers, so no fix was scheduled. Manual review and merge are now required.

@propr-dev propr-dev Bot removed the ultrafix label Nov 25, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month ⚠️❼ [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month Nov 25, 2026
@integry

integry commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Maintainer review plus live check (at 5ed7133)

Live: the tutorial's deploy → idle stop → wake path on real Fly passes

Control-plane image built remotely from docker/Dockerfile.app.prod (507 MB). Config rendered with the exact Render Machine configuration block, extracted the same way the workflow does it. Demo mode, a dummy GitHub App key, IDLE_AFTER=2m, region ams.

step result
fly deploy with the rendered fly.toml (shared-cpu-1x, 1 GB, redis+app containers, auto_stop_machines = "off", auto_start_machines = true) ok
/health 200 within about 5 s
natural idle stop Machine stopped after about 149 s
wake on an incoming HTTP request 200 in 16 s, Machine started

Not covered live: issue → PR on Sprites, which needs a fixture GitHub App and repo.

Findings

  1. The stop token is never revoked (security). The workflow mints PROPR_FLY_MACHINE_STOP_TOKEN with tokens create deploy --expiry 2h, but teardown only runs apps destroy. Live, a deploy token stays active after its app is destroyed (seen again just now). Save the token's id, for example from flyctl tokens list -a "$APP" --json or the create output, and flyctl tokens revoke <id> in an if: always() step. Also mention in the tutorial that an operator should revoke the stop token when tearing down an install.
  2. The nightly schedule spends real money by default. schedule: cron '17 4 * * *' runs a Fly deploy, a Sprite and a model call every night, and opens an issue and a PR in the fixture repo. Make the schedule opt-in, for example if: github.event_name == 'workflow_dispatch' || vars.FLY_E2E_NIGHTLY == 'true', and document that variable. It also shares the Free plan's 3 Machines and 3 Sprites with whatever else is in the org.
  3. The Sprite timing is misleading for budgets. "~36 s to provision" is the bare Sprite create. Provisioning with all pinned agent CLIs plus two clone runs took 143–187 s in test/spritesRuntime.live.test.ts today. State both numbers, so first-run cost isn't underestimated.
  4. The Machines limit wording. "up to three Machines (including stopped ones)": Fly's Free plan page doesn't say whether stopped Machines count. Either cite a source or soften it to "count stopped Machines too, to be safe". The "billed from the first cent" claim is correct per https://docs.fly.io/about/free-plan.
  5. Docs wording: "The CLI on this branch refuses remote runtimes in propr deploy fly" reads like a PR note. Phrase it for readers, for example "propr deploy fly doesn't support remote runtimes yet; use the source recipe below".
  6. Optional: for the wake note, the measured wake was 16 s from ams against about 11 s in the docs. Write "about 10–20 s".

@propr-dev propr-dev Bot changed the title ⚠️❼ [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month 🔨 [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month Nov 25, 2026
@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit c60f7cf

Summary of Changes

The Fly smoke workflow now revokes its app-scoped stop token before destroying the fixture, including after a failed deployment. Manual runs remain available. Nightly runs require the repository variable FLY_E2E_NIGHTLY=true.

The tutorial documents operator token revocation, nightly costs and shared quotas, and the remote-runtime deployment recipe. It distinguishes bare Sprite creation (~36 seconds) from full CLI provisioning plus two clone runs (143–187 seconds), reports a 10–20 second wake range, and treats counting stopped Machines as a conservative planning assumption.

The docs build, workflow lint, shell syntax checks, and mocked token-cleanup checks passed. The paid Fly/Sprites issue-to-PR path was not rerun.

Review digest

Risk-tiered paths

  • High risk (1 file)
    • .github/workflows/fly-e2e.yml (+14/−1): CI or workflow file
  • Normal risk: none
  • Low risk (1 file)
    • docs/docs/tutorials/setup-fly.md (+12/−8)

Diff size: 2 files changed, +26/−9 lines

Visual preview

Opting in to the nightly smoke test

Opting in to the nightly smoke test

The tutorial explains the nightly opt-in, charges and shared Free plan limits.

Full-size original

Sprite provisioning and run times

Sprite provisioning and run times

Measured times for bare Sprite creation, full provisioning with two clone runs, and warm checks.

Full-size original


🤖 Implementation Details

  • Model: GPT-6.2 Astra (medium)
  • Requested By: @integry
  • Time: 5m 6s
  • Tokens: 590,574 (586,984 in / 3,590 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: 7162491676✓

The Fly smoke workflow now revokes its app-scoped stop token before destroying the fixture, including after a failed deployment. Manual runs remain available. Nightly runs require the repository variable `FLY_E2E_NIGHTLY=true`.

The tutorial documents operator token revocation, nightly costs and shared quotas, and the remote-runtime deployment recipe. It distinguishes bare Sprite creation (~36 seconds) from full CLI provisioning plus two clone runs (143–187 seconds), reports a 10–20 second wake range, and treats counting stopped Machines as a conservative planning assumption.

The docs build, workflow lint, shell syntax checks, and mocked token-cleanup checks passed. The paid Fly/Sprites issue-to-PR path was not rerun.

PR: #3804
Comment by: @integry (ID: 7162491676)
Model: GPT-6.2 Astra

ProPR-Agent: codex/gpt-6.2-astra

integry commented Nov 25, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=5

@propr-dev propr-dev Bot added the ultrafix label Nov 25, 2026
@propr-dev

propr-dev Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

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

First action: /review

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

@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds a Fly deployment tutorial, runtime comparison, and disposable end-to-end smoke workflow. The changes fit the stated scope. No merge-blocking defect is established by the supplied code, but live validation remains a material gap before calling the deployment path merge-ready.

✅ Opt-in shutdown — The tutorial explicitly overrides the spread defaults with idleShutdownAfter: IDLE_AFTER, preserving always-on behavior when the variable is unset.

✅ Specific execution verification — The smoke checks the requested file and correlates a successful Sprites execution with the fixture repository, issue, and PR.

✅ Scoped cleanup — Sprite cleanup derives the deployment prefix using the same instance-key digest as the supplied runtime implementation.

This was a static review of the supplied diff and context; no commands were run. Current checks show 18 passed, five pending, and no failures.

Merge blockers

No merge blockers.

Suggestions

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

S3: 🟢 Record a live fixture run

Run the manual workflow with the documented dedicated credentials and retain evidence of idle stop, webhook wake, PR contents, execution verification, and cleanup. The implementation summary explicitly says this path remains unverified; configuration tests and lint cannot establish that the external services complete the full sequence. This is a validation follow-up, not a demonstrated code defect.

S4: 🟢 Exercise failure cleanup

A subsequent fixture run that deliberately fails after provisioning would help validate the separate always() cleanup steps in .github/workflows/fly-e2e.yml. Confirm that the webhook, stop token, app, Sprites, and fixture work are removed. This is optional additional coverage; the supplied code does not establish a specific cleanup failure.

Score

The implementation is focused and statically consistent with the supplied contracts. The unverified live deployment and wake-to-PR sequence leaves a material verification gap despite the passing checks.

Score: 7/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 38s
  • Tokens: 46,463 (45,715 in / 748 out)
  • Cost: $0.38

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 S3 S4

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 25, 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 5. The review has no actionable blockers, so no fix was scheduled. Manual review and merge are now required.

@propr-dev propr-dev Bot removed the ultrafix label Nov 25, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month ⚠️❼ [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month Nov 25, 2026
@integry

integry commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Full fixture E2E on Fly (head c60f7cf)

Ran the tutorial's render recipe end to end on a throwaway app (propr-fix-e2e, ams, image built from docker/Dockerfile.app.prod at c60f7cf), with Sprites as the runtime, PROPR_SPRITES_MAX=1, idle shutdown off, against a private fixture repository. GitHub events arrived through the ProPR Connect relay (GH_AUTH_MODE=relay, GITHUB_EVENT_INTAKE_MODE=routing_websocket), not a direct webhook.

Result: all three agents produced the requested PR on Sprites.

Agent / model PR content compute_runtime wall provisioning restore queue
codex / gpt-6.2-sol fly-codex.txt only, exact line sprites 54.0 s 29.8 s 3.2 s 234 s (slot held by a Sprite from an interrupted run, see below)
antigravity / gemini-3.8-flash fly-antigravity.txt only, exact line sprites 51.9 s 0 (warm) 8.3 s 0
claude / claude-sonnet-5-5 fly-claude.txt only, exact line sprites 35.9 s 0 (warm) 7.2 s 0

Also confirmed: health 200 about 10 s after deploy; the relay WebSocket reconnected after a Machine restart; with idle off, no PROPR_IDLE_SHUTDOWN* env is rendered and auto_stop_machines = "off"; at the 1-Sprite cap, a run waited its bounded 10 minutes and then failed with the clear message No Sprite available: cap 1 reached after 10m. Teardown: app destroyed, its Sprites deleted, fixture issues and PRs closed.

Findings to fix in this PR

F1 (blocker): the tutorial never sets PROPR_ADMIN_USERS, so the deploy as written never becomes healthy. The API exits with Failed to start server: Error: No instance administrator is configured. Set PROPR_ADMIN_USERS … (assertInstanceAdministratorConfigured, packages/api/server.js). The Machine restarts until the restart limit (restart count is 11/10), and fly deploy times out on health checks. Add PROPR_ADMIN_USERS: '<your-github-login>' (comma-separated) to extraEnv in the render block, or to the private env file, and say what it is for. A health check for this in the nightly fixture workflow would catch regressions.

F2: a fresh instance has no agent configurations, and the tutorial's "label a small issue AI" step then fails. With zero agents, AI + llm-claude resolved to a placeholder default agent and failed with There's an issue with the selected model (claude). It may not exist or you may not have access to it. It only worked after Claude, Codex and Antigravity agent configs were created. "Sign in to a supported agent in the Web UI after deploy" doesn't make this clear, and the headless CLAUDE_SETTINGS_B64 path never opens the UI. In the verify step, state that at least one agent must be configured first: add it in Settings → Agents, or headlessly with the MCP create_agent_configuration tool. Also say which llm-<alias> label selects it.

F3 (small): the render recipe's files.push assumes the GitHub App key mount. config.containers.find(c => c.name === 'app').files is undefined when githubAppKey is false (relay / Connect users), so the snippet throws Cannot read properties of undefined (reading 'push'). Use (app.files ??= []).push(...).

F4 (optional, docs): add a short Connect relay variant. With GH_AUTH_MODE=relay, PROPR_GH_RELAY_URL, PROPR_GH_RELAY_TOKEN, GH_INSTALLATION_ID and GITHUB_EVENT_INTAKE_MODE: 'routing_websocket', the shared ProPR App works without creating a GitHub App or a public webhook. For a Free-plan user this is the easiest path, and it worked unchanged in this run.

Out of scope, filed separately: the HEAD~1...HEAD log noise on single-commit repos, and env-vs-DB configuration duplication (GITHUB_REPOS_TO_MONITOR, agents).

@propr-dev propr-dev Bot changed the title ⚠️❼ [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month 🔨 [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month Nov 25, 2026
@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit a58af14

Summary of Changes

Updated the Fly tutorial and nightly fixture for all four findings. The tutorial now requires PROPR_ADMIN_USERS, explains how to configure and enable an agent before applying llm-<alias> and AI, and includes a working Connect relay recipe. Headless Claude settings now mount correctly with either GitHub authentication mode.

The nightly fixture requires HTTP 200 from /health, configures an enabled Claude agent, and selects it with llm-claude before triggering the wake test. Existing fixtures need the administrator’s GitHub login in FLY_E2E_APP_ENV and an llm-claude label in the fixture repository.

The docs build, all 18 Fly configuration tests, and all four combinations of authentication mode and optional Claude settings passed locally. I also verified the fixture’s agent setup against SQLite. I did not rerun the live Fly deployment.

Review digest

Risk-tiered paths

  • High risk (1 file)
    • .github/workflows/fly-e2e.yml (+21/−4): CI or workflow file
  • Normal risk: none
  • Low risk (1 file)
    • docs/docs/tutorials/setup-fly.md (+26/−10)

Diff size: 2 files changed, +47/−14 lines

Visual preview

Verify an issue run

Verify an issue run

The Fly tutorial shows how to enable an agent and select it with issue labels.

Full-size original


🤖 Implementation Details

  • Model: GPT-6.2 Astra (medium)
  • Requested By: @integry
  • Time: 6m 56s
  • Tokens: 721,012 (713,974 in / 7,038 out)
  • Cost: $0.86
  • 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: 7164431835✓

Updated the Fly tutorial and nightly fixture for all four findings. The tutorial now requires `PROPR_ADMIN_USERS`, explains how to configure and enable an agent before applying `llm-<alias>` and `AI`, and includes a working Connect relay recipe. Headless Claude settings now mount correctly with either GitHub authentication mode.

The nightly fixture requires HTTP 200 from `/health`, configures an enabled Claude agent, and selects it with `llm-claude` before triggering the wake test. Existing fixtures need the administrator’s GitHub login in `FLY_E2E_APP_ENV` and an `llm-claude` label in the fixture repository.

The docs build, all 18 Fly configuration tests, and all four combinations of authentication mode and optional Claude settings passed locally. I also verified the fixture’s agent setup against SQLite. I did not rerun the live Fly deployment.

PR: #3804
Comment by: @integry (ID: 7164431835)
Model: GPT-6.2 Astra

ProPR-Agent: codex/gpt-6.2-astra

integry commented Nov 25, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=3

@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit bb6dd21

Summary of Changes

Fixed F10. The Fly smoke workflow now closes fixture PRs with the PAT and deletes their branches with a masked fixture App installation token. Cleanup accepts 404 or 422 responses indicating the branch is already gone and reports other deletion failures.

The workflow also uses the App token to read the generated file during verification. The tutorial now documents that the PAT needs only Issues and Pull requests read/write access, with no Contents access.

The docs build and workflow shell syntax checks passed. Mocked cleanup tests covered multiple PRs, missing branches, permission errors, and an empty PR list. A live Fly rerun remains unverified.

Review digest

Risk-tiered paths

  • High risk (1 file)
    • .github/workflows/fly-e2e.yml (+31/−4): CI or workflow file
  • Normal risk: none
  • Low risk (1 file)
    • docs/docs/tutorials/setup-fly.md (+1/−1)

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

Visual preview

Fly smoke fixture secrets

Fly smoke fixture secrets

The tutorial lists the PAT permissions and identifies the fixture App operations that use Contents access.

Full-size original


🤖 Implementation Details

  • Model: GPT-6.2 Astra (medium)
  • Requested By: @integry
  • Time: 4m 9s
  • Tokens: 311,070 (307,958 in / 3,112 out)
  • Cost: $0.36

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: 7174900657✓

Fixed F10. The Fly smoke workflow now closes fixture PRs with the PAT and deletes their branches with a masked fixture App installation token. Cleanup accepts 404 or 422 responses indicating the branch is already gone and reports other deletion failures.

The workflow also uses the App token to read the generated file during verification. The tutorial now documents that the PAT needs only Issues and Pull requests read/write access, with no Contents access.

The docs build and workflow shell syntax checks passed. Mocked cleanup tests covered multiple PRs, missing branches, permission errors, and an empty PR list. A live Fly rerun remains unverified.

PR: #3804
Comment by: @integry (ID: 7174900657)
Model: GPT-6.2 Astra

ProPR-Agent: codex/gpt-6.2-astra
@integry

integry commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Run 8 of the Fly smoke workflow: F11, App installation token mint fails (401)

Run: https://github.com/integry/propr/actions/runs/45704046328 (bb6dd21). Deploy, App webhook, idle stop and wake, and recovery (webhookRecovery.redelivered=1) all passed. Claude started at 21:33 and opened fixture PR #12 at 21:34. The verify step then failed in the new installation-token.sh:

gh: A JSON web token could not be decoded (HTTP 401)

F11 (blocker): GH_TOKEN="$jwt" gh api --method POST app/installations/$id/access_tokens makes gh send Authorization: token <jwt>, but GitHub accepts an App JWT only as Authorization: Bearer <jwt>. Mint the installation token with curl and a Bearer header (same as app_api in the configure step), e.g. curl --fail --silent --show-error -X POST -H "Authorization: Bearer $jwt" -H 'Accept: application/vnd.github+json' "https://api.github.com/app/installations/$installation_id/access_tokens" | jq -er .token. Using the resulting installation token with gh through GH_TOKEN is fine. Add a quick shellcheck-level self-test if practical (e.g. run the mint once right after the App webhook config, so a broken mint fails early, before the long wait).

@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 70db790

Summary of Changes

Updated the Fly smoke workflow to mint installation tokens with curl using Authorization: Bearer <App JWT>. The workflow now tests the mint immediately after configuring the webhook. A failed request or an empty token stops the run before it creates the fixture issue or waits for idle shutdown.

The configure step and generated helper passed bash -n, and git diff --check passed. A live mint with the fixture App remains unverified.

Review digest

Risk-tiered paths

  • High risk (1 file)
    • .github/workflows/fly-e2e.yml (+4/−1): CI or workflow file
  • Normal risk: none
  • Low risk: none

Diff size: 1 file changed, +4/−1 lines


🤖 Implementation Details

  • Model: GPT-6.2 Astra (medium)
  • Requested By: @integry
  • Time: 3m 12s
  • Tokens: 147,189 (146,460 in / 729 out)
  • Cost: $0.18

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: 7175285859✓

Updated the Fly smoke workflow to mint installation tokens with `curl` using `Authorization: Bearer <App JWT>`. The workflow now tests the mint immediately after configuring the webhook. A failed request or an empty token stops the run before it creates the fixture issue or waits for idle shutdown.

The configure step and generated helper passed `bash -n`, and `git diff --check` passed. A live mint with the fixture App remains unverified.

PR: #3804
Comment by: @integry (ID: 7175285859)
Model: GPT-6.2 Astra

ProPR-Agent: codex/gpt-6.2-astra
@integry

integry commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Run 9 of the Fly smoke workflow: ✅ green end to end (70db790)

Run: https://github.com/integry/propr/actions/runs/45706507010 (21:40–21:52 UTC, conclusion success).

Check Evidence
Deploy (tutorial render, idle shutdown 2m), Claude settings on volume, App webhook delivery passed
Idle stop → wake on AI label passed
#3812 direct-webhook recovery Idle wake webhookRecovery.redelivered=1
Agent run on Sprites {"compute_runtime":"sprites","compute_wall_time_ms":59991} (Claude Sonnet 5.5)
PR fixture PR #14 with exactly propr-e2e-45706507010-1.txt (+1)
Teardown App webhook reset; app, Machines and volume destroyed; Sprites reaped; PR closed and branch deleted with the App installation token; issue closed
Leftovers after the run 0 propr-e2e-* Fly apps; fixture branches: main only; 0 open PRs; 0 open issues

F7–F11 are all confirmed fixed live.

@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @integry

Analysis Summary

PR #3804 needs no follow-up changes. The branch is at 70db790, the commit tested by Fly smoke run 9. The run report confirms F7–F11 passed end to end, including webhook recovery after idle wake, execution on Sprites, and complete fixture cleanup.

No code changes were necessary based on the current state of the branch.


🤖 Analysis Details

  • Model: GPT-6.2 Astra (medium)
  • Time: 2m 52s
  • Tokens: 44,093 (43,905 in / 188 out)
  • Cost: $0.09

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: 7175653338✓

integry commented Nov 25, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=3

@propr-dev propr-dev Bot added the ultrafix label Nov 25, 2026
@propr-dev

propr-dev Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

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

First action: /review

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

@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR provides a detailed Fly deployment tutorial and a smoke workflow covering deployment, idle shutdown, webhook wake, PR contents, recorded Sprites execution, and teardown. The configuration and test changes support that scope. No merge-blocking defect is demonstrated by the supplied code, but live end-to-end verification remains a material gap.

✅ Mount-safe credentials — The GitHub App key moves outside /run and the data volume. Validation rejects normalized paths beneath either mount, with tests covering both remote and legacy configurations.

✅ Specific execution verification — The smoke workflow checks the generated file and requires a successful Sprites execution associated with both the fixture issue and PR.

✅ Deterministic shutdown test — Mocked time verifies the exact remaining flush allowance without relying on a short wall-clock delay.

The supplied current checks report 33 passed, one pending, and 16 skipped, with no failures. This was a static review of the supplied diff and context; no commands were run.

Merge blockers

No merge blockers.

Suggestions

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

S7: 🟢 Record a live smoke result

Run the workflow with the dedicated fixture credentials and retain evidence of deployment, idle stop, webhook wake, successful execution, and cleanup. The supplied history explicitly leaves the live E2E unverified; configuration tests and workflow lint cannot establish that the external services accept the complete sequence. This is a verification follow-up rather than a demonstrated code defect.

S8: 🟢 Reconcile deployment documentation

The existing warning in docs/docs/operations/deploy-fly.md says the worker supports only Docker, while the new tutorial and runtime reference describe working remote runtimes with a CLI deployment restriction. Updating that warning to distinguish worker support from CLI support would reduce confusion. Its inaccurate wording predates this diff, so it is not a blocker.

Score

The implementation is coherent and the supplied checks show no failures. The outstanding live smoke verification prevents confidently calling the end-to-end objective merge-ready.

Score: 7/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 43s
  • Tokens: 63,064 (62,233 in / 831 out)
  • Cost: $0.55

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 S7 S8

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 25, 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 3. The review has no actionable blockers, so no fix was scheduled. Manual review and merge are now required.

@propr-dev propr-dev Bot removed the ultrafix label Nov 25, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month ⚠️❼ [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month Nov 25, 2026
@integry

integry commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Please fix S8 (live E2E for S7 is already done)

S7: already satisfied. Smoke run 9 passed end to end on 70db790 (https://github.com/integry/propr/actions/runs/45706507010; evidence in #3804 (comment)). I've updated the PR description to say so; no change needed.

S8: please fix. docs/docs/operations/deploy-fly.md still warns that the worker supports only Docker. Update that warning to separate the two facts:

  • worker/runtime support: Sprites and Fly Machines runtimes work, as verified live;
  • CLI support: propr deploy on this branch still rejects remote runtimes, so the tutorial renders the Machine config with the configuration builder.

Link the tutorial and the runtime capabilities matrix, and keep the wording consistent with both.

@propr-dev propr-dev Bot changed the title ⚠️❼ [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month 🔨 [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month Nov 25, 2026
@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit f4ea15e

Summary of Changes

Fixed S8 in the Fly deployment guide. The warning now explains that live runs verified worker support for both Sprites and Fly Machines. The branch’s propr deploy fly CLI still rejects both remote runtimes, so the warning links to the tutorial’s configuration builder instructions and the runtime capabilities matrix.

The docs build passed. I verified that the warning renders correctly and both links reach their intended destinations.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk: none
  • Low risk (1 file)
    • docs/docs/operations/deploy-fly.md (+10/−6)

Diff size: 1 file changed, +10/−6 lines

Visual preview

Fly deployment warning

Fly deployment warning

The operations guide distinguishes worker runtime support from the deploy CLI limitation.

Full-size original


🤖 Implementation Details

  • Model: GPT-6.2 Astra (medium)
  • Requested By: @integry
  • Time: 4m 12s
  • Tokens: 488,421 (486,196 in / 2,225 out)
  • Cost: $0.44

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: 7176303125✓

Fixed S8 in the [Fly deployment guide](/home/node/workspace/docs/docs/operations/deploy-fly.md:16). The warning now explains that live runs verified worker support for both Sprites and Fly Machines. The branch’s `propr deploy fly` CLI still rejects both remote runtimes, so the warning links to the tutorial’s configuration builder instructions and the runtime capabilities matrix.

The docs build passed. I verified that the warning renders correctly and both links reach their intended destinations.

PR: #3804
Comment by: @integry (ID: 7176303125)
Model: GPT-6.2 Astra

ProPR-Agent: codex/gpt-6.2-astra

integry commented Nov 25, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=3

@propr-dev propr-dev Bot added the ultrafix label Nov 25, 2026
@propr-dev

propr-dev Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

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

First action: /review

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

@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR delivers the Fly deployment tutorial, runtime comparison, and opt-in live smoke workflow, with focused configuration fixes discovered during validation. It is merge-ready within the reviewed scope, conditional on the remaining checks passing.

✅ Configuration matches mount behavior — The GitHub App key moves to /etc/propr/github-app.pem; validation rejects normalized paths hidden by the data volume or /run, with regression coverage.

✅ Meaningful end-to-end assertions — The workflow observes stop and wake, checks the linked PR’s generated file, and verifies a successful Sprites execution associated with both the issue and PR.

✅ Explicit operating assumptions — The tutorial distinguishes estimated costs, measured resource usage, optional idle shutdown, and operator-owned credentials and compute.

This review used only the supplied diff and context. No commands or tests were run. The authoritative check status reports 29 passed, five pending, and no failures.

Merge blockers

No merge blockers.

Suggestions

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

S9: 🟢 Exercise recovery deterministically

In .github/workflows/fly-e2e.yml, the verification step records webhookRecovery.redelivered and rejects recovery errors, but permits zero redeliveries. That is appropriate when the waking webhook succeeds directly. An additional targeted scenario that deliberately requires redelivery would strengthen regression coverage for recovery itself. This is optional because the current smoke already verifies the requested stop-to-wake-to-PR behavior, and the supplied history reports a successful live redelivery.

Score

The changes are coherent and appropriately scoped, with useful regression tests and substantive live-smoke assertions. No merge blocker was established by static review; merge remains conditional on the pending checks completing successfully.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 30s
  • Tokens: 61,068 (60,357 in / 711 out)
  • Cost: $0.53

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 S9

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 25, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month ✅❾ [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month Nov 25, 2026
@integry
integry merged commit 6d3d761 into 3758-epic-runtime-abstraction-sc0 Nov 25, 2026
55 checks passed
@propr-dev propr-dev Bot changed the title ✅❾ [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month [3769 by GPT-6.2 Astra] Docs and end-to-end smoke test: ProPR on Fly under $5/month Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant