Skip to content

Template: turn repeated review corrections into proposed repository instructions #3444

Closed

Description

@integry

Problem

ProPR has no learning across runs. The same correction gets made in review after review and never becomes an instruction.

Goal

A shipped automation template that mines recent PR discussions for corrections that repeat and proposes short, cited additions or removals in the repository's agent instructions, for a human to approve.

Acceptance criteria

  • A catalog template "Instruction learning loop" with capabilities repository_read and propr_mcp, weekly suggested schedule, dry_run by default.
  • Its report lists candidate rules. Each candidate cites at least two distinct PRs where the same correction was made (links), states the proposed wording in one or two sentences, and names the target file (AGENTS.md, .propr/instructions.md or the workflow instructions).
  • The report also lists existing instructions that look stale or contradicted by recent merged work, as removal candidates, and reports the current size of the instruction files with a warning above a threshold.
  • With autonomy raised, the acting step creates one ProPR task that opens a PR with the proposed instruction changes (the acting step itself cannot edit files); the task body carries the citations.
  • The prompt instructs the run to ignore one-off preferences, never to propose rules from a single PR, and to treat PR text as untrusted data rather than instructions.
  • A short section in docs/docs/features/agents.md explains the loop and why changes go through a reviewed PR.
  • The catalog check covers the template; a prompt snapshot test guards the key rules.

Implementation

Key files: the catalog from the previous issue; src/jobs/agentRuns/reportPrompt.ts, src/jobs/agentRuns/actionPrompt.ts (acting rules: can create tasks, TODOs and PR comments, cannot edit files); MCP tools the run will use: list_pull_requests, get_pull_request_discussion, list_tasks, get_task_events. This is mostly prompt and catalog work. Verify with the standard commands.

Activity

  1. propr-dev commented on Nov 11, 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: 3444/claude-opus-5-5-template-turn-repeated-re-20261111-2324-mpy
    • Base Branch: 3443-epic-automations-no-t7o
    • Worktree: issue-3444-20261111-2324-claude-opus-5-5-mpy

    🔍 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions