Repository navigation
Releases
Releases · SM4527/prismbrief
v0.2.2
Preventive compatibility with prism-mcp 0.5.0 to 0.5.2 and SignalPrism 0.3.2. Brief behaviour is unchanged, except round trips.
- Fixtures recaptured from prism-mcp 0.5.2 against the sample stacks. New optional fields are accepted (
round_tripon signals,parseErrorsinprism_status); nothing new is required, so older prism-mcp versions still work. - A signal with
round_trip: trueis never counted as a buy. It is left out of the brief and the push counts, and the insider-buys section says how many were not counted. SignalPrism 0.3.2 already hides them by default. - Contract test: every captured tool has a schema and a fixture, and a signal without the new fields still parses.
docs/sample-brief.mdregenerated from the new fixtures (dates and prices only).
PrismBrief v0.2.1
Requires prism-mcp 0.4.1+ and FolioPrism 1.4.0+ for equity look-through coverage; older versions fall back to the whole-portfolio check.
- The coverage warning now uses equity look-through coverage (
equityLookThroughPct, prism-mcp 0.4.1+ and FolioPrism 1.4.0+) againstweekly.minLookThroughPct(60). Null means no stocks held and never warns. If the field is missing, the old whole-portfolio check runs and its warning ends with "(equity coverage needs prism-mcp 0.4.1+ and FolioPrism 1.4.0+)". - Data health shows "Equity look-through coverage" and "Look-through coverage (whole portfolio)". With no stocks held the first reads "n/a (no stocks held)"; with older versions it is omitted.
weekly.fundHoldingsMaxDaysdefaults to 150 (was 120): quarterly SEC holdings filings arrive up to 60 days after quarter end. Config overrides are unchanged.- The watchdog does not check coverage.
v0.2.0 — Drift alerts
Needs prism-mcp 0.4.0+ and FolioPrism 1.4.0+ for drift; without them everything else keeps working.
- Drift alerts in the daily watchdog: reads
folioprism_driftand pushes once when a portfolio rule goes in range to breached (one push for all new breaches) and once when it is back in range. Normal priority; no repeats while breached.unknownrules (stale prices, low coverage, no data) never push and never change the last-seen status. The first run pushes current breaches and baselines the rest. Text followspushover.detail. Last-seen status is kept indrift-status.jsonin the state folder. - If the drift tool itself fails, that is a system failure (high priority, repeats every 24 hours), apart from breaches.
- New "Your rules" section in the weekly brief, after "How your exposure moved": breached rules with days breached, over-limit tickers and "recovering", unknown rules with their reason, and "N of M rules in range". If drift is not available the section says so and the brief still renders.
folioprism_driftis not a required tool, so an older prism-mcp does not stop the run.
Co-authored with Claude
v0.1.1
- The scheduled task runs without a visible console window:
register-tasks.ps1launches node throughscripts/run-hidden.vbs(window style 0), which passes PrismBrief's exit code to Task Scheduler's Last Run Result.conhost.exe --headlesswas rejected because it always returns 0 and loses the exit code. register-tasks.ps1reports each missing path specifically (config, env file,node.exe,dist\cli.js); only thedist\cli.jsmessage suggestsnpm run build.
Co-authored with Claude
v0.1.0
First release. The brief is fully deterministic; no model is involved.
- Milestone 0: repo skeleton, config with guards (sample and personal modes, paths outside the repo, no secrets in config),
statuscommand, privacy scan, CI. - Milestone 1: prism-mcp stdio client, zod schemas for every tool result, fixtures captured from the sample stacks, percent-only start-up check.
- Milestone 2: facts builder, exposure join (at most 20 lookups per run), snapshots (last 12) and week-over-week diff with
decimal.js. - Milestone 3: Markdown brief renderer, atomic writes, sample brief and screenshot.
- Milestone 4: daily watchdog with dedup and recovery pushes, Pushover client with
counts,tickersanddetaillevels, NYSE business days, run state and lock file,catch-up,test-push, Task Scheduler scripts. - Rank changes and climbers in the exposure section.
- Fund-holdings age warning and a look-through coverage warning (
weekly.minLookThroughPct). - Compact whole-dollar insider amounts and
<0.1%for tiny exposures. - Stocks you do not hold render as "not held ? on your watchlist".
- Single daily task:
run dailywrites the weekly brief when it is due (none since the most recent Sunday 00:00 ET), then runs the watchdog; the separate weekly task is removed on registration. - Weekly-due push suppressed while a weekly failure is open.
- Start-failure push: a scheduled run refused at config load or by a start-up guard sends one high-priority "PrismBrief couldn't start" push with the refusal text, once per 23 hours per message.
register-tasks.ps1 -At(default 20:10) for the daily trigger; a missed start runs after the next wake.- Grace period for a laptop that has just woken: prism-mcp, app reachability and SignalPrism polling are re-checked every
watchdog.graceIntervalSec(120) for up towatchdog.graceMaxSec(600) before a failure is recorded or pushed. - Optional
-EnvFileforregister-tasks.ps1. - The unused
narratorconfig key was removed; a config that still has it is refused as an unknown key.
Co-authored with Claude