Loading...
Loading...
Monitors active goals against current state. Calculates gaps, scores urgency, detects at-risk goals, generates alerts. Reads goals from strategy/goals/active/, computes progress from metrics, outputs prioritized alerts and updates goal status.
npx skill4agent add bellabe/lean-os sys-tracking-goalsstrategy/goals/active/Goals (strategy/goals/active/)
│
▼
Load & Parse
│
▼
Current Values (canvas, threads, external)
│
▼
Gap Calculation
│
▼
Urgency Scoring
│
▼
Achievability Assessment
│
▼
Priority Ranking
│
▼
Alert Generation ──► Dashboard
│
▼
Goal Status Updatesstrategy/goals/active/*.md| Source | Priority | Content |
|---|---|---|
| Primary | Baseline metrics |
| Secondary | Execution progress |
| External data | Tertiary | Real-time values |
absolute_gap = target_value - current_valueabsolute_gap = current_value - target_valuerelative_gap = absolute_gap / target_valuedays_elapsed = today - period_start
daily_velocity = (current - baseline) / days_elapsed
days_remaining = period_end - today
projected_end = current + (daily_velocity × days_remaining)
trajectory_gap = target - projected_endrequired_pace = (target - baseline) / total_days
actual_pace = (current - baseline) / days_elapsed
pace_ratio = actual_pace / required_paceurgency_score = relative_gap × time_pressure × impact_weighttime_pressure = min(1.0, 30 / days_remaining)| Days Remaining | Time Pressure |
|---|---|
| 60+ | 0.5 |
| 30 | 1.0 |
| 14 | 1.0 (capped) |
| 7 | 1.0 (capped) |
| 1 | 1.0 (capped) |
| Category | Default Weight |
|---|---|
| revenue | 1.0 |
| retention | 0.9 |
| activity | 0.7 |
| efficiency | 0.6 |
| content | 0.5 |
| Level | Score Range | Criteria |
|---|---|---|
| critical | > 0.8 | gap > 50% AND days < 7 |
| high | 0.6 - 0.8 | gap > 30% AND days < 14 |
| medium | 0.3 - 0.6 | gap > 20% OR days < 30 |
| low | < 0.3 | gap < 20% AND days > 30 |
| Factor | Weight | Source |
|---|---|---|
| Historical performance | 0.40 | Past goal outcomes |
| Resource availability | 0.30 | Constraint analysis |
| Trajectory analysis | 0.20 | Current velocity |
| External factors | 0.10 | Risk factors |
| Score | Interpretation | Action |
|---|---|---|
| > 0.8 | Achievable | Proceed with plan |
| 0.5 - 0.8 | Stretch | Flag risk, proceed |
| < 0.5 | At risk | Recommend revision |
priority = (impact × 0.40) + (urgency × 0.35) + ((1 - achievability) × 0.25)| Condition | Adjustment |
|---|---|
| Blocking other goals | +0.1 |
| Quick win (small gap, high achievability) | +0.1 |
| Resource constrained | -0.05 |
| Type | Trigger | Content |
|---|---|---|
| gap_alert | Gap exceeds threshold | Goal, current, target, gap, urgency |
| trajectory_warning | Will miss target | Projected end, shortfall, recovery options |
| milestone_alert | Milestone approaching/missed | Milestone date, target, current |
| at_risk_alert | Achievability < 0.5 | Risk factors, revision options |
| achievement_alert | Target reached | Final value, days ahead/behind |
| Urgency | Destination | Escalation |
|---|---|---|
| critical | Immediate notification | Leadership if not acked |
| high | Daily digest | After 24h no action |
| medium | Weekly summary | None |
| low | Dashboard only | None |
artifacts/system/alerts/{alert-id}.md---
alert_id: alert_{type}_{goal_id}_{timestamp}
alert_type: {gap|trajectory|milestone|at_risk|achievement}
goal_id: {goal_id}
urgency_level: {critical|high|medium|low}
generated_at: {YYYY-MM-DD HH:MM}
status: active
---
# Alert: {Goal Name}
## Status
| Metric | Value |
|--------|-------|
| Current | {current_value} |
| Target | {target_value} |
| Baseline | {baseline_value} |
| Gap | {gap_value} ({gap_pct}%) |
## Urgency
| Factor | Value |
|--------|-------|
| Level | {urgency_level} |
| Score | {urgency_score} |
| Days Remaining | {days} |
| Time Pressure | {pressure} |
## Achievability
| Factor | Score |
|--------|-------|
| Overall | {achievability_score} |
| Assessment | {achievable|stretch|at_risk} |
## Trajectory
At current pace: {projected_end} by deadline
Shortfall: {shortfall} ({shortfall_pct}%)
## Recommended Action
**Type:** {action_type}
**Description:** {action_description}
**Expected Impact:** {expected_impact}
## Routing
| Field | Value |
|-------|-------|
| Owner | {accountable} |
| Escalate To | {escalation_target} |
| Ack Deadline | {ack_deadline} |## Tracking
| Field | Value |
|-------|-------|
| Last Checked | {datetime} |
| Current Value | {current} |
| Gap | {gap_value} ({gap_pct}%) |
| Urgency | {level} |
| Achievability | {score} |
| Status | {on_track|behind|at_risk|achieved} |
### Progress History
| Date | Value | Gap | Status |
|------|-------|-----|--------|
| {date_1} | {value_1} | {gap_1} | {status_1} |
| {date_2} | {value_2} | {gap_2} | {status_2} |artifacts/system/goal-dashboard.md---
generated_at: {YYYY-MM-DD HH:MM}
period: {current period}
---
# Goal Dashboard
## Summary
| Status | Count |
|--------|-------|
| Total Goals | {count} |
| On Track | {count} |
| Behind | {count} |
| At Risk | {count} |
| Achieved | {count} |
## By Category
| Category | Goals | Progress | Top Gap |
|----------|-------|----------|---------|
| Revenue | {n} | {pct}% | {goal_id} |
| Activity | {n} | {pct}% | {goal_id} |
| Content | {n} | {pct}% | {goal_id} |
| Efficiency | {n} | {pct}% | {goal_id} |
| Retention | {n} | {pct}% | {goal_id} |
## Critical Alerts
| Goal | Gap | Urgency | Action |
|------|-----|---------|--------|
| {name} | {gap}% | critical | {action} |
## Upcoming Milestones
| Goal | Date | Target | Current | Status |
|------|------|--------|---------|--------|
| {name} | {date} | {target} | {current} | {status} || Frequency | Checks |
|---|---|
| Hourly | Activity goal progress |
| Daily | All gap recalculation, urgency update |
| Weekly | Achievability reassessment, trend analysis |
1. LOAD goals
└── Read strategy/goals/active/*.md
└── Parse frontmatter
2. COLLECT current values
└── Read strategy/canvas/13.metrics.md
└── Read threads/*/5-actions.md for execution data
└── Use provided values if external
3. CALCULATE gaps
└── Absolute gap for each goal
└── Relative gap (percentage)
└── Trajectory gap (projected vs target)
4. SCORE urgency
└── Apply formula: gap × time_pressure × impact
└── Classify into urgency levels
5. ASSESS achievability
└── Check historical performance
└── Validate against constraints
└── Factor in trajectory
6. RANK priorities
└── Apply weighted formula
└── Sort by priority score
7. GENERATE alerts
└── Create alert files for gaps above threshold
└── Write to artifacts/system/alerts/
8. UPDATE goals
└── Add/update tracking section in each goal file
9. UPDATE dashboard
└── Write summary to artifacts/system/goal-dashboard.mdsys-defining-goalssys-decomposing-goalssys-activating-goalsrop-allocatormeta-aggregating-learnings| Trigger | Signal | Action |
|---|---|---|
| New ICP match | High-fit prospect discovered | Add to prospecting |
| Champion identified | Advocate at target account | Accelerate outreach |
| Competitor vulnerability | Customer dissatisfaction signal | Targeted outreach |
| Trigger | Signal | Action |
|---|---|---|
| Deal stalled | No stage change > threshold | Nudge action |
| Lead cooling | Engagement declining | Re-engagement sequence |
| Relationship cooling | Customer touchpoints down | Health check |
| Trigger | Signal | Action |
|---|---|---|
| Rep bandwidth | Capacity below threshold | Assign more leads |
| Budget unspent | Spend rate below plan | Increase or reallocate |
sys-defining-goalssys-decomposing-goalssys-activating-goals