Skip to content

[3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) - #3888

Merged
integry merged 16 commits into
3758-epic-runtime-abstraction-sc0from
3887/gpt-6.2-sol-propr-deploy-fly-secrets--20261129-1526-ouh
Nov 30, 2026
Merged

integry merged 16 commits into
3758-epic-runtime-abstraction-sc0from
3887/gpt-6.2-sol-propr-deploy-fly-secrets--20261129-1526-ouh

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3887

Branch: 3887/gpt-6.2-sol-propr-deploy-fly-secrets--20261129-1526-ouh
Commits: ✅ Changes committed (30d2955)


AI Processing Completed

Execution Details:

Summary:
After adding a secret with fly secrets set, rerun propr deploy fly with the same deployment options. The redeploy uses the names from Fly’s secret list to rebuild the app container’s environment mappings. Redis receives no secrets.

Updated the Fly setup guide and the Sprites and Fly Machines credential messages. Deploy warnings now account for credentials already stored on Fly.

All 227 targeted tests passed, including a two-deploy regression test that verifies a newly added SPRITES_TOKEN appears in the rendered config. CLI and core type checks passed. The live Agents readiness check remains unverified because this workspace lacks Fly and Sprites credentials.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (4 files)
    • packages/cli/src/commands/deploy/flyDeployRunner.ts (+15/−3)
    • packages/cli/src/commands/deployFly.ts (+3/−6)
    • packages/core/src/agents/runtime/fly/config.ts (+3/−1)
    • packages/core/src/agents/runtime/spritesRuntime.ts (+1/−1)
  • Low risk (3 files)
    • docs/docs/tutorials/setup-fly.md (+8/−2)
    • packages/cli/src/commands/deploy/flyDeployRunner.test.ts (+35/−8)
    • packages/cli/src/commands/deployFly.test.ts (+2/−3)

Diff size: 7 files changed, +67/−24 lines

View task for the run's logs and conversation.


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


💡 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 secret redeploy guide

Fly secret redeploy guide

The Fly setup tutorial explains how to pass a newly added Fly secret to the ProPR app container.

Full-size original

After adding a secret with `fly secrets set`, rerun `propr deploy fly` with the same deployment options. The redeploy uses the names from Fly’s secret list to rebuild the `app` container’s environment mappings. Redis receives no secrets.

Updated the [Fly setup guide](/home/node/workspace/docs/docs/tutorials/setup-fly.md:89) and the Sprites and Fly Machines credential messages. Deploy warnings now account for credentials already stored on Fly.

All 227 targeted tests passed, including a two-deploy regression test that verifies a newly added `SPRITES_TOKEN` appears in the rendered config. CLI and core type checks passed. The live Agents readiness check remains unverified because this workspace lacks Fly and Sprites credentials.

ProPR-Agent: codex/gpt-6.2-sol
@propr-dev propr-dev Bot changed the title 🔨 [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) ✅ [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) Nov 29, 2026

integry commented Nov 29, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=10

@propr-dev propr-dev Bot added the ultrafix label Nov 29, 2026
@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 changed the title ✅ [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) 🔨 [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) Nov 29, 2026
@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

Ready to merge within scope. This PR clarifies the existing secret-redeploy workflow, improves credential warnings, and adds focused regression coverage without changing the secret-mapping semantics.

✅ Accurate credential warnings — flyRuntimeCredentialNote checks both supported token names against existing Fly secrets and newly staged secrets, avoiding warnings when credentials are already stored remotely.

✅ Meaningful redeploy coverage — The two-deploy regression verifies that an externally added SPRITES_TOKEN reaches the app container’s mappings, Redis receives no secrets, and secret values or digests do not enter the generated configuration.

✅ Practical recovery guidance — The tutorial explains preserving deployment options and updating environment-file entries that could overwrite secrets set directly on Fly.

This assessment uses static review of the supplied code; no commands were run. The authoritative current-head status reports 35 passed checks and no failed or pending checks. Live runtime readiness remains unverified.

Merge blockers

No merge blockers.

Suggestions

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

S1: 🟢 Cover credential warning variants

Consider table-driven tests for flyRuntimeCredentialNote covering PROPR_SPRITES_TOKEN, both Fly token aliases, missing Fly credentials, and Docker deployments. The added integration assertions cover the primary Sprites path, while these cases would protect the helper’s remaining branches. This is optional coverage; the supplied implementation handles those branches correctly by static inspection.

Score

The change is focused, preserves existing secret handling, and adds useful regression coverage and operator guidance. No PR-introduced blocker was found, and current-head checks are passing.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 22s
  • Tokens: 52,257 (51,848 in / 409 out)
  • Cost: $0.41

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

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 29, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) ✅❾ [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) Nov 29, 2026
@integry

integry commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Live test at 30d2955 (merged locally with the current epic): mapping works, one blocker

Test instance propr-dev-3868: device sign-in, Sprites runtime, deployed earlier with propr deploy fly. Its SPRITES_TOKEN was added afterwards with fly secrets set.

Check Result
Stage a new secret with fly secrets set PROPR_LIVETEST_3888=… --stage, then rerun propr deploy fly with the same options ✅ Deploy succeeds
Rendered propr-machine.json ✅ The app container lists PROPR_LIVETEST_3888 and SPRITES_TOKEN. Redis lists none.
Inside the running app container ✅ The marker has the right value, and SPRITES_TOKEN and the relay token are present. The Redis container has no secret-like variables.
Generated secrets ✅ "Kept existing secret(s): SESSION_SECRET, SYSTEM_TASK_SECRET". fly secrets list digests are unchanged, and the browser session survived.

F1: a redeploy of a device sign-in instance can't reuse the relay token already on the app

The docs added here tell operators to "rerun propr deploy fly with the same app and deployment options". On an instance whose relay token was enrolled by the first deploy (the default device sign-in path), that fails. planFlyRelay (packages/cli/src/commands/deploy/flyRelay.ts) and the browser-auth check only look for PROPR_GH_RELAY_TOKEN in the env file, never among the app's existing Fly secrets, although the deploy already lists those names.

  • Without propr login: the redeploy refuses with "would serve a UI nobody can sign in to: the stack has no ProPR relay token for device sign-in…", even though the app has a working relay token.
  • With propr login: it enrolls a new relay token on every redeploy, overwrites PROPR_GH_RELAY_TOKEN, and leaves the previous token live at the relay with nothing to revoke it.

I could only run the test above by copying the existing token into a private env-file copy, which an operator shouldn't have to do.

Required:

  • When the app already has PROPR_GH_RELAY_TOKEN (and PROPR_GH_RELAY_URL) as Fly secrets and the env file doesn't override them, treat the relay as configured: don't enroll, and don't fail the sign-in check.
  • Check this before enrolling, using the existing fly secrets list names (names only, never values).
  • --relay should still force a fresh enrollment, and the old token should then be revoked or the deploy should say which one to revoke.
  • Add a test for a redeploy where the relay token exists only on Fly: no enrollment, no sign-in refusal, and the token name stays in the app container's secrets.
  • Mention in the docs section that the relay token already on the app is reused.

@propr-dev

propr-dev Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 014fe1c

Summary of Changes

propr deploy fly now reuses relay credentials already on Fly. It checks secret names before enrollment, accepts them for device sign-in without propr login, and keeps both secrets mapped into the app container.

--relay still enrolls a fresh token. The deploy prints the new token ID and uses the app’s enrollment label to guide revocation of the previous token. The Fly setup guide now documents relay reuse.

All 150 targeted tests and the CLI typecheck passed. Live Fly sign-in remains unverified. This branch includes the CLI device sign-in validation from the runtime epic, so a direct merge with that epic has overlapping CLI changes.

Review digest

Risk-tiered paths

  • High risk (1 file)
    • packages/cli/src/commands/deploy/flyBrowserAuth.ts (+90/−14): auth-looking path
  • Normal risk (3 files)
    • packages/cli/src/commands/deploy/flyDeployRunner.ts (+10/−1)
    • packages/cli/src/commands/deploy/flyRelay.ts (+21/−11)
    • packages/cli/src/commands/deployFly.ts (+36/−14)
  • Low risk (4 files)
    • docs/docs/tutorials/setup-fly.md (+3/−1)
    • packages/cli/src/commands/deploy/flyBrowserAuth.test.ts (+71/−11)
    • packages/cli/src/commands/deploy/flyRedeploy.test.ts (+56/−7)
    • packages/cli/src/commands/deploy/flyRelay.test.ts (+2/−2)

Diff size: 8 files changed, +289/−61 lines

Visual preview

Reusing relay credentials on Fly

Reusing relay credentials on Fly

The Fly setup guide explains when a redeploy reuses the credentials already on the app.

Full-size original


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @integry
  • Time: 8m 36s
  • Tokens: 1,756,259 (1,742,433 in / 13,826 out)
  • Cost: $0.47

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

@propr-dev propr-dev Bot changed the title ✅❾ [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) 🔨 [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) Nov 29, 2026
`propr deploy fly` now reuses relay credentials already on Fly. It checks secret names before enrollment, accepts them for device sign-in without `propr login`, and keeps both secrets mapped into the app container.

`--relay` still enrolls a fresh token. The deploy prints the new token ID and uses the app’s enrollment label to guide revocation of the previous token. The [Fly setup guide](/home/node/workspace/docs/docs/tutorials/setup-fly.md:89) now documents relay reuse.

All 150 targeted tests and the CLI typecheck passed. Live Fly sign-in remains unverified. This branch includes the CLI device sign-in validation from the runtime epic, so a direct merge with that epic has overlapping CLI changes.

PR: #3888
Comment by: @integry (ID: 7261453153)
Model: GPT-6.2 Sol

ProPR-Agent: codex/gpt-6.2-sol
@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 3887/gpt-6.2-sol-propr-deploy-fly-secrets--20261129-1526-ouh in commit 0a4649e

Conflicting Files

  • packages/cli/src/commands/deploy/flyBrowserAuth.ts
  • packages/cli/src/commands/deploy/flyRelay.ts
  • packages/cli/src/commands/deployFly.ts

Resolution Summary

Resolved all eight conflict regions across the three Fly deployment source files for PR #3888. A workspace-wide scan found no remaining conflict blocks after regenerating two affected CLI build artifacts.

File Conflict and resolution
flyBrowserAuth.ts The branches differed on whether device sign-in could use relay credentials already stored on Fly. The merged planner accepts an existing token and URL pair by name and still requires PROPR_GH_DEVICE_CLIENT_ID for a known custom relay. This lets redeploys reuse credentials whose values Fly does not expose while preserving the custom-relay validation.
flyRelay.ts Both branches changed when to fill in the relay URL for Connect or device sign-in. The merged planner fills it in when sign-in needs it and neither the stack configuration nor Fly already supplies it. This preserves an existing custom URL and provides a URL for deployments that need one.
deployFly.ts The branches differed on which secret information to pass through deployment and what to tell users about device sign-in. The merged command passes existing secret names through both planning and execution, and keeps the target branch’s note about Device Flow and OAuth setup. This makes execution follow the same credential rules as preflight.

The CLI TypeScript check, generated JavaScript syntax check, and all 150 Fly deployment tests passed.

Git still lists the three source files as unresolved in its index because git add could not create index.lock on the read-only worktree metadata filesystem. The resolved files are present in the workspace.


🤖 Resolution Details

  • Model: GPT-6.2 Sol
  • Time: 3m 43s

View Task Execution


System-triggered merge conflict resolution

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- packages/cli/src/commands/deploy/flyBrowserAuth.ts
- packages/cli/src/commands/deploy/flyRelay.ts
- packages/cli/src/commands/deployFly.ts

PR: #3888
Model: GPT-6.2 Sol
@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 3887/gpt-6.2-sol-propr-deploy-fly-secrets--20261129-1526-ouh in commit b541ad6

Conflicting Files

  • packages/cli/src/commands/deployFly.ts

Resolution Summary

Resolved both conflicts in deployFly.ts.

  • GitHub authentication and Fly secret discovery. Kept the target branch’s GH_TOKEN precedence with the saved CLI token as a fallback. Kept the PR’s read-only lookup of existing Fly secret names before planning real deployments. This lets --repo use an administrator token from either source and lets redeploys account for credentials already on Fly.
  • Dry-run output. Kept the PR’s conditional runtime credential guidance and the target branch’s list of repositories queued for setup after first boot. Both messages can appear in the same dry run without contacting Fly.

The workspace scan found no remaining merge conflict markers. The CLI type check, all 151 Fly deployment tests, and git diff --check passed.

Git could not record the resolution in its index because the worktree metadata is on a read-only filesystem.


🤖 Resolution Details

  • Model: GPT-6.2 Sol
  • Time: 2m 53s

View Task Execution


System-triggered merge conflict resolution

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- packages/cli/src/commands/deployFly.ts

PR: #3888
Model: GPT-6.2 Sol
@propr-dev

propr-dev Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 3/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 3/4
  • Result: failure
  • Commit: b541ad656748 (b541ad656748e4dc984120cb6b3871cff7628dd6)
  • Run: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:27006
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@propr-dev

propr-dev Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit ae6d57c

Summary of Changes

Fixed the only failing test in Full Test Suite Shard 3/4. The device sign-in test now loads the instance allowlist from an isolated SQLite database and verifies that an unlisted user receives HTTP 403 and gets no session.

All eight targeted suites passed on Node 24.22.3, matching CI. The API type check passed. Full-shard verification is pending in GitHub Actions.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk: none
  • Low risk (1 file)
    • packages/api/test/deviceAuth.test.ts (+23/−11)

Diff size: 1 file changed, +23/−11 lines


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @propr-dev[bot]
  • Time: 6m 35s
  • Tokens: 1,545,851 (1,541,527 in / 4,324 out)
  • Cost: $0.34

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

Fixed the only failing test in [Full Test Suite Shard 3/4](https://github.com/integry/propr/actions/runs/46303700948/job/141474154794). The [device sign-in test](/home/node/workspace/packages/api/test/deviceAuth.test.ts:234) now loads the instance allowlist from an isolated SQLite database and verifies that an unlisted user receives HTTP 403 and gets no session.

All eight targeted suites passed on Node 24.22.3, matching CI. The API type check passed. Full-shard verification is pending in GitHub Actions.

PR: #3888
Comment by: @propr-dev[bot] (ID: 7262044478)
Model: GPT-6.2 Sol

ProPR-Agent: codex/gpt-6.2-sol
@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 3887/gpt-6.2-sol-propr-deploy-fly-secrets--20261129-1526-ouh in commit c33e9bc

Conflicting Files

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

Resolution Summary

Resolved both conflict blocks in deviceAuth.test.ts. The workspace scan found no other merge conflicts.

  • Database setup. The PR configured a temporary SQLite database before loading the API modules. The target branch added the shared persisted-config fixture and imported the database directly. I kept the PR’s setup order and loaded the database handle dynamically so the fixture writes to the isolated database. Suite teardown still closes the connection and removes the temporary directory.
  • Allowlist test. The PR ran migrations and saved the allowlist through saveSettings. The target branch used setPersistedConfig and reset the allowlist before each test. I kept the target branch’s fixture and reset hook because they create the required config table and prevent settings from carrying across tests. The test still verifies that an unlisted user receives HTTP 403 and gets no session.

All 10 device-auth tests passed. The syntax and whitespace checks passed, and the rescan found no remaining conflict markers.

Git still lists the file as unmerged in its index because git add could not create the index lock on the read-only filesystem.


🤖 Resolution Details

  • Model: GPT-6.2 Sol
  • Time: 4m 13s

View Task Execution


System-triggered merge conflict resolution

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

PR: #3888
Model: GPT-6.2 Sol
@propr-dev propr-dev Bot changed the title 🔨 [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) ✅❾ [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) Nov 29, 2026

integry commented Nov 29, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=10

@propr-dev propr-dev Bot added the ultrafix label Nov 29, 2026
@propr-dev propr-dev Bot changed the title ⚠️❻ [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) 🔨 [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) Nov 30, 2026
@propr-dev

propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 8d9a135

Addressed 1 AI review comment (IDs: 7265014443)

Addressed finding F4

Summary of Changes

Fixed F4. A migrated Fly app can redeploy with the same admin-only env file when a local GitHub login is available. If retained App settings make installation ownership ambiguous, the deploy automatically enrolls a fresh relay token and writes its installation ID. Supplying relay mode and the installation ID allows later deploys to reuse the token.

All 164 Fly deploy tests and the CLI type check passed. Regression coverage includes both simulated Fly backends, dry-run planning, enrollment failure, and operator-managed relay URLs. Verification used simulated Fly targets.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/cli/src/commands/deploy/flyRelay.ts (+19/−3)
    • packages/cli/src/commands/deployFly.ts (+3/−2)
  • Low risk (1 file)
    • packages/cli/src/commands/deploy/flyRedeploy.test.ts (+69/−0)

Diff size: 3 files changed, +91/−5 lines


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @integry
  • Time: 6m 56s
  • Tokens: 1,224,205 (1,215,850 in / 8,355 out)
  • Cost: $0.33

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

Fixed F4. A migrated Fly app can redeploy with the same admin-only env file when a local GitHub login is available. If retained App settings make installation ownership ambiguous, the deploy automatically enrolls a fresh relay token and writes its installation ID. Supplying relay mode and the installation ID allows later deploys to reuse the token.

All 164 Fly deploy tests and the CLI type check passed. Regression coverage includes both simulated Fly backends, dry-run planning, enrollment failure, and operator-managed relay URLs. Verification used simulated Fly targets.

PR: #3888
Comment by: @integry (ID: 7265029407)
Model: GPT-6.2 Sol

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

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 improves Fly redeploys by preserving existing credentials and rebuilding app-container secret mappings. It needs a localized correction before merge: the legacy-enrollment fallback can approve a deployment that disables browser sign-in.

✅ Secret isolation — Existing and newly uploaded secret names reach the app container, while Redis receives no secret mappings.

✅ Dry-run parity — Dry runs now read existing secret names and preserve generated secrets, with explicit feedback when lookup fails.

✅ Redeploy coverage — Added tests cover both backends, legacy enrollments, external secret additions, and retry after a failed Machine deployment.

This review used static tracing only; no commands were run. The supplied current-head status reports no failures and 11 pending checks.

Merge blockers

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

F5: 🔴 Legacy fallback ignores invalid client overrides

  • Category: correctness

  • Required behavior: Deployment validation must reject changes that leave the deployed UI without a usable browser sign-in method.

  • Evidence: packages/cli/src/commands/deploy/flyBrowserAuth.ts:planFlyBrowserAuth — the new complete-legacy-enrollment fallback.

    1. Deploy with an operator relay using --relay-url, a valid PROPR_GH_DEVICE_CLIENT_ID, and relay enrollment. This stores the custom PROPR_GH_RELAY_URL, relay token, GH_AUTH_MODE=relay, and GH_INSTALLATION_ID, without a tunnel token or hosted-URL marker.
    2. Redeploy without local GitHub credentials, supplying administrator settings and PROPR_GH_DEVICE_CLIENT_ID=changeme, while leaving relay credentials on Fly.
    3. Relay planning reuses the retained token and URL. Browser planning rejects the placeholder as a configured client ID, but then its legacy fallback returns "device" because the retained enrollment names satisfy every condition.
    4. Deployment uploads changeme, replacing the previously valid client ID. At runtime, resolveBrowserAuthMode sees a custom relay, no configured device client, no OAuth client, and no tunnel, so it returns "disabled".

    The fallback checks neither an explicitly invalid client override nor whether the retained URL is hosted. Installation validation passes because no own-App credentials exist; intake validation does not validate browser credentials. static trace: traced the supplied relay planning, browser planning, secret upload, and runtime authentication consumers. proposed regression: deploy a custom-relay device instance, then redeploy with the placeholder override and assert refusal before secret mutation.

  • Minimum fix: Prevent the legacy fallback from accepting an explicitly supplied, unconfigured device client ID when the relay URL is unknown. Add coverage for this redeploy sequence.

Suggestions

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

S6: 🟢 Document hosted URL storage

The new documentation describes reuse through PROPR_GH_RELAY_URL, while new automatic hosted enrollments store PROPR_FLY_HOSTED_RELAY_URL and map it to the runtime name. Briefly explaining that distinction would help operators interpret fly secrets list. This is optional documentation clarification; the mapping itself is implemented correctly.

Score

The implementation has substantial regression coverage and addresses the main redeploy workflow, but one newly accepted configuration can disable sign-in. A localized validation fix is needed.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 53s
  • Tokens: 69,761 (68,325 in / 1,436 out)
  • Cost: $0.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 F5 S6

🤖 Review by ProPR

@propr-dev propr-dev Bot changed the title 🔨 [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) ⚠️❻ [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) Nov 30, 2026
@integry

integry commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Drop the legacy-enrollment fallback (resolves F5)

propr deploy fly has never shipped: it isn't on main or in any release up to v0.9.3, and lives only on the runtime epic. So no user has a Fly instance enrolled with the relay before the hosted-URL marker existed. The only such instances are our own disposable test instances, which we recreate.

Please remove the "complete legacy enrollment" fallback in packages/cli/src/commands/deploy/flyBrowserAuth.ts (planFlyBrowserAuth) and the code paths and tests that exist only to support it. Then F5 goes away instead of being patched:

No migration notes are needed for pre-release instances.

@propr-dev propr-dev Bot changed the title ⚠️❻ [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) 🔨 [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) Nov 30, 2026
@propr-dev

propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 741d6c7

Summary of Changes

Removed the legacy-enrollment fallback for PR #3888. When the configured credentials can’t establish browser sign-in, propr deploy fly now stops during validation with the existing error. The setup guide explains which relay settings to keep for redeploys.

All 143 Fly deploy tests and the CLI type check passed. The tests verify that redeploys map app secrets into the app container, keep Redis free of secrets, and succeed after an own-App instance migrates to the relay. Verification used mocked Fly backends.

Review digest

Risk-tiered paths

  • High risk (1 file)
    • packages/cli/src/commands/deploy/flyBrowserAuth.ts (+1/−10): auth-looking path
  • Normal risk: none
  • Low risk (2 files)
    • docs/docs/tutorials/setup-fly.md (+1/−1)
    • packages/cli/src/commands/deploy/flyRedeploy.test.ts (+4/−33)

Diff size: 3 files changed, +6/−44 lines

Visual preview

Fly redeploy secret guidance

Fly redeploy secret guidance

The setup guide explains when redeploys reuse the hosted relay URL and which relay settings to keep in the environment file.

Full-size original


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @integry
  • Time: 5m 5s
  • Tokens: 1,028,598 (1,024,089 in / 4,509 out)
  • Cost: $0.24

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

Removed the legacy-enrollment fallback for PR #3888. When the configured credentials can’t establish browser sign-in, `propr deploy fly` now stops during validation with the existing error. The setup guide explains which relay settings to keep for redeploys.

All 143 Fly deploy tests and the CLI type check passed. The tests verify that redeploys map app secrets into the `app` container, keep Redis free of secrets, and succeed after an own-App instance migrates to the relay. Verification used mocked Fly backends.

PR: #3888
Comment by: @integry (ID: 7265420819)
Model: GPT-6.2 Sol

ProPR-Agent: codex/gpt-6.2-sol
@propr-dev propr-dev Bot changed the title 🔨 [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) ⚠️❻ [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) Nov 30, 2026

integry commented Nov 30, 2026

Copy link
Copy Markdown
Owner

/merge

@propr-dev

propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from 3758-epic-runtime-abstraction-sc0 into 3887/gpt-6.2-sol-propr-deploy-fly-secrets--20261129-1526-ouh in commit fc8f209

Conflicting Files

  • packages/cli/src/commands/deploy/flyMachineConfig.ts
  • packages/cli/src/commands/deployFly.ts

Resolution Summary

Resolved both merge conflicts for PR #3888. A workspace-wide scan found no remaining conflict markers. The CLI TypeScript checks and the targeted Fly deployment and launch-layout tests passed.

  • flyMachineConfig.ts — Both branches added code in the same location. The PR added helpers that distinguish deploy-managed relay URLs from operator-provided URLs and give the operator’s URL precedence. The target branch added Redis persistence flags shared with the Fly dashboard launch. I kept both because they serve independent purposes and preserve the intended behavior for redeploys and Redis.
  • deployFly.ts — The PR moved output-directory resolution earlier so the command could check existing Fly secrets before preparing the deployment. The target branch added a beta notice with setup, runtime capability, and feedback links next to the original declaration. I kept the earlier declaration and added the notice after deployment preparation, preserving secret-aware planning and the new guidance.

Git could not record the two resolutions in its index because the worktree’s index lock path is on a read-only filesystem. The resolved files are present in the workspace.


🤖 Resolution Details

  • Model: GPT-6.2 Sol
  • Time: 2m 38s

View Task Execution


System-triggered merge conflict resolution

@propr-dev propr-dev Bot changed the title ⚠️❻ [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) 🔨 [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) Nov 30, 2026
Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- packages/cli/src/commands/deploy/flyMachineConfig.ts
- packages/cli/src/commands/deployFly.ts

PR: #3888
Model: GPT-6.2 Sol
@github-actions

Copy link
Copy Markdown

Checks Failed

Validation failed during setup, tests, CLI packaging, linting, or build checks.

View Logs
Build check diagnostics for run 46335848118, attempt 1
Checkout outcome: success

--- GitHub Actions workflow lint ---
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667: Pulling from rhysd/actionlint
589002ba0eae: Pulling fs layer
c09af8888d6a: Pulling fs layer
4ccd7d76ca98: Pulling fs layer
b6b4b7b0e257: Pulling fs layer
b6b4b7b0e257: Waiting
c09af8888d6a: Verifying Checksum
c09af8888d6a: Download complete
4ccd7d76ca98: Verifying Checksum
4ccd7d76ca98: Download complete
589002ba0eae: Verifying Checksum
589002ba0eae: Download complete
589002ba0eae: Pull complete
c09af8888d6a: Pull complete
b6b4b7b0e257: Verifying Checksum
b6b4b7b0e257: Download complete
4ccd7d76ca98: Pull complete
b6b4b7b0e257: Pull complete
Digest: sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667
Status: Downloaded newer image for rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667

--- Release shell script lint ---

--- Toolchain ---
v24.22.3
11.19.1

--- Dependency installation ---
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated [email protected]: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]

added 1128 packages, and audited 1138 packages in 29s

318 packages are looking for funding
  run `npm fund` for details

8 moderate severity vulnerabilities

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
npm warn install-scripts 6 packages have install scripts not yet covered by allowScripts:
npm warn install-scripts   @anthropic-ai/[email protected] (postinstall: node install.cjs)
npm warn install-scripts   [email protected] (install: node-gyp rebuild)
npm warn install-scripts   [email protected] (install: node buildcheck.js > buildcheck.gypi && node-gyp rebuild)
npm warn install-scripts   [email protected] (postinstall: node install.js)
npm warn install-scripts   [email protected] (install: node-gyp-build-optional-packages)
npm warn install-scripts   [email protected] (install: node install.js)
npm warn install-scripts
npm warn install-scripts Run `npm install-scripts ls` to review, or `npm install-scripts approve <pkg>` to allow.

--- CLI release package ---
Verifying propr-cli release package...

> [email protected] cli:pack
> node packages/cli/scripts/build-publish.mjs


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc && node scripts/copy-assets.mjs

copy-assets: copied 9 file(s) into the CLI package.

Staged [email protected] at /home/runner/work/propr/propr/dist-publish/propr-cli
npm notice
npm notice 📦  [email protected]
npm notice Tarball Contents
npm notice 32.0kB README.md
npm notice 36.6kB dist/agentSkill.js
npm notice 477B dist/api/admission.js
npm notice 754B dist/api/agentRuntime.js
npm notice 7.7kB dist/api/agents.js
npm notice 2.6kB dist/api/agentTank.js
npm notice 4.4kB dist/api/automations.js
npm notice 13.3kB dist/api/client.js
npm notice 5.9kB dist/api/errors.js
npm notice 1.6kB dist/api/followupHandoffs.js
npm notice 16.9kB dist/api/goals.js
npm notice 6.0kB dist/api/implement.js
npm notice 2.9kB dist/api/index.js
npm notice 1.9kB dist/api/logs.js
npm notice 7.7kB dist/api/plans.js
npm notice 586B dist/api/pullRequests.js
npm notice 4.2kB dist/api/relay.js
npm notice 13.0kB dist/api/repos.js
npm notice 2.5kB dist/api/repositoryEvents.js
npm notice 16.2kB dist/api/settings.js
npm notice 2.0kB dist/api/stats.js
npm notice 1.6kB dist/api/syntheticPools.js
npm notice 1.8kB dist/api/system.js
npm notice 5.9kB dist/api/tasks.js
npm notice 2.9kB dist/api/todos.js
npm notice 86B dist/api/types.js
npm notice 313B dist/api/visualPreviewAuth.js
npm notice 36.1kB dist/assets/env.example.txt
npm notice 5.9kB dist/auth/githubLogin.js
npm notice 5.0kB dist/auth/verifyToken.js
npm notice 10.5kB dist/commands/admissionCommands.js
npm notice 21.2kB dist/commands/agentCommands.js
npm notice 4.2kB dist/commands/agentPoolCommands.js
npm notice 4.4kB dist/commands/agentSkillCommands.js
npm notice 42.1kB dist/commands/agentValidation.js
npm notice 31.2kB dist/commands/automationCommands.js
npm notice 76.5kB dist/commands/checkCommands.js
npm notice 8.9kB dist/commands/configCommands.js
npm notice 14.6kB dist/commands/connectCommand.js
npm notice 9.1kB dist/commands/deploy/flyBrowserAuth.js
npm notice 7.6kB dist/commands/deploy/flyctlBackend.js
npm notice 19.7kB dist/commands/deploy/flyDeployRunner.js
npm notice 1.7kB dist/commands/deploy/flyGeneratedSecrets.js
npm notice 7.3kB dist/commands/deploy/flyIntake.js
npm notice 8.0kB dist/commands/deploy/flyLaunchToml.js
npm notice 13.6kB dist/commands/deploy/flyLegacyDocker.js
npm notice 21.8kB dist/commands/deploy/flyMachineConfig.js
npm notice 7.8kB dist/commands/deploy/flyMachinesApi.js
npm notice 2.7kB dist/commands/deploy/flyOrgPlan.js
npm notice 9.9kB dist/commands/deploy/flyRelay.js
npm notice 2.3kB dist/commands/deploy/flyStaleMachineConfig.js
npm notice 27.8kB dist/commands/deployFly.js
npm notice 12.2kB dist/commands/eventCommands.js
npm notice 5.5kB dist/commands/githubAppApi.js
npm notice 27.7kB dist/commands/githubAppCommands.js
npm notice 60.9kB dist/commands/goalCommands.js
npm notice 9.4kB dist/commands/handoffCommands.js
npm notice 3.7kB dist/commands/idleShutdownCheck.js
npm notice 2.4kB dist/commands/imageCommands.js
npm notice 8.6kB dist/commands/implementCommands.js
npm notice 2.1kB dist/commands/index.js
npm notice 8.5kB dist/commands/initCommands.js
npm notice 14.5kB dist/commands/initStack.js
npm notice 6.1kB dist/commands/logCommands.js
npm notice 3.1kB dist/commands/piConfiguredAgentCheck.js
npm notice 26.5kB dist/commands/planCommands.js
npm notice 3.1kB dist/commands/prCommands.js
npm notice 8.4kB dist/commands/relayCommands.js
npm notice 41.4kB dist/commands/repoCommands.js
npm notice 2.7kB dist/commands/repoValidate.js
npm notice 7.7kB dist/commands/runtimeCommands.js
npm notice 19.8kB dist/commands/settingCommands.js
npm notice 5.6kB dist/commands/setup/agentHostActions.js
npm notice 123B dist/commands/setup/agents.js
npm notice 4.7kB dist/commands/setup/engine.js
npm notice 51B dist/commands/setup/github.js
npm notice 37.5kB dist/commands/setup/hostActions.js
npm notice 3.2kB dist/commands/setup/imagePlatform.js
npm notice 27.3kB dist/commands/setup/sequential.js
npm notice 51B dist/commands/setup/state.js
npm notice 51B dist/commands/setup/types.js
npm notice 10.7kB dist/commands/setupCommand.js
npm notice 4.4kB dist/commands/stackCommands.js
npm notice 1.8kB dist/commands/startCommand.js
npm notice 4.8kB dist/commands/statsCommands.js
npm notice 4.9kB dist/commands/statsCostCommand.js
npm notice 15.2kB dist/commands/systemCommands.js
npm notice 3.5kB dist/commands/tankCommands.js
npm notice 47.6kB dist/commands/taskCommands.js
npm notice 29.7kB dist/commands/todoCommands.js
npm notice 31.0kB dist/commands/tunnelCommand.js
npm notice 2.7kB dist/commands/uiDocsCommands.js
npm notice 8.3kB dist/completion.js
npm notice 27.3kB dist/config/ConfigManager.js
npm notice 276B dist/config/index.js
npm notice 989B dist/config/rootKey.js
npm notice 345B dist/config/types.js
npm notice 46.0kB dist/connectIdentity.js
npm notice 25.0kB dist/connectRootAuthority.js
npm notice 32.5kB dist/connectWindowsAuthority.js
npm notice 2.2kB dist/desktopDiscovery.js
npm notice 13.3kB dist/desktopLocalSetup.js
npm notice 17.4kB dist/index.js
npm notice 4.5kB dist/native/darwin-authority-broker.c
npm notice 8.9kB dist/native/directory-operations.c
npm notice 50.1kB dist/native/prebuilds/darwin-arm64/connect-authority-broker
npm notice 54.2kB dist/native/prebuilds/darwin-arm64/directory-operations.node
npm notice 17.1kB dist/native/prebuilds/darwin-x64/connect-authority-broker
npm notice 24.3kB dist/native/prebuilds/darwin-x64/directory-operations.node
npm notice 28.9kB dist/native/prebuilds/linux-arm64/directory-operations.node
npm notice 17.4kB dist/native/prebuilds/linux-x64/directory-operations.node
npm notice 1.2kB dist/native/README.md
npm notice 3.1kB dist/orchestrator/format.js
npm notice 14.4kB dist/orchestrator/index.js
npm notice 302B dist/orchestrator/manifest.json
npm notice 137.8kB dist/orchestrator/orchestrator.mjs
npm notice 408B dist/orchestrator/types.js
npm notice 6.2kB dist/rootHelp.js
npm notice 237B dist/skill/propr/agents/openai.yaml
npm notice 8.9kB dist/skill/propr/SKILL.md
npm notice 4.5kB dist/tui/AgentTableApp.js
npm notice 4.6kB dist/tui/app.js
npm notice 11.6kB dist/tui/CheckApp.js
npm notice 5.4kB dist/tui/render.js
npm notice 32.5kB dist/tui/SetupApp.js
npm notice 18.4kB dist/tui/SetupApp.test.js
npm notice 8.4kB dist/tui/StartApp.js
npm notice 3.8kB dist/utils/apiErrorPresentation.js
npm notice 12.0kB dist/utils/directoryDescriptor.js
npm notice 739B dist/utils/dockerPort.js
npm notice 5.0kB dist/utils/envFile.js
npm notice 520B dist/utils/index.js
npm notice 5.7kB dist/utils/io.js
npm notice 717B dist/utils/localSetupPlatform.js
npm notice 1.5kB dist/utils/nativeArtifact.js
npm notice 544B dist/utils/parseState.js
npm notice 417B dist/utils/positiveInteger.js
npm notice 4.5kB dist/utils/privateFilesystem.js
npm notice 4.2kB dist/utils/resolveProject.js
npm notice 7.2kB dist/vendor/local-setup/agents.js
npm notice 65.8kB dist/vendor/local-setup/engine.js
npm notice 5.0kB dist/vendor/local-setup/envFile.js
npm notice 11.1kB dist/vendor/local-setup/github.js
npm notice 188B dist/vendor/local-setup/index.js
npm notice 27.5kB dist/vendor/local-setup/publicInstanceIdentity.js
npm notice 14.6kB dist/vendor/local-setup/state.js
npm notice 2.8kB dist/vendor/local-setup/types.js
npm notice 13.2kB dist/vendor/shared/acceptanceCriteria.js
npm notice 1.0kB dist/vendor/shared/accountStatusTimestamp.js
npm notice 7.7kB dist/vendor/shared/activityEvents.js
npm notice 2.8kB dist/vendor/shared/agentConfigRedaction.js
npm notice 3.0kB dist/vendor/shared/agentCredentials.js
npm notice 4.4kB dist/vendor/shared/agentDefinitions.js
npm notice 1.0kB dist/vendor/shared/agentExecutionCapabilities.js
npm notice 2.3kB dist/vendor/shared/agentFailureLine.js
npm notice 7.4kB dist/vendor/shared/agentLogin.js
npm notice 3.8kB dist/vendor/shared/agentRuntimeCapabilities.js
npm notice 3.1kB dist/vendor/shared/agentTank.js
npm notice 1.2kB dist/vendor/shared/agentTankHistory.js
npm notice 2.8kB dist/vendor/shared/analyticsTimeframe.js
npm notice 4.6kB dist/vendor/shared/antigravityCompatibility.js
npm notice 3.5kB dist/vendor/shared/antigravityKeyringLogin.js
npm notice 5.1kB dist/vendor/shared/apiOrigin.js
npm notice 3.5kB dist/vendor/shared/assignment.js
npm notice 17.4kB dist/vendor/shared/automationDefinitions.js
npm notice 9.2kB dist/vendor/shared/automationReportPreview.js
npm notice 2.4kB dist/vendor/shared/automationRunProductivity.js
npm notice 6.4kB dist/vendor/shared/automationTemplateContract.js
npm notice 18.5kB dist/vendor/shared/automationTemplates.catalog.json
npm notice 1.3kB dist/vendor/shared/automationTemplates.js
npm notice 3.4kB dist/vendor/shared/changedFileKinds.js
npm notice 1.4kB dist/vendor/shared/claudeCompatibility.js
npm notice 12.1kB dist/vendor/shared/commitSubject.js
npm notice 8.5kB dist/vendor/shared/connectDiscovery.js
npm notice 9.6kB dist/vendor/shared/cronSchedule.js
npm notice 254B dist/vendor/shared/demoMode.js
npm notice 4.3kB dist/vendor/shared/desktopPairing.js
npm notice 481B dist/vendor/shared/desktopTokenRevocation.js
npm notice 8.9kB dist/vendor/shared/events.js
npm notice 13.4kB dist/vendor/shared/extensionLibrary.js
npm notice 703B dist/vendor/shared/extensionOAuth.js
npm notice 4.0kB dist/vendor/shared/extensionPackages.js
npm notice 2.9kB dist/vendor/shared/extensionProfiles.js
npm notice 2.7kB dist/vendor/shared/fleetData.js
npm notice 2.3kB dist/vendor/shared/flyLaunch.js
npm notice 2.5kB dist/vendor/shared/githubAppManifest.js
npm notice 1.6kB dist/vendor/shared/githubAuthMode.js
npm notice 7.4kB dist/vendor/shared/githubDeviceFlow.js
npm notice 2.0kB dist/vendor/shared/githubEventIntakeMode.js
npm notice 12.8kB dist/vendor/shared/goalBlockers.js
npm notice 6.0kB dist/vendor/shared/goalCheckpoints.js
npm notice 4.0kB dist/vendor/shared/goalCreation.js
npm notice 5.2kB dist/vendor/shared/goalWait.js
npm notice 10.0kB dist/vendor/shared/idleShutdown.js
npm notice 16.1kB dist/vendor/shared/index.js
npm notice 214B dist/vendor/shared/instanceAuthorization.js
npm notice 54B dist/vendor/shared/instanceCatalog.js
npm notice 584B dist/vendor/shared/instanceStorage.js
npm notice 4.0kB dist/vendor/shared/intakeModePrerequisites.js
npm notice 2.9kB dist/vendor/shared/labelUtils.js
npm notice 22.9kB dist/vendor/shared/modelDefinitions.js
npm notice 3.5kB dist/vendor/shared/notificationLinks.js
npm notice 51.3kB dist/vendor/shared/notifications.js
npm notice 2.9kB dist/vendor/shared/openCodeCompatibility.js
npm notice 3.7kB dist/vendor/shared/piAuthStore.js
npm notice 4.3kB dist/vendor/shared/piModelDiscovery.js
npm notice 1.7kB dist/vendor/shared/piProviders.js
npm notice 16.9kB dist/vendor/shared/planItemGraph.js
npm notice 7.5kB dist/vendor/shared/previewStorage/v1.js
npm notice 866B dist/vendor/shared/projectSlug.js
npm notice 3.8kB dist/vendor/shared/proprCompatibility.js
npm notice 884B dist/vendor/shared/proprRuntimePaths.js
npm notice 13.5kB dist/vendor/shared/proprServiceUrls.js
npm notice 17.0kB dist/vendor/shared/prTemplate.js
npm notice 6.9kB dist/vendor/shared/prTitleStatusSlot.js
npm notice 2.2kB dist/vendor/shared/publishedVisualPreviews.js
npm notice 3.0kB dist/vendor/shared/reasoningLevels.js
npm notice 1.8kB dist/vendor/shared/repositoryEvents.js
npm notice 6.7kB dist/vendor/shared/repositoryEventWait.js
npm notice 1.2kB dist/vendor/shared/repositoryIcon.js
npm notice 1.4kB dist/vendor/shared/repositoryIconUrl.js
npm notice 3.9kB dist/vendor/shared/repositoryPresentation.js
npm notice 10.4kB dist/vendor/shared/reviewContextBudget.js
npm notice 5.8kB dist/vendor/shared/reviewFeedbackIds.js
npm notice 2.7kB dist/vendor/shared/reviewPrompt.js
npm notice 907B dist/vendor/shared/runCostCap.js
npm notice 861B dist/vendor/shared/sessionSecret.js
npm notice 392B dist/vendor/shared/sqliteTimestamp.js
npm notice 1.5kB dist/vendor/shared/statusKeys.js
npm notice 7.5kB dist/vendor/shared/syntheticAgents.js
npm notice 2.2kB dist/vendor/shared/taskIdentifiers.js
npm notice 2.0kB dist/vendor/shared/taskLifecycle.js
npm notice 733B dist/vendor/shared/taskReplacement.js
npm notice 957B dist/vendor/shared/text.js
npm notice 2.6kB dist/vendor/shared/tokenOutlierSettings.js
npm notice 1.9kB dist/vendor/shared/ultrafixCycle.js
npm notice 1.8kB dist/vendor/shared/unfinishedRun.js
npm notice 9.8kB dist/vendor/shared/usageTips.catalog.json
npm notice 5.0kB dist/vendor/shared/usageTips.js
npm notice 335B dist/vendor/shared/usageTypes.js
npm notice 609B dist/vendor/shared/userWhitelist.js
npm notice 758B dist/vendor/shared/validateRelayUrl.js
npm notice 2.2kB dist/vendor/shared/validateRoutingUrl.js
npm notice 7.1kB dist/vendor/shared/visualPreviewCapacity.js
npm notice 9.3kB dist/vendor/shared/voice.js
npm notice 222B dist/vendor/shared/workEvidence.js
npm notice 828B package.json
npm notice Tarball Details
npm notice name: propr-cli
npm notice version: 0.9.3
npm notice filename: propr-cli-0.9.3.tgz
npm notice package size: 621.4 kB
npm notice unpacked size: 2.4 MB
npm notice shasum: 5142a52f32e026688d6465b14289268e66126477
npm notice integrity: sha512-C11hgRZG29xl3[...]FpzINGP20PjNA==
npm notice total files: 247
npm notice
propr-cli-0.9.3.tgz

Dry run only. Re-run with --publish to publish to npm.
✅ propr-cli release package verified
Starting changed-area validation process...
Reusing this job's @propr/shared build from CLI packaging.
Reusing this job's @propr/local-setup build from CLI packaging.

--- Core Service: Lint & Build ---
✅ Core Lint passed
✅ Core Source Build passed

--- Docs: Typecheck & Build ---
✅ Docs Typecheck passed
✅ Docs Build passed
✅ Docs Static Serving Check passed

--- Core Package: Build & Lint ---
✅ Core Package Build passed
✅ Core Package Lint passed

--- CLI: Lint ---
✅ CLI Lint passed

--- API: Build & Lint ---
✅ API Build passed
✅ API Lint passed

--- API Reference: OpenAPI Spec & Client Contract ---
❌ OpenAPI spec is stale or invalid (run npm run gen:openapi)

> [email protected] gen:openapi:check
> tsx scripts/generate-openapi.ts --check

Stale generated API reference: docs/static/openapi/propr-api.yaml
Run `npm run gen:openapi` and commit the result.

--- Stage outcomes ---
Workflow lint: success
Release shell lint: success
Pre-setup gate: skipped
Node setup: success
Toolchain: success
Dependency install: success
Release metadata: success
CLI packaging: success
Change detection: success
Changed-area checks: failure
Chromium install: skipped
PWA and mobile browser smoke: skipped

View Workflow

@propr-dev

propr-dev Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Validate Changes

Please investigate and fix this CI failure.

Failure evidence

.github:8
Process completed with exit code 1.

.github:415
Process completed with exit code 1.

@propr-dev

propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 8d7861a

Processed 2 comments:

  • Comment 1 by @github-actions[bot] (ID: 7266325052✓)
  • Comment 2 by @propr-dev[bot] (ID: 7266325710✓)

Summary of Changes

Regenerated the OpenAPI spec to fix the Validate Changes failure on PR #3888. The only diff updates the route counts to 348 total and 99 documented.

npm run gen:openapi:check, npm run check:client-contract, and git diff --check passed locally.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk: none
  • Low risk (1 file)
    • docs/static/openapi/propr-api.yaml (+2/−2)

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


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @github-actions[bot], @propr-dev[bot]
  • Time: 3m 28s
  • Tokens: 261,830 (261,074 in / 756 out)
  • Cost: $0.07

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 IDs: 7266325052✓, 7266325710✓

Regenerated the [OpenAPI spec](/home/node/workspace/docs/static/openapi/propr-api.yaml:31) to fix the `Validate Changes` failure on PR #3888. The only diff updates the route counts to 348 total and 99 documented.

`npm run gen:openapi:check`, `npm run check:client-contract`, and `git diff --check` passed locally.

PR: #3888
Comment by: @github-actions[bot] (ID: 7266325052)
Comment by: @propr-dev[bot] (ID: 7266325710)
Model: GPT-6.2 Sol

ProPR-Agent: codex/gpt-6.2-sol
@propr-dev propr-dev Bot changed the title 🔨 [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) ⚠️❻ [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) Nov 30, 2026

integry commented Nov 30, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev propr-dev Bot changed the title ⚠️❻ [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) 🔨 [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) Nov 30, 2026
@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

Ready to merge within the reviewed scope. The changes support redeploying with credentials retained on Fly, refresh app-container secret mappings, and improve deployment guidance.

✅ Secret isolation — Both deployment backends use the combined retained and newly uploaded secret names for the app container; Redis receives no secret mappings.

✅ Credential preservation — Regression tests cover reusing hosted relay credentials without another enrollment and preserving generated secrets across redeploys.

✅ Authentication validation — The planner distinguishes hosted and operator-managed relay URLs and checks retained own-App installation settings before allowing device sign-in.

This assessment is based on static review of the supplied diff and surrounding code. No commands were run. Current-head checks report 35 passed, none failed, and 12 neutral/skipped.

Merge blockers

No merge blockers.

Suggestions

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

S7: 🟢 Test removed secret mappings

Extend the two-deploy regression in packages/cli/src/commands/deploy/flyDeployRunner.test.ts to remove a secret between deploys and assert that its mapping disappears. The implementation rebuilds mappings from the current listing, so this appears correct; explicit coverage would protect the removal behavior alongside the existing addition test.

Score

The implementation addresses the redeploy behavior with substantial regression coverage and passing current-head checks. Static review found no verified merge blockers.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 36s
  • Tokens: 81,144 (80,371 in / 773 out)
  • Cost: $0.73

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

🤖 Review by ProPR

@propr-dev propr-dev Bot changed the title 🔨 [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) ✅❾ [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) Nov 30, 2026
@integry

integry commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Live test on propr-dev-3868 (a propr deploy fly instance, hosted relay, Sprites runtime), with the CLI built from 8d7861a:

  • Redeploy without PROPR_GH_RELAY_URL in the stack .env stops before touching Fly, with a clear message telling you to set it for the hosted relay. That's the intended outcome now that the legacy fallback is gone.
  • With PROPR_GH_RELAY_URL=https://webhook.propr.dev/v1 set, the redeploy succeeds (exit 0, health 200). All 11 Fly secret digests are unchanged, intake stays routing_websocket, and sign-in stays GitHub device flow through the relay App. After the redeploy, the signed-in dashboard shows every agent Ready on Sprites.

@integry
integry merged commit f7cf422 into 3758-epic-runtime-abstraction-sc0 Nov 30, 2026
47 checks passed
@propr-dev propr-dev Bot changed the title ✅❾ [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) [3887 by GPT-6.2 Sol] propr deploy fly: secrets added after the first deploy never reach the app container (explicit per-container secrets list) Nov 30, 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