Nightly Mine
Scan recent session transcripts for unmined context.
Process
- Find session transcripts from the last 24 hours:
find "$ALIVE_WORLD_ROOT/.alive/_squirrels" -name "*.yaml" -mtime -1 2>/dev/null
-
For each session entry:
- Read the YAML for
transcript:path - If transcript exists and hasn't been mined, read it
- Extract: decisions, tasks, people context, insights, quotes
- Read the YAML for
-
Group extractions by destination walnut
-
Write to
.alive/stash.jsonwith routing suggestions (don't route directly)
Output
Mined [N] sessions, extracted [M] items:
[N] decisions
[N] tasks
[N] people updates
[N] insights
[N] quotes
Items added to stash for routing via alive-stash-router.
If nothing found: [SILENT]
Rules
- Extract, don't route. Items go to stash for human approval.
- Mark sessions as mined (touch a
.minedflag file alongside the YAML) - Skip sessions that are already mined
- Skip sessions shorter than 5 turns (likely trivial)
- Be conservative -- only extract clear decisions and explicit tasks, not inferences