[Evolution] Daily rumination script #14

Closed
opened 2026-03-10 20:50:47 +00:00 by Mark · 2 comments
Owner

Automated promotion/demotion of capabilities.

Functionality

  • Scan experimental capabilities
  • Promote if > 100 calls and > 0.95 success
  • Demote stable if unused > 14 days
  • Replay sample of history for opportunities
  • Update registry

Schedule

  • Cron: 0 3 * * * (3am daily)

Files

  • evolution/promote.py (enhance)
  • logs/rumination.log

See specs/optimization-constraints.md

Automated promotion/demotion of capabilities. ## Functionality - Scan experimental capabilities - Promote if > 100 calls and > 0.95 success - Demote stable if unused > 14 days - Replay sample of history for opportunities - Update registry ## Schedule - Cron: 0 3 * * * (3am daily) ## Files - evolution/promote.py (enhance) - logs/rumination.log See specs/optimization-constraints.md
Author
Owner

Phase Dependency Mapping

Linked to Phase Tracker: #28 (Phase 1: Evolution)

Prerequisites:

  • #10 (Intent classification bone function) - needed to categorize work
  • #12 (Writer capability) - required for rumination output
  • #8 (Integration test) - ensures end-to-end flow works

Blocks: N/A - leaf feature for Phase 1

Acceptance Criteria:

  • Daily cron triggers rumination job
  • Successfully processes previous day's ledger entries
  • Outputs improvement suggestions to dedicated channel
  • Integrates with mesh improvement workflow

Estimated Complexity: Medium (3-5 days)
Priority: P2 (after Phase 0 MVP stable)

## Phase Dependency Mapping **Linked to Phase Tracker:** #28 (Phase 1: Evolution) **Prerequisites:** - #10 (Intent classification bone function) - needed to categorize work - #12 (Writer capability) - required for rumination output - #8 (Integration test) - ensures end-to-end flow works **Blocks:** N/A - leaf feature for Phase 1 **Acceptance Criteria:** - Daily cron triggers rumination job - Successfully processes previous day's ledger entries - Outputs improvement suggestions to dedicated channel - Integrates with mesh improvement workflow **Estimated Complexity:** Medium (3-5 days) **Priority:** P2 (after Phase 0 MVP stable)
Mark closed this issue 2026-03-14 20:17:29 +00:00
Author
Owner

✅ COMPLETED - Phase 1 Evolution

Implementation Summary:

  • Migrated from JSON to SQLite ledger (MeshLedger)
  • Capability metadata stored in ledger tables
  • Metrics derived from agent/artifact execution history
  • Promotion: >100 calls AND >0.95 success rate
  • Demotion: >14 days unused (checks last_executed)
  • Replays 50 recent artifacts for optimization opportunities
  • Logs to logs/rumination.log with full details

Cron Schedule:

0 3 * * * cd /path/to/mesh-seed && python evolution/promote.py --quiet

Files Changed:

  • evolution/promote.py (SQLite integration, logging, cron mode)
  • tests/evolution/test_promote.py (new)

Verification:

pytest tests/evolution/test_promote.py -v
# Tests passing (promotion, demotion, ledger integration)

Closed as part of Phase 1 completion.

## ✅ COMPLETED - Phase 1 Evolution **Implementation Summary:** - Migrated from JSON to SQLite ledger (MeshLedger) - Capability metadata stored in ledger tables - Metrics derived from agent/artifact execution history - Promotion: >100 calls AND >0.95 success rate - Demotion: >14 days unused (checks last_executed) - Replays 50 recent artifacts for optimization opportunities - Logs to logs/rumination.log with full details **Cron Schedule:** ```bash 0 3 * * * cd /path/to/mesh-seed && python evolution/promote.py --quiet ``` **Files Changed:** - evolution/promote.py (SQLite integration, logging, cron mode) - tests/evolution/test_promote.py (new) **Verification:** ```bash pytest tests/evolution/test_promote.py -v # Tests passing (promotion, demotion, ledger integration) ``` **Closed as part of Phase 1 completion.**
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/mesh-seed#14
No description provided.