brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
clarion-thesis-monitorMonitor the health of every active thesis in ~/clarion/theses/. For each one — refresh price, recompute Risk Environment from the current regime, check kill conditions (read from the file's status column), aggregate to an Overall score, recommend an action (EXIT / REDUCE / HOLD / ADD), and write the updated scores + history back to the thesis file. Produces…
Independent GitHub snapshot · Automated classification · Original documentation governs
Reads every active thesis from ~/clarion/theses/, scores health, checks kill conditions, and produces an action recommendation per thesis. Updates each file with the new scores and timestamps; appends a History entry when the action changes.
Implements docs/PRINCIPLES.md Principle 2 (Thesis-First, Always) — "a thesis that isn't monitored is just a hope."
User asks any of:
Cadence guidance:
--quick mode (kill condition statuses + price refresh + Risk Environment recompute, no full re-scoring)Default invocation: run with no args to process all active theses.
python /home/workspace/clarion-intelligence-system/skills/clarion-thesis-monitor/scripts/monitor.py
Filters to status: active theses; skips draft, watchlist, closed, killed. (draft is the default status of a freshly scaffolded thesis from clarion-thesis-write — the user promotes to active once the prose is filled in.)
Single-thesis review: if the user asks about one ticker, scope it.
python ... monitor.py --ticker NVDA
Quick mode (daily): skip the full health re-scoring; just check kill conditions, refresh prices, recompute Risk Environment.
python ... monitor.py --quick
Read-only mode: preview the dashboard without writing back to thesis files.
python ... monitor.py --no-write
Pass the dashboard output to the user verbatim. It's already structured (per-thesis action + score, kill alerts at the top).
Surface "Action Items" — if any thesis flips to EXIT or REDUCE, raise it explicitly. The user makes the call; the system does not pull triggers automatically. (docs/PRINCIPLES.md Anti-principle 5.)
| Component | Behavior | Notes |
|---|---|---|
| Valuation Safety | If --current-price provided AND a base_case_fair_value is in the thesis metadata, recomputed. Else carried forward. | Add base_case_fair_value: 480.0 to the thesis metadata block to enable auto-scoring. |
| Business Health | v2: LLM-scored via /zo/ask (full mode only) | Reads the whole thesis; scores growth, margins, competitive position, balance sheet |
| Insider Alignment | v2: LLM-scored via /zo/ask (full mode only) | Insider transactions, comp structure, share count trends |
| Catalyst Proximity | If catalyst_date in metadata, recomputed. Else carried forward. | Add catalyst_date: 2026-08-15 to enable auto-scoring. |
| Thesis Integrity | v2: LLM-scored via /zo/ask (full mode only) | Do the core claims still hold, is evidence current, are kill conditions sharp |
| Risk Environment | Always recomputed | regime × bucket matrix |
LLM scoring (v2) details:
ZO_CLIENT_IDENTITY_TOKEN in the environment (present on Zo). Without it — or on any network / parsing failure — the affected components are carried forward from the previous run, never zero-filled, and a warning is printed to stderr. The system refuses to fabricate health scores.--quick mode never makes LLM calls — dailies stay fast and free./zo/ask call per active thesis per full run. Set CLARION_LLM_SCORES_MODEL (e.g. zo:openai/gpt-5.4-mini) to pin a cheap model for this task; unset, the account's default model is used.MONITOR=python /home/workspace/clarion-intelligence-system/skills/clarion-thesis-monitor/scripts/monitor.py
$MONITOR # all active theses, full mode
$MONITOR --quick # kill checks + Risk Env only
$MONITOR --ticker NVDA # single thesis
$MONITOR --no-write # preview, don't update files
$MONITOR --ticker NVDA --current-price 142.50 # force re-score Valuation Safety
Lead with action items (any EXIT or REDUCE), then the dashboard. Don't bury bad news. The whole point of monitoring is the moments when things degrade.
When a kill condition is triggered, surface it explicitly: "NVDA — kill condition triggered (gross margin < 60% per latest 10-Q). Action is EXIT regardless of score. Review within 48 hours per the thesis hard rule."
--no-write to opt out for previews.)lib/ai_buffett_zo/theses/health.py:adjust_for_regime.THESIS_MONITOR_ERROR: no active theses — ~/clarion/theses/ is empty, or every thesis has status: draft/closed/killed/watchlist. If you have draft theses, finish filling them in and promote the metadata status: draft → status: active. Otherwise run clarion-thesis-write to scaffold a new one.THESIS_MONITOR_ERROR: regime unavailable — yfinance cache empty for SPY/TLT/RSP. Run clarion-regime-check first to seed it.THESIS_MONITOR_ERROR: malformed thesis — a specific thesis file failed to parse. The dashboard still runs for the others; the failed one is listed separately for the user to fix.