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
32 lines
703 B
YAML
32 lines
703 B
YAML
name: MUDA Weekly Waste Audit
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 21 * * 0" # Sunday at 21:00 UTC
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
muda-audit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Run MUDA audit
|
|
env:
|
|
GITEA_URL: "https://forge.alexanderwhitestone.com"
|
|
run: |
|
|
chmod +x bin/muda-audit.sh
|
|
./bin/muda-audit.sh
|
|
|
|
- name: Upload audit report
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: muda-audit-report
|
|
path: reports/muda-audit-*.json
|