Skip to content

[3547 by Claude Opus 5.5] Repository event journal: add the task domain - #3572

Merged
propr-dev[bot] merged 2 commits into
3542-epic-plugin-system-xu8from
3547/claude-opus-5-5-repository-event-journal--20261114-1634-rv2
Nov 14, 2026
Merged

propr-dev[bot] merged 2 commits into
3542-epic-plugin-system-xu8from
3547/claude-opus-5-5-repository-event-journal--20261114-1634-rv2

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3547

Branch: 3547/claude-opus-5-5-repository-event-journal--20261114-1634-rv2
Commits: ✅ Changes committed (5aabbab)


AI Processing Completed

Execution Details:

  • Issue: Repository event journal: add the task domain #3547
  • Repository: integry/propr
  • Status: Success
  • Execution Time: 21m 8s
  • Tokens used: 11.66M tokens [11.6M input + 54.38K output]
  • API cost: $4.23
  • Timestamp: Nov 14, 2026, 4:56 PM UTC
  • LLM Model: Claude Opus 5.5

Summary:
The repository event journal now has a task domain. Every task type the issue lists records queued, started and one terminal event (completed, failed or cancelled), and a failed append doesn't change how the task ends. All the new tests and the related existing suites pass, along with lint (zero warnings), typecheck and the OpenAPI check.

Where events are written. All task status changes already go through one state manager in core, so I added the appends there rather than in each job file. queued is written when the task is created; started and the terminal events are written right after the state change is saved to the task history. This covers issue tasks, pull request follow-ups, reviews, merge-conflict tasks and automation runs. The event-building code is in packages/core/src/services/taskJournalEvents.ts.

Behaviour you might not assume:

  • Not journaled: goal tasks, task imports and agent runs with no repository. They don't fit the issue's five kinds.
  • Queue handoffs: when a job is requeued or rescheduled, the task is briefly marked cancelled but continues later. That appends no cancelled event, and resuming it appends no second started.
  • Retries: a retried task appends started and a new terminal event again, so one task can have several runs in the journal.
  • Failure category: this is a short code such as timed_out, git_operation or worker. Anything that looks like free text becomes unknown.
  • Pull request outcome: opened when the task opened a pull request (including a continuation one), updated when it pushed a commit to an existing one, otherwise empty.
  • Realtime: task events publish no extra activity update, because task state changes already send their own.

Migration you should know about. The journal table only allowed the three existing domains, and SQLite can't change that rule in place. The new migration (20261114120000_add_task_repository_event_domain.js) rebuilds the table. It keeps every row, its sequence number and the sequence counter, so existing cursors stay valid and deleted numbers are never reused. Rolling it back deletes the task events.

Readers. The API, MCP tools and CLI accept the new domain because they build their domain list from the shared one. I updated the MCP tool description and the API docs text, and regenerated the OpenAPI spec and client types. Automations have no event triggers built from the journal's domains, so I left them unchanged, as the issue says to.

Acceptance criteria

  • AC1: met — packages/core/test/taskJournalEvents.test.ts checks queued → started → completed with the full payload for an implementation task and a pull request follow-up; test/taskJournalFinalizers.test.ts checks the same through the follow-up job completion path in src/jobs.
  • AC2: met — cancelled tasks (user-cancelled and pull-request-closed) append cancelled; failed tasks append failed with git_operation, timed_out or worker as the category, in both of those test files.
  • AC3: met — the sentinel test in packages/core/test/taskJournalEvents.test.ts puts marker strings into the task's prompt fields, reasons, tool output, results, error messages and logs, then checks no stored task event contains them and only the documented payload fields appear; test/taskJournalFinalizers.test.ts checks the same for follow-ups.
  • AC4: met — with the journal table removed, the task still finishes completed with its full history and the failure is logged (packages/core/test/taskJournalEvents.test.ts), and the follow-up finalizer still reports finalized (test/taskJournalFinalizers.test.ts).
  • AC5: met — packages/api/test/repositoryEventTaskDomain.test.ts covers list, filters, wait and 30-day retention; packages/api/test/mcpRepositoryEvents.test.ts covers the MCP tool and REST route; packages/shared/test/repositoryEvents.test.ts covers the domain list; docs are in docs/docs/architecture/repository-event-journal.md (domain, payloads, dedupe keys, retention) and docs/docs/operations/api-reference.md.

Review digest

Acceptance criteria (5 of 5 met, as stated by the agent)

  • ✅ AC1 (met): For an implementation task and a pull request follow-up: `queued`, `started` and one terminal event are appended in order with the documented payload. — `packages/core/test/taskJournalEvents.test.ts` checks `queued` → `started` → `completed` with the full payload for an implementation task and a pull request follow-up; `test/taskJournalFinalizers.test.ts` checks the same through the follow-up job completion path in `src/jobs`.
  • ✅ AC2 (met): A cancelled task appends `cancelled`; a failed task appends `failed` with a failure category. — cancelled tasks (user-cancelled and pull-request-closed) append `cancelled`; failed tasks append `failed` with `git_operation`, `timed_out` or `worker` as the category, in both of those test files.
  • ✅ AC3 (met): Sentinel test: prompt text and tool output never appear in a `task` event. — the sentinel test in `packages/core/test/taskJournalEvents.test.ts` puts marker strings into the task's prompt fields, reasons, tool output, results, error messages and logs, then checks no stored `task` event contains them and only the documented payload fields appear; `test/taskJournalFinalizers.…
  • ✅ AC4 (met): A journal append failure does not change the task's outcome. — with the journal table removed, the task still finishes `completed` with its full history and the failure is logged (`packages/core/test/taskJournalEvents.test.ts`), and the follow-up finalizer still reports `finalized` (`test/taskJournalFinalizers.test.ts`).
  • ✅ AC5 (met): Journal retention, API and MCP read paths return the new events; docs list the domain and payloads where the other domains are documented. — `packages/api/test/repositoryEventTaskDomain.test.ts` covers list, filters, wait and 30-day retention; `packages/api/test/mcpRepositoryEvents.test.ts` covers the MCP tool and REST route; `packages/shared/test/repositoryEvents.test.ts` covers the domain list; docs are in `docs/docs/architecture/repo…

Risk-tiered paths

  • High risk (1 file)
    • packages/core/src/db/migrations/20261114120000_add_task_repository_event_domain.js (added, +59/−0): database migration
  • Normal risk (8 files)
    • packages/api/mcp/toolsRepositoryEvents.ts (+1/−1)
    • packages/api/openapi/routeDocsTasks.ts (+1/−1)
    • packages/api/openapi/schemasRepositoryEvents.ts (+3/−3)
    • packages/client/src/generated/apiTypes.ts (+8/−8)
    • packages/core/src/services/taskJournalEvents.ts (added, +177/−0)
    • packages/core/src/utils/workerStateManager.ts (+3/−3)
    • packages/core/src/utils/workerStateTransition.ts (+13/−1)
    • packages/shared/src/repositoryEvents.ts (+60/−5)
  • Low risk (8 files)
    • docs/docs/architecture/repository-event-journal.md (+42/−6)
    • docs/docs/operations/api-reference.md (+1/−1)
    • docs/static/openapi/propr-api.yaml (+9/−8)
    • packages/api/test/mcpRepositoryEvents.test.ts (+15/−0)
    • packages/api/test/repositoryEventTaskDomain.test.ts (added, +66/−0)
    • packages/core/test/taskJournalEvents.test.ts (added, +254/−0)
    • packages/shared/test/repositoryEvents.test.ts (added, +31/−0)
    • test/taskJournalFinalizers.test.ts (added, +116/−0)

Validation evidence

  • No repository validation commands ran.

Diff size: 17 files changed, +859/−37 lines

Detailed Logs:

  • Conversation: 257 messages
  • Session: 3b859df1-da51-443d-a635-9112767f4308

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3547-2026-11-14T16-56-03-545Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3547-2026-11-14T16-56-03-545Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: The repository event journal now has a `task` domain. Every task type the issue lists records `queued`, `started` and one terminal event (`completed`, `failed` or `cancelled`), and a failed append doe...


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


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

… the issue lists records `queued`, `started` and one terminal event (`completed`, `failed` or `cancelled`), and a failed append doesn't change how the task ends. All the new tests and the related existing suites pass, along with lint (zero warnings), typecheck and the OpenAPI check.

Where events are written. All task status changes already go through one state manager in core, so I added the appends there rather than in each job file. `queued` is written when the task is created; `started` and the terminal events are written right after the state change is saved to the task history. This covers issue tasks, pull request follow-ups, reviews, merge-conflict tasks and automation runs. The event-building code is in `packages/core/src/services/taskJournalEvents.ts`.

Behaviour you might not assume:
- Not journaled: goal tasks, task imports and agent runs with no repository. They don't fit the issue's five kinds.
- Queue handoffs: when a job is requeued or rescheduled, the task is briefly marked `cancelled` but continues later. That appends no `cancelled` event, and resuming it appends no second `started`.
- Retries: a retried task appends `started` and a new terminal event again, so one task can have several runs in the journal.
- Failure category: this is a short code such as `timed_out`, `git_operation` or `worker`. Anything that looks like free text becomes `unknown`.
- Pull request outcome: `opened` when the task opened a pull request (including a continuation one), `updated` when it pushed a commit to an existing one, otherwise empty.
- Realtime: task events publish no extra activity update, because task state changes already send their own.

Migration you should know about. The journal table only allowed the three existing domains, and SQLite can't change that rule in place. The new migration (`20261114120000_add_task_repository_event_domain.js`) rebuilds the table. It keeps every row, its sequence number and the sequence counter, so existing cursors stay valid and deleted numbers are never reused. Rolling it back deletes the `task` events.

Readers. The API, MCP tools and CLI accept the new domain because they build their domain list from the shared one. I updated the MCP tool description and the API docs text, and regenerated the OpenAPI spec and client types. Automations have no event triggers built from the journal's domains, so I left them unchanged, as the issue says to.

Acceptance criteria
- AC1: met — `packages/core/test/taskJournalEvents.test.ts` checks `queued` → `started` → `completed` with the full payload for an implementation task and a pull request follow-up; `test/taskJournalFinalizers.test.ts` checks the same through the follow-up job completion path in `src/jobs`.
- AC2: met — cancelled tasks (user-cancelled and pull-request-closed) append `cancelled`; failed tasks append `failed` with `git_operation`, `timed_out` or `worker` as the category, in both of those test files.
- AC3: met — the sentinel test in `packages/core/test/taskJournalEvents.test.ts` puts marker strings into the task's prompt fields, reasons, tool output, results, error messages and logs, then checks no stored `task` event contains them and only the documented payload fields appear; `test/taskJournalFinalizers.test.ts` checks the same for follow-ups.
- AC4: met — with the journal table removed, the task still finishes `completed` with its full history and the failure is logged (`packages/core/test/taskJournalEvents.test.ts`), and the follow-up finalizer still reports `finalized` (`test/taskJournalFinalizers.test.ts`).
- AC5: met — `packages/api/test/repositoryEventTaskDomain.test.ts` covers list, filters, wait and 30-day retention; `packages/api/test/mcpRepositoryEvents.test.ts` covers the MCP tool and REST route; `packages/shared/test/repositoryEvents.test.ts` covers the domain list; docs are in `docs/docs/architecture/repository-event-journal.md` (domain, payloads, dedupe keys, retention) and `docs/docs/operations/api-reference.md`.
@propr-dev

propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=8 max=10
Triggered automatically by the requested execution settings.

@propr-dev

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

Copy link
Copy Markdown
Contributor Author

CI failed: Packaged Connect (darwin-x64)

Please investigate and fix this CI failure.

  • Check: Packaged Connect (darwin-x64)
  • Result: failure
  • Commit: 5aabbab5cbaa (5aabbab5cbaa6231d9841cf8c9198138f0ce8c96)
  • Details: View CI failure

Failure evidence

.github:36
Process completed with exit code 1.

@propr-dev

propr-dev Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @propr-dev[bot]

Analysis Summary

I didn't change any code, because this failure isn't caused by the PR. A rerun of the failed jobs should fix it.

What failed: the darwin-x64 job never got past its first install step (npm ci). While installing, better-sqlite3 builds itself with node-gyp rebuild, which downloads the Node headers from nodejs.org. The first request succeeded, but the second one (SHASUMS256.txt) couldn't connect:

gyp http GET https://nodejs.org/download/release/v22.23.2/SHASUMS256.txt
gyp ERR! stack ConnectTimeoutError: Connect Timeout Error (attempted addresses: 104.16.213.131:443, 104.16.212.131:443, timeout: 10000ms)

Why it's not the PR:

  • The commit doesn't change package.json, package-lock.json or anything under .github/, so the install is the same one that passes elsewhere.
  • No tests or builds ran; the job died during dependency install.
  • The other Packaged Connect jobs (darwin-arm64, linux-x64, linux-arm64 and the Discovery Guard) were cancelled, not failed. That looks like the workflow stopping the rest once one job failed, so they never produced a result either way.

Next step: rerun the failed and cancelled jobs in run 43618307573 (for example gh run rerun 43618307573 --failed). I didn't trigger the rerun myself. If it fails again with the same nodejs.org timeout, the problem is network access from the macOS runner, and the fix would be in the workflow (caching the Node headers or retrying npm ci), not in this PR.

No code changes were necessary based on the current state of the branch.


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 4m 13s
  • Tokens: 135,428 (134,337 in / 1,091 out)
  • Cost: $0.22
  • Subscription usage: Fable +1%

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6881071476✓

@propr-dev

propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR adds task lifecycle events through the shared state manager, with corresponding reader contracts, documentation, and tests. It needs a localized correction before merge: queue handoffs produce an incorrect run duration.

✅ Failure isolation — Event construction and append failures are caught without changing the task’s outcome.

✅ Migration preservation — The migration preserves existing sequence numbers and the AUTOINCREMENT high-water mark, with regression coverage for deleted sequence numbers.

✅ Reader integration — Shared domain declarations propagate to API and MCP filters, with tests covering task events and retention.

This review used static analysis of the supplied code; no commands were run. Current-head checks report 35 passed, 31 neutral/skipped, and no failures.

Merge blockers

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

F1: 🔴 Preserve run duration across handoffs

  • Category: correctness

  • Required behavior: A bookkeeping queue handoff continues the same run without another started event; the terminal duration must measure that run from its start.

  • Evidence: packages/core/src/services/taskJournalEvents.ts:98-109 — runDurationMs; related start suppression in taskEventType.

    1. A follow-up enters processing, then records a bookkeeping cancelled state with jobResultStatus: 'requeued', as exercised by the added handoff test.
    2. It resumes in processing. taskEventType correctly suppresses another started event because previousWasBookkeeping is true.
    3. On completion, runDurationMs scans backward and selects the resumed processing entry: its preceding entry is cancelled, which is outside RUNNING_STATES.
    4. The persisted terminal event therefore measures only time since resumption, discarding execution before the handoff. For an initial start at 00:00, resumption at 00:10, and completion at 00:11, it reports one minute for the run whose journaled start was eleven minutes earlier.

    static trace: The supplied handoff test establishes this reachable transition sequence but asserts only event types. The duration calculation does not consult the bookkeeping predicate, so start suppression and deduplication do not prevent the incorrect payload.

  • Minimum fix: Make duration calculation traverse bookkeeping cancellation/resumption boundaries to the original start of the same run, while retaining a fresh start for genuine retries. Add a deterministic timestamp assertion to the handoff regression test.

Suggestions

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

S1: 🟢 Exercise waits before task appends

The new API wait test starts waiting after matching task events already exist. An additional test that starts the wait first and then appends through the task state manager would cover notification delivery for a domain without an activity mapping. This is optional because the shared append notification path remains in use.

Score

The implementation is focused and has substantial coverage with passing current-head checks. The incorrect duration across supported queue handoffs requires a small correction before merge.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 35s
  • Tokens: 64,648 (63,763 in / 885 out)
  • Cost: $0.56

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F1 S1

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 7950ec6

Addressed 1 AI review comment (IDs: 6881950827)

Addressed finding F1

Summary of Changes

I fixed F1: when a run is paused for a queue handoff and later resumes, durationMs now counts from the run's original started event instead of from the resumption. A retry after a real failure still counts as a new run with its own duration. The core test file passes (12 tests), as do test/taskJournalFinalizers.test.ts (5 tests), the core typecheck and a zero-warning lint of the changed source file. I removed the fix temporarily and both new duration checks failed, so they do catch the bug.

The fix (packages/core/src/services/taskJournalEvents.ts): when the duration code walks back through the task history looking for the start of the run, it now steps past a handoff cancelled entry as if the run never stopped. It recognises a handoff by reusing isBookkeepingCancellation, the same check that stops a resumed handoff from journaling a second started. So both decisions now follow one rule:

  • Handoff (requeued or rescheduled, no terminal reason): the run continues.
  • Real terminal state: the run ends, and the next running state starts a new run.

Tests (packages/core/test/taskJournalEvents.test.ts): the tests now fix the clock at chosen times, so the durations can be checked exactly.

  • The finding's case: start at 00:00, handoff at 00:05, resume at 00:10, complete at 00:11. The test asserts durationMs is 11 minutes and that the journal still records only queued, started, completed.
  • New test with two handoffs and a retry: a rescheduled handoff (recognised by its reason text) and a requeued handoff (recognised by its metadata), then a real failure at 7 minutes. The failed event reports 7 minutes. A retry from 00:20 to 00:23 then reports 3 minutes.

Docs: I updated the durationMs row in docs/docs/architecture/repository-event-journal.md to say the time runs from the run's started event, across any queue handoffs in between.

No other code works out where a run starts, so there were no other copies of this bug to fix. The change isn't visible in the UI, so I didn't create any previews.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/core/src/services/taskJournalEvents.ts (+18/−3)
  • Low risk (2 files)
    • docs/docs/architecture/repository-event-journal.md (+1/−1)
    • packages/core/test/taskJournalEvents.test.ts (+40/−7)

Validation evidence

  • No repository validation commands ran.

Diff size: 3 files changed, +59/−11 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 4m 48s
  • Tokens: 1,274,188 (1,267,059 in / 7,129 out)
  • Cost: $0.65

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…ter resumes, `durationMs` now counts from the run's original `started` event instead of from the resumption. A retry after a real failure still counts as a new run with its own duration. The core test file passes (12 tests), as do `test/taskJournalFinalizers.test.ts` (5 tests), the core typecheck and a zero-warning lint of the changed source file. I removed the fix temporarily and both new duration checks failed, so they do catch the bug.

I fixed F1: when a run is paused for a queue handoff and later resumes, `durationMs` now counts from the run's original `started` event instead of from the resumption. A retry after a real failure still counts as a new run with its own duration. The core test file passes (12 tests), as do `test/taskJournalFinalizers.test.ts` (5 tests), the core typecheck and a zero-warning lint of the changed source file. I removed the fix temporarily and both new duration checks failed, so they do catch the bug.

**The fix** (`packages/core/src/services/taskJournalEvents.ts`): when the duration code walks back through the task history looking for the start of the run, it now steps past a handoff `cancelled` entry as if the run never stopped. It recognises a handoff by reusing `isBookkeepingCancellation`, the same check that stops a resumed handoff from journaling a second `started`. So both decisions now follow one rule:
- **Handoff** (`requeued` or `rescheduled`, no terminal reason): the run continues.
- **Real terminal state:** the run ends, and the next running state starts a new run.

**Tests** (`packages/core/test/taskJournalEvents.test.ts`): the tests now fix the clock at chosen times, so the durations can be checked exactly.
- **The finding's case:** start at 00:00, handoff at 00:05, resume at 00:10, complete at 00:11. The test asserts `durationMs` is 11 minutes and that the journal still records only `queued`, `started`, `completed`.
- **New test with two handoffs and a retry:** a `rescheduled` handoff (recognised by its reason text) and a `requeued` handoff (recognised by its metadata), then a real failure at 7 minutes. The `failed` event reports 7 minutes. A retry from 00:20 to 00:23 then reports 3 minutes.

**Docs:** I updated the `durationMs` row in `docs/docs/architecture/repository-event-journal.md` to say the time runs from the run's `started` event, across any queue handoffs in between.

No other code works out where a run starts, so there were no other copies of this bug to fix. The change isn't visible in the UI, so I didn't create any previews.

PR: #3572
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

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

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR adds task lifecycle events through the shared state manager, extends existing readers, and documents the payload contract. The implementation appears merge-ready within the supplied scope, conditional on the two pending checks completing successfully.

✅ Centralized lifecycle recording — Creation and state transitions share one event builder, with explicit handling for retries and bookkeeping cancellations.

✅ Cursor-preserving migration — The table rebuild preserves sequence numbers, indexes, and the AUTOINCREMENT high-water mark, including sequence numbers removed by retention.

✅ Isolated journal failures — Event construction and append failures are contained; the added tests exercise task completion with the journal table unavailable.

This assessment is a static review of the supplied diff and surrounding context. No commands or tests were run, as requested. The authoritative check summary reports no failures.

Merge blockers

No merge blockers.

Suggestions

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

S2: 🟢 Test transition replay deduplication

Add a regression that appends the same transition twice, then appends a subsequent retry transition. The version-based key in packages/core/src/services/taskJournalEvents.ts should suppress the replay while preserving the retry. The current implementation supports this distinction, but the new tests do not directly exercise it; this is optional coverage.

S3: 🟢 Exercise a pending task-event wait

The wait test in packages/api/test/repositoryEventTaskDomain.test.ts reads events that already exist. A follow-up test could start a wait first, append a task event through the task journal writer, and verify delivery and waiter cleanup. This would cover the new writer’s integration with append notifications; the supplied shared writer and reader paths do not demonstrate a blocker.

Score

The change is focused, includes substantial lifecycle and migration coverage, and has no verified merge blockers. Two checks remain pending, and runtime validation was not independently performed during this review.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 36s
  • Tokens: 66,087 (65,388 in / 699 out)
  • Cost: $0.58

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S2 S3

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 14, 2026
@propr-dev

propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ GitHub auto-merge is turned off for this repository, so ProPR merges this PR itself once it is ready (checks passed or no CI configured, and the review goal met).

To let GitHub merge it the moment required checks pass, enable Settings → General → Pull Requests → Allow auto-merge.

@propr-dev
propr-dev Bot merged commit d9fe03c into 3542-epic-plugin-system-xu8 Nov 14, 2026
50 checks passed
@propr-dev
propr-dev Bot deleted the 3547/claude-opus-5-5-repository-event-journal--20261114-1634-rv2 branch November 14, 2026 19:08
@propr-dev propr-dev Bot changed the title 🔨 [3547 by Claude Opus 5.5] Repository event journal: add the task domain [3547 by Claude Opus 5.5] Repository event journal: add the task domain Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants