Skip to content

Repository event journal: add the task domain #3547

Open

Description

@integry

Goal

Plugins need to follow implementation and follow-up tasks. Add a task domain to the repository event journal, alongside the existing pull_request, epic_queue and plan_issue domains. This issue only adds the events; nothing consumes them yet.

What to build

  • Domain task with types queued, started, completed, failed, cancelled.
  • Payload: task id, task kind (implementation, follow-up, review, merge-conflict, automation), issue or pull request number, agent, model, and for terminal events an outcome summary (status, duration, whether a pull request was opened or updated, short failure category). No prompt text, no tool output, no logs, no file contents.
  • Events are appended where task status changes are already recorded. Appending must never fail or delay the task: an append error is logged and the task continues.
  • The existing readers of the journal (API, MCP, automations' event triggers) accept the new domain; automations can use task.* as an event trigger if the existing trigger catalog is derived from the domain list, otherwise leave automations unchanged.

Acceptance criteria

  • For an implementation task and a pull request follow-up: queued, started and one terminal event are appended in order with the documented payload.
  • A cancelled task appends cancelled; a failed task appends failed with a failure category.
  • Sentinel test: prompt text and tool output never appear in a task event.
  • A journal append failure does not change the task's outcome.
  • Journal retention, API and MCP read paths return the new events; docs list the domain and payloads where the other domains are documented.

Implementation

  1. packages/shared/src/repositoryEvents.ts: domain, types, payload schema.
  2. Append in the task status paths (packages/core/src/services/repositoryEventJournal.ts, task queue and job completion paths in src/jobs).
  3. Tests in packages/shared/test, packages/core/test and test/.
  4. Docs where repository events are described.

Notes

Independent of the plugin issues; placed here because the dispatcher needs it. ProPR runs on SQLite only. Ordinary task runs stay one-shot.

Activity

  1. added
    base-3542-epic-plugin-system-xu8
    on Nov 14, 2026
  2. propr-dev commented on Nov 14, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3547/claude-opus-5-5-repository-event-journal--20261114-1634-rv2
    • Base Branch: 3542-epic-plugin-system-xu8
    • Worktree: issue-3547-20261114-1634-claude-opus-5-5-rv2

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI-doneauto-mergebase-3542-epic-plugin-system-xu8llm-claude-opus55propr-planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions