Reads vault/Done/ files from the past 7 days, reads vault/Logs/ for error counts and watcher uptime, reads vault/Business_Goals.md for targets, queries Odoo ERP for financial data (monthly summary, outstanding invoices, active clients), and writes vault/Accounting/Weekly_Audit_<date>.md with a structured summary. Run every Sunday night or on demand.
Generate a structured weekly audit of the AI Employee vault and business health.
vault/Company_Handbook.md — confirm rulesvault/Accounting/ directory exists — if not, note it will be createdList all files in vault/Done/ (skip .gitkeep).
For each file, check the filename prefix timestamp or the file's completed_at frontmatter.
Include files modified or created within the past 7 days.
Count and categorise:
file_processed — items from Inbox that were processedplan_completed — PLAN_*.md files moved to Doneemail_sent / email_drafted — email actions completedsocial_post — post_linkedin / post_facebook / post_instagram / post_twitter actionsalert_resolved — ALERT_*.md files moved to Doneother — anything elseCount items still open (excluding .gitkeep). These are pending items.
List all YYYY-MM-DD.json log files in vault/Logs/ that fall within the past 7 days.
For each log file, count:
"result": "error" — error count"action_type": "watcher_started" — watcher restarts"action_type": "watcher_circuit_open" — circuit breakers tripped"action_type": "watcher_crashed" — crashesIdentify which watchers had issues (FileSystemWatcher, GmailWatcher, LinkedInWatcher, FacebookWatcher, InstagramWatcher, TwitterWatcher).
For each watcher, determine:
HEALTHY (no circuit trips) | DEGRADED (some crashes, circuit closed) | DOWN (circuit OPEN)The odoo-mcp server must be running (registered in .mcp.json). Call these tools:
get_monthly_summary with year and month set to the current month.
Extract: revenue, expenses, net, invoice_count.
get_invoices with no state filter (returns all invoices, default limit 20).
From the results, compute:
amount_total where state = "draft"state = "posted"get_partners with type = "customer".
Extract: total count of active customers.
Identify the top client by summing amount_total across their posted invoices.
If the odoo-mcp tool is not available (MCP server not connected), note "Odoo data unavailable — MCP server not connected" and continue without it.
Extract:
<date> = today's date in YYYY-MM-DD format.
Use this template:
---
audit_date: <YYYY-MM-DD>