Development changelog

What has changed on this site, in its database and in the scripts behind it, newest first. Older history is being filled in as it is reconstructed, and each entry says whether it was recorded at the time or rebuilt later.

Showing entries for topic choice surface. Show everything

Choice Surface: each portfolio chooses how Stock on Hand ranks, filters and caps

Nov 18, 2026
added Nov 18, 2026

A new Choice Surface page edits a portfolio's Stock on Hand settings with a form, showing the resulting settings document as you type.

Three parts: Universe (one or more ranking rules, any of which qualifies; category leaders shown alongside; benchmark funds that always appear), Rankings (sort by one ranking or by the mean of two to four, ranked across the whole watchlist; show or hide each ranking), and Caps (default position, sector and dividend limits, with per-sector overrides). The browser checks as you type and the server checks again on save, refusing with every reason at once. A built-in parity check compares Stock on Hand built from the saved settings with the previous built-in strategy. The system default is shown read-only.

added Nov 18, 2026

A new table holds one Choice Surface settings document per portfolio: which securities qualify, how they are sorted, which rankings are shown, and the position, sector and dividend caps.

The document is JSON with a versioned schema key. The database checks that it is an object carrying that key; the application checks everything else before saving. Existing portfolios were given documents that reproduce the previous built-in settings exactly, by a setup script that never overwrites a saved document. Read-only checks before and after confirmed that no other table changed, and a 29-test acceptance suite ran in a throwaway database first.