Skip to content

feat: collect human rework rate for bot-merged PRs #10

Description

@waynesun09

Context

Moved from fullsend-ai/fullsend#5516 / PR fullsend-ai/fullsend#5517 (closed — wrong repo). The goal is a trended trust metric for fullsend-ai's own agents, which is what this repo already does; a one-off script in the fullsend repo has no persistence, is not shipped to action users, and only fullsend developers can run it.

scripts/collect-rework.sh currently measures bot-on-bot rework and explicitly scopes out human rework. This fills that gap.

Proposal

Add a daily collector (e.g. scripts/collect-human-rework.sh on lib.sh, wired into .github/workflows/collect.yml) that, for each PR merged by a fullsend bot on fullsend + agents:

  1. Records the files touched by the PR
  2. Checks for human (non-bot, author.type == "User", non-null author) commits within N days (default 7) touching the same files
  3. Persists per-day × repo counts (bot_prs_merged, bot_prs_reworked, rework_rate) plus a per-PR details CSV, and surfaces it on the dashboard

The reference implementation with tests is in fullsend-ai/fullsend#5517 (scripts/rework-rate.sh) — logic is reviewed and solid; it needs porting onto lib.sh + CSV persistence rather than recomputing from scratch each run. Known limitations (repo-wide file-overlap heuristic, pre-merge fix branches, PAT machine users counted as human) are documented in that PR's description.

Related

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