@adaptic/maestro 1.1.7 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/init-maestro.md +502 -260
- package/README.md +47 -2
- package/bin/maestro.mjs +1 -1
- package/docs/guides/agents-observe-setup.md +64 -0
- package/docs/guides/ccxray-diagnostics.md +65 -0
- package/docs/guides/claude-mem-setup.md +79 -0
- package/docs/guides/claude-pace-setup.md +56 -0
- package/docs/guides/claudraband-sessions.md +98 -0
- package/docs/guides/clawteam-swarm.md +116 -0
- package/docs/guides/code-review-graph-setup.md +86 -0
- package/docs/guides/email-setup.md +399 -0
- package/docs/guides/media-generation-setup.md +349 -0
- package/docs/guides/outbound-governance-setup.md +438 -0
- package/docs/guides/pdf-generation-setup.md +315 -0
- package/docs/guides/poller-daemon-setup.md +550 -0
- package/docs/guides/rag-context-setup.md +459 -0
- package/docs/guides/self-optimization-pattern.md +82 -0
- package/docs/guides/slack-setup.md +350 -0
- package/docs/guides/twilio-subaccounts-setup.md +223 -0
- package/docs/guides/voice-sms-setup.md +698 -0
- package/docs/guides/webhook-relay-setup.md +349 -0
- package/docs/guides/whatsapp-setup.md +282 -0
- package/docs/runbooks/mac-mini-bootstrap.md +21 -0
- package/package.json +2 -1
- package/plugins/maestro-skills/plugin.json +16 -0
- package/plugins/maestro-skills/skills/agents-observe.md +110 -0
- package/plugins/maestro-skills/skills/ccxray-diagnostics.md +91 -0
- package/plugins/maestro-skills/skills/claude-pace.md +61 -0
- package/plugins/maestro-skills/skills/code-review-graph.md +99 -0
- package/scaffold/CLAUDE.md +64 -0
- package/scaffold/config/agent.ts.example +2 -1
- package/scaffold/config/caller-id-map.yaml +46 -0
- package/scaffold/config/known-agents.json +35 -0
- package/scripts/daemon/classifier.mjs +264 -50
- package/scripts/daemon/dispatcher.mjs +109 -5
- package/scripts/daemon/launchd-wrapper-generic.sh +96 -0
- package/scripts/daemon/launchd-wrapper-slack-events.sh +37 -0
- package/scripts/daemon/launchd-wrapper.sh +91 -0
- package/scripts/daemon/lib/session-router.mjs +274 -0
- package/scripts/daemon/lib/session-router.test.mjs +295 -0
- package/scripts/daemon/prompt-builder.mjs +51 -11
- package/scripts/daemon/responder.mjs +234 -19
- package/scripts/daemon/session-lock.mjs +194 -0
- package/scripts/daemon/sophie-daemon.mjs +16 -2
- package/scripts/email-signature.html +20 -4
- package/scripts/local-triggers/generate-plists.sh +62 -10
- package/scripts/media-generation/README.md +2 -0
- package/scripts/pdf-generation/README.md +2 -0
- package/scripts/poller/imap-client.mjs +4 -2
- package/scripts/poller/slack-poller.mjs +126 -59
- package/scripts/poller/trigger.mjs +12 -1
- package/scripts/setup/init-agent.sh +91 -1
- package/scripts/setup/install-dev-tools.sh +150 -0
- package/scripts/spawn-session.sh +21 -6
- package/workflows/continuous/backlog-executor.yaml +141 -0
- package/workflows/daily/evening-wrap.yaml +41 -1
- package/workflows/daily/morning-brief.yaml +17 -0
- package/workflows/event-driven/agent-failure-investigation.yaml +137 -0
- package/workflows/event-driven/pr-review.yaml +104 -0
- package/workflows/weekly/engineering-health.yaml +154 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# Weekly Engineering Health Check
|
|
2
|
+
# Runs every Wednesday at 10:00 GST — before the weekly execution review
|
|
3
|
+
# Uses ccxray and code-review-graph for data-driven engineering insights
|
|
4
|
+
|
|
5
|
+
name: engineering-health
|
|
6
|
+
schedule: "0 10 * * 3" # Wednesday 10:00
|
|
7
|
+
timezone: Asia/Dubai
|
|
8
|
+
description: >
|
|
9
|
+
Weekly engineering health assessment. Audits token spend across agent sessions,
|
|
10
|
+
scans codebase architecture for structural drift, and produces an engineering
|
|
11
|
+
health dashboard update. Feeds into the weekly strategic memo.
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
# ── Token budget audit via ccxray ──
|
|
15
|
+
- id: token-budget-audit
|
|
16
|
+
skill: ccxray-diagnostics
|
|
17
|
+
action: weekly-token-audit
|
|
18
|
+
description: >
|
|
19
|
+
Analyse the past week's Claude API token consumption across all agent
|
|
20
|
+
sessions. Identify expensive sessions, cost trends, and optimisation
|
|
21
|
+
opportunities. Uses ccxray historical logs.
|
|
22
|
+
timeout: 300
|
|
23
|
+
inputs:
|
|
24
|
+
time_range: 7d
|
|
25
|
+
log_dir: ~/.ccxray/logs/
|
|
26
|
+
breakdown_by: [agent, workflow, day]
|
|
27
|
+
compare_to: previous_week
|
|
28
|
+
outputs:
|
|
29
|
+
file: outputs/engineering/weekly/{date}/token-audit.md
|
|
30
|
+
summary:
|
|
31
|
+
total_tokens: 0
|
|
32
|
+
total_cost: 0
|
|
33
|
+
most_expensive_agent: ""
|
|
34
|
+
week_over_week_delta: ""
|
|
35
|
+
optimisation_recommendations: []
|
|
36
|
+
|
|
37
|
+
# ── Codebase architecture scan via code-review-graph ──
|
|
38
|
+
- id: architecture-scan
|
|
39
|
+
skill: code-review-graph
|
|
40
|
+
action: architecture-overview
|
|
41
|
+
description: >
|
|
42
|
+
Run tree-sitter structural analysis across key repositories. Detect
|
|
43
|
+
circular dependencies, orphaned exports, and architectural drift from
|
|
44
|
+
the intended design. Compares against previous week's baseline.
|
|
45
|
+
timeout: 600
|
|
46
|
+
parallel_with: token-budget-audit
|
|
47
|
+
inputs:
|
|
48
|
+
repos:
|
|
49
|
+
- path: ~/adapticai/engine
|
|
50
|
+
name: adaptic-engine
|
|
51
|
+
- path: ~/adapticai/backend
|
|
52
|
+
name: adaptic-backend
|
|
53
|
+
- path: ~/maestro
|
|
54
|
+
name: maestro
|
|
55
|
+
checks:
|
|
56
|
+
- circular_dependencies
|
|
57
|
+
- orphaned_exports
|
|
58
|
+
- module_coupling_score
|
|
59
|
+
- public_api_surface_changes
|
|
60
|
+
baseline: outputs/engineering/weekly/latest/architecture-baseline.json
|
|
61
|
+
outputs:
|
|
62
|
+
file: outputs/engineering/weekly/{date}/architecture-scan.md
|
|
63
|
+
baseline_update: outputs/engineering/weekly/{date}/architecture-baseline.json
|
|
64
|
+
summary:
|
|
65
|
+
repos_scanned: 0
|
|
66
|
+
circular_deps_found: 0
|
|
67
|
+
orphaned_exports: 0
|
|
68
|
+
api_surface_changes: []
|
|
69
|
+
|
|
70
|
+
# ── Agent performance profile via agents-observe ──
|
|
71
|
+
- id: agent-performance-review
|
|
72
|
+
skill: agents-observe
|
|
73
|
+
action: weekly-performance-profile
|
|
74
|
+
description: >
|
|
75
|
+
Review agent execution patterns from the past week. Identify slowest
|
|
76
|
+
agents, most-used tools, failure patterns, and efficiency trends.
|
|
77
|
+
Uses agents-observe SQLite historical data.
|
|
78
|
+
timeout: 300
|
|
79
|
+
parallel_with: token-budget-audit
|
|
80
|
+
inputs:
|
|
81
|
+
time_range: 7d
|
|
82
|
+
metrics:
|
|
83
|
+
- agent_duration_distribution
|
|
84
|
+
- tool_call_frequency
|
|
85
|
+
- failure_rate_by_agent
|
|
86
|
+
- bottleneck_tools
|
|
87
|
+
compare_to: previous_week
|
|
88
|
+
outputs:
|
|
89
|
+
file: outputs/engineering/weekly/{date}/agent-performance.md
|
|
90
|
+
summary:
|
|
91
|
+
total_sessions: 0
|
|
92
|
+
avg_session_duration: ""
|
|
93
|
+
failure_rate: ""
|
|
94
|
+
slowest_agent: ""
|
|
95
|
+
most_used_tool: ""
|
|
96
|
+
|
|
97
|
+
# ── Quota trend analysis via claude-pace ──
|
|
98
|
+
- id: quota-trend
|
|
99
|
+
skill: claude-pace
|
|
100
|
+
action: weekly-quota-trend
|
|
101
|
+
description: >
|
|
102
|
+
Analyse quota utilisation patterns over the past week. Identify peak
|
|
103
|
+
usage periods, quota constraint frequency, and capacity planning
|
|
104
|
+
recommendations.
|
|
105
|
+
timeout: 120
|
|
106
|
+
parallel_with: token-budget-audit
|
|
107
|
+
inputs:
|
|
108
|
+
source: logs/workflows/ # Extract quota data from backlog executor logs
|
|
109
|
+
time_range: 7d
|
|
110
|
+
metrics:
|
|
111
|
+
- daily_peak_usage
|
|
112
|
+
- red_zone_incidents
|
|
113
|
+
- deferred_items_count
|
|
114
|
+
outputs:
|
|
115
|
+
file: outputs/engineering/weekly/{date}/quota-trend.md
|
|
116
|
+
|
|
117
|
+
# ── Synthesise engineering health report ──
|
|
118
|
+
- id: synthesise-health-report
|
|
119
|
+
agent: engineering-oversight
|
|
120
|
+
action: produce-engineering-health-report
|
|
121
|
+
description: >
|
|
122
|
+
Synthesise token audit, architecture scan, agent performance, and quota
|
|
123
|
+
trends into a unified engineering health dashboard update and narrative.
|
|
124
|
+
timeout: 300
|
|
125
|
+
depends_on:
|
|
126
|
+
[token-budget-audit, architecture-scan, agent-performance-review, quota-trend]
|
|
127
|
+
inputs:
|
|
128
|
+
components:
|
|
129
|
+
- outputs/engineering/weekly/{date}/token-audit.md
|
|
130
|
+
- outputs/engineering/weekly/{date}/architecture-scan.md
|
|
131
|
+
- outputs/engineering/weekly/{date}/agent-performance.md
|
|
132
|
+
- outputs/engineering/weekly/{date}/quota-trend.md
|
|
133
|
+
dashboard: state/dashboards/engineering-health.yaml
|
|
134
|
+
outputs:
|
|
135
|
+
file: outputs/engineering/weekly/{date}/engineering-health-report.md
|
|
136
|
+
dashboard_update: state/dashboards/engineering-health.yaml
|
|
137
|
+
|
|
138
|
+
# ── Notify ──
|
|
139
|
+
- id: notify-ready
|
|
140
|
+
action: notify
|
|
141
|
+
description: Signal engineering health report is ready for the execution review
|
|
142
|
+
depends_on: [synthesise-health-report]
|
|
143
|
+
inputs:
|
|
144
|
+
channel: slack
|
|
145
|
+
target: "#engineering"
|
|
146
|
+
message: "Weekly engineering health report ready — feeding into execution review."
|
|
147
|
+
|
|
148
|
+
on_failure:
|
|
149
|
+
action: log-and-notify
|
|
150
|
+
message: "Engineering health check failed at step {failed_step}"
|
|
151
|
+
notify: sophie-chief-of-staff
|
|
152
|
+
severity: medium
|
|
153
|
+
|
|
154
|
+
final_output: outputs/engineering/weekly/{date}/engineering-health-report.md
|