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
21 lines
492 B
Bash
Executable File
21 lines
492 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# muda-audit.sh — Weekly waste audit wrapper
|
|
# Runs scripts/muda_audit.py from the repo root.
|
|
# Designed for cron or Gitea Actions.
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
|
|
|
cd "$REPO_ROOT"
|
|
|
|
# Ensure python3 is available
|
|
if ! command -v python3 >/dev/null 2>&1; then
|
|
echo "ERROR: python3 not found" >&2
|
|
exit 1
|
|
fi
|
|
|
|
# Run the audit
|
|
python3 "${REPO_ROOT}/scripts/muda_audit.py" "$@"
|