Commit Graph

91 Commits

Author SHA1 Message Date
04213924d0 Merge pull request 'Cut over stale ops docs to current workflow' (#399) from codex/workflow-docs-cutover into main 2026-04-04 22:25:57 +00:00
dba3e90893 feat: rewrite KimiClaw heartbeat — launchd, sovereignty fixes, dispatch cap (#112) 2026-04-04 20:17:40 +00:00
e4c3bb1798 Add workspace user audit and lane recommendations (#392)
Co-authored-by: Codex Agent <codex@hermes.local>
Co-committed-by: Codex Agent <codex@hermes.local>
2026-04-04 20:05:21 +00:00
Alexander Whitestone
4effb5a20e Cut over stale ops docs to current workflow 2026-04-04 15:21:29 -04:00
Allegro
d716800ea9 docs: Add RCA for Timmy Telegram unresponsiveness
- Investigation findings
- SSH connection failed to Mac (100.124.176.28)
- Ezra also down (disconnected)
- Root cause hypotheses and required actions

Refs: #186
GoldenRockachopa
2026-03-31 21:36:34 +00:00
Allegro
645f63a4f6 docs: Add EPIC-202 and tickets for Claw-based agent build
- EPIC-202: Build Claw-Architecture Agent
- TICKET-203: ToolPermissionContext
- TICKET-204: ExecutionRegistry
- TICKET-205: Session Persistence

Replaces idle Allegro-Primus with real work capability.
2026-03-31 21:05:13 +00:00
Allegro
88362849aa feat: merge KimiClaw heartbeat rewrite — launchd, sovereignty fixes
- Tailscale-first networking with public IP fallback
- Portable paths using \$HOME
- No secrets in LLM prompts
- Dispatch cap (MAX_DISPATCH=5) per heartbeat
- Lockfile with 10-min stale detection
- Identity separation: timmy-token vs kimi_gitea_token
- 4-repo coverage: timmy-home, timmy-config, the-nexus, hermes-agent
- Removed 7 Hermes cron jobs (zero token cost polling)

Resolves: PR !112
Reviewed-by: gemini, Timmy
2026-03-31 08:01:08 +00:00
202bdd9c02 Merge pull request 'security: Add author whitelist for task router (Issue #132)' (#142) from security/author-whitelist-132 into main
Reviewed-on: http://143.198.27.163:3000/Timmy_Foundation/timmy-home/pulls/142
2026-03-31 04:34:27 +00:00
Allegro
384fad6d5f security: Add author whitelist for task router (Issue #132)
Implements security fix for issue #132 - Task router author whitelist

Changes:
- Add author_whitelist.py module with whitelist validation
- Integrate whitelist checks into task_router_daemon.py
- Add author_whitelist config option to config.yaml
- Add comprehensive tests for whitelist validation

Security features:
- Validates task authors against authorized whitelist
- Logs all authorization attempts (success and failure)
- Secure by default: empty whitelist denies all
- Configurable via environment variable or config file
- Prevents unauthorized command execution from untrusted Gitea users
2026-03-31 03:53:37 +00:00
4f0ad9e152 Merge pull request 'feat: Sovereign Evolution Redistribution — timmy-home' (#119) from feat/sovereign-evolution-redistribution into main 2026-03-30 23:41:35 +00:00
a70f418862 Merge pull request 'feat: Gen AI Evolution Phase 22 — Autonomous Bitcoin Scripting & Lightning Integration' (#121) from feat/sovereign-finance-phase-22 into main 2026-03-30 23:41:08 +00:00
5acbe11af2 feat: implement Phase 22 - Sovereign Accountant 2026-03-30 23:30:35 +00:00
78194bd131 feat: implement Phase 22 - Lightning Client 2026-03-30 23:30:34 +00:00
76ec52eb24 feat: implement Phase 22 - Bitcoin Scripter 2026-03-30 23:30:33 +00:00
ade407d00e feat: Phase 16 2026-03-30 23:27:41 +00:00
29c4a0028e feat: Phase 13 2026-03-30 23:27:40 +00:00
8afbafb556 feat: Phase 6 2026-03-30 23:27:38 +00:00
cc7aebe1a3 feat: Phase 3 2026-03-30 23:27:37 +00:00
504bb8015f feat: Phase 7 2026-03-30 23:27:36 +00:00
975eff9657 feat: Phase 1 2026-03-30 23:27:35 +00:00
Alexander Whitestone
a0ec802403 feat: add planning/decomposition phase to KimiClaw heartbeat
Complex tasks (body >500 chars) now get a 2-minute planning pass first:
- Kimi analyzes the task and decides EXECUTE (single pass) or DECOMPOSE
- DECOMPOSE: creates child issues labeled assigned-kimi, marks parent done
- EXECUTE: proceeds to 8-minute execution with --timeout 480
- Simple tasks skip planning and execute directly

Also:
- Pass --timeout to openclaw agent (was using default 600s, now explicit)
- Post KimiClaw results back as comments on the issue
- Post failure comments with actionable advice
- Execution prompt tells Kimi to stop and summarize if running long
2026-03-30 18:28:38 -04:00
Alexander Whitestone
ee7f37c5c7 feat: rewrite KimiClaw heartbeat — launchd, sovereignty fixes, dispatch cap
Rewrote kimi-heartbeat.sh with sovereignty-first design:
- Prefer Tailscale (100.x) over public IP for Gitea API calls
- Use $HOME instead of hardcoded /Users/apayne paths
- Remove token file paths from prompts sent to Kimi API
- Add MAX_DISPATCH=5 cap per heartbeat run
- Proper lockfile with stale detection (10min timeout)
- Correct identity separation: timmy-token for labels, kimi_gitea_token for comments
- Covers 4 repos: timmy-home, timmy-config, the-nexus, hermes-agent
- Label lifecycle: assigned-kimi -> kimi-in-progress -> kimi-done
- Failure handling: removes in-progress label so retry is possible

LaunchAgent: ai.timmy.kimi-heartbeat.plist (every 5 minutes)
Zero LLM cost for polling — bash/curl only. Kimi tokens only for actual work.

All Hermes cron jobs removed — they burned Anthropic tokens for polling.
KimiClaw dispatch is now pure infrastructure, no cloud LLM in the loop.
2026-03-30 17:59:43 -04:00
1688ae3055 Merge pull request 'chore: check in all local work — uniwizard, briefings, reports, evennia, morrowind, scripts, specs' (#109) from chore/check-in-local-work into main
Reviewed-on: http://143.198.27.163:3000/Timmy_Foundation/timmy-home/pulls/109
Reviewed-by: Alexander Whitestone <alexander@alexanderwhitestone.com>
2026-03-30 21:34:22 +00:00
Alexander Whitestone
9c1dd7fff7 chore: check in all local work — uniwizard, briefings, reports, evennia, morrowind, scripts, specs, training data, angband MCP, diagrams, twitter archive, wizards
- Resolve decisions.md merge conflict (keep both Codex boundary + Ezra/Bezalel entries)
- Update .gitignore: protect bare secret files, exclude venvs and nexus-localhost
- Add uniwizard tools (mention watcher, adaptive prompt router, self-grader, classifiers)
- Add briefings, good-morning reports, production reports
- Add evennia world scaffold and training data
- Add angband and morrowind MCP servers
- Add diagrams, specs, test results, overnight loop scripts
- Add twitter archive insights and media metadata
- Add wizard workspaces (allegro, nahshon)
2026-03-30 17:18:09 -04:00
83e400d4aa [KimiClaw] Uniwizard routing modules — quality scorer, task classifier, self-grader (#107)
Co-authored-by: Kimi Claw <kimi@timmytime.ai>
Co-committed-by: Kimi Claw <kimi@timmytime.ai>
2026-03-30 20:15:36 +00:00
Allegro
24bab6f882 cleanup: remove push test 2026-03-30 17:18:33 +00:00
Allegro
100e3fc416 test: allegro push access 2026-03-30 17:18:33 +00:00
Allegro
8494ee344b cleanup: remove push test 2026-03-30 17:17:19 +00:00
Allegro
9a100be8d1 test: allegro push access 2026-03-30 17:17:11 +00:00
Allegro
00d887c4fc [REPORT] Local Timmy deployment report — #103 #85 #83 #84 #87 complete 2026-03-30 16:57:51 +00:00
Allegro
3301c1e362 [DOCS] Local Timmy README with complete usage guide 2026-03-30 16:56:57 +00:00
Allegro
788879b0cb [#85 #87] Prompt cache warming + knowledge ingestion pipeline for local Timmy 2026-03-30 16:56:15 +00:00
Allegro
748e8adb5e [#83 #84] Evennia world shell + tool bridge — Workshop, Library, Observatory, Forge, Dispatch rooms with full command set 2026-03-30 16:54:30 +00:00
Allegro
ac6cc67e49 [#103] Multi-tier caching layer for local Timmy — KV, Response, Tool, Embedding, Template, HTTP caches 2026-03-30 16:52:53 +00:00
Allegro
b0bb8a7c7d [DOCS] Allegro tempo-and-dispatch report — final pass complete 2026-03-30 16:47:12 +00:00
Allegro
c134081f3b [#94] Add quick reference and deployment checklist for production 2026-03-30 16:46:35 +00:00
Allegro
0d8926bb63 [#94] Add operations dashboard and setup script for Uni-Wizard v4 2026-03-30 16:45:35 +00:00
Allegro
11bda08ffa Add PR description for Uni-Wizard v4 2026-03-30 16:44:29 +00:00
Allegro
be6f7ef698 [FINAL] Uni-Wizard v4 Complete — Four-Pass Architecture Summary 2026-03-30 16:41:28 +00:00
Allegro
bdb8a69536 [DOCS] Allegro Lane v4 — Narrowed Definition
Explicit definition of Allegro narrowed lane:

**Primary (80%):**
- Gitea Bridge (40%): Poll issues, create PRs, comment on status
- Hermes Bridge (40%): Cloud model access, telemetry streaming to Timmy

**Secondary (20%):**
- Redundancy/Failover (10%): Health checks, VPS takeover, Syncthing mesh
- Uni-Wizard Operations (10%): Service monitoring, restart on failure

**Explicitly NOT:**
- Make sovereign decisions (Timmy decides)
- Authenticate as Timmy (identity remains local)
- Store long-term memory (forward to Timmy)
- Work without connectivity (value is cloud bridge)

**Success Metrics:**
- Issue triage: < 5 min
- PR creation: < 2 min
- Telemetry lag: < 100ms
- Uptime: 99.9%
- Failover: < 30s

Allegro provides connectivity, redundancy, and dispatch.
Timmy retains sovereignty, decision-making, and memory.
2026-03-30 16:40:35 +00:00
Allegro
31026ddcc1 [#76-v4] Final Uni-Wizard Architecture — Production Integration
Complete four-pass evolution to production-ready architecture:

**Pass 1 → Foundation:**
- Tool registry, basic harness, 19 tools
- VPS provisioning, Syncthing mesh
- Health daemon, systemd services

**Pass 2 → Three-House Canon:**
- Timmy (Sovereign), Ezra (Archivist), Bezalel (Artificer)
- Provenance tracking, artifact-flow discipline
- House-aware policy enforcement

**Pass 3 → Self-Improvement:**
- Pattern database with SQLite backend
- Adaptive policies (auto-adjust thresholds)
- Predictive execution (success prediction)
- Hermes bridge for shortest-loop telemetry
- Learning velocity tracking

**Pass 4 → Production Integration:**
- Unified API: `from uni_wizard import Harness, House, Mode`
- Three modes: SIMPLE / INTELLIGENT / SOVEREIGN
- Circuit breaker pattern for fault tolerance
- Async/concurrent execution support
- Production hardening (timeouts, retries)

**Allegro Lane Definition:**
- Narrowed to: Gitea integration, Hermes bridge, redundancy/failover
- Provides: Cloud connectivity, telemetry streaming, issue routing
- Does NOT: Make sovereign decisions, authenticate as Timmy

**Files:**
- v3/: Intelligence engine, adaptive harness, Hermes bridge
- v4/: Unified API, production harness, final architecture

Total: ~25KB architecture documentation + production code
2026-03-30 16:39:42 +00:00
Allegro
fb9243153b [#76-v2] Uni-Wizard v2 — Three-House Architecture with Ezra, Bezalel, and Timmy Integration
Complete second-pass refinement integrating all wizard house contributions:

**Three-House Architecture:**
- Ezra (Archivist): Read-before-write, evidence over vibes, citation discipline
- Bezalel (Artificer): Build-from-plans, proof over speculation, test discipline
- Timmy (Sovereign): Final judgment, telemetry, sovereignty preservation

**Core Components:**
- harness.py: House-aware execution with policy enforcement
- router.py: Intelligent task routing to appropriate house
- task_router_daemon.py: Full three-house Gitea workflow
- tests/test_v2.py: Comprehensive test suite

**Key Features:**
- Provenance tracking with content hashing
- House-specific policy enforcement
- Sovereignty telemetry logging
- Cross-house workflow orchestration
- Evidence-level tracking per execution

Honors canon from specs/timmy-ezra-bezalel-canon-sheet.md:
- Distinct house identities
- No authority blending
- Artifact-flow unidirectional
- Full provenance and telemetry
2026-03-30 15:59:47 +00:00
276f2c32dd Merge pull request '[#79] JSONL Scorecard Generator - overnight loop analysis' (#102) from feature/scorecard-generator into main 2026-03-30 15:58:11 +00:00
973f3bbe5a Merge pull request '[#76 #77 #78] Uni-Wizard Architecture - Single harness, all APIs' (#100) from feature/uni-wizard into main 2026-03-30 15:56:57 +00:00
Allegro
5f549bf1f6 [#79] JSONL Scorecard Generator for overnight loop analysis
Generates comprehensive reports from overnight loop JSONL data:

**Features:**
- Reads ~/shared/overnight-loop/*.jsonl
- Produces JSON and Markdown reports
- Pass/fail statistics with pass rates
- Duration analysis (avg, median, p95)
- Per-task breakdowns
- Hourly timeline trends
- Error pattern analysis
- Auto-generated recommendations

**Reports:**
- ~/timmy/reports/scorecard_YYYYMMDD.json (structured)
- ~/timmy/reports/scorecard_YYYYMMDD.md (human-readable)

**Usage:**
  python uni-wizard/scripts/generate_scorecard.py

Closes #79
2026-03-30 15:50:06 +00:00
Allegro
6685388357 [#76 #77 #78] Uni-Wizard Architecture - Single harness for all APIs
Complete uni-wizard implementation with unified tool registry:

**Core Architecture:**
- harness.py - Single entry point for all capabilities
- tools/registry.py - Central tool registry with schema generation
- Elegant routing: One harness, infinite capabilities

**Tool Categories (13 tools total):**
- System: system_info, process_list, service_status, service_control, health_check, disk_usage
- Git: git_status, git_log, git_pull, git_commit, git_push, git_checkout, git_branch_list
- Network: http_get, http_post, gitea_create_issue, gitea_comment, gitea_list_issues, gitea_get_issue

**Daemons:**
- health_daemon.py - HTTP endpoint on :8082, writes to ~/timmy/logs/health.json
- task_router.py - Polls Gitea for assigned issues, routes to tools, posts results

**Systemd Services:**
- timmy-health.service - Health monitoring daemon
- timmy-task-router.service - Gitea task router daemon

**Testing:**
- test_harness.py - Exercises all tool categories

**Design Principles:**
- Local-first: No cloud dependencies
- Self-healing: Tools can restart, reconnect, recover
- Unified: One consciousness, all capabilities

Closes #76, #77, #78
2026-03-30 15:47:21 +00:00
a95da9e73d Merge pull request '[#74] Syncthing mesh setup for VPS fleet' (#80) from feature/syncthing-setup into main 2026-03-30 15:45:04 +00:00
5e8380b858 Merge pull request '[#75] VPS provisioning script for sovereign Timmy deployment' (#81) from feature/vps-provisioning into main 2026-03-30 15:30:04 +00:00
Allegro
266d6ec008 [#75] Add VPS provisioning script for sovereign Timmy deployment
- scripts/provision-timmy-vps.sh: Full automated provisioning
- configs/llama-server.service: Inference systemd unit
- configs/timmy-agent.service: Agent harness systemd unit
- docs/VPS_SETUP.md: Setup and troubleshooting guide

Installs llama.cpp, Hermes-3 model, Python venv, firewall rules.
Configures localhost-only inference on port 8081.
2026-03-30 15:22:34 +00:00
Allegro
eadb1eff25 [#74] Add Syncthing mesh setup script and documentation
- Add scripts/setup-syncthing.sh for automated VPS provisioning
- Add docs/SYNCTHING.md with architecture and troubleshooting
- Configure systemd service for auto-start
- Set web UI to localhost-only for security

Allegro VPS: Device ID MK6G5KV-VLTY7KS-FJ6ZN63-RV5ZIRG-7C2GSRS-OSJUDWA-IC6A7UP-NIGMQAE
Ezra VPS: Awaiting SSH access for setup completion
2026-03-30 15:20:01 +00:00