Skip to content

[Epic] Synthetic Pool Contracts, Selection, Failover, Tooling - #1994

Merged
integry merged 9 commits into
mainfrom
1990-epic-synthetic-pool-eus
Sep 2, 2026
Merged

integry merged 9 commits into
mainfrom
1990-epic-synthetic-pool-eus

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

Synthetic Pool Contracts, Selection, Failover, Tooling

This Epic PR aggregates all changes for the plan: Synthetic Pool Contracts, Selection, Failover, Tooling

Issues in this Epic

Auto-close

When this PR is merged, the following issues will be automatically closed:

Fixes #1990
Fixes #1991
Fixes #1992


Created automatically by ProPR

…hetic-model

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

Implementation completed successfully.
@propr-dev propr-dev Bot added the AI label Aug 30, 2026
@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 33286755204, 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
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 ---

added 982 packages, and audited 988 packages in 22s

300 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: 6.151376
      type: 'test'
      ...
    # Subtest: persists a failed state when queue submission fails
    ok 2 - persists a failed state when queue submission fails
      ---
      duration_ms: 1.458748
      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.127348
      type: 'test'
      ...
    # Subtest: times out slow runtime package validation before queueing
    ok 4 - times out slow runtime package validation before queueing
      ---
      duration_ms: 9.0775
      type: 'test'
      ...
    # Subtest: returns package suggestions from configured runtimes
    ok 5 - returns package suggestions from configured runtimes
      ---
      duration_ms: 0.864227
      type: 'test'
      ...
    # Subtest: enforces PROPR_ADMIN_USERS when configured
    ok 6 - enforces PROPR_ADMIN_USERS when configured
      ---
      duration_ms: 0.415037
      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.344384
      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.495286
      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: 1.190828
      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: 3.474018
      type: 'test'
      ...
    # Subtest: resolves the runtime build queue lazily when queueing
    ok 11 - resolves the runtime build queue lazily when queueing
      ---
      duration_ms: 0.880296
      type: 'test'
      ...
    # Subtest: reports apply load failures through the route response
    ok 12 - reports apply load failures through the route response
      ---
      duration_ms: 0.461854
      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.636581
      type: 'test'
      ...
    # Subtest: rejects runtime verification without runtime-management permission
    ok 14 - rejects runtime verification without runtime-management permission
      ---
      duration_ms: 0.451995
      type: 'test'
      ...
    1..14
ok 1 - agent runtime package routes
  ---
  duration_ms: 29.447942
  type: 'suite'
  ...
# [2026-08-30 01:55:37.437 +0000] �[32mINFO�[39m: �[36mCreated data directory for SQLite database�[39m
#     directory: "/home/runner/work/propr/propr/data"
# [2026-08-30 01:55:37.958 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-30 01:55:37.983 +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.052842
  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.327946
  type: 'test'
  ...
# Subtest: temporary cleanup refuses paths outside its configured root
ok 4 - temporary cleanup refuses paths outside its configured root
  ---
  duration_ms: 0.656248
  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.558995
  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.540041
  type: 'test'
  ...
# [2026-08-30 01:55:38.103 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-30 01:55:38.122 +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.848607
  type: 'test'
  ...
# Subtest: API config subscription reloads repository updates
ok 8 - API config subscription reloads repository updates
  ---
  duration_ms: 0.59858
  type: 'test'
  ...
# Subtest: API config subscription ignores unrelated and malformed events
ok 9 - API config subscription ignores unrelated and malformed events
  ---
  duration_ms: 0.453849
  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.470029
  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.532578
  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.365123
  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.348733
  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.433662
  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.19742
  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.179326
  type: 'test'
  ...
# Subtest: explicit custom GitHub web auth remains supported
ok 17 - explicit custom GitHub web auth remains supported
  ---
  duration_ms: 0.223479
  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.258935
  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.67895
  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: 44.042145
  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: 4.586292
  type: 'test'
  ...
# Subtest: accepts Docker IDs and ProPR-generated container names
ok 22 - accepts Docker IDs and ProPR-generated container names
  ---
  duration_ms: 1.289592
  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.197931
  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: 216.796184
  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: 4.893242
  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: 41.921805
      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: 10.945674
      type: 'test'
      ...
    # Subtest: grants full admin permissions to PROPR_ADMIN_USERS
    ok 3 - grants full admin permissions to PROPR_ADMIN_USERS
      ---
      duration_ms: 4.979875
      type: 'test'
      ...
    # Subtest: resolves durable roles by numeric GitHub ID after a username change
    ok 4 - resolves durable roles by numeric GitHub ID after a username change
      ---
      duration_ms: 4.429686
      type: 'test'
      ...
    # Subtest: resolves demo users without installation permissions
    ok 5 - resolves demo users without installation permissions
      ---
      duration_ms: 3.687498
      type: 'test'
      ...
    # Subtest: permission middleware rejects members with a stable error code
    ok 6 - permission middleware rejects members with a stable error code
      ---
      duration_ms: 3.290926
      type: 'test'
      ...
    # Subtest: current-user responses expose capabilities without OAuth credentials
    ok 7 - current-user responses expose capabilities without OAuth credentials
      ---
      duration_ms: 9.101404
      type: 'test'
      ...
    1..7
ok 26 - instance authorization
  ---
  duration_ms: 83.994883
  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: 14.521573
      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.952289
      type: 'test'
      ...
    # Subtest: adds explicit members and writes an audit entry
    ok 3 - adds explicit members and writes an audit entry
      ---
      duration_ms: 5.485069
      type: 'test'
      ...
    # Subtest: keeps environment authority separate from durable role assignments
    ok 4 - keeps environment authority separate from durable role assignments
      ---
      duration_ms: 4.055075
      type: 'test'
      ...
    # Subtest: prevents removing the last durable administrator
    ok 5 - prevents removing the last durable administrator
      ---
      duration_ms: 5.284855
      type: 'test'
      ...
    # Subtest: allows role changes once another administrator exists
    ok 6 - allows role changes once another administrator exists
      ---
      duration_ms: 9.741742
      type: 'test'
      ...
    1..6
ok 27 - instance member service
  ---
  duration_ms: 57.776342
  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.899414
      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: 2.542606
      type: 'test'
      ...
    1..2
ok 28 - instance catalog
  ---
  duration_ms: 6.602841
  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.112132
      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.361778
      type: 'test'
      ...
    # Subtest: rejects GitHub usernames with trailing or consecutive hyphens
    ok 3 - rejects GitHub usernames with trailing or consecutive hyphens
      ---
      duration_ms: 3.521076
      type: 'test'
      ...
    1..3
ok 29 - instance admin routes
  ---
  duration_ms: 10.161928
  type: 'suite'
  ...
# [2026-08-30 01:55:40.486 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-30 01:55:40.623 +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: 4.385994
  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.227015
  type: 'test'
  ...
# Subtest: an explicit API listen host overrides environment defaults
ok 32 - an explicit API listen host overrides environment defaults
  ---
  duration_ms: 0.196066
  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.819173
  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.796249
  type: 'test'
  ...
# [2026-08-30 01:55:43.065 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-30 01:55:43.066 +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: 93.452985
  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: 16.324957
  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: 34.528676
  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: 30.562858
  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: 16.662926
  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: 30.008711
  type: 'test'
  ...
# Subtest: resolves secure defaults and explicit positive-integer overrides
ok 41 - resolves secure defaults and explicit positive-integer overrides
  ---
  duration_ms: 0.541754
  type: 'test'
  ...
# Subtest: rejects invalid overrides instead of silently disabling protection
ok 42 - rejects invalid overrides instead of silently disabling protection
  ---
  duration_ms: 3.875139
  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: 37.943924
      type: 'test'
      ...
    # Subtest: members can read only the sanitized catalog endpoints
    ok 2 - members can read only the sanitized catalog endpoints
      ---
      duration_ms: 49.859162
      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: 33.8841
      type: 'test'
      ...
    1..3
ok 43 - assembled instance permission routes
  ---
  duration_ms: 123.009961
  type: 'suite'
  ...
# [2026-08-30 01:55:43.728 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-30 01:55:43.847 +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: 2468.389356
  type: 'test'
  ...
# Subtest: /api/compatibility returns public version contract metadata
ok 45 - /api/compatibility returns public version contract metadata
  ---
  duration_ms: 2.718585
  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 46 - /api/status returns default Claude fallback when no agents are configured
  ---
  duration_ms: 2.373039
  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:227:13)
#     at Object.getStatus (/home/runner/work/propr/propr/packages/api/routes/statusRoutes.ts:185:14)
#     at async readStatus (/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:162:3)
#     at async TestContext.<anonymous> (/home/runner/work/propr/propr/packages/api/test/statusRoutes.test.ts:224: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 47 - /api/status isolates system notification projection failures
  ---
  duration_ms: 5.436639
  type: 'test'
  ...
# Subtest: /api/status surfaces unified agent image outages
ok 48 - /api/status surfaces unified agent image outages
  ---
  duration_ms: 1.502751
  type: 'test'
  ...
# Subtest: /api/status includes warnings field in demo mode
ok 49 - /api/status includes warnings field in demo mode
  ---
  duration_ms: 1.041739
  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 50 - /api/status caches agent health checks briefly
  ---
  duration_ms: 3.482795
  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 51 - /api/status reports resolved auth mode and event intake mode
  ---
  duration_ms: 2.403606
  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 52 - /api/status reports connected intake status when routing state is live
  ---
  duration_ms: 3.003669
  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 53 - /api/status reports disconnected intake status when routing state is down
  ---
  duration_ms: 2.607828
  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 54 - /api/status reports active intake status for polling when the daemon is running
  ---
  duration_ms: 2.101711
  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 55 - /api/status reports disconnected intake status for polling when the daemon is stopped
  ---
  duration_ms: 1.696002
  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 56 - /api/status includes routing state published by the daemon
  ---
  duration_ms: 1.713275
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status exposes only validated UI-safe Connect account fields
ok 57 - /api/status exposes only validated UI-safe Connect account fields
  ---
  duration_ms: 1.966519
  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 58 - /api/status rejects impossible account dates and preserves valid leap-day instants
  ---
  duration_ms: 4.263626
  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 59 - /api/status drops malformed or disconnected Connect account state without assuming Community
  ---
  duration_ms: 2.778187
  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 60 - /api/status does not expose Connect account state for a non-Connect intake mode
  ---
  duration_ms: 1.496138
  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 61 - /api/status reports connected githubAuth for relay-auth deployments
  ---
  duration_ms: 1.204152
  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 62 - /api/status reports unknown auth mode and disconnected health when the resolver is bypassed
  ---
  duration_ms: 1.068158
  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 63 - /api/status omits malformed routing state
  ---
  duration_ms: 1.650297
  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 64 - /api/status omits routing state with a malformed lastAckAt timestamp
  ---
  duration_ms: 1.189435
  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 when none is published
ok 65 - /api/status omits routing state when none is published
  ---
  duration_ms: 1.13333
  type: 'test'
  ...
# Subtest: /api/status reports demo auth mode in demo mode
ok 66 - /api/status reports demo auth mode in demo mode
  ---
  duration_ms: 0.670685
  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)
#  

...(truncated)

View Workflow

@propr-dev

propr-dev Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 3ca40b4

Summary of Changes

Fixed the flaky VAPID regression fixture in test/orchestratorConfig.test.mjs.

The generated P-256 private scalar is now padded to VAPID’s required 32-byte width, preventing random “malformed” classifications.

Validation:

  • Focused suite: 56/56 passed
  • git diff --check: passed
  • No commit created

🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @github-actions[bot]
  • Time: 2m 19s
  • Tokens: 572,465 (569,579 in / 2,886 out)
  • Cost: $0.68

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

propr-dev[bot] and others added 3 commits August 30, 2026 01:58
…torConfig.test.mjs](/tmp/git-processor/worktrees/integry/propr/pr-1994-followup-2026-08-30T01-56-25/test/orchestratorConfig.test.mjs:25).

Fixed the flaky VAPID regression fixture in [test/orchestratorConfig.test.mjs](/tmp/git-processor/worktrees/integry/propr/pr-1994-followup-2026-08-30T01-56-25/test/orchestratorConfig.test.mjs:25).

The generated P-256 private scalar is now padded to VAPID’s required 32-byte width, preventing random “malformed” classifications.

Validation:

- Focused suite: 56/56 passed
- `git diff --check`: passed
- No commit created

PR: #1994
Comment by: @github-actions[bot] (ID: 5466109156)
Model: gpt-5.6-sol
…ction, usage

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

Implementation completed successfully.
…lity, and do

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

Implementation completed successfully.
@integry

integry commented Sep 1, 2026

Copy link
Copy Markdown
Owner

/merge

@propr-dev

propr-dev Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from main into 1990-epic-synthetic-pool-eus in commit a85777d

Conflicting Files

  • packages/api/test/routeAuthorization.test.ts

Resolution Summary

Resolved the conflict in routeAuthorization.test.ts.

  • Conflict: The PR added GET/POST authorization tests for /api/config/synthetic-agents, while main added a test for /api/config/agent-tank/usage at the same list position.
  • Resolution: Kept all three route cases.
  • Reason: They cover distinct routes present in the merged route registry. Removing either side would discard valid authorization coverage.

Verification:

  • No live conflict markers remain anywhere in the worktree. Marker-like text found elsewhere is intentional test data or conflict-detection logic.
  • TypeScript parser check passed.
  • Focused authorization tests passed: 4/4.
  • git diff --check passed.
  • No commit was created.

Git still reports the file as UU because git add could not create the linked worktree’s index.lock; its Git metadata is owned by root, while the session runs as node. The file contents are resolved, but the automated system will need to stage it when committing.


🤖 Resolution Details

  • Model: gpt-5.6-sol
  • Time: 2m 50s

View Task Execution


System-triggered merge conflict resolution

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

PR: #1994
Model: gpt-5.6-sol
@integry

integry commented Sep 2, 2026

Copy link
Copy Markdown
Owner
image

2 issues in the pool creation popup:

  1. the model ID field blurs after every keystroke, so I have to bring it to focus again and again to type in the next letter
  2. the Agent Tank warning should only show in case it's not enabled or is inactive (error state, etc)

@propr-dev

propr-dev Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit fba21a1

Summary of Changes

Implemented both pool popup fixes:

  • Virtual model ID input now retains focus while typing by using a stable React key.
  • Agent Tank usage-cap warning now appears only when Agent Tank is disabled, unavailable, or errors.
  • Added regression tests for both behaviors.

Changed:

Validation passed: 475 tests, TypeScript, ESLint, production build, and git diff --check. No commit created.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 5m 0s
  • Tokens: 774,192 (767,396 in / 6,796 out)
  • Cost: $0.83

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

propr-dev[bot] and others added 2 commits September 2, 2026 06:01
Implemented both pool popup fixes:

- Virtual model ID input now retains focus while typing by using a stable React key.
- Agent Tank usage-cap warning now appears only when Agent Tank is disabled, unavailable, or errors.
- Added regression tests for both behaviors.

Changed:

- [SyntheticPoolsSection.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1994-followup-2026-09-02T05-56-05/propr-ui/src/pages/SyntheticPoolsSection.tsx)
- [AiAgentsPage.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1994-followup-2026-09-02T05-56-05/propr-ui/src/pages/AiAgentsPage.tsx)
- [AiAgentsPage.test.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1994-followup-2026-09-02T05-56-05/propr-ui/src/pages/AiAgentsPage.test.tsx)

Validation passed: 475 tests, TypeScript, ESLint, production build, and `git diff --check`. No commit created.

PR: #1994
Comment by: @integry (ID: 5505149025)
Model: gpt-5.6-sol
@integry

integry commented Sep 2, 2026

Copy link
Copy Markdown
Owner

/review opus

@propr-dev

propr-dev Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@integry

integry commented Sep 2, 2026

Copy link
Copy Markdown
Owner

it could also show the Github labels for each synthetic agent and model

image

@propr-dev

propr-dev Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — opus

Overall Evaluation

This PR introduces a large, coherent synthetic-agent ("pool") subsystem spanning shared zod contracts, a separate persisted config document, a central routing service with priority tiers / usage caps / context-aware selection / failover, registry and status integration, API + CLI surfaces, Web UI editors and observability, and documentation. The architecture is broadly sound: routing is centralized rather than duplicated per caller, the virtual identity is kept stable in task records while physical attempts are recorded separately, and the physical member is selected before prompt budgets are computed in the planner and PR-review paths.

Quality is high for a change of this size, but there is one integration gap in the catalog endpoint split that appears to disconnect the new synthetic-aware payload from the Web UI consumers this PR added, plus a number of non-blocking rough edges.

✅ Context constraint is genuinely call-scoped — SyntheticRoutingSession.constrain() (packages/core/src/services/syntheticRoutingService.ts) finalizes the token requirement before the first physical invocation, reselects without counting the pinned member as a failed attempt, and then freezes that requirement for every failover. packages/core/test/syntheticRoutingService.test.ts covers the "priority-100 member is context-ineligible" fallback case directly.

✅ Failover classification is deliberately narrow and tested — isNonRetryableSyntheticFailure distinguishes explicit task cancellation from generic transport aborts, and the test suite asserts both directions (thrown transport AbortError fails over… vs explicit task cancellation error is not retried…), which is the exact place this kind of feature usually gets silently wrong.

✅ Referential integrity across the two config documents is enforced on both sides — validateDirectAgentUpdateIntegrity blocks deleting/renaming a direct agent still referenced by a pool, and validateExecutableSyntheticDefault blocks removing or disabling a synthetic that is the configured default; packages/api/test/syntheticAgents.test.ts exercises the 409 paths.

Merge blockers

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

F1: 🔴 Synthetic catalog payload is unreachable by the UI clients this PR adds

  • Required behavior: Issue Add Web UI, CLI, playground, observability, and documentation for synthetic pools #1992 requires synthetic virtual models to be selectable wherever a routed model is chosen (Coding Agents page, planner/settings selectors, repository model selector), and states that "existing planner selectors can consume the extended instance catalog."
  • Evidence: packages/api/routeRegistry.ts:106-107 rebinds the pre-existing /api/catalog to instanceCatalogRoutes.getLegacyCatalog and exposes the synthetic-aware payload only on the newly added /api/instance/catalog. packages/api/routes/instanceCatalogRoutes.ts:129-134 shows getLegacyCatalog calls sendCatalog(res, /* includeSyntheticAgents */ false), and the new test in packages/api/test/syntheticAgents.test.ts asserts the legacy response contains only the direct agent. The UI consumers added by this PR — propr-ui/src/pages/SettingsPage/useSettingsState.ts (getInstanceCatalog().catch(...), feeding catalogAgents into AIModelSelectionSection) and propr-ui/src/components/Repositories/RepoActionContainer.tsx (getInstanceCatalog() feeding ModelContextSelector) — call an unchanged getInstanceCatalog helper; no changed file in this diff references the string /api/instance/catalog outside routeRegistry.ts and routeAuthorization.test.ts. Since /api/instance/catalog is introduced by this PR, the unchanged client cannot already be pointing at it, so these selectors receive the direct-only legacy payload and silently render zero synthetic options (catalogAgents?.length is still truthy from direct agents, so the fallback in AIModelSelectionSection.tsx does not trigger). The new UI tests (AIModelSelectionSection.test.tsx, ModelContextSelector.test.tsx) inject catalogAgents/agents as props, so they cannot detect the wiring gap.
  • Minimum fix: Point the Web UI instance-catalog client (getInstanceCatalog) at /api/instance/catalog, or serve the synthetic-aware payload on the path that client already uses, and add one test that asserts the endpoint the UI actually calls returns kind: 'synthetic' entries.

Suggestions

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

S1: 🟢 Disabled direct agents disappear from settings selectors

AIModelSelectionSection.tsx now prefers catalogAgents over agents, and instanceCatalogRoutes.ts filters to agent.enabled. The pre-existing disabledOptions split therefore becomes permanently empty whenever any agent is enabled, so a persisted setting such as planner_generation_model that points at a model on a now-disabled agent no longer renders as a (disabled) option — the <select> value simply does not match anything. No silent write occurs, so this is a display regression rather than data loss, but merging the catalog with the disabled direct agents would preserve the previous affordance.

S2: 🟢 Status route infers synthetic support from a test fixture shape

In packages/api/routes/statusRoutes.ts, loadSyntheticAgents = configuredSyntheticLoader ?? (deps.loadAgents ? async () => [] : loadSyntheticAgentConfigs) makes production behavior depend on whether a caller happens to inject loadAgents. Any current or future production call site that injects the direct loader would silently drop synthetic pools from /api/status with no error. An explicit opt-out flag, or updating the affected test fixtures to supply loadSyntheticAgents: async () => [], would remove the coupling.

S3: 🟢 Duplicated conservative-member budget computation, and a changed budget for direct agents

summaryMinerHelpers.ts and summaryMinerDirectories.ts both contain the same ~20-line block that begins a routing session, filters enabled members, and reduces to the smallest-context member. Beyond the duplication, both files swap MODEL_LIMITS[modelId] || MODEL_LIMITS['default'] for getModelHardLimit(budgetModelId), which applies the 0.98 factor and resolves agent:model prefixes. That is arguably more correct, but it silently changes batch budgets for existing direct-agent summarization — most notably when the configured model was already in agent:model form and previously fell through to the small default. Extracting one shared helper and noting the budget change would make the behavioral delta reviewable.

S4: 🟢 additionalEnabledAliases parameter is dead

resolveDefaultAgentAlias in configRoutesAgentsPreparation.ts gained a third parameter, but configRoutesAgents.ts handles the synthetic case separately via resolveUpdatedDefaultAgent and never passes it. Either route the synthetic aliases through the new parameter or drop it.

S5: 🟢 Round-robin cursor increment may race outside SQLite

SyntheticRoutingService.nextCursor performs insert-ignore → select → update inside a transaction. Under SQLite this is effectively serialized, but under a read-committed engine two concurrent workers can read the same cursor and both write cursor + 1, selecting the same member twice and skewing rotation. An atomic update ... set cursor = cursor + 1 returning cursor would be race-free everywhere.

S6: 🟢 Every settings save now revalidates the persisted synthetic default

validateDefaultAgentSetting (configRoutesAgentDefaults.ts) runs on every POST /api/config/settings, using the currently persisted default_agent_alias when the request does not include one. If a synthetic default becomes non-executable through a non-UI path, unrelated changes such as worker_concurrency will return 409 until the default is changed. The state is recoverable (the same endpoint can set a new default), but scoping the check to requests that actually touch default_agent_alias would avoid the surprise.

S7: 🟢 Numeric pool inputs coerce blanks into semantically loaded values

In SyntheticPoolsSection.tsx, clearing the Priority field yields Number('') === 0, which silently moves a member into the priority-0 fallback tier that the docs describe as reserve-only capacity. Similarly, updateUsageLimit treats '0' as a set value and forwards 0, which the schema rejects with a generic "Too small" message. Guarding blanks and rejecting 0 client-side would make both cases self-explanatory.

S8: 🟢 Synthetic health probe can exceed the status timeout

SyntheticRoutingService.healthCheck probes candidate members serially, while statusRoutes wraps the whole pool probe in a single agentHealthTimeoutMs (1500 ms default). A pool with several members whose healthCheck spawns containers will frequently time out and report degraded even when the primary is healthy. Probing only the top tier, or budgeting the timeout per member, would reduce false degradation.

S9: 🟢 Configuration is re-read from the database on every selection

loadSyntheticModel calls loadConfigs() (a system_configs read) on each select(), including each failover attempt and each forked session. For indexing runs that fork a session per batch and per chunk, this becomes a large number of small reads. A short-lived cache invalidated by the existing synthetic_agents_update event would fit the existing refresh plumbing.

S10: 🟢 Routing attempts inflate the existing execution counter

SyntheticRoutingService.recordAttempt inserts task_history rows with state: 'claude_execution', and TaskStatusTable.getClaudeExecutionLabel computes claudeCount by counting prior rows in that state before the routing branch is considered for non-routing rows. Mixed histories (a direct run followed by a pooled follow-up, for example) can therefore show inflated "Execution #N" labels. Filtering routing rows out of that count would keep both labels accurate.

S11: 🟢 Unrelated cosmetic churn in the diff

ContextStrip.tsx leaves the second <ModelChip …> mis-indented relative to its siblings, and RepoChatPanel.tsx collapses defaultContextLevel = 50, agents, onto one line while deleting two explanatory comments that were not related to synthetic routing. These add review noise without changing behavior.

Score

The synthetic routing core, contracts, and backend validation are well designed and well tested, but the catalog endpoint split appears to leave the Web UI selectors added by this PR consuming the direct-only legacy payload, which would silently disable the user-facing half of issue #1992.

Score: 6/10


🤖 Review Details

  • Model: Claude Opus 5
  • Time: 6m 14s
  • Tokens: 251,105 (220,853 in / 30,252 out)
  • Cost: $2.14

View Task


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

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 078c604

Summary of Changes

Implemented the PR follow-up.

  • Synthetic pool cards now show each virtual model’s GitHub label.
  • Pool editor displays a live label preview that updates with alias/model ID changes.
  • Uses the shared label builder, including GitHub’s length-limit handling.
  • Added regression coverage for multiple models and live updates.

Changed:

Validation passed: 480 tests, TypeScript, ESLint, production build, and git diff --check. No commit created.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 11m 33s
  • Tokens: 2,370,101 (2,357,521 in / 12,580 out)
  • Cost: $2.04

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

Implemented the PR follow-up.

- Synthetic pool cards now show each virtual model’s GitHub label.
- Pool editor displays a live label preview that updates with alias/model ID changes.
- Uses the shared label builder, including GitHub’s length-limit handling.
- Added regression coverage for multiple models and live updates.

Changed:

- [SyntheticPoolsSection.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1994-followup-2026-09-02T07-56-51/propr-ui/src/pages/SyntheticPoolsSection.tsx)
- [AiAgentsPage.test.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1994-followup-2026-09-02T07-56-51/propr-ui/src/pages/AiAgentsPage.test.tsx)

Validation passed: 480 tests, TypeScript, ESLint, production build, and `git diff --check`. No commit created.

PR: #1994
Comment by: @integry (ID: 5506362617)
Model: gpt-5.6-sol
@integry

integry commented Sep 2, 2026

Copy link
Copy Markdown
Owner

/fix

@propr-dev

propr-dev Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit e453bd4

Addressed 1 AI review comment (IDs: 5506380121)

Summary of Changes

Implemented F1 only.

Changes:

  • Updated getInstanceCatalog() to request /api/instance/catalog, exposing synthetic agents to all existing UI selectors.
  • Added a regression test confirming the UI requests that endpoint and receives kind: 'synthetic' entries.

Verification passed:

  • Focused Vitest test
  • UI TypeScript typecheck
  • Existing synthetic catalog API tests: 8 passed
  • ESLint on changed files
  • git diff --check

🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 4m 0s
  • Tokens: 409,277 (405,706 in / 3,571 out)
  • Cost: $0.66

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

Implemented F1 only.

Changes:

- Updated `getInstanceCatalog()` to request `/api/instance/catalog`, exposing synthetic agents to all existing UI selectors.
- Added a regression test confirming the UI requests that endpoint and receives `kind: 'synthetic'` entries.

Verification passed:

- Focused Vitest test
- UI TypeScript typecheck
- Existing synthetic catalog API tests: 8 passed
- ESLint on changed files
- `git diff --check`

PR: #1994
Comment by: @integry (ID: 5506583830)
Model: gpt-5.6-sol
@integry

integry commented Sep 2, 2026

Copy link
Copy Markdown
Owner

/review opus

@propr-dev

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

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — opus

Overall Evaluation

This PR implements the full "Synthetic Pools" epic: shared zod contracts for synthetic agents/models/members, a separate persisted config document, a central SyntheticRoutingService with priority tiers, round-robin/usage-based selection, context-aware early selection and failover, registry/facade integration, status and catalog surfaces, an admin UI, CLI commands, and documentation. The design is coherent and the routing core is unusually careful: routing is centralized rather than duplicated in planners/workers/reviews, the virtual identity is preserved in task records while physical attempts are recorded separately, and non-retryable failures are explicitly excluded from failover. Test coverage for the routing core, contracts, API integrity rules, and summarization attribution is substantial and meaningful.

The main problem I found is a narrow but real regression in the admin Settings → AI model selection panel, where the data source was switched from the full direct-agent list to the enabled-only instance catalog, silently removing the "disabled" option group the component still renders.

✅ Call-scoped context constraint with non-penalizing re-selection — SyntheticRoutingSession.constrain() (packages/core/src/services/syntheticRoutingService.ts) finalizes the prompt/output requirement before the first physical invocation, removes the pinned member from attemptedMemberIds instead of recording it as a failure when its window is too small, and freezes the requirement for every later failover. This directly satisfies the "select the physical model before context-sensitive budgets are computed" requirement of #1991.

✅ Physical eligibility is enforced through the facade — reviewContextScout.routeScoutCandidate passes physicalAgentEligibility: supportsRuntimeEnforcedRepositoryInspection and re-checks the resolved agent, so the synthetic facade (which reports type: 'claude') cannot route repository-confined scouting to an agent type that does not enforce read-only confinement. The added test in test/reviewContextScoutRuntime.test.ts exercises the unsafe-route and exhausted-pool paths.

✅ Referential integrity between direct and synthetic configuration — validateDirectAgentUpdateIntegrity and resolveAgentUpdateDefaults (packages/api/routes/configRoutesAgents.ts) block deleting a referenced direct alias and block edits that would leave a synthetic default unexecutable, with 409 responses covered by packages/api/test/syntheticAgents.test.ts.

Merge blockers

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

F2: 🔴 Settings model selectors drop disabled direct-agent models

  • Required behavior: Changed behavior must remain internally consistent: the component still computes and renders a "disabled" option group, and an administrator must still be able to see which model a setting currently points at.
  • Evidence: propr-ui/src/pages/SettingsPage/AIModelSelectionSection.tsx:102-114 — const modelAgents = catalogAgents?.length ? catalogAgents : agents; then buildAllModelOptions(modelAgents) and const disabledOptions = modelOptions.filter(opt => !opt.enabled);. The catalog source is enabled-only by contract (packages/shared/src/instanceCatalog.ts: "Always true: the operational catalog omits disabled entries"; packages/api/routes/instanceCatalogRoutes.ts filters with agents.filter(agent => agent.enabled)), so once any agent is enabled, disabledOptions is permanently empty and every model belonging to a disabled direct agent disappears from the analysis_model_fast, planner_context_model, planner_generation_model, pr_review_model, and pr_review_context_model selects. A stored setting that still references such a model no longer matches any <option> and renders as the blank/first entry, misrepresenting the persisted configuration. Previously agents came from getAgents() and carried per-agent enabled flags so those options were still rendered.
  • Minimum fix: Keep the disabled direct agents in the option source while preferring the catalog, e.g. const modelAgents = catalogAgents?.length ? [...catalogAgents, ...agents.filter(a => !a.enabled)] : agents; (or merge by alias), leaving enabledModelAgents filtered as it is today so only enabled entries are offered for new selections.

Suggestions

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

S1: 🟢 Synthetic registration may run twice per initialization

SyntheticAgentRegistry.register() skips any pool whose alias or id is already present in agentsByAlias/agents and logs logger.error('Synthetic agent alias conflicts with a registered direct agent'). AgentRegistry.initialize() and AgentRegistry.registerDefaultAgent() both call register(), so installations that fall back to the default agent during initialization can emit a spurious ERROR line per configured pool, and the routingService field is reassigned while already-registered facades keep the previous instance. Consider making register() idempotent (clear previously registered synthetic entries first, or track which entries it owns) and reserve the error log for genuine direct/synthetic collisions.

S2: 🟢 Every routed call re-reads the synthetic config document

SyntheticRoutingService.select() calls loadSyntheticModel() → loadConfigs() → loadSyntheticAgents() on each selection, including direct pass-through selections and each forked session used by keyword extraction, semantic-scoring chunks, and summarization batches. Indexing a large repository therefore issues one extra config read per batch even when no pools are configured. keywordExtractor.ts already maintains a settings cache for exactly this reason; a small cache invalidated on the synthetic_agents_update event would keep the routing hot path free of per-call DB round trips.

S3: 🟢 A malformed synthetic document can fail the whole AgentRegistry

loadSyntheticAgents() uses syntheticAgentConfigsSchema.parse and throws on invalid input, and SyntheticAgentRegistry.register() calls it without a guard inside AgentRegistry.initialize(). statusRoutes.getAgentStatuses deliberately isolates the same failure ("Synthetic configuration availability must not suppress or downgrade unrelated direct-agent health"), so applying the same isolation in the registry (log and continue with zero pools) would keep direct agents usable if the stored document ever becomes unparseable through a downgrade or manual edit.

S4: 🟢 Legacy /api/catalog hides synthetic agents and can drop defaultAgentAlias

getLegacyCatalog intentionally omits synthetic entries, and the test in packages/api/test/syntheticAgents.test.ts shows the legacy response also loses defaultAgentAlias when the configured default is a pool. That is a defensible compatibility choice for the new UI, but any remaining consumer of /api/catalog (scripts, older clients) will see an installation with a synthetic default as having no default agent. Documenting this on the endpoint, or emitting the alias regardless of whether it appears in the filtered agent list, would avoid surprising those consumers.

S5: 🟢 SyntheticAgent hard-codes config.type = 'claude'

The facade reports a Claude type with empty dockerImage/configPath so capability checks pass. The scout path handles this explicitly, but other type-sensitive code paths (for example canonicalChatModel's opencode normalization in packages/api/routes/agentRoutes.ts) will now treat a pool backed by OpenCode members as Claude. A dedicated 'synthetic' type with explicit handling at each capability check would make these sites fail loudly instead of silently taking the Claude branch.

S6: 🟢 Failover suppression is driven by regex over agent logs

isNonRetryableSyntheticFailure (packages/core/src/services/syntheticRoutingTypes.ts) concatenates message, error, and logs before matching cancellation/security/context phrases. Because logs can contain arbitrary agent or repository text, an unrelated occurrence of e.g. "cancelled by the user" can suppress a legitimate failover. Restricting the text match to message/error and relying on name/code/terminationReason for structured signals would make the classification more predictable.

S7: 🟢 Unrelated test fixes and cosmetic churn are bundled in

test/orchestratorConfig.test.mjs (VAPID scalar padding) and packages/api/test/webPushDispatcher.test.ts (lease/clock adjustments) fix flakiness unrelated to synthetic pools, and several UI files carry incidental noise: the indentation of the mobile ModelChip in propr-ui/src/components/TaskDetails/ContextStrip.tsx, the removal of explanatory comments plus defaultContextLevel = 50, agents, on one line in RepoChatPanel.tsx, and a second lucide-react import in ChatPanel.tsx. Splitting these out would make the epic diff easier to review and bisect.

S8: 🟢 Editor section key derived from the first member's id

SyntheticPoolsSection.tsx keys each virtual-model <section> on model.members[0]?.id ?? modelIndex. This avoids the reported remount-on-keystroke bug for the model ID field, but deleting the first member of a model changes the key and remounts the whole section (losing input focus and any transient state). Adding a stable synthetic-model key (or reusing the model's own generated UUID rather than its user-editable id) would be more robust.

S9: 🟢 Mock-compatibility guard in production page code

AiAgentsPage.tsx contains if (typeof getSyntheticAgents !== 'function') return; inside the load effect, described as keeping the page compatible with "older servers and isolated UI mocks". This leaves syntheticReloadRequired true and silently blocks all pool mutations with no user-visible reason. Handling the older-server case via the API error path and fixing the test mocks would keep this concern out of the component.

S10: 🟢 Every settings write now validates the default agent

configRoutes.postSettings calls validateDefaultAgentSetting inside the config lock for all settings updates, so an unrelated change (for example worker_concurrency) returns 409 whenever the currently persisted synthetic default is temporarily unexecutable. The other write paths make that state hard to reach, but scoping the validation to requests that actually contain default_agent_alias (or downgrading to a warning otherwise) would avoid blocking unrelated administration.

S11: 🟢 Usage snapshots re-read settings and call Agent Tank per member

AliasSpecificAgentTankSnapshotProvider.getSnapshot calls loadAgentTankSettings() and getStatus(alias) for every capped member on every selection. For a pool with several capped members under concurrent workload this multiplies DB reads and Agent Tank HTTP calls. A short-lived per-alias snapshot cache bounded by the existing freshness window would preserve the "fresh, alias-specific" guarantee at much lower cost. Note also that Number(process.env.SYNTHETIC_USAGE_FRESHNESS_MS) || DEFAULT silently ignores an explicit 0.

Score

The routing core, contracts, and integrity validations are well designed and well tested, and the epic is close to merge-ready; one narrow but verifiable UI regression in the admin model selectors needs a localized fix first.

Score: 6/10


🤖 Review Details

  • Model: Claude Opus 5
  • Time: 5m 46s
  • Tokens: 247,245 (220,071 in / 27,174 out)
  • Cost: $2.05

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 marked this pull request as ready for review September 2, 2026 11:48
@integry
integry merged commit 0eb06e9 into main Sep 2, 2026
16 checks passed
@integry
integry deleted the 1990-epic-synthetic-pool-eus branch September 2, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

2 participants