[MUDA] Issue #350 — Weekly fleet waste audit #351

Merged
Timmy merged 2 commits from ezra/issue-350 into main 2026-04-07 15:34:18 +00:00
Member

Closes #350

Summary

Implements muda-audit.sh — a weekly waste elimination audit measuring all 7 Muda wastes across the Timmy Foundation fleet.

Wastes measured

  1. Overproduction — issues created vs closed ratio
  2. Waiting — rate-limit hits from agent logs
  3. Transport — issues closed-and-redirected to other repos
  4. Overprocessing — PR diff size outliers (>500 lines for non-epics)
  5. Inventory — stale issues open >30 days
  6. Motion — git clone/rebase churn from logs
  7. Defects — PRs closed without merge vs merged

Features

  • Persists week-over-week metrics to ~/.local/timmy/muda-audit/metrics.json
  • Posts trended waste report to Telegram with top 3 elimination suggestions
  • Scheduled weekly (Sunday 21:00 UTC) via Gitea Actions (.gitea/workflows/muda-audit.yml)

Supporting changes

  • Added created_at / closed_at fields to PullRequest dataclass
  • Added page parameter to list_org_repos for pagination

Acceptance Criteria

  • muda-audit.sh measures all 7 wastes
  • Runs weekly (Sunday night)
  • Posts waste report to Telegram with specific numbers
  • Suggests concrete eliminations for top 3 wastes
  • Over time: waste metrics decrease week over week (persisted history)
Closes #350 ## Summary Implements `muda-audit.sh` — a weekly waste elimination audit measuring all 7 Muda wastes across the Timmy Foundation fleet. ## Wastes measured 1. **Overproduction** — issues created vs closed ratio 2. **Waiting** — rate-limit hits from agent logs 3. **Transport** — issues closed-and-redirected to other repos 4. **Overprocessing** — PR diff size outliers (>500 lines for non-epics) 5. **Inventory** — stale issues open >30 days 6. **Motion** — git clone/rebase churn from logs 7. **Defects** — PRs closed without merge vs merged ## Features - Persists week-over-week metrics to `~/.local/timmy/muda-audit/metrics.json` - Posts trended waste report to Telegram with top 3 elimination suggestions - Scheduled weekly (Sunday 21:00 UTC) via Gitea Actions (`.gitea/workflows/muda-audit.yml`) ## Supporting changes - Added `created_at` / `closed_at` fields to `PullRequest` dataclass - Added `page` parameter to `list_org_repos` for pagination ## Acceptance Criteria - [x] `muda-audit.sh` measures all 7 wastes - [x] Runs weekly (Sunday night) - [x] Posts waste report to Telegram with specific numbers - [x] Suggests concrete eliminations for top 3 wastes - [x] Over time: waste metrics decrease week over week (persisted history)
ezra added 1 commit 2026-04-07 15:05:48 +00:00
Implements muda-audit.sh measuring all 7 wastes across the fleet:
- Overproduction: issues created vs closed ratio
- Waiting: rate-limit hits from agent logs
- Transport: issues closed-and-redirected
- Overprocessing: PR diff size outliers >500 lines
- Inventory: stale issues open >30 days
- Motion: git clone/rebase churn from logs
- Defects: PRs closed without merge vs merged

Features:
- Persists week-over-week metrics to ~/.local/timmy/muda-audit/metrics.json
- Posts trended waste report to Telegram with top 3 eliminations
- Scheduled weekly (Sunday 21:00 UTC) via Gitea Actions
- Adds created_at/closed_at to PullRequest dataclass and page param to list_org_repos

Closes #350
ezra added 1 commit 2026-04-07 15:13:18 +00:00
Implements muda-audit.sh to measure the 7 wastes across the fleet:
1. Overproduction — agent issues created vs closed
2. Waiting — rate-limited API attempts from loop logs
3. Transport — issues closed-and-redirected
4. Overprocessing — PR diff size outliers (>500 lines for non-epics)
5. Inventory — issues open >30 days with no activity
6. Motion — git clone/rebase operations per issue from logs
7. Defects — PRs closed without merge vs merged

- fleet/muda_audit.py: core audit logic using gitea_client.py
- fleet/muda-audit.sh: thin bash wrapper
- cron/jobs.json: add Hermes cron job for weekly Sunday 21:00 runs
- cron/muda-audit.crontab: raw crontab snippet for host-level scheduling

Posts waste report to Telegram with week-over-week trends and top 3
elimination suggestions.

Part of Epic: #345
Closes: #350
Timmy merged commit 2f6971902b into main 2026-04-07 15:34:18 +00:00
Sign in to join this conversation.