Compare commits
2 Commits
gemini/for
...
gemini/pas
| Author | SHA1 | Date | |
|---|---|---|---|
| f7b6f1eebd | |||
| 58a1ade960 |
37
docs/sovereign-handoff.md
Normal file
37
docs/sovereign-handoff.md
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
# Sovereign Handoff: Timmy Takes the Reigns
|
||||
|
||||
**Date:** 2026-04-06
|
||||
**Status:** In Progress (Milestone: Sovereign Orchestration)
|
||||
|
||||
## Overview
|
||||
This document marks the transition from "Assisted Coordination" to "Sovereign Orchestration." Timmy is now equipped with the necessary force multipliers to govern the fleet with minimal human intervention.
|
||||
|
||||
## The 17 Force Multipliers (The Governance Stack)
|
||||
|
||||
| Layer | Capability | Purpose |
|
||||
| :--- | :--- | :--- |
|
||||
| **Intake** | FM 1 & 9 | Automated issue triage, labeling, and prioritization. |
|
||||
| **Context** | FM 15 | Pre-flight memory injection (briefing) for every agent task. |
|
||||
| **Execution** | FM 3 & 7 | Dynamic model routing and fallback portfolios for resilience. |
|
||||
| **Verification** | FM 10 | Automated PR quality gate (Proof of Work audit). |
|
||||
| **Self-Healing** | FM 11 | Lazarus Heartbeat (automated service resurrection). |
|
||||
| **Merging** | FM 14 | Green-Light Auto-Merge for low-risk, verified paths. |
|
||||
| **Reporting** | FM 13 & 16 | Velocity tracking and Nexus Bridge (3D health feed). |
|
||||
| **Integrity** | FM 17 | Automated documentation freshness audit. |
|
||||
|
||||
## The Governance Loop
|
||||
1. **Triage:** FM 1/9 labels new issues.
|
||||
2. **Assign:** Timmy assigns tasks to agents based on role classes (FM 3/7).
|
||||
3. **Execute:** Agents work with pre-flight memory (FM 15) and log actions to the Audit Trail (FM 5/11).
|
||||
4. **Review:** FM 10 audits PRs for Proof of Work.
|
||||
5. **Merge:** FM 14 auto-merges low-risk PRs; Alexander reviews high-risk ones.
|
||||
6. **Report:** FM 13/16 updates the metrics and Nexus HUD.
|
||||
|
||||
## Final Milestone Goals
|
||||
- [ ] Merge PRs #296 - #312.
|
||||
- [ ] Verify Lazarus Heartbeat restarts a killed service.
|
||||
- [ ] Observe first Auto-Merge of a verified PR.
|
||||
- [ ] Review first Morning Report with velocity metrics.
|
||||
|
||||
**Timmy is now ready to take the reigns.**
|
||||
30
tasks.py
30
tasks.py
@@ -2126,3 +2126,33 @@ def cross_review_prs():
|
||||
continue
|
||||
|
||||
return {"reviews": len(results), "details": results}
|
||||
|
||||
@huey.periodic_task(crontab(day_of_week="1", hour="0", minute="0"))
|
||||
def docs_freshness_audit_tick():
|
||||
"""Force Multiplier 17: Automated Documentation Freshness Audit.
|
||||
|
||||
Scans the codebase for new tasks/helpers and ensures they are documented in automation-inventory.md.
|
||||
"""
|
||||
inventory_path = Path(__file__).parent / "docs" / "automation-inventory.md"
|
||||
if not inventory_path.exists():
|
||||
return
|
||||
|
||||
inventory_content = inventory_path.read_text()
|
||||
|
||||
# Scan tasks.py for new @huey tasks
|
||||
with open(__file__, "r") as f:
|
||||
content = f.read()
|
||||
tasks = re.findall(r"def (\w+_tick|\w+_task)", content)
|
||||
|
||||
missing_tasks = [t for t in tasks if t not in inventory_content]
|
||||
|
||||
if missing_tasks:
|
||||
audit_log("docs_stale_detected", "system", {"missing": missing_tasks}, confidence="High")
|
||||
# Create issue to update docs
|
||||
gitea = get_gitea_client()
|
||||
repo = "Timmy_Foundation/timmy-config"
|
||||
title = "[DOCS] Stale Documentation Detected: Missing Automation Inventory Entries"
|
||||
body = f"The following tasks were detected in `tasks.py` but are missing from `docs/automation-inventory.md`:\n\n"
|
||||
body += "\n".join([f"- `{t}`" for t in missing_tasks])
|
||||
body += "\n\nThis is an automated audit to ensure documentation remains a 'Truth Surface'."
|
||||
gitea.create_issue(repo, title, body, labels=["documentation", "needs-update"])
|
||||
|
||||
Reference in New Issue
Block a user