Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.5.3 - 2026-04-20

### Changed

- Generated Munin umbrella skill now includes a step 0 that blocks auto-running `recall`, `doctor`, `proactivity`, or other status commands on a bare Munin invocation with no substantive ask. Agents stop and ask the user what to check instead.

## 0.5.2 - 2026-04-20

### Added
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "munin-memory"
version = "0.5.2"
version = "0.5.3"
edition = "2021"
autobins = false
authors = ["John McKeown"]
Expand Down
70 changes: 69 additions & 1 deletion src/core/proactivity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ fn evaluate_decision(
} else if !interactive_desktop_available() {
reasons.push("desktop_session_unavailable".to_string());
ProactivityDecisionOutcome::Suppressed
} else if strategy_bootstrap_requested {
} else if strategy_bootstrap_requested && recommend_report.nudges.is_empty() {
reasons.push("bootstrap_strategy_scope".to_string());
ProactivityDecisionOutcome::Deferred
} else if recommend_report.continuity.active
Expand Down Expand Up @@ -2728,6 +2728,74 @@ mod tests {
);
}

#[test]
fn bootstrap_flag_does_not_defer_when_strategy_has_interrupt_nudges() {
let temp = tempfile::tempdir().expect("tempdir");
let runtime = RuntimeContext {
config: sample_config(),
scope_id: "sitesorted-business".to_string(),
provider: ProactivityProvider::Claude,
project_path: PathBuf::from("C:/Users/OEM/Projects/sitesorted"),
schedule_local: "08:00".to_string(),
max_spawns_per_day: 1,
stale_claim_minutes: 90,
paths: ProactivityPaths {
queue_dir: temp.path().join("queue"),
results_dir: temp.path().join("results"),
briefs_dir: temp.path().join("briefs"),
state_dir: temp.path().join("state"),
},
};
let files = FileSet {
job_id: "morning-sitesorted-business-claude-2026-04-20".to_string(),
local_date: "2026-04-20".to_string(),
pending_path: temp.path().join("queue").join("job.json"),
claim_path: temp.path().join("queue").join("job.processing.json"),
result_path: temp.path().join("results").join("job.result.json"),
decision_path: temp.path().join("results").join("job.decision.json"),
brief_path: temp.path().join("briefs").join("job.md"),
launch_instructions_path: temp.path().join("briefs").join("job.launch.md"),
completed_path: temp.path().join("state").join("completed.json"),
heartbeat_path: temp.path().join("state").join("heartbeat"),
};
let mut report = fallback_recommend_report("sitesorted-business", "test".to_string());
report.continuity.active = false;
report.nudges.push(StrategicNudge {
task: "Address red-state `Revenue (NZD)`".to_string(),
item_id: Some("kpi-revenue-nzd".to_string()),
item_kind: "kpi".to_string(),
supports: Vec::new(),
why_now: "Current value is below target.".to_string(),
evidence: vec!["Current value: 0".to_string()],
evidence_freshness: "fresh".to_string(),
confidence: "high".to_string(),
interrupt_level: "interrupt".to_string(),
suppression_reason: None,
expected_effect: "Move the KPI toward target.".to_string(),
});
let decision = evaluate_decision(
&runtime,
&files,
true,
&report,
&ProactivityCompletedIndex {
schema_version: "test".to_string(),
records: Vec::new(),
},
)
.expect("decision");

assert_eq!(
decision.outcome,
ProactivityDecisionOutcome::QueueApproval,
"reasons: {:?}",
decision.reasons
);
assert!(decision
.reasons
.contains(&"approval_queue_ready".to_string()));
}

#[test]
fn friction_fix_to_nudge_queues_active_high_impact_work() {
let fix = MemoryOsFrictionFix {
Expand Down
Loading