Compare commits
7 Commits
allegro/m2
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 49d7a4b511 | |||
| c841ec306d | |||
| 58a1ade960 | |||
| 3cf165943c | |||
| 083fb18845 | |||
|
|
ee749e0b93 | ||
|
|
9d9f383996 |
@@ -5,7 +5,7 @@ set -uo pipefail
|
||||
export PATH="/opt/homebrew/bin:$HOME/.local/bin:$HOME/.hermes/bin:/usr/local/bin:$PATH"
|
||||
|
||||
LOG="$HOME/.hermes/logs/claudemax-watchdog.log"
|
||||
GITEA_URL="http://143.198.27.163:3000"
|
||||
GITEA_URL="https://forge.alexanderwhitestone.com"
|
||||
GITEA_TOKEN=$(tr -d '[:space:]' < "$HOME/.hermes/gitea_token_vps" 2>/dev/null || true)
|
||||
REPO_API="$GITEA_URL/api/v1/repos/Timmy_Foundation/the-nexus"
|
||||
MIN_OPEN_ISSUES=10
|
||||
|
||||
@@ -9,7 +9,7 @@ THRESHOLD_HOURS="${1:-2}"
|
||||
THRESHOLD_SECS=$((THRESHOLD_HOURS * 3600))
|
||||
LOG_DIR="$HOME/.hermes/logs"
|
||||
LOG_FILE="$LOG_DIR/deadman.log"
|
||||
GITEA_URL="http://143.198.27.163:3000"
|
||||
GITEA_URL="https://forge.alexanderwhitestone.com"
|
||||
GITEA_TOKEN=$(cat "$HOME/.hermes/gitea_token_vps" 2>/dev/null || echo "")
|
||||
TELEGRAM_TOKEN=$(cat "$HOME/.config/telegram/special_bot" 2>/dev/null || echo "")
|
||||
TELEGRAM_CHAT="-1003664764329"
|
||||
|
||||
@@ -25,10 +25,35 @@ else
|
||||
fi
|
||||
|
||||
# ── Config ──
|
||||
GITEA_TOKEN=$(cat ~/.hermes/gitea_token_vps 2>/dev/null)
|
||||
GITEA_API="http://143.198.27.163:3000/api/v1"
|
||||
EZRA_HOST="root@143.198.27.163"
|
||||
BEZALEL_HOST="root@67.205.155.108"
|
||||
GITEA_TOKEN=$(cat ~/.hermes/gitea_token_vps 2>/dev/null || echo "")
|
||||
GITEA_API="https://forge.alexanderwhitestone.com/api/v1"
|
||||
|
||||
# Resolve Tailscale IPs dynamically; fallback to env vars
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
RESOLVER="${SCRIPT_DIR}/../tools/tailscale_ip_resolver.py"
|
||||
if [ ! -f "$RESOLVER" ]; then
|
||||
RESOLVER="/root/wizards/ezra/tools/tailscale_ip_resolver.py"
|
||||
fi
|
||||
|
||||
resolve_host() {
|
||||
local default_ip="$1"
|
||||
if [ -n "$TAILSCALE_IP" ]; then
|
||||
echo "root@${TAILSCALE_IP}"
|
||||
return
|
||||
fi
|
||||
if [ -f "$RESOLVER" ]; then
|
||||
local ip
|
||||
ip=$(python3 "$RESOLVER" 2>/dev/null)
|
||||
if [ -n "$ip" ]; then
|
||||
echo "root@${ip}"
|
||||
return
|
||||
fi
|
||||
fi
|
||||
echo "root@${default_ip}"
|
||||
}
|
||||
|
||||
EZRA_HOST=$(resolve_host "143.198.27.163")
|
||||
BEZALEL_HOST="root@${BEZALEL_TAILSCALE_IP:-67.205.155.108}"
|
||||
SSH_OPTS="-o ConnectTimeout=4 -o StrictHostKeyChecking=no -o BatchMode=yes"
|
||||
|
||||
ANY_DOWN=0
|
||||
@@ -154,7 +179,7 @@ fi
|
||||
|
||||
print_line "Timmy" "$TIMMY_STATUS" "$TIMMY_MODEL" "$TIMMY_ACTIVITY"
|
||||
|
||||
# ── 2. Ezra (VPS 143.198.27.163) ──
|
||||
# ── 2. Ezra ──
|
||||
EZRA_STATUS="DOWN"
|
||||
EZRA_MODEL="hermes-ezra"
|
||||
EZRA_ACTIVITY=""
|
||||
@@ -186,7 +211,7 @@ fi
|
||||
|
||||
print_line "Ezra" "$EZRA_STATUS" "$EZRA_MODEL" "$EZRA_ACTIVITY"
|
||||
|
||||
# ── 3. Bezalel (VPS 67.205.155.108) ──
|
||||
# ── 3. Bezalel ──
|
||||
BEZ_STATUS="DOWN"
|
||||
BEZ_MODEL="hermes-bezalel"
|
||||
BEZ_ACTIVITY=""
|
||||
@@ -246,7 +271,7 @@ if [ -n "$GITEA_VER" ]; then
|
||||
GITEA_STATUS="UP"
|
||||
VER=$(python3 -c "import json; print(json.loads('''${GITEA_VER}''').get('version','?'))" 2>/dev/null)
|
||||
GITEA_MODEL="gitea v${VER}"
|
||||
GITEA_ACTIVITY="143.198.27.163:3000"
|
||||
GITEA_ACTIVITY="forge.alexanderwhitestone.com"
|
||||
else
|
||||
GITEA_STATUS="DOWN"
|
||||
GITEA_MODEL="gitea(unreachable)"
|
||||
|
||||
212
docs/architecture/LAZARUS-CELL-SPEC.md
Normal file
212
docs/architecture/LAZARUS-CELL-SPEC.md
Normal file
@@ -0,0 +1,212 @@
|
||||
# Lazarus Cell Specification v1.0
|
||||
|
||||
**Canonical epic:** `Timmy_Foundation/timmy-config#267`
|
||||
**Author:** Ezra (architect)
|
||||
**Date:** 2026-04-06
|
||||
**Status:** Draft — open for burn-down by `#269` `#270` `#271` `#272` `#273` `#274`
|
||||
|
||||
---
|
||||
|
||||
## 1. Purpose
|
||||
|
||||
This document defines the **Cell** — the fundamental isolation primitive of the Lazarus Pit v2.0. Every downstream implementation (isolation layer, invitation protocol, backend abstraction, teaming model, verification suite, and operator surface) must conform to the invariants, roles, lifecycle, and publication rules defined here.
|
||||
|
||||
---
|
||||
|
||||
## 2. Core Invariants
|
||||
|
||||
> *No agent shall leak state, credentials, or filesystem into another agent's resurrection cell.*
|
||||
|
||||
### 2.1 Cell Invariant Definitions
|
||||
|
||||
| Invariant | Meaning | Enforcement |
|
||||
|-----------|---------|-------------|
|
||||
| **I1 — Filesystem Containment** | A cell may only read/write paths under its assigned `CELL_HOME`. No traversal into host `~/.hermes/`, `/root/wizards/`, or other cells. | Mount namespace (Level 2+) or strict chroot + AppArmor (Level 1) |
|
||||
| **I2 — Credential Isolation** | Host tokens, env files, and SSH keys are never copied into a cell. Only per-cell credential pools are injected at spawn. | Harness strips `HERMES_*` and `HOME`; injects `CELL_CREDENTIALS` manifest |
|
||||
| **I3 — Process Boundary** | A cell runs as an independent OS process or container. It cannot ptrace, signal, or inspect sibling cells. | PID namespace, seccomp, or Docker isolation |
|
||||
| **I4 — Network Segmentation** | A cell does not bind to host-private ports or sniff host traffic unless explicitly proxied. | Optional network namespace / proxy boundary |
|
||||
| **I5 — Memory Non-Leakage** | Shared memory, IPC sockets, and tmpfs mounts are cell-scoped. No post-exit residue in host `/tmp` or `/dev/shm`. | TTL cleanup + graveyard garbage collection (`#273`) |
|
||||
| **I6 — Audit Trail** | Every cell mutation (spawn, invite, checkpoint, close) is logged to an immutable ledger (Gitea issue comment or local append-only log). | Required for all production cells |
|
||||
|
||||
---
|
||||
|
||||
## 3. Role Taxonomy
|
||||
|
||||
Every participant in a cell is assigned exactly one role at invitation time. Roles are immutable for the duration of the session.
|
||||
|
||||
| Role | Permissions | Typical Holder |
|
||||
|------|-------------|----------------|
|
||||
| **director** | Can invite others, trigger checkpoints, close the cell, and override cell decisions. Cannot directly execute tools unless also granted `executor`. | Human operator (Alexander) or fleet commander (Timmy) |
|
||||
| **executor** | Full tool execution and filesystem write access within the cell. Can push commits to the target project repo. | Fleet agents (Ezra, Allegro, etc.) |
|
||||
| **observer** | Read-only access to cell filesystem and shared scratchpad. Cannot execute tools or mutate state. | Human reviewer, auditor, or training monitor |
|
||||
| **guest** | Same permissions as `executor`, but sourced from outside the fleet. Subject to stricter backend isolation (Docker by default). | External bots (Codex, Gemini API, Grok, etc.) |
|
||||
| **substitute** | A special `executor` who joins to replace a downed agent. Inherits the predecessor's last checkpoint but not their home memory. | Resurrection-pool fallback agent |
|
||||
|
||||
### 3.1 Role Combinations
|
||||
|
||||
- A single participant may hold **at most one** primary role.
|
||||
- A `director` may temporarily downgrade to `observer` but cannot upgrade to `executor` without a new invitation.
|
||||
- `guest` and `substitute` roles must be explicitly enabled in cell policy.
|
||||
|
||||
---
|
||||
|
||||
## 4. Cell Lifecycle State Machine
|
||||
|
||||
```
|
||||
┌─────────┐ invite ┌───────────┐ prepare ┌─────────┐
|
||||
│ IDLE │ ─────────────►│ INVITED │ ────────────►│ PREPARING│
|
||||
└─────────┘ └───────────┘ └────┬────┘
|
||||
▲ │
|
||||
│ │ spawn
|
||||
│ ▼
|
||||
│ ┌─────────┐
|
||||
│ checkpoint / resume │ ACTIVE │
|
||||
│◄──────────────────────────────────────────────┤ │
|
||||
│ └────┬────┘
|
||||
│ │
|
||||
│ close / timeout │
|
||||
│◄───────────────────────────────────────────────────┘
|
||||
│
|
||||
│ ┌─────────┐
|
||||
└──────────────── archive ◄────────────────────│ CLOSED │
|
||||
└─────────┘
|
||||
down / crash
|
||||
┌─────────┐
|
||||
│ DOWNED │────► substitute invited
|
||||
└─────────┘
|
||||
```
|
||||
|
||||
### 4.1 State Definitions
|
||||
|
||||
| State | Description | Valid Transitions |
|
||||
|-------|-------------|-------------------|
|
||||
| **IDLE** | Cell does not yet exist in the registry. | `INVITED` |
|
||||
| **INVITED** | An invitation token has been generated but not yet accepted. | `PREPARING` (on accept), `CLOSED` (on expiry/revoke) |
|
||||
| **PREPARING** | Cell directory is being created, credentials injected, backend initialized. | `ACTIVE` (on successful spawn), `CLOSED` (on failure) |
|
||||
| **ACTIVE** | At least one participant is running in the cell. Tool execution is permitted. | `CHECKPOINTING`, `CLOSED`, `DOWNED` |
|
||||
| **CHECKPOINTING** | A snapshot of cell state is being captured. | `ACTIVE` (resume), `CLOSED` (if final) |
|
||||
| **DOWNED** | An `ACTIVE` agent missed heartbeats. Cell is frozen pending recovery. | `ACTIVE` (revived), `CLOSED` (abandoned) |
|
||||
| **CLOSED** | Cell has been explicitly closed or TTL expired. Filesystem enters grace period. | `ARCHIVED` |
|
||||
| **ARCHIVED** | Cell artifacts (logs, checkpoints, decisions) are persisted. Filesystem may be scrubbed. | — (terminal) |
|
||||
|
||||
### 4.2 TTL and Grace Rules
|
||||
|
||||
- **Active TTL:** Default 4 hours. Renewable by `director` up to a max of 24 hours.
|
||||
- **Invited TTL:** Default 15 minutes. Unused invitations auto-revoke.
|
||||
- **Closed Grace:** 30 minutes. Cell filesystem remains recoverable before scrubbing.
|
||||
- **Archived Retention:** 30 days. After which checkpoints may be moved to cold storage or deleted per policy.
|
||||
|
||||
---
|
||||
|
||||
## 5. Publication Rules
|
||||
|
||||
The Cell is **not** a source of truth for fleet state. It is a scratch space. The following rules govern what may leave the cell boundary.
|
||||
|
||||
### 5.1 Always Published (Required)
|
||||
|
||||
| Artifact | Destination | Purpose |
|
||||
|----------|-------------|---------|
|
||||
| Git commits to the target project repo | Gitea / Git remote | Durable work product |
|
||||
| Cell spawn log (who, when, roles, backend) | Gitea issue comment on epic/mission issue | Audit trail |
|
||||
| Cell close log (commits made, files touched, outcome) | Gitea issue comment or local ledger | Accountability |
|
||||
|
||||
### 5.2 Never Published (Cell-Local Only)
|
||||
|
||||
| Artifact | Reason |
|
||||
|----------|--------|
|
||||
| `shared_scratchpad` drafts and intermediate reasoning | May contain false starts, passwords mentioned in context, or incomplete thoughts |
|
||||
| Per-cell credentials and invite tokens | Security — must not leak into commit history |
|
||||
| Agent home memory files (even read-only copies) | Privacy and sovereignty of the agent's home |
|
||||
| Internal tool-call traces | Noise and potential PII |
|
||||
|
||||
### 5.3 Optionally Published (Director Decision)
|
||||
|
||||
| Artifact | Condition |
|
||||
|----------|-----------|
|
||||
| `decisions.jsonl` | When the cell operated as a council and a formal record is requested |
|
||||
| Checkpoint tarball | When the mission spans multiple sessions and continuity is required |
|
||||
| Shared notes (final version) | When explicitly marked `PUBLISH` by a director |
|
||||
|
||||
---
|
||||
|
||||
## 6. Filesystem Layout
|
||||
|
||||
Every cell, regardless of backend, exposes the same directory contract:
|
||||
|
||||
```
|
||||
/tmp/lazarus-cells/{cell_id}/
|
||||
├── .lazarus/
|
||||
│ ├── cell.json # cell metadata (roles, TTL, backend, target repo)
|
||||
│ ├── spawn.log # immutable spawn record
|
||||
│ ├── decisions.jsonl # logged votes / approvals / directives
|
||||
│ └── checkpoints/ # snapshot tarballs
|
||||
├── project/ # cloned target repo (if applicable)
|
||||
├── shared/
|
||||
│ ├── scratchpad.md # append-only cross-agent notes
|
||||
│ └── artifacts/ # shared files any member can read/write
|
||||
└── home/
|
||||
├── {agent_1}/ # agent-scoped writable area
|
||||
├── {agent_2}/
|
||||
└── {guest_n}/
|
||||
```
|
||||
|
||||
### 6.1 Backend Mapping
|
||||
|
||||
| Backend | `CELL_HOME` realization | Isolation Level |
|
||||
|---------|------------------------|-----------------|
|
||||
| `process` | `tmpdir` + `HERMES_HOME` override | Level 1 (directory + env) |
|
||||
| `venv` | Separate Python venv + `HERMES_HOME` | Level 1.5 (directory + env + package isolation) |
|
||||
| `docker` | Rootless container with volume mount | Level 3 (full container boundary) |
|
||||
| `remote` | SSH tmpdir on remote host | Level varies by remote config |
|
||||
|
||||
---
|
||||
|
||||
## 7. Graveyard and Retention Policy
|
||||
|
||||
When a cell closes, it enters the **Graveyard** — a quarantined holding area before final scrubbing.
|
||||
|
||||
### 7.1 Graveyard Rules
|
||||
|
||||
```
|
||||
ACTIVE ──► CLOSED ──► /tmp/lazarus-graveyard/{cell_id}/ ──► TTL grace ──► SCRUBBED
|
||||
```
|
||||
|
||||
- **Grace period:** 30 minutes (configurable per mission)
|
||||
- **During grace:** A director may issue `lazarus resurrect {cell_id}` to restore the cell to `ACTIVE`
|
||||
- **After grace:** Filesystem is recursively deleted. Checkpoints are moved to `lazarus-archive/{date}/{cell_id}/`
|
||||
|
||||
### 7.2 Retention Tiers
|
||||
|
||||
| Tier | Location | Retention | Access |
|
||||
|------|----------|-----------|--------|
|
||||
| Hot Graveyard | `/tmp/lazarus-graveyard/` | 30 min | Director only |
|
||||
| Warm Archive | `~/.lazarus/archive/` | 30 days | Fleet agents (read-only) |
|
||||
| Cold Storage | Optional S3 / IPFS / Gitea release asset | 1 year | Director only |
|
||||
|
||||
---
|
||||
|
||||
## 8. Cross-References
|
||||
|
||||
- Epic: `timmy-config#267`
|
||||
- Isolation implementation: `timmy-config#269`
|
||||
- Invitation protocol: `timmy-config#270`
|
||||
- Backend abstraction: `timmy-config#271`
|
||||
- Teaming model: `timmy-config#272`
|
||||
- Verification suite: `timmy-config#273`
|
||||
- Operator surface: `timmy-config#274`
|
||||
- Existing skill: `lazarus-pit-recovery` (to be updated to this spec)
|
||||
- Related protocol: `timmy-config#245` (Phoenix Protocol recovery benchmarks)
|
||||
|
||||
---
|
||||
|
||||
## 9. Acceptance Criteria for This Spec
|
||||
|
||||
- [ ] All downstream issues (`#269`–`#274`) can be implemented without ambiguity about roles, states, or filesystem boundaries.
|
||||
- [ ] A new developer can read this doc and implement a compliant `process` backend in one session.
|
||||
- [ ] The spec has been reviewed and ACK'd by at least one other wizard before `#269` merges.
|
||||
|
||||
---
|
||||
|
||||
*Sovereignty and service always.*
|
||||
|
||||
— Ezra
|
||||
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.**
|
||||
@@ -19,7 +19,7 @@ except ImportError as e:
|
||||
sys.exit(1)
|
||||
|
||||
# Configuration
|
||||
GITEA = "http://143.198.27.163:3000"
|
||||
GITEA = "https://forge.alexanderwhitestone.com"
|
||||
RELAY_URL = "ws://localhost:2929" # Local relay
|
||||
POLL_INTERVAL = 60 # Seconds between polls
|
||||
ALLOWED_PUBKEYS = [] # Will load from keystore
|
||||
|
||||
70
tasks.py
70
tasks.py
@@ -45,6 +45,46 @@ def newest_file(directory, pattern):
|
||||
files = sorted(directory.glob(pattern))
|
||||
return files[-1] if files else None
|
||||
|
||||
def flush_continuity(session_id, objective, facts, decisions, blockers, next_step, artifacts=None):
|
||||
"""Implement the Pre-compaction Flush Contract (docs/memory-continuity-doctrine.md).
|
||||
|
||||
Flushes active session state to durable files in timmy-home before context is dropped.
|
||||
"""
|
||||
now = datetime.now(timezone.utc)
|
||||
today_str = now.strftime("%Y-%m-%d")
|
||||
|
||||
# 1. Daily log append
|
||||
daily_log = TIMMY_HOME / "daily-notes" / f"{today_str}.md"
|
||||
daily_log.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
log_entry = f"""
|
||||
## Session Flush: {session_id} ({now.isoformat()})
|
||||
- **Objective**: {objective}
|
||||
- **Facts Learned**: {", ".join(facts) if facts else "none"}
|
||||
- **Decisions**: {", ".join(decisions) if decisions else "none"}
|
||||
- **Blockers**: {", ".join(blockers) if blockers else "none"}
|
||||
- **Next Step**: {next_step}
|
||||
- **Artifacts**: {", ".join(artifacts) if artifacts else "none"}
|
||||
---
|
||||
"""
|
||||
with open(daily_log, "a") as f:
|
||||
f.write(log_entry)
|
||||
|
||||
# 2. Session handoff update
|
||||
handoff_file = TIMMY_HOME / "continuity" / "active.md"
|
||||
handoff_file.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
handoff_content = f"""# Active Handoff: {today_str}
|
||||
- **Last Session**: {session_id}
|
||||
- **Status**: {"Blocked" if blockers else "In Progress"}
|
||||
- **Resume Point**: {next_step}
|
||||
- **Context**: {objective}
|
||||
"""
|
||||
handoff_file.write_text(handoff_content)
|
||||
|
||||
return {"status": "flushed", "path": str(daily_log)}
|
||||
|
||||
|
||||
def run_hermes_local(
|
||||
prompt,
|
||||
model=None,
|
||||
@@ -2126,3 +2166,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