Skip to content

[1987 by GPT-5.6 Sol] Expose a secret-free ProPR Connect discovery contract for desktop - #1989

Merged
integry merged 72 commits into
1953-epic-desktop-transport-apifrom
1987/gpt-5.6-sol-expose-a-secret-free-prop-20260829-2120-4hc
Sep 1, 2026
Merged

integry merged 72 commits into
1953-epic-desktop-transport-apifrom
1987/gpt-5.6-sol-expose-a-secret-free-prop-20260829-2120-4hc

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #1987

Branch: 1987/gpt-5.6-sol-expose-a-secret-free-prop-20260829-2120-4hc
Commits: ✅ Changes committed (6543c04)


AI Processing Completed

Execution Details:

Summary:
Implemented issue #1987.

Key changes:

  • Added propr connect status --json --root <explicit-root> with bounded secret-free output and stable exit codes.
  • Added durable random public installation identity shared by CLI and /api/desktop/discovery.
  • Added strict canonical https://t-<id>.propr.dev validation, including IDNA/lookalike, userinfo, port, path, and symlink-root rejection.
  • Added bounded remote probing, compatibility/identity/origin matching, output caps, and restartRequired detection.
  • Preserved existing tunnel commands and centralized their URL parsing.
  • Documented identity lifecycle, exit semantics, and permanent tunnel-hostname retirement.
  • Added deterministic tests for all requested readiness, failure, security, and persistence scenarios.

Validation completed:

  • Root TypeScript typecheck passed.
  • CLI and API builds and lint passed.
  • 136 focused CLI, API, launcher, tunnel, identity, and configuration tests passed.

Detailed Logs:

  • Conversation: 105 messages
  • Session: 01a04f65-dc34-7b02-a83e-8eaa1c9dc8c3

Log files stored at:

  • conversation: /tmp/claude-logs/issue-1987-2026-08-29T21-39-44-494Z-conversation.json
  • output: /tmp/claude-logs/issue-1987-2026-08-29T21-39-44-494Z-output.txt
Latest Conversation Messages

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


💡 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!

…covery contr

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

Implementation completed successfully.
@propr-dev

propr-dev Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix
Triggered automatically by Planner execution settings.

@propr-dev propr-dev Bot added the ultrafix label Aug 29, 2026
@propr-dev

propr-dev Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor Author

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

First action: /review

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

@github-actions

Copy link
Copy Markdown

Checks Failed

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

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

--- GitHub Actions workflow lint ---
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667: Pulling from rhysd/actionlint
589002ba0eae: Pulling fs layer
c09af8888d6a: Pulling fs layer
4ccd7d76ca98: Pulling fs layer
b6b4b7b0e257: Pulling fs layer
b6b4b7b0e257: Waiting
c09af8888d6a: Verifying Checksum
c09af8888d6a: Download complete
4ccd7d76ca98: Download complete
589002ba0eae: Verifying Checksum
589002ba0eae: 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]
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported

added 1136 packages, and audited 1145 packages in 23s

326 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] 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/daemonEventIntake.test.ts test/databaseMigrationGate.test.ts 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/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: 5.832992
      type: 'test'
      ...
    # Subtest: persists a failed state when queue submission fails
    ok 2 - persists a failed state when queue submission fails
      ---
      duration_ms: 1.456768
      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: 1.436529
      type: 'test'
      ...
    # Subtest: times out slow runtime package validation before queueing
    ok 4 - times out slow runtime package validation before queueing
      ---
      duration_ms: 9.205855
      type: 'test'
      ...
    # Subtest: returns package suggestions from configured runtimes
    ok 5 - returns package suggestions from configured runtimes
      ---
      duration_ms: 1.10413
      type: 'test'
      ...
    # Subtest: enforces PROPR_ADMIN_USERS when configured
    ok 6 - enforces PROPR_ADMIN_USERS when configured
      ---
      duration_ms: 0.481428
      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.470799
      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.590081
      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.799191
      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: 4.714786
      type: 'test'
      ...
    # Subtest: resolves the runtime build queue lazily when queueing
    ok 11 - resolves the runtime build queue lazily when queueing
      ---
      duration_ms: 0.949191
      type: 'test'
      ...
    # Subtest: reports apply load failures through the route response
    ok 12 - reports apply load failures through the route response
      ---
      duration_ms: 2.863783
      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.79853
      type: 'test'
      ...
    # Subtest: rejects runtime verification without runtime-management permission
    ok 14 - rejects runtime verification without runtime-management permission
      ---
      duration_ms: 0.528466
      type: 'test'
      ...
    1..14
ok 1 - agent runtime package routes
  ---
  duration_ms: 33.82254
  type: 'suite'
  ...
# [2026-08-29 21:40:25.592 +0000] �[32mINFO�[39m: �[36mCreated data directory for SQLite database�[39m
#     directory: "/home/runner/work/propr/propr/data"
# [2026-08-29 21:40:26.083 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-29 21:40:26.114 +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: 10.815116
  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: 6.070164
  type: 'test'
  ...
# Subtest: temporary cleanup refuses paths outside its configured root
ok 4 - temporary cleanup refuses paths outside its configured root
  ---
  duration_ms: 0.872708
  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.684346
  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: 2.152456
  type: 'test'
  ...
# [2026-08-29 21:40:26.121 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-29 21:40:26.140 +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.992501
  type: 'test'
  ...
# Subtest: API config subscription reloads repository updates
ok 8 - API config subscription reloads repository updates
  ---
  duration_ms: 0.496647
  type: 'test'
  ...
# Subtest: API config subscription ignores unrelated and malformed events
ok 9 - API config subscription ignores unrelated and malformed events
  ---
  duration_ms: 0.326029
  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.398433
  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: 1.777396
  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.515331
  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.452093
  type: 'test'
  ...
# Subtest: off-tunnel relay inference rejects callbacks outside the exact loopback allowlist
ok 14 - off-tunnel relay inference rejects callbacks outside the exact loopback allowlist
  ---
  duration_ms: 0.551188
  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.24615
  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.258963
  type: 'test'
  ...
# Subtest: explicit custom GitHub web auth remains supported
ok 17 - explicit custom GitHub web auth remains supported
  ---
  duration_ms: 0.273831
  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.256559
  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: 2.687053
  type: 'test'
  ...
# Subtest: redeems a Connect code server-to-server without exposing the relay token in the body
ok 20 - redeems a Connect code server-to-server without exposing the relay token in the body
  ---
  duration_ms: 54.896902
  type: 'test'
  ...
# Subtest: binds the Connect identity username to the validated token owner
ok 21 - binds the Connect identity username to the validated token owner
  ---
  duration_ms: 0.986791
  type: 'test'
  ...
# Subtest: accepts Docker IDs and ProPR-generated container names
ok 22 - accepts Docker IDs and ProPR-generated container names
  ---
  duration_ms: 1.381768
  type: 'test'
  ...
# Subtest: rejects container references that could be parsed as options or shell syntax
ok 23 - rejects container references that could be parsed as options or shell syntax
  ---
  duration_ms: 0.242042
  type: 'test'
  ...
# Subtest: production subprocess call sites do not invoke a command shell
ok 24 - production subprocess call sites do not invoke a command shell
  ---
  duration_ms: 118.029966
  type: 'test'
  ...
# Subtest: no-shell guard rejects aliases and enabled shell options
ok 25 - no-shell guard rejects aliases and enabled shell options
  ---
  duration_ms: 3.766948
  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: 21.417095
      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: 16.482641
      type: 'test'
      ...
    # Subtest: grants full admin permissions to PROPR_ADMIN_USERS
    ok 3 - grants full admin permissions to PROPR_ADMIN_USERS
      ---
      duration_ms: 9.822736
      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: 10.710531
      type: 'test'
      ...
    # Subtest: resolves demo users without installation permissions
    ok 5 - resolves demo users without installation permissions
      ---
      duration_ms: 6.815255
      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: 6.485851
      type: 'test'
      ...
    # Subtest: current-user responses expose capabilities without OAuth credentials
    ok 7 - current-user responses expose capabilities without OAuth credentials
      ---
      duration_ms: 8.239622
      type: 'test'
      ...
    1..7
ok 26 - instance authorization
  ---
  duration_ms: 82.029404
  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.711315
      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.218697
      type: 'test'
      ...
    # Subtest: adds explicit members and writes an audit entry
    ok 3 - adds explicit members and writes an audit entry
      ---
      duration_ms: 13.682286
      type: 'test'
      ...
    # Subtest: keeps environment authority separate from durable role assignments
    ok 4 - keeps environment authority separate from durable role assignments
      ---
      duration_ms: 5.226711
      type: 'test'
      ...
    # Subtest: prevents removing the last durable administrator
    ok 5 - prevents removing the last durable administrator
      ---
      duration_ms: 9.382604
      type: 'test'
      ...
    # Subtest: allows role changes once another administrator exists
    ok 6 - allows role changes once another administrator exists
      ---
      duration_ms: 10.933618
      type: 'test'
      ...
    1..6
ok 27 - instance member service
  ---
  duration_ms: 59.72929
  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.958229
      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: 3.194239
      type: 'test'
      ...
    1..2
ok 28 - instance catalog
  ---
  duration_ms: 6.304812
  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: 4.613537
      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: 2.223058
      type: 'test'
      ...
    # Subtest: rejects GitHub usernames with trailing or consecutive hyphens
    ok 3 - rejects GitHub usernames with trailing or consecutive hyphens
      ---
      duration_ms: 4.19185
      type: 'test'
      ...
    1..3
ok 29 - instance admin routes
  ---
  duration_ms: 11.224631
  type: 'suite'
  ...
# [2026-08-29 21:40:29.152 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-29 21:40:29.302 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# Subtest: direct API execution binds to loopback by default
ok 30 - direct API execution binds to loopback by default
  ---
  duration_ms: 1.059477
  type: 'test'
  ...
# Subtest: containerized API execution remains reachable through its published port
ok 31 - containerized API execution remains reachable through its published port
  ---
  duration_ms: 0.211224
  type: 'test'
  ...
# Subtest: an explicit API listen host overrides environment defaults
ok 32 - an explicit API listen host overrides environment defaults
  ---
  duration_ms: 0.189864
  type: 'test'
  ...
# Subtest: GitHub OAuth authorization stores and sends a random state nonce
ok 33 - GitHub OAuth authorization stores and sends a random state nonce
  ---
  duration_ms: 3.813094
  type: 'test'
  ...
# Subtest: GitHub OAuth callback rejects a mismatched state before token exchange
ok 34 - GitHub OAuth callback rejects a mismatched state before token exchange
  ---
  duration_ms: 1.710512
  type: 'test'
  ...
# [2026-08-29 21:40:31.322 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-29 21:40:31.323 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# Subtest: returns a standard 429 response after the configured quota
ok 35 - returns a standard 429 response after the configured quota
  ---
  duration_ms: 130.579258
  type: 'test'
  ...
# Subtest: does not charge CORS preflight requests against the quota
ok 36 - does not charge CORS preflight requests against the quota
  ---
  duration_ms: 19.90239
  type: 'test'
  ...
# Subtest: route-level webhook limiting preserves alternate-case raw bodies and rejects excess requests before parsing
ok 37 - route-level webhook limiting preserves alternate-case raw bodies and rejects excess requests before parsing
  ---
  duration_ms: 19.696376
  type: 'test'
  ...
# Subtest: does not let an unconfigured private peer rotate quota buckets with X-Forwarded-For
ok 38 - does not let an unconfigured private peer rotate quota buckets with X-Forwarded-For
  ---
  duration_ms: 16.504421
  type: 'test'
  ...
# Subtest: tunnel trust does not let an unrelated private peer rotate quota buckets
ok 39 - tunnel trust does not let an unrelated private peer rotate quota buckets
  ---
  duration_ms: 19.141784
  type: 'test'
  ...
# Subtest: trusted TLS proxy preserves per-client quotas and secure session cookies
ok 40 - trusted TLS proxy preserves per-client quotas and secure session cookies
  ---
  duration_ms: 19.995203
  type: 'test'
  ...
# Subtest: resolves secure defaults and explicit positive-integer overrides
ok 41 - resolves secure defaults and explicit positive-integer overrides
  ---
  duration_ms: 0.6593
  type: 'test'
  ...
# Subtest: rejects invalid overrides instead of silently disabling protection
ok 42 - rejects invalid overrides instead of silently disabling protection
  ---
  duration_ms: 0.892295
  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: 48.743886
      type: 'test'
      ...
# [2026-08-29 21:40:31.136 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
    # Subtest: members can read only the sanitized catalog endpoints
    ok 2 - members can read only the sanitized catalog endpoints
      ---
      duration_ms: 53.99729
      type: 'test'
      ...
    # Subtest: administrators pass every management guard in the route matrix
    ok 3 - administrators pass every management guard in the route matrix
      ---
      duration_ms: 27.965813
      type: 'test'
      ...
    1..3
ok 43 - assembled instance permission routes
  ---
  duration_ms: 132.526735
  type: 'suite'
  ...
# [2026-08-29 21:40:31.264 +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 44 - /api/status omits disabled configured agents
  ---
  duration_ms: 2519.313175
  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'
# }
# [notifications] Failed to project system health snapshot: Error: notification persistence unavailable
#     at projectSystemSnapshot (/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:298:13)
#     at Object.getStatus (/home/runner/work/propr/propr/packages/api/routes/statusRoutes.ts:215:14)
#     at async readStatus (/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:179:3)
#     at async TestContext.<anonymous> (/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:295: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/compatibility returns public version contract metadata
ok 45 - /api/compatibility returns public version contract metadata
  ---
  duration_ms: 4.216042
  type: 'test'
  ...
# Subtest: /api/desktop/discovery returns the bounded public identity and runtime origin
ok 46 - /api/desktop/discovery returns the bounded public identity and runtime origin
  ---
  duration_ms: 2.880333
  type: 'test'
  ...
# Subtest: /api/desktop/discovery redacts identity persistence failures
ok 47 - /api/desktop/discovery redacts identity persistence failures
  ---
  duration_ms: 3.30157
  type: 'test'
  ...
# Subtest: /api/status returns default Claude fallback when no agents are configured
ok 48 - /api/status returns default Claude fallback when no agents are configured
  ---
  duration_ms: 2.978707
  type: 'test'
  ...
# Subtest: /api/status isolates system notification projection failures
ok 49 - /api/status isolates system notification projection failures
  ---
  duration_ms: 6.527407
  type: 'test'
  ...
# Subtest: /api/status surfaces unified agent image outages
ok 50 - /api/status surfaces unified agent image outages
  ---
  duration_ms: 1.456397
  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'
# }
# 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'
# }
# 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 includes warnings field in demo mode
ok 51 - /api/status includes warnings field in demo mode
  ---
  duration_ms: 3.818513
  type: 'test'
  ...
# Subtest: /api/status caches agent health checks briefly
ok 52 - /api/status caches agent health checks briefly
  ---
  duration_ms: 6.924789
  type: 'test'
  ...
# Subtest: /api/status reports resolved auth mode and event intake mode
ok 53 - /api/status reports resolved auth mode and event intake mode
  ---
  duration_ms: 1.847827
  type: 'test'
  ...
# Subtest: /api/status reports connected intake status when routing state is live
ok 54 - /api/status reports connected intake status when routing state is live
  ---
  duration_ms: 2.088867
  type: 'test'
  ...
# Subtest: /api/status reports disconnected intake status when routing state is down
ok 55 - /api/status reports disconnected intake status when routing state is down
  ---
  duration_ms: 2.678316
  type: 'test'
  ...
# Subtest: /api/status reports active intake status for polling when the daemon is running
ok 56 - /api/status reports active intake status for polling when the daemon is running
  ---
  duration_ms: 2.641347
  type: 'test'
  ...
# Subtest: /api/status reports disconnected intake status for polling when the daemon is stopped
ok 57 - /api/status reports disconnected intake status for polling when the daemon is stopped
  ---
  duration_ms: 2.175018
  type: 'test'
  ...
# Subtest: /api/status includes routing state published by the daemon
ok 58 - /api/status includes routing state published by the daemon
  ---
  duration_ms: 7.791195
  type: 'test'
  ...
# Subtest: /api/status exposes only validated UI-safe Connect account fields
ok 59 - /api/status exposes only validated UI-safe Connect account fields
  ---
  duration_ms: 2.313937
  type: 'test'
  ...
# Subtest: /api/status rejects impossible account dates and preserves valid leap-day instants
ok 60 - /api/status rejects impossible account dates and preserves valid leap-day instants
  ---
  duration_ms: 16.582737
  type: 'test'
  ...
# Subtest: /api/status drops malformed or disconnected Connect account state without assuming Community
ok 61 - /api/status drops malformed or disconnected Connect account state without assuming Community
  ---
  duration_ms: 4.510124
  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'
# }
# 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'
# }
# 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'
# }
# [2026-08-29 21:40:32.593 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# Subtest: /api/status does not expose Connect account state for a non-Connect intake mode
ok 62 - /api/status does not expose Connect account state for a non-Connect intake mode
  ---
  duration_ms: 5.257689
  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/inter

...(truncated)

View Workflow

@propr-dev

propr-dev Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit f8ad104

Summary of Changes

Fixed PR #1989’s build regression in runtimeConfig.ts.

The UI now trims redundant trailing slashes before strict proxy URL validation, while continuing to reject paths, queries, fragments, ports, and userinfo.

Validation passed:

  • Exact hosted-tunnel regression suite: 317/317
  • UI tests: 66/66
  • UI typecheck
  • UI lint
  • git diff --check

Only the requested file was modified; no commit was created.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @github-actions[bot]
  • Time: 3m 2s
  • Tokens: 722,621 (719,653 in / 2,968 out)
  • Cost: $0.81

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

@integry integry removed the AI label Aug 29, 2026
…p/git-processor/worktrees/integry/propr/pr-1989-followup-2026-08-29T21-41-13/propr-ui/src/config/runtimeConfig.ts:121).

Fixed PR #1989’s build regression in [runtimeConfig.ts](/tmp/git-processor/worktrees/integry/propr/pr-1989-followup-2026-08-29T21-41-13/propr-ui/src/config/runtimeConfig.ts:121).

The UI now trims redundant trailing slashes before strict proxy URL validation, while continuing to reject paths, queries, fragments, ports, and userinfo.

Validation passed:

- Exact hosted-tunnel regression suite: 317/317
- UI tests: 66/66
- UI typecheck
- UI lint
- `git diff --check`

Only the requested file was modified; no commit was created.

PR: #1989
Comment by: @github-actions[bot] (ID: 5465042091)
Model: gpt-5.6-sol
@integry integry added the AI label Aug 29, 2026
@integry

integry commented Aug 29, 2026

Copy link
Copy Markdown
Owner

/review

Review exact Connect discovery head f8ad104 as the CLI and API security gate before desktop consumption. Audit propr connect status --json --root end to end: explicit non-scanning root authority; terminal and ancestor symlink or replacement handling; ownership and private directory assumptions; exactly one bounded machine-readable stdout document; stable exit codes; no env values, connector token, relay token, GitHub token, credential path, private path, Docker output, or secret-bearing error on stdout or stderr. Verify trusted no-shell CLI invocation compatibility and bounded service-state, fetch, redirect, response-size, UTF-8, schema, timeout, and late-settlement behavior.

Audit the shared public installation identity for randomness, cross-restart CLI and API consistency, owner-write integrity, atomic concurrent creation, crash or partial-write recovery, stack-data replacement semantics, and zero dependency on installation IDs or credentials. Audit the unauthenticated API discovery route for strict bounded schema, rate limiting, no-store behavior, redacted failures, and exact canonical managed endpoint only. Verify origin plus identity plus compatibility pinning, endpoint mismatch restartRequired, stale or reassigned host rejection, permanent hostname retirement as an explicit Connect control-plane invariant, and strict ASCII HTTPS t-.propr.dev parsing with no IDNA lookalike, alternate spelling, userinfo, port, path, query, or fragment.

Preserve propr tunnel behavior and existing setup commands; check old stacks, disabled or stopped sidecars, API 404, non-JSON and oversized responses, Windows and Unix semantics, and the hosted UI trailing-slash compatibility fix. This PR exposes only the discovery contract; desktop execution and confirmation are later integration work. No code changes. Report exact-head blocker IDs and score.

@propr-dev

propr-dev Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@integry integry removed the AI label Aug 29, 2026
@propr-dev

propr-dev Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

This PR establishes the Connect discovery contract with strong canonical-origin, identity, and compatibility checks, but it needs significant changes before merge. The current checks are green, yet several security-boundary and durability cases remain incorrect.

✅ Canonical endpoint validation — The shared parser uses ASCII filtering, structured URL parsing, and raw canonical equality to reject IDNA lookalikes, userinfo, ports, paths, queries, fragments, trailing dots, and other spellings.

✅ Secret-minimized failure handling — CLI failures collapse to fixed reason codes and generic stderr, while the unauthenticated API route returns a redacted 503 response with no-store headers.

✅ Multi-factor readiness decision — A ready result requires compatible API metadata plus matching installation identity and canonical endpoint; an origin mismatch correctly requests an API restart.

Merge blockers

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

F1: 🔴 Root authority remains replaceable

  • Required behavior: The explicit root must remain the caller-authorized, non-symlink tree throughout configuration and identity discovery, including ancestor replacement and Unix/Windows ownership semantics.
  • Evidence: packages/cli/src/connectIdentity.ts:39 — Windows ownership validation is disabled, the root and its ancestors are not checked for non-owner write access, and lstatSync/realpathSync only take snapshots before returning a pathname that packages/cli/src/commands/connectCommand.ts:285 later reopens after an asynchronous operation.
  • Minimum fix: Require or establish a non-replaceable private root, reject writable or reparse-point ancestry using platform-appropriate ownership/ACL rules, and anchor or revalidate the same directory identity while reading .env, data, and the identity file. Fail closed on platforms where caller authority cannot be established.

F2: 🔴 Identity publication is not atomic

  • Required behavior: Concurrent CLI/API creation must expose one complete identity, survive crashes, and remain durable across restart.
  • Evidence: packages/cli/src/connectIdentity.ts:98 and packages/api/publicInstanceIdentity.ts:47 — openSync(filePath, "wx") publishes an empty final file before writing it; an EEXIST loser immediately reads that potentially partial file, while a crash leaves an unrecoverable invalid artifact. Only the file is fsynced, not its parent directory.
  • Minimum fix: Write and fsync a private temporary file, publish it atomically without overwriting a concurrent winner, fsync the parent directory, and safely retry or recover a partial first-creation artifact.

F3: 🔴 Identity integrity is not enforced

  • Required behavior: The public identity must retain owner-write integrity so another local principal cannot replace the value used for endpoint pinning.
  • Evidence: packages/api/publicInstanceIdentity.ts:13 — existing files are accepted without ownership or write-permission checks, and line 27 accepts or creates the containing directory without validating symlinks or non-owner write access. packages/cli/src/connectIdentity.ts:65 performs the same incomplete file check.
  • Minimum fix: Validate the data directory and identity file against an explicit cross-container ownership model, reject group/world-writable or replaceable storage, and create the directory with private permissions independent of process umask.

F4: 🔴 Remote schema validation is incomplete

  • Required behavior: Desktop readiness must accept only the complete, strictly bounded v1 discovery schema.
  • Evidence: packages/cli/src/commands/connectCommand.ts:129 — parseDesktopDiscovery never validates desktopAuthentication, accepts an empty uiCompatibility, allows arbitrary compatibility/version formats, and then casts the incomplete object to ProprDesktopDiscovery. Such a response can reach status: "ready".
  • Minimum fix: Validate every required nested capability and scalar field, including protocol version, booleans, non-empty bounded compatibility values, and their canonical formats, before returning a discovery object.

F5: 🔴 Rejected responses can stream indefinitely

  • Required behavior: Every remote probe must have bounded response consumption and late-settlement behavior.
  • Evidence: packages/cli/src/commands/connectCommand.ts:167 — 404, other non-success responses, invalid content types, and oversized declared bodies return without canceling or consuming response.body; a server can continue streaming after the command has produced its result.
  • Minimum fix: Cancel or abort the response body on every branch that does not consume it, while preserving the existing overall deadline and result classification.

F6: 🔴 Invalid UTF-8 gets the wrong exit class

  • Required behavior: Malformed discovery documents must produce stable incompatible/invalid semantics rather than being reported as network unreachability.
  • Evidence: packages/cli/src/commands/connectCommand.ts:126 — fatal UTF-8 decoding throws, and the catch at line 184 converts that parse failure to kind: "unreachable", yielding exit 2 instead of DISCOVERY_INVALID and exit 3.
  • Minimum fix: Catch decoding failures as invalid discovery while reserving unreachable for transport failures and timeout for deadline expiry.

F7: 🔴 Tunnel setup lost slash compatibility

  • Required behavior: Existing propr tunnel setup behavior must remain compatible while strict parsing is applied to the new Connect trust boundary.
  • Evidence: packages/cli/src/commands/tunnelCommand.ts:421 — the previous removal of redundant trailing slashes was deleted, after which canonicalProprProxyUrl rejects URLs ending in // or more.
  • Minimum fix: Preserve setup’s established trailing-slash normalization before invoking the strict canonical parser, as the hosted-UI compatibility path already does.

Suggestions

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

S1: 🟢 Add a spawned CLI contract test

Run the packaged command through a no-shell argv invocation with sentinel environment values, Docker failures, malformed roots, and captured stdout/stderr. Current tests exercise the state machine directly, so this optional defense would detect future framework or orchestration output contamination.

S2: 🟢 Refresh desktop pairing documentation

docs/docs/operations/desktop-pairing.md still shows the former discovery payload without schema version, canonical endpoint, or public identity. Updating it would keep downstream desktop implementers aligned with the new contract, though it does not change runtime correctness.

Score

The architecture is promising and all current checks pass, but the unresolved root-authority, identity durability/integrity, probe-bounding, schema, and compatibility regressions prevent using this head as the desktop security gate.

Score: 4/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 8m 20s
  • Tokens: 76,762 (63,386 in / 13,376 out)
  • Cost: $0.46

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 added the AI label Aug 29, 2026
@integry

integry commented Aug 29, 2026

Copy link
Copy Markdown
Owner

/fix F1 F2 F3 F4 F5 F6 F7

Fix all seven exact-head blockers together on f8ad104. Preserve the strict canonical managed-origin design and all green behavior.

F1 root authority: resolve config manager and load code before acquiring root authority, then keep every root-dependent read and identity operation inside one anchored, synchronous, identity-checked snapshot with no await gap. Validate terminal root and relevant ancestry against symlinks or reparse points, replacement, non-owner modification, and unsafe ACL or mode using platform-appropriate file identity and permissions; validate before and after and fail closed where authority cannot be proven. Do not return a reusable trusted pathname and do not scan for roots. Deterministically replace or rename the root between acquisition and env, data, and identity access on Unix and Windows simulations; no replacement bytes are read and status is INVALID_ROOT.

F2 and F3 identity: centralize CLI and API creation rules. Require a real private non-symlink data directory, created 0700 independent of umask, and a bounded regular single-link identity file with no group or world write. Define the cross-container owner model explicitly: the directory owner is the host caller; an identity file may be owned only by that directory owner or the root API container account, and must be readable but not writable by unrelated principals. Reject replaceable directories, symlinks, hardlinks, special files, unsafe modes, or unexpected owners. Write an exclusive same-directory temporary, fsync full bytes, publish atomically without overwriting a concurrent winner, fsync the parent, clean temp, and read the winner. No empty final file may ever be visible. Handle concurrent winners and safely recover a recognized interrupted first-creation artifact without replacing a valid identity. Test concurrent CLI and API creators, interruption after each boundary, restart durability, umask independence, malicious permissions, root-owned container file plus host read, and data replacement yielding a fresh identity.

F4: strictly parse the entire exact v1 response before casting. Validate schemaVersion and product; bounded canonical version and non-empty API and UI compatibility formats; exact public UUID; canonical endpoint; and every required desktopAuthentication key, protocolVersion, and boolean with no capability omission or type coercion. Prefer one shared parser used by producer tests and consumer. Invalid or incomplete documents are incompatible DISCOVERY_INVALID, never ready.

F5 and F6: cancel or abort response bodies on every early branch including 404, other non-success, wrong content type, oversized declared length, parse error, invalid schema, and timeout. Ensure no late stream remains after return. Classify fatal UTF-8 and JSON or schema failures as invalid exit 3, transport failures as unreachable exit 2, and hard deadline as timeout exit 5. Add never-ending body and late-settlement regressions for each rejected branch.

F7: restore existing propr tunnel setup compatibility by normalizing redundant trailing slashes before its strict parser, without weakening canonical parsing at the discovery trust boundary. Keep userinfo, ports, paths, query, fragment, encoded authority, IDNA, and trailing dots rejected.

Required integration proof beyond the review: spawn the actually built CLI through a no-shell argv call for propr connect status --json --root with sentinel env values, Docker output and failures, malformed and replaced roots, all exit classes, and captured stdout plus stderr. Ready and every failure must emit exactly one bounded parseable JSON document on stdout; stderr is fixed and bounded and contains no env value, connector token, relay token, GitHub token, credential path, private root path, Docker text, raw URL, or sentinel. Update desktop-pairing docs to the v1 schema, endpoint, identity, and capability contract. Run CLI/API/shared/tunnel/launcher/hosted-UI tests, spawned packaged CLI tests on Unix and Windows semantics, typechecks, full suite, package guard, and git diff --check. Do not implement desktop consumption in this PR and do not merge to main.

@propr-dev

propr-dev Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit c54a68f

Addressed 1 AI review comment (IDs: 5465149448)

Summary of Changes

Implemented all selected blockers F1–F7.

Key results:

  • Root access now uses one synchronous, descriptor-anchored, identity-checked snapshot; replacements and unsafe ancestry fail with INVALID_ROOT. Windows semantics fail closed when authority cannot be proven.
  • CLI/API identity creation is centralized, permission-checked, atomic, durable, concurrency-safe, and interruption-recoverable.
  • Discovery v1 parsing is strict and shared between producer and consumer.
  • Every rejected/timeout response body is cancelled; invalid, unreachable, and timeout exit classes are separated correctly.
  • Tunnel setup again normalizes redundant trailing slashes before strict validation.
  • Added packaged CLI, replacement, concurrency, interruption, body-stream, schema, and Unix/Windows-semantics regressions.
  • Updated desktop-pairing documentation.
  • No commit or PR operations performed.

Verification:

  • Focused CLI/API/shared/tunnel/launcher/hosted-UI tests: passed.
  • Packaged CLI integration tests: passed.
  • Typechecks and lint: passed.
  • CLI package guard (npm run cli:pack): passed.
  • git diff --check: passed.
  • Full suite: 322/323 runners passed; all 69 UI files and 496 UI tests passed. The sole exception was the pre-existing Redis-backed llmMetrics.test.ts, which timed out because Redis and a Docker daemon are unavailable in the agent image.

🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 45m 47s
  • Tokens: 18,954,456 (18,882,384 in / 72,072 out)
  • Cost: $13.22
  • Subscription usage: Weekly +4%

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

@integry integry removed the AI label Aug 29, 2026
@integry

integry commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Independent exact-head additions for the active discovery fix on f8ad104:

A. Explicit-root CLI isolation is currently broken. packages/cli/src/index.ts calls dotenv config before parsing; ambient/CWD env wins over explicit-root .env, and interpolation warnings can expose secret/path fragments on stderr. A spawned actual built propr connect status --json --root <explicit> must ignore caller CWD dotenv and inherited ProPR config except an intentional minimal process allowlist; stderr remains fixed/bounded/redacted on every failure.

B. Docker execution failure is captured but its status/error is ignored, so missing Docker, daemon failure, timeout, or spawn error becomes SIDECAR_NOT_RUNNING exit 2. Classify tool/internal failures as bounded internalFailure exit 1; reserve exit 2 for a successful bounded inspection proving a legitimate not-ready state.

C. Global /api limiter runs before the no-store middleware; its 429 response therefore lacks the cache prohibition. Ensure every discovery API outcome, including global and route-limiter 429, carries Cache-Control: no-store and Pragma: no-cache.

D. Scheme-less fallback reconstructs only hostname, accepting forbidden spellings such as [email protected] and t-abc.propr.dev:8443. Validate the raw selector before reconstruction: exact canonical host label only, no userinfo/port/path/query/fragment/encoded alternate. Also normalize mixed-case DNS-label instance IDs before testing/removing the t- prefix so T-Abc cannot become t-t-abc.

Add actual spawned CLI and middleware regressions for all four; preserve F1-F7 and fail-closed identity behavior.

Implemented all selected blockers F1–F7.

Key results:

- Root access now uses one synchronous, descriptor-anchored, identity-checked snapshot; replacements and unsafe ancestry fail with `INVALID_ROOT`. Windows semantics fail closed when authority cannot be proven.
- CLI/API identity creation is centralized, permission-checked, atomic, durable, concurrency-safe, and interruption-recoverable.
- Discovery v1 parsing is strict and shared between producer and consumer.
- Every rejected/timeout response body is cancelled; invalid, unreachable, and timeout exit classes are separated correctly.
- Tunnel setup again normalizes redundant trailing slashes before strict validation.
- Added packaged CLI, replacement, concurrency, interruption, body-stream, schema, and Unix/Windows-semantics regressions.
- Updated desktop-pairing documentation.
- No commit or PR operations performed.

Verification:

- Focused CLI/API/shared/tunnel/launcher/hosted-UI tests: passed.
- Packaged CLI integration tests: passed.
- Typechecks and lint: passed.
- CLI package guard (`npm run cli:pack`): passed.
- `git diff --check`: passed.
- Full suite: 322/323 runners passed; all 69 UI files and 496 UI tests passed. The sole exception was the pre-existing Redis-backed `llmMetrics.test.ts`, which timed out because Redis and a Docker daemon are unavailable in the agent image.

PR: #1989
Comment by: @integry (ID: 5465164512)
Model: gpt-5.6-sol
@github-actions

Copy link
Copy Markdown

Checks Failed

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

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

--- GitHub Actions workflow lint ---
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667: Pulling from rhysd/actionlint
589002ba0eae: Pulling fs layer
c09af8888d6a: Pulling fs layer
4ccd7d76ca98: Pulling fs layer
b6b4b7b0e257: Pulling fs layer
b6b4b7b0e257: Waiting
c09af8888d6a: Verifying Checksum
c09af8888d6a: Download complete
4ccd7d76ca98: Verifying Checksum
4ccd7d76ca98: Download complete
589002ba0eae: Verifying Checksum
589002ba0eae: Download complete
589002ba0eae: Pull complete
b6b4b7b0e257: Verifying Checksum
b6b4b7b0e257: Download 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]: 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]
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]: Rimraf versions prior to v4 are no longer supported

added 1136 packages, and audited 1145 packages in 23s

326 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] 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/daemonEventIntake.test.ts test/databaseMigrationGate.test.ts 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/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: 5.759082
      type: 'test'
      ...
    # Subtest: persists a failed state when queue submission fails
    ok 2 - persists a failed state when queue submission fails
      ---
      duration_ms: 1.302722
      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: 1.149186
      type: 'test'
      ...
    # Subtest: times out slow runtime package validation before queueing
    ok 4 - times out slow runtime package validation before queueing
      ---
      duration_ms: 13.474833
      type: 'test'
      ...
    # Subtest: returns package suggestions from configured runtimes
    ok 5 - returns package suggestions from configured runtimes
      ---
      duration_ms: 0.946507
      type: 'test'
      ...
    # Subtest: enforces PROPR_ADMIN_USERS when configured
    ok 6 - enforces PROPR_ADMIN_USERS when configured
      ---
      duration_ms: 0.521343
      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.42341
      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.483432
      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.653681
      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: 5.445517
      type: 'test'
      ...
    # Subtest: resolves the runtime build queue lazily when queueing
    ok 11 - resolves the runtime build queue lazily when queueing
      ---
      duration_ms: 0.862891
      type: 'test'
      ...
    # Subtest: reports apply load failures through the route response
    ok 12 - reports apply load failures through the route response
      ---
      duration_ms: 0.509391
      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.574793
      type: 'test'
      ...
    # Subtest: rejects runtime verification without runtime-management permission
    ok 14 - rejects runtime verification without runtime-management permission
      ---
      duration_ms: 1.845857
      type: 'test'
      ...
    1..14
ok 1 - agent runtime package routes
  ---
  duration_ms: 36.310659
  type: 'suite'
  ...
# [2026-08-29 22:55:54.471 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-29 22:55:54.504 +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: 30.986075
  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: 9.634828
  type: 'test'
  ...
# Subtest: temporary cleanup refuses paths outside its configured root
ok 4 - temporary cleanup refuses paths outside its configured root
  ---
  duration_ms: 0.922482
  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.782832
  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: 2.916205
  type: 'test'
  ...
# [2026-08-29 22:55:53.995 +0000] �[32mINFO�[39m: �[36mCreated data directory for SQLite database�[39m
#     directory: "/home/runner/work/propr/propr/data"
# [2026-08-29 22:55:54.493 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-29 22:55:54.531 +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: 8.807404
  type: 'test'
  ...
# Subtest: API config subscription reloads repository updates
ok 8 - API config subscription reloads repository updates
  ---
  duration_ms: 0.663038
  type: 'test'
  ...
# Subtest: API config subscription ignores unrelated and malformed events
ok 9 - API config subscription ignores unrelated and malformed events
  ---
  duration_ms: 0.470588
  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: 5.849822
  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: 8.35011
  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.359722
  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.420244
  type: 'test'
  ...
# Subtest: off-tunnel relay inference rejects callbacks outside the exact loopback allowlist
ok 14 - off-tunnel relay inference rejects callbacks outside the exact loopback allowlist
  ---
  duration_ms: 0.474716
  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: 10.316481
  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.310249
  type: 'test'
  ...
# Subtest: explicit custom GitHub web auth remains supported
ok 17 - explicit custom GitHub web auth remains supported
  ---
  duration_ms: 0.332762
  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.308917
  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: 3.82924
  type: 'test'
  ...
# Subtest: redeems a Connect code server-to-server without exposing the relay token in the body
ok 20 - redeems a Connect code server-to-server without exposing the relay token in the body
  ---
  duration_ms: 142.267252
  type: 'test'
  ...
# Subtest: binds the Connect identity username to the validated token owner
ok 21 - binds the Connect identity username to the validated token owner
  ---
  duration_ms: 7.305881
  type: 'test'
  ...
# Subtest: accepts Docker IDs and ProPR-generated container names
ok 22 - accepts Docker IDs and ProPR-generated container names
  ---
  duration_ms: 1.329052
  type: 'test'
  ...
# Subtest: rejects container references that could be parsed as options or shell syntax
ok 23 - rejects container references that could be parsed as options or shell syntax
  ---
  duration_ms: 0.253874
  type: 'test'
  ...
# Subtest: production subprocess call sites do not invoke a command shell
ok 24 - production subprocess call sites do not invoke a command shell
  ---
  duration_ms: 153.021859
  type: 'test'
  ...
# Subtest: no-shell guard rejects aliases and enabled shell options
ok 25 - no-shell guard rejects aliases and enabled shell options
  ---
  duration_ms: 2.338747
  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: 17.387318
      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.327834
      type: 'test'
      ...
    # Subtest: grants full admin permissions to PROPR_ADMIN_USERS
    ok 3 - grants full admin permissions to PROPR_ADMIN_USERS
      ---
      duration_ms: 5.893806
      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: 12.225188
      type: 'test'
      ...
    # Subtest: resolves demo users without installation permissions
    ok 5 - resolves demo users without installation permissions
      ---
      duration_ms: 6.907007
      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: 9.728957
      type: 'test'
      ...
    # Subtest: current-user responses expose capabilities without OAuth credentials
    ok 7 - current-user responses expose capabilities without OAuth credentials
      ---
      duration_ms: 8.625507
      type: 'test'
      ...
    1..7
ok 26 - instance authorization
  ---
  duration_ms: 70.083016
  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: 4.768625
      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: 20.320955
      type: 'test'
      ...
    # Subtest: adds explicit members and writes an audit entry
    ok 3 - adds explicit members and writes an audit entry
      ---
      duration_ms: 39.04016
      type: 'test'
      ...
    # Subtest: keeps environment authority separate from durable role assignments
    ok 4 - keeps environment authority separate from durable role assignments
      ---
      duration_ms: 9.17374
      type: 'test'
      ...
    # Subtest: prevents removing the last durable administrator
    ok 5 - prevents removing the last durable administrator
      ---
      duration_ms: 17.312989
      type: 'test'
      ...
    # Subtest: allows role changes once another administrator exists
    ok 6 - allows role changes once another administrator exists
      ---
      duration_ms: 20.004494
      type: 'test'
      ...
    1..6
ok 27 - instance member service
  ---
  duration_ms: 119.40126
  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: 7.166061
      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: 9.707006
      type: 'test'
      ...
    1..2
ok 28 - instance catalog
  ---
  duration_ms: 17.042273
  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: 3.784206
      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.99731
      type: 'test'
      ...
    # Subtest: rejects GitHub usernames with trailing or consecutive hyphens
    ok 3 - rejects GitHub usernames with trailing or consecutive hyphens
      ---
      duration_ms: 3.619278
      type: 'test'
      ...
    1..3
ok 29 - instance admin routes
  ---
  duration_ms: 9.599095
  type: 'suite'
  ...
# [2026-08-29 22:55:57.099 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-29 22:55:57.306 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# Subtest: direct API execution binds to loopback by default
ok 30 - direct API execution binds to loopback by default
  ---
  duration_ms: 1.183821
  type: 'test'
  ...
# Subtest: containerized API execution remains reachable through its published port
ok 31 - containerized API execution remains reachable through its published port
  ---
  duration_ms: 0.151263
  type: 'test'
  ...
# Subtest: an explicit API listen host overrides environment defaults
ok 32 - an explicit API listen host overrides environment defaults
  ---
  duration_ms: 0.140722
  type: 'test'
  ...
# Subtest: GitHub OAuth authorization stores and sends a random state nonce
ok 33 - GitHub OAuth authorization stores and sends a random state nonce
  ---
  duration_ms: 4.117168
  type: 'test'
  ...
# Subtest: GitHub OAuth callback rejects a mismatched state before token exchange
ok 34 - GitHub OAuth callback rejects a mismatched state before token exchange
  ---
  duration_ms: 1.956593
  type: 'test'
  ...
# [2026-08-29 22:55:59.489 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-29 22:55:59.490 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# Subtest: returns a standard 429 response after the configured quota
ok 35 - returns a standard 429 response after the configured quota
  ---
  duration_ms: 131.34111
  type: 'test'
  ...
# Subtest: does not charge CORS preflight requests against the quota
ok 36 - does not charge CORS preflight requests against the quota
  ---
  duration_ms: 14.011494
  type: 'test'
  ...
# Subtest: route-level webhook limiting preserves alternate-case raw bodies and rejects excess requests before parsing
ok 37 - route-level webhook limiting preserves alternate-case raw bodies and rejects excess requests before parsing
  ---
  duration_ms: 20.188037
  type: 'test'
  ...
# Subtest: does not let an unconfigured private peer rotate quota buckets with X-Forwarded-For
ok 38 - does not let an unconfigured private peer rotate quota buckets with X-Forwarded-For
  ---
  duration_ms: 14.95731
  type: 'test'
  ...
# Subtest: tunnel trust does not let an unrelated private peer rotate quota buckets
ok 39 - tunnel trust does not let an unrelated private peer rotate quota buckets
  ---
  duration_ms: 14.008027
  type: 'test'
  ...
# Subtest: trusted TLS proxy preserves per-client quotas and secure session cookies
ok 40 - trusted TLS proxy preserves per-client quotas and secure session cookies
  ---
  duration_ms: 38.309871
  type: 'test'
  ...
# Subtest: resolves secure defaults and explicit positive-integer overrides
ok 41 - resolves secure defaults and explicit positive-integer overrides
  ---
  duration_ms: 0.661195
  type: 'test'
  ...
# Subtest: rejects invalid overrides instead of silently disabling protection
ok 42 - rejects invalid overrides instead of silently disabling protection
  ---
  duration_ms: 0.748748
  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: 33.945016
      type: 'test'
      ...
# [2026-08-29 22:55:59.941 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
    # Subtest: members can read only the sanitized catalog endpoints
    ok 2 - members can read only the sanitized catalog endpoints
      ---
      duration_ms: 50.156686
      type: 'test'
      ...
    # Subtest: administrators pass every management guard in the route matrix
    ok 3 - administrators pass every management guard in the route matrix
      ---
      duration_ms: 25.172495
      type: 'test'
      ...
    1..3
ok 43 - assembled instance permission routes
  ---
  duration_ms: 110.878964
  type: 'suite'
  ...
# [2026-08-29 22:56:00.049 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# Subtest: /api/status omits disabled configured agents
not ok 44 - /api/status omits disabled configured agents
  ---
  duration_ms: 270.087913
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:3787'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/compatibility returns public version contract metadata
not ok 45 - /api/compatibility returns public version contract metadata
  ---
  duration_ms: 341.147963
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:4197'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/desktop/discovery returns the bounded public identity and runtime origin
not ok 46 - /api/desktop/discovery returns the bounded public identity and runtime origin
  ---
  duration_ms: 266.36656
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:4728'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/desktop/discovery redacts identity persistence failures
not ok 47 - /api/desktop/discovery redacts identity persistence failures
  ---
  duration_ms: 99.281391
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:5743'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status returns default Claude fallback when no agents are configured
not ok 48 - /api/status returns default Claude fallback when no agents are configured
  ---
  duration_ms: 76.32775
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:6353'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status isolates system notification projection failures
not ok 49 - /api/status isolates system notification projection failures
  ---
  duration_ms: 64.73043
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:6588'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status surfaces unified agent image outages
not ok 50 - /api/status surfaces unified agent image outages
  ---
  duration_ms: 87.51124
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:6978'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status includes warnings field in demo mode
not ok 51 - /api/status includes warnings field in demo mode
  ---
  duration_ms: 83.682822
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:7801'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status caches agent health checks briefly
not ok 52 - /api/status caches agent health checks briefly
  ---
  duration_ms: 102.23234
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:8291'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status reports resolved auth mode and event intake mode
not ok 53 - /api/status reports resolved auth mode and event intake mode
  ---
  duration_ms: 96.350347
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:9074'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status reports connected intake status when routing state is live
not ok 54 - /api/status reports connected intake status when routing state is live
  ---
  duration_ms: 64.564893
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:9340'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status reports disconnected intake status when routing state is down
not ok 55 - /api/status reports disconnected intake status when routing state is down
  ---
  duration_ms: 62.136007
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:9913'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status reports active intake status for polling when the daemon is running
not ok 56 - /api/status reports active intake status for polling when the daemon is running
  ---
  duration_ms: 17.84929
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:10413'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status reports disconnected intake status for polling when the daemon is stopped
not ok 57 - /api/status reports disconnected intake status for polling when the daemon is stopped
  ---
  duration_ms: 18.132108
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:10696'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status includes routing state published by the daemon
not ok 58 - /api/status includes routing state published by the daemon
  ---
  duration_ms: 4.221473
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:11173'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status exposes only validated UI-safe Connect account fields
not ok 59 - /api/status exposes only validated UI-safe Connect account fields
  ---
  duration_ms: 1.634613
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:11666'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status rejects impossible account dates and preserves valid leap-day instants
not ok 60 - /api/status rejects impossible account dates and preserves valid leap-day instants
  ---
  duration_ms: 2.193025
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:12753'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status drops malformed or disconnected Connect account state without assuming Community
not ok 61 - /api/status drops malformed or disconnected Connect account state without assuming Community
  ---
  duration_ms: 1.484782
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:13837'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status does not expose Connect account state for a non-Connect intake mode
not ok 62 - /api/status does not expose Connect account state for a non-Connect intake mode
  ---
  duration_ms: 1.412357
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:14766'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status reports connected githubAuth for relay-auth deployments
not ok 63 - /api/status reports connected githubAuth for relay-auth deployments
  ---
  duration_ms: 1.213907
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:15553'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status reports unknown auth mode and disconnected health when the resolver is bypassed
not ok 64 - /api/status reports unknown auth mode and disconnected health when the resolver is bypassed
  ---
  duration_ms: 1.070359
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:15864'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status omits malformed routing state
not ok 65 - /api/status omits malformed routing state
  ---
  duration_ms: 1.074627
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:16091'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status omits routing state with a malformed lastAckAt timestamp
not ok 66 - /api/status omits routing state with a malformed lastAckAt timestamp
  ---
  duration_ms: 1.084284
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:16450'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status omits routing state when none is published
not ok 67 - /api/status omits routing state when none is published
  ---
  duration_ms: 1.097119
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:16905'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status reports demo auth mode in demo mode
not ok 68 - /api/status reports demo auth mode in demo mode
  ---
  duration_ms: 16.346864
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:17234'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status maps indexing queue states
not ok 69 - /api/status maps indexing queue states
  ---
  duration_ms: 1.103511
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:17845'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# Subtest: /api/status caps summarization cooldown warnings
not ok 70 - /api/status caps summarization cooldown warnings
  ---
  duration_ms: 1.229466
  type: 'test'
  location: '/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:1:18356'
  failureType: 'testCodeFailure'
  error: "Cannot find package '/home/runner/work/propr/propr/node_modules/@propr/local-setup/dist/index.js' imported from /home/runner/work/propr/propr/packages/api/publicInstanceIdentity.ts"
  code: 'ERR_MODULE_NOT_FOUND'
  stack: |-
    legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    packageResolve (node:internal/modules/esm/resolve:778:12)
    moduleResolve (node:internal/modules/esm/resolve:855:18)
    defaultResolve (node:internal/modules/esm/resolve:985:11)
    nextResolve (node:internal/modules/esm/hooks:748:28)
    resolveBase (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:3744)
    resolveDirectory (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4243)
    resolveTsPaths (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:4984)
    async resolve (file:///home/runner/work/propr/propr/node_modules/tsx/dist/esm/index.mjs?1788044158189:2:5355)
    async nextResolve (node:internal/modules/esm/hooks:748:22)
  ...
# [2026-08-29 22:56:01.093 +0000] �[31mERROR�[39m: �[36mSQLite database connection test failed�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     error: "aborted"
# [2026-08-29 22:56:01.094 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# [2026-08-29 22:56:01.094 +0000] �[32mINFO�[39m: �[36mShutting down queue...�[39m
# [2026-08-29 22:56:01.094 +0000] �[32mINFO�[39m: �[36mQueue was never initialized, nothing to shutdown�[39m
# Subtest: agent container resource policy
    # Subtest: caps the automatic CPU default at detected host capacity
    ok 1 - caps the automatic CPU default at detected host capacity
      ---
      duration_ms: 2.133364
      type: 'test'
      ...
    # Subtest: uses a conservative CPU fallback when detection is invalid
    ok 2 - uses a conservative CPU fallback when detection is invalid
      ---
      duration_ms: 0.332752
      type: 'test'
      ...
    # Subtest: accepts explicit operator overrides
    ok 3 - accepts explicit operator overrides
      ---
      duration_ms: 0.426396
      type: 'test'
      ...
    # Subtest: enforces Docker's minimum memory limit
    ok 4 - enforces Docker's minimum memory limit
      ---
      duration_ms: 0.737016
      type: 'test'
      ...
    # Subtest: enforces Docker's minimum effective CPU quota
    ok 5 - enforces Docker's minimum effective CPU quota
      ---
      duration_ms: 0.393485
      type

...(truncated)

View Workflow

@integry integry added the AI label Aug 29, 2026
@integry

integry commented Aug 29, 2026

Copy link
Copy Markdown
Owner

!propr Fix only the remaining independent exact-head blockers on c54a68f while preserving F1-F7. Do not merge or sync the base.

A. Make explicit-root discovery hermetic. Skipping dotenv for one argv position is insufficient: prepareConnectHostConfig.resolveSnapshot still passes process.env, and resolveConfig gives inherited ProPR values precedence over the authorized explicit-root bytes. For connect status --json --root, derive all ProPR stack/tunnel/port/path/config values solely from the one descriptor-anchored root snapshot. Pass only a documented minimal non-ProPR process allowlist needed to execute, with no CWD .env and no inherited PROPR/HOST/API/UI/PORT/DATA/LOG/REPO overrides. Parse argv robustly for --root value and --root=value independent of option order. Keep stderr fixed/bounded/redacted; interpolation warnings cannot expose raw values. Spawn the actual built no-shell CLI from hostile CWD/env and prove explicit-root output wins.

B. Preserve Docker execution result, not a boolean. Missing binary, spawn error, daemon failure, timeout, signal, malformed/truncated inspection or nonzero status is internalFailure, exact exit 1. Exit 2 notReady is allowed only after a successful bounded Docker inspection proves the legitimate sidecar absent/stopped or the endpoint/API not ready. Change the existing spawned dockerFailure regression from exit 2 to exact exit 1; cover ENOENT, daemon nonzero, timeout and malformed output with one JSON stdout document and bounded redacted stderr.

C. Put discovery cache prohibition ahead of every limiter/response path or attach it at the earliest /api boundary. Global and route-specific 429, success, 503 and error responses must all include Cache-Control: no-store, max-age=0 and Pragma: no-cache. Add a real global-limiter saturation test.

D. Strictly validate raw scheme-less Connect selectors before URL reconstruction. Accept only one canonical t-<dns-label>.propr.dev spelling (case normalization only if the documented contract permits it); reject userinfo, any port, slash/path, query, fragment, whitespace, percent-encoding, extra/trailing dot, Unicode/confusable and alternate serialization. Do not recover by reading only URL.hostname. Apply the same rule in shared pairing so reserved noncanonical hosts cannot downgrade to generic remote. Normalize case before testing/removing an existing t- instance prefix in both shared and launcher mirrors so T-Abc cannot become t-t-abc. Add parity tests.

Run spawned packaged CLI tests, discovery/API rate-limit tests, shared/hosted pairing and tunnel tests, CLI/API/shared/UI typechecks, CLI pack, configured full suite and git diff --check. No unrelated changes.

@propr-dev

propr-dev Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit c551b65

Summary of Changes

Implemented the remaining A–D blockers on the exact existing head without merging, syncing, or committing.

Key fixes:

  • Hermetic explicit-root discovery with robust --root parsing and a minimal non-ProPR environment allowlist.
  • Docker execution failures now produce internalFailure/exit 1; exit 2 is reserved for proven not-ready states.
  • No-store headers apply at the earliest /api boundary, including limiter and error responses.
  • Strict raw Connect selector validation and consistent case normalization across shared, API, UI, CLI, and launcher paths.
  • Added packaged hostile-CWD/env CLI tests, Docker failure regressions, real global limiter saturation, and selector parity tests.

Validation passed:

  • CLI/API/shared/UI typechecks
  • CLI/API/UI lint
  • Focused CLI, API, pairing, tunnel, rate-limit, and UI tests
  • CLI packaging
  • git diff --check

The configured full suite passed 322/323 runs. The sole failure was the unrelated Redis-dependent test/llmMetrics.test.ts, which timed out while Redis at 127.0.0.1:6379 was unavailable.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 29m 59s
  • Tokens: 19,694,937 (19,657,090 in / 37,847 out)
  • Cost: $12.48
  • Subscription usage: Weekly +2%

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

@integry integry removed the AI label Aug 29, 2026
@integry

integry commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Additional independent exact-head blockers to preserve through the active/following c54a68f fix cycle:

E. F1 is incomplete cross-platform. withOwnedConnectRootSnapshot supports Linux/Darwin and unconditionally returns INVALID_ROOT on Windows; the “Windows” tests only fake process.platform and assert rejection. Desktop Connect discovery must work on Windows with a platform-appropriate non-reparse, owner/ACL-validated root/file authority or a secure OS-native broker; it cannot be permanently disabled. On macOS, uid/mode alone does not prove authority when ACL entries grant other principals. Add real/faithful Windows reparse + ACL semantics and macOS ACL-grant rejection tests, fail closed only when authority truly cannot be proven.

F. Identity no-replace publication uses linkSync(temp, final) then unlinkSync(temp). A crash/SIGKILL between syscalls leaves the final inode with nlink=2; validation reports busy and recovery never repairs it, so all retries permanently fail. Add an injectable boundary between link and unlink, simulate process death, and deterministically recover the one valid inode without accepting attacker hardlinks or replacing a concurrent winner. Also prevent an allowed file from growing after bounded stat: read exactly a capped byte count from the already-open descriptor and reject any extra byte.

G. Close the response-body abort-listener race. After the pre-read signal check and before/during readBoundedBody listener registration, an abort can occur and remain unobserved. Register first and synchronously recheck signal.aborted, always cancel the body, and cover abort at that exact boundary.

H. Reject redundant origin spellings at the discovery boundary. The launcher currently removes exactly one trailing slash, so https://t-a.propr.dev// becomes accepted /. Normalize only the documented tunnel setup compatibility path; strict status/discovery consumers must reject multiple slashes/path spellings rather than laundering them into a canonical origin.

F3/F4/F6/F7 otherwise look materially fixed. Do not weaken the exact schema/UTF-8/identity mismatch guarantees.

@integry

integry commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Exact c54a68f CI integration blocker: Validate Changes fails fast-unit setup because packages/cli/src/connectIdentity.ts imports @propr/local-setup, which resolves to node_modules/@propr/local-setup/dist/index.js, but that workspace is not built before npm run test:unit. The run reports ERR_MODULE_NOT_FOUND across 28 transitive test files (247 pass / 28 fail). Fix the root test/build dependency order or source/workspace resolution so clean-checkout unit tests never rely on a pre-existing packages/local-setup/dist; retain Docker/container build ordering and package guard coverage.

@integry integry removed the ultrafix label Aug 29, 2026
…g head without merging, syncing, or committing.

Implemented the remaining A–D blockers on the exact existing head without merging, syncing, or committing.

Key fixes:

- Hermetic explicit-root discovery with robust `--root` parsing and a minimal non-ProPR environment allowlist.
- Docker execution failures now produce `internalFailure`/exit 1; exit 2 is reserved for proven not-ready states.
- No-store headers apply at the earliest `/api` boundary, including limiter and error responses.
- Strict raw Connect selector validation and consistent case normalization across shared, API, UI, CLI, and launcher paths.
- Added packaged hostile-CWD/env CLI tests, Docker failure regressions, real global limiter saturation, and selector parity tests.

Validation passed:

- CLI/API/shared/UI typechecks
- CLI/API/UI lint
- Focused CLI, API, pairing, tunnel, rate-limit, and UI tests
- CLI packaging
- `git diff --check`

The configured full suite passed 322/323 runs. The sole failure was the unrelated Redis-dependent `test/llmMetrics.test.ts`, which timed out while Redis at `127.0.0.1:6379` was unavailable.

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

propr-dev Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

This PR adds a thoughtfully bounded, secret-free Connect discovery contract with durable installation identity, strict probing, and cross-platform root-authority checks. However, two changed paths can still report or accept incorrect authority, so it needs minor but mandatory changes before merge. The supplied diff is partial, and all current substantive checks remain pending.

✅ Bounded discovery output — Remote bodies are capped, redirects are disabled, active and late responses are cancelled, and failures collapse to fixed reason codes without exposing transport errors.

✅ Strong local isolation — Connect status avoids ambient dotenv loading, validates an explicit root, scopes Docker inspection by the exact stack label, and bounds subprocess output and time.

✅ Cache-safe API discovery — The unauthenticated discovery endpoint publishes only fixed compatibility, origin, and identity fields behind an early /api no-store boundary.

Merge blockers

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

F21: 🔴 Noncanonical managed origins escape UI validation

  • Required behavior: Managed t-<id>.propr.dev origins must use the exact canonical HTTPS, lowercase, port-free, path-free spelling before the hosted UI treats them as API authority.
  • Evidence: propr-ui/src/config/runtimeConfig.ts:450 — the final guard rejects raw aliases only when isProprProxyUrl(normalized) is true. Inputs such as https://t-abc123.propr.dev:444 or http://t-abc123.propr.dev remain noncanonical after generic normalization, making that condition false and allowing return normalized.
  • Minimum fix: Detect whether the selected raw URL claims the managed tunnel namespace before generic normalization; if it does, accept only an exact canonicalProprProxyUrl value and otherwise ignore or reject it. Add cases for HTTP, non-default ports, credentials, paths, and extra-label managed lookalikes.

F22: 🔴 Connect ignores persisted tunnel overrides

  • Required behavior: Connect status must report readiness from the same effective per-root tunnel configuration used by the existing tunnel and stack commands.
  • Evidence: packages/cli/src/commands/connectCommand.ts:349 — getLocalConnectStatus resolves only the authorized .env snapshot and trusts its cfg.uiTunnelEnabled; it never applies the CLI-managed root override exposed by ConfigManager.getTunnelEnabled at packages/cli/src/config/ConfigManager.ts:530.
  • Minimum fix: Load the trusted OS-account configuration in read-only mode, obtain the override for the verified canonical root, and apply it with the same precedence as normal host configuration. Cover real persisted true and false overrides in Connect status tests.

Suggestions

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

S1: 🟢 Avoid fixed TAP totals

scripts/verify-platform-safe-connect.mjs and scripts/verify-native-connect-authority.mjs require exact test totals. This proves the intended suites ran today, but makes unrelated additions fail CI until the constants are manually updated. A named sentinel test or expected-file verification could retain completeness while reducing maintenance; this is optional because the current totals are deliberate and internally consistent.

Score

The implementation has unusually strong security boundaries and extensive focused coverage, but the two authority/configuration inconsistencies prevent merge readiness. Pending current-head checks and the omitted diff ranges also mean final verification is not yet complete.

Score: 6/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 3m 18s
  • Tokens: 88,232 (77,599 in / 10,633 out)
  • Cost: $0.66
  • Review scope: Partial — PR diff files or ranges were unavailable from GitHub or omitted by the configured review context limit.

View Task

Files omitted from review diff

5 files were omitted because patch content was unavailable from GitHub or did not fit the review context budget. Large, binary, generated, and lockfile changes are deprioritized.

  • test/publicInstanceIdentity.test.ts
  • packages/cli/src/connectWindowsAuthority.ts
  • packages/cli/src/connectIdentity.ts
  • docs/docs/operations/desktop-pairing.md
  • docs/docs/operations/hosted-ui-tunnel.md

💡 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 Aug 31, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit ccd4363

Summary of Changes

Implemented F35 on exact head 5a01649d572b793730191362550f528488864fe1.

  • Set nativeStage: "resolver:env" only for authority-missing-system-root.
  • Added the focused exact-source assertion.
  • No production, fixture, environment, timeout, or other scenario changes.
  • Focused harness: 9/9 passed.
  • git diff --check: passed.
  • No merge, sync, or commit performed.

🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 1m 41s
  • Tokens: 456,106 (454,175 in / 1,931 out)
  • Cost: $0.52

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

…528488864fe1`.

Implemented F35 on exact head `5a01649d572b793730191362550f528488864fe1`.

- Set `nativeStage: "resolver:env"` only for `authority-missing-system-root`.
- Added the focused exact-source assertion.
- No production, fixture, environment, timeout, or other scenario changes.
- Focused harness: 9/9 passed.
- `git diff --check`: passed.
- No merge, sync, or commit performed.

PR: #1989
Comment by: @integry (ID: 5486219114)
Model: gpt-5.6-sol
@integry

integry commented Aug 31, 2026

Copy link
Copy Markdown
Owner

/fix F21 F22

@propr-dev

propr-dev Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit ba22222

Addressed 1 AI review comment (IDs: 5486259048)

Summary of Changes

Implemented only F21 and F22.

  • Hosted UI now detects raw managed-tunnel namespace claims before normalization and accepts only exact canonical HTTPS origins. Added HTTP, port, credentials, path, and extra-label cases in runtimeConfig.test.ts.
  • Connect status now applies the trusted, root-specific persisted tunnel override before sidecar inspection and readiness evaluation in connectCommand.ts.
  • Built-CLI tests cover persisted true and false precedence.

Validation passed:

  • UI focused tests: 61/61
  • Built CLI integration: 2/2
  • Platform-safe Connect: 84/84
  • CLI/UI lint, typecheck, and CLI build
  • git diff --check

No commit created.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 6m 27s
  • Tokens: 2,776,166 (2,764,015 in / 12,151 out)
  • Cost: $2.35

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

Implemented only F21 and F22.

- Hosted UI now detects raw managed-tunnel namespace claims before normalization and accepts only exact canonical HTTPS origins. Added HTTP, port, credentials, path, and extra-label cases in [runtimeConfig.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1989-followup-2026-08-31T23-37-24/propr-ui/src/config/runtimeConfig.test.ts:141).
- Connect status now applies the trusted, root-specific persisted tunnel override before sidecar inspection and readiness evaluation in [connectCommand.ts](/tmp/git-processor/worktrees/integry/propr/pr-1989-followup-2026-08-31T23-37-24/packages/cli/src/commands/connectCommand.ts:363).
- Built-CLI tests cover persisted `true` and `false` precedence.

Validation passed:

- UI focused tests: 61/61
- Built CLI integration: 2/2
- Platform-safe Connect: 84/84
- CLI/UI lint, typecheck, and CLI build
- `git diff --check`

No commit created.

PR: #1989
Comment by: @integry (ID: 5486287597)
Model: gpt-5.6-sol
@integry

integry commented Aug 31, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@integry

integry commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Fix only the three exact F21/F22 follow-up blockers on head ba22222488d8a9a6b3653648f9a9ab921238429d.

  1. First-run trusted override fallback: readTrustedConnectTunnelOverride still unconditionally lstats the OS account's ~/.propr; genuine absence throws and Connect returns internalFailure instead of deferring to the verified .env. Treat an absent .propr directory as no override without creating anything. Use the reader's existing descriptor-pinned/no-follow model: precheck, anchored home.root.openChild(".propr", O_RDONLY|O_DIRECTORY|O_NOFOLLOW), and accept ENOENT only after revalidating the held/named home identity and Windows authority where applicable. Preserve fail-closed handling for unsafe, symlinked, malformed, raced, wrong-owner/mode, and permission cases. Existing .propr plus absent config remains undefined. Add absent-directory/no-creation and ABA/symlink tests.

  2. Remove all mutation of the real userInfo().homedir/.propr/config.json from test/connectCliIntegration.test.ts. The current backup/overwrite/restore can follow symlinks, lose metadata, race another process, and leave a real config damaged after interruption. Test persisted true/false precedence using only temp-owned isolated state through a test-only OS-home injection/pre-import seam, or focused trusted-reader/status dependency injection that still exercises the built CLI contract. Cleanup must target only test-owned temp paths; add an assertion that the actual OS config bytes/metadata are untouched and that absent config creates nothing. Do not weaken production use of OS userInfo().homedir.

  3. Complete the hosted raw managed-namespace guard with the same raw-authority detection used by the API service. Parsed-host detection alone misses Unicode/IDNA spellings such as raw https://t-é.propr.dev whose parsed hostname is punycoded. Before generic normalization, classify a raw authority whose first label begins t- and whose exact terminal labels are propr.dev, in addition to the current parsed exact-suffix/nested-label classification; then accept only canonicalProprProxyUrl. Add Unicode/IDNA, default/nondefault port, credentials, path, nested-label regressions, and prove external suffix lookalikes such as t-x.propr.dev.example.com remain unrelated/self-managed.

Keep the correct F22 precedence persistedOverride === undefined ? env : override, use of snapshot.requestedRoot, effective config for tunnel inspection/output, fixed redacted errors, all production authority/secret bounds, and F34/F35 harness work. Do not alter timeouts or native resolver behavior. Run focused trusted-reader, built CLI Connect integration, hosted runtime-config, platform-safe, typecheck/lint, and diff-check. Do not merge or sync the base.

@propr-dev

propr-dev Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The visible implementation is thoughtfully engineered, but it is not yet ready for final approval: the supplied diff explicitly omits central authority and identity code, and all 14 substantive head checks remain pending. No merge-blocking defect is verified in the provided portion.

✅ Bounded, secret-free discovery — The CLI caps response bodies, validates an exact schema, sanitizes failure output, and tests against secret sentinels.

✅ Strict endpoint authority — Shared, CLI, API, launcher, and UI paths consistently reject noncanonical URLs, userinfo, ports, paths, IDNA lookalikes, and alternate serialization.

✅ Defensive remote probing — Redirects are disabled, timeouts abort active work, rejected or late response bodies are cancelled, and identity/origin compatibility must match before readiness.

Merge blockers

No merge blockers.

Suggestions

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

S1: 🟢 Avoid exact TAP totals

scripts/verify-platform-safe-connect.mjs and scripts/verify-native-connect-authority.mjs require exact test counts. Checking zero failures and the presence of named critical tests would preserve the proof while avoiding maintenance failures whenever unrelated tests are added. This is optional because the current fixed inventories appear intentional.

S2: 🟢 Await asynchronous CLI parsing

The new Connect action is asynchronous, while packages/cli/src/index.ts still invokes program.parse(). Using Commander’s asynchronous parsing entry point would make completion and unexpected rejection handling explicit. Existing integration coverage demonstrates current execution works, so this is a robustness follow-up rather than a blocker.

Score

The reviewed portion is strong and has unusually thorough security-focused coverage, but the explicitly omitted core diff and wholly pending current checks create a material verification gap.

Score: 7/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 2m 17s
  • Tokens: 84,985 (77,646 in / 7,339 out)
  • Cost: $0.56
  • Review scope: Partial — PR diff files or ranges were unavailable from GitHub or omitted by the configured review context limit.

View Task

Files omitted from review diff

6 files were omitted because patch content was unavailable from GitHub or did not fit the review context budget. Large, binary, generated, and lockfile changes are deprioritized.

  • test/publicInstanceIdentity.test.ts
  • packages/cli/src/connectWindowsAuthority.ts
  • packages/cli/src/connectIdentity.ts
  • packages/cli/native/README.md
  • docs/docs/operations/desktop-pairing.md
  • docs/docs/operations/hosted-ui-tunnel.md

💡 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 Aug 31, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 01c9375

Summary of Changes

Implemented the three requested F21/F22 follow-ups without committing:

  • Trusted override reader now treats authenticated .propr absence as no override, creates nothing, revalidates home identity, and performs Windows authority checks. ABA, symlink, and no-creation coverage added.
  • Built CLI integration uses a temp-owned injected OS home. It no longer mutates the real config and asserts real config bytes/metadata remain unchanged.
  • Hosted runtime config now detects raw Unicode/IDNA managed authorities before normalization, with port, credentials, path, nested-label, and external-lookalike regressions.

Validation passed:

  • Trusted reader: 27/27
  • Built CLI integration: 2/2
  • Hosted runtime config: 61/61
  • Platform-safe Connect: 84/84
  • Root, CLI, and UI typechecks/lint
  • CLI build
  • git diff --check

🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 7m 47s
  • Tokens: 2,739,116 (2,721,341 in / 17,775 out)
  • Cost: $2.55
  • 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: 5486370400✓

…committing:

Implemented the three requested F21/F22 follow-ups without committing:

- Trusted override reader now treats authenticated `.propr` absence as no override, creates nothing, revalidates home identity, and performs Windows authority checks. ABA, symlink, and no-creation coverage added.
- Built CLI integration uses a temp-owned injected OS home. It no longer mutates the real config and asserts real config bytes/metadata remain unchanged.
- Hosted runtime config now detects raw Unicode/IDNA managed authorities before normalization, with port, credentials, path, nested-label, and external-lookalike regressions.

Validation passed:

- Trusted reader: 27/27
- Built CLI integration: 2/2
- Hosted runtime config: 61/61
- Platform-safe Connect: 84/84
- Root, CLI, and UI typechecks/lint
- CLI build
- `git diff --check`

PR: #1989
Comment by: @integry (ID: 5486370400)
Model: gpt-5.6-sol
@integry

integry commented Aug 31, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Aug 31, 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 1, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The visible implementation is thoughtfully designed, but the review is necessarily partial because security-critical diff ranges were omitted. No blocker is evident in the supplied ranges; merge readiness remains conditional on reviewing the omitted code and completing the eight pending checks.

✅ Strict trust boundaries — Canonical tunnel origins reject alternate spellings, userinfo, ports, paths, IDNA lookalikes, and redirects across shared, CLI, API, and UI paths.

✅ Bounded secret-free discovery — The CLI caps remote bodies, strictly parses the schema, redacts failures, and emits a fixed-size status document with stable exit semantics.

✅ Strong targeted verification — Tests cover identity/origin mismatches, timeouts, malformed responses, filesystem replacement, Docker output validation, native ACL inspection, and secret sentinels.

Merge blockers

No merge blockers.

Suggestions

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

No suggestions.

Score

The reviewed portions are strong and have no verified code blocker, while current checks report no failures. The omitted portions include central identity and root-authority behavior, so the available evidence is not sufficient to declare the entire PR merge-ready.

Score: 7/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 2m 59s
  • Tokens: 86,871 (77,959 in / 8,912 out)
  • Cost: $0.60
  • Review scope: Partial — PR diff files or ranges were unavailable from GitHub or omitted by the configured review context limit.

View Task

Files omitted from review diff

10 files were omitted because patch content was unavailable from GitHub or did not fit the review context budget. Large, binary, generated, and lockfile changes are deprioritized.

  • packages/cli/src/connectWindowsAuthority.ts
  • test/publicInstanceIdentity.test.ts
  • packages/cli/src/connectIdentity.ts
  • docs/docs/features/propr-cli.md
  • docs/docs/operations/configuration-reference.md
  • packages/cli/native/README.md
  • docs/docs/operations/desktop-pairing.md
  • docs/docs/operations/hosted-ui-tunnel.md
  • packages/cli/native/prebuilds/darwin-x64/connect-authority-broker
  • packages/cli/native/prebuilds/darwin-arm64/connect-authority-broker

💡 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 1, 2026

Copy link
Copy Markdown
Owner

Implement only test-harness timeout correction F36 on exact head 01c9375bd3060d3c2fc4d199f5ff5092710c268e.

Exact-head rerun job 99687480560 proves the standalone native probe now completes through standard-handle-identity in 30–45s. It then failed the real ready child at harness stage signal after the fixed 255s outer WINDOWS_PRODUCT_SCENARIO_TIMEOUT_MS; status/nativeStage were null because the outer harness killed the child. F22 legitimately added a second independently bounded native authority phase: the verified stack-root snapshot can consume up to the existing 240s cumulative inspection ceiling, then the trusted OS-home/config override reader can consume another independently bounded 240s authority ceiling. The old outer harness bound represented only one phase (240s + 15s overhead).

Change only the Windows ordinary-user harness outer product-scenario budget to cover exactly two existing cumulative authority phases plus fixed overhead: 2 * 240_000 + 15_000 = 495_000ms. Prefer named phase-count/overhead constants or an imported/shared production cumulative constant if the current module boundary supports it without expanding production surface. Add focused exact assertions tying the outer ceiling to two phases and proving it remains finite/bounded.

Do not change the production 60s per-process allowance, 240s per-call cumulative ceiling, native probe timeout, authority implementation, F21/F22 product code, mocks, result schema, negative semantics, or redaction. Do not simply retry again. Run focused Windows harness/platform-safe tests, typecheck, and diff-check. Do not merge or sync the base.

@propr-dev

propr-dev Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit c1f57fa

Summary of Changes

Implemented F36 on exact head 01c9375bd3060d3c2fc4d199f5ff5092710c268e.

Validation passed:

  • Focused harness: 9/9
  • Platform-safe Connect: 84/84
  • CLI typecheck
  • Harness syntax check
  • git diff --check

Only the two test-harness files changed; production behavior remains untouched.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 3m 1s
  • Tokens: 685,205 (680,688 in / 4,517 out)
  • Cost: $0.77

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

…5092710c268e`.

Implemented F36 on exact head `01c9375bd3060d3c2fc4d199f5ff5092710c268e`.

- Harness timeout is now derived as `2 × 240_000 + 15_000 = 495_000ms`, using the existing production cumulative constant: [verify-windows-standard-user-connect.mjs](/tmp/git-processor/worktrees/integry/propr/pr-1989-followup-2026-09-01T00-11-55/scripts/verify-windows-standard-user-connect.mjs:114)
- Added exact two-phase, finite, and safe-integer assertions: [windowsStandardUserConnectHarness.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1989-followup-2026-09-01T00-11-55/test/windowsStandardUserConnectHarness.test.ts:418)

Validation passed:

- Focused harness: 9/9
- Platform-safe Connect: 84/84
- CLI typecheck
- Harness syntax check
- `git diff --check`

Only the two test-harness files changed; production behavior remains untouched.

PR: #1989
Comment by: @integry (ID: 5486575533)
Model: gpt-5.6-sol
@integry

integry commented Sep 1, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

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

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

This PR implements a carefully bounded, secret-free Connect discovery flow with durable installation identity, strict tunnel-origin validation, and platform-aware root authority checks. No merge-blocking defect is verified in the supplied code, but the review is necessarily partial because diff ranges were explicitly omitted; merge readiness also remains conditional on the 13 pending checks.

✅ Bounded discovery contract — Remote responses are redirect-free, size-capped, strictly decoded, schema-validated, and protected by a hard timeout.

✅ Fail-closed authority handling — Invalid roots, ACL inspection failures, Docker inspection errors, and identity failures map to fixed, redacted status documents.

✅ Shared identity and origin rules — CLI, API, launcher, and hosted UI use consistent public identity and canonical tunnel-origin contracts, backed by focused cross-surface tests.

Merge blockers

No merge blockers.

Suggestions

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

S1: 🟢 Avoid fixed test cardinalities

scripts/verify-platform-safe-connect.mjs and scripts/verify-native-connect-authority.mjs require exact test and pass counts. This provides a strong completeness assertion today, but harmless future test additions will break the verification scripts until their constants are updated. A named proof marker or minimum-count assertion could reduce maintenance; this is optional because the current fixed suites are deliberate and internally consistent.

S2: 🟢 Consolidate proxy parsing later

Canonical proxy-origin logic is implemented in both packages/shared/src/proprServiceUrls.ts and docker/launcher/orchestrator.mjs. The new drift tests currently verify agreement, so this is not a correctness blocker, but generating or sharing the launcher implementation would further reduce long-term divergence risk.

Score

The visible implementation is security-conscious and extensively tested, with no verified blocker or current check failure. The explicitly omitted diff ranges create a material verification gap, so the PR cannot yet receive a merge-ready score.

Score: 7/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 3m 33s
  • Tokens: 89,009 (77,762 in / 11,247 out)
  • Cost: $0.68
  • Review scope: Partial — PR diff files or ranges were unavailable from GitHub or omitted by the configured review context limit.

View Task

Files omitted from review diff

10 files were omitted because patch content was unavailable from GitHub or did not fit the review context budget. Large, binary, generated, and lockfile changes are deprioritized.

  • packages/cli/src/connectWindowsAuthority.ts
  • test/publicInstanceIdentity.test.ts
  • packages/cli/src/connectIdentity.ts
  • packages/cli/README.md
  • docs/docs/features/propr-cli.md
  • docs/docs/operations/configuration-reference.md
  • packages/cli/native/README.md
  • docs/docs/operations/desktop-pairing.md
  • docs/docs/operations/hosted-ui-tunnel.md
  • packages/cli/native/prebuilds/darwin-arm64/connect-authority-broker

💡 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

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Full Test Suite Results

Validation failed during: Full test suite.

  • Dependency install: success
  • Workspace build: success
  • Docs validation: success
  • Redis startup: success
  • Full test suite: failure
View Test Output

> [email protected] test:full:prepared
> npm run test:server


> [email protected] test:server
> node scripts/run-test-suite.mjs


[1/336] apps/desktop/scripts/packaged-layout.test.mjs
TAP version 13
# Subtest: packaged desktop layout assertions
    # Subtest: retains the exact 1280x820 Linux Xvfb proof
    ok 1 - retains the exact 1280x820 Linux Xvfb proof
      ---
      duration_ms: 1.539568
      type: 'test'
      ...
    # Subtest: accepts a safe 1024x720 Windows display clamp with intact contained content
    ok 2 - accepts a safe 1024x720 Windows display clamp with intact contained content
      ---
      duration_ms: 0.238305
      type: 'test'
      ...
    # Subtest: rejects unsafe Windows clamps and content outside the visible work area
    ok 3 - rejects unsafe Windows clamps and content outside the visible work area
      ---
      duration_ms: 0.270476
      type: 'test'
      ...
    1..3
ok 1 - packaged desktop layout assertions
  ---
  duration_ms: 3.134909
  type: 'suite'
  ...
1..1
# tests 3
# suites 1
# pass 3
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 241.890902

[2/336] apps/desktop/src/credential-service.test.ts
TAP version 13
# Subtest: main-process desktop credential service
    # Subtest: injects the active bearer only for its bound profile origin and strips renderer identity
    ok 1 - injects the active bearer only for its bound profile origin and strips renderer identity
      ---
      duration_ms: 116.179001
      type: 'test'
      ...
    # Subtest: uses only the active bearer when profiles share an origin and never a cookie identity
    ok 2 - uses only the active bearer when profiles share an origin and never a cookie identity
      ---
      duration_ms: 71.474497
      type: 'test'
      ...
    # Subtest: detaches profile B credential A without sending any bearer request to A or minting a ticket
    ok 3 - detaches profile B credential A without sending any bearer request to A or minting a ticket
      ---
      duration_ms: 54.059949
      type: 'test'
      ...
    # Subtest: does not mint a ticket when a delayed B probe observes credential replacement with origin A
    ok 4 - does not mint a ticket when a delayed B probe observes credential replacement with origin A
      ---
      duration_ms: 42.26343
      type: 'test'
      ...
    # Subtest: atomically rejects a ticket when delayed activation races with profile B credential A
    ok 5 - atomically rejects a ticket when delayed activation races with profile B credential A
      ---
      duration_ms: 43.32502
      type: 'test'
      ...
    # Subtest: keeps a slow successful same-origin A probe status-only after fast B activates
    ok 6 - keeps a slow successful same-origin A probe status-only after fast B activates
      ---
      duration_ms: 64.669096
      type: 'test'
      ...
    # Subtest: keeps A active while B is only probed and if B selection persistence fails
    ok 7 - keeps A active while B is only probed and if B selection persistence fails
      ---
      duration_ms: 69.278754
      type: 'test'
      ...
    # Subtest: keeps B active during a direct same-origin A probe and rejects replayed activation tickets
    ok 8 - keeps B active during a direct same-origin A probe and rejects replayed activation tickets
      ---
      duration_ms: 67.489651
      type: 'test'
      ...
    # Subtest: rejects activation after candidate removal, selection drift, or exact credential replacement
    ok 9 - rejects activation after candidate removal, selection drift, or exact credential replacement
      ---
      duration_ms: 253.603136
      type: 'test'
      ...
    # Subtest: binds REST and Socket.IO work to one fresh scope and rejects stale or malformed markers
    ok 10 - binds REST and Socket.IO work to one fresh scope and rejects stale or malformed markers
      ---
      duration_ms: 78.782727
      type: 'test'
      ...
    # Subtest: passes through a realistic packaged-origin CORS preflight without renderer identity or bearer injection
    ok 11 - passes through a realistic packaged-origin CORS preflight without renderer identity or bearer injection
      ---
      duration_ms: 0.443889
      type: 'test'
      ...
    # Subtest: rotates scope on every same-profile reprobe and rejects a cold reconnect from the old activation
    ok 12 - rotates scope on every same-profile reprobe and rejects a cold reconnect from the old activation
      ---
      duration_ms: 52.384638
      type: 'test'
      ...
    # Subtest: never sends an A-origin bearer after the profile URL is edited to an attacker origin
    ok 13 - never sends an A-origin bearer after the profile URL is edited to an attacker origin
      ---
      duration_ms: 27.667195
      type: 'test'
      ...
    # Subtest: preserves a re-paired credential and current connection after a stale definitive probe response
    ok 14 - preserves a re-paired credential and current connection after a stale definitive probe response
      ---
      duration_ms: 106.221105
      type: 'test'
      ...
    # Subtest: preserves a replacement credential at a changed origin after a stale definitive probe response
    ok 15 - preserves a replacement credential at a changed origin after a stale definitive probe response
      ---
      duration_ms: 76.37317
      type: 'test'
      ...
    # Subtest: preserves the active profile and credential when an origin edit fails during browser-launch
    ok 16 - preserves the active profile and credential when an origin edit fails during browser-launch
      ---
      duration_ms: 54.010226
      type: 'test'
      ...
    # Subtest: preserves the active profile and credential when an origin edit fails during cancellation
    ok 17 - preserves the active profile and credential when an origin edit fails during cancellation
      ---
      duration_ms: 56.45494
      type: 'test'
      ...
    # Subtest: preserves the active profile and credential when an origin edit fails during expiry
    ok 18 - preserves the active profile and credential when an origin edit fails during expiry
      ---
      duration_ms: 61.528151
      type: 'test'
      ...
    # Subtest: preserves the active profile and credential when an origin edit fails during polling
    ok 19 - preserves the active profile and credential when an origin edit fails during polling
      ---
      duration_ms: 47.82727
      type: 'test'
      ...
    # Subtest: preserves the active profile and credential when an origin edit fails during secure-storage
    ok 20 - preserves the active profile and credential when an origin edit fails during secure-storage
      ---
      duration_ms: 68.987445
      type: 'test'
      ...
    # Subtest: commits an edited profile and replacement credential before revoking the old token
    ok 21 - commits an edited profile and replacement credential before revoking the old token
      ---
      duration_ms: 58.068282
      type: 'test'
      ...
# NATIVE_SCENARIO delivery
    # Subtest: durably journals a provisional delivery before server activation and local publication
    ok 22 - durably journals a provisional delivery before server activation and local publication
      ---
      duration_ms: 43.1297
      type: 'test'
      ...
    # Subtest: retries an encrypted pending A revocation across failure, restart, remote success, and local cleanup failure
    ok 23 - retries an encrypted pending A revocation across failure, restart, remote success, and local cleanup failure
      ---
      duration_ms: 187.800442
      type: 'test'
      ...
# NATIVE_SCENARIO revocation-crash
    # Subtest: recovers B and retries idempotently after a real process crash during-revoke
    ok 24 - recovers B and retries idempotently after a real process crash during-revoke
      ---
      duration_ms: 420.764534
      type: 'test'
      ...
# NATIVE_SCENARIO revocation-crash
    # Subtest: recovers B and retries idempotently after a real process crash after-remote-success
    ok 25 - recovers B and retries idempotently after a real process crash after-remote-success
      ---
      duration_ms: 406.292556
      type: 'test'
      ...
    # Subtest: cleans durable retry material only for endpoint-bound terminal 204 success
    ok 26 - cleans durable retry material only for endpoint-bound terminal 204 success
      ---
      duration_ms: 36.722489
      type: 'test'
      ...
    # Subtest: cleans durable retry material only for endpoint-bound terminal 404 TOKEN_NOT_FOUND
    ok 27 - cleans durable retry material only for endpoint-bound terminal 404 TOKEN_NOT_FOUND
      ---
      duration_ms: 52.846091
      type: 'test'
      ...
    # Subtest: cleans durable retry material only for endpoint-bound terminal 401 INSTANCE_TOKEN_REVOKED
    ok 28 - cleans durable retry material only for endpoint-bound terminal 401 INSTANCE_TOKEN_REVOKED
      ---
      duration_ms: 38.449321
      type: 'test'
      ...
    # Subtest: cleans durable retry material only for endpoint-bound terminal 401 INSTANCE_TOKEN_EXPIRED
    ok 29 - cleans durable retry material only for endpoint-bound terminal 401 INSTANCE_TOKEN_EXPIRED
      ---
      duration_ms: 37.230106
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for empty 401
    ok 30 - retains encrypted retry material for empty 401
      ---
      duration_ms: 36.984434
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for empty 404
    ok 31 - retains encrypted retry material for empty 404
      ---
      duration_ms: 28.082833
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for HTML route 404
    ok 32 - retains encrypted retry material for HTML route 404
      ---
      duration_ms: 30.42077
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for malformed JSON
    ok 33 - retains encrypted retry material for malformed JSON
      ---
      duration_ms: 28.889087
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for wrong content type
    ok 34 - retains encrypted retry material for wrong content type
      ---
      duration_ms: 28.329938
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for wrong schema version
    ok 35 - retains encrypted retry material for wrong schema version
      ---
      duration_ms: 36.16459
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for wrong credential generation
    ok 36 - retains encrypted retry material for wrong credential generation
      ---
      duration_ms: 29.191811
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for unknown terminal code
    ok 37 - retains encrypted retry material for unknown terminal code
      ---
      duration_ms: 29.525621
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for status/code mismatch
    ok 38 - retains encrypted retry material for status/code mismatch
      ---
      duration_ms: 29.847184
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for redirect
    ok 39 - retains encrypted retry material for redirect
      ---
      duration_ms: 33.602479
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for redirected 204
    ok 40 - retains encrypted retry material for redirected 204
      ---
      duration_ms: 32.928868
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for wrong endpoint 204
    ok 41 - retains encrypted retry material for wrong endpoint 204
      ---
      duration_ms: 28.285865
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for server failure
    ok 42 - retains encrypted retry material for server failure
      ---
      duration_ms: 31.775736
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for oversized JSON
    ok 43 - retains encrypted retry material for oversized JSON
      ---
      duration_ms: 38.68964
      type: 'test'
      ...
    # Subtest: accepts encrypted retry material for chunked 2048-byte terminal JSON
    ok 44 - accepts encrypted retry material for chunked 2048-byte terminal JSON
      ---
      duration_ms: 35.525658
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for chunked 2049-byte terminal JSON
    ok 45 - retains encrypted retry material for chunked 2049-byte terminal JSON
      ---
      duration_ms: 28.488168
      type: 'test'
      ...
    # Subtest: accepts encrypted retry material for terminal JSON without Content-Length
    ok 46 - accepts encrypted retry material for terminal JSON without Content-Length
      ---
      duration_ms: 32.861105
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for deceptive short Content-Length
    ok 47 - retains encrypted retry material for deceptive short Content-Length
      ---
      duration_ms: 46.042408
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for extra chunk after declared Content-Length
    ok 48 - retains encrypted retry material for extra chunk after declared Content-Length
      ---
      duration_ms: 30.671583
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for malformed UTF-8
    ok 49 - retains encrypted retry material for malformed UTF-8
      ---
      duration_ms: 31.838063
      type: 'test'
      ...
    # Subtest: retains encrypted retry material for premature body error
    ok 50 - retains encrypted retry material for premature body error
      ---
      duration_ms: 31.534615
      type: 'test'
      ...
    # Subtest: bounds a one-byte slowloris body and retains its encrypted retry material
    ok 51 - bounds a one-byte slowloris body and retains its encrypted retry material
      ---
      duration_ms: 51.349726
      type: 'test'
      ...
    # Subtest: dispose aborts a stalled header fetch, deduplicates its generation, and leaves no later activity
    ok 52 - dispose aborts a stalled header fetch, deduplicates its generation, and leaves no later activity
      ---
      duration_ms: 56.218436
      type: 'test'
      ...
    # Subtest: dispose cancels a headers-then-stall body and retains exact encrypted material
    ok 53 - dispose cancels a headers-then-stall body and retains exact encrypted material
      ---
      duration_ms: 49.074904
      type: 'test'
      ...
# NATIVE_SCENARIO dispose
    # Subtest: dispose waits for terminal journal cleanup and no file operation runs afterward
    ok 54 - dispose waits for terminal journal cleanup and no file operation runs afterward
      ---
      duration_ms: 54.620302
      type: 'test'
      ...
    # Subtest: bounds aggregate startup across stalled records and recovers all encrypted records later
    ok 55 - bounds aggregate startup across stalled records and recovers all encrypted records later
      ---
      duration_ms: 274.098237
      type: 'test'
      ...
# NATIVE_SCENARIO transient-revocation
# NATIVE_SCENARIO provisional
    # Subtest: retries a crash-left provisional pairing credential on startup
    ok 56 - retries a crash-left provisional pairing credential on startup
      ---
      duration_ms: 28.505695
      type: 'test'
      ...
    # Subtest: ignores delayed A invalidation after B connects and preserves tokens for authorization/transient codes
    ok 57 - ignores delayed A invalidation after B connects and preserves tokens for authorization/transient codes
      ---
      duration_ms: 128.97479
      type: 'test'
      ...
    # Subtest: preserves a replacement written while an old transient token revocation is pending
    ok 58 - preserves a replacement written while an old transient token revocation is pending
      ---
      duration_ms: 66.246627
      type: 'test'
      ...
# NATIVE_SCENARIO transient-revocation
    # Subtest: keeps an exactly persisted cancelled pairing token pending when revocation fails
    ok 59 - keeps an exactly persisted cancelled pairing token pending when revocation fails
      ---
      duration_ms: 32.006923
      type: 'test'
      ...
    # Subtest: detaches a removed profile locally before deferred revoke and preserves a later replacement
    ok 60 - detaches a removed profile locally before deferred revoke and preserves a later replacement
      ---
      duration_ms: 131.470278
      type: 'test'
      ...
    # Subtest: never lets a delayed A-to-B revoke overwrite a later C save, pairing, selection, or credential
    ok 61 - never lets a delayed A-to-B revoke overwrite a later C save, pairing, selection, or credential
      ---
      duration_ms: 103.471442
      type: 'test'
      ...
    # Subtest: returns connection-changed and preserves a re-paired credential for an old ready invalidation
    ok 62 - returns connection-changed and preserves a re-paired credential for an old ready invalidation
      ---
      duration_ms: 62.761061
      type: 'test'
      ...
# NATIVE_SCENARIO transient-revocation
    # Subtest: revokes a transient completion instead of persisting when pairing races with delete
    ok 63 - revokes a transient completion instead of persisting when pairing races with delete
      ---
      duration_ms: 51.602177
      type: 'test'
      ...
# NATIVE_SCENARIO transient-revocation
    # Subtest: revokes a transient completion instead of persisting when pairing races with switch
    ok 64 - revokes a transient completion instead of persisting when pairing races with switch
      ---
      duration_ms: 57.170179
      type: 'test'
      ...
# NATIVE_SCENARIO cancellation-switch
    # Subtest: keeps durable A when cancel linearizes at paired state-written before publish
    ok 65 - keeps durable A when cancel linearizes at paired state-written before publish
      ---
      duration_ms: 67.31431
      type: 'test'
      ...
# NATIVE_SCENARIO cancellation-switch
    # Subtest: keeps durable A when switch linearizes at paired state-written before publish
    ok 66 - keeps durable A when switch linearizes at paired state-written before publish
      ---
      duration_ms: 81.312455
      type: 'test'
      ...
# NATIVE_SCENARIO cancellation-switch
    # Subtest: keeps durable A when cancel linearizes at paired state-fsynced before publish
    ok 67 - keeps durable A when cancel linearizes at paired state-fsynced before publish
      ---
      duration_ms: 72.130516
      type: 'test'
      ...
# NATIVE_SCENARIO cancellation-switch
    # Subtest: keeps durable A when switch linearizes at paired state-fsynced before publish
    ok 68 - keeps durable A when switch linearizes at paired state-fsynced before publish
      ---
      duration_ms: 73.179893
      type: 'test'
      ...
    1..68
ok 1 - main-process desktop credential service
  ---
  duration_ms: 4821.328472
  type: 'suite'
  ...
1..1
# tests 68
# suites 1
# pass 68
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 5319.334496

[3/336] apps/desktop/src/deep-link-delivery.test.ts
TAP version 13
# Subtest: desktop deep-link delivery
    # Subtest: delivers a link received after did-finish-load but before global window assignment
    ok 1 - delivers a link received after did-finish-load but before global window assignment
      ---
      duration_ms: 1.323883
      type: 'test'
      ...
    1..1
ok 1 - desktop deep-link delivery
  ---
  duration_ms: 2.201373
  type: 'suite'
  ...
1..1
# tests 1
# suites 1
# pass 1
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 251.274059

[4/336] apps/desktop/src/ipc-lifecycle.test.ts
TAP version 13
# Subtest: desktop IPC shutdown gate
    # Subtest: clears old and new origin storage through the real save IPC before a same-ID URL commit
    ok 1 - clears old and new origin storage through the real save IPC before a same-ID URL commit
      ---
      duration_ms: 4.266819
      type: 'test'
      ...
    # Subtest: clears both origins when activation edits the active profile URL without changing its ID
    ok 2 - clears both origins when activation edits the active profile URL without changing its ID
      ---
      duration_ms: 0.960174
      type: 'test'
      ...
    # Subtest: rejects activation and discards its exact scope when origin storage clearing fails
    ok 3 - rejects activation and discards its exact scope when origin storage clearing fails
      ---
      duration_ms: 1.083143
      type: 'test'
      ...
    # Subtest: discards the exact activation when the post-commit profile read fails
    ok 4 - discards the exact activation when the post-commit profile read fails
      ---
      duration_ms: 1.307152
      type: 'test'
      ...
    # Subtest: clears a profile origin before committing removal and retains it when cleanup fails
    ok 5 - clears a profile origin before committing removal and retains it when cleanup fails
      ---
      duration_ms: 0.518378
      type: 'test'
      ...
    # Subtest: replaces every handler with a fixed closing failure and drains admitted work before disposal
    ok 6 - replaces every handler with a fixed closing failure and drains admitted work before disposal
      ---
      duration_ms: 0.693976
      type: 'test'
      ...
    # Subtest: runs an admitted profile handler through the production before-quit drain
    ok 7 - runs an admitted profile handler through the production before-quit drain
      ---
      duration_ms: 1.426005
      type: 'test'
      ...
    # Subtest: runs an admitted pairing handler through the production before-quit drain
    ok 8 - runs an admitted pairing handler through the production before-quit drain
      ---
      duration_ms: 0.480237
      type: 'test'
      ...
    # Subtest: runs an admitted session handler through the production before-quit drain
    ok 9 - runs an admitted session handler through the production before-quit drain
      ---
      duration_ms: 25.425687
      type: 'test'
      ...
    1..9
ok 1 - desktop IPC shutdown gate
  ---
  duration_ms: 37.896985
  type: 'suite'
  ...
1..1
# tests 9
# suites 1
# pass 9
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 325.842252

[5/336] apps/desktop/src/ipc.test.ts
TAP version 13
# Subtest: desktop session IPC operations
    # Subtest: logs out through the active Electron session with credentials and without following redirects
    ok 1 - logs out through the active Electron session with credentials and without following redirects
      ---
      duration_ms: 25.645297
      type: 'test'
      ...
    # Subtest: rejects untrusted logout endpoints before making a session request
    ok 2 - rejects untrusted logout endpoints before making a session request
      ---
      duration_ms: 1.307894
      type: 'test'
      ...
    # Subtest: clears browser identity and origin storage for normalized profile origins when profiles switch
    ok 3 - clears browser identity and origin storage for normalized profile origins when profiles switch
      ---
      duration_ms: 0.984199
      type: 'test'
      ...
    1..3
ok 1 - desktop session IPC operations
  ---
  duration_ms: 29.408509
  type: 'suite'
  ...
1..1
# tests 3
# suites 1
# pass 3
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 302.738811

[6/336] apps/desktop/src/pairing-response-lifecycle.test.ts
TAP version 13
# NATIVE_PAIRING_SHUTDOWN start-header
# Subtest: desktop pairing service IPC native shutdown lifecycle
    # Subtest: start-header drains through the real service, IPC gate, and before-quit order
    ok 1 - start-header drains through the real service, IPC gate, and before-quit order
      ---
      duration_ms: 67.294493
      type: 'test'
      ...
# NATIVE_PAIRING_SHUTDOWN start-body
    # Subtest: start-body drains through the real service, IPC gate, and before-quit order
    ok 2 - start-body drains through the real service, IPC gate, and before-quit order
      ---
      duration_ms: 55.609308
      type: 'test'
      ...
# NATIVE_PAIRING_SHUTDOWN poll-header
    # Subtest: poll-header drains through the real service, IPC gate, and before-quit order
    ok 3 - poll-header drains through the real service, IPC gate, and before-quit order
      ---
      duration_ms: 27.185475
      type: 'test'
      ...
# NATIVE_PAIRING_SHUTDOWN poll-body
    # Subtest: poll-body drains through the real service, IPC gate, and before-quit order
    ok 4 - poll-body drains through the real service, IPC gate, and before-quit order
      ---
      duration_ms: 23.724649
      type: 'test'
      ...
# NATIVE_PAIRING_SHUTDOWN activate-header
    # Subtest: activate-header drains through the real service, IPC gate, and before-quit order
    ok 5 - activate-header drains through the real service, IPC gate, and before-quit order
      ---
      duration_ms: 47.955726
      type: 'test'
      ...
# NATIVE_PAIRING_SHUTDOWN activate-body
    # Subtest: activate-body drains through the real service, IPC gate, and before-quit order
    ok 6 - activate-body drains through the real service, IPC gate, and before-quit order
      ---
      duration_ms: 35.348479
      type: 'test'
      ...
# NATIVE_PAIRING_SHUTDOWN cancel-header
    # Subtest: cancel-header drains through the real service, IPC gate, and before-quit order
    ok 7 - cancel-header drains through the real service, IPC gate, and before-quit order
      ---
      duration_ms: 37.173818
      type: 'test'
      ...
# NATIVE_PAIRING_SHUTDOWN cancel-body
    # Subtest: cancel-body drains through the real service, IPC gate, and before-quit order
    ok 8 - cancel-body drains through the real service, IPC gate, and before-quit order
      ---
      duration_ms: 46.015372
      type: 'test'
      ...
# NATIVE_PAIRING_SHUTDOWN never-settling-reader-cancel
    # Subtest: never-settling-reader-cancel drains through the real service, IPC gate, and before-quit order
    ok 9 - never-settling-reader-cancel drains through the real service, IPC gate, and before-quit order
      ---
      duration_ms: 40.032213
      type: 'test'
      ...
# NATIVE_PAIRING_SHUTDOWN never-settling-body-cancel
    # Subtest: never-settling-body-cancel drains through the real service, IPC gate, and before-quit order
    ok 10 - never-settling-body-cancel drains through the real service, IPC gate, and before-quit order
      ---
      duration_ms: 46.077329
      type: 'test'
      ...
    1..10
ok 1 - desktop pairing service IPC native shutdown lifecycle
  ---
  duration_ms: 428.312905
  type: 'suite'
  ...
1..1
# tests 10
# suites 1
# pass 10
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 841.94462

[7/336] apps/desktop/src/preload-bridge.test.ts
TAP version 13
# Subtest: desktop preload bridge
    # Subtest: exposes only the narrow frozen namespaces
    ok 1 - exposes only the narrow frozen namespaces
      ---
      duration_ms: 1.92689
      type: 'test'
      ...
    # Subtest: maps profile and main-process authentication operations to fixed channels
    ok 2 - maps profile and main-process authentication operations to fixed channels
      ---
      duration_ms: 0.733621
      type: 'test'
      ...
    # Subtest: does not expose Electron event objects to deep-link listeners
    ok 3 - does not expose Electron event objects to deep-link listeners
      ---
      duration_ms: 0.374099
      type: 'test'
      ...
    # Subtest: buffers startup and second-instance deep links until the renderer subscribes
    ok 4 - buffers startup and second-instance deep links until the renderer subscribes
      ---
      duration_ms: 0.309097
      type: 'test'
      ...
    1..4
ok 1 - desktop preload bridge
  ---
  duration_ms: 4.732082
  type: 'suite'
  ...
1..1
# tests 4
# suites 1
# pass 4
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 248.632298

[8/336] apps/desktop/src/profile-store.test.ts
TAP version 13
# Subtest: desktop profile store
    # Subtest: matches the shared canonical origin parity table at the persistence boundary
    ok 1 - matches the shared canonical origin parity table at the persistence boundary
      ---
      duration_ms: 111.348098
      type: 'test'
      ...
    # Subtest: persists validated profiles and active selection
    ok 2 - persists validated profiles and active selection
      ---
      duration_ms: 30.246024
      type: 'test'
      ...
    # Subtest: encrypts credentials before writing app-owned storage
    ok 3 - encrypts credentials before writing app-owned storage
      ---
      duration_ms: 22.549554
      type: 'test'
      ...
    # Subtest: atomically refuses activation when the credential origin differs from the profile origin
    ok 4 - atomically refuses activation when the credential origin differs from the profile origin
      ---
      duration_ms: 34.479451
      type: 'test'
      ...
    # Subtest: serializes concurrent credential writes with last-write semantics
    ok 5 - serializes concurrent credential writes with last-write semantics
      ---
      duration_ms: 21.916177
      type: 'test'
      ...
    # Subtest: orders concurrent credential writes and removals by invocation
    ok 6 - orders concurrent credential writes and removals by invocation
      ---
      duration_ms: 37.860049
      type: 'test'
      ...
    # Subtest: serializes concurrent paired replacements without mixing profile and credential generations
    ok 7 - serializes concurrent paired replacements without mixing profile and credential generations
      ---
      duration_ms: 33.605941
      type: 'test'
      ...
    # Subtest: commits encrypted pending revocation material atomically with B and unlinks A only after durable completion
    ok 8 - commits encrypted pending revocation material atomically with B and unlinks A only after durable completion
      ---
      duration_ms: 46.554471
      type: 'test'
      ...
    # Subtest: migrates legacy fixed credentials through the atomic state pointer and removes the old slot
    ok 9 - migrates legacy fixed credentials through the atomic state pointer and removes the old slot
      ---
      duration_ms: 10.560751
      type: 'test'
      ...
    # Subtest: migrates the exact-head numeric unsealed journal only when its valid mirror matches exactly
    ok 10 - migrates the exact-head numeric unsealed journal only when its valid mirror matches exactly
      ---
      duration_ms: 8.01855
      type: 'test'
      ...
    # Subtest: settles conditional credential removal and profile removal in the former lock-order interleaving
    ok 11 - settles conditional credential removal and profile removal in the former lock-order interleaving
      ---
      duration_ms: 38.29973
      type: 'test'
      ...
    # Subtest: refuses plaintext fallback when encryption is unavailable or basic_text
    ok 12 - refuses plaintext fallback when encryption is unavailable or basic_text
      ---
      duration_ms: 1.561874
      type: 'test'
      ...
    # Subtest: rejects unsafe endpoints and path-like profile identifiers
    ok 13 - rejects unsafe endpoints and path-like profile identifiers
      ---
      duration_ms: 14.97463
      type: 'test'
      ...
    # Subtest: removes an active profile despite a corrupt-json credential failure
    ok 14 - removes an active profile despite a corrupt-json credential failure
      ---
      duration_ms: 43.107812
      type: 'test'
      ...
    # Subtest: removes an active profile despite a decrypt credential failure
    ok 15 - removes an active profile despite a decrypt credential failure
      ---
      duration_ms: 33.65625
      type: 'test'
      ...
    # Subtest: preserves the complete profile and credential when state publication fails before commit
    ok 16 - preserves the complete profile and credential when state publication fails before commit
      ---
      duration_ms: 33.622695
      type: 'test'
      ...
    # Subtest: preserves the complete profile and credential when precommit origin cleanup fails
    ok 17 - preserves the complete profile and credential when precommit origin cleanup fails
      ---
      duration_ms: 42.796394
      type: 'test'
      ...
    # Subtest: keeps A authoritative across every injected pre-commit paired replacement failure
    ok 18 - keeps A authoritative across every injected pre-commit paired replacement failure
      ---
      duration_ms: 137.146821
      type: 'test'
      ...
# NATIVE_CATEGORY barriers expected=13 executed=13
    # Subtest: fails closed before C and preserves fully verified B when the C flush fails
    ok 19 - fails closed before C and preserves fully verified B when the C flush fails
      ---
      duration_ms: 463.440912
      type: 'test'
      ...
    # Subtest: treats mirror replace and directory-flush failures after the journal commit as recoverable mirror failures
    ok 20 - treats mirror replace and directory-flush failures after the journal commit as recoverable mirror failures
      ---
      duration_ms: 68.193633
      type: 'test'
      ...
# NATIVE_CATEGORY transaction-boundaries expected=18 executed=18
    # Subtest: recovers real process crashes as complete A before the pointer commit and complete B after it
    ok 21 - recovers real process crashes as complete A before the pointer commit and complete B after it
      ---
      duration_ms: 4576.99352
      type: 'test'
      ...
# NATIVE_SCENARIO detach-crash
# NATIVE_SCENARIO detach-crash
# NATIVE_SCENARIO detach-crash
# NATIVE_SCENARIO detach-crash
# NATIVE_SCENARIO detach-crash
# NATIVE_SCENARIO detach-crash
# NATIVE_SCENARIO detach-crash
# NATIVE_SCENARIO detach-crash
# NATIVE_SCENARIO detach-crash
# NATIVE_SCENARIO detach-crash
# NATIVE_SCENARIO detach-crash
# NATIVE_SCENARIO detach-crash
# NATIVE_SCENARIO detach-crash
    # Subtest: recovers profile deletion crashes as active A or detached pending A at the journal commit
    ok 22 - recovers profile deletion crashes as active A or detached pending A at the journal commit
      ---
      duration_ms: 3361.038752
      type: 'test'
      ...
# NATIVE_CATEGORY bootstrap-migration expected=39 executed=39
    # Subtest: recovers every first bootstrap and v1/v2 migration child-process kill without activating prepared B
    ok 23 - recovers every first bootstrap and v1/v2 migration child-process kill without activating prepared B
      ---
      duration_ms: 8949.74151
      type: 'test'
      ...
# NATIVE_CATEGORY verified-handle-swap expected=2 executed=2
    # Subtest: binds verified prepared bytes to one handle across same-size swaps and path-restoration ABA
    ok 24 - binds verified prepared bytes to one handle across same-size swaps and path-restoration ABA
      ---
      duration_ms: 66.830828
      type: 'test'
      ...
    # Subtest: recovers a pointer-rollback durability view as complete A or complete B
    ok 25 - recovers a pointer-rollback durability view as complete A or complete B
      ---
      duration_ms: 34.896572
      type: 'test'
      ...
    # Subtest: recovers a missing-target durability view as complete A or complete B
    ok 26 - recovers a missing-target durability view as complete A or complete B
      ---
      duration_ms: 30.133239
      type: 'test'
      ...
    # Subtest: recovers a state-before-journal durability view as complete A or complete B
    ok 27 - recovers a state-before-journal durability view as complete A or complete B
      ---
      duration_ms: 34.027008
      type: 'test'
      ...
# NATIVE_SCENARIO mirror-repair
    # Subtest: recovers the authoritative encrypted journal before a missing mirror
    ok 28 - recovers the authoritative encrypted journal before a missing mirror
      ---
      duration_ms: 40.738238
      type: 'test'
      ...
# NATIVE_SCENARIO mirror-repair
    # Subtest: recovers the authoritative encrypted journal before a truncated mirror
    ok 29 - recovers the authoritative encrypted journal before a truncated mirror
      ---
      duration_ms: 33.508048
      type: 'test'
      ...
# NATIVE_SCENARIO mirror-repair
    # Subtest: recovers the authoritative encrypted journal before a malformed mirror
    ok 30 - recovers the authoritative encrypted journal before a malformed mirror
      ---
      duration_ms: 37.732266
      type: 'test'
      ...
# NATIVE_SCENARIO mirror-repair
    # Subtest: recovers the authoritative encrypted journal before a stale mirror
    ok 31 - recovers the authoritative encrypted journal before a stale mirror
      ---
      duration_ms: 41.230109
      type: 'test'
      ...
# NATIVE_SCENARIO mirror-repair
    # Subtest: recovers the authoritative encrypted journal before a schema-invalid mirror
    ok 32 - recovers the authoritative encrypted journal before a schema-invalid mirror
      ---
      duration_ms: 39.016697
      type: 'test'
      ...
# NATIVE_SCENARIO mirror-repair
    # Subtest: recovers the authoritative encrypted journal before a attacker-modified mirror
    ok 33 - recovers the authoritative encrypted journal before a attacker-modified mirror
      ---
      duration_ms: 37.926513
      type: 'test'
      ...
    # Subtest: fails with one fixed redacted error when neither mirror nor journal authenticates
    ok 34 - fails with one fixed redacted error when neither mirror nor journal authenticates
      ---
      duration_ms: 28.731344
      type: 'test'
      ...
    # Subtest: selects a lossless newest valid generation and survives alternate-slot rollback
    ok 35 - selects a lossless newest valid generation and survives alternate-slot rollback
      ---
      duration_ms: 35.245961
      type: 'test'
      ...
# NATIVE_CATEGORY reordered-visibility expected=11 executed=11
    # Subtest: runs every native child-termination visibility fixture with an explicit scenario count
    ok 36 - runs every native child-termination visibility fixture with an explicit scenario count
      ---
      duration_ms: 2855.113743
      type: 'test'
      ...
    # Subtest: removes an orphan credential before allowing same-ID recreation
    ok 37 - removes an orphan credential before allowing same-ID recreation
      ---
      duration_ms: 26.473691
      type: 'test'
      ...
    1..37
ok 1 - desktop profile store
  ---
  duration_ms: 21466.583676
  type: 'suite'
  ...
1..1
# tests 37
# suites 1
# pass 37
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 21770.581458

[9/336] apps/desktop/src/security.test.ts
TAP version 13
# Subtest: desktop URL security
    # Subtest: matches the shared canonical origin parity table
    ok 1 - matches the shared canonical origin parity table
      ---
      duration_ms: 2.694415
      type: 'test'
      ...
    # Subtest: only accepts HTTPS and loopback HTTP API endpoints
    ok 2 - only accepts HTTPS and loopback HTTP API endpoints
      ---
      duration_ms: 0.412731
      type: 'test'
      ...
    # Subtest: denies unsafe external browser schemes and credential-bearing URLs
    ok 3 - denies unsafe external browser schemes and credential-bearing URLs
      ---
      duration_ms: 0.478243
      type: 'test'
      ...
    # Subtest: requires an exact loopback development origin
    ok 4 - requires an exact loopback development origin
      ---
      duration_ms: 0.568533
      type: 'test'
      ...
    # Subtest: retains IPC trust for hash-routed packaged renderer URLs only
    ok 5 - retains IPC trust for hash-routed packaged renderer URLs only
      ---
      duration_ms: 0.210394
      type: 'test'
      ...
    # Subtest: allowlists custom protocol actions and extracts them from argv
    ok 6 - allowlists custom protocol actions and extracts them from argv
      ---
      duration_ms: 0.496197
      type: 'test'
      ...
    # Subtest: accepts a normal internal dashboard route from an open deep link
    ok 7 - accepts a normal internal dashboard route from an open deep link
      ---
      duration_ms: 1.788532
      type: 'test'
      ...
    # Subtest: revalidates open links after canonical serialization
    ok 8 - revalidates open links after canonical serialization
      ---
      duration_ms: 1.727819
      type: 'test'
      ...
    # Subtest: rejects encoded delimiters combined with encoded traversal
    ok 9 - rejects encoded delimiters combined with encoded traversal
      ---
      duration_ms: 0.997303
      type: 'test'
      ...
    # Subtest: rejects malformed and unsafe open deep-link paths
    ok 10 - rejects malformed and unsafe open deep-link paths
      ---
      duration_ms: 1.10753
      type: 'test'
      ...
    # Subtest: publishes a restrictive production policy
    ok 11 - publishes a restrictive production policy
      ---
      duration_ms: 0.276677
      type: 'test'
      ...
    # Subtest: relaxes inline scripts only while Vite serves the development renderer
    ok 12 - relaxes inline scripts only while Vite serves the development renderer
      ---
      duration_ms: 0.174627
      type: 'test'
      ...
    1..12
ok 1 - desktop URL security
  ---
  duration_ms: 12.560471
  type: 'suite'
  ...
1..1
# tests 12
# suites 1
# pass 12
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 302.251622

[10/336] apps/desktop/src/vite-file-system-url.test.ts
TAP version 13
# Subtest: Vite filesystem renderer URLs
    # Subtest: preserves an absolute POSIX path after the /@fs/ prefix
    ok 1 - preserves an absolute POSIX path after the /@fs/ prefix
      ---
      duration_ms: 0.818469
      type: 'test'
      ...
    # Subtest: normalizes a Windows drive-letter path and separators
    ok 2 - normalizes a Windows drive-letter path and separators
      ---
      duration_ms: 0.200705
      type: 'test'
      ...
    1..2
ok 1 - Vite filesystem renderer URLs
  ---
  duration_ms: 2.163122
  type: 'suite'
  ...
1..1
# tests 2
# suites 1
# pass 2
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 245.621409

[11/336] apps/desktop/src/window-options.test.ts
TAP version 13
# Subtest: desktop BrowserWindow security
    # Subtest: uses the production 1280x820 size with safe minimum dimensions
    ok 1 - uses the production 1280x820 size with safe minimum dimensions
      ---
      duration_ms: 1.312964
      type: 'test'
      ...
    # Subtest: isolates and sandboxes the renderer without Node or webviews
    ok 2 - isolates and sandboxes the renderer without Node or webviews
      ---
      duration_ms: 0.19804
      type: 'test'
      ...
    # Subtest: uses the native inset title bar only on macOS
    ok 3 - uses the native inset title bar only on macOS
      ---
      duration_ms: 0.140904
      type: 'test'
      ...
    1..3
ok 1 - desktop BrowserWindow security
  ---
  duration_ms: 2.71312
  type: 'suite'
  ...
1..1
# tests 3
# suites 1
# pass 3
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 243.155306

[12/336] packages/api/test/agentLoginRoutes.test.ts
TAP version 13
# Subtest: agent login session manager
    # Subtest: builds an allowlisted Docker login container without forwarding host secrets
    ok 1 - builds an allowlisted Docker login container without forwarding host secrets
      ---
      duration_ms: 3.118278
      type: 'test'
      ...
    # Subtest: maps a ProPR-managed account to the managed host root and marks its container ownership as safe to normalize
    ok 2 - maps a ProPR-managed account to the managed host root and marks its container ownership as safe to normalize
      ---
      duration_ms: 1.314296
      type: 'test'
      ...
    # Subtest: creates a ProPR-managed credential directory before starting Docker
    ok 3 - creates a ProPR-managed credential directory before starting Docker
      ---
      duration_ms: 2.289969
      type: 'test'
      ...
    # Subtest: fails clearly instead of resolving a default home path inside a containerized API
    ok 4 - fails clearly instead of resolving a default home path inside a containerized API
      ---
      duration_ms: 0.658611
      type: 'test'
      ...
    # Subtest: rejects unsafe credential roots and option-like image names
    ok 5 - rejects unsafe credential roots and option-like image names
      ---
      duration_ms: 0.487301
      type: 'test'
      ...
    # Subtest: streams sanitized output, accepts input, and records successful completion
    ok 6 - streams sanitized output, accepts input, and records successful completion
      ---
      duration_ms: 1.718902
      type: 'test'
      ...
    # Subtest: prevents concurrent logins that write the same credential directory
    ok 7 - prevents concurrent logins that write the same credential directory
      ---
      duration_ms: 0.698125
      type: 'test'
      ...
    # Subtest: pulls a missing agent image before creating the login container
    ok 8 - pulls a missing agent image before creating the login container
      ---
      duration_ms: 0.708674
      type: 'test'
      ...
    # Subtest: renews the session deadline when the user sends input
    ok 9 - renews the session deadline when the user sends input
      ---
      duration_ms: 0.667387
      type: 'test'
      ...
    # Subtest: sweeps only orphaned login containers from the current stack scope
    ok 10 - sweeps only orphaned login containers from the current stack scope
      ---
      duration_ms: 0.525702
      type: 'test'
      ...
    1..10
ok 1 - agent login session manager
  ---
  duration_ms: 13.545144
  type: 'suite'
  ...
# Subtest: agent login routes
    # Subtest: starts and returns only the requesting user login session
    ok 1 - starts and returns only the requesting user login session
      ---
      duration_ms: 0.82974
      type: 'test'
      ...
    # Subtest: accepts the same agent alias on start and follow-up calls, including while disabled
    ok 2 - accepts the same agent alias on start and follow-up calls, including while disabled
      ---
      duration_ms: 0.628605
      type: 'test'
      ...
    # Subtest: rejects interactive login for an unsupported agent type
    ok 3 - rejects interactive login for an unsupported agent type
      ---
      duration_ms: 0.491969
      type: 'test'
      ...
    1..3
ok 2 - agent login routes
  ---
  duration_ms: 2.129149
  type: 'suite'
  ...
# [2026-09-01 00:17:38.030 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-FLAvtJ/012-agentLoginRoutes.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-09-01 00:17:38.042 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# [2026-09-01 00:17:38.042 +0000] �[32mINFO�[39m: �[36mShutting down queue...�[39m
# [2026-09-01 00:17:38.042 +0000] �[32mINFO�[39m: �[36mQueue was never initialized, nothing to shutdown�[39m
1..2
# tests 13
# suites 2
# pass 13
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2331.083316

[13/336] packages/api/test/agentRuntimeRoutes.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.500941
      type: 'test'
      ...
    # Subtest: persists a failed state when queue submission fails
    ok 2 - persists a failed state when queue submission fails
      ---
      duration_ms: 0.917645
      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.869445
      type: 'test'
      ...
    # Subtest: times out slow runtime package validation before queueing
    ok 4 - times out slow runtime package validation before queueing
      ---
      duration_ms: 8.277349
      type: 'test'
      ...
    # Subtest: returns package suggestions from configured runtimes
    ok 5 - returns package suggestions from configured runtimes
      ---
      duration_ms: 1.029414
      type: 'test'
      ...
    # Subtest: enforces PROPR_ADMIN_USERS when configured
    ok 6 - enforces PROPR_ADMIN_USERS when configured
      ---
      duration_ms: 0.464117
      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.266799
      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.378678
      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.478053
      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: 4.443283
      type: 'test'
      ...
    # Subtest: resolves the runtime build queue lazily when queueing
    ok 11 - resolves the runtime build queue lazily when queueing
      ---
      duration_ms: 1.023583
      type: 'test'
      ...
    # Subtest: reports apply load failures through the route response
    ok 12 - reports apply load failures through the route response
      ---
      duration_ms: 0.411168
      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.453758
      type: 'test'
      ...
    # Subtest: rejects runtime verification without runtime-management permission
    ok 14 - rejects runtime verification without runtime-management permission
      ---
      duration_ms: 0.270004
      type: 'test'
      ...
    1..14
ok 1 - agent runtime package routes
  ---
  duration_ms: 25.553335
  type: 'suite'
  ...
# [2026-09-01 00:17:40.155 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-FLAvtJ/013-agentRuntimeRoutes.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-09-01 00:17:40.177 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..1
# tests 14
# suites 1
# pass 14
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2121.927494

[14/336] packages/api/test/attachmentUploadCleanup.test.ts
TAP version 13
# Subtest: upload handler removes Multer files rejected before attachment processing
ok 1 - upload handler removes Multer files rejected before attachment processing
  ---
  duration_ms: 10.662444
  type: 'test'
  ...
# Subtest: attachment processing removes temporary and final files when persistence fails
ok 2 - attachment processing removes temporary and final files when persistence fails
  ---
  duration_ms: 5.658039
  type: 'test'
  ...
# Subtest: temporary cleanup refuses paths outside its configured root
ok 3 - temporary cleanup refuses paths outside its configured root
  ---
  duration_ms: 0.709076
  type: 'test'
  ...
# Subtest: temporary cleanup rejects dot-segment paths that resolve above its root
ok 4 - temporary cleanup rejects dot-segment paths that resolve above its root
  ---
  duration_ms: 0.542794
  type: 'test'
  ...
# Subtest: attachment processing rejects path-like draft IDs and still cleans its temp file
ok 5 - attachment processing rejects path-like draft IDs and still cleans its temp file
  ---
  duration_ms: 2.733548
  type: 'test'
  ...
# [2026-09-01 00:17:42.419 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-FLAvtJ/014-attachmentUploadCleanup.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-09-01 00:17:42.439 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..5
# tests 5
# suites 0
# pass 5
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2145.956985

[15/336] packages/api/test/authGithubTokens.test.ts
TAP version 13
# Refreshing GitHub token for user octocat (force=true)
# Successfully refreshed GitHub token for user octocat
# Refreshing GitHub token for user octocat (force=true)
# GitHub token refresh failed with status 503
# Refreshing GitHub token for user octocat (force=true)
# Subtest: isGitHubTokenExpired handles missing, future, exact, and past expiry values
ok 1 - isGitHubTokenExpired handles missing, future, exact, and past expiry values
  ---
  duration_ms: 2.575461
  type: 'test'
  ...
# Subtest: ensureAuthenticated refreshes an expired GitHub token before continuing
ok 2 - ensureAuthenticated refreshes an expired GitHub token before continuing
  ---
  duration_ms: 5.414284
  type: 'test'
  ...
# Subtest: ensureAuthenticated reports a temporary error when refresh fails recoverably
ok 3 - ensureAuthenticated reports a temporary error when refresh fails recoverably
  ---
  duration_ms: 1.264893
  type: 'test'
  ...
# Successfully refreshed GitHub token for user octocat
# Saved refreshed GitHub token for concurrent request by user octocat
# Refreshing GitHub token for user octocat (force=true)
# GitHub token refresh response missing access_token
# Refreshing GitHub token for user octocat (force=true)
# GitHub token refresh error: bad_refresh_token - The refresh token is invalid.
# Marked GitHub OAuth session for user octocat as requiring re-authentication (bad_refresh_token)
# GitHub token expired or revoked, attempting token refresh
# Refreshing GitHub token for user octocat (force=true)
# Successfully refreshed GitHub token for user octocat
# Token refresh successful, client should retry
# Subtest: ensureAuthenticated coalesces concurrent expired-token refreshes for one session
ok 4 - ensureAuthenticated coalesces concurrent expired-token refreshes for one session
  ---
  duration_ms: 10.739441
  type: 'test'
  ...
# Subtest: ensureAuthenticated rejects an expired GitHub token with no refresh token
ok 5 - ensureAuthenticated rejects an expired GitHub token with no refresh token
  ---
  duration_ms: 0.776461
  type: 'test'
  ...
# Subtest: ensureAuthenticated reports a temporary error when refresh omits an access token
ok 6 - ensureAuthenticated reports a temporary error when refresh omits an access token
  ---
  duration_ms: 0.793572
  type: 'test'
  ...
# Subtest: ensureAuthenticated clears the session after an unrecoverable refresh error
ok 7 - ensureAuthenticated clears the session after an unrecoverable refresh error
  ---
  duration_ms: 1.14008
  type: 'test'
  ...
# Subtest: GitHub route auth error emits TOKEN_REFRESHED after a successful refresh
ok 8 - GitHub route auth error emits TOKEN_REFRESHED after a successful refresh
  ---
  duration_ms: 1.005819
  type: 'test'
  ...
# [2026-09-01 00:17:45.216 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-FLAvtJ/015-authGithubTokens.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-09-01 00:17:45.234 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..8
# tests 8
# suites 0
# pass 8
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2647.47158

[16/336] packages/api/test/authRedirect.test.ts
TAP version 13
# Subtest: auth redirect allowlist treats FRONTEND_URL as exact host only
ok 1 - auth redirect allowlist treats FRONTEND_URL as exact host only
  ---
  duration_ms: 45.159719
  type: 'test'
  ...
# Subtest: proxy mode auth redirect fallback returns the hosted UI origin
ok 2 - proxy mode auth redirect fallback returns the hosted UI origin
  ---
  duration_ms: 9.984621
  type: 'test'
  ...
# Subtest: auth redirect allowlist permits subdomains only for explicit wildcard-style hosts
ok 3 - auth redirect allowlist permits subdomains only for explicit wildcard-style hosts
  ---
  duration_ms: 5.280219
  type: 'test'
  ...
# Subtest: auth redirect allowlist permits leading-dot COOKIE_DOMAIN subdomains
ok 4 - auth redirect allowlist permits leading-dot COOKIE_DOMAIN subdomains
  ---
  duration_ms: 4.263805
  type: 'test'
  ...
# Subtest: auth redirect allowlist permits exact additional hosts without permitting their subdomains
ok 5 - auth redirect allowlist permits exact additional hosts without permitting their subdomains
  ---
  duration_ms: 6.421054
  type: 'test'
  ...
# Subtest: auth redirect allowlist permits wildcard entries with protocol prefixes
ok 6 - auth redirect allowlist permits wildcard entries with protocol prefixes
  ---
  duration_ms: 6.094284
  type: 'test'
  ...
# Subtest: auth redirect allowlist rejects invalid URLs and non-http protocols
ok 7 - auth redirect allowlist rejects invalid URLs and non-http protocols
  ---
  duration_ms: 6.313133
  type: 'test'
  ...
# Subtest: auth redirect allowlist only permits cleartext HTTP for localhost
ok 8 - auth redirect allowlist only permits cleartext HTTP for localhost
  ---
  duration_ms: 6.17221
  type: 'test'
  ...
# Subtest: auth redirect allowlist permits configured local IP literals
ok 9 - auth redirect allowlist permits configured local IP literals
  ---
  duration_ms: 5.685861
  type: 'test'
  ...
# Subtest: auth redirect allowlist ignores malformed additional host entries
ok 10 - auth redirect allowlist ignores malformed additional host entries
  ---
  duration_ms: 5.365393
  type: 'test'
  ...
# [2026-09-01 00:17:47.894 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-FLAvtJ/016-authRedirect.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-09-01 00:17:47.986 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..10
# tests 10
# suites 0
# pass 10
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2543.228766

[17/336] packages/api/test/configAgentValidation.antigravity.test.ts
TAP version 13
# Subtest: agent config validation accepts antigravity and rejects gemini for new configs
ok 1 - agent config validation accepts antigravity and rejects gemini for new configs
  ---
  duration_ms: 1615.120695
  type: 'test'
  ...
# [2026-09-01 00:17:50.190 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-FLAvtJ/017-configAgentValidation.antigravity.test.ts/propr.test.sqlite"
#     environment: "test"
1..1
# tests 1
# suites 0
# pass 1
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2196.902279

[18/336] packages/api/test/configReloadSubscription.test.ts
TAP version 13
# Subtest: API config subscription serializes the startup reload with settings updates
ok 1 - API config subscription serializes the startup reload with settings updates
  ---
  duration_ms: 4.967804
  type: 'test'
  ...
# Subtest: API config subscription reloads repository updates
ok 2 - API config subscription reloads repository updates
  ---
  duration_ms: 0.397593
  type: 'test'
  ...
# Subtest: API config subscription ignores unrelated and malformed events
ok 3 - API config subscription ignores unrelated and malformed events
  ---
  duration_ms: 0.434993
  type: 'test'
  ...
# Subtest: a failed API settings reload does not block the next notification
ok 4 - a failed API settings reload does not block the next notification
  ---
  duration_ms: 0.340436
  type: 'test'
  ...
1..4
# tests 4
# suites 0
# pass 4
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 251.730408

[19/336] packages/api/test/configRoutesIndexingSummarization.test.ts
TAP version 13
# [2026-09-01 00:17:52.836 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-FLAvtJ/019-configRoutesIndexingSummarization.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-09-01 00:17:52.864 +0000] �[32mINFO�[39m: �[36mRunning database migrations...�[39m
# Subtest: postSummarizationSettings trims model-specific aliases before saving
ok 1 - postSummarizationSettings trims model-specific aliases before saving
  

...(truncated)

View Workflow

@integry

integry commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Implement only the bounded test-fixture correction F37 on exact head c1f57fa.

Exact Windows ordinary-user job 99690003149 proves the F36 495-second outer bound reaches the final authority-untrusted-system-root scenario, then the child hangs/is killed because its startup environment sets both SystemRoot and WINDIR to a fake root before the pre-import fixture can run.

Required test-only correction:

  • Keep real startup SystemRoot/WINDIR in windowsRootEnvironment(untrusted).
  • Pass an exact-case fixed pre-import marker plus a separate untrusted-root path value owned by the fixture.
  • In the earliest windowsConnectProcessMock.mjs code, before originalSpawnSync capture and before CLI import: validate the exact marker and that the supplied path is the fixture-contained fake root; delete the marker/path variables and every case-insensitive SystemRoot/WINDIR key; then assign canonical SystemRoot and WINDIR to the fake root.
  • Limit this injection to the untrusted-root scenario. Preserve missing-root behavior, normal/mismatch modes, all production code, and all production/outer timeouts.
  • Preserve the expected fail-closed resolver result; authority-untrusted-system-root should assert native stage resolver:global-id.
  • Extend the VM-extracted fixture tests to prove exact marker isolation, case-insensitive root cleanup, marker/path removal, unrelated variable retention, and that the consumer runs before mocks/import.
  • Prove no marker reaches product logic and no real/user config is created or mutated.

The concurrent Full Suite failure in job 99690003098 is an unrelated existing flaky webPushDispatcher assertion (335 other runs passed and the prior exact head passed); do not change API/product code for it.

@propr-dev

propr-dev Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit f3440c0

Summary of Changes

Implemented F37 on exact head c1f57fa2e4bf9a64014ce12aef69bb33d4d454b3.

  • Untrusted launches retain real startup SystemRoot/WINDIR and receive isolated marker/path variables only in that scenario.
  • The pre-import fixture validates the exact marker and fixture-root path, removes all case-insensitive root keys plus marker/path variables, then installs canonical fake roots before mock capture.
  • authority-untrusted-system-root now asserts resolver:global-id.
  • Extended VM tests cover isolation, cleanup, removal, unrelated-variable retention, ordering, and fixture-only config mutation.
  • Production code, timeout values, missing/mismatch behavior, and the unrelated flaky test were untouched.

Validation passed:

  • Focused harness: 9/9
  • Platform-safe Connect: 84/84
  • CLI typecheck
  • Syntax and git diff --check

🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 5m 52s
  • Tokens: 1,691,901 (1,678,268 in / 13,633 out)
  • Cost: $1.72

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

…bb33d4d454b3`.

Implemented F37 on exact head `c1f57fa2e4bf9a64014ce12aef69bb33d4d454b3`.

- Untrusted launches retain real startup `SystemRoot`/`WINDIR` and receive isolated marker/path variables only in that scenario.
- The pre-import fixture validates the exact marker and fixture-root path, removes all case-insensitive root keys plus marker/path variables, then installs canonical fake roots before mock capture.
- `authority-untrusted-system-root` now asserts `resolver:global-id`.
- Extended VM tests cover isolation, cleanup, removal, unrelated-variable retention, ordering, and fixture-only config mutation.
- Production code, timeout values, missing/mismatch behavior, and the unrelated flaky test were untouched.

Validation passed:

- Focused harness: 9/9
- Platform-safe Connect: 84/84
- CLI typecheck
- Syntax and `git diff --check`

PR: #1989
Comment by: @integry (ID: 5486714447)
Model: gpt-5.6-sol
@integry

integry commented Sep 1, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@github-actions

github-actions Bot commented Sep 1, 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 33455409090, attempt 1
Checkout outcome: success

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

--- Release shell script lint ---

--- Toolchain ---
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]: Rimraf versions prior to v4 are no longer supported
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 1136 packages, and audited 1145 packages in 20s

326 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/daemonEventIntake.test.ts test/databaseMigrationGate.test.ts 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/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: 12.328542
      type: 'test'
      ...
    # Subtest: persists a failed state when queue submission fails
    ok 2 - persists a failed state when queue submission fails
      ---
      duration_ms: 1.171012
      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: 1.032603
      type: 'test'
      ...
    # Subtest: times out slow runtime package validation before queueing
    ok 4 - times out slow runtime package validation before queueing
      ---
      duration_ms: 13.413111
      type: 'test'
      ...
    # Subtest: returns package suggestions from configured runtimes
    ok 5 - returns package suggestions from configured runtimes
      ---
      duration_ms: 0.794136
      type: 'test'
      ...
    # Subtest: enforces PROPR_ADMIN_USERS when configured
    ok 6 - enforces PROPR_ADMIN_USERS when configured
      ---
      duration_ms: 0.368019
      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: 2.398088
      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.452025
      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: 3.470995
      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: 7.506257
      type: 'test'
      ...
    # Subtest: resolves the runtime build queue lazily when queueing
    ok 11 - resolves the runtime build queue lazily when queueing
      ---
      duration_ms: 3.026845
      type: 'test'
      ...
    # Subtest: reports apply load failures through the route response
    ok 12 - reports apply load failures through the route response
      ---
      duration_ms: 0.461774
      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.5935
      type: 'test'
      ...
    # Subtest: rejects runtime verification without runtime-management permission
    ok 14 - rejects runtime verification without runtime-management permission
      ---
      duration_ms: 0.364322
      type: 'test'
      ...
    1..14
ok 1 - agent runtime package routes
  ---
  duration_ms: 49.821997
  type: 'suite'
  ...
# [2026-09-01 00:36:50.288 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-09-01 00:36:50.329 +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: 13.070821
  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: 9.635802
  type: 'test'
  ...
# Subtest: temporary cleanup refuses paths outside its configured root
ok 4 - temporary cleanup refuses paths outside its configured root
  ---
  duration_ms: 1.087896
  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.780982
  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: 7.131687
  type: 'test'
  ...
# [2026-09-01 00:36:49.841 +0000] �[32mINFO�[39m: �[36mCreated data directory for SQLite database�[39m
#     directory: "/home/runner/work/propr/propr/data"
# [2026-09-01 00:36:50.306 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-09-01 00:36:50.337 +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: 8.176331
  type: 'test'
  ...
# Subtest: API config subscription reloads repository updates
ok 8 - API config subscription reloads repository updates
  ---
  duration_ms: 0.494137
  type: 'test'
  ...
# Subtest: API config subscription ignores unrelated and malformed events
ok 9 - API config subscription ignores unrelated and malformed events
  ---
  duration_ms: 0.429425
  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.506269
  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: 3.038107
  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.411071
  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.622948
  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: 4.482175
  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.251362
  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.194515
  type: 'test'
  ...
# Subtest: explicit custom GitHub web auth remains supported
ok 17 - explicit custom GitHub web auth remains supported
  ---
  duration_ms: 0.182973
  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: 1.719054
  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.755336
  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: 1.086787
  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: 52.223857
  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: 1.219096
  type: 'test'
  ...
# Subtest: accepts Docker IDs and ProPR-generated container names
ok 23 - accepts Docker IDs and ProPR-generated container names
  ---
  duration_ms: 1.736459
  type: 'test'
  ...
# Subtest: rejects container references that could be parsed as options or shell syntax
ok 24 - rejects container references that could be parsed as options or shell syntax
  ---
  duration_ms: 0.248826
  type: 'test'
  ...
# Subtest: production subprocess call sites do not invoke a command shell
ok 25 - production subprocess call sites do not invoke a command shell
  ---
  duration_ms: 114.052012
  type: 'test'
  ...
# Subtest: no-shell guard rejects aliases and enabled shell options
ok 26 - no-shell guard rejects aliases and enabled shell options
  ---
  duration_ms: 3.919435
  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.373798
      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.097646
      type: 'test'
      ...
    # Subtest: grants full admin permissions to PROPR_ADMIN_USERS
    ok 3 - grants full admin permissions to PROPR_ADMIN_USERS
      ---
      duration_ms: 6.621504
      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: 3.669019
      type: 'test'
      ...
    # Subtest: resolves demo users without installation permissions
    ok 5 - resolves demo users without installation permissions
      ---
      duration_ms: 4.034384
      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: 9.398621
      type: 'test'
      ...
    # Subtest: current-user responses expose capabilities without OAuth credentials
    ok 7 - current-user responses expose capabilities without OAuth credentials
      ---
      duration_ms: 4.255478
      type: 'test'
      ...
    1..7
ok 27 - instance authorization
  ---
  duration_ms: 53.404334
  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.259751
      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: 15.250573
      type: 'test'
      ...
    # Subtest: adds explicit members and writes an audit entry
    ok 3 - adds explicit members and writes an audit entry
      ---
      duration_ms: 13.715164
      type: 'test'
      ...
    # Subtest: keeps environment authority separate from durable role assignments
    ok 4 - keeps environment authority separate from durable role assignments
      ---
      duration_ms: 6.247984
      type: 'test'
      ...
    # Subtest: prevents removing the last durable administrator
    ok 5 - prevents removing the last durable administrator
      ---
      duration_ms: 14.292917
      type: 'test'
      ...
    # Subtest: allows role changes once another administrator exists
    ok 6 - allows role changes once another administrator exists
      ---
      duration_ms: 8.674032
      type: 'test'
      ...
    1..6
ok 28 - instance member service
  ---
  duration_ms: 64.078837
  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: 3.678156
      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: 13.690277
      type: 'test'
      ...
    1..2
ok 29 - instance catalog
  ---
  duration_ms: 17.554302
  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: 4.374331
      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: 5.31262
      type: 'test'
      ...
    # Subtest: rejects GitHub usernames with trailing or consecutive hyphens
    ok 3 - rejects GitHub usernames with trailing or consecutive hyphens
      ---
      duration_ms: 2.537557
      type: 'test'
      ...
    1..3
ok 30 - instance admin routes
  ---
  duration_ms: 12.417801
  type: 'suite'
  ...
# [2026-09-01 00:36:52.716 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-09-01 00:36:52.856 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# Subtest: direct API execution binds to loopback by default
ok 31 - direct API execution binds to loopback by default
  ---
  duration_ms: 1.794318
  type: 'test'
  ...
# Subtest: containerized API execution remains reachable through its published port
ok 32 - containerized API execution remains reachable through its published port
  ---
  duration_ms: 0.202058
  type: 'test'
  ...
# Subtest: an explicit API listen host overrides environment defaults
ok 33 - an explicit API listen host overrides environment defaults
  ---
  duration_ms: 0.1816
  type: 'test'
  ...
# Subtest: GitHub OAuth authorization stores and sends a random state nonce
ok 34 - GitHub OAuth authorization stores and sends a random state nonce
  ---
  duration_ms: 4.186649
  type: 'test'
  ...
# Subtest: GitHub OAuth callback rejects a mismatched state before token exchange
ok 35 - GitHub OAuth callback rejects a mismatched state before token exchange
  ---
  duration_ms: 2.019646
  type: 'test'
  ...
# [2026-09-01 00:36:55.515 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-09-01 00:36:55.516 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# Subtest: returns a standard 429 response after the configured quota
ok 36 - returns a standard 429 response after the configured quota
  ---
  duration_ms: 144.205227
  type: 'test'
  ...
# Subtest: the real global API limiter keeps no-store headers when saturated
ok 37 - the real global API limiter keeps no-store headers when saturated
  ---
  duration_ms: 28.146454
  type: 'test'
  ...
# Subtest: route limiting, 503, and errors inherit the earliest API no-store boundary
ok 38 - route limiting, 503, and errors inherit the earliest API no-store boundary
  ---
  duration_ms: 34.53586
  type: 'test'
  ...
# Subtest: does not charge CORS preflight requests against the quota
ok 39 - does not charge CORS preflight requests against the quota
  ---
  duration_ms: 21.965131
  type: 'test'
  ...
# Subtest: route-level webhook limiting preserves alternate-case raw bodies and rejects excess requests before parsing
ok 40 - route-level webhook limiting preserves alternate-case raw bodies and rejects excess requests before parsing
  ---
  duration_ms: 52.930626
  type: 'test'
  ...
# Subtest: does not let an unconfigured private peer rotate quota buckets with X-Forwarded-For
ok 41 - does not let an unconfigured private peer rotate quota buckets with X-Forwarded-For
  ---
  duration_ms: 27.112101
  type: 'test'
  ...
# Subtest: tunnel trust does not let an unrelated private peer rotate quota buckets
ok 42 - tunnel trust does not let an unrelated private peer rotate quota buckets
  ---
  duration_ms: 35.425527
  type: 'test'
  ...
# Subtest: trusted TLS proxy preserves per-client quotas and secure session cookies
ok 43 - trusted TLS proxy preserves per-client quotas and secure session cookies
  ---
  duration_ms: 33.117369
  type: 'test'
  ...
# Subtest: resolves secure defaults and explicit positive-integer overrides
ok 44 - resolves secure defaults and explicit positive-integer overrides
  ---
  duration_ms: 0.771847
  type: 'test'
  ...
# Subtest: rejects invalid overrides instead of silently disabling protection
ok 45 - rejects invalid overrides instead of silently disabling protection
  ---
  duration_ms: 3.149445
  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.411962
      type: 'test'
      ...
    # Subtest: members can read only the sanitized catalog endpoints
    ok 2 - members can read only the sanitized catalog endpoints
      ---
      duration_ms: 42.558643
      type: 'test'
      ...
    # Subtest: administrators pass every management guard in the route matrix
    ok 3 - administrators pass every management guard in the route matrix
      ---
      duration_ms: 19.639957
      type: 'test'
      ...
    1..3
ok 46 - assembled instance permission routes
  ---
  duration_ms: 99.358259
  type: 'suite'
  ...
# [2026-09-01 00:36:55.890 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-09-01 00:36:55.984 +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 47 - /api/status omits disabled configured agents
  ---
  duration_ms: 2690.917912
  type: 'test'
  ...
# Subtest: /api/compatibility returns public version contract metadata
ok 48 - /api/compatibility returns public version contract metadata
  ---
  duration_ms: 2.393387
  type: 'test'
  ...
# Subtest: /api/desktop/discovery returns the bounded public identity and runtime origin
ok 49 - /api/desktop/discovery returns the bounded public identity and runtime origin
  ---
  duration_ms: 2.447889
  type: 'test'
  ...
# Subtest: /api/desktop/discovery redacts identity persistence failures
ok 50 - /api/desktop/discovery redacts identity persistence failures
  ---
  duration_ms: 1.52526
  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 51 - /api/status returns default Claude fallback when no agents are configured
  ---
  duration_ms: 3.488099
  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:306:13)
#     at Object.getStatus (/home/runner/work/propr/propr/packages/api/routes/statusRoutes.ts:215:14)
#     at async readStatus (/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:184:3)
#     at async TestContext.<anonymous> (/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:303: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 52 - /api/status isolates system notification projection failures
  ---
  duration_ms: 5.794382
  type: 'test'
  ...
# Subtest: /api/status surfaces unified agent image outages
ok 53 - /api/status surfaces unified agent image outages
  ---
  duration_ms: 1.502436
  type: 'test'
  ...
# Subtest: /api/status includes warnings field in demo mode
ok 54 - /api/status includes warnings field in demo mode
  ---
  duration_ms: 0.978625
  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 55 - /api/status caches agent health checks briefly
  ---
  duration_ms: 4.660688
  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 56 - /api/status reports resolved auth mode and event intake mode
  ---
  duration_ms: 2.461274
  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 57 - /api/status reports connected intake status when routing state is live
  ---
  duration_ms: 2.202249
  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 58 - /api/status reports disconnected intake status when routing state is down
  ---
  duration_ms: 2.264826
  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 59 - /api/status reports active intake status for polling when the daemon is running
  ---
  duration_ms: 1.993728
  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 60 - /api/status reports disconnected intake status for polling when the daemon is stopped
  ---
  duration_ms: 1.599017
  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 61 - /api/status includes routing state published by the daemon
  ---
  duration_ms: 1.907486
  type: 'test'
  ...
# Subtest: /api/status exposes only validated UI-safe Connect account fields
# 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'
# }
ok 62 - /api/status exposes only validated UI-safe Connect account fields
  ---
  duration_ms: 2.39517
  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 63 - /api/status rejects impossible account dates and preserves valid leap-day instants
  ---
  duration_ms: 5.15705
  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 64 - /api/status drops malformed or disconnected Connect account state without assuming Community
  ---
  duration_ms: 3.846171
  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 65 - /api/status does not expose Connect account state for a non-Connect intake mode
  ---
  duration_ms: 2.487844
  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 66 - /api/status reports connected githubAuth for relay-auth deployments
  ---
  duration_ms: 2.196819
  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 67 - /api/status reports unknown auth mode and disconnected health when the resolver is bypassed
  ---
  duration_ms: 1.860198
  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 omits malformed routing state
ok 68 - /api/status omits malformed routing state
  ---
  duration_ms: 2.335378
  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 omits routing state with a malformed lastAckAt timestamp
ok 69 - /api/status omits routing state with a malformed lastAckAt timestamp
  ---
  duration_ms: 2.196017
  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/p

...(truncated)

View Workflow

@propr-dev

propr-dev Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The reviewed code provides a carefully bounded, secret-free Connect discovery flow with strict endpoint and identity validation. No merge-blocking defect is evident in the supplied portion. However, the diff explicitly omits files and ranges, and nine current-head checks remain pending, so the PR still needs verification completion before merge.

✅ Strict authority validation — Shared canonical parsers reject alternate URL spellings, ports, credentials, paths, Unicode lookalikes, and noncanonical deep-link selectors.

✅ Bounded discovery probing — Responses have time, size, content-type, UTF-8, schema, identity, origin, and compatibility checks, with cancellation on rejection paths.

✅ Defensive public API behavior — Discovery responses and API errors inherit no-store headers, while identity persistence failures return a fixed redacted 503 document.

Merge blockers

No merge blockers.

Suggestions

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

S1: 🟢 Cover parser-level failures

Consider testing unknown options and unexpected positional arguments for connect status --json. The early handling in packages/cli/src/index.ts covers malformed roots, while other invalid syntaxes still use Commander’s normal unstructured error output. Extending the machine-readable contract to those invalid invocations would be useful hardening but is outside the required valid command shape.

S2: 🟢 Reduce fixed test-count brittleness

scripts/verify-platform-safe-connect.mjs and scripts/verify-native-connect-authority.mjs require exact TAP totals. Checking named required cases alongside zero failures/skips could preserve the proof while avoiding unrelated test additions breaking these scripts. This is a maintainability improvement, not a correctness requirement.

Score

The visible implementation is strong and has extensive focused coverage, with no verified blocker. The explicitly partial diff and outstanding platform/package checks constitute a material verification gap.

Score: 7/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 6m 39s
  • Tokens: 98,682 (77,792 in / 20,890 out)
  • Cost: $0.97
  • Review scope: Partial — PR diff files or ranges were unavailable from GitHub or omitted by the configured review context limit.

View Task

Files omitted from review diff

4 files were omitted because patch content was unavailable from GitHub or did not fit the review context budget. Large, binary, generated, and lockfile changes are deprioritized.

  • test/windowsStandardUserConnectHarness.test.ts
  • packages/cli/src/connectWindowsAuthority.ts
  • test/publicInstanceIdentity.test.ts
  • packages/cli/src/connectIdentity.ts

💡 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

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