Anthropic is not just removed — it is banned. This commit adds
enforcement at every gate to prevent re-introduction.
1. architecture_linter.py — 9 BANNED rules for Anthropic patterns
(provider, model slugs, API endpoints, keys, model names).
Scans all yaml/py/sh/json/md. Skips training data and historical docs.
2. pre-commit.py — scan_banned_providers() runs on every staged file.
Blocks any commit that introduces Anthropic references.
Exempt: training/, evaluations/, changelogs, historical cost data.
3. test_sovereignty_enforcement.py — TestAnthropicBan class with 4 tests:
- No Anthropic in wizard configs
- No Anthropic in playbooks
- No Anthropic in fallback chain
- No Anthropic API key in bootstrap
4. BANNED_PROVIDERS.md — Hard policy document. Golden state config.
Replacement table. Exception list. Not advisory — mandatory.
- Add Kaizen Retro to cron/jobs.json with explicit local model/provider
- Add Telegram message chunking for reports approaching the 4096-char limit
- Fix classify_issue_type false positives on short substrings (ci in cleanup)
- Add 28 unit tests covering classification, max-attempts detection,
suggestion generation, report formatting, and Telegram chunking
- Add bin/kaizen-retro.sh entry point and scripts/kaizen_retro.py
- Analyze closed issues, merged PRs, and stale/max-attempts issues
- Report success rates by agent, repo, and issue type
- Generate one concrete improvement suggestion per cycle
- Post retro to Telegram and comment on the latest morning report issue
- Wire into Huey as kaizen_retro() task at 07:15 daily
- Extend gitea_client.py with since param for list_issues and
created_at/updated_at fields on PullRequest
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