Skip to content

[1724 by GPT-5.6 Sol] Add mobile Inbox actions for stopping tasks, following up, opening PRs, and dismissing - #1938

Merged
integry merged 8 commits into
1716-epic-failed-to-3m8from
1724/gpt-5.6-sol-add-mobile-inbox-actions--20260824-1639-e1g
Aug 24, 2026
Merged

integry merged 8 commits into
1716-epic-failed-to-3m8from
1724/gpt-5.6-sol-add-mobile-inbox-actions--20260824-1639-e1g

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #1724

Branch: 1724/gpt-5.6-sol-add-mobile-inbox-actions--20260824-1639-e1g
Commits: ✅ Changes committed (b92176f)


AI Processing Completed

Execution Details:

Summary:
Implemented GitHub issue #1724.

Key changes:

  • Added typed, immutable advertised Inbox actions: stop, follow_up, open_pr, and dismiss.
  • Added responsive mobile controls with 44px tap targets and keyboard-accessible labels.
  • Stop requires foreground confirmation and is never exposed as a push-click action.
  • Reused FollowupModal and postTaskFollowup, preventing duplicate submissions.
  • Strictly validates matching https://github.com/{owner}/{repo}/pull/{number} URLs before opening with noopener,noreferrer.
  • Added pending-state disabling, success/error toasts, Inbox reconciliation, and unread-count updates.
  • Improved follow-up modal accessibility and Escape-key handling.
  • Updated lifecycle projections to advertise only valid actions per event.

Validation passed:

  • 416 UI tests
  • Notification schema, service, projection, and Web Push suites
  • Root/core/shared/UI type checks
  • Focused ESLint
  • Production UI build
  • Diff whitespace checks

Detailed Logs:

  • Conversation: 126 messages
  • Session: 01a034a5-1789-7c12-927f-dfb830c96e22

Log files stored at:

  • conversation: /tmp/claude-logs/issue-1724-2026-08-24T16-54-24-108Z-conversation.json
  • output: /tmp/claude-logs/issue-1724-2026-08-24T16-54-24-108Z-output.txt
Latest Conversation Messages

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


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

…tasks, follo

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

Implementation completed successfully.
@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix
Triggered automatically by Planner execution settings.

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

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

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

First action: /review

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

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — claude:claude-sonnet-5

Overall Evaluation

This PR delivers the requested typed, advertised Inbox actions (stop, follow_up, open_pr, dismiss), wires them into a new NotificationActions component, adds a validated PR-URL opener, hardens FollowupModal accessibility, and threads the new action list through the shared schema, core service, and projection layer with solid test coverage for the new behavior. The core safety property — that stop can never leak into a Web Push click action — is enforced structurally (advertised event actions and the single .action navigate/external-link field are separate types) and is verified by a dedicated dispatcher test. URL validation for "Open PR" is strict (https, github.com only, exact path match, repository/PR-number cross-check) and correctly uses noopener,noreferrer. However, the new design ties the previously-unconditional "Dismiss" control to the new actions advertisement list, and the backward-compatible parsing path defaults actions to [] for any event that doesn't carry an actions entry (which includes every pre-existing notification row in the database, since no migration backfills the field). That silently removes the ability to dismiss existing Inbox items after this ships. This is a real, PR-introduced regression that should be fixed before merge; everything else is solid and mergeable once addressed.

✅ Stop can never become a push-click action — NotificationEventAction (advertised actions) and NotificationAction (the single navigate/external_link field used by the Web Push payload) are structurally decoupled, so stop cannot appear in webPushDispatcher's payload; confirmed by the new never turns an advertised stop into a push-click action test in packages/api/test/webPushDispatcher.test.ts.

✅ Rigorous PR-URL trust validation — notificationPullRequestUrl in propr-ui/src/pages/inboxUtils.ts requires https:, exact github.com host, no credentials/query/hash, an exact /owner/repo/pull/number path, and cross-checks the repository/PR number against the notification's own target before NotificationActions.tsx opens it with noopener,noreferrer.

✅ Accessible, properly-scoped modal upgrade — FollowupModal.tsx adds role="dialog"/aria-modal/aria-labelledby/aria-describedby, autofocuses the textarea, adds an Escape handler that respects the submitting state, and raises tap targets to 44px, all without breaking the Rules-of-Hooks ordering.

Merge blockers

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

F1: 🔴 Dismiss is silently unavailable for notifications without an advertised dismiss action, including all pre-existing rows

  • Required behavior: Changed behavior must not regress existing correctness/functionality of PR-affected code paths. Prior to this PR, Dismiss was unconditionally available (gated only by mutationsEnabled); this PR makes it conditional on notification.actions.includes('dismiss'), and the parser's backward-compatible default for missing/unset actions is [].
  • Evidence: propr-ui/src/components/Inbox/NotificationActions.tsx — {mutationsEnabled && advertised.has('dismiss') && (<button ... onClick={() => void dismiss()} ...>)} replaces the old unconditional Dismiss button that was removed in propr-ui/src/pages/InboxPageComponents.tsx (- {mutationsEnabled && (<button ... onClick={() => onDismiss(notification.id)} ...>)}). Combined with packages/shared/src/notifications.ts's parseNotificationEvent, where actions = event.actions === undefined ? (storedActions === undefined ? [] : ...) : ... defaults to [] whenever an event's stored metadata_json has no actions key — true for every notification event created before this deploy (no migration backfills the field) and for any future producer that omits actions.
  • Minimum fix: Decouple Dismiss from the advertised-action gate — e.g. render the Dismiss control whenever mutationsEnabled is true regardless of notification.actions (restoring prior behavior), or treat an empty/undefined actions array as implicitly including 'dismiss' in parseNotificationEvent's backward-compatibility branch. Either localized fix keeps the new advertised actions for stop/follow_up/open_pr intact while guaranteeing legacy and future-omitted events remain dismissable.

Suggestions

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

S1: 🟢 "Open PR" can be advertised without a working link

taskActions({ ..., hasPullRequest: context.prNumber !== undefined }) in packages/api/services/notificationProjectionService.ts adds 'open_pr' to the advertised list purely based on prNumber presence, independent of whether safeGithubPullRequestUrl/pullRequestAction actually produced a .action (it can return {} if the repository string fails the alnum/dot/dash/underscore check). In that case the UI shows a working-looking "Open PR" button that always fails with a toast error. This is edge-case-only (repository strings are normally well-formed) and is already handled gracefully client-side, so it's not a blocker, but deriving the advertised open_pr flag from whether pullRequestAction(...) actually produced an action would be more consistent.

S2: 🟢 Reserved actions key in event metadata can collide with caller-supplied metadata

eventMetadataForStorage in packages/core/src/services/notificationService.ts folds the advertised actions array into the same JSON object as arbitrary caller metadata, using the literal key "actions". If any caller ever passes metadata: { actions: [...] } for an unrelated purpose, eventMetadataForStorage/parseNotificationEvent will either silently overwrite or misinterpret that field. No current caller does this, so it's not currently exploitable, but a namespaced storage key (e.g. __advertisedActions) would remove this latent fragility.

S3: 🟢 Toast handlers in NotificationActions don't guard against identity changes

useInboxNotifications.ts's dismiss flow checks isActiveIdentity() before showing a toast to avoid surfacing stale-identity toasts (e.g., after a demo-mode/account switch mid-request). The new stop/submitFollowup handlers in propr-ui/src/components/Inbox/NotificationActions.tsx don't apply the same guard, so a toast could appear after the acting identity has changed. Low-impact UX inconsistency, worth aligning for consistency but not required for merge.

S4: 🟢 No test exercises the legacy/empty-actions rendering path

The new InboxPage.test.tsx cases always supply an explicit non-empty actions array via the item() helper's default. Adding a test with actions: [] (simulating a pre-migration event) would have caught the F1 regression and would guard against reintroducing it once fixed.

Score

A single, well-scoped but real regression (loss of Dismiss for notifications lacking an advertised dismiss action, including all pre-existing data) blocks merge; the rest of the PR — action safety, URL validation, and accessibility work — is solid and well-tested.

Score: 4/10


🤖 Review Details

  • Model: Claude Sonnet 5
  • Time: 4m 22s
  • Tokens: 96,072 (69,934 in / 26,138 out)
  • Cost: $0.44

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

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 7eba407

Addressed 1 AI review comment (IDs: 5398691029)

Summary of Changes

Implemented F1 only.

  • Dismiss now renders whenever mutationsEnabled is true, independent of advertised actions: NotificationActions.tsx
  • Added regression coverage for notifications with an empty actions array: InboxPage.test.tsx

Validation passed:

  • Focused ESLint
  • Inbox tests: 14/14
  • UI TypeScript typecheck
  • git diff --check

No commit created.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @propr-ultrafix
  • Time: 2m 22s
  • Tokens: 367,145 (364,591 in / 2,554 out)
  • Cost: $0.40

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

Implemented F1 only.

- Dismiss now renders whenever `mutationsEnabled` is true, independent of advertised actions: [NotificationActions.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T17-12-21/propr-ui/src/components/Inbox/NotificationActions.tsx:111)
- Added regression coverage for notifications with an empty actions array: [InboxPage.test.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T17-12-21/propr-ui/src/pages/InboxPage.test.tsx:187)

Validation passed:

- Focused ESLint
- Inbox tests: 14/14
- UI TypeScript typecheck
- `git diff --check`

No commit created.

PR: #1938
Comment by: @propr-ultrafix (ID: 0)
Model: gpt-5.6-sol
@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/review codex

@propr-dev

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

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex

Overall Evaluation

The PR adds mobile-friendly Inbox actions, foreground confirmation for stopping tasks, reusable follow-up handling, trusted PR navigation, and durable action projections. The implementation is well tested, but it needs minor changes before merge: invalid PR actions can be advertised, legacy external-link actions regress, and the metadata-backed storage format conflicts with previously valid metadata. Three current-head checks also remain pending.

✅ Safe foreground controls — Stop requires confirmation, uses 44px controls, and is explicitly excluded from Web Push actions.

✅ Strict PR navigation — URLs must match the notification’s GitHub repository and PR number before opening with noopener,noreferrer.

✅ Strong interaction coverage — Tests exercise stop confirmation, in-flight follow-up deduplication, safe PR opening, optimistic dismissal rollback, and action persistence.

Merge blockers

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

F2: 🔴 Invalid Open PR actions advertised

  • Required behavior: Lifecycle projections must advertise only actions that can actually be performed.
  • Evidence: packages/api/services/notificationProjectionService.ts:347 — the pull-request event always advertises open_pr, while its corresponding external-link action is omitted when safeGithubPullRequestUrl returns undefined; the task and review projections similarly derive hasPullRequest only from the presence of a PR number.
  • Minimum fix: Advertise open_pr only after successfully constructing the trusted URL, applying the same condition to task, review, and pull-request projections.

F3: 🔴 Legacy PR links become inaccessible

  • Required behavior: Adding the new action controls must not regress existing durable notifications whose external-link action was previously usable.
  • Evidence: propr-ui/src/pages/inboxUtils.ts:46, propr-ui/src/components/Inbox/NotificationActions.tsx:144, and packages/shared/src/notifications.ts:1231 — DetailLink now ignores external links, Open PR requires the new open_pr array member, and notifications lacking the newly introduced array normalize to [].
  • Minimum fix: Preserve a compatibility path for a trusted, target-matching legacy external-link action, such as rendering Open PR when that validated action exists and the new action list is absent or empty.

F4: 🔴 Action storage collides with metadata

  • Required behavior: Previously valid notification metadata must remain readable and round-trip without being reinterpreted or removed by the new action persistence mechanism.
  • Evidence: packages/shared/src/notifications.ts:1230 — metadata.actions is unconditionally interpreted as the advertised-action array and then removed from returned metadata; previously valid events using that unrestricted JSON key can now fail parsing or lose the field.
  • Minimum fix: Store advertised actions in a dedicated column or a recognizable versioned internal envelope, while preserving ordinary legacy metadata.actions values unchanged. Ensure the combined persisted representation is also checked against the database metadata-size limit before insertion.

Suggestions

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

S1: 🟢 Complete modal focus management

FollowupModal now has dialog semantics, autofocus, and Escape handling, but it does not contain focus or restore focus to the invoking control. Adding focus trapping and restoration would improve keyboard accessibility; it is optional for this merge because the changed controls remain operable and labeled.

S2: 🟢 Enforce action-target consistency

Shared validation could reject combinations such as stop on a non-task target or open_pr without a matching external-link action. Fixing the current invalid projections is sufficient for merge, while central validation would provide optional defense against future producers drifting from these invariants.

Score

The main interaction design and tests are strong, but three PR-introduced contract and compatibility issues require localized corrections before the change is merge-ready. Pending checks should also complete successfully.

Score: 6/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 3m 58s
  • Tokens: 62,910 (52,686 in / 10,224 out)
  • Cost: $0.53

View Task


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

🤖 Review by ProPR

@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/fix F2 F3 F4

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 45a6ee5

Addressed 1 AI review comment (IDs: 5398815479)

Summary of Changes

Implemented only F2, F3, and F4.

  • open_pr is advertised only when a trusted GitHub PR URL is constructed.
  • Trusted legacy PR links remain available when advertised actions are absent or empty.
  • Advertised actions now use a versioned metadata envelope, preserving legacy metadata.actions and validating combined metadata size before insertion.
  • Added regression coverage for all three findings.

Validation passed:

  • 65 core/shared schema tests
  • 8 projection tests
  • 28 notification route/Web Push tests
  • 18 Inbox UI tests
  • Shared, core, API, and UI type checks
  • Focused lint and git diff --check

Changes were not committed, as requested.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 8m 28s
  • Tokens: 2,245,261 (2,229,560 in / 15,701 out)
  • Cost: $2.07

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix 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: 5398849258✓

Implemented only F2, F3, and F4.

- `open_pr` is advertised only when a trusted GitHub PR URL is constructed.
- Trusted legacy PR links remain available when advertised actions are absent or empty.
- Advertised actions now use a versioned metadata envelope, preserving legacy `metadata.actions` and validating combined metadata size before insertion.
- Added regression coverage for all three findings.

Validation passed:

- 65 core/shared schema tests
- 8 projection tests
- 28 notification route/Web Push tests
- 18 Inbox UI tests
- Shared, core, API, and UI type checks
- Focused lint and `git diff --check`

Changes were not committed, as requested.

PR: #1938
Comment by: @integry (ID: 5398849258)
Model: gpt-5.6-sol
@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/review codex

@propr-dev

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

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex

Overall Evaluation

This PR adds advertised Inbox actions, lifecycle projection, safe PR opening, follow-up/stop controls, and persistence through the existing metadata column. The implementation has strong validation and test coverage, but it needs significant rework before merge because four changed paths can expose unadvertised or unusable actions, duplicate successful follow-ups, or violate event round-trip integrity.

✅ Strict PR URL validation — notificationPullRequestUrl requires HTTPS GitHub URLs whose repository and PR number match the notification target, and opens them with noopener,noreferrer.

✅ Safe stop interaction — Stop requires foreground confirmation, prevents concurrent mutation submissions, and is not converted into a Web Push click action.

✅ Closed action contract — The shared parser rejects unknown, duplicate, or excessive advertised actions.

Merge blockers

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

F5: 🔴 Dismiss ignores advertised actions

  • Required behavior: Inbox controls must render only actions advertised by the immutable event, while retaining an explicit compatibility fallback for legacy events without action metadata.
  • Evidence: propr-ui/src/components/Inbox/NotificationActions.tsx:156 — Dismiss is rendered whenever mutationsEnabled is true, even when a nonempty notification.actions list omits dismiss.
  • Minimum fix: Render Dismiss only when advertised.has('dismiss'), optionally retaining the deliberate advertised.size === 0 fallback for legacy notifications.

F6: 🔴 Refresh failures duplicate follow-ups

  • Required behavior: A successfully posted follow-up must remain successful and must not be offered for resubmission merely because subsequent Inbox reconciliation failed.
  • Evidence: propr-ui/src/components/Inbox/NotificationActions.tsx:70-79 — onChanged() runs inside the mutation try; if refresh fails after postTaskFollowup succeeds, the catch rethrows, leaving the modal open and allowing the same GitHub comment to be submitted again.
  • Minimum fix: Treat the mutation as successful immediately after postTaskFollowup resolves, close the modal, and handle refresh failure separately without rethrowing it as a submission failure. Apply the same separation to Stop to avoid contradictory success/error reporting.

F7: 🔴 Invalid follow-ups are advertised

  • Required behavior: Lifecycle projections must advertise only actions that are valid for the event and can satisfy the invoked endpoint’s prerequisites.
  • Evidence: packages/api/services/notificationProjectionService.ts:284 — Failed tasks advertise follow_up unconditionally; the same unconditional choice appears for completed implementation and review events even though task issue identity and a valid GitHub repository are optional.
  • Minimum fix: Advertise follow_up only when the stored task has the valid repository and issue/PR identity required by the follow-up endpoint, or update the endpoint and projection to share a consistently validated target contract.

F8: 🔴 Empty action lists have ambiguous persistence

  • Required behavior: Creating and subsequently reading an immutable notification event must preserve both its advertised actions and arbitrary producer metadata.
  • Evidence: packages/core/src/services/notificationService.ts:175-178 — Events with an empty action list store producer metadata without an envelope, while packages/shared/src/notifications.ts:1233-1245 interprets matching reserved-key metadata as the internal action envelope when reading it.
  • Minimum fix: Persist actions with an unambiguous durable representation, including empty lists, and ensure legacy producer metadata cannot be mistaken for that representation; add a round-trip regression case using the reserved key.

Suggestions

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

S1: 🟢 Complete modal focus management

Consider trapping focus inside the modal and restoring focus to the invoking action when it closes. The PR adds useful dialog semantics, autofocus, and Escape handling, but focus containment remains absent; this is optional because it is an existing limitation of the shared modal rather than a regression introduced by these changes.

Score

The PR has a solid structure, good safety work, and substantial focused coverage, but the remaining action-contract and failure-propagation defects prevent merge readiness. The full test suite is also still pending, though no current check has failed.

Score: 5/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 3m 50s
  • Tokens: 65,668 (56,355 in / 9,313 out)
  • Cost: $0.52

View Task


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

🤖 Review by ProPR

@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/fix F5 F6 F7 F8

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit cacb837

Addressed 1 AI review comment (IDs: 5399064952)

Summary of Changes

Implemented F5–F8 only:

  • Dismiss now respects advertised actions, with the legacy empty-action fallback.
  • Follow-up and Stop successes remain successful if Inbox refresh fails; refresh failures use separate warnings.
  • follow_up is advertised only when the stored task has a valid GitHub repository and issue identity.
  • Action lists, including empty lists, now use a v2 persistence envelope; legacy reserved-key producer metadata remains intact.
  • Added focused UI, projection, schema, and persistence regressions.

Validation passed:

  • Root and UI typechecks
  • 58 schema/service tests
  • 9 projection tests
  • 16 focused UI tests
  • UI lint
  • git diff --check

No commit was created.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 9m 51s
  • Tokens: 2,934,143 (2,912,185 in / 21,958 out)
  • Cost: $2.62

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

Implemented F5–F8 only:

- Dismiss now respects advertised actions, with the legacy empty-action fallback.
- Follow-up and Stop successes remain successful if Inbox refresh fails; refresh failures use separate warnings.
- `follow_up` is advertised only when the stored task has a valid GitHub repository and issue identity.
- Action lists, including empty lists, now use a v2 persistence envelope; legacy reserved-key producer metadata remains intact.
- Added focused UI, projection, schema, and persistence regressions.

Validation passed:

- Root and UI typechecks
- 58 schema/service tests
- 9 projection tests
- 16 focused UI tests
- UI lint
- `git diff --check`

No commit was created.

PR: #1938
Comment by: @integry (ID: 5399080238)
Model: gpt-5.6-sol
@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/review codex

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@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 32759323018, attempt 1
Checkout outcome: success

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

--- Release shell script lint ---

--- Toolchain ---
v22.23.2
10.9.8

--- Dependency installation ---

added 979 packages, and audited 985 packages in 20s

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: 5.045093
      type: 'test'
      ...
    # Subtest: persists a failed state when queue submission fails
    ok 2 - persists a failed state when queue submission fails
      ---
      duration_ms: 1.239859
      type: 'test'
      ...
    # Subtest: rejects a package missing from an effective runtime before queueing
    ok 3 - rejects a package missing from an effective runtime before queueing
      ---
      duration_ms: 0.927036
      type: 'test'
      ...
    # Subtest: times out slow runtime package validation before queueing
    ok 4 - times out slow runtime package validation before queueing
      ---
      duration_ms: 8.678879
      type: 'test'
      ...
    # Subtest: returns package suggestions from configured runtimes
    ok 5 - returns package suggestions from configured runtimes
      ---
      duration_ms: 1.517555
      type: 'test'
      ...
    # Subtest: enforces PROPR_ADMIN_USERS when configured
    ok 6 - enforces PROPR_ADMIN_USERS when configured
      ---
      duration_ms: 0.450298
      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.399875
      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.550364
      type: 'test'
      ...
    # Subtest: warms the package catalog when an admin loads runtime package state
    ok 9 - warms the package catalog when an admin loads runtime package state
      ---
      duration_ms: 0.798687
      type: 'test'
      ...
    # Subtest: does not warm the package catalog when a member is rejected
    ok 10 - does not warm the package catalog when a member is rejected
      ---
      duration_ms: 4.405793
      type: 'test'
      ...
    # Subtest: resolves the runtime build queue lazily when queueing
    ok 11 - resolves the runtime build queue lazily when queueing
      ---
      duration_ms: 1.048863
      type: 'test'
      ...
    # Subtest: reports apply load failures through the route response
    ok 12 - reports apply load failures through the route response
      ---
      duration_ms: 0.568829
      type: 'test'
      ...
    1..12
ok 1 - agent runtime package routes
  ---
  duration_ms: 28.270535
  type: 'suite'
  ...
# [2026-08-24 17:55:08.239 +0000] �[32mINFO�[39m: �[36mCreated data directory for SQLite database�[39m
#     directory: "/home/runner/work/propr/propr/data"
# [2026-08-24 17:55:08.823 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 17:55:08.848 +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: 12.545878
  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: 8.261862
  type: 'test'
  ...
# Subtest: temporary cleanup refuses paths outside its configured root
ok 4 - temporary cleanup refuses paths outside its configured root
  ---
  duration_ms: 0.96693
  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.752161
  type: 'test'
  ...
# Subtest: attachment processing rejects path-like draft IDs and still cleans its temp file
ok 6 - attachment processing rejects path-like draft IDs and still cleans its temp file
  ---
  duration_ms: 4.057073
  type: 'test'
  ...
# [2026-08-24 17:55:08.771 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 17:55:08.796 +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.372436
  type: 'test'
  ...
# Subtest: API config subscription reloads repository updates
ok 8 - API config subscription reloads repository updates
  ---
  duration_ms: 0.506974
  type: 'test'
  ...
# Subtest: API config subscription ignores unrelated and malformed events
ok 9 - API config subscription ignores unrelated and malformed events
  ---
  duration_ms: 0.383914
  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.75713
  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: 2.131889
  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.221512
  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.345392
  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.345243
  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.184474
  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.250226
  type: 'test'
  ...
# Subtest: explicit custom GitHub web auth remains supported
ok 17 - explicit custom GitHub web auth remains supported
  ---
  duration_ms: 0.290821
  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.302954
  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.849351
  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: 55.670749
  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: 1.214531
  type: 'test'
  ...
# Subtest: accepts Docker IDs and ProPR-generated container names
ok 22 - accepts Docker IDs and ProPR-generated container names
  ---
  duration_ms: 1.362306
  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.207516
  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: 205.86545
  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.818391
  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: 19.551051
      type: 'test'
      ...
    # Subtest: refuses startup until a bootstrap or durable administrator exists
    ok 2 - refuses startup until a bootstrap or durable administrator exists
      ---
      duration_ms: 7.421919
      type: 'test'
      ...
    # Subtest: grants full admin permissions to PROPR_ADMIN_USERS
    ok 3 - grants full admin permissions to PROPR_ADMIN_USERS
      ---
      duration_ms: 4.209648
      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.456377
      type: 'test'
      ...
    # Subtest: resolves demo users without installation permissions
    ok 5 - resolves demo users without installation permissions
      ---
      duration_ms: 5.508967
      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.213843
      type: 'test'
      ...
    # Subtest: current-user responses expose capabilities without OAuth credentials
    ok 7 - current-user responses expose capabilities without OAuth credentials
      ---
      duration_ms: 5.531158
      type: 'test'
      ...
    1..7
ok 26 - instance authorization
  ---
  duration_ms: 51.80416
  type: 'suite'
  ...
# Subtest: instance member service
    # Subtest: does not let an unassigned user claim the initial administrator role
    ok 1 - does not let an unassigned user claim the initial administrator role
      ---
      duration_ms: 4.924389
      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: 8.550289
      type: 'test'
      ...
    # Subtest: adds explicit members and writes an audit entry
    ok 3 - adds explicit members and writes an audit entry
      ---
      duration_ms: 22.833642
      type: 'test'
      ...
    # Subtest: keeps environment authority separate from durable role assignments
    ok 4 - keeps environment authority separate from durable role assignments
      ---
      duration_ms: 8.09914
      type: 'test'
      ...
    # Subtest: prevents removing the last durable administrator
    ok 5 - prevents removing the last durable administrator
      ---
      duration_ms: 14.914318
      type: 'test'
      ...
    # Subtest: allows role changes once another administrator exists
    ok 6 - allows role changes once another administrator exists
      ---
      duration_ms: 10.20511
      type: 'test'
      ...
    1..6
ok 27 - instance member service
  ---
  duration_ms: 70.134408
  type: 'suite'
  ...
# Subtest: instance catalog
    # Subtest: returns operational agent and repository fields without installation internals
    ok 1 - returns operational agent and repository fields without installation internals
      ---
      duration_ms: 2.598067
      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.494154
      type: 'test'
      ...
    1..2
ok 28 - instance catalog
  ---
  duration_ms: 5.361712
  type: 'suite'
  ...
# Subtest: instance admin routes
    # Subtest: resolves a GitHub username and creates one durable member assignment
    ok 1 - resolves a GitHub username and creates one durable member assignment
      ---
      duration_ms: 3.670955
      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.061508
      type: 'test'
      ...
    # Subtest: rejects GitHub usernames with trailing or consecutive hyphens
    ok 3 - rejects GitHub usernames with trailing or consecutive hyphens
      ---
      duration_ms: 3.312827
      type: 'test'
      ...
    1..3
ok 29 - instance admin routes
  ---
  duration_ms: 9.215768
  type: 'suite'
  ...
# [2026-08-24 17:55:11.366 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 17:55:11.493 +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: 2.804391
  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.224307
  type: 'test'
  ...
# Subtest: an explicit API listen host overrides environment defaults
ok 32 - an explicit API listen host overrides environment defaults
  ---
  duration_ms: 0.208167
  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: 8.372302
  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: 4.96244
  type: 'test'
  ...
# [2026-08-24 17:55:13.485 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 17:55:13.489 +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: 113.628367
  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: 28.30044
  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.624104
  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: 26.03317
  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: 21.114542
  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.061449
  type: 'test'
  ...
# Subtest: resolves secure defaults and explicit positive-integer overrides
ok 41 - resolves secure defaults and explicit positive-integer overrides
  ---
  duration_ms: 0.495683
  type: 'test'
  ...
# Subtest: rejects invalid overrides instead of silently disabling protection
ok 42 - rejects invalid overrides instead of silently disabling protection
  ---
  duration_ms: 3.616613
  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: 32.302822
      type: 'test'
      ...
# [2026-08-24 17:55:14.062 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/home/runner/work/propr/propr/data/propr.test.sqlite"
#     environment: "test"
    # Subtest: members can read only the sanitized catalog endpoints
    ok 2 - members can read only the sanitized catalog endpoints
      ---
      duration_ms: 45.646952
      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: 20.689352
      type: 'test'
      ...
    1..3
ok 43 - assembled instance permission routes
  ---
  duration_ms: 99.877869
  type: 'suite'
  ...
# [2026-08-24 17:55:14.159 +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'
# }
# 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: 2449.284131
  type: 'test'
  ...
# Subtest: /api/compatibility returns public version contract metadata
ok 45 - /api/compatibility returns public version contract metadata
  ---
  duration_ms: 2.309345
  type: 'test'
  ...
# 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: 5.647414
  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: 16.651539
  type: 'test'
  ...
# Subtest: /api/status surfaces unified agent image outages
ok 48 - /api/status surfaces unified agent image outages
  ---
  duration_ms: 2.363026
  type: 'test'
  ...
# Subtest: /api/status includes warnings field in demo mode
ok 49 - /api/status includes warnings field in demo mode
  ---
  duration_ms: 2.10729
  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'
# }
# Subtest: /api/status caches agent health checks briefly
ok 50 - /api/status caches agent health checks briefly
  ---
  duration_ms: 10.428341
  type: 'test'
  ...
# 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: 3.090157
  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'
# }
# 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: 7.767252
  type: 'test'
  ...
# 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: 3.209569
  type: 'test'
  ...
# 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: 5.350662
  type: 'test'
  ...
# 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: 2.158335
  type: 'test'
  ...
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Error loading summarization warnings: SqliteError: select * from `system_configs` where `key` = 'summarization_runtime_state' limit 1 - no such table: system_configs
#     at Database.prepare (/home/runner/work/propr/propr/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
#     at Client_BetterSQLite3._query (/home/runner/work/propr/propr/node_modules/knex/lib/dialects/better-sqlite3/index.js:35:34)
#     at executeQuery (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/query-executioner.js:37:17)
#     at Client_BetterSQLite3.query (/home/runner/work/propr/propr/node_modules/knex/lib/client.js:154:12)
#     at Runner.query (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:141:36)
#     at ensureConnectionCallback (/home/runner/work/propr/propr/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:13:17)
#     at Runner.ensureConnection (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:318:20)
#     at async Runner.run (/home/runner/work/propr/propr/node_modules/knex/lib/execution/runner.js:30:19)
#     at async getConfigWithClient (/home/runner/work/propr/propr/packages/core/src/config/configStore.ts:17:24)
#     at async loadSummarizationRuntimeState (/home/runner/work/propr/propr/packages/core/src/config/configManagerSummarization.ts:101:19) {
#   code: 'SQLITE_ERROR'
# }
# Subtest: /api/status includes routing state published by the daemon
ok 56 - /api/status includes routing state published by the daemon
  ---
  duration_ms: 1.98351
  type: 'test'
  ...
# 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: 2.944276
  type: 'test'
  ...
# 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: 6.4785
  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: 16.748451
  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 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: 6.437804
  type: 'test'
  ...
# Subtest: /api/status reports connected githubAuth for relay-auth deployments
ok 61 - /api/status reports connected githubAuth for relay-auth deployments
  ---
  duration_ms: 1.59666
  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.519326
  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 omits malformed routing state
ok 63 - /api/status omits malformed routing state
  ---
  duration_ms: 1.899894
  type: 'test'
  ...
# 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.857524
  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.695413
  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: 1.105065
  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' l

...(truncated)

View Workflow

@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex

Overall Evaluation

This PR adds typed Inbox actions, mobile-friendly controls, action persistence, lifecycle projection, and safe mutation reconciliation. It needs significant changes before merge because review follow-ups can target the wrong GitHub thread, while the metadata-based persistence scheme introduces backward-compatibility and payload-limit regressions. No current check has failed, though five checks remain pending.

✅ Destructive-action containment — Stop requires foreground confirmation and is never derived into a Web Push click action.

✅ Accurate mutation feedback — Successful stop and follow-up requests remain reported as successful when the subsequent Inbox refresh fails.

✅ Strong action validation — Advertised actions use a closed union with duplicate and cardinality checks, while legacy events default to an empty list.

Merge blockers

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

F9: 🔴 Review follow-ups can target the wrong thread

  • Required behavior: An advertised follow-up must operate on the GitHub issue or PR represented to the user; it must not post to a different thread.
  • Evidence: packages/api/services/notificationProjectionService.ts:517 and propr-ui/src/components/Inbox/NotificationActions.tsx:137 — eligibility requires only that some stored issue_number exists, while a review modal identifies the destination using target.prNumber. For review-mode tasks where those numbers differ, the reused endpoint posts to the stored issue number even though the UI presents the reviewed PR.
  • Minimum fix: Advertise follow_up for review notifications only when the persisted issue_number equals the resolved PR number, or pass and consume an explicit destination identity that matches the reviewed PR.

F10: 🔴 Legacy metadata can become actions

  • Required behavior: Reading existing immutable notification events must preserve producer metadata and must not synthesize newly actionable controls from legacy data.
  • Evidence: packages/core/src/services/notificationService.ts:161 — any pre-existing metadata object matching the new singleton __propr_notification_event_storage_v2 envelope is automatically unwrapped and its advertisedActions trusted. Metadata previously allowed arbitrary JSON with no reservation for this key, so a matching legacy object can be altered or even expose stop.
  • Minimum fix: Store actions behind an unambiguous database-level discriminator, preferably a nullable dedicated actions column where NULL identifies legacy rows, and continue treating all existing metadata_json values as producer metadata.

F11: 🔴 Action storage shrinks metadata capacity

  • Required behavior: Adding advertised actions must not make previously valid notification metadata fail persistence despite satisfying the published metadata-size contract.
  • Evidence: packages/core/src/services/notificationService.ts:202 — eventMetadataForStorage wraps every event, including events with empty actions, and validates the larger internal envelope against the same metadata byte limit. Consequently, raw producer metadata accepted by parseNotificationEvent near the documented limit is rejected solely due to storage overhead.
  • Minimum fix: Persist actions separately, or migrate the storage constraint to accommodate the maximum bounded envelope while continuing to enforce the existing limit against producer metadata itself.

Suggestions

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

S1: 🟢 Complete modal focus management

propr-ui/src/components/TaskDetails/FollowupModal.tsx now provides dialog semantics, autofocus, and Escape handling, but it does not trap focus or restore focus to the invoking control. Adding those behaviors would improve keyboard and screen-reader usability; it is optional because the requested controls remain labeled and keyboard-operable.

S2: 🟢 Tighten PR identity validation

notificationPullRequestUrl could reject task targets without a positive prNumber, and isValidGithubRepository could exclude path-normalizing components such as . and ... Built-in projections normally supply a PR identity and the UI cross-checks it when present, so this is defense-in-depth rather than a blocker for the ordinary producer flow.

Score

The core interaction design and tests are thoughtful, but wrong-thread follow-ups and two persistence-contract regressions prevent merge. Pending checks also still need to complete successfully after correction.

Score: 5/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 5m 57s
  • Tokens: 73,550 (59,271 in / 14,279 out)
  • Cost: $0.68

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

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 0ba6dc4

Summary of Changes

Fixed the sole CI failure in notificationProjectionService.ts by extracting follow-up eligibility logic into a helper, reducing method complexity without behavior changes.

Validation passed:

  • API ESLint with zero warnings
  • API TypeScript build
  • Notification projection suite: 9/9 tests
  • git diff --check

No commit was created.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @github-actions[bot]
  • Time: 2m 45s
  • Tokens: 850,513 (847,037 in / 3,476 out)
  • Cost: $0.81

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 5399234375✓

….ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-03-38/packages/api/services/notificationProjectionService.ts:152) by extracting follow-up eligibility logic into a helper, reducing method complexity without behavior changes.

Fixed the sole CI failure in [notificationProjectionService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-03-38/packages/api/services/notificationProjectionService.ts:152) by extracting follow-up eligibility logic into a helper, reducing method complexity without behavior changes.

Validation passed:

- API ESLint with zero warnings
- API TypeScript build
- Notification projection suite: 9/9 tests
- `git diff --check`

No commit was created.

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

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/fix F9 F10 F11

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit ff652ef

Addressed 1 AI review comment (IDs: 5399304357)

Summary of Changes

Implemented only F9, F10, and F11.

  • Review follow-ups are advertised only when the persisted issue number matches the reviewed PR.
  • Added nullable advertised_actions_json storage; NULL identifies legacy events.
  • Producer metadata remains unchanged in metadata_json, preserving the full published size limit.
  • Added migration and regression coverage for legacy metadata, maximum-size metadata, and mismatched review threads.

Key files: notificationProjectionService.ts, notificationService.ts, migration.

Validation passed:

  • 100 notification, projection, schema, migration, and Web Push tests
  • Core and API type checks
  • Core and API lint
  • Migration rollback smoke test
  • Diff whitespace check

No commit was created.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 10m 5s
  • Tokens: 4,393,828 (4,374,936 in / 18,892 out)
  • Cost: $3.35

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 5399346966✓

@github-actions

Copy link
Copy Markdown

Full Test Suite Results

Validation failed during: Full test suite.

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

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


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


[1/304] packages/api/test/agentLoginRoutes.test.ts
TAP version 13
# Subtest: agent login session manager
    # Subtest: builds an allowlisted Docker login container without forwarding host secrets
    ok 1 - builds an allowlisted Docker login container without forwarding host secrets
      ---
      duration_ms: 3.469853
      type: 'test'
      ...
    # Subtest: maps a ProPR-managed account to the managed host root and marks its container ownership as safe to normalize
    ok 2 - maps a ProPR-managed account to the managed host root and marks its container ownership as safe to normalize
      ---
      duration_ms: 1.525244
      type: 'test'
      ...
    # Subtest: creates a ProPR-managed credential directory before starting Docker
    ok 3 - creates a ProPR-managed credential directory before starting Docker
      ---
      duration_ms: 2.628228
      type: 'test'
      ...
    # Subtest: fails clearly instead of resolving a default home path inside a containerized API
    ok 4 - fails clearly instead of resolving a default home path inside a containerized API
      ---
      duration_ms: 0.727752
      type: 'test'
      ...
    # Subtest: rejects unsafe credential roots and option-like image names
    ok 5 - rejects unsafe credential roots and option-like image names
      ---
      duration_ms: 0.538407
      type: 'test'
      ...
    # Subtest: streams sanitized output, accepts input, and records successful completion
    ok 6 - streams sanitized output, accepts input, and records successful completion
      ---
      duration_ms: 1.992047
      type: 'test'
      ...
    # Subtest: prevents concurrent logins that write the same credential directory
    ok 7 - prevents concurrent logins that write the same credential directory
      ---
      duration_ms: 0.747979
      type: 'test'
      ...
    # Subtest: pulls a missing agent image before creating the login container
    ok 8 - pulls a missing agent image before creating the login container
      ---
      duration_ms: 0.804545
      type: 'test'
      ...
    # Subtest: renews the session deadline when the user sends input
    ok 9 - renews the session deadline when the user sends input
      ---
      duration_ms: 0.744062
      type: 'test'
      ...
    # Subtest: sweeps only orphaned login containers from the current stack scope
    ok 10 - sweeps only orphaned login containers from the current stack scope
      ---
      duration_ms: 0.636591
      type: 'test'
      ...
    1..10
ok 1 - agent login session manager
  ---
  duration_ms: 15.305158
  type: 'suite'
  ...
# Subtest: agent login routes
    # Subtest: starts and returns only the requesting user login session
    ok 1 - starts and returns only the requesting user login session
      ---
      duration_ms: 1.001454
      type: 'test'
      ...
    # Subtest: accepts the same agent alias on start and follow-up calls, including while disabled
    ok 2 - accepts the same agent alias on start and follow-up calls, including while disabled
      ---
      duration_ms: 0.730537
      type: 'test'
      ...
    # Subtest: rejects interactive login for an unsupported agent type
    ok 3 - rejects interactive login for an unsupported agent type
      ---
      duration_ms: 0.511066
      type: 'test'
      ...
    1..3
ok 2 - agent login routes
  ---
  duration_ms: 2.442981
  type: 'suite'
  ...
# [2026-08-24 18:08:17.180 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/001-agentLoginRoutes.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 18:08:17.193 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
# [2026-08-24 18:08:17.193 +0000] �[32mINFO�[39m: �[36mShutting down queue...�[39m
# [2026-08-24 18:08:17.193 +0000] �[32mINFO�[39m: �[36mQueue was never initialized, nothing to shutdown�[39m
1..2
# tests 13
# suites 2
# pass 13
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2442.539749

[2/304] packages/api/test/agentRuntimeRoutes.test.ts
TAP version 13
# Subtest: agent runtime package routes
    # Subtest: queues one validated package profile for the unified agent image
    ok 1 - queues one validated package profile for the unified agent image
      ---
      duration_ms: 5.168551
      type: 'test'
      ...
    # Subtest: persists a failed state when queue submission fails
    ok 2 - persists a failed state when queue submission fails
      ---
      duration_ms: 1.240361
      type: 'test'
      ...
    # Subtest: rejects a package missing from an effective runtime before queueing
    ok 3 - rejects a package missing from an effective runtime before queueing
      ---
      duration_ms: 0.938276
      type: 'test'
      ...
    # Subtest: times out slow runtime package validation before queueing
    ok 4 - times out slow runtime package validation before queueing
      ---
      duration_ms: 8.467755
      type: 'test'
      ...
    # Subtest: returns package suggestions from configured runtimes
    ok 5 - returns package suggestions from configured runtimes
      ---
      duration_ms: 6.019143
      type: 'test'
      ...
    # Subtest: enforces PROPR_ADMIN_USERS when configured
    ok 6 - enforces PROPR_ADMIN_USERS when configured
      ---
      duration_ms: 0.583963
      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.329036
      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.467024
      type: 'test'
      ...
    # Subtest: warms the package catalog when an admin loads runtime package state
    ok 9 - warms the package catalog when an admin loads runtime package state
      ---
      duration_ms: 0.528639
      type: 'test'
      ...
    # Subtest: does not warm the package catalog when a member is rejected
    ok 10 - does not warm the package catalog when a member is rejected
      ---
      duration_ms: 5.178139
      type: 'test'
      ...
    # Subtest: resolves the runtime build queue lazily when queueing
    ok 11 - resolves the runtime build queue lazily when queueing
      ---
      duration_ms: 0.982127
      type: 'test'
      ...
    # Subtest: reports apply load failures through the route response
    ok 12 - reports apply load failures through the route response
      ---
      duration_ms: 0.375403
      type: 'test'
      ...
    1..12
ok 1 - agent runtime package routes
  ---
  duration_ms: 32.30123
  type: 'suite'
  ...
# [2026-08-24 18:08:19.381 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/002-agentRuntimeRoutes.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 18:08:19.410 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..1
# tests 12
# suites 1
# pass 12
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2146.200744

[3/304] packages/api/test/attachmentUploadCleanup.test.ts
TAP version 13
# Subtest: upload handler removes Multer files rejected before attachment processing
ok 1 - upload handler removes Multer files rejected before attachment processing
  ---
  duration_ms: 9.309361
  type: 'test'
  ...
# Subtest: attachment processing removes temporary and final files when persistence fails
ok 2 - attachment processing removes temporary and final files when persistence fails
  ---
  duration_ms: 6.448234
  type: 'test'
  ...
# Subtest: temporary cleanup refuses paths outside its configured root
ok 3 - temporary cleanup refuses paths outside its configured root
  ---
  duration_ms: 0.811148
  type: 'test'
  ...
# Subtest: temporary cleanup rejects dot-segment paths that resolve above its root
ok 4 - temporary cleanup rejects dot-segment paths that resolve above its root
  ---
  duration_ms: 0.63029
  type: 'test'
  ...
# Subtest: attachment processing rejects path-like draft IDs and still cleans its temp file
ok 5 - attachment processing rejects path-like draft IDs and still cleans its temp file
  ---
  duration_ms: 2.257294
  type: 'test'
  ...
# [2026-08-24 18:08:21.669 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/003-attachmentUploadCleanup.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 18:08:21.688 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..5
# tests 5
# suites 0
# pass 5
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2226.185586

[4/304] packages/api/test/authGithubTokens.test.ts
TAP version 13
# Refreshing GitHub token for user octocat (force=true)
# Successfully refreshed GitHub token for user octocat
# Refreshing GitHub token for user octocat (force=true)
# GitHub token refresh failed with status 503
# Refreshing GitHub token for user octocat (force=true)
# Subtest: isGitHubTokenExpired handles missing, future, exact, and past expiry values
ok 1 - isGitHubTokenExpired handles missing, future, exact, and past expiry values
  ---
  duration_ms: 2.756479
  type: 'test'
  ...
# Subtest: ensureAuthenticated refreshes an expired GitHub token before continuing
ok 2 - ensureAuthenticated refreshes an expired GitHub token before continuing
  ---
  duration_ms: 5.918215
  type: 'test'
  ...
# Subtest: ensureAuthenticated reports a temporary error when refresh fails recoverably
ok 3 - ensureAuthenticated reports a temporary error when refresh fails recoverably
  ---
  duration_ms: 1.573565
  type: 'test'
  ...
# Successfully refreshed GitHub token for user octocat
# Saved refreshed GitHub token for concurrent request by user octocat
# Refreshing GitHub token for user octocat (force=true)
# GitHub token refresh response missing access_token
# Refreshing GitHub token for user octocat (force=true)
# GitHub token refresh error: bad_refresh_token - The refresh token is invalid.
# Marked GitHub OAuth session for user octocat as requiring re-authentication (bad_refresh_token)
# GitHub token expired or revoked, attempting token refresh
# Refreshing GitHub token for user octocat (force=true)
# Successfully refreshed GitHub token for user octocat
# Token refresh successful, client should retry
# Subtest: ensureAuthenticated coalesces concurrent expired-token refreshes for one session
ok 4 - ensureAuthenticated coalesces concurrent expired-token refreshes for one session
  ---
  duration_ms: 11.772267
  type: 'test'
  ...
# Subtest: ensureAuthenticated rejects an expired GitHub token with no refresh token
ok 5 - ensureAuthenticated rejects an expired GitHub token with no refresh token
  ---
  duration_ms: 1.002015
  type: 'test'
  ...
# Subtest: ensureAuthenticated reports a temporary error when refresh omits an access token
ok 6 - ensureAuthenticated reports a temporary error when refresh omits an access token
  ---
  duration_ms: 1.06313
  type: 'test'
  ...
# Subtest: ensureAuthenticated clears the session after an unrecoverable refresh error
ok 7 - ensureAuthenticated clears the session after an unrecoverable refresh error
  ---
  duration_ms: 1.250149
  type: 'test'
  ...
# Subtest: GitHub route auth error emits TOKEN_REFRESHED after a successful refresh
ok 8 - GitHub route auth error emits TOKEN_REFRESHED after a successful refresh
  ---
  duration_ms: 1.056145
  type: 'test'
  ...
# [2026-08-24 18:08:24.592 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/004-authGithubTokens.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 18:08:24.613 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..8
# tests 8
# suites 0
# pass 8
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2848.083553

[5/304] packages/api/test/authRedirect.test.ts
TAP version 13
# Subtest: auth redirect allowlist treats FRONTEND_URL as exact host only
ok 1 - auth redirect allowlist treats FRONTEND_URL as exact host only
  ---
  duration_ms: 49.194699
  type: 'test'
  ...
# Subtest: proxy mode auth redirect fallback returns the hosted UI origin
ok 2 - proxy mode auth redirect fallback returns the hosted UI origin
  ---
  duration_ms: 11.476797
  type: 'test'
  ...
# Subtest: auth redirect allowlist permits subdomains only for explicit wildcard-style hosts
ok 3 - auth redirect allowlist permits subdomains only for explicit wildcard-style hosts
  ---
  duration_ms: 6.319967
  type: 'test'
  ...
# Subtest: auth redirect allowlist permits leading-dot COOKIE_DOMAIN subdomains
ok 4 - auth redirect allowlist permits leading-dot COOKIE_DOMAIN subdomains
  ---
  duration_ms: 4.689666
  type: 'test'
  ...
# Subtest: auth redirect allowlist permits exact additional hosts without permitting their subdomains
ok 5 - auth redirect allowlist permits exact additional hosts without permitting their subdomains
  ---
  duration_ms: 7.161111
  type: 'test'
  ...
# Subtest: auth redirect allowlist permits wildcard entries with protocol prefixes
ok 6 - auth redirect allowlist permits wildcard entries with protocol prefixes
  ---
  duration_ms: 7.012482
  type: 'test'
  ...
# Subtest: auth redirect allowlist rejects invalid URLs and non-http protocols
ok 7 - auth redirect allowlist rejects invalid URLs and non-http protocols
  ---
  duration_ms: 8.563165
  type: 'test'
  ...
# Subtest: auth redirect allowlist only permits cleartext HTTP for localhost
ok 8 - auth redirect allowlist only permits cleartext HTTP for localhost
  ---
  duration_ms: 6.479315
  type: 'test'
  ...
# Subtest: auth redirect allowlist permits configured local IP literals
ok 9 - auth redirect allowlist permits configured local IP literals
  ---
  duration_ms: 7.886919
  type: 'test'
  ...
# Subtest: auth redirect allowlist ignores malformed additional host entries
ok 10 - auth redirect allowlist ignores malformed additional host entries
  ---
  duration_ms: 7.230771
  type: 'test'
  ...
# [2026-08-24 18:08:27.489 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/005-authRedirect.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 18:08:27.597 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..10
# tests 10
# suites 0
# pass 10
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2766.86515

[6/304] packages/api/test/configAgentValidation.antigravity.test.ts
TAP version 13
# Subtest: agent config validation accepts antigravity and rejects gemini for new configs
ok 1 - agent config validation accepts antigravity and rejects gemini for new configs
  ---
  duration_ms: 1740.76868
  type: 'test'
  ...
# [2026-08-24 18:08:30.006 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/006-configAgentValidation.antigravity.test.ts/propr.test.sqlite"
#     environment: "test"
1..1
# tests 1
# suites 0
# pass 1
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2185.574252

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

[8/304] packages/api/test/configRoutesIndexingSummarization.test.ts
TAP version 13
# [2026-08-24 18:08:32.715 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/008-configRoutesIndexingSummarization.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 18:08:32.751 +0000] �[32mINFO�[39m: �[36mRunning database migrations...�[39m
# Subtest: postSummarizationSettings trims model-specific aliases before saving
ok 1 - postSummarizationSettings trims model-specific aliases before saving
  ---
  duration_ms: 1994.720397
  type: 'test'
  ...
# Subtest: postSummarizationSettings rejects enabled summarization without a primary alias
ok 2 - postSummarizationSettings rejects enabled summarization without a primary alias
  ---
  duration_ms: 4.757302
  type: 'test'
  ...
# [2026-08-24 18:08:33.010 +0000] �[32mINFO�[39m: �[36mDatabase migrations completed successfully�[39m
# [2026-08-24 18:08:33.011 +0000] �[32mINFO�[39m: �[36mSuccessfully loaded agents configuration�[39m
#     agentCount: 2
# [2026-08-24 18:08:33.012 +0000] �[32mINFO�[39m: �[36mSuccessfully loaded summarization settings�[39m
#     summarization: {
#       "enabled": false,
#       "agent_alias": "",
#       "fallback_agent_alias": "",
#       "custom_prompt": ""
#     }
# [2026-08-24 18:08:33.014 +0000] �[32mINFO�[39m: �[36mSuccessfully saved summarization settings�[39m
#     summarization: {
#       "enabled": true,
#       "agent_alias": "codex:gpt-5.5",
#       "fallback_agent_alias": "fallback:gpt-5.4",
#       "custom_prompt": ""
#     }
# [2026-08-24 18:08:33.014 +0000] �[32mINFO�[39m: �[36mSuccessfully loaded summarization settings�[39m
#     summarization: {
#       "enabled": true,
#       "agent_alias": "codex:gpt-5.5",
#       "fallback_agent_alias": "fallback:gpt-5.4",
#       "custom_prompt": ""
#     }
# [2026-08-24 18:08:33.027 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..2
# tests 2
# suites 0
# pass 2
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2458.333156

[9/304] packages/api/test/connectAuth.test.ts
TAP version 13
# Subtest: relay tunnel mode uses Connect without local OAuth credentials
ok 1 - relay tunnel mode uses Connect without local OAuth credentials
  ---
  duration_ms: 1.590707
  type: 'test'
  ...
# Subtest: relay tunnel mode preserves Connect for operator-supplied service endpoints
ok 2 - relay tunnel mode preserves Connect for operator-supplied service endpoints
  ---
  duration_ms: 0.271238
  type: 'test'
  ...
# Subtest: local relay mode uses Connect without a per-instance OAuth App
ok 3 - local relay mode uses Connect without a per-instance OAuth App
  ---
  duration_ms: 0.346238
  type: 'test'
  ...
# Subtest: off-tunnel relay inference rejects callbacks outside the exact loopback allowlist
ok 4 - off-tunnel relay inference rejects callbacks outside the exact loopback allowlist
  ---
  duration_ms: 0.378899
  type: 'test'
  ...
# Subtest: off-tunnel custom relay enrollment does not infer hosted Connect auth
ok 5 - off-tunnel custom relay enrollment does not infer hosted Connect auth
  ---
  duration_ms: 0.179837
  type: 'test'
  ...
# Subtest: literal example OAuth placeholders do not enable GitHub web auth
ok 6 - literal example OAuth placeholders do not enable GitHub web auth
  ---
  duration_ms: 0.143278
  type: 'test'
  ...
# Subtest: explicit custom GitHub web auth remains supported
ok 7 - explicit custom GitHub web auth remains supported
  ---
  duration_ms: 0.18132
  type: 'test'
  ...
# Subtest: explicit custom GitHub web auth wins over relay inference off-tunnel
ok 8 - explicit custom GitHub web auth wins over relay inference off-tunnel
  ---
  duration_ms: 0.166111
  type: 'test'
  ...
# Subtest: Connect authorization URL carries the exact callback and CSRF state
ok 9 - Connect authorization URL carries the exact callback and CSRF state
  ---
  duration_ms: 0.530142
  type: 'test'
  ...
# Subtest: redeems a Connect code server-to-server without exposing the relay token in the body
ok 10 - redeems a Connect code server-to-server without exposing the relay token in the body
  ---
  duration_ms: 27.881425
  type: 'test'
  ...
# Subtest: binds the Connect identity username to the validated token owner
ok 11 - binds the Connect identity username to the validated token owner
  ---
  duration_ms: 0.968021
  type: 'test'
  ...
1..11
# tests 11
# suites 0
# pass 11
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 328.88095

[10/304] packages/api/test/connectAuthCallback.test.ts
TAP version 13
# [2026-08-24 18:08:36.200 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/010-connectAuthCallback.test.ts/propr.test.sqlite"
#     environment: "test"
# Subtest: Connect login preserves a validated redirect_to across Passport session regeneration
ok 1 - Connect login preserves a validated redirect_to across Passport session regeneration
  ---
  duration_ms: 3045.181203
  type: 'test'
  ...
# [2026-08-24 18:08:39.241 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..1
# tests 1
# suites 0
# pass 1
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 5669.611238

[11/304] packages/api/test/corsValidation.test.ts
TAP version 13
# Subtest: CORS allows the hosted UI origin under proxy mode
ok 1 - CORS allows the hosted UI origin under proxy mode
  ---
  duration_ms: 1.198613
  type: 'test'
  ...
# Subtest: CORS rejects unrelated origins under proxy mode
ok 2 - CORS rejects unrelated origins under proxy mode
  ---
  duration_ms: 0.291034
  type: 'test'
  ...
# Subtest: CORS allows requests with no origin
ok 3 - CORS allows requests with no origin
  ---
  duration_ms: 0.156744
  type: 'test'
  ...
# Subtest: CORS allows localhost for development
ok 4 - CORS allows localhost for development
  ---
  duration_ms: 0.178604
  type: 'test'
  ...
# Subtest: CORS rejects non-http(s) localhost schemes
ok 5 - CORS rejects non-http(s) localhost schemes
  ---
  duration_ms: 0.26718
  type: 'test'
  ...
# Subtest: CORS allows COOKIE_DOMAIN subdomains for preview environments
ok 6 - CORS allows COOKIE_DOMAIN subdomains for preview environments
  ---
  duration_ms: 0.173044
  type: 'test'
  ...
# Subtest: CORS preserves http COOKIE_DOMAIN preview compatibility
ok 7 - CORS preserves http COOKIE_DOMAIN preview compatibility
  ---
  duration_ms: 0.200275
  type: 'test'
  ...
# Subtest: CORS validator factory throws on an invalid FRONTEND_URL
ok 8 - CORS validator factory throws on an invalid FRONTEND_URL
  ---
  duration_ms: 0.295312
  type: 'test'
  ...
# Subtest: Express CORS boundary is sanitized in development mode
ok 9 - Express CORS boundary is sanitized in development mode
  ---
  duration_ms: 95.692143
  type: 'test'
  ...
# Subtest: Express CORS boundary is sanitized in production mode
ok 10 - Express CORS boundary is sanitized in production mode
  ---
  duration_ms: 32.207612
  type: 'test'
  ...
1..10
# tests 10
# suites 0
# pass 10
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 541.889384

[12/304] packages/api/test/demoMode.test.ts
TAP version 13
# Subtest: demoModeReadOnlyMiddleware rejects mutating requests in demo mode
ok 1 - demoModeReadOnlyMiddleware rejects mutating requests in demo mode
  ---
  duration_ms: 6.934579
  type: 'test'
  ...
# Subtest: demoModeReadOnlyMiddleware blocks auth metadata mutations
ok 2 - demoModeReadOnlyMiddleware blocks auth metadata mutations
  ---
  duration_ms: 2.143051
  type: 'test'
  ...
# Subtest: isDemoMode accepts common truthy environment values
ok 3 - isDemoMode accepts common truthy environment values
  ---
  duration_ms: 1.217168
  type: 'test'
  ...
# Subtest: configured demo mode keeps auth and middleware on the same startup value
ok 4 - configured demo mode keeps auth and middleware on the same startup value
  ---
  duration_ms: 1.583734
  type: 'test'
  ...
# Subtest: demo Redis facade covers read-only route Redis usage
ok 5 - demo Redis facade covers read-only route Redis usage
  ---
  duration_ms: 4.399575
  type: 'test'
  ...
# Subtest: demo Express GET routes work with the in-memory Redis facade
ok 6 - demo Express GET routes work with the in-memory Redis facade
  ---
  duration_ms: 63.133336
  type: 'test'
  ...
# Subtest: ensureAuthenticated attaches the synthetic demo user
ok 7 - ensureAuthenticated attaches the synthetic demo user
  ---
  duration_ms: 2.078941
  type: 'test'
  ...
# Subtest: ensureAuthenticated ignores bearer auth and attaches the synthetic demo user in demo mode
ok 8 - ensureAuthenticated ignores bearer auth and attaches the synthetic demo user in demo mode
  ---
  duration_ms: 1.792445
  type: 'test'
  ...
# Subtest: demo repository metadata resolves enabled configured repositories
ok 9 - demo repository metadata resolves enabled configured repositories
  ---
  duration_ms: 17.046465
  type: 'test'
  ...
# Subtest: repository config branch validation documents ProPR-supported branch names
ok 10 - repository config branch validation documents ProPR-supported branch names
  ---
  duration_ms: 2.968787
  type: 'test'
  ...
# [2026-08-24 18:08:42.828 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/012-demoMode.test.ts/propr.test.sqlite"
#     environment: "test"
# Subtest: /api/github/repos returns configured and persisted repositories in demo mode
ok 11 - /api/github/repos returns configured and persisted repositories in demo mode
  ---
  duration_ms: 294.294733
  type: 'test'
  ...
# Subtest: demo repository metadata resolves persisted repositories without configured allowlists
ok 12 - demo repository metadata resolves persisted repositories without configured allowlists
  ---
  duration_ms: 11.97893
  type: 'test'
  ...
# Subtest: demo repository metadata ignores malformed database repository names
ok 13 - demo repository metadata ignores malformed database repository names
  ---
  duration_ms: 1.70435
  type: 'test'
  ...
# [2026-08-24 18:08:43.217 +0000] �[32mINFO�[39m: �[36mSuccessfully saved monitored repositories�[39m
#     repos: [
#       {
#         "id": "1",
#         "name": "integry/propr",
#         "enabled": true
#       },
#       {
#         "id": "2",
#         "name": "integry/private",
#         "enabled": true
#       },
#       {
#         "id": "3",
#         "name": "integry/disabled",
#         "enabled": false
#       }
#     ]
# [2026-08-24 18:08:43.218 +0000] �[32mINFO�[39m: �[36mSuccessfully loaded all monitored repositories�[39m
#     total_repos: 3
# [2026-08-24 18:08:43.231 +0000] �[32mINFO�[39m: �[36mSuccessfully loaded all monitored repositories�[39m
#     total_repos: 0
# Subtest: planner demo reads use the curated database without owner or repository allowlists
ok 14 - planner demo reads use the curated database without owner or repository allowlists
  ---
  duration_ms: 9.623111
  type: 'test'
  ...
# [2026-08-24 18:08:43.241 +0000] �[32mINFO�[39m: �[36mSuccessfully saved monitored repositories�[39m
#     repos: [
#       {
#         "id": "1",
#         "name": "integry/propr",
#         "enabled": true
#       },
#       {
#         "id": "2",
#         "name": "integry/private",
#         "enabled": true
#       }
#     ]
# Subtest: repo todo demo reads use the curated database without owner filters
ok 15 - repo todo demo reads use the curated database without owner filters
  ---
  duration_ms: 8.653456
  type: 'test'
  ...
# Subtest: auth demo-mode metadata endpoint reports startup environment value
ok 16 - auth demo-mode metadata endpoint reports startup environment value
  ---
  duration_ms: 8.974548
  type: 'test'
  ...
1..16
# tests 16
# suites 0
# pass 16
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2977.408509

[13/304] packages/api/test/dockerCommandSafety.test.ts
TAP version 13
# Subtest: accepts Docker IDs and ProPR-generated container names
ok 1 - accepts Docker IDs and ProPR-generated container names
  ---
  duration_ms: 1.0485
  type: 'test'
  ...
# Subtest: rejects container references that could be parsed as options or shell syntax
ok 2 - rejects container references that could be parsed as options or shell syntax
  ---
  duration_ms: 0.24091
  type: 'test'
  ...
# Subtest: production subprocess call sites do not invoke a command shell
ok 3 - production subprocess call sites do not invoke a command shell
  ---
  duration_ms: 91.589994
  type: 'test'
  ...
# Subtest: no-shell guard rejects aliases and enabled shell options
ok 4 - no-shell guard rejects aliases and enabled shell options
  ---
  duration_ms: 2.801054
  type: 'test'
  ...
1..4
# tests 4
# suites 0
# pass 4
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 985.018745

[14/304] packages/api/test/instanceAuthorization.test.ts
TAP version 13
# 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: 12.954718
      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: 6.224602
      type: 'test'
      ...
    # Subtest: grants full admin permissions to PROPR_ADMIN_USERS
    ok 3 - grants full admin permissions to PROPR_ADMIN_USERS
      ---
      duration_ms: 3.163702
      type: 'test'
      ...
    # Subtest: resolves durable roles by numeric GitHub ID after a username change
    ok 4 - resolves durable roles by numeric GitHub ID after a username change
      ---
      duration_ms: 3.527512
      type: 'test'
      ...
    # Subtest: resolves demo users without installation permissions
    ok 5 - resolves demo users without installation permissions
      ---
      duration_ms: 2.626618
      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: 2.624184
      type: 'test'
      ...
    # Subtest: current-user responses expose capabilities without OAuth credentials
    ok 7 - current-user responses expose capabilities without OAuth credentials
      ---
      duration_ms: 3.290869
      type: 'test'
      ...
    1..7
ok 1 - instance authorization
  ---
  duration_ms: 35.903028
  type: 'suite'
  ...
# Subtest: instance member service
    # Subtest: does not let an unassigned user claim the initial administrator role
    ok 1 - does not let an unassigned user claim the initial administrator role
      ---
      duration_ms: 4.271011
      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: 7.864936
      type: 'test'
      ...
    # Subtest: adds explicit members and writes an audit entry
    ok 3 - adds explicit members and writes an audit entry
      ---
      duration_ms: 6.443521
      type: 'test'
      ...
    # Subtest: keeps environment authority separate from durable role assignments
    ok 4 - keeps environment authority separate from durable role assignments
      ---
      duration_ms: 3.265332
      type: 'test'
      ...
    # Subtest: prevents removing the last durable administrator
    ok 5 - prevents removing the last durable administrator
      ---
      duration_ms: 5.958554
      type: 'test'
      ...
    # Subtest: allows role changes once another administrator exists
    ok 6 - allows role changes once another administrator exists
      ---
      duration_ms: 7.544978
      type: 'test'
      ...
    1..6
ok 2 - instance member service
  ---
  duration_ms: 35.937612
  type: 'suite'
  ...
# Subtest: instance catalog
    # Subtest: returns operational agent and repository fields without installation internals
    ok 1 - returns operational agent and repository fields without installation internals
      ---
      duration_ms: 2.650753
      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: 7.992004
      type: 'test'
      ...
    1..2
ok 3 - instance catalog
  ---
  duration_ms: 10.790834
  type: 'suite'
  ...
# Subtest: instance admin routes
    # Subtest: resolves a GitHub username and creates one durable member assignment
    ok 1 - resolves a GitHub username and creates one durable member assignment
      ---
      duration_ms: 3.762291
      type: 'test'
      ...
    # Subtest: rejects a non-numeric audit limit with a 400
    ok 2 - rejects a non-numeric audit limit with a 400
      ---
      duration_ms: 1.831682
      type: 'test'
      ...
    # Subtest: rejects GitHub usernames with trailing or consecutive hyphens
    ok 3 - rejects GitHub usernames with trailing or consecutive hyphens
      ---
      duration_ms: 2.182598
      type: 'test'
      ...
    1..3
ok 4 - instance admin routes
  ---
  duration_ms: 7.982686
  type: 'suite'
  ...
# [2026-08-24 18:08:46.550 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/014-instanceAuthorization.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 18:08:46.634 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..4
# tests 18
# suites 4
# pass 18
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2345.571235

[15/304] packages/api/test/listenAddress.test.ts
TAP version 13
# Subtest: direct API execution binds to loopback by default
ok 1 - direct API execution binds to loopback by default
  ---
  duration_ms: 1.303977
  type: 'test'
  ...
# Subtest: containerized API execution remains reachable through its published port
ok 2 - containerized API execution remains reachable through its published port
  ---
  duration_ms: 0.302776
  type: 'test'
  ...
# Subtest: an explicit API listen host overrides environment defaults
ok 3 - an explicit API listen host overrides environment defaults
  ---
  duration_ms: 0.179255
  type: 'test'
  ...
1..3
# tests 3
# suites 0
# pass 3
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 281.002149

[16/304] packages/api/test/liveDetailsAntigravity.test.ts
TAP version 13
# Failed to read GitHub App private key: ENOENT: no such file or directory, open '/tmp/missing-key.pem'
# Ensure GH_PRIVATE_KEY_PATH is set correctly in your .env file and points to a valid private key file.
# Subtest: stored output detection recognizes Antigravity stream JSON
ok 1 - stored output detection recognizes Antigravity stream JSON
  ---
  duration_ms: 2.512711
  type: 'test'
  ...
# Subtest: stored output detection keeps Codex message JSONL classified as Codex
ok 2 - stored output detection keeps Codex message JSONL classified as Codex
  ---
  duration_ms: 1.567423
  type: 'test'
  ...
# Subtest: stored output detection keeps Codex result JSONL classified as Codex
ok 3 - stored output detection keeps Codex result JSONL classified as Codex
  ---
  duration_ms: 0.906176
  type: 'test'
  ...
# Subtest: stored output detection keeps Codex tool result JSONL classified as Codex
ok 4 - stored output detection keeps Codex tool result JSONL classified as Codex
  ---
  duration_ms: 0.21927
  type: 'test'
  ...
# Subtest: stored output detection does not treat generic init JSONL as Antigravity
ok 5 - stored output detection does not treat generic init JSONL as Antigravity
  ---
  duration_ms: 0.325079
  type: 'test'
  ...
# Subtest: stored output detection recognizes Antigravity JSONL from result stats when init is missing
ok 6 - stored output detection recognizes Antigravity JSONL from result stats when init is missing
  ---
  duration_ms: 0.347721
  type: 'test'
  ...
# Subtest: stored output detection keeps generic result token stats classified as Codex
ok 7 - stored output detection keeps generic result token stats classified as Codex
  ---
  duration_ms: 0.233798
  type: 'test'
  ...
# Subtest: stored output detection recognizes truncated Antigravity result JSON
ok 8 - stored output detection recognizes truncated Antigravity result JSON
  ---
  duration_ms: 0.170419
  type: 'test'
  ...
# Subtest: stored output detection recognizes Antigravity message JSON with model metadata
ok 9 - stored output detection recognizes Antigravity message JSON with model metadata
  ---
  duration_ms: 0.369832
  type: 'test'
  ...
# Subtest: stored output parsing renders only Antigravity analysis events through live details
ok 10 - stored output parsing renders only Antigravity analysis events through live details
  ---
  duration_ms: 75.012073
  type: 'test'
  ...
# Subtest: Antigravity 1.1.12 stream text remains visible through live details
ok 11 - Antigravity 1.1.12 stream text remains visible through live details
  ---
  duration_ms: 2.280298
  type: 'test'
  ...
# Subtest: stored output detection and live-details rendering consume Antigravity stream arrays
ok 12 - stored output detection and live-details rendering consume Antigravity stream arrays
  ---
  duration_ms: 1.391794
  type: 'test'
  ...
# Subtest: Antigravity cache-only stream usage remains visible through live details
ok 13 - Antigravity cache-only stream usage remains visible through live details
  ---
  duration_ms: 1.023933
  type: 'test'
  ...
# Subtest: stored output parsing filters Antigravity transcript tool items
ok 14 - stored output parsing filters Antigravity transcript tool items
  ---
  duration_ms: 0.955989
  type: 'test'
  ...
# Subtest: Claude-format Antigravity conversation files render only planner analysis
ok 15 - Claude-format Antigravity conversation files render only planner analysis
  ---
  duration_ms: 1.376446
  type: 'test'
  ...
# Subtest: execution detail fallback filters Antigravity transcript tool rows
ok 16 - execution detail fallback filters Antigravity transcript tool rows
  ---
  duration_ms: 1.122791
  type: 'test'
  ...
# [2026-08-24 18:08:49.547 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/016-liveDetailsAntigravity.test.ts/propr.test.sqlite"
#     environment: "test"
1..16
# tests 16
# suites 0
# pass 16
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2196.132029

[17/304] packages/api/test/liveDetailsCodexDbFallback.test.ts
TAP version 13
# [live-details] jobId: integry-propr-1915-codex, taskId: integry-propr-1915-codex
# [live-details] Trying Redis fallback
# [live-details] stateKey: worker:state:integry-propr-1915-codex, hasData: false
# [live-details] No state data found in Redis
# [live-details] Fetching sessionId from SQLite for taskId: integry-propr-1915-codex
# [live-details] Found sessionId in SQLite: codex-db-session
# [live-details] Using sessionId: codex-db-session
# Subtest: Codex database lifecycle fallback has exact canonical event parity
ok 1 - Codex database lifecycle fallback has exact canonical event parity
  ---
  duration_ms: 5.361734
  type: 'test'
  ...
# Subtest: Codex command lifecycle pairs starts and completions and recovers an unmatched completion
ok 2 - Codex command lifecycle pairs starts and completions and recovers an unmatched completion
  ---
  duration_ms: 0.34737
  type: 'test'
  ...
# Subtest: Codex database fallback retains row content for minimal error metadata
ok 3 - Codex database fallback retains row content for minimal error metadata
  ---
  duration_ms: 0.198512
  type: 'test'
  ...
# Subtest: Codex database fallback retains row content and error flag for minimal tool-result metadata
ok 4 - Codex database fallback retains row content and error flag for minimal tool-result metadata
  ---
  duration_ms: 0.202368
  type: 'test'
  ...
# Subtest: Codex database fallback ignores envelopes while retaining text, errors, and todos
ok 5 - Codex database fallback ignores envelopes while retaining text, errors, and todos
  ---
  duration_ms: 0.478595
  type: 'test'
  ...
# [live-details] Checking Claude conversation path: not found
# [live-details] Claude conversation file not found, trying active Redis output
# [live-details] Claude conversation file not found, trying stored execution output fallback
# [live-details] No stored execution logs found in Redis for session fallback
# [live-details] Stored execution output fallback unavailable, trying database fallback
# [live-details] jobId: integry-propr-1915-codex, taskId: integry-propr-1915-codex
# [live-details] Trying Redis fallback
# [live-details] stateKey: worker:state:integry-propr-1915-codex, hasData: false
# [live-details] No state data found in Redis
# [live-details] Fetching sessionId from SQLite for taskId: integry-propr-1915-codex
# [live-details] Found sessionId in SQLite: codex-db-session
# [live-details] Using sessionId: codex-db-session
# [live-details] Checking Claude conversation path: not found
# [live-details] Claude conversation file not found, trying active Redis output
# [live-details] Claude conversation file not found, trying stored execution output fallback
# [live-details] No stored execution logs found in Redis for session fallback
# [live-details] Stored execution output fallback unavailable, trying database fallback
# Subtest: live-details database fallback preserves token usage and stable event IDs
ok 6 - live-details database fallback preserves token usage and stable event IDs
  ---
  duration_ms: 22.47608
  type: 'test'
  ...
# [2026-08-24 18:08:51.788 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/017-liveDetailsCodexDbFallback.test.ts/propr.test.sqlite"
#     environment: "test"
1..6
# tests 6
# suites 0
# pass 6
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2014.4876

[18/304] packages/api/test/liveDetailsOpenCodeParser.test.ts
TAP version 13
# Subtest: detectStoredOutputFormat keeps Codex message streams with session_id as codex
ok 1 - detectStoredOutputFormat keeps Codex message streams with session_id as codex
  ---
  duration_ms: 1702.915688
  type: 'test'
  ...
# Subtest: detectStoredOutputFormat does not classify bare conversation_id JSON as Claude
ok 2 - detectStoredOutputFormat does not classify bare conversation_id JSON as Claude
  ---
  duration_ms: 8.438332
  type: 'test'
  ...
# Subtest: detectStoredOutputFormat keeps Claude-shaped conversation_id JSON as Claude
ok 3 - detectStoredOutputFormat keeps Claude-shaped conversation_id JSON as Claude
  ---
  duration_ms: 2.038856
  type: 'test'
  ...
# Subtest: parseOpenCodeOutputToConversationResult separates structured assistant text parts
ok 4 - parseOpenCodeOutputToConversationResult separates structured assistant text parts
  ---
  duration_ms: 21.888384
  type: 'test'
  ...
# Subtest: detectStoredOutputFormat recognizes whole-document pretty OpenCode JSON
ok 5 - detectStoredOutputFormat recognizes whole-document pretty OpenCode JSON
  ---
  duration_ms: 1.696325
  type: 'test'
  ...
# Subtest: detectStoredOutputFormat recognizes OpenCode assistant parts without session identifiers
ok 6 - detectStoredOutputFormat recognizes OpenCode assistant parts without session identifiers
  ---
  duration_ms: 1.301666
  type: 'test'
  ...
# Subtest: detectStoredOutputFormat recognizes whole-document pretty Claude JSON arrays
ok 7 - detectStoredOutputFormat recognizes whole-document pretty Claude JSON arrays
  ---
  duration_ms: 1.092745
  type: 'test'
  ...
# [2026-08-24 18:08:53.992 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/018-liveDetailsOpenCodeParser.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 18:08:54.029 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..7
# tests 7
# suites 0
# pass 7
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2182.77774

[19/304] packages/api/test/mergedPrTaskCancellation.test.ts
TAP version 13
# [webhook] Merged PR acme/widgets\#42: cancelled 3/3 active task(s)
# [webhook] Failed to cancel task for merged PR {
#   taskId: 'task-a',
#   repository: 'acme/widgets',
#   prNumber: 42,
#   error: Error: container stop blew up
#       at Object.stopTask (/home/runner/work/propr/propr/packages/api/test/mergedPrTaskCancellation.test.ts:89:34)
#       at stopNext (/home/runner/work/propr/propr/packages/api/webhookHandler.ts:210:35)
#       at <anonymous> (/home/runner/work/propr/propr/packages/api/webhookHandler.ts:236:104)
#       at Function.from (<anonymous>)
#       at cancelActiveTasksForMergedPR (/home/runner/work/propr/propr/packages/api/webhookHandler.ts:236:27)
#       at async TestContext.<anonymous> (/home/runner/work/propr/propr/packages/api/test/mergedPrTaskCancellation.test.ts:94:19)
#       at async Test.run (node:internal/test_runner/test:1054:7)
#       at async Test.processPendingSubtests (node:internal/test_runner/test:744:7)
# }
# [webhook] Task task-a for merged PR acme/widgets\#42 was stopped but the cancellation was not durably recorded; the abort signal remains for the worker to observe
# [webhook] Merged PR acme/widgets\#42: cancelled 2/3 active task(s), 1 failed
# [webhook] Task task-a for merged PR acme/widgets\#42 was no longer active
# [webhook] Merged PR acme/widgets\#42: cancelled 2/3 active task(s), 1 no longer active
# [webhook] Merged PR acme/widgets\#42: cancelled 2/3 active task(s), 1 stopped without a durable record
# [webhook] Event received: pull_request, action: closed, repo: acme/widgets, delivery: delivery-cvrvsocfn5g
# [webhook] Merged PR acme/widgets\#42: cancelled 3/3 active task(s)
# [webhook] Event received: pull_request, action: closed, repo: acme/widgets, delivery: delivery-49a4ymacq6d
# [webhook] Event received: pull_request, action: closed, repo: acme/widgets, delivery: delivery-u8lnydjjtc
# [webhook] Merge-triggered task cancellation failed {
#   repository: 'acme/widgets',
#   prNumber: 42,
#   error: Error: database unavailable
#       at Object.getActiveTasksForPR (/home/runner/work/propr/propr/packages/api/test/mergedPrTaskCancellation.test.ts:202:46)
#       at cancelActiveTasksForMergedPR (/home/runner/work/propr/propr/packages/api/webhookHandler.ts:187:50)
#       at handleWebhookRequest (/home/runner/work/propr/propr/packages/api/webhookHandler.ts:333:28)
#       at async TestContext.<anonymous> (/home/runner/work/propr/propr/packages/api/test/mergedPrTaskCancellation.test.ts:207:3)
#       at async Test.run (node:internal/test_runner/test:1054:7)
#       at async Test.processPendingSubtests (node:internal/test_runner/test:744:7)
# }
# Subtest: isMergedPullRequestClose only matches merged PR close events
ok 1 - isMergedPullRequestClose only matches merged PR close events
  ---
  duration_ms: 1.510937
  type: 'test'
  ...
# Subtest: cancelActiveTasksForMergedPR stops every active task and queued job with the merge reason
ok 2 - cancelActiveTasksForMergedPR stops every active task and queued job with the merge reason
  ---
  duration_ms: 3.27545
  type: 'test'
  ...
# Subtest: cancelActiveTasksForMergedPR does nothing when there is no active work
ok 3 - cancelActiveTasksForMergedPR does nothing when there is no active work
  ---
  duration_ms: 1.063951
  type: 'test'
  ...
# Subtest: cancelActiveTasksForMergedPR continues cancelling after a task fails to stop
ok 4 - cancelActiveTasksForMergedPR continues cancelling after a task fails to stop
  ---
  duration_ms: 4.230588
  type: 'test'
  ...
# Subtest: cancelActiveTasksForMergedPR counts no-longer-active tasks as skipped
ok 5 - cancelActiveTasksForMergedPR counts no-longer-active tasks as skipped
  ---
  duration_ms: 0.571359
  type: 'test'
  ...
# Subtest: cancelActiveTasksForMergedPR surfaces stops without a durable cancellation record separately
ok 6 - cancelActiveTasksForMergedPR surfaces stops without a durable cancellation record separately
  ---
  duration_ms: 0.532898
  type: 'test'
  ...
# Subtest: handleWebhookRequest cancels active tasks when a PR is merged
ok 7 - handleWebhookRequest cancels active tasks when a PR is merged
  ---
  duration_ms: 2.274927
  type: 'test'
  ...
# Subtest: handleWebhookRequest does not cancel anything for an unmerged PR close
ok 8 - handleWebhookRequest does not cancel anything for an unmerged PR close
  ---
  duration_ms: 0.431788
  type: 'test'
  ...
# Subtest: handleWebhookRequest still succeeds when the PR task lookup fails entirely
ok 9 - handleWebhookRequest still succeeds when the PR task lookup fails entirely
  ---
  duration_ms: 1.185569
  type: 'test'
  ...
# [2026-08-24 18:08:56.284 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/019-mergedPrTaskCancellation.test.ts/propr.test.sqlite"
#     environment: "test"
1..9
# tests 9
# suites 0
# pass 9
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2115.285674

[20/304] packages/api/test/notificationManagementRoutes.test.ts
TAP version 13
# Subtest: notification subscription management routes
    # Subtest: lists safe metadata and revokes an owned opaque subscription ID
    ok 1 - lists safe metadata and revokes an owned opaque subscription ID
      ---
      duration_ms: 3.677161
      type: 'test'
      ...
    # Subtest: sanitizes preference snapshots at both response boundaries
    ok 2 - sanitizes preference snapshots at both response boundaries
      ---
      duration_ms: 1.073128
      type: 'test'
      ...
    # Subtest: warns distinctly and without secrets for invalid VAPID configuration
    ok 3 - warns distinctly and without secrets for invalid VAPID configuration
      ---
      duration_ms: 1.729957
      type: 'test'
      ...
    1..3
ok 1 - notification subscription management routes
  ---
  duration_ms: 7.671347
  type: 'suite'
  ...
# [2026-08-24 18:08:58.561 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/020-notificationManagementRoutes.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 18:08:58.562 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..1
# tests 3
# suites 1
# pass 3
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2117.38335

[21/304] packages/api/test/notificationProjectionService.test.ts
TAP version 13
# Subtest: notification lifecycle projection
    # Subtest: creates exactly one plan-ready event for the draft owner
    ok 1 - creates exactly one plan-ready event for the draft owner
      ---
      duration_ms: 172.619847
      type: 'test'
      ...
    # Subtest: separates implementation, review, and sanitized PR-attention events
    ok 2 - separates implementation, review, and sanitized PR-attention events
      ---
      duration_ms: 165.965271
      type: 'test'
      ...
    # Subtest: ignores stale task transitions and emits one stalled event per unchanged activity
    ok 3 - ignores stale task transitions and emits one stalled event per unchanged activity
      ---
      duration_ms: 120.622647
      type: 'test'
      ...
    # Subtest: projects a task failure once without copying error details
    ok 4 - projects a task failure once without copying error details
      ---
      duration_ms: 138.582714
      type: 'test'
      ...
    # Subtest: does not advertise Open PR when a trusted GitHub URL cannot be constructed
    ok 5 - does not advertise Open PR when a trusted GitHub URL cannot be constructed
      ---
      duration_ms: 120.484228
      type: 'test'
      ...
    # Subtest: advertises follow-up only with the stored repository and issue identity the endpoint requires
    ok 6 - advertises follow-up only with the stored repository and issue identity the endpoint requires
      ---
      duration_ms: 147.239299
      type: 'test'
      ...
    # Subtest: restricts indexing failures to administrators
    ok 7 - restricts indexing failures to administrators
      ---
      duration_ms: 112.727408
      type: 'test'
      ...
    # Subtest: deduplicates one unhealthy period and allows a later failure after recovery
    ok 8 - deduplicates one unhealthy period and allows a later failure after recovery
      ---
      duration_ms: 140.638022
      type: 'test'
      ...
    # Subtest: logs and isolates projection persistence failures
    ok 9 - logs and isolates projection persistence failures
      ---
      duration_ms: 103.04328
      type: 'test'
      ...
    1..9
ok 1 - notification lifecycle projection
  ---
  duration_ms: 1224.176274
  type: 'suite'
  ...
# [2026-08-24 18:09:00.795 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/021-notificationProjectionService.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 18:09:02.016 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..1
# tests 9
# suites 1
# pass 9
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 4290.108832

[22/304] packages/api/test/notificationRoutes.test.ts
TAP version 13
# Subtest: notification routes
    # Subtest: uses only the authenticated user and clamps list limits
    ok 1 - uses only the authenticated user and clamps list limits
      ---
      duration_ms: 3.410914
      type: 'test'
      ...
    # Subtest: uses the authenticated user for receipt mutations
    ok 2 - uses the authenticated user for receipt mutations
      ---
      duration_ms: 1.545864
      type: 'test'
      ...
    # Subtest: returns 400 for malformed limits, cursors, and history flags
    ok 3 - returns 400 for malformed limits, cursors, and history flags
      ---
      duration_ms: 1.341701
      type: 'test'
      ...
    # Subtest: requires an authenticated identity even when handlers are called directly
    ok 4 - requires an authenticated identity even when handlers are called directly
      ---
      duration_ms: 0.334456
      type: 'test'
      ...
    # Subtest: returns Web Push capability without exposing private VAPID material
    ok 5 - returns Web Push capability without exposing private VAPID material
      ---
      duration_ms: 1.311906
      type: 'test'
      ...
    # Subtest: does not advertise invalid VAPID keys or a disabled dispatcher
    ok 6 - does not advertise invalid VAPID keys or a disabled dispatcher
      ---
      duration_ms: 1.306145
      type: 'test'
      ...
    # Subtest: derives the preference owner from authentication and passes sparse updates through
    ok 7 - derives the preference owner from authentication and passes sparse updates through
      ---
      duration_ms: 0.504795
      type: 'test'
      ...
    # Subtest: enrolls and revokes subscriptions only for the authenticated user
    ok 8 - enrolls and revokes subscriptions only for the authenticated user
      ---
      duration_ms: 1.238439
      type: 'test'
      ...
    # Subtest: maps invalid notification inputs to 400 responses
    ok 9 - maps invalid notification inputs to 400 responses
      ---
      duration_ms: 0.410408
      type: 'test'
      ...
    # Subtest: maps endpoint ownership conflicts to a 409 response
    ok 10 - maps endpoint ownership conflicts to a 409 response
      ---
      duration_ms: 0.522448
      type: 'test'
      ...
    # Subtest: maps subscription quotas and enrollment rate limits to actionable responses
    ok 11 - maps subscription quotas and enrollment rate limits to actionable responses
      ---
      duration_ms: 0.619209
      type: 'test'
      ...
    # Subtest: keeps demo Inbox reads available while the existing policy blocks mutations
    ok 12 - keeps demo Inbox reads available while the existing policy blocks mutations
      ---
      duration_ms: 49.305242
      type: 'test'
      ...
    1..12
ok 1 - notification routes
  ---
  duration_ms: 63.593548
  type: 'suite'
  ...
# [2026-08-24 18:09:05.740 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/022-notificationRoutes.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 18:09:05.798 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..1
# tests 12
# suites 1
# pass 12
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 3017.136695

[23/304] packages/api/test/oauthState.test.ts
TAP version 13
# Subtest: GitHub OAuth authorization stores and sends a random state nonce
ok 1 - GitHub OAuth authorization stores and sends a random state nonce
  ---
  duration_ms: 2.804825
  type: 'test'
  ...
# Subtest: GitHub OAuth callback rejects a mismatched state before token exchange
ok 2 - GitHub OAuth callback rejects a mismatched state before token exchange
  ---
  duration_ms: 1.375472
  type: 'test'
  ...
# [2026-08-24 18:09:08.673 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-Cqh8y6/023-oauthState.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-08-24 18:09:08.674 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..2
# tests 2
# suites 0
# pass 2
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2803.098552

[24/304] packages/api/test/plannerAbortHandlers.test.ts
TAP version 13
# [abort] Plan generation aborted for draft generation-progress-race
# [abort] Plan refinement aborted for draft refinement-progress-race
# Subtest: planner abort handlers
    # Subtest: preserves a generation that completes before the conditional abort transition
    ok 1 - preserves a generation that completes before the conditional abort transition
      ---
      duration_ms: 7.735666
      type: 'test'
      ...
    # Subtest: retries the abort transition when the same generation run advances its trace
    ok 2 - retries the abort transition when the same generation run advances its trace
      ---
      duration_ms: 4.324377
      type: 'test'
      ...
    # Subtest: does not cancel a same-timestamp refinement restart after reading the old run snapshot
    ok 3 - does not cancel a same-timestamp refinement restart after reading the old run snapshot
      ---
      duration_ms: 3.393476
      type: 'test'
      ...
    # Subtest: retries the abort transition when the same refinement run metadata advances
    ok 4 - retries the abort transition when the same refinement run metadata advances
      ---
      duration_ms: 2.613607
      type: 'test'
      ...
    # Subtest: surfaces failed reconciliation for a legacy draft-wide abort signal
    ok 5 - surfaces failed reconciliation for a legacy draft-wide abort signal
      ---
      duration_ms: 2.461363
      type: 'test'
      ...
    # Subtest: reconciles the abort signal when the conditional database transition fails
    ok 6 - reconciles the abort signal when the conditional database transition fails
      ---
      duration_ms: 4.530052
      type: 'test'
      ...
    # Subtest: closes Redis connections when setting or clearing an abort signal fails
    ok 7 - closes Redis connections when setting or clearing an abort signal fails
      ---
      duration_ms: 1.555359
      type: 'test'
      ...
    # Subtest: uses a run-specific Redis key when a planner run ID is available
    ok 8 - uses a run-specific Redis key when a planner run ID is available
      ---
      durati

...(truncated)

View Workflow

Implemented only F9, F10, and F11.

- Review follow-ups are advertised only when the persisted issue number matches the reviewed PR.
- Added nullable `advertised_actions_json` storage; `NULL` identifies legacy events.
- Producer metadata remains unchanged in `metadata_json`, preserving the full published size limit.
- Added migration and regression coverage for legacy metadata, maximum-size metadata, and mismatched review threads.

Key files: [notificationProjectionService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-07-31/packages/api/services/notificationProjectionService.ts), [notificationService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-07-31/packages/core/src/services/notificationService.ts), [migration](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-07-31/packages/core/src/db/migrations/20260824020000_add_notification_advertised_actions.js).

Validation passed:

- 100 notification, projection, schema, migration, and Web Push tests
- Core and API type checks
- Core and API lint
- Migration rollback smoke test
- Diff whitespace check

No commit was created.

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

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit cf18ce6

Summary of Changes

Fixed the flaky full-suite failure in webPushDispatcher.test.ts.

The retry assertion now validates the exact 10 ms backoff from the attempt timestamp instead of comparing against a later database-managed timestamp.

Validation passed:

  • Dispatcher suite: 16/16, repeated 3 times
  • API lint
  • API typecheck
  • git diff --check

No commit created.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @github-actions[bot]
  • Time: 4m 54s
  • Tokens: 2,658,553 (2,652,898 in / 5,655 out)
  • Cost: $2.01

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

…st.ts`.

Fixed the flaky full-suite failure in `webPushDispatcher.test.ts`.

The retry assertion now validates the exact 10 ms backoff from the attempt timestamp instead of comparing against a later database-managed timestamp.

Validation passed:

- Dispatcher suite: 16/16, repeated 3 times
- API lint
- API typecheck
- `git diff --check`

No commit created.

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

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/review codex

@propr-dev

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

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex

Overall Evaluation

This PR adds durable Inbox action advertisements, responsive foreground controls, safe PR opening, stop confirmation, follow-up submission, and reconciliation behavior. The implementation is well tested and thoughtfully structured, but it needs two localized correctness fixes before merge.

✅ Safe external navigation — GitHub PR URLs are constrained by scheme, host, credentials, port, path, repository, and PR number, then opened with noopener,noreferrer.

✅ Accurate mutation outcomes — Stop and follow-up successes remain successful when the subsequent Inbox refresh fails, with separate warning feedback and regression coverage.

✅ Metadata-safe persistence — Advertised actions are stored separately from producer metadata, including coverage at the published metadata byte limit.

Merge blockers

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

F12: 🔴 Legacy discriminator is discarded

  • Required behavior: Foreground controls must be offered only when advertised, while legacy behavior must be distinguished from a newly advertised empty action list.
  • Evidence: packages/core/src/services/notificationService.ts:169 — both legacy database NULL and newly stored [] become actions: []; propr-ui/src/components/Inbox/NotificationActions.tsx:31 then classifies every empty set as legacy and exposes Dismiss and potentially Open PR.
  • Minimum fix: Preserve the NULL versus [] distinction through the API, or synthesize explicit legacy actions while reading NULL rows and remove the UI’s advertised.size === 0 legacy inference.

F13: 🔴 Follow-up can target a different issue

  • Required behavior: A displayed follow-up action must accurately identify the GitHub issue that will receive the comment.
  • Evidence: packages/api/services/notificationProjectionService.ts:296 — follow-up is advertised from context.followupEligible, which only verifies that the stored task has an issue; packages/api/services/notificationProjectionService.ts:528 still lets payload.issueNumber override that stored issue in the notification target. The modal therefore displays the payload issue while submission uses only the task ID and the endpoint posts to the stored issue.
  • Minimum fix: Advertise follow-up only when the projected target issue equals the stored tasks.issue_number, or construct the follow-up notification target from the stored repository and issue identity used by the endpoint.

Suggestions

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

S1: 🟢 Complete modal focus management

Consider trapping focus inside the modal and restoring it to the invoking control on close. The new dialog semantics, autofocus, labels, and Escape handling are useful improvements, but complete focus containment would make the modal more robust for keyboard and screen-reader users.

S2: 🟢 Guard advertised-action updates

The migration validates inserts but not updates to advertised_actions_json. The current service has no update path, so this is defense in depth rather than a merge blocker, but an update guard would better enforce the stated immutability and prevent malformed direct database writes.

Score

The core approach and coverage are strong, but the legacy-action ambiguity and possible wrong-issue follow-up make the changed behavior unsafe to merge as-is. Both corrections are localized; current checks are still pending rather than failed.

Score: 6/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 3m 41s
  • Tokens: 67,271 (61,893 in / 5,378 out)
  • Cost: $0.20

View Task


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

🤖 Review by ProPR

@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/fix F12 F13

@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit a09ae7c

Addressed 1 AI review comment (IDs: 5399596987)

Summary of Changes

Implemented F12 and F13 only.

  • Legacy NULL action rows now receive explicit open_pr and dismiss compatibility actions; stored [] remains actionless.
  • UI controls now require explicit advertised actions.
  • Follow-up is advertised only when the projected issue matches tasks.issue_number.
  • Added/updated regression coverage for both cases.

Validation passed:

  • Core: 26 tests
  • API projection: 10 tests
  • UI: 16 tests
  • Core, API, and UI type checks
  • Focused ESLint and git diff --check

No commit was created.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 4m 55s
  • Tokens: 875,110 (866,190 in / 8,920 out)
  • Cost: $1.13

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

Implemented F12 and F13 only.

- Legacy `NULL` action rows now receive explicit `open_pr` and `dismiss` compatibility actions; stored `[]` remains actionless.
- UI controls now require explicit advertised actions.
- Follow-up is advertised only when the projected issue matches `tasks.issue_number`.
- Added/updated regression coverage for both cases.

Validation passed:

- Core: 26 tests
- API projection: 10 tests
- UI: 16 tests
- Core, API, and UI type checks
- Focused ESLint and `git diff --check`

No commit was created.

PR: #1938
Comment by: @integry (ID: 5401069287)
Model: gpt-5.6-sol
@integry

integry commented Aug 24, 2026

Copy link
Copy Markdown
Owner

/review codex

@propr-dev

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

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex

Overall Evaluation

This PR cleanly adds typed Inbox actions across storage, projection, API, and responsive UI. It is ready to merge within scope once the pending checks complete successfully; no current-head failure is reported.

✅ Safe action boundaries — Stop requires foreground confirmation, is excluded from push-click behavior, and Open PR validates the GitHub host, repository, and available PR identity before opening with noopener,noreferrer.

✅ Robust persistence contract — Advertised actions use dedicated validated storage while preserving producer-owned metadata and compatibility for legacy rows.

✅ Thoughtful failure handling — Successful stop and follow-up mutations remain successful when subsequent Inbox reconciliation fails, with distinct warning feedback and regression coverage.

Merge blockers

No merge blockers.

Suggestions

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

S1: 🟢 Enforce update-time validation

The migration validates advertised_actions_json only on inserts. A matching BEFORE UPDATE OF advertised_actions_json trigger would prevent malformed or duplicate values from being introduced by future maintenance code. This is optional because the current service exposes no event-update path.

S2: 🟢 Complete modal focus management

FollowupModal.tsx now provides dialog semantics, autofocus, and Escape handling. Adding focus containment and restoring focus to the invoking button would make keyboard and assistive-technology behavior more complete, but the current controls remain operable and labeled.

S3: 🟢 Tighten repository segments

isValidGithubRepository accepts the path-special segments . and .., which can be normalized when constructing a URL and consequently produce an advertised action the client rejects. Excluding those segments would improve defensive consistency for malformed stored data; normal GitHub repository identities are unaffected.

Score

The implementation is cohesive, security-conscious, and well covered by focused tests, with no verified merge blocker. The score remains conditional on the ten pending current-head checks finishing successfully.

Score: 9/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 3m 54s
  • Tokens: 70,916 (62,237 in / 8,679 out)
  • Cost: $0.53

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 merged commit b2d476e into 1716-epic-failed-to-3m8 Aug 24, 2026
12 checks passed
integry added a commit that referenced this pull request Aug 25, 2026
* fix(ai): Resolve issue #1716 - Define the durable notification domain model and d

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

Implementation completed successfully.

* fix(ai): Resolve issue #1717 - Add the notification persistence service and authe

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

Implementation completed successfully.

* fix(ai): Resolve issue #1718 - Add notification preferences and Web Push subscrip

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

Implementation completed successfully.

* feat(ai): Fixed the PR build check failures without committing:

Fixed the PR build check failures without committing:

- Typed the planner update mock so TypeScript can inspect its call arguments safely in [plannerBackgroundLifecycle.test.ts](</tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-04T14-41-14/packages/api/test/plannerBackgroundLifecycle.test.ts:180>).
- Compacted notification exports to satisfy the 400-line lint limit in [index.ts](</tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-04T14-41-14/packages/core/src/index.ts:383>).

Verified successfully:

- Root, shared, core, API, UI, and docs builds
- Core/API/UI lint and UI typecheck
- Fast and hosted-tunnel tests
- Planner lifecycle tests
- CLI packaging
- `git diff --check`

Only those two files are modified.

PR: #1731
Comment by: @github-actions[bot] (ID: 5180607485)
Model: gpt-5.6-sol

* feat(ai): Fixed the PR build failure without behavior changes.

Fixed the PR build failure without behavior changes.

- Compacted notification exports in [packages/core/src/index.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-23T23-08-14/packages/core/src/index.ts:406).
- Compacted imports in [packages/api/server.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-23T23-08-14/packages/api/server.ts:13).

Verified successfully:

- Exact changed-core-source ESLint gate
- Core build
- API lint with zero warnings
- API build
- `git diff --check`

Only those two files are modified; no commit was created.

PR: #1731
Comment by: @github-actions[bot] (ID: 5388991706)
Model: gpt-5.6-sol

* fix(ai): Resolve issue #1719 - Project plan, task, PR, indexing, stalled, and sys

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

Implementation completed successfully.

* fix(ai): Resolve issue #1720 - Implement reliable Web Push delivery with VAPID, r

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

Implementation completed successfully.

* fix(ai): Resolve issue #1721 - Add the installable PWA shell, manifest, icons, an

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

Implementation completed successfully.

* fix(pwa): precache lazy shell assets (#1935)

Co-authored-by: Rinalds Uzkalns <[email protected]>

* feat(ai): Implemented the CodeQL follow-up fixes:

Implemented the CodeQL follow-up fixes:

- Added the existing API rate limiter to the authenticated Express test fixture in [notificationRoutes.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-24T12-14-03/packages/api/test/notificationRoutes.test.ts:11).
- Replaced both polynomial padding regexes with linear scanning in [notifications.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-24T12-14-03/packages/shared/src/notifications.ts:734).

Validation passed:

- Notification route tests: 12/12
- Notification schema tests: 32/32
- Padded Web Push key regression test
- Shared and API TypeScript checks
- `git diff --check`

No commit was created.

PR: #1731
Comment by: @integry (ID: 5395023659)
Model: gpt-5.6-sol

* feat(ai): Fixed the API lint failure by consolidating Express imports in [notificationRoutes.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-24T12-20-51/packages/api/test/notificationRoutes.test.ts:4), bringing it within the 400-line limit.

Fixed the API lint failure by consolidating Express imports in [notificationRoutes.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-24T12-20-51/packages/api/test/notificationRoutes.test.ts:4), bringing it within the 400-line limit.

Validated:

- API lint passed
- API build passed
- Notification route tests passed: 12/12
- `git diff --check` passed

No commit was created.

PR: #1731
Comment by: @github-actions[bot] (ID: 5395100590)
Model: gpt-5.6-sol

* [1722 by GPT-5.6 Sol] Build the browser push enrollment flow and notification preferences settings (#1936)

* fix(ai): Resolve issue #1722 - Build the browser push enrollment flow and notific

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

Implementation completed successfully.

* feat(ai): Fixed the failed complexity lint check in [notificationService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1936-followup-2026-08-24T11-54-19/packages/core/src/services/notificationService.ts:412) by extracting preference-settings persistence into a focused private method.

Fixed the failed complexity lint check in [notificationService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1936-followup-2026-08-24T11-54-19/packages/core/src/services/notificationService.ts:412) by extracting preference-settings persistence into a focused private method.

Verification passed:

- Core package lint with zero warnings
- Core package build
- Notification service tests: 22/22
- `git diff --check`

No commit created.

PR: #1936
Comment by: @github-actions[bot] (ID: 5394814538)
Model: gpt-5.6-sol

* fix(notifications): make badge migration reversible

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
Co-authored-by: Rinalds Uzkalns <[email protected]>

* [1723 by GPT-5.6 Sol] Create the mobile-first Inbox page with grouping, unread state, dismissal, and badging (#1937)

* fix(ai): Resolve issue #1723 - Create the mobile-first Inbox page with grouping,

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

Implementation completed successfully.

* fix(ui): preserve notification dismiss identity

* feat(ai): Implemented F1 only in [GlobalHeader.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1937-followup-2026-08-24T14-43-32/propr-ui/src/components/GlobalHeader.tsx:107).

Implemented F1 only in [GlobalHeader.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1937-followup-2026-08-24T14-43-32/propr-ui/src/components/GlobalHeader.tsx:107).

- Removed `hidden` and `sm:block` from Logout, keeping it accessible below 640px.
- Typecheck passed.
- Focused ESLint passed.
- `git diff --check` passed.
- No commit created, as requested.

PR: #1937
Comment by: @integry (ID: 5396851385)
Model: gpt-5.6-sol

* fix(ui): keep mobile account actions visible

* fix(ui): keep inbox pagination reachable

* fix(ui): reconcile inbox response races

* fix(ui): isolate notification state by account

* fix(ui): replay notification mutations safely

* fix(ui): preserve read failure feedback

* fix(ui): keep demo inbox read only

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
Co-authored-by: Rinalds Uzkalns <[email protected]>

* [1724 by GPT-5.6 Sol] Add mobile Inbox actions for stopping tasks, following up, opening PRs, and dismissing (#1938)

* fix(ai): Resolve issue #1724 - Add mobile Inbox actions for stopping tasks, follo

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

Implementation completed successfully.

* feat(ai): Implemented F1 only.

Implemented F1 only.

- Dismiss now renders whenever `mutationsEnabled` is true, independent of advertised actions: [NotificationActions.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T17-12-21/propr-ui/src/components/Inbox/NotificationActions.tsx:111)
- Added regression coverage for notifications with an empty actions array: [InboxPage.test.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T17-12-21/propr-ui/src/pages/InboxPage.test.tsx:187)

Validation passed:

- Focused ESLint
- Inbox tests: 14/14
- UI TypeScript typecheck
- `git diff --check`

No commit created.

PR: #1938
Comment by: @propr-ultrafix (ID: 0)
Model: gpt-5.6-sol

* feat(ai): Implemented only F2, F3, and F4.

Implemented only F2, F3, and F4.

- `open_pr` is advertised only when a trusted GitHub PR URL is constructed.
- Trusted legacy PR links remain available when advertised actions are absent or empty.
- Advertised actions now use a versioned metadata envelope, preserving legacy `metadata.actions` and validating combined metadata size before insertion.
- Added regression coverage for all three findings.

Validation passed:

- 65 core/shared schema tests
- 8 projection tests
- 28 notification route/Web Push tests
- 18 Inbox UI tests
- Shared, core, API, and UI type checks
- Focused lint and `git diff --check`

Changes were not committed, as requested.

PR: #1938
Comment by: @integry (ID: 5398849258)
Model: gpt-5.6-sol

* feat(ai): Implemented F5–F8 only:

Implemented F5–F8 only:

- Dismiss now respects advertised actions, with the legacy empty-action fallback.
- Follow-up and Stop successes remain successful if Inbox refresh fails; refresh failures use separate warnings.
- `follow_up` is advertised only when the stored task has a valid GitHub repository and issue identity.
- Action lists, including empty lists, now use a v2 persistence envelope; legacy reserved-key producer metadata remains intact.
- Added focused UI, projection, schema, and persistence regressions.

Validation passed:

- Root and UI typechecks
- 58 schema/service tests
- 9 projection tests
- 16 focused UI tests
- UI lint
- `git diff --check`

No commit was created.

PR: #1938
Comment by: @integry (ID: 5399080238)
Model: gpt-5.6-sol

* feat(ai): Fixed the sole CI failure in [notificationProjectionService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-03-38/packages/api/services/notificationProjectionService.ts:152) by extracting follow-up eligibility logic into a helper, reducing method complexity without behavior changes.

Fixed the sole CI failure in [notificationProjectionService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-03-38/packages/api/services/notificationProjectionService.ts:152) by extracting follow-up eligibility logic into a helper, reducing method complexity without behavior changes.

Validation passed:

- API ESLint with zero warnings
- API TypeScript build
- Notification projection suite: 9/9 tests
- `git diff --check`

No commit was created.

PR: #1938
Comment by: @github-actions[bot] (ID: 5399234375)
Model: gpt-5.6-sol

* feat(ai): Implemented only F9, F10, and F11.

Implemented only F9, F10, and F11.

- Review follow-ups are advertised only when the persisted issue number matches the reviewed PR.
- Added nullable `advertised_actions_json` storage; `NULL` identifies legacy events.
- Producer metadata remains unchanged in `metadata_json`, preserving the full published size limit.
- Added migration and regression coverage for legacy metadata, maximum-size metadata, and mismatched review threads.

Key files: [notificationProjectionService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-07-31/packages/api/services/notificationProjectionService.ts), [notificationService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-07-31/packages/core/src/services/notificationService.ts), [migration](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-07-31/packages/core/src/db/migrations/20260824020000_add_notification_advertised_actions.js).

Validation passed:

- 100 notification, projection, schema, migration, and Web Push tests
- Core and API type checks
- Core and API lint
- Migration rollback smoke test
- Diff whitespace check

No commit was created.

PR: #1938
Comment by: @integry (ID: 5399346966)
Model: gpt-5.6-sol

* feat(ai): Fixed the flaky full-suite failure in `webPushDispatcher.test.ts`.

Fixed the flaky full-suite failure in `webPushDispatcher.test.ts`.

The retry assertion now validates the exact 10 ms backoff from the attempt timestamp instead of comparing against a later database-managed timestamp.

Validation passed:

- Dispatcher suite: 16/16, repeated 3 times
- API lint
- API typecheck
- `git diff --check`

No commit created.

PR: #1938
Comment by: @github-actions[bot] (ID: 5399462590)
Model: gpt-5.6-sol

* feat(ai): Implemented F12 and F13 only.

Implemented F12 and F13 only.

- Legacy `NULL` action rows now receive explicit `open_pr` and `dismiss` compatibility actions; stored `[]` remains actionless.
- UI controls now require explicit advertised actions.
- Follow-up is advertised only when the projected issue matches `tasks.issue_number`.
- Added/updated regression coverage for both cases.

Validation passed:

- Core: 26 tests
- API projection: 10 tests
- UI: 16 tests
- Core, API, and UI type checks
- Focused ESLint and `git diff --check`

No commit was created.

PR: #1938
Comment by: @integry (ID: 5401069287)
Model: gpt-5.6-sol

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>

* [1725 by GPT-5.6 Sol] Add plan refinement and confirmation-gated approve/execute notification intents (#1939)

* fix(ai): Resolve issue #1725 - Add plan refinement and confirmation-gated approve

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

Implementation completed successfully.

* feat(ai): Fixed the CI lint failure in [notificationProjectionService.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1939-followup-2026-08-24T21-34-39/packages/api/test/notificationProjectionService.test.ts:114). The assertions retain equivalent coverage while staying within the 400-line lint limit.

Fixed the CI lint failure in [notificationProjectionService.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1939-followup-2026-08-24T21-34-39/packages/api/test/notificationProjectionService.test.ts:114). The assertions retain equivalent coverage while staying within the 400-line lint limit.

Validated:

- API lint passes
- API typecheck passes
- Notification projection tests: 10/10 pass
- `git diff --check` passes

No commit created.

PR: #1939
Comment by: @github-actions[bot] (ID: 5401662774)
Model: gpt-5.6-sol

* feat(ai): Implemented the rollback correction and regression coverage.

Implemented the rollback correction and regression coverage.

- [Migration](/tmp/git-processor/worktrees/integry/propr/pr-1939-followup-2026-08-24T21-44-35/packages/core/src/db/migrations/20260824030000_add_plan_notification_actions.js) now filters stored arrays to the four prior actions, preserving order and valid JSON, before restoring the old trigger.
- [Regression test](/tmp/git-processor/worktrees/integry/propr/pr-1939-followup-2026-08-24T21-44-35/packages/core/test/planNotificationActionsMigration.test.ts) exercises the real SQLite up/down transition, service persistence/reads, rollback filtering, and restored trigger validation.

Validation passed:

- Core typecheck
- Migration ESLint
- Targeted migration regression test
- `git diff --check`

No commit created.

PR: #1939
Comment by: @integry (ID: 5401772474)
Model: gpt-5.6-sol

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>

* [1726 by GPT-5.6 Sol] Replace the mobile desktop-style header with bottom navigation (#1940)

* fix(ai): Resolve issue #1726 - Replace the mobile desktop-style header with botto

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

Implementation completed successfully.

* feat(ai): Implemented F1 only.

Implemented F1 only.

- Added Dashboard to the mobile More sheet.
- Added Access for users with `instance.manage_members`.
- Marked More active on `/` and `/admin/members`.
- Added tests for visibility, permission gating, and active states.

Changed:

- [MobileBottomNavigation.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1940-followup-2026-08-24T23-23-38/propr-ui/src/components/MobileBottomNavigation.tsx)
- [MobileBottomNavigation.test.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1940-followup-2026-08-24T23-23-38/propr-ui/src/components/MobileBottomNavigation.test.tsx)

Validation passed: TypeScript, ESLint, and all 444 UI tests. No commit created.

PR: #1940
Comment by: @integry (ID: 5402825666)
Model: gpt-5.6-sol

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>

* [1727 by GPT-5.6 Sol] Restore mobile Planner Studio and task-review workflows reached from notifications (#1941)

* fix(ai): Resolve issue #1727 - Restore mobile Planner Studio and task-review work

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

Implementation completed successfully.

* fix(ui): size Planner Studio within app shell

* fix(ui): constrain mobile task summary to route

* fix(ui): wrap multi-agent execution controls

* fix(ui): keep approved plan header stacked on mobile

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
Co-authored-by: Rinalds Uzkalns <[email protected]>

* fix(ai): Resolve issue #1728 - Add notification, push, deep-link, and mobile navi (#1942)

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

Implementation completed successfully.

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>

* [1729 by GPT-5.6 Sol] Document and validate PWA, Web Push, badge, tunnel, and deployment configuration (#1943)

* fix(ai): Resolve issue #1729 - Document and validate PWA, Web Push, badge, tunnel

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

Implementation completed successfully.

* docs: link canonical WebKit push article

* fix: complete web push deployment contract

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
Co-authored-by: Rinalds Uzkalns <[email protected]>

---------

Co-authored-by: propr-dev[bot] <213159723+propr-dev[bot]@users.noreply.github.com>
Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
Co-authored-by: Rinalds Uzkalns <[email protected]>
Co-authored-by: Rinalds Uzkalns <[email protected]>
@integry
integry deleted the 1724/gpt-5.6-sol-add-mobile-inbox-actions--20260824-1639-e1g branch September 1, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant