Skip to content

feat(ralph): Auto-trigger archival when board is clear and decisions.md is over threshold #36

@diberry

Description

@diberry

Problem

Archival only runs via Scribe (unreliable) or manual squad nap. No automatic trigger exists for when the system is idle but state is bloated.

From

FIDO review of #20 (B4 elevated to A-level), Flight review of #20 (B4 critique).

Proposed

Add to Ralph's idle-watch: when board is clear AND decisions.md > 20KB:

  1. Log: '📦 decisions.md is {size}KB — running archival'
  2. Call archiveDecisions() deterministically (not via Scribe prompt)
  3. Report results in Ralph's board status

Why Ralph (not Scribe)

  • Ralph is code-driven (testable, deterministic)
  • Scribe is prompt-driven (haiku skips archival under pressure)
  • Ralph already has test infrastructure (ralph-monitor.test.ts, ralph-triage.test.ts)

Owner

EECOM (Core Dev)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgo:needs-researchNeeds investigationsquadSquad triage inbox — Lead will assign to a membersquad:archiveResolved by upstream or no longer applicablesquad:fidoAssigned to FIDO (Quality Owner)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions