Changelog
All notable changes to Resolution, newest first, grouped by the day they landed (UTC). The format follows Keep a Changelog. The compatibility surface is /api/v1, the Record's event schemas and the mandate format; a change to any of them is called out here.
[Unreleased]
Added
- Tour: a demo fund beside the real one: the
tourcompose service (profiletour;resolution tour on|off|link|status) runs--demoin its own volume, opens with the real fund's password through a read-only mount (RESOLUTION_PASSWORD_FILE; changing it there is refused withpassword_shared), and the founding's first screen links to it whenRESOLUTION_TOUR_URLis set; the demo's sidebar says "demo fund" and links back throughRESOLUTION_HOME_URL. The installer names every profile in.env, so an update keeps it. - Online:
resolution online on|off|statusputs the app, and the tour if it is on, on the internet through Tailscale Funnel, never the gateway login; behind a proxy the guess throttle keys on the lastx-forwarded-foraddress, https answers carry HSTS and aSecuresession cookie, and/loginis never cached. - Password: an optional owner password beside the link (
POST /loginsets the same cookie; Settings → Password andnpm run password -- --set|--reset|--status;resolution passwordon the box); scrypt hash inowner-password.json(0600), five wrong guesses in fifteen minutes throttled with a doubling wait, not a second factor. Sign out from Settings. - Install:
curl -fsSL https://resolution-9jj.pages.dev/install.sh | sudo shputs the fund, Postgres and IBKR's gateway on a Debian/Ubuntu server, generates the secrets, pins the gateway download's SHA-256 and prints the owner link;resolution status|logs|link|update|doctor|backup|ibkr-login|servewrapper;deploy/cloud-init.yamlfor first boot. Not yet run on a real server. - Compose:
.envreaches the app asenv_file; the gateway is the standard shape behind theibkrprofile;/healthzreportssetup: incomplete|complete. - Setup: every setting the code reads is editable in the dashboard (13 added, restart-needed flagged);
test/config-catalogue.test.tskeeps the catalogue complete. - IBKR login flow: the broker card shows the session as four stages; "Log in to IBKR" opens
IBKR_LOGIN_URL(now a broker setting) and the card flips to logged in by itself; Today shows a banner when the session is dead; a lost session is notified once per episode. - Paper rehearsal: the wizard's last step places one far-from-market order at IBKR on a paper login and cancels it, recorded as
broker.rehearsal; refused on a live fund or a real-money account. - Contract map: the resolved ISIN→conid map is kept as
broker.contractsand reloaded at start; a changed conid for a signed name refuses the order until the terms are signed again. - IBKR is the default broker on the broker card, with a paper-then-live checklist in
docs/ibkr.md(decision 0021). - Website:
npm run sitebuilds the product site intosite/dist/from the docs, changelog, licence and agit archiveof the tree, with a self-only Content-Security-Policy; deployed to Cloudflare Pages at https://resolution-9jj.pages.dev. (test/site-gen.test.tsbuilds it in the suite.) - Discipline mechanics: a written pre-mortem before a proposal can be signed; a personal failure checklist from the owner's own overrides; "why this rule exists" lessons when a rule bites; a reverse stress test per drawdown tier; a cost-blind review mode; an ESMA gamification audit. (#9)
- EU/NL correctness: the cost of each trade split into commission, spread and FX markup; Box 3 actual-return evidence (tegenbewijsregeling); ETF look-through for the caps; a regulatory position note; the Spanish and Danish treaty rates. (#8)
- Reference documentation generated from the code: rules, events, configuration, commands, routes and providers (
npm run docs), checked in CI. - Repository: CI (types, tests, content, docs, container build and health), issue and pull request templates, Dependabot, a contributing guide, a security policy and this changelog.
- Licence: AGPL-3.0-or-later.
- Local gates:
npm run checkruns every CI gate;.githooks/pre-pushruns it before each push. - Statistics: Analytics adds Omega, Ulcer index, CVaR 95%, tail ratio, up/down capture and PSR; Risk shows a Ledoit–Wolf shrunk covariance with each position's share of volatility (LOG); Evidence records weekly per-screen rank IC at 1/5/20 sessions and a Hansen SPA test against each null book (LOG); seat scores carry CRPS (for yes/no forecasts it equals the Brier score).
- Two new rules: L-CONC-COUNT (HARD,
max_positions) and L-COST-WARN (SOFT,cost_warn_pct). The kernel has 26 rules. - Beancount export:
npm run export:beancount,GET /api/export/beancountand/api/v1/export/ledger.beancount, for Fava. - Backups: scheduled encrypted backups with an off-machine copy (a directory or S3-compatible storage), a weekly restore drill and a dead-man's switch.
- IBKR Flex: the statement is pulled and reconciled daily as retried jobs; breaks are flagged, never fixed automatically.
- Stuck orders: orders with no broker answer are flagged for the owner and never resent; stale paper DAY orders expire.
- Webhooks: outbound webhooks carry the Standard Webhooks headers.
- Notification policy: quiet hours (22:00–07:00 Europe/Amsterdam by default); HARD notices always go out; SOFT notices wait for a morning digest; categories can be switched off.
- OpenTimestamps: optional proofs of the daily signed anchor, with
npm run ots:verify(the Bitcoin block header is not checked). - Passkeys: approving an order or going live requires your passkey, once one is enrolled.
- MCP OAuth 2.1: MCP clients connect with PKCE and rotating refresh tokens after your consent, instead of a pasted token.
- Offline: the desk opens offline and shows the age of its figures; checks, approvals and signatures never come from a cache.
- Accessibility: contrast is tested against WCAG AA, reduced motion is honoured, and Terminal output is announced to screen readers.
- Phone: Today and the offline badge fit a 390px screen.
- Translations: a test holds the English and Dutch dictionaries to the same keys.
- Prompt caching: the dossier is sent as a stable, cacheable prefix; cached tokens are priced and recorded.
- Hard budget stop:
monthly_model_budgetnow stops non-essential calls; calls that can block a trade fall back to the cheapest model. - Independent judge: the judge must use a different model vendor from the bears (
judge_independent_vendor). - Untrusted content: outside text travels in a bounded untrusted block, and content shaped like an injection is flagged.
- Batch pricing: with
SEAT_BATCH=1, the overnight LOG-grade judge checks go through the Anthropic or OpenAI batch APIs at half price. - Rate limits: IBKR calls are paced, and a 429 penalty box pauses every call for 10 minutes. Each error is named in English and Dutch.
- Certificate pinning: the gateway's certificate is pinned by SHA-256 and trusted on first use in the wizard. A mismatch refuses before any bytes are sent.
- Preview drift: a signature is refused when IBKR's preview moves beyond max(€1, 20%) or adds a warning.
- Paper fees: paper trading models the IBKR Pro Fixed and Tiered fees, with the conversion commission charged separately.
- Cash per currency: a conversion is a separate ticket the owner signs, and the fund never trades on margin in any currency. Live conversions stay refused.
- Session: a notice is sent when the IBKR session needs a login, and the session is re-primed afterwards.
- Saxo Bank as a second live venue through its OpenAPI, behind the same approval ladder, signature and HARD rules as IBKR. You connect your own Saxo app with OAuth and PKCE, in Saxo's simulation environment by default; the fund never sees your Saxo password, and the tokens are sealed on the server (mode 0600). Orders carry the fund's client order id, and a lost answer is looked up, never resent. Saxo's precheck is bound to your signature. Live: euros only, no margin, no shorts. Tested against a fake only (decision 0019).
- Decision 0020: the IBKR login stays with the owner (no headless OAuth keys on the server), and the pre-push hook is the CI of record;
CI_RUNS_ONmoves the workflow to a self-hosted runner.
Fixed
- The Terminal's ASK understands Dutch questions.
- Server errors and "why" lines on Today now appear in Dutch.
- The top bar drops whole figures instead of clipping one when space runs out.
- Dutch sidebar groups no longer share a name with the page inside them.
- The docs now give the right provider count (52) and describe the notification channels correctly: all nine, set live from Setup.
2026-09-26
Added
- IBKR, correct and robust (#13):
- A call layer that saves every order before it is sent and resolves lost answers by the client order id; a fresh unknown order is never resent.
- Reply prompts answered only from an allowlist; stale and halted prices refused.
- A session supervisor with backoff and clear states; an optional gateway container behind the compose profile
ibkr. - ISIN-to-contract mapping including EU exchanges.
- IBKR's what-if preview bound into the owner's signature.
- Flex statement reconciliation that reports and never auto-fixes.
- A connection wizard, and one broker status used everywhere.
- Live orders stay in EUR until a signed FX leg exists.
- Measurement integrity (#7):
- A trial ledger, a t-bar of max(3.0, Bonferroni), and the Deflated Sharpe Ratio.
- Training-cutoff contamination flags, with seats scored after their cutoff.
- Brier and log scores per seat.
- A judge position-swap check.
- Academy (#5): 50 lessons, 12 cases and 209 glossary terms in English and Dutch, with simulators and live panels that read the fund itself. Recall is spaced, with no streaks.
- AI providers (#6): 52 providers with key detection, test calls, OAuth where offered, and a model per seat.
- Setup: a founding journey you can revisit; one Connections page with a test per system; a readiness checklist; a dry run;
npm run doctor. - Imports: Trading 212, XTB, Revolut, Rabobank and IBKR CSV; IBKR Flex Query pulls; OpenFIGI ISIN lookup.
- Insights: new charts on Book and Analytics.
- Research: a landscape review, a map of 78 open-source projects, and an IBKR audit (docs/research/).
Fixed
- A lookahead leak in screens: bars are now aligned by date.
- The kill switch stays on screen at phone width.
2026-09-25
The first complete build.
Added
- Core:
- An event-sourced, hash-chained Record on PostgreSQL or embedded PGlite.
- A pure kernel of graded rules (HARD, SOFT, LOG) set by the owner's signed mandate.
- A paper venue, and a gateway with a lease and client order ids.
- Owner signatures in the browser (ECDSA).
- Research and measurement:
- A desk of model seats: analyst, two bears debating in both orders, judge, PM, risk officer.
- An instant idea pipeline, with a cooling-off before any commitment.
- Null books, t-statistics, pre-registration with alpha spending, attribution, factors and stress tests.
- Live trading through the IBKR Client Portal Gateway, switched on only by the owner's signature, with price collars and size caps.
- Dutch and EU: a Dutch interface, Box 3, dividend tax, broker CSV imports, €STR, TARGET2 calendars and GDPR tools.
- Integrations: a public
/api/v1with OpenAPI 3.1 and scoped tokens, signed webhooks, an MCP server, Atom feeds, Prometheus metrics, and nine notification channels. - Interface: a premium web app with a Bloomberg-style Terminal, Analytics, Governance and Operations. It installs on the phone's home screen.
- Operations: Docker Compose, encrypted backups with restore drills, a kill switch from the CLI, hash-chain verification and external anchors.