Skip to content

[2162 by GPT-5.6 Sol] Fix desktop Connect enrollment with visible GitHub identity and explicit installation selection - #2167

Merged
integry merged 7 commits into
1950-epic-cross-platform-dskfrom
2162/gpt-5.6-sol-fix-desktop-connect-enrol-20260907-0934-ge3
Sep 7, 2026
Merged

integry merged 7 commits into
1950-epic-cross-platform-dskfrom
2162/gpt-5.6-sol-fix-desktop-connect-enrol-20260907-0934-ge3

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #2162

Branch: 2162/gpt-5.6-sol-fix-desktop-connect-enrol-20260907-0934-ge3
Commits: ✅ Changes committed (7d1c44a)


AI Processing Completed

Execution Details:

Summary:
Implemented GitHub Connect enrollment flow for issue #2162.

Key changes:

  • Added renderer-visible authenticated GitHub username and installation accounts/types.
  • Added explicit installation selection through a validated controller/preload/IPC contract.
  • Added install, refresh, and change/re-authenticate account actions.
  • Revalidates installation access immediately before enrollment.
  • Distinguishes discovery failures from owner-authorized enrollment 403s.
  • Returns enrollment 403s to the actionable chooser instead of retrying blindly.
  • Safely persists selected identity metadata while keeping tokens and secrets out of renderer state and logs.
  • Settles pending choices during cancellation and shutdown.
  • Removed bootstrap-owner inference from access-scoped discovery.
  • Added focused visual preview evidence.

Validation passed:

  • Typechecks for local setup, CLI, desktop, and UI.
  • 61 setup-engine tests.
  • 15 controller/preload tests.
  • 14 focused renderer tests.
  • Full desktop suite: 637 tests, 611 passed, 26 skipped, 0 failed.

Detailed Logs:

  • Conversation: 163 messages
  • Session: 01a07b38-d2d5-7083-857e-46bab19235e7

Log files stored at:

  • conversation: /tmp/claude-logs/issue-2162-2026-09-07T10-05-34-838Z-conversation.json
  • output: /tmp/claude-logs/issue-2162-2026-09-07T10-05-34-838Z-output.txt
Latest Conversation Messages

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


💡 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

GitHub installation selection and permission recovery

GitHub installation selection and permission recovery

Desktop setup displays the authenticated GitHub username, user/organization installations, explicit selection, and actionable owner-authorization recovery controls.

…sible GitHub

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Checks Failed

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

View Logs
Build check diagnostics for run 34109591149, 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
589002ba0eae: Verifying Checksum
589002ba0eae: Download complete
c09af8888d6a: Verifying Checksum
c09af8888d6a: Download complete
4ccd7d76ca98: Verifying Checksum
4ccd7d76ca98: Download complete
b6b4b7b0e257: Verifying Checksum
b6b4b7b0e257: Download complete
589002ba0eae: Pull complete
c09af8888d6a: Pull 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 ---
v22.23.2
10.9.8

--- 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 1125 packages, and audited 1134 packages in 20s

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

found 0 vulnerabilities

--- Fast unit tests ---
Running fast unit tests (no Redis/Docker dependencies)...

> [email protected] pretest:unit
> npm run build -w @propr/shared && npm run build -w @propr/local-setup


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc


> [email protected] test:unit
> NODE_ENV=test npx tsx --experimental-test-module-mocks --test test/minimal.test.ts test/modelName.test.ts test/agentContainerResources.test.ts test/agentDockerfileSupplyChain.test.ts test/agentImagePreparation.test.ts test/daemonEventIntake.test.ts test/databaseMigrationGate.test.ts test/deployPrPreview.test.mjs test/generateContext.test.ts test/githubEventIntakeMode.test.ts test/intakeModePrerequisites.test.ts test/orchestratorMigrationPhase.test.mjs test/validateRoutingUrl.test.ts test/routingWebSocketProtocol.test.ts test/routingWebSocketIntakeService.test.ts test/routingStatusPublisher.test.ts test/releaseValidation.test.mjs test/sessionSecret.test.ts test/testSuiteRunner.test.mjs packages/api/test/connectAuth.test.ts packages/api/test/attachmentUploadCleanup.test.ts packages/api/test/configReloadSubscription.test.ts packages/api/test/desktopApiBoundary.test.ts packages/api/test/dockerCommandSafety.test.ts packages/api/test/listenAddress.test.ts packages/api/test/oauthState.test.ts packages/api/test/requestRateLimits.test.ts packages/api/test/statusRoutes.test.ts packages/api/test/agentRuntimeRoutes.test.ts packages/api/test/instanceAuthorization.test.ts packages/api/test/routeAuthorization.test.ts

TAP version 13
# Subtest: agent runtime package routes
    # Subtest: queues one validated package profile for the unified agent image
    ok 1 - queues one validated package profile for the unified agent image
      ---
      duration_ms: 4.893324
      type: 'test'
      ...
    # Subtest: persists a failed state when queue submission fails
    ok 2 - persists a failed state when queue submission fails
      ---
      duration_ms: 0.991376
      type: 'test'
      ...
    # Subtest: rejects a package missing from an effective runtime before queueing
    ok 3 - rejects a package missing from an effective runtime before queueing
      ---
      duration_ms: 0.947314
      type: 'test'
      ...
    # Subtest: times out slow runtime package validation before queueing
    ok 4 - times out slow runtime package validation before queueing
      ---
      duration_ms: 16.235168
      type: 'test'
      ...
    # Subtest: returns package suggestions from configured runtimes
    ok 5 - returns package suggestions from configured runtimes
      ---
      duration_ms: 3.067804
      type: 'test'
      ...
    # Subtest: enforces PROPR_ADMIN_USERS when configured
    ok 6 - enforces PROPR_ADMIN_USERS when configured
      ---
      duration_ms: 0.495373
      type: 'test'
      ...
    # Subtest: denies runtime package changes by default when no admin policy is configured
    ok 7 - denies runtime package changes by default when no admin policy is configured
      ---
      duration_ms: 0.406267
      type: 'test'
      ...
    # Subtest: requires runtime-management permission before returning runtime package state
    ok 8 - requires runtime-management permission before returning runtime package state
      ---
      duration_ms: 0.65499
      type: 'test'
      ...
    # Subtest: warms the package catalog when an admin loads runtime package state
    ok 9 - warms the package catalog when an admin loads runtime package state
      ---
      duration_ms: 0.851076
      type: 'test'
      ...
    # Subtest: does not warm the package catalog when a member is rejected
    ok 10 - does not warm the package catalog when a member is rejected
      ---
      duration_ms: 13.135956
      type: 'test'
      ...
    # Subtest: resolves the runtime build queue lazily when queueing
    ok 11 - resolves the runtime build queue lazily when queueing
      ---
      duration_ms: 0.785142
      type: 'test'
      ...
    # Subtest: reports apply load failures through the route response
    ok 12 - reports apply load failures through the route response
      ---
      duration_ms: 0.399333
      type: 'test'
      ...
    # Subtest: verifies the current effective images through the runtime-management boundary
    ok 13 - verifies the current effective images through the runtime-management boundary
      ---
      duration_ms: 0.460538
      type: 'test'
      ...
    # Subtest: rejects runtime verification without runtime-management permission
    ok 14 - rejects runtime verification without runtime-management permission
      ---
      duration_ms: 2.473026
      type: 'test'
      ...
    1..14
ok 1 - agent runtime package routes
  ---
  duration_ms: 47.855543
  type: 'suite'
  ...
# [2026-09-07 10:06:21.254 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-09-07 10:06:21.299 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# Subtest: upload handler removes Multer files rejected before attachment processing
ok 2 - upload handler removes Multer files rejected before attachment processing
  ---
  duration_ms: 11.0063
  type: 'test'
  ...
# Subtest: attachment processing removes temporary and final files when persistence fails
ok 3 - attachment processing removes temporary and final files when persistence fails
  ---
  duration_ms: 7.588744
  type: 'test'
  ...
# Subtest: temporary cleanup refuses paths outside its configured root
ok 4 - temporary cleanup refuses paths outside its configured root
  ---
  duration_ms: 0.989483
  type: 'test'
  ...
# Subtest: temporary cleanup rejects dot-segment paths that resolve above its root
ok 5 - temporary cleanup rejects dot-segment paths that resolve above its root
  ---
  duration_ms: 0.817683
  type: 'test'
  ...
# Subtest: attachment processing rejects path-like draft IDs and still cleans its temp file
ok 6 - attachment processing rejects path-like draft IDs and still cleans its temp file
  ---
  duration_ms: 4.102621
  type: 'test'
  ...
# [2026-09-07 10:06:20.692 +0000] �[32mINFO�[39m: �[36mCreated data directory for SQLite database�[39m
#     directory: "/home/runner/work/propr/propr/data"
# [2026-09-07 10:06:21.219 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-09-07 10:06:21.243 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# Subtest: API config subscription serializes the startup reload with settings updates
ok 7 - API config subscription serializes the startup reload with settings updates
  ---
  duration_ms: 7.222612
  type: 'test'
  ...
# Subtest: API config subscription reloads repository updates
ok 8 - API config subscription reloads repository updates
  ---
  duration_ms: 5.732247
  type: 'test'
  ...
# Subtest: API config subscription ignores unrelated and malformed events
ok 9 - API config subscription ignores unrelated and malformed events
  ---
  duration_ms: 0.465036
  type: 'test'
  ...
# Subtest: a failed API settings reload does not block the next notification
ok 10 - a failed API settings reload does not block the next notification
  ---
  duration_ms: 0.566545
  type: 'test'
  ...
# Subtest: relay tunnel mode uses Connect without local OAuth credentials
ok 11 - relay tunnel mode uses Connect without local OAuth credentials
  ---
  duration_ms: 4.512926
  type: 'test'
  ...
# Subtest: relay tunnel mode preserves Connect for operator-supplied service endpoints
ok 12 - relay tunnel mode preserves Connect for operator-supplied service endpoints
  ---
  duration_ms: 0.412748
  type: 'test'
  ...
# Subtest: local relay mode uses Connect without a per-instance OAuth App
ok 13 - local relay mode uses Connect without a per-instance OAuth App
  ---
  duration_ms: 0.647025
  type: 'test'
  ...
# Subtest: off-tunnel relay inference uses the shared canonical loopback rule
ok 14 - off-tunnel relay inference uses the shared canonical loopback rule
  ---
  duration_ms: 2.163419
  type: 'test'
  ...
# Subtest: off-tunnel custom relay enrollment does not infer hosted Connect auth
ok 15 - off-tunnel custom relay enrollment does not infer hosted Connect auth
  ---
  duration_ms: 0.222214
  type: 'test'
  ...
# Subtest: literal example OAuth placeholders do not enable GitHub web auth
ok 16 - literal example OAuth placeholders do not enable GitHub web auth
  ---
  duration_ms: 0.174485
  type: 'test'
  ...
# Subtest: explicit custom GitHub web auth remains supported
ok 17 - explicit custom GitHub web auth remains supported
  ---
  duration_ms: 0.195444
  type: 'test'
  ...
# Subtest: explicit custom GitHub web auth wins over relay inference off-tunnel
ok 18 - explicit custom GitHub web auth wins over relay inference off-tunnel
  ---
  duration_ms: 0.236851
  type: 'test'
  ...
# Subtest: Connect authorization URL carries the exact callback and CSRF state
ok 19 - Connect authorization URL carries the exact callback and CSRF state
  ---
  duration_ms: 0.74106
  type: 'test'
  ...
# Subtest: Connect authorization URL rejects configured query strings and fragments
ok 20 - Connect authorization URL rejects configured query strings and fragments
  ---
  duration_ms: 0.995665
  type: 'test'
  ...
# Subtest: redeems a Connect code server-to-server without exposing the relay token in the body
ok 21 - redeems a Connect code server-to-server without exposing the relay token in the body
  ---
  duration_ms: 71.490493
  type: 'test'
  ...
# Subtest: binds the Connect identity username to the validated token owner
ok 22 - binds the Connect identity username to the validated token owner
  ---
  duration_ms: 5.377186
  type: 'test'
  ...
# Subtest: preserves expiring OAuth grant fields returned by Connect
ok 23 - preserves expiring OAuth grant fields returned by Connect
  ---
  duration_ms: 1.288039
  type: 'test'
  ...
# Subtest: assembled desktop API authentication boundary
    # Subtest: keeps discovery and bounded pairing bootstrap ahead of the operational API guard
    ok 1 - keeps discovery and bounded pairing bootstrap ahead of the operational API guard
      ---
      duration_ms: 105.151058
      type: 'test'
      ...
    1..1
ok 24 - assembled desktop API authentication boundary
  ---
  duration_ms: 106.354378
  type: 'suite'
  ...
# [2026-09-07 10:06:22.889 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-09-07 10:06:22.988 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# Subtest: accepts Docker IDs and ProPR-generated container names
ok 25 - accepts Docker IDs and ProPR-generated container names
  ---
  duration_ms: 1.686872
  type: 'test'
  ...
# Subtest: rejects container references that could be parsed as options or shell syntax
ok 26 - rejects container references that could be parsed as options or shell syntax
  ---
  duration_ms: 0.274271
  type: 'test'
  ...
# Subtest: production subprocess call sites do not invoke a command shell
ok 27 - production subprocess call sites do not invoke a command shell
  ---
  duration_ms: 154.163137
  type: 'test'
  ...
# Subtest: no-shell guard rejects aliases and enabled shell options
ok 28 - no-shell guard rejects aliases and enabled shell options
  ---
  duration_ms: 15.144006
  type: 'test'
  ...
# Subtest: instance authorization
    # Subtest: defaults unassigned authenticated users to members on a new installation
    ok 1 - defaults unassigned authenticated users to members on a new installation
      ---
      duration_ms: 16.711446
      type: 'test'
      ...
    # Subtest: refuses startup until a bootstrap or durable administrator exists
    ok 2 - refuses startup until a bootstrap or durable administrator exists
      ---
      duration_ms: 7.58117
      type: 'test'
      ...
    # Subtest: grants full admin permissions to PROPR_ADMIN_USERS
    ok 3 - grants full admin permissions to PROPR_ADMIN_USERS
      ---
      duration_ms: 3.652773
      type: 'test'
      ...
    # Subtest: resolves durable roles by numeric GitHub ID after a username change
    ok 4 - resolves durable roles by numeric GitHub ID after a username change
      ---
      duration_ms: 4.202378
      type: 'test'
      ...
    # Subtest: resolves demo users without installation permissions
    ok 5 - resolves demo users without installation permissions
      ---
      duration_ms: 3.31827
      type: 'test'
      ...
    # Subtest: permission middleware rejects members with a stable error code
    ok 6 - permission middleware rejects members with a stable error code
      ---
      duration_ms: 3.202174
      type: 'test'
      ...
    # Subtest: current-user responses expose capabilities without OAuth credentials
    ok 7 - current-user responses expose capabilities without OAuth credentials
      ---
      duration_ms: 2.939244
      type: 'test'
      ...
    1..7
ok 29 - instance authorization
  ---
  duration_ms: 43.448564
  type: 'suite'
  ...
# Subtest: instance member service
    # Subtest: does not let an unassigned user claim the initial administrator role
    ok 1 - does not let an unassigned user claim the initial administrator role
      ---
      duration_ms: 5.302145
      type: 'test'
      ...
    # Subtest: stores a bootstrap administrator against their numeric GitHub ID
    ok 2 - stores a bootstrap administrator against their numeric GitHub ID
      ---
      duration_ms: 14.062743
      type: 'test'
      ...
    # Subtest: adds explicit members and writes an audit entry
    ok 3 - adds explicit members and writes an audit entry
      ---
      duration_ms: 11.714198
      type: 'test'
      ...
    # Subtest: keeps environment authority separate from durable role assignments
    ok 4 - keeps environment authority separate from durable role assignments
      ---
      duration_ms: 3.957039
      type: 'test'
      ...
    # Subtest: prevents removing the last durable administrator
    ok 5 - prevents removing the last durable administrator
      ---
      duration_ms: 8.506394
      type: 'test'
      ...
    # Subtest: allows role changes once another administrator exists
    ok 6 - allows role changes once another administrator exists
      ---
      duration_ms: 7.820574
      type: 'test'
      ...
    1..6
ok 30 - instance member service
  ---
  duration_ms: 52.061455
  type: 'suite'
  ...
# Subtest: instance catalog
    # Subtest: returns operational agent and repository fields without installation internals
    ok 1 - returns operational agent and repository fields without installation internals
      ---
      duration_ms: 2.457878
      type: 'test'
      ...
    # Subtest: projects indexing status only for enabled repository and branch entries
    ok 2 - projects indexing status only for enabled repository and branch entries
      ---
      duration_ms: 1.837282
      type: 'test'
      ...
    1..2
ok 31 - instance catalog
  ---
  duration_ms: 4.400537
  type: 'suite'
  ...
# Subtest: instance admin routes
    # Subtest: resolves a GitHub username and creates one durable member assignment
    ok 1 - resolves a GitHub username and creates one durable member assignment
      ---
      duration_ms: 2.960704
      type: 'test'
      ...
    # Subtest: rejects a non-numeric audit limit with a 400
    ok 2 - rejects a non-numeric audit limit with a 400
      ---
      duration_ms: 1.682564
      type: 'test'
      ...
    # Subtest: rejects GitHub usernames with trailing or consecutive hyphens
    ok 3 - rejects GitHub usernames with trailing or consecutive hyphens
      ---
      duration_ms: 2.521447
      type: 'test'
      ...
    1..3
ok 32 - instance admin routes
  ---
  duration_ms: 7.321777
  type: 'suite'
  ...
# [2026-09-07 10:06:25.009 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-09-07 10:06:25.108 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# Subtest: direct API execution binds to loopback by default
ok 33 - direct API execution binds to loopback by default
  ---
  duration_ms: 1.084089
  type: 'test'
  ...
# Subtest: containerized API execution remains reachable through its published port
ok 34 - containerized API execution remains reachable through its published port
  ---
  duration_ms: 0.183461
  type: 'test'
  ...
# Subtest: an explicit API listen host overrides environment defaults
ok 35 - an explicit API listen host overrides environment defaults
  ---
  duration_ms: 0.18765
  type: 'test'
  ...
# Subtest: GitHub OAuth authorization stores and sends a random state nonce
ok 36 - GitHub OAuth authorization stores and sends a random state nonce
  ---
  duration_ms: 4.372824
  type: 'test'
  ...
# Subtest: GitHub OAuth callback rejects a mismatched state before token exchange
ok 37 - GitHub OAuth callback rejects a mismatched state before token exchange
  ---
  duration_ms: 2.090864
  type: 'test'
  ...
# [2026-09-07 10:06:27.935 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-09-07 10:06:27.936 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# Subtest: returns a standard 429 response after the configured quota
ok 38 - returns a standard 429 response after the configured quota
  ---
  duration_ms: 121.342455
  type: 'test'
  ...
# Subtest: the real global API limiter keeps no-store headers when saturated
ok 39 - the real global API limiter keeps no-store headers when saturated
  ---
  duration_ms: 28.846207
  type: 'test'
  ...
# Subtest: route limiting, 503, and errors inherit the earliest API no-store boundary
ok 40 - route limiting, 503, and errors inherit the earliest API no-store boundary
  ---
  duration_ms: 32.968392
  type: 'test'
  ...
# Subtest: does not charge CORS preflight requests against the quota
ok 41 - does not charge CORS preflight requests against the quota
  ---
  duration_ms: 18.858735
  type: 'test'
  ...
# Subtest: route-level webhook limiting preserves alternate-case raw bodies and rejects excess requests before parsing
ok 42 - route-level webhook limiting preserves alternate-case raw bodies and rejects excess requests before parsing
  ---
  duration_ms: 21.482693
  type: 'test'
  ...
# Subtest: does not let an unconfigured private peer rotate quota buckets with X-Forwarded-For
ok 43 - does not let an unconfigured private peer rotate quota buckets with X-Forwarded-For
  ---
  duration_ms: 22.295616
  type: 'test'
  ...
# Subtest: tunnel trust does not let an unrelated private peer rotate quota buckets
ok 44 - tunnel trust does not let an unrelated private peer rotate quota buckets
  ---
  duration_ms: 20.39151
  type: 'test'
  ...
# Subtest: trusted TLS proxy preserves per-client quotas and secure session cookies
ok 45 - trusted TLS proxy preserves per-client quotas and secure session cookies
  ---
  duration_ms: 14.129146
  type: 'test'
  ...
# Subtest: resolves secure defaults and explicit positive-integer overrides
ok 46 - resolves secure defaults and explicit positive-integer overrides
  ---
  duration_ms: 0.792065
  type: 'test'
  ...
# Subtest: rejects invalid overrides instead of silently disabling protection
ok 47 - rejects invalid overrides instead of silently disabling protection
  ---
  duration_ms: 1.215173
  type: 'test'
  ...
# Subtest: assembled instance permission routes
    # Subtest: captures Express 5 named wildcard parameters as path segments
    ok 1 - captures Express 5 named wildcard parameters as path segments
      ---
      duration_ms: 35.127331
      type: 'test'
      ...
    # Subtest: members can read only the sanitized catalog endpoints
    ok 2 - members can read only the sanitized catalog endpoints
      ---
      duration_ms: 70.967569
      type: 'test'
      ...
# [2026-09-07 10:06:28.860 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
    # Subtest: administrators pass every management guard in the route matrix
    ok 3 - administrators pass every management guard in the route matrix
      ---
      duration_ms: 35.928152
      type: 'test'
      ...
    # Subtest: demo users can read only the synthetic Agent Tank usage feed
    ok 4 - demo users can read only the synthetic Agent Tank usage feed
      ---
      duration_ms: 7.608861
      type: 'test'
      ...
    1..4
ok 48 - assembled instance permission routes
  ---
  duration_ms: 151.18236
  type: 'suite'
  ...
# [2026-09-07 10:06:29.007 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status omits disabled configured agents
ok 49 - /api/status omits disabled configured agents
  ---
  duration_ms: 2500.450941
  type: 'test'
  ...
# Subtest: /api/compatibility returns public version contract metadata
ok 50 - /api/compatibility returns public version contract metadata
  ---
  duration_ms: 2.773445
  type: 'test'
  ...
# Subtest: /api/desktop/discovery returns the bounded public identity and runtime origin
ok 51 - /api/desktop/discovery returns the bounded public identity and runtime origin
  ---
  duration_ms: 3.931302
  type: 'test'
  ...
# Subtest: /api/desktop/discovery redacts identity persistence failures
ok 52 - /api/desktop/discovery redacts identity persistence failures
  ---
  duration_ms: 1.312204
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status returns default Claude fallback when no agents are configured
ok 53 - /api/status returns default Claude fallback when no agents are configured
  ---
  duration_ms: 2.963218
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# [notifications] Failed to project system health snapshot: Error: notification persistence unavailable
#     at projectSystemSnapshot (/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:308:13)
#     at Object.getStatus (/home/runner/work/propr/propr/packages/api/routes/statusRoutes.ts:224:14)
#     at async readStatus (/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:186:3)
#     at async TestContext.<anonymous> (/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:305:16)
#     at async Test.run (node:internal/test_runner/test:1054:7)
#     at async Test.processPendingSubtests (node:internal/test_runner/test:744:7)
# Subtest: /api/status isolates system notification projection failures
ok 54 - /api/status isolates system notification projection failures
  ---
  duration_ms: 5.35354
  type: 'test'
  ...
# Subtest: /api/status surfaces unified agent image outages
ok 55 - /api/status surfaces unified agent image outages
  ---
  duration_ms: 1.376804
  type: 'test'
  ...
# Subtest: /api/status includes warnings field in demo mode
ok 56 - /api/status includes warnings field in demo mode
  ---
  duration_ms: 1.137177
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status caches agent health checks briefly
ok 57 - /api/status caches agent health checks briefly
  ---
  duration_ms: 5.279239
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status marks an unavailable synthetic pool degraded without downgrading direct agents
ok 58 - /api/status marks an unavailable synthetic pool degraded without downgrading direct agents
  ---
  duration_ms: 3.272134
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status reports resolved auth mode and event intake mode
ok 59 - /api/status reports resolved auth mode and event intake mode
  ---
  duration_ms: 2.375855
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status reports connected intake status when routing state is live
ok 60 - /api/status reports connected intake status when routing state is live
  ---
  duration_ms: 3.036505
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status reports disconnected intake status when routing state is down
ok 61 - /api/status reports disconnected intake status when routing state is down
  ---
  duration_ms: 2.47509
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status reports active intake status for polling when the daemon is running
ok 62 - /api/status reports active intake status for polling when the daemon is running
  ---
  duration_ms: 1.941326
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status reports disconnected intake status for polling when the daemon is stopped
ok 63 - /api/status reports disconnected intake status for polling when the daemon is stopped
  ---
  duration_ms: 1.85236
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status includes routing state published by the daemon
ok 64 - /api/status includes routing state published by the daemon
  ---
  duration_ms: 1.977172
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status exposes only validated UI-safe Connect account fields
ok 65 - /api/status exposes only validated UI-safe Connect account fields
  ---
  duration_ms: 9.060845
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status rejects impossible account dates and preserves valid leap-day instants
ok 66 - /api/status rejects impossible account dates and preserves valid leap-day instants
  ---
  duration_ms: 4.97617
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status drops malformed or disconnected Connect account state without assuming Community
ok 67 - /api/status drops malformed or disconnected Connect account state without assuming Community
  ---
  duration_ms: 2.48105
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status does not expose Connect account state for a non-Connect intake mode
ok 68 - /api/status does not expose Connect account state for a non-Connect intake mode
  ---
  duration_ms: 1.578139
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status reports connected githubAuth for relay-auth deployments
ok 69 - /api/status reports connected githubAuth for relay-auth deployments
  ---
  duration_ms: 1.443959
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status reports unknown auth mode and disconnected health when the resolver is bypassed
ok 70 - /api/status reports unknown auth mode and disconnected health when the resolver is bypassed
  ---
  duration_ms: 1.382756
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/hom

...(truncated)

View Workflow

@propr-dev

propr-dev Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 141a44e

Summary of Changes

Fixed the PR build failure in LocalSetupWizard.tsx by extracting recovery details and setup-summary rendering, eliminating both complexity warnings without changing behavior.

Validation passed:

  • UI lint with zero warnings
  • UI typecheck
  • 660 UI tests
  • Production UI build
  • CLI typecheck and lint
  • CLI release packaging
  • Desktop typecheck
  • git diff --check

No preview was generated because the refactor produces no visual change. Changes were not committed.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @github-actions[bot]
  • Time: 6m 16s
  • Tokens: 896,371 (891,383 in / 4,988 out)
  • Cost: $0.89

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 Implement fixes for issues found by /review /fix or /fix address the null check issue
/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: 5569025584✓

…it-processor/worktrees/integry/propr/pr-2167-followup-2026-09-07T10-09-51/propr-ui/src/desktop/LocalSetupWizard.tsx:40) by extracting recovery details and setup-summary rendering, eliminating both complexity warnings without changing behavior.

Fixed the PR build failure in [LocalSetupWizard.tsx](/tmp/git-processor/worktrees/integry/propr/pr-2167-followup-2026-09-07T10-09-51/propr-ui/src/desktop/LocalSetupWizard.tsx:40) by extracting recovery details and setup-summary rendering, eliminating both complexity warnings without changing behavior.

Validation passed:

- UI lint with zero warnings
- UI typecheck
- 660 UI tests
- Production UI build
- CLI typecheck and lint
- CLI release packaging
- Desktop typecheck
- `git diff --check`

No preview was generated because the refactor produces no visual change. Changes were not committed.

PR: #2167
Comment by: @github-actions[bot] (ID: 5569025584)
Model: gpt-5.6-sol
@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=9 max=2

Review GitHub identity, explicit installation selection, permission recovery, and cancellation/retry correctness. Preserve server authorization and keep secrets out of renderer state. Windows is deferred. Fix concrete blockers only, not optional polish. Target remains the desktop epic, never main.

@propr-dev propr-dev Bot added the ultrafix label Sep 7, 2026
@propr-dev

propr-dev Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

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

First action: /review

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

@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/review

Ultrafix kickoff was acknowledged but no desktop review job appeared in the live queue. Review the current head, including pending installation-choice cancellation, stale decisions, and GitHub account change behavior. Concrete blockers only; Windows remains deferred.

@propr-dev

propr-dev Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/fix

Independent root review found a concrete recovery blocker in GithubInstallationChoice: its useEffect depends on selected and unconditionally calls setSelected(identity.selectedInstallationId) whenever that server field is nonempty. After a rejected enrollment, selectedInstallationId remains the rejected installation. Clicking a different radio changes selected, reruns the effect, and immediately resets the choice to the rejected ID. This prevents the user from using the advertised choose-another-installation recovery.

Fix selection synchronization so a still-current snapshot does not overwrite deliberate local radio changes. Reset/reconcile only on an actual authoritative identity/list/selection transition, with stale selections cleared appropriately. Add a regression that starts in authorization-failed with selectedInstallationId=100, clicks installation 200, and verifies Continue submits 200. Preserve cancellation, account-change, and refreshed-list handling. Coordinate with the in-flight review so this finding is fixed once, not in duplicate. Keep changes on this PR/desktop epic; Windows remains deferred.

@propr-dev

propr-dev Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-5.6-sol

Overall Evaluation

This PR substantially improves GitHub Connect enrollment, but needs minor correctness fixes before merge.

✅ Server authorization preserved — Installation access is freshly revalidated, and enrollment 403s return to the chooser without treating discovery access as ownership.

✅ Renderer remains secret-free — IPC exposes only validated identity and installation metadata; tokens remain in the trusted process.

✅ Pending chooser cancellation settles — The controller resolves a pending choice before aborting, with focused coverage preventing duplicate enrollment at that point.

The five current failures are Windows-only and explicitly deferred, so they are not actionable findings here, though the current head is not green.

Merge blockers

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

F1: 🔴 Cancellation can still enroll

  • Required behavior: Cancelling setup must prevent subsequent enrollment mutations introduced by the new explicit-selection and revalidation flow.
  • Evidence: packages/local-setup/src/engine.ts:745-773 — after the fresh fetchRelayInstallations await, the code can proceed directly to enrollRelay without checking whether cancellation occurred during revalidation.
  • Minimum fix: Check options.signal immediately after revalidation and before calling enrollRelay; also check before applying the returned token to local configuration.

F2: 🔴 Account changes retain stale selection

  • Required behavior: Installation selection must be explicit for the currently authenticated GitHub identity, and stale decisions must not survive an account change.
  • Evidence: propr-ui/src/desktop/LocalSetupWizard.tsx:65-69 — local radio state is cleared only when the installation ID disappears. If the new account can access the same organization installation, the old account’s selection remains checked even though the engine and controller cleared their selected identity.
  • Minimum fix: Reset renderer selection whenever a new identity context arrives after reauthentication, including when the username is unchanged or both accounts share an installation ID; require a fresh radio choice before continuing.

Suggestions

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

No suggestions.

Score

The core authorization and IPC design is strong and well tested, but the two cancellation/stale-decision regressions block merge. Current Windows checks also remain failed, although they are deferred from this review.

Score: 6/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 5m 1s
  • Tokens: 74,948 (65,816 in / 9,132 out)
  • Cost: $0.55

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit ae89ed1

Addressed 1 AI review comment (IDs: 5569537815)

Summary of Changes

Implemented F1 and F2 on PR #2167; Windows remains untouched.

  • Added cancellation guards after installation revalidation and before applying enrollment configuration in engine.ts.
  • Fixed radio synchronization so unchanged snapshots cannot overwrite deliberate choices.
  • Account reauthentication now clears selection even with unchanged usernames/shared installation IDs.
  • Refreshed lists clear unavailable local selections.
  • Added the requested authorization-failed, selected 100, choose 200, submit 200 regression.
  • Generated focused visual-preview evidence.

Validation passed:

  • 63 engine tests
  • 14 renderer integration tests
  • 8 setup-controller tests
  • Local setup, CLI, and UI typechecks
  • CLI and UI lint
  • git diff --check

No commit was created.

Visual preview

Choose another installation after authorization failure

Choose another installation after authorization failure

After installation 100 is rejected, installation 200 remains deliberately selected and Continue will submit it.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 17m 6s
  • Tokens: 3,597,052 (3,573,993 in / 23,059 out)
  • Cost: $3.03
  • 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 Implement fixes for issues found by /review /fix or /fix address the null check issue
/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: 5569474207✓

@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/fix F1 F2

Address both confirmed review findings from comment 5569537815. F1: check cancellation after async revalidation and immediately before enrollment/local token persistence; add controlled-await cancellation regressions. F2: reset explicit selection on reauthentication/new identity context even for shared installation IDs or same-username reauth. Preserve intentional local selection within an unchanged chooser context.

The prior root picker-reset fix (comment 5569474207) is already running. Build on that result and implement each correction once; do not undo its rejected-100 -> chosen-200 regression. Keep scope focused; Windows deferred; no optional polish.

Implemented F1 and F2 on PR #2167; Windows remains untouched.

- Added cancellation guards after installation revalidation and before applying enrollment configuration in [engine.ts](/tmp/git-processor/worktrees/integry/propr/pr-2167-followup-2026-09-07T10-53-25/packages/local-setup/src/engine.ts).
- Fixed radio synchronization so unchanged snapshots cannot overwrite deliberate choices.
- Account reauthentication now clears selection even with unchanged usernames/shared installation IDs.
- Refreshed lists clear unavailable local selections.
- Added the requested `authorization-failed`, selected `100`, choose `200`, submit `200` regression.
- Generated focused visual-preview evidence.

Validation passed:

- 63 engine tests
- 14 renderer integration tests
- 8 setup-controller tests
- Local setup, CLI, and UI typechecks
- CLI and UI lint
- `git diff --check`

No commit was created.

PR: #2167
Comment by: @integry (ID: 5569474207)
Model: gpt-5.6-sol
@propr-dev

propr-dev Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ No authorized review findings were selected.

No files were changed because this /fix command did not select an actionable F# finding. Suggestions require a separate ordinary follow-up request.

View Task Execution


Processing comment ID: 5569546423✓

@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/review

Review corrected head ae89ed1. Root independently read the full correction: rejected-installation radio reset fixed, reauth clears selection, cancellation checked after revalidation and before token persistence, with regressions. Although queued /fix F1 F2 reported no authorized selections, the preceding correction commit contains both review fixes; assess actual code, not that no-op report. Verify F1/F2 and root picker finding are resolved. Concrete blockers only; Windows deferred; no optional polish.

@propr-dev

propr-dev Bot commented Sep 7, 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 Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-5.6-sol

Overall Evaluation

This PR correctly adds explicit GitHub installation selection, owner-authorization recovery, account reauthentication, and cancellation safeguards, but it needs a minor correction before merge because the shared engine regresses the existing CLI/TUI zero-installation flow.

✅ Cancellation fences restored — The engine checks cancellation after asynchronous revalidation and again before persisting the returned relay configuration.

✅ Picker recovery fixed — The renderer now preserves deliberate local radio changes while reconciling genuine account, installation-list, and authoritative-selection transitions.

✅ Reauthentication resets choice — Successful reauthentication clears the engine selection, persisted identity, and renderer-local selection, including same-username scenarios.

Merge blockers

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

F3: 🔴 Zero-installation CLI recovery regressed

  • Required behavior: Changed shared setup behavior must preserve the existing actionable GitHub App installation flow for interactive CLI/TUI hosts when discovery returns no installations.
  • Evidence: packages/local-setup/src/engine.ts:667 — The previous hosted-App installation workflow is now gated on !prompts.selectInstallation. Both existing CLI implementations define the legacy string-returning selection hook, so an empty discovery result bypasses installation recovery and falls through to a selection prompt with zero options.
  • Minimum fix: Preserve the existing confirm/open/wait/refetch path for legacy selection hooks, or explicitly distinguish action-capable hooks and update the CLI/TUI implementations to handle empty lists with installation and refresh actions.

Suggestions

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

No suggestions.

Score

The principal desktop corrections are sound and well tested, but the shared-engine regression leaves two existing interactive setup frontends without usable zero-installation recovery. Current checks have no reported failures but remain pending.

Score: 6/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 5m 3s
  • Tokens: 76,416 (67,208 in / 9,208 out)
  • Cost: $0.56

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/fix F3

Fix only the confirmed shared CLI/TUI zero-installation recovery regression from review 5569831110. Distinguish the desktop action-capable installation chooser from existing legacy string-returning CLI/TUI hooks explicitly, or preserve legacy confirm/open/wait/refetch behavior without sending empty options to them. Add regression coverage for both legacy interactive hosts with zero initial installations and desktop zero-install install/refresh/cancel. Preserve all now-verified desktop picker, account-change, authorization and cancellation fixes. Keep changes narrow, no optional polish or Windows work. This PR will subsequently need the latest desktop epic merged in to incorporate #2166.

@propr-dev

propr-dev Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit a37927f

Addressed 1 AI review comment (IDs: 5569831110)

Summary of Changes

Implemented F3 only.

  • Split legacy string selection from desktop action-capable selection in engine.ts.
  • Restored CLI/TUI confirm → open → wait → refetch behavior without passing empty options.
  • Preserved desktop zero-install install, refresh, authorization recovery, and cancellation behavior.
  • Added regressions for sequential CLI, Ink TUI, and desktop.

Validation passed:

  • Local-setup, CLI, and desktop typechecks
  • CLI lint
  • 63 setup-engine tests
  • 26 sequential CLI tests
  • 15 Ink TUI tests
  • Full desktop suite: 638 tests, 612 passed, 26 skipped, 0 failed

No visual preview was added because this restores interaction routing without changing rendered UI components. No commit was created.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 16m 39s
  • Tokens: 3,775,682 (3,757,961 in / 17,721 out)
  • Cost: $3.03
  • 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 Implement fixes for issues found by /review /fix or /fix address the null check issue
/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: 5569839246✓

@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/merge

PR #2166 has now merged into our target desktop epic (merge commit 61e9d6b). After the active F3 correction finishes, merge target branch 1950-epic-cross-platform-dsk into this PR; do not merge main or merge this PR yourself.

Resolve overlaps preserving both changes: no Demo option; legacy Demo cannot keep/retry itself; relay requires WebSocket including old saved polling recovery; human-readable summary/recovery; GitHub username/installation picker; rejected selection recovery; reauth selection reset; cancellation fences; and F3 legacy CLI/TUI zero-installation recovery. Update relay test fixtures from polling to routing_websocket where the desktop now rejects polling. Run the combined focused UI/controller/engine tests, typecheck/build, and capture the combined wizard preview. Keep closing link to #2162.

Implemented F3 only.

- Split legacy string selection from desktop action-capable selection in [engine.ts](/tmp/git-processor/worktrees/integry/propr/pr-2167-followup-2026-09-07T11-19-16/packages/local-setup/src/engine.ts:217).
- Restored CLI/TUI confirm → open → wait → refetch behavior without passing empty options.
- Preserved desktop zero-install install, refresh, authorization recovery, and cancellation behavior.
- Added regressions for sequential CLI, Ink TUI, and desktop.

Validation passed:

- Local-setup, CLI, and desktop typechecks
- CLI lint
- 63 setup-engine tests
- 26 sequential CLI tests
- 15 Ink TUI tests
- Full desktop suite: 638 tests, 612 passed, 26 skipped, 0 failed

No visual preview was added because this restores interaction routing without changing rendered UI components. No commit was created.

PR: #2167
Comment by: @integry (ID: 5569839246)
Model: gpt-5.6-sol
@propr-dev

propr-dev Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from 1950-epic-cross-platform-dsk into 2162/gpt-5.6-sol-fix-desktop-connect-enrol-20260907-0934-ge3 in commit 100eeb4

Conflicting Files

  • apps/desktop/src/setup-controller.ts
  • propr-ui/src/desktop/LocalSetupWizard.integration.test.tsx
  • propr-ui/src/desktop/LocalSetupWizard.tsx

Resolution Summary

Resolved all merge conflicts in the three requested files without committing:

  • setup-controller.ts

    • Conflict: PR identity validation/persistence overlapped with Demo removal and WebSocket resume-policy enforcement.
    • Resolution: Kept both validation helpers and applied resume migration before sanitizing persisted GitHub identity.
    • Why: Preserves secure enrollment metadata while enforcing the merged branch’s supported configuration policy.
  • LocalSetupWizard.tsx

    • Conflict: Interactive installation selection and saved identity UI overlapped with Demo removal, readable labels, recovery summaries, and fixed WebSocket intake.
    • Resolution: Retained the PR enrollment flow and identity details while hiding Demo, forcing ProPR Connect to WebSocket, retaining legacy recovery, and using readable configuration labels.
    • Why: Maintains the PR’s enrollment intent without weakening the newer desktop setup restrictions.
  • LocalSetupWizard.integration.test.tsx

    • Conflict: Both branches inserted tests at the same location.
    • Resolution: Retained all three PR enrollment tests and both merged-branch Demo/WebSocket tests.
    • Why: Both test groups cover complementary behavior.

Verification:

  • No genuine conflict-marker lines remain. Marker text found elsewhere is intentional test-fixture content.
  • Desktop and UI TypeScript checks pass.
  • UI lint passes.
  • Wizard integration suite passes: 18/18.
  • Controller suite passes 10/13. Three non-conflicted PR fixtures still submit relay + polling, while the merged schema—and another merged test—explicitly requires rejecting that combination. Those tests were left unchanged per scope.
  • git diff --check passes.

Git could not mark the files resolved because the linked worktree index is root-owned; git add failed with index.lock: Permission denied. The resolved working-tree files are intact, but Git still reports them as UU. No commit was created.


🤖 Resolution Details

  • Model: gpt-5.6-sol
  • Time: 7m 29s

View Task Execution


System-triggered merge conflict resolution

@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/fix

After the current merge-resolution task publishes its combined commit, correct the three stale enrollment fixtures in apps/desktop/src/setup-controller.test.ts: valid Connect requests must use routing_websocket rather than polling. Preserve the explicit negative test rejecting relay + polling; do not weaken production validation. The merge task reported it could not edit this non-conflicted file within its scope. Run the controller tests, combined wizard integration tests, and desktop/local-setup typechecks. Keep this correction narrow and preserve F3 legacy CLI/TUI recovery. If the merge task fails to publish, inspect its final state and integrate the target desktop epic first; never merge main or this PR into main.

…gpt-5.6-sol-fix-desktop-connect-enrol-20260907-0934-ge3

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- apps/desktop/src/setup-controller.ts
- propr-ui/src/desktop/LocalSetupWizard.integration.test.tsx
- propr-ui/src/desktop/LocalSetupWizard.tsx

PR: #2167
Model: gpt-5.6-sol
@propr-dev

propr-dev Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ No authorized review findings were selected.

No files were changed because this /fix command did not select an actionable F# finding. Suggestions require a separate ordinary follow-up request.

View Task Execution


Processing comment ID: 5570109685✓

@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Please implement this narrow follow-up on the newly combined head 100eeb4: update valid Connect enrollment fixtures in apps/desktop/src/setup-controller.test.ts to use routing_websocket instead of polling. The merge task found three controller failures caused by these stale fixtures. Preserve the explicit negative test that rejects relay + polling; do not weaken production validation. Run the controller suite, combined LocalSetupWizard integration suite, and desktop/local-setup typechecks. This is an ordinary implementation request, not a selection of an F-number review finding. Keep F3 CLI/TUI recovery and all merged enrollment/No Demo/WebSocket behavior intact. Keep the PR targeting the desktop epic, never main.

@propr-dev

propr-dev Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit cf98a99

Summary of Changes

Updated setup-controller.test.ts:

  • Valid Connect request/environment fixtures now use routing_websocket.
  • Preserved explicit relay + polling rejection and stale polling recovery tests.
  • No production code or visual behavior changed.

Validation passed:

  • Controller suite: 13/13
  • Combined LocalSetupWizard integration suite: 18/18
  • Desktop typecheck
  • Local-setup typecheck
  • git diff --check

No preview generated because this is test-fixture-only. No commit created.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 3m 12s
  • Tokens: 280,592 (277,691 in / 2,901 out)
  • Cost: $0.39

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 Implement fixes for issues found by /review /fix or /fix address the null check issue
/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: 5570129874✓

…s/desktop/src/setup-controller.test.ts:49):

Updated [setup-controller.test.ts](/home/node/workspace/apps/desktop/src/setup-controller.test.ts:49):

- Valid Connect request/environment fixtures now use `routing_websocket`.
- Preserved explicit relay + polling rejection and stale polling recovery tests.
- No production code or visual behavior changed.

Validation passed:

- Controller suite: 13/13
- Combined `LocalSetupWizard` integration suite: 18/18
- Desktop typecheck
- Local-setup typecheck
- `git diff --check`

No preview generated because this is test-fixture-only. No commit created.

PR: #2167
Comment by: @integry (ID: 5570129874)
Model: gpt-5.6-sol
@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/review

Final combined-head review after Ultrafix corrections: cf98a99 includes the desktop epic merge and test-fixture correction. Verify F1/F2/F3 remain resolved; legacy CLI/TUI zero-install recovery, desktop empty-list actions, explicit GitHub identity/selection and owner-only enrollment recovery, cancellation, no Demo/legacy Demo guard, and mandatory Connect WebSocket remain coherent together. Focus only on actual functional/security regressions, no optional polishing or Windows blockers. Root independently inspected the corrections and conflict resolution; focused 13 controller + 18 wizard tests and desktop/local-setup typechecks pass. Do not merge the PR or main.

@propr-dev

propr-dev Bot commented Sep 7, 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 Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-5.6-sol

Overall Evaluation

The combined head is ready to merge within scope, conditional on the remaining required checks completing successfully. The implementation coherently adds explicit GitHub identity and installation selection without exposing secrets, while preserving legacy CLI/TUI behavior and desktop policy constraints.

✅ Cancellation fences remain intact — engine.ts checks cancellation after installation revalidation and immediately before local credential persistence, while setup-controller.ts settles pending chooser promises during cancellation and shutdown.

✅ Identity transitions are correctly reconciled — Successful reauthentication clears the engine selection and persisted desktop identity, while the renderer preserves deliberate choices only within an unchanged authoritative context.

✅ Host-specific recovery is coherent — Legacy CLI/TUI hosts recover from zero installations before invoking their non-empty string picker; desktop receives empty lists through its action-capable chooser and offers install, refresh, reauthentication, and cancellation. Desktop Demo rejection and Connect WebSocket enforcement also remain in place.

Merge blockers

No merge blockers.

Suggestions

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

No suggestions.

Score

The changed paths are internally consistent and have focused regression coverage for the previously reported F1/F2/F3 issues. The authoritative check status has no failures, although 15 checks remain pending.

Score: 9/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 3m 50s
  • Tokens: 78,922 (71,933 in / 6,989 out)
  • Cost: $0.57

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/merge

Merge the current target epic into this PR, specifically the reviewed macOS subprocess test fix from #2170 (epic bfb7009). Preserve the GitHub installation chooser and enrollment recovery, and the no-demo/WebSocket setup policy. Target remains the desktop epic, not main. Run focused setup and bounded-command regressions and report the resulting head; no unrelated implementation changes.

@propr-dev

propr-dev Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Auto-merged 1950-epic-cross-platform-dsk into 2162/gpt-5.6-sol-fix-desktop-connect-enrol-20260907-0934-ge3 (clean merge) in commit 987c2d6

No conflicts were found — the merge was verified by an AI agent.


🤖 Verification Details

  • Model: gpt-5.6-sol
  • Time: 1m 46s

View Task Execution


System-triggered merge conflict resolution

…to 2162/gpt-5.6-sol-fix-desktop-connect-enrol-20260907-0934-ge3
@integry
integry merged commit 00f8afd into 1950-epic-cross-platform-dsk Sep 7, 2026
30 of 35 checks passed
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