mureo learning

From logly/mureo · View interactive version

mureo learning is an AI agent skill from the GitHub repository logly/mureo. Evidence-based marketing decision framework: statistical thinking for AI agents operating ad accounts.

How to use this skill

Skill file

Evidence-Based Marketing Decisions

A decision framework for AI agents managing marketing accounts through mureo. This skill teaches agents to distinguish signal from noise, avoid premature optimization, and only commit to strategy changes backed by sufficient evidence.

Why This Matters

Marketing data is noisy. A campaign's CPA can swing 30% day-to-day from random variation alone. Without statistical rigor, agents will:

The antidote: observe, wait, verify, then act.

The Evidence Lifecycle

Every action that modifies a campaign enters this lifecycle. The agent tracks it via action_log entries in STATE.json.

Action taken (e.g., add negative keywords)
    │
    ├── Record observation_due + a baseline (metrics_at_action) in action_log
    │
    ▼
[OBSERVING]  ── Do NOT draw conclusions yet
    │             Wait for the observation window to pass
    │
    ├── Observation window elapsed, collect current metrics
    │
    ▼
[CANDIDATE]  ── "This looks like it worked" or "This didn't help"
    │             But one observation is NOT enough
    │
    ├── Wait for a second observation period to confirm
    │
    ▼
[VALIDATED]  ── Consistent improvement across 2+ observation periods
    │             NOW you can recommend a strategy change
    │
    ▼
[APPLIED]    ── User approved, STRATEGY.md updated

At any stage:
[REJECTED]   ── Not significant, contradicted, or confounded by concurrent actions

Critical rule: OBSERVING and CANDIDATE findings are NOT actionable. Only VALIDATED insights should influence strategy.

Observation Windows

Different actions need different wait times before evaluation:

| Action Type | Observation Window | Why |

|------------|-------------------|-----|

| Budget change (>10%) | 7 days | Where a budget step makes the platform re-learn (Google Ads Smart Bidding, Meta CBO), that takes ~7 days |

| Keyword addition/removal | 14 days | Need enough impressions/clicks to evaluate |

| Negative keyword addition | 14 days | Impact on CPA unfolds gradually |

| Creative/ad copy change | 14 days | Ad rotation needs time to gather data |

| Bid strategy change | 21 days | Full learning period on the platforms that have one — Google Ads Smart Bidding, Meta |

| Audience/targeting change | 14 days | Need sufficient reach data |

| Operation Mode change | 21 days | Compound effects across multiple campaigns |

Do NOT evaluate an action before its observation window has passed.

The why column is platform-conditional; the window is not. A platform that does not select delivery by a bid has no learning phase to wait out, but its numbers still need the same time to accumulate — keep the window and drop the learning-reset explanation, rather than narrating a re-learn it cannot have.

Minimum Sample Sizes

Before drawing any conclusion about a metric change, verify sufficient data:

| Metric | Minimum Sample | What Counts as "Sample" |

|--------|---------------|------------------------|

| CPA | 30 conversions (before) + 30 (after) | Each conversion is a sample point |

| CTR | 1,000 impressions (before) + 1,000 (after) | Each impression is a sample point |

| CVR | 200 clicks (before) + 200 (after) | Each click is a sample point |

| ROAS | 30 conversions with revenue | Each conversion is a sample point |

| Impression share | 7 days of daily data | Each day is a sample point |

If the sample size is insufficient, the finding stays in OBSERVING. Do NOT promote it.

The outcome evaluator enforces these floors itself. mureo_outcome_evaluate and the automatic observation closure judge ONE primary metric (the decision's expected effect marked primary, else the campaign's bidding target, else CPA when both sides have conversions) and only when BOTH sides reach the floor for it, on the raw counts:

| Primary metric | Gated on | Default floor | ## Guardrails key |

|---|---|---|---|

| cpa / cpl / roas / conversions | conversions | 30 | outcome_min_conversions |

| ctr / cpm | impressions | 1,000 | outcome_min_impressions |

| cpc / cvr | clicks | 200 | outcome_min_clicks |

Below the floor the verdict is inconclusive with reason: insufficient_volume (volume_unknown when the count is missing; zero_baseline when the baseline is zero). The noise band (default ±10%) is outcome_noise_pct. Count metrics (conversions, clicks, impressions, spend) are compared per day, so a 7-day baseline against a 30-day snapshot is not read as growth. The automatic observation closure records such a result as inconclusive and closes the observation; it is not "no effect". To judge the change anyway, re-evaluate it manually with mureo_outcome_evaluate over a longer window, once both sides reach the floor.

Declare the primary effect. A single expected effect is primary by itself. When you declare several, mark exactly one "primary": true — the metric the change is meant to move ([{"metric": "spend", "direction": "down", "primary": true}, {"metric": "conversions", "direction": "hold"}] for a budget cut that must not cost conversions); the others are reference rows. A declaration of several without exactly one primary is refused with expected_primary_required. Use "direction": "hold" for "must not move": it is judged held inside the noise band and regressed outside it. A target decides when given — reaching it is improved even inside the band, and a move the right way that misses it is inconclusive (target_not_reached). A target on a count metric (spend, conversions, clicks, impressions) is the total over the evaluation window, not a per-day figure.

How to Evaluate an Outcome

When the observation window for an action has passed:

Step 1: Collect Before/After Metrics

metrics_at_action (recorded when action was taken):
  CPA: 5,200  |  Conversions: 45  |  Clicks: 1,200  |  CTR: 3.2%

metrics_now (collected after observation window):
  CPA: 4,100  |  Conversions: 58  |  Clicks: 1,400  |  CTR: 3.5%

Step 2: Check Sample Size

Step 3: Assess Magnitude and Consistency

Ask these questions:

  1. Is the change large enough to matter?
  1. Is the change consistent across the observation period?
  1. Were there confounding factors?
  1. Does the direction match the hypothesis?

Step 4: Classify the Finding

| Condition | Classification |

|-----------|---------------|

| Sample size insufficient | Stay in OBSERVING |

| Observation window not yet passed | Stay in OBSERVING |

| Change < 5% | REJECTED (noise) |

| Change 5-15%, consistent, no confounders | CANDIDATE → wait for 2nd period |

| Change > 15%, consistent, no confounders | CANDIDATE → wait for 2nd period |

| CANDIDATE confirmed in 2nd observation period | VALIDATED |

| CANDIDATE contradicted in 2nd observation period | REJECTED |

| Multiple concurrent actions on same campaign | Flag as confounded, extend window 2x |

Step 5: Report with Confidence Level

When reporting findings, always state the evidence level:

GOOD (high confidence):
  "CPA improved 18% (5,200 → 4,100) after negative keyword cleanup.
   Observed over 14 days with 58 conversions. Consistent daily trend.
   Confirmed across 2 observation periods. [VALIDATED]"

BAD (jumping to conclusions):
  "CPA improved! The keyword changes are working great!"
   (No sample size, no observation window, no consistency check.)

Noise Guards for Each Command

/daily-check

/rescue

/search-term-cleanup, /creative-refresh, /budget-rebalance

/goal-review

/weekly-report

/competitive-scan

Recording Outcomes in action_log

When executing any write operation, record the context needed for future evaluation. On a campaign-level entry, omit metrics_at_action: mureo fills it from the campaign's STATE.json metrics, period and fetched_at included. Passed by hand, it is that campaign's metrics from mureo_state_get unchanged; figures the snapshot lacks (MTD spend, a segment) still take canonical names (../_mureo-strategy/SKILL.md → Performance Metrics) and a period:

{
  "timestamp": "2026-04-01T10:30:00+09:00",
  "action": "Added 15 negative keywords",
  "platform": "google_ads",
  "campaign_id": "12345",
  "command": "/search-term-cleanup",
  "summary": "Excluded informational queries misaligned with Persona",
  "metrics_at_action": {
    "cpa": 5200,
    "conversions": 45,
    "clicks": 1200,
    "impressions": 37500,
    "ctr": 0.032,
    "spend": 234000,
    "period": "LAST_30_DAYS"
  },
  "observation_due": "2026-04-15"
}

If the append answers baseline.source: "none" with a reason (baseline_stale, no_current_metrics, current_metrics_undated, platform_not_in_state, campaign_not_in_state), nothing was filled: append the entry again with the campaign's figures from mureo_state_get passed as metrics_at_action.

Which metrics to record by hand depends on the action type:

| Action Type | Key Metrics to Record |

|------------|----------------------|

| Budget change | spend, impressions, clicks, conversions, cpa |

| Keyword change | impressions, clicks, conversions, cpa, ctr |

| Creative change | impressions, clicks, ctr, conversions, cpa |

| Targeting change | impressions, clicks, conversions, cpa, reach |

| Bid strategy change | conversions, cpa, spend — plus impression_share on Google Ads, which reports it. impression_share is NOT in the canonical metric vocabulary (../_mureo-strategy/SKILL.md → Performance Metrics): record it in the action_log entry only, never as a STATE.json metric |

Consulting Past Evidence

Before proposing any action, check the action_log for:

  1. Pending observations: Actions whose observation_due has not passed. Do not stack changes on the same campaign.
  2. Past outcomes: Actions whose observation_due has passed. Evaluate and report the result.
  3. Patterns: If a type of action has been VALIDATED before (e.g., "negative keyword cleanup consistently improves CPA by 10-20%"), reference it when proposing the same action again.
  4. Failures: If a type of action was previously REJECTED (e.g., "device bid adjustments had no significant impact"), note this when the same action is proposed.

Anti-Patterns to Avoid

| Anti-Pattern | Why It's Bad | What to Do Instead |

|-------------|-------------|-------------------|

| "CPA dropped today, the change worked!" | One day is noise | Wait for the full observation window |

| Reverting a change after 2 days | Not enough data | Respect the observation window |

| Making 5 changes at once | Cannot attribute outcomes | Make one change, observe, then make the next |

| "Conversions went up 50%!" (from 2 to 3) | Tiny sample size | Check minimum sample requirements |

| Ignoring seasonality | External factors confound | Note day-of-week and seasonal patterns |

| Strategy update after one good week | One period insufficient | Require 2 consistent observation periods |

| Never updating strategy | Analysis paralysis | Once VALIDATED, commit to the learning |

Summary

1. Every write action → record observation_due + a baseline (metrics_at_action, filled when omitted)
2. Before the window passes → DO NOT evaluate, DO NOT reverse
3. After the window passes → collect current metrics, check sample size
4. Sufficient data + meaningful change → CANDIDATE
5. Confirmed in 2nd period → VALIDATED → recommend strategy update
6. Not confirmed → REJECTED → document and move on

Be patient. Be rigorous. Let the data speak — but only when it has enough to say.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.