# Changelog ## v4.8.0 — 2026-11-19 *The release where a second pull on the same day stops instead of counting a sale twice, one contract written two ways by one broker's two sources closes as one, the Clinic says when a setup has faded — in rupees — and Vyuha is sold for Windows and macOS.* - **Fixed — a second pull on the same day no longer adds a sale an earlier pull already closed.** In the published v4.7.0, when a day's first pull closed a sale against an older open position, a later pull the same day stating a larger sale was *added beside it* — in the reviewer's test, 225 sold where the broker stated 150. Now the later pull stops at the duplicate dialog and names what closed the position — today's earlier pull, an earlier pull today (a v4.7.0 close, which stored no file name), or a Data Quality join you made today — and the steps that record the new total: in Trades, Un-close the position (or undo the Data Quality join), delete the sale row that brings back, then pull again, and the pull closes the position itself. **Nothing is committed until you choose**; committing anyway records the pull's figure beside the sale already counted, so the day is counted twice, and the dialog says exactly that. The OpenAlgo pull now joins the pulls that restate each other within a day (Dhan, Angel One, Upstox, Fyers, Kotak Neo, Nuvama), and a pull that replaces today's earlier row now does what its preview said. - **Fixed — a close that would store a sale the journal already holds is refused, not failed.** The close is refused in the preview and the commit alike, where it used to fail with a database error (`UNIQUE constraint failed`): nothing is closed automatically, the duplicate dialog marks the row "already recorded", and it names the earlier record that holds the sale and the step that resolves it — Un-close that record, delete that earlier row, or undo that Data Quality join — or commit anyway to record the row beside it. - **A Data Quality join can be undone.** A position closed from Data Quality carries **Undo Data Quality join** in its row menu on Trades: the position reads open again and the row the join removed comes back from Deleted items. Deleted items are kept beside the journal, not inside a backup, so a join cannot be undone on a machine restored from one. - **Imports and pulls close more positions: one contract, two names.** When two of your sources for one broker write a contract two ways — a weekly option by the exchange's compact name (`NIFTY2692225000CE`) and by its date (`OPT NIFTY 22 Sep 2026 25000 CE`), or a share with and without its series suffix (`SBIN-EQ`, `SBIN`) — the two now match **exactly** and the sale closes the position; this holds for every broker. Two stated ISINs of different issuers never match. A **month-level** pair — a compact *monthly* option or a future against a dated name, where the names alone cannot prove they are one contract — is **never closed on its own**: both rows stay, the import says so, and **Data Quality lists the pair with both names and a tick** ("These two names are one contract") that must be ticked before it joins them; the server refuses the join without it. **On the first launch after the update, Data Quality's count can rise:** positions already split under two names in your book are listed there, to join one at a time — the update rewrites nothing. - **The Clinic's decay card.** In each setup's Detail on the Clinic tab, a cell with at least **60** trades carrying an R shows two figures first — **USUAL · first N trades** (the average R of the first half) → **RECENT · since trade M** (the average since the trade where a possible drop was flagged; "RECENT · last N trades" when nothing was flagged) — a chip ("−0.18R a trade", or "no drop detected"), and a rupee restatement, for example **"For every ₹1,000 risked: ₹548 → ₹370"**, over a small line of the 30-trade rolling average. The rupee line appears only where every R in the cell is a multiple of a real risk (a stop or a typed risk); one R from the default per-trade cap hides it, and a trade with no R is not in the card's sample. A cell measured in units of your per-trade cap says so instead. Every number is the engine's. **The Clinic recomputes once per account after the update** (engine c4.0), and its cached report no longer stores the band nothing drew. - **A currency derivative typed by hand is refused on create.** "Currency derivatives are not priced by Vyuha (no charge profile covers them), so a currency trade cannot be added by hand. Nothing is saved." — the manual-trade form disables Save, and the charges preview and the save itself refuse. A currency row already in your journal stays editable, closable and deletable. - **Currency and NCDEX rows in files: refused and named, the rest imports.** An NCDEX row in the **column mapper** used to fail the whole file; it is now refused and named — "N NCDEX rows were refused: NCDEX contracts are not imported from this file (no charge profile covers them), so nothing was imported for: …" — and Nuvama's P&L report says the same of its NCDEX lines. Every broker-named parser (Zerodha, Angel One / Upstox, Fyers tradebook and realised P&L, Dhan's Global Transaction Report, Nuvama, Paytm Money) now refuses a currency contract by its name inside its own row loop, with v4.7.0's shared check as the backstop, so a refused row never becomes a trade and the Fyers realised-P&L import stores no reference figure for it (a file's own stated totals still include it). A Zerodha Console file whose own totals include refused currency rows now says: "This file's own totals were added up by the broker with the refused currency rows in them, so they will differ from your book by exactly those rows — that gap is expected, not a missing trade." An Angel One Tax P&L derivative row whose Segment is neither `NSEFO` nor `BSEFO` (the two a real export has shown) is imported as the file names it, with a warning to check its segment and charges. - **Three heavy screens carry less of your book.** The Live Desk's **Positions** tab now shows the **largest 150** positions by money deployed ("Showing 150 of N positions, largest deployed first.") with a **Show 150 more** button, while the header totals, the risk lens and the cohorts still read the whole book; `j` past the last shown row brings the next one in. **/strategies** draws its payoff points in your browser from the same arithmetic instead of shipping them, so no figure changes. **Arjun's Eye** reads the Clinic card from a small stored summary instead of re-reading the book and parsing the whole report. - **Fixed — the window no longer scrolls blank below the sidebar.** Scrolling past the end of a page (the dashboard and Settings showed it) could move the whole window up and leave an empty area under the sidebar; the app's frame now stays the size of the window on every page. - **Sold for Windows and macOS** (from 19 November 2026), under the same licence at the same price, one client package per kind of computer (`…_Windows-x64_Client_Package.zip`, `…_macOS-Apple-Silicon_Client_Package.zip`, `…_macOS-Intel_Client_Package.zip`). The Mac app is **not signed or notarised by Apple**: the first time it opens, macOS says it cannot verify the developer — System Settings → Privacy & Security → **Open Anyway** (on macOS 14 and earlier, Control-click the app → Open also works). - **The bundled market data is refreshed, as of 5 October 2026.** The ISIN → symbol map holds **5,912** listed ISINs (was 5,745) with **7** superseded ISINs linked to their successor; the stock universe classifies **5,617 of 5,649** equities (99.4%) with the exchanges' own industry and carries AMFI's 30 June 2026 bands (large 100 / mid 147 / small 4,654) and the first **11** recorded reclassifications; the NSE index map holds **62** indices (54 sectoral + 8 size) over **1,404** symbols and now carries **5 former tickers** (AMARAJABAT, HEG, MINDAIND, TATAMOTORS, TATAMTRDVR) forward, so an option leg your journal still holds under an old name keeps joining its ISIN after a refresh; the ETF list holds **351** ETFs (261 equity-oriented / 90 other), as NSE last published it on 17 September 2026. `/instruments` shows the as-of date and sha256 of the stock universe, the index map and the ETF list. The bundled market calendar is unchanged and still ends on **31 December 2026**. - **One database upgrade (0081)**, applied on first launch behind the automatic pre-migration backup — take your own backup first, as always: it adds one empty column to the Clinic's cache (derived data, outside your backup, filled by the next compute). No money figure already stored on a trade moves. **No new dependency. Nothing to re-accept.** - **The uninstaller still warns and copies first (unchanged since v3.8.0).** On Windows, the v4.8.0 installer runs the v4.7.0 uninstaller once before it installs, and that one is the guarded one: ticking its "Delete the application data" box erases the whole data folder, but not before your journal and licence key have been named and copied to `Documents\Vyuha-backup-`, and Cancel leaves everything as it is. Not in this release: the Windows installer is still unsigned (Windows SmartScreen warns once) and the Mac app is not signed or notarised by Apple (the "Open Anyway" step above). The Fyers, Kotak Neo and Nuvama pulls are still **not verified against a real account** (today's trades only); Kotak Neo and Sahi FILES still go to the column mapper. A month-level pair is never closed without your tick, and the positions already split in your book are listed, not rewritten. A Data Quality join cannot be undone after a restore from a backup. A currency contract is recognised by a stated currency segment or venue, or by a name Vyuha reads as one of the seven pairs: a contract whose name is outside both, listed under a non-currency heading of a Dhan P&L file, still imports (the file's own Currency block is skipped by its heading). Currency rows imported before v4.7.0 are not re-priced. Telegram alerts still stop after 31 December 2026 until the 2027 holiday list is bundled. On the Positions tab, `k` with nothing focused lands on the last **shown** row, not the book's last. The decay card's small chart is pinned by tests; its drawing was not checked by eye in the production build. Rights, buyback and delisting chips are not on the Positions tab. ## v4.7.0 — 2026-10-05 *The release where the journal tells you what your own record can and cannot prove, the Live Desk gets a Positions view and a live stream, your stops can reach your phone, and three more brokers can be pulled directly.* - **The Edge Clinic's Clinic tab.** A new first (and default) tab in the Edge Clinic hub reads your closed trades per segment, per setup and per setup grade and says how strong the evidence is: the mean R with its interval, how many more trades a cell needs, what costs take out of it, whether the problem is win rate or payoff, and whether an edge is decaying. The best cell is checked against luck across every cell tested. It never states a P&L you "would have had". It is computed off the page and cached per account, so the tab opens fast on a large book ("Computing the Clinic" shows once while a fresh report is built). **Free:** the whole-book evidence grade with its "trades still needed". **Pro:** everything else, plus a weekly note and 20-trade experiments you start on a cell (counted from the day after you start). `/reports/clinic` opens the same tab. - **Two optional fields on a trade:** a setup grade (A+ / A / B, blank = ungraded) and the intra-trade high and low, typed by you. A typed range is used in place of end-of-day bars only when it actually contains the entry and exit. - **Use my journal (Sizing Lab → Kelly, Pro).** One click fills the win rate and payoff measured from your own trades that carry a real risk (a recorded stop or a typed risk) — never the Kelly fraction, which stays at your setting — and prints the Clinic's ceiling for that slice beside it. It needs 30 such trades in the slice you pick (whole account, a segment, or a segment and setup; optionally the last 12 months, counted by the day a trade was exited) and is refused in the All-accounts view. A book whose every trade was imported without a stop reads "0 of N … 30 needed" until stops are recorded. - **The sizing ceiling is half-Kelly per 1R.** The ceiling on the Clinic's sizing card and beside "Use my journal" is a fraction of capital at risk per trade, where the risk is 1R: half the Kelly at the lower 95% bounds of your win rate and payoff, divided by your average loss in R at its upper 95% bound, and never higher than half the empirical Kelly of your own R outcomes. When either half is unsupported it reads "the data does not support sizing up" or states no ceiling — it is never guessed. The Lab flags a Kelly fraction that puts more at risk than this ceiling; it marks, never clips. The Lab's own Kelly row from the win rate and payoff you type stays the classic formula. (A development build of 4.7.0 stated this ceiling on a different basis, so most books' figure differs from one seen there; no released version showed it.) - **The Live Desk's Positions tab.** `/live` now has two tabs: **Charts** (the desk as before, still the default) and **Positions** — every open position ordered by money deployed, with its stop and where that stop came from, the stop → mark → target strip, results and bonus/split chips, and a near-stop tint. Enter (or a click) opens a large card with the arithmetic in words and links to the chart, the Sizing Lab, Edit levels and the trade's own record (`/trades?trade=`). Facts are free; risk at stop, R, heat share, the 30-session zone chart, the industry concentration and the inline position calculator are Pro. - **Fixed — an option or future on the Live Desk no longer reads its underlying's daily bars.** A stock option or future took the cash scrip's previous close, day change, ATR (the stop distance in ATR, the near-stop tint and the ATR stop), relative volume, distance from the high, sparkline and detail chart as its own — in one case "Unrealised +₹14,55,000 at the previous close" on a ₹20,000 option. Those figures are now blank for a derivative row and it is left out of the since-the-close comparison, on Charts and Positions alike, as an index option always was. - **Telegram stop / target alerts (Pro, opt-in, a switch of their own).** While Vyuha is open — minimised included — and during each position's own market session only, the live feed you picked is asked for your open positions' prices about once a minute, and a message goes to your own bot when a recorded stop, trailing stop or target is crossed. A message carries the symbol, the price it was checked at, the level and how far through it the price is, the time, the feed's name and — when you keep more than one account — the account's name; **never a quantity or a rupee figure**. At most 20 alerts are sent a day, then one summary line. A stale or zero-volume price never alerts; pre-open and Muhurat never alert; commodity and currency positions are never checked. Upstox and Angel One price equities only, so alerts on futures and options need the OpenAlgo bridge. The end-of-day feed gives no alerts. **Alerts stop after 31 December 2026**, the last day the bundled market calendar covers, until an update bundles the 2027 holiday list — the Telegram card says so. - **The OpenAlgo live feed streams.** During the live window the Live Desk holds one streaming connection to your own OpenAlgo — its streaming port 8765 on the same machine, or a **Streaming address** you save on the OpenAlgo connection (copy `WEBSOCKET_URL` from its `.env` if you run more than one instance; it must name the same machine as the bridge — `localhost`, `127.0.0.1` and `::1` count as one machine). Streamed prices read "Last traded"; the 1–5 s slider becomes the **fallback refresh**, used only for a symbol the stream has not priced for 30 seconds and while the stream is unavailable. The strip says which: "Live · OpenAlgo stream" or "… poll". Changing the bridge's host clears a saved streaming address, and switching account while the desk is streaming refreshes it once. - **Every live feed now stops at the end of the live window** (about 15:45 IST). The desk keeps its last prices and reads "not streaming"; a desk left open no longer polls your feed all evening. - **Direct pulls for Fyers, Kotak Neo and Nuvama — documented, not yet verified with a real account.** Each reads today's trade book only, behind its own consent sheet. Fyers: App ID and secret saved once, then one browser login a day and a paste of the address it lands on. Kotak Neo: your Trade API token, mobile, UCC, MPIN and TOTP secret saved once (encrypted), a fresh login at every pull, and it can join the launch auto-pull; every pulled Kotak trade notes that an order placed through Kotak's Trade API was charged ₹0 brokerage, which a fill cannot show. Nuvama: API key and secret saved once, then a browser login and a paste of the request id; the session lasts until the earlier of 8 hours or 00:30 IST. Currency and NCDEX fills are refused and named. The Kotak Neo and Nuvama pulls follow no redirect: an answer that points elsewhere is refused in words, and nothing is sent to the address it named. Every pulled trade, card and help card carries the "not yet verified" label; check them against your contract note. - **Currency derivatives are refused at import — by every broker pull and by every file import, the column mapper included.** No charge profile covers currency, yet a USDINR future or option used to be folded into NSE or BSE and charged equity-F&O STT and stamp duty (on Kite pulls and Zerodha files since 11 July 2026; the Angel One, Upstox, OpenAlgo and Dhan paths and the other brokers' files did the same). Now the Kite pull (CDS and BCD), the Angel One, Upstox, OpenAlgo and Dhan pulls (Dhan's trade history and today's positions) and the three new pulls refuse such a row, and every trade file passes one shared check between reading and preview: a row is refused when its own segment or exchange cell states currency (Zerodha, Angel One / Upstox, Fyers, Dhan's Global Transaction Report, Nuvama's P&L report, Paytm Money and the column mapper read that cell) or when its contract name reads as one of the seven exchange-traded pairs (USDINR, EURINR, GBPINR, JPYINR, EURUSD, GBPUSD, USDJPY) — every file, including those with no such cell. The row is counted and the contract named: "currency derivatives are not priced by Vyuha". A Dhan Global Transaction Report with a currency bill used to fail as a whole file; it now imports the rest. Nuvama's P&L report refuses NCDEX lines the same way. **Rows imported earlier keep the charges they were stored with:** nothing is re-priced, and importing the same file again refuses the row rather than correcting it — delete those trades to remove them. **A currency position still open from an earlier import will not close itself** (its sale is now refused): the refusal note names it, for you to close or delete by hand. - **The duplicate check now meets a contract written two ways.** When two of your sources for the SAME broker print one contract differently (a compact monthly option against a dated name, for example), the cross-source check now matches them by underlying, month, strike and type as well as by the exact string. **Visible change, for every broker:** with two such sources you may now see the duplicate dialog where you did not, and the launch auto-pull skips those rows as collisions (they wait for the Import screen). A match found only at month level counts as a risk only when the rows share a buy or sell date. - **"Pulls missed since …" for Angel One and Upstox.** The Import screen's connect card now says when a pull day was missed for every broker whose pull reads today only — a new line for Angel One and Upstox users — and that the days between come from the broker's file. - **The dashboard ships its figures, not your book.** Measured on a 25,001-row book the dashboard's page fell from 13.1 MB to 0.75 MB; its filters now live in the address bar, and the CSV export is fetched when you click it. The figures on screen are unchanged. - **`/reports/itr` counts exited IPO allotments**, exactly as `/reports/tax` already did — so the ITR pack's capital gains can move for anyone with an exited IPO. (Their STT is not yet added back to the CG figure on either page.) - **After the update, a closed feature says why.** When the feed you chose in Settings is not the one running — a disclosure waiting to be re-accepted, for one — `/live` says so, gives the reason and links to Settings → Live feed, instead of dropping to end-of-day prices without a word. The Import screen's OpenAlgo section states the reason it is closed (the disclosure, or the integration switched off) instead of vanishing, for anyone with a saved instance. On the Telegram card, switching the alerts on no longer leaves a stale "alerts are off" or "Paused" line beside them. - **Also fixed:** the Market Atlas's industry cohorts fell up to the sector on books whose instruments carried the bundled sector label — a tag that agrees with the exchange's sector now keeps its industry (a tag that disagrees stays yours); Edit levels saves only the fields you changed, so an untouched save no longer rewrites a stop; the Positions card's Size is deployed ÷ capital; the dashboard's week-on-week delta is computed on IST dates; a restore from a backup made before v4.7.0 abandons a Clinic experiment whose account the restore removed. - **You are asked to re-accept four disclosures once.** Telegram (version 2 — **your end-of-day digest pauses** until you re-read it; a one-time strip on every page says so, and the Settings card links to it); OpenAlgo (version 5 — **its trade pull AND its live feed** stay closed until you re-accept); Upstox and Angel One live feeds (version 2 each — **each feed** stays closed until you re-accept, and the desk falls back to the end-of-day price). Nothing new is sent until you do. - **Two database upgrades (0079–0080)**, applied on first launch behind the automatic pre-migration backup — take your own backup first, as always: 0079 adds the setup grade, the intra-trade high/low and the Clinic's experiments and cache; 0080 adds the alert settings and the alert receipts (the receipts are machine state — not in a backup). No money figure already stored on a trade moves. - **The uninstaller still warns and copies first (unchanged since v3.8.0).** The v4.7.0 installer runs the v4.6.0 uninstaller once before it installs, and that one is the guarded one: ticking its "Delete the application data" box erases the whole data folder, but not before your journal and licence key have been named and copied to `Documents\Vyuha-backup-`, and Cancel leaves everything as it is. - **No new dependency.** Not in this release: no macOS build *(true of v4.7.0; macOS is sold since 19 November 2026)*; the installer is still unsigned (Windows SmartScreen warns once). The Fyers, Kotak Neo and Nuvama pulls are not yet verified against a real account, and Fyers' history range is not read (today only). Kotak Neo and Sahi FILES still go to the column mapper. The real-network paths of the alerts, the three pulls and the stream are proven against stand-ins, not against a live broker. Alerts stop at the end of the bundled calendar (31 December 2026) until the 2027 holiday list is bundled. Currency rows imported before v4.7.0 are not re-priced, and a broker file's own summary or footer total (a Zerodha Console P&L, a Dhan or Nuvama report) can still include the charges of currency rows this release refuses, so its reconciliation can show a gap equal to them. A currency contract is recognised by a stated currency segment or venue, or by a name Vyuha can read as one of the seven pairs; a file that states neither is not caught, and a currency trade typed in by hand is not refused. Rights, buyback and delisting chips are not on the Positions tab. ## v4.6.0 — 2026-09-26 *The release where the journal learns the market's real clock, two more brokers import themselves, every listed stock carries the exchange's own industry, and a covered short is stored as a short.* - **Fyers and Nuvama join the broker list — eight brokers now auto-detect.** Fyers' tradebook imports as trades (its mirror rows are skipped, never imported), and its Realised P&L file is kept as the broker's own figures for Broker Truth. Nuvama's P&L report imports its realised and unrealised lines as trades, with the charges Nuvama billed stored as stated. Rate cards ship for Fyers Standard (up to ₹20 an order) and Prime (up to ₹15) and for Nuvama Lite Plus and Elite, read from the brokers' own pricing pages; set the plan per account in Settings → Accounts. A Fyers file is recognised only when its **filename contains "fyers"** (the file itself never names the broker) — a renamed file goes to the column mapper. Both brokers' F&O and MCX rows are verified against real exports; **their equity rows are UNVERIFIED** and import with a warning to check them against your contract note. - **An effective-dated market calendar.** One bundled calendar now answers every "is the market open, and when is the close" question: the Closing Auction Session from 3 August 2026, the F&O session to 15:40, the revised pre-open from 7 September 2026, the NSE holidays, Budget Sunday and Muhurat. The day's mark waits for the official close — 15:36 for a closing-auction stock, 15:31 for any other stock, 15:45 for an F&O contract. Fills between 15:30 and 15:40 are no longer flagged "outside the session", and the sidebar dot is shut on a holiday. `/instruments` shows the calendar's as-of date, what it covers through (31 December 2026) and its sha256. - **Every listed stock carries the exchanges' own industry, and AMFI's cap band.** A bundled stock universe gives 5,450 of 5,482 listed equities (99.4%) the NSE/BSE four-level industry classification. AMFI's half-yearly rank is THE cap band (large/mid/small); an NSE Emerge stock shows a blank band with "SME — not ranked by AMFI", and Nifty size-index membership is its own separate lens. A sector you tagged yourself is never overwritten. A stock whose ISIN changed at a face-value split follows to its new ISIN. - **Market Atlas v3.** Industry cohorts (falling back to the sector when an industry is too thin, with "n of m priced" stated), median group returns (the mean behind a labelled toggle), one rotation table at sector or industry for 1w / 1m / 3m / YTD, relative strength against the market median, breadth per group and per AMFI band, the breadth on the days you opened your positions, an index-membership filter, and a list of what the Atlas does not compute. Below 30% coverage a tile shows its coverage instead of a number. The regime thresholds are editable in Settings. With the end-of-day download switched on, missed sessions are topped up — at most ten files per app open, under the same consent. - **Analytics regroup into three hubs**: Edge Clinic (Setups · Discipline · Scaling & Replay), Capital & Expiry (Return on Margin · Expiry) and Costs (Charges & MTF Leak · Broker Costs) — the Analytics menu goes from ten entries to six, and every old address still opens the right tab. - **Help, rewritten task-first.** `/help` is a search box over topics that fold by category; a topic opens in a large-text dialog with steps, a watch-out and related topics. A "?" in every page header opens that page's topic, glossary terms explain themselves on hover, `?` opens a keyboard shortcuts sheet, and the command palette finds help as you type. A getting-started strip on the dashboard (account, trades, charges plan, a stop, a backup) disappears once all five are done or you dismiss it. - **A covered short is stored as a short.** A trade now records which side opened it wherever its fills, dates or notes say so. An overnight F&O sale covered by a later buy **in the same file** becomes one closed short (with a Data Quality line naming the other reading), and it is filed in the **financial year it was covered**, on every tax surface. A sale nothing covers stays an opening sell. A short pair imported before v4.6.0 (an opening sell plus an open buy) is listed in Data Quality and joined only when you confirm it. Return on Margin and the Signal book now read the side too — a short option is no longer priced or judged as if it were bought. - **`/trades` no longer reads your whole book** to draw its KPI strip and side panels — measured on a 25,001-row book, where that read was the page's largest cost. - **Tax follow-ups.** The AIS reconcile states a staged position's purchases per entry fill, each in its own financial year. Harvest's STT split counts one trade per ladder, with its fills listed beneath. The 31-Jan-2018 FMV editor lists **one row per scrip** for the tax person, and one save sets every eligible lot of it — a partly-sold pre-2018 ladder can be edited at last. Upstox's ~₹1 difference from a contract note is explained where it shows (a contract note rounds STT once; Vyuha rounds per trade row). - **Fixed — the ITR pack's grandfathering read the per-share FMV as a total**, overstating the long-term gain of a pre-February-2018 lot with an FMV entered (100 shares bought in 2016 at ₹100, FMV ₹250, sold for ₹30,000: ₹20,000 on the ITR pack instead of ₹5,000). `/reports/itr` now agrees with `/reports/tax`. The FMV editor also said "closing price"; the Act says the **highest price quoted on 31-Jan-2018** — if you entered a close, check it. - **Fixed — Paytm Money and Groww ladders sum to their position.** A fill split across two positions was handed to both; each fill is now allocated once, so some positions that arrived as staged ladders now arrive as single rows. The positions' own quantities, values and P&L did not change. **A book imported before v4.6.0 keeps its old ladders:** Data Quality lists them as "Staged positions whose fills do not add up to the position" — delete the position and re-import the same file to rebuild it. - **Also fixed:** a basis write on a staged position is refused (it would leave the fills contradicting the position); the Atlas cap band resolves on a fresh install; the getting-started "Charges plan set" step can tick; a help topic opens on its title and one Escape closes it; the Atlas catch-up re-checks your consent before every download; the broker counts on screen are derived from the importer list, never typed. - **OpenAlgo pulls need OpenAlgo 2.0.2.6 or later.** Vyuha reads the running version from your own OpenAlgo and refuses a pull below it with the upgrade steps; a sandbox (Analyzer-mode) tradebook, an exchange Vyuha cannot price (NCO, NCDEX) and a zero-quantity MCX row are refused rather than guessed. Fyers can be pulled through OpenAlgo; Nuvama cannot. If you use OpenAlgo you are asked once to re-acknowledge its disclosure (version 4). The OpenAlgo setup guide in the client package gains the version-and-upgrade section. - **Four database upgrades (0075–0078)**, applied on first launch behind the automatic pre-migration backup — take your own backup first, as always: 0075 moves a Telegram digest time still at the old 15:35 default to 15:45 (after the F&O close; a time you typed is left alone), 0076 adds the Atlas regime thresholds, 0077 adds the side column (a one-time data fix then states each existing trade's side from its own dates and notes, and leaves it blank where they cannot tell), 0078 adds the 16 Fyers and Nuvama margin rows. The first start also adds the 280 Fyers and Nuvama rate rows. A row you added or edited yourself is never touched. - **The uninstaller still warns and copies first (unchanged since v3.8.0).** The v4.6.0 installer runs the v4.5.0 uninstaller once before it installs, and that one is the guarded one: ticking its "Delete the application data" box erases the whole data folder, but not before your journal and licence key have been named and copied to `Documents\Vyuha-backup-`, and Cancel leaves everything as it is. - **One new dependency:** `@radix-ui/react-accordion` (MIT), for the Help categories. Not in this release: no macOS build; the installer is still unsigned (Windows SmartScreen warns once); no network host is added (the calendar and the stock universe are build-time snapshots). Kotak Neo and Sahi still import through the column mapper only. The 2027 NSE holiday list is not yet published, so the calendar covers 2026; from 60 days before its end Data Quality says so. The Edge Clinic's own Clinic tab arrives in v4.7.0. ## v4.5.0 — 2026-09-22 *The release where the sale closes the position, and the tax pack knows whose accounts it is reading.* - **Auto-close is ON.** A sale imported for a holding you already hold closes it FIFO instead of landing as a second, unrelated row. Each import carries a **"Keep sells as separate rows"** toggle, the result card names what it closed, and an **Un-close** action on `/trades` puts a closed pair back as it was. One execution can hold at most one closer; a sale with no date closes nothing and is listed under Data Quality. - **Upstox pricing is plan-aware.** Upstox sells Basic (₹20 an order) and Plus (₹30 an order); set the plan per account in Settings → Accounts. Every Upstox delivery *estimate* now prices at the published min(₹20 or ₹30, 2.5 %) with a ₹20 DP charge. A bill your broker's own file stated is kept as stated. - **Tax is per TAX PERSON.** A Tax person field on the account, a person picker on `/reports/tax` when "All accounts" spans two persons (and no figure until one is chosen), and the scope stated on every export. - **The bundled NSE ETF list** (350 ETFs; `/instruments` shows its as-of date and sha256) drives STT and the capital-gains asset class — a gold or debt ETF is no longer taxed as an equity share. - **Capital-gains heads follow the transfer date**, from one band table with each band's Act cited; holding periods count in calendar months. *This moves the short-/long-term line by up to two days for every equity trade.* The ITR-2 item code for s.111A is A2; STT is added back in the capital-gains buckets; MTF interest carries a "not deducted" line. - **A partly-sold staged position's fills are taxed in the year they were sold**, not when the ladder finally closes — a ladder whose fills straddle 31 March moves part of its gain to the earlier year. - **Dhan rows regroup under tickers** (the raw name is kept on the row). - **A broker-stated bill survives a re-tag**, on imports made from this version on. - **One database upgrade (0074)**, applied on first launch — take a backup first, as always. - **The uninstaller still warns and copies first (unchanged since v3.8.0).** The v4.5.0 installer runs the v4.4.0 uninstaller once before it installs, and that one is the guarded one: ticking its "Delete the application data" box erases the whole data folder, but not before your journal and licence key have been named and copied to `Documents\Vyuha-backup-`, and Cancel leaves everything as it is. - No dependency changes. Not in this release: no macOS build; the installer is still unsigned (Windows SmartScreen warns once); no network host is added. ## v4.4.0 — 2026-09-21 *The release where four more of your broker's own files import themselves, the chrome moves where you want it, and every metric says how it was computed. The importer learns the **Zerodha Console ledger**, the **Groww balance statement** from the Cash & Ledger screen, and the **equity contract notes** of Groww and Upstox; an Upstox trade report's F&O rows now land as option contracts (NIFTY, SENSEX) instead of equity. The sidebar is draggable and remembers its width on this device, **Appearance** moves to the end of Settings with a Save of its own, most pages open in a new default card order, and Settings and the Dashboard gain a **Rearrange** button. On the metrics side the per-trade risk cap becomes editable **per segment**, **Avg R** says where each R came from, F&O rows carry a per-lot second line, profit factor is stated **after charges** with a drill-down that reproduces it, ratios are annualised on the **NSE calendar**, the risk-free rate is one dated setting, an empty figure reads "—" instead of 0, and every metric explainer is rewritten to your own arithmetic with cited facts and no invented bands. The monthly Pro plan is repriced. **One database upgrade, 0073**, applied on first launch; it adds columns, moves no money and no cap.* ### Imports — four more of your broker's own files - **Zerodha Console ledger.** The funds ledger exported from Zerodha Console reads end to end: every entry's Net Balance reconciles against the opening balance, and the closing balance matches the statement's own. - **Groww balance statement.** The statement downloaded from Groww's **Cash & Ledger** screen imports, across its **18** segment types. Its rows are sorted by settlement date but not by posting order within a day, so each row is placed by its own balance rather than by its position in the file — that is what makes a 447-row statement reconcile with no breaks. - **Groww and Upstox equity contract notes.** The equity contract note of either broker imports its fills, its charges and its net obligation. A Groww note's BSE fills whose 19-digit order number wraps onto a second line are re-joined rather than dropped. **F&O contract notes are not read** — only the equity ones. - **Upstox F&O trades land as option contracts.** An Upstox trade report's F&O rows are read with Upstox's own grammar (European Call/Put, FON/FOB, BSX = SENSEX, dd-mm-yyyy expiry), so **NIFTY** and **SENSEX** option trades land as options and are charged as options. ### The chrome moves where you want it - **The sidebar resizes.** Drag its edge between **180 and 420 px**, or focus the handle and use the arrow keys; **double-click resets** it to the default 232 px. The width is remembered **on this device**, and it is re-clamped on every read, so a width saved on a wide monitor still leaves room on a narrow one. - **Appearance moved.** The Appearance block now sits at the **end** of Settings and has its **own Save** — changing a theme no longer depends on another section's save. - **A new default card order** on most pages, chosen so the figures you open a page for are the ones at the top. - **Rearrange — on Settings and the Dashboard only.** The button reorders that page's sections by **moving** them (nothing is hidden or added), and the order is kept **on this device**. No other page has it in this release. ### Metrics — every figure says how it was computed - **The per-trade risk cap is per segment, and editable.** The cap that sizes a trade with no plan stop can be set **per segment** on top of the global one (global < bucket < segment). **Avg R moves on imported trades that carry no plan stop wherever a segment cap differs from ₹9,500** — that is the point of the setting, and editing a cap re-prices those trades. A limit that was never set reads **"—"** rather than an invented number, and a breach check for a never-set segment follows the global cap as you have edited it. - **Avg R says where its R came from.** Beside Avg R everywhere it is printed — including inside the exported **share-card PNG** — is the split between R derived from your **plan** stop, R you **typed**, and R sized by the **default cap**. - **A per-lot second line on F&O rows.** Where a lot size is known and the quantity is a whole number of lots, an F&O row states **"1R = ₹X per lot"** beside the per-trade figure, with the lot size and the date it was read from. A row whose lot size cannot be established reads "—" rather than guess. - **Profit factor, after charges.** The headline profit factor is computed after charges, and a drill-down reproduces it from the same winners' and losers' net figures it divides. A **per-segment table** sits beside it, free on every copy. - **Annualised on the NSE calendar.** Ratios annualise over the trading days in the bundled NSE calendar — **245 sessions in 2026** — instead of a 252 convention. **Sharpe, Sortino and volatility read about 1.4% lower and alpha about 2.8% lower** than in 4.3.0 on the same trades; the Monte Carlo horizon is 245. **CAGR, Calmar, total return and drawdown are unchanged** — they are calendar-day figures and never used the 252. - **One dated risk-free rate.** Settings holds a single risk-free rate with the date it applies from (**7%** by default), replacing three rates hard-coded in separate places. - **An empty figure reads "—".** A ratio with no denominator prints a dash instead of 0. - **Every metric explainer rewritten.** Each one now explains the figure from **your own arithmetic**, and any statement about other traders carries a citation. The invented "healthy" bands are gone. ### Fixes - The **Outcome lens** states **"Share of trades"** — it is a count, and it says so. - **Trade-form numbers** go through one rule: "1,23,456.50" is read as written, ".5" gets its leading zero, and an ambiguous "14,48" is **refused** rather than guessed at. - Closing a **stale lot** refuses an unreadable stored date instead of joining it at zero days of interest. - The **Signal book** has its help entry. ### Pricing - **Pro Monthly is ₹999 for the first month** (launch offer), then **₹1,499/month**. **Annual ₹7,999** and **Lifetime ₹29,999** are unchanged. ### Upgrading - **One database upgrade, 0073**, applied on first launch. It adds columns; it moves no money figure and **no risk cap** — an untouched install stays at ₹9,500 and an edited cap is left exactly as you set it. Before it runs, the app writes a full copy of your database to `backups\pre-migrate-.sqlite` in your data folder. - Upgrading from **4.2.0** applies **0071, 0072 and 0073** in order. - **The uninstaller still warns and copies first (unchanged since v3.8.0).** The v4.4.0 installer runs the v4.3.0 uninstaller once before it installs, and that one is the guarded one: ticking its "Delete the application data" box erases the whole data folder, but not before your journal and licence key have been named and copied to `Documents\Vyuha-backup-`, and Cancel leaves everything as it is. - No dependency changes. ## v4.3.0 — 2026-09-18 *The release where the option legs you hold are read against a 40-shape catalogue, and where the signal a trade was taken on is recorded beside the trade. On `/strategies` the catalogue names what your open option legs add up to, a shelf holds the tiles you pick, and the Options Help Desk writes up all 40, free on every copy; a new **Signal book** tab records, for each option trade, the model, spot, zone, open-interest and volume figures and the T1 / T2 / SL ladder it was taken on, and reads them back. A Dhan connection that missed days catches up from its last successful pull and names any days it could not read; the same broker client can no longer be connected into a second account, and Data Quality lists the copies already made, with a removal button for the plain ones. Around them: the charioteer line on the splash, larger Help Desk and dialog text, a pasted token's expiry stamped in IST, an inline editor behind the `spot?` chip, and percentages that take the sign of the rupee figure beside them. The desktop rate-card refresh had failed on every launch since v3.2.0; 4.3.0 repairs the F&O STT rates for dates before 1 April 2026 on first launch, adds the STT rates in force before 1 October 2024, dates the NSE and BSE exchange transaction charges and NSE's investor-protection fee by the exchanges' own circulars, and corrects today's NSE transaction charges and the BSE stock-option charge; charges already stored on trades are not rewritten. Two migrations, 0071 and 0072, and no dependency changes.* - **`/strategies` reads your legs against 40 structures.** A catalogue of **40 shapes** (`STRATEGY_IDS`, `lib/analytics/strategy-catalogue.ts`) — verticals, straddles, strangles, condors, butterflies, ratios, backspreads, calendars, synthetics, the box and the jade lizard among them. Open legs are grouped per underlying symbol with expiry carried on each leg, so a calendar or a diagonal stays one position; a symbol whose legs fit no single shape and span two or more expiries is split per expiry and each is read on its own. The stock or future held against the options is drawn into the structure and shown read-only. - **Every figure says how it was computed.** The payoff is drawn at expiry from your entry premiums, intrinsic value only — no volatility, no time value. A group that spans expiries is drawn at the **nearest** one with the later legs valued at intrinsic only, and its maximum profit reads "Not computed" rather than a confident number. The gross figures are **before charges**, said in one line under the cards beside one note on STT at exercise, which is charged on intrinsic value rather than premium. A cap reached only if the underlying settled at zero is labelled **"Computed at underlying = 0"**. There are no Greeks on this screen. One line from SEBI's study of individual F&O traders sits at the top, computed from the study's own record rather than typed. - **The shelf (Pro).** Eight tiles by default — long call, long put, the four verticals, long straddle and iron condor — above the named groups. **Browse all (40)** opens the picker, where any tile is selected or unselected; **Undo** and **Redo** step through the changes made in the session, and **Restore defaults** puts the eight back. The selection is one column, `settings.strategy_shelf_json` (**migration 0071**); every change writes an Audit Log row, it is carried in backups — a preference, so it is not redacted the way a consent is — and it is part of My Default Settings. - **The Options Help Desk is free.** A highlighted Options section on `/help` writes up all **40** structures — the legs, how the payoff is computed, who uses it and what it risks — on every tier, Pro or not. Each strategy card carries a **"How this works"** link to its entry, and the command palette finds an entry by its name or keywords. - **What is free and what is Pro.** The grouping, the payoff curve and the gross figures are free for every book, and the sixteen shapes Vyuha named before 4.3 keep their names on the free tier. The other twenty-four names, the shelf and the picker are Pro: on a free copy a group matching one of them reads **"Custom (n legs)"** beside a Pro chip, and the match is withheld on the server rather than hidden in the browser. - **An option trade can now carry the signal it was taken on.** The Add and Edit trade forms gain a **Signal** section — model, spot, zone, the open-interest and volume figures, a score, and the **T1 / T2 / SL** ladder, which pre-fills at +30% / +60% / −25% of your entry and is editable. Vyuha records the signal; it does not produce one — there is no scanner, no zone engine, no open-interest feed and no alerting here, and this release adds no network host of any kind. - **Option Strategies opens on a new Signal book tab.** It lists every recorded signal with its option data, and with Pro it also shows rule adherence against each trade's **own** levels, edge by model, direction and exit status, and target/stop hit rates from the day's recorded high and low. The day's high and low are the whole session's range and not the range since your entry, and the screen says so beside the figures that use them. The table of recorded signals is free; the three analytics blocks are Pro and are withheld on the server. - **Trades already in the journal are read into the Signal book from their own notes.** A trade whose note carries the signal in full is parsed on first launch and appears in the book; a note that cannot be read in full is left exactly as it is. Clearing a signal clears it for good — a later backup restore does not bring it back. - **One more small database upgrade (0072) is applied on first launch.** It adds one optional column and changes no money figure. Backups and Deleted items carry the signal with the trade. - **A monthly plan, given on request: ₹599 for the first month as a launch offer, ₹999 a month from the second.** Pro — Monthly joins Pro — Annual (₹7,999/yr) and Journal — Lifetime (₹29,999) on every pricing surface; each month is a fresh key issued on request, nothing auto-renews and no card is stored (`license-issue.mjs app --months 1`). - **Streaks and drawdown now follow entry order inside a trading day.** Every screen that ranks closed trades was handed them newest-first, and the streak and drawdown walks sorted on the exit date alone — so each day's trades were read backwards and runs that crossed a day boundary were joined or cut. A 42-trade options book read "8 wins, best 11W" where its entry order says 7 and 10. Closed trades now tiebreak exit date → exit time → trade id, on the dashboard and on `/lenses` alike. - **Dhan catches up after a gap, and says what it could not read.** Dhan's `/v2/positions` is today's book only, so a connection last pulled days ago used to fetch today, stamp the pull time and lose every day in between. When the last successful pull falls on an earlier IST day, the next pull — yours or the once-a-day auto-pull — also reads Dhan's trade history from that day to today, at most **90 days** back and **50 pages**; today's fills still come from `/v2/positions`, and a fill read twice is de-duplicated on commit. A gap longer than 90 days is read for its last 90 days only, and the pull names the dates it did not fetch and the way to bring them in — a Dhan tradebook imported for those dates; a pull that stops at the 50-page limit says so too, with the dates that may be missing. That notice is kept as an Audit Log entry and stays on the Dhan tab — from a pull you start or from the auto-pull — until you press **Clear notice**, which adds a second entry and rewrites nothing. The Dhan tab shows **"Pulls missed since …"** while the last pull is older than the previous trading day; when the next pull cannot reach back that far, the line names the day it will start from and says the fills before it are not fetched. - **One broker client, one account.** Saving a connection whose broker client is already connected in another account is refused before anything is written, and the refusal names that account: *This … client is already connected in account "…". Vyuha keeps one connection per broker client so a book is never imported twice.* It holds for every broker, compared within the same broker. - **Data Quality joins a held lot to the sale that closed it.** Until now a sale of something the journal already held landed as a row of its own, so the position still read open and the sale read as a second position. Data Quality lists each of those pairs beside one another, and **Close with the recorded sale** (or, for a short, *the recorded purchase*) closes the lot at that row's own price and quantity and moves the sale row to Deleted items. Nothing is typed except the date, and only when the sale row states none: it is pre-filled with the day the row was pulled, because the close date sets the charge rates, the holding period and any MTF interest. A partial pair, a sale recorded in several fills, a staged lot, a sale carrying your own journal entries and a pair another closed trade may already have taken are all **listed without the button** and link to Trades, where you close them yourself; the server re-derives every pair before it writes. - **Data Quality lists the copies that were already made.** Two cross-account checks join it: the same broker client connected in more than one account, and the same broker record held in more than one account. A duplicated record gets a **Remove the copy in …** button, confirmed once, and only for a plain copy; the server checks again before it deletes anything. A duplicated connection links to Import instead. - **The `spot?` chip on `/risk` opens an editor.** Click it and type the underlying's spot in place; Enter saves, Escape cancels. With nothing typed, the chip now shows the latest end-of-day close stored on this machine, labelled **EOD close**, and the ITM/OTM badges read from it. A price you type is labelled **typed**, is saved as that day's mark for the underlying, and outranks the close. - **One sign rule for a percentage and its rupee figure.** Zero carries no sign, and a percentage printed beside a rupee figure takes that figure's sign instead of its own (`signOf`, `signedPct`, `signedNumber` in `lib/format.ts`). It is applied on the Portfolio Risk cockpit, the ROM, monthly and performance reports, the VaR, Greeks and MTF-drift panels, and the ledger import. - **Token expiry is stamped in IST.** A pasted broker access token's expiry now reads as an explicit IST time — "05 Sep 2026, 23:24 IST" — on the connection badge and in the "A pasted broker token has expired" notice, instead of a time in whatever format the machine's locale produced. - **Larger reading text in the Help Desk and in dialogs.** The Help Desk's headings, card titles and body text are one type step larger, and so is the body text of every dialog, now in the foreground colour rather than muted. - **The splash carries the tagline.** "Every warrior had a charioteer. Yours keeps count." replaces the "DESKTOP · WEB · YOUR CHOICE" strap, with a shimmer that stops when the system asks for reduced motion. - **MTF financing states only what you recorded.** An MTF position bills interest only on the funded amount you recorded, and a staged position splits it across its tranches by value; a row with none recorded states no financing figure anywhere, says why beside the dash, and accrues nothing until you record one. Closed staged MTF rows priced before 4.3.0 keep the figure they already stored. The Equity Tracker's MTF funded figure is the funding every MTF row states; the broker comparison includes no financing cost for a row with no recorded funded amount, and says so; closed MTF trades with no recorded funding are listed on Data Quality for information, sharing one penalty cap with the open ones. For a broker whose MTF rate is tiered, a staged position's interest is rated on the whole recorded funded amount, so the ladder and the daily run state the same interest for the same days. The daily run no longer stops at a position it cannot price or at one marked staged with no fills: it leaves that row as it was and every other row still accrues. - **The trade editor keeps the bill your broker stated.** A notes-only save no longer replaces broker-stated charges with Vyuha's own estimate, the charge preview prices a row exactly as the save stores it, an un-exited IPO allotment is never billed purchase STT, and a staged position's charges are written only by its own ladder. Where a trade's stored date is not a real calendar day, the editor says so and waits for a day rather than clearing the date on Save, and every writer that prices a trade from its stored dates now counts the holding period by the same rule. - **IPO records say what they are linked to.** A restore that cannot bring a holding back leaves its IPO record unlinked and says so, instead of pointing it at another trade; an exit-price correction on a holding whose sale was stored day-first before 4.3.0 saves and syncs again; a record whose stored exit date is blank can save its notes again; and Data Quality now treats a record naming a holding no longer in the journal as unlinked, saying whether that holding is in Deleted items. - **A figure with no basis is blank, not zero.** A dashboard whose closed trades have no cost basis no longer shows a 0% win rate or a ₹0 expectancy — the figure is blank until a priced trade exists — and the edge report's win rate, confidence interval and expectancy per setup and per segment count only priced trades, the same rule as the dashboard. A blocked import shows one card per refused row, and an overlap list stops at twelve lines. Ctrl+Shift+K opens only the search panel; AltGr+K no longer opens the command palette. - **The desktop rate-card refresh is repaired, and the rate card is dated.** The desktop rate-card refresh had failed on every launch since v3.2.0; 4.3.0 repairs the F&O STT rates for dates before 1 April 2026 on first launch, adds the STT rates in force before 1 October 2024, dates the NSE and BSE exchange transaction charges and NSE's investor-protection fee by the exchanges' own circulars, and corrects today's NSE transaction charges and the BSE stock-option charge; charges already stored on trades are not rewritten. Since v3.2.0 a rate can carry dated epochs and the rate table is unique on the epoch's start date as well, but the launcher's refresh still matched rows on broker, plan, segment and exchange alone — so its update broke the table's own unique index on every launch, after its insert had already been written, and its corrections never landed. The bundled card now carries three F&O STT epochs, changing on 1 October 2024 and 1 April 2026: futures 0.0125%, 0.02% and 0.05%, options 0.0625%, 0.10% and 0.15% of premium, each on the sell side. NSE's transaction charges change on 1 April 2023, 1 April 2024, 1 October 2024 and 1 March 2026, and its investor-protection fee is ₹10 per crore on cash and futures and ₹50 per crore of option premium from 1 April 2023 to 28 February 2026. BSE cash changes on 1 December 2022; BSE stock options are charged 0.005% of premium from 2 May 2022 rather than the index-option rate; BSE index options change on 2 May 2022, 1 November 2023, 13 May 2024 and 1 October 2024. The refresh now reads its key from that unique index, runs its insert and update in **one transaction**, never touches a rate you edited yourself, and never adds a bundled epoch that starts inside a window you edited. It still runs on every launch, and after the first finds nothing to change. The database migration and the refresh now fail separately, each with its own logged line, and neither stops the app from starting. - **Fifteen fix waves behind it and nine scoped re-checks; every fix proven red on revert before it was kept** — what each round found, and what was ruled not a defect, is recorded in `docs/DECISIONS.md`. - **No dependency was added, removed or upgraded.** The only lines this release changes in `package.json` and `package-lock.json` are version numbers. - **The uninstaller still warns and copies first (unchanged since v3.8.0).** Before the "Delete the application data" option can act, the uninstaller names the journal database and the licence key, copies both (they live in `vyuha.sqlite`), the sidecar's pre-migration `backups\` snapshots and your attachments to `Documents\Vyuha-backup-`, and asks; Cancel keeps everything in place, and if that copy cannot be made — a full disk, a OneDrive files-on-demand placeholder — the uninstall stops with nothing removed. Ticking the box erases the data folder only once that copy exists. - **Not in this release, stated plainly:** an execution that closes a position the journal already holds is **not** matched against it automatically — an imported or pulled exit still lands as its own row, exactly as in v4.2.0, and Data Quality is where a stale open lot is closed against its later sale. The Upstox and Angel One sources still price **equity** positions only — an option or future row under either shows its recorded close, or a dash, and says so on the row. Pricing an option row from its underlying's price is **deferred** rather than approximated, because the underlying's price is not the contract's. Telegram notices for a stop or a target are still **cut** and stay out of every Pro description; the end-of-day Telegram digest is unchanged. There is still **no `openalgo-charts` pilot**; `lightweight-charts` stays where it is. Kelly still takes the win rate and payoff **you** supply. Nothing on `/strategies` is a forecast: its figures are computed at expiry from your entry premiums, with no volatility and no time value, and the Signal book reports what you recorded rather than judging it. And the rate card is still not exact everywhere: a date before the earliest schedule verified from the exchanges' own circulars — NSE before 1 January 2021, BSE cash before 1 March 2021, BSE options before 20 August 2019 — takes that earliest verified schedule; the card has one BSE index-option rate, which follows Sensex and Bankex, so Sensex 50 options — and, from 1 November 2023 to 13 May 2024, Bankex options and Sensex options other than the nearest expiry — are charged at that rate; MCX charges are unchanged; BSE stock groups other than the ones the card carries (X, XT, Z and the rest) and BSE's own investor-protection contribution are not modelled; and charges already stored on trades are not rewritten. ## v4.2.0 — 2026-09-09 *The release where the Live Desk can be priced from broker credentials you already saved. Two native quote sources join the bridge that arrived in v4.1.0 — Upstox, on the read-only Analytics token the import already uses, and Angel One, which signs itself in from the secret you enrolled — each behind its own consent sheet, each talking only to your own broker's API, and each pricing equity positions only, with every derivative row saying so in words rather than showing a stale number. Around them: a bundled NSE holiday list that the desk clock, the mark door, the stream window and the 15:31 reopen all consult, so a day the exchange was shut no longer carries the previous session's price under its date; the OpenAlgo disclosure re-accepted once, because one of its items stopped being true; and data quality that no longer counts an open derivative as a mark you forgot. Two migrations, 0069 and 0070, and no dependency changes.* - **Upstox can price the Live Desk, on the token you already have.** `UPSTOX_FEED_ENABLED` in `lib/quotes/types.ts` is `true`, and **Settings → Live feed** gains Upstox as a source. It asks for **no new credential and no daily sign-in**: it reuses the **Analytics token** you saved under **Import → Connect broker**, which Upstox issues read-only and for about a year (`requiresDailyAuth: false`). While the desk is open Vyuha makes **one `/v3/market-quote/ltp` call per sweep** to `api.upstox.com` for the instrument keys of the open positions of the account you have selected — **at most 500 of them** — and `/v3/market-quote/ohlc` **at most once a minute** for the previous close each row's change is computed against. Checking the connection makes **no request at all**: `health()` reports on the credential it already holds. The row stays greyed until the token is saved, and it prices nothing until you pick it. - **One token, two jobs.** The desk source and the Upstox trade pull read the **same** Analytics token, and generating a fresh one at `account.upstox.com` revokes the old one — so a regeneration stops the import and the desk source in the same moment, and pasting the new token back under **Import → Connect broker** restores both. It is stated here because one quiet afternoon otherwise reads as two separate faults. - **Angel One can price the Live Desk too, and signs itself in.** `ANGELONE_FEED_ENABLED` is `true`, and the source talks to `apiconnect.angelone.in` — already the host the Angel One trade pull uses, so **no new network host is added for it**. It reuses the **client code, PIN and TOTP secret** saved for imports: Vyuha derives a one-time code from the enrolled secret rather than sending the secret itself, so the sign-in is **unattended**. Angel One clears every session at **05:00 IST** whatever the token's own expiry says, so the re-login is scheduled against that flush, and otherwise happens at most once a day while Vyuha stays open, after a relaunch, when the credentials are re-saved, and when the selected account is switched. **A refused sign-in is retried at most three times and then stopped** until you re-save the credentials **or relaunch Vyuha**; three sessions in a row that Angel One calls invalid, with no priced answer between them, stop it the same way and say so on screen. The adapter carries a surface pin that **refuses any order call** — this is a quote client and nothing else. - **Angel One's tokens are resolved once and remembered.** Angel One prices by its own exchange token, not by a ticker, so Vyuha resolves each symbol lazily through `searchScrip` on the login host — at most five lookups per poll cycle — and caches the answer in `angelone_instrument_tokens` (**migration 0070**), keyed by exchange and symbol, so the second day of the same book asks for nothing. A symbol it cannot resolve is skipped and reported, never guessed. - **Angel One's refresh is set by the size of your book, not by a slider.** Angel One allows about one request a second, so the interval is arithmetic: quotes go in **batches of 50 scrips at about one request a second**, and the cadence is **3 seconds up to 50 scrips, 5 seconds from 51 to 200, 10 seconds from 201 to 500** — counted in scrips, because two positions in one scrip are one price to ask for. Under this source the 1–5 second slider is hidden and replaced by **one line on screen stating the interval, the number of calls each refresh takes and why** — a number you cannot change is worse than a number you can, unless the screen says where it came from. Every other source keeps the slider exactly as it was. - **Both are switched on behind their own consent sheet, and the answer is one column.** Each feed has its own sheet (`lib/domain/live-feed-disclosure.ts`, each at version "1") naming the host, the credentials it reuses, what a request carries, what it does not, every trigger that signs in, and the caps above. Being offered is not being allowed to run: the source resolver and `/api/live/feed` both re-check the acknowledgement, so a feed whose sheet has not been accepted is refused rather than quietly polled. The acknowledgements are stored in **one column**, `settings.live_feed_ack_json` (**migration 0069**), and that column is **redacted from backups** — a journal restored on another machine asks there rather than arriving pre-consented. - **Equities this release, and the rows say so.** The Upstox and Angel One sources price **equity** positions. A futures or options row shows the position's recorded close, or a dash when there is none, and carries the label **"Not priced by this feed"** — a derivative's premium is not its underlying's price, and a stale number presented as a fresh one is the thing this label exists to prevent. - **PRIVACY item 3 gains exactly one host: `api.upstox.com`.** `docs/client/PRIVACY.md` is widened rather than joined by a fifth item — the poll still goes to a broker you already connected, only once you switch it on — so "Exactly four kinds, and only one of them is automatic" and "There is no fifth thing" both stay literally true. Angel One's host was already listed for the trade pull. - **The desk knows the exchange's holidays.** `lib/data/nse-holidays.json` ships with the app — NSE's own cash-market **trading** holidays, 19 trading rows for 2026, with clearing holidays deliberately absent because a clearing holiday is a day the market is **open**. `isExchangeHoliday` and `isTradingDayIst` in `lib/domain/trading-day.ts` are read by **the desk clock, the persist-mark door, the stream window and the 15:31 reopen**, so a Diwali or an Independence Day no longer stores the previous session's price under that day's date. A date outside the listed year is **unknown, not a holiday**, so weekday behaviour survives a stale file, and a year-guard test goes red the moment the app's own IST year passes the list. - **The OpenAlgo disclosure is re-accepted once.** `OPENALGO_DISCLOSURE_VERSION` moves from `"2"` to `"3"`, and because the check compares with `===`, a stored `"2"` is refused with no extra code. The reason is item 6: it used to say exchange holidays were not modelled, and a person accepted that a weekday the exchange was shut still got a mark. That is no longer true — the mark door refuses with a "holiday" reason — and a consent sentence that has become false about what is written to your journal is a new version, not a copy fix. Nothing new is sent and nothing new is kept. - **Data quality no longer counts an open derivative as unmarked.** The mark writer skips derivative rows by design, so every open option and future was being reported as a mark you had failed to record — a permanent red count for doing nothing wrong. `lib/analytics/data-quality.ts` now counts only the rows a mark can exist for. - **Nine fix waves behind it, audited ten times; every fix proven red on revert before it was kept** — what each round found, and what was ruled not a defect, is recorded in `docs/DECISIONS.md`. - **No dependency was added, removed or upgraded.** The only lines this release changes in `package.json` and `package-lock.json` are version numbers. - **The uninstaller still warns and copies first (unchanged since v3.8.0).** Before the "Delete the application data" option can act, the uninstaller names the journal database and the licence key, copies both (they live in `vyuha.sqlite`), the sidecar's pre-migration `backups\` snapshots and your attachments to `Documents\Vyuha-backup-`, and asks; Cancel keeps everything in place, and if that copy cannot be made — a full disk, a OneDrive files-on-demand placeholder — the uninstall stops with nothing removed. Ticking the box erases the data folder only once that copy exists. - **Not in this release, stated plainly:** neither broker source places an order, and neither ever will from this screen — the pins that refuse it are part of the adapters. **Options and futures are not priced by these feeds**; contract-keyed marks are deferred rather than approximated, because the underlying's price is not the contract's. Telegram notices for a stop or a target are still **cut** and become their own release after this one — that word stays out of every Pro description until the feature exists. There is still **no `openalgo-charts` pilot**; `lightweight-charts` stays where it is. Kelly still takes the win rate and payoff **you** supply — nothing is inferred from your journal yet. The holiday list is bundled and refreshed by hand once per release: **nothing fetches a calendar**, and no host is contacted for one. ## v4.1.0 — 2026-09-07 *The release where the Live Desk can be priced by a bridge you already run. The OpenAlgo feed that shipped switched off in v4.0.0 is switched on — behind a disclosure every install re-accepts, at an interval you set, sending the trading symbols of your open positions and nothing else about them. Around it: the Sizing Lab's volatility tab now shows both of its variants side by side, the Market Atlas says which copy of its classification maps it grouped by, an instrument can carry the date its company reports, and the portfolio-heat tile prints the profit its trailed stops would hand back. One migration, 0068, and no dependency changes — `package-lock.json` is untouched.* - **The OpenAlgo live price feed is switched ON.** `OPENALGO_FEED_ENABLED` in `lib/quotes/types.ts` is `true`, and that one line is the whole of the release switch: the adapter, its capability block, its tests and migration 0067 all shipped in v4.0.0 and were only withheld. **Settings → Live feed now offers three sources** — the end-of-day bhavcopy already on this machine (still the default), a mark you type, and **the OpenAlgo bridge you run on your own machine** — with the **1–5 second** on-screen refresh slider and the note that your broker's API session expires every day and has to be signed in again. That is stated as **the broker's rule**: no regulator is named, because no circular saying otherwise is cited anywhere in this repository. Being offered is not being allowed to run: `selectProviderId()` re-checks the acknowledgement at every selection and `/api/live/feed` answers 403 until it holds, so flipping the constant back withdraws the feature from the registry, the route, the Settings radios and the resolver at once. - **What the feed asks, and of whom.** While the Live Desk is open, Vyuha polls `/api/v1/multiquotes` on **your own bridge** — `http://127.0.0.1:5000` unless you enter another address — at the interval you set, clamped to 1–5 seconds in code, and refuses more than 10 requests a second whatever the slider says. The request body is your API key and the **trading symbols and exchanges of your open positions, at most 500 of them, and nothing else**: no quantity, no entry price, no stop, no P&L, no account. Checking the connection calls `/funds` once, and so does the desk each time it opens and each time its price stream reconnects — same host, same key, nothing further sent — and Vyuha keeps nothing from the answer but that it arrived and how long it took. Polling starts with the desk and stops with it. **No new network host is added by this release.** - **The desk consumes the stream, so the marks on screen actually move.** When the source you picked is one that streams, `/live` opens `/api/live/stream` and refreshes each position's mark as the answers arrive, at the **1–5 second** interval the slider sets. It closes the connection when you leave the screen or switch to another tab, and reopens it when you come back — so the slider is a control over something observable, and nothing polls behind your back. - **Ticks are still never written.** The feed refreshes the screen; **one mark per position per IST day** is what reaches your journal — the last price of the session, or the price when you press *Save today's mark*, whichever comes first. The close-of-session mark is now written **by the app itself**, once, after 15:30 IST: the desk reconnects its stream once at 15:31 IST while it is open and the connect door writes it, or it is written the next time the desk opens that day. It used to have no caller at all, so the only mark that ever reached the journal was one you pressed the button for. And *Save today's mark* **no longer overrides the refusal to write at the weekend** — it waives the clock, which is what it is for, and nothing else; a Saturday press used to stamp Friday's price under Saturday's date. Whether a mark already exists is decided **per symbol per IST day**, so a second account's open positions get their own mark on the same day. A failed poll leaves the last mark in place, labelled with the date it belongs to, rather than blanking or guessing. - **One reminder a day when the bridge is not answering.** If you have picked the bridge and it is unreachable or has no key, `/live` shows a short **"Connect your feed — 20 seconds"** prompt — **once per IST day**, keyed to the day rather than to the visit, so returning to the desk five times does not produce five of them. It states the problem and where to fix it, and nothing else. - **Fix wave 2 — what the desk does, and what the docs said it did.** The stream now follows the account switch instead of pricing the book you left; keyboard focus follows the ROW rather than its index, so `j`/`k` stay on the position you were on when the list reorders; a stopped feed stays reported as stopped instead of reading as connected; and a screen reader hears **one announcement per link change** instead of one per price. The strip reads **Live** once a quote-bearing frame has arrived on a subscribed connection, and heartbeats then keep it there — a heartbeat alone never earns it, so a link that has carried no live quotes says it is connected and **not streaming** instead, which is what it is after hours and before the first frame; a refused subscribe reads **Feed stopped** with the provider's own reason and stays stopped for that connection. The close-of-session mark gains a trigger you can observe: the desk **reconnects its stream once at 15:31 IST** while it is open, and the connect door writes the mark — so "written by the app itself" holds whether or not you press anything, and if the desk is shut at 15:31 the mark is written the next time you open it that day. Already-marked is decided **per symbol per IST day**, so a second account's open positions get their own mark on the same day. Two copy corrections ride with it. The write refusal is a **weekend**, and the docs said "on a non-trading day": there is no exchange-holiday calendar in this version, so the narrower word is the true one and a holiday calendar is a 4.2 candidate. And `/funds` is posted on **every** connection check and on **every** desk open or stream reconnect, where the docs said "once" — the same host with the same key, nothing further sent and nothing further kept, which is why `OPENALGO_DISCLOSURE_VERSION` stays `"2"`. - **Fix wave 3 — a price you type is the one that stands.** Until this wave a mark typed AFTER the automatic close-of-session row — in the risk dialog's *Current price (MTM)* field, or on the equity page — was written beside it and then silently lost: the typed writers inserted without deleting, and every reader takes the first row it finds for that symbol on that date. Fix wave 2's 15:31 reconnect made the automatic row exist on every day the desk was open, so the correction you typed at 16:00 was discarded and the dialog echoed the bridge's price back at you. **A price you type yourself is that day's mark: the automatic close-of-session mark does not overwrite it, and typing after the close replaces the automatic one; any bhavcopy applied for that day — the Auto-MTM job if you have switched it on, a file you drop or paste yourself, or the history backfill — replaces it with the exchange close.** The typed writers now replace the day's row for that symbol, exactly as the live door and the bhavcopy job already did, so **one row per symbol per IST day** is still the whole contract — and that sentence now appears on all seven surfaces that describe the mark, where none of them said anything about it before. `OPENALGO_DISCLOSURE_VERSION` stays `"2"`: this is a rule about which row of your own table wins, on your own machine — no new host, nothing new sent and nothing new kept. - **Fix wave 3 — what a typed mark cannot be.** A mark typed on an **option or future** is refused: such a trade carries its underlying as its symbol, so the premium would be stored under RELIANCE and, with the rule above, erase the cash mark every RELIANCE share position reads. The risk route answers "Marks for options and futures are not stored in this version." to a request that carries only a price; the risk dialog, which always sends its stops too, saves them and says the price was not stored; the edit form says the same, the create form no longer shows the field for an F&O trade, and the unmarked-holdings panel no longer lists derivatives. The bulk paste is different: its line names the underlying, so "NIFTY 23450" is an index level and is stored as one. A typed **0** is refused before anything is written (it used to be refused after the stops beside it had been saved), a pasted 0 line is named in the result, a paste dated to a future day is refused (a year typo would have outranked every real day), and a thousands-grouped price ("3,100.50", "1,23,456.00") is read as one number instead of as a ₹3 price with a ₹100.50 stop, and a tight comma line where a comma could be a thousands separator ("NIFTY,23,450", "ITC,410,395") is refused, and the result names both safe spellings — one for a single number, one for a price and a stop. - **Fix wave 3 — the strip says what the link is doing, per connection.** A link that has carried no live quotes now reads **connected but not streaming** rather than "no prices yet": after hours the rows really do carry end-of-day prices, so the thing that is missing is the stream, not the prices. And the strip no longer keeps the DESTROYED link's phase across an account switch — it is derived at render from the connection it describes, so switching account no longer shows the old book's link state until the new connection's first frame arrives. - **Disclosure v2 — every install re-acknowledges before anything pulls or polls.** `OPENALGO_DISCLOSURE_VERSION` moves from `"1"` to `"2"`, and because the check compares with `===`, a stored `"1"` is refused with no extra code. The dialog gains its own **"What the live price feed does"** section (`OPENALGO_FEED_ITEMS`, `lib/domain/openalgo-disclosure.ts`): the feed is a second switch and not part of the pull, the cadence and where you set it, what each request carries and what it does not, the `/funds` probe and when it is sent, the loopback default, that ticks are never written, and the daily broker re-sign-in. `docs/client/PRIVACY.md` **item 3 is widened rather than joined by a fifth** — the poll goes to the same broker bridge, only once you switch it on — so "Exactly four kinds, and only one of them is automatic" and "There is no fifth thing" are both still literally true. In-app Help for the Live Desk and for Settings names all three sources and says the bridge is opt-in. - **Sizing Lab — the volatility tab shows both of its variants.** Inside the **Volatility · Turtle unit (N)** tab, a two-position **Turtle unit (N) ⇄ Varsity (% volatility)** switch prints the sibling variant's size and formula beside the primary one, each panel headed by the variant that produced its number. **The seven-tab rail is unchanged** and so are the `?method=` deep links: the switch is a presentation choice inside one tab, and both panels read the same computation the compare table does, so the tab, the pair and the table cannot disagree. - **The % volatility tab now states its true relation to the Turtle unit.** It read "At identical inputs it returns a larger quantity than the Turtle unit", which is false on the screen a reader opens: both methods divide a budget by the same ATR and differ only in the budget, so Varsity returns the Turtle unit's quantity **times the per-trade risk % divided by the Turtle unit risk %** — and at the Lab's own opening sample (0.25% against 1%) that is a **quarter**, not "larger". The engine comment that said "around twice" is corrected the same way, and a test now pins the sentence and the arithmetic together. - **Market Atlas → Sectors says which map it grouped by.** Beside each bundled classification map's as-of date sits the **sha256 of that map's canonical JSON, as the app loaded it — not of the file on disk** — `lib/data/sector-map.json` and `lib/data/nse-index-map.json`, first twelve hex on screen and the full 64 in the title attribute, which says which of the two it is. The distinction is not pedantry: the file carries its own formatting, so `sha256sum lib/data/sector-map.json` returns a different 64 hex from the one on screen, and a buyer who did not know that would read a tampered build. The maps are refreshed by hand once per minor release, so the date alone cannot tell two builds of the same dated snapshot apart. Hashed once per process, server-side. - **An instrument can carry the date its company reports.** `/instruments` gains a **Results dates** card: rows that already have a date are listed, a search box reaches any other symbol, and up to 100 rows are rendered at a time with the shortfall stated rather than silently trimmed. On `/live` the row and the detail pane show a **"Results in N days" / "Results today" / "Results tomorrow"** chip — **free**, because it is a date fact about the company, like the symbol. A date that has gone by shows nothing on the row and "That date has passed." in the pane; the date itself stays on your record. **Nothing fetches it**: no results calendar is bundled and no host is contacted — it is there because you typed it. The chip is a noun phrase and a number of days, and no sentence follows it. - **Portfolio heat also prints what is locked in at stop (Pro).** The heat tile adds **"Locked in at stop ₹X — computed from the rows whose stop already sits beyond entry, if every stop is hit."** The figure has been computed since v4.0.0 and printed nowhere: heat counts each row as `max(risk, 0)` so a winner cannot cancel another position's real risk, which is right, but the money those trailed stops would hand back was falling off the screen. It is stated on its own line and never netted into heat. - **The Live Desk's virtualiser measures its rows.** Past 40 open positions the desk windows the table, and the window was sized from a `ROW_HEIGHT` of 44 px while a windowed row actually renders at about 66.6 px — the Mark cell is two block lines. Nothing measured, so `j`/`k` scrolled to a position that drifted further off every row: **628 px below the fold by row 18**. Rows are now measured as they render, 66 px is only the first guess, and the scroll padding accounts for the 2 px between the viewport's border box and its client box. Under 40 positions nothing changed — which is why three earlier scroll fixes all passed while this was broken. - **Two `/live` browser tests that could not fire before.** The free-licence payload assertion now runs on a **seeded free context** (an expired trial) instead of skipping, so the wire really is checked for the Pro fields it must not carry; and the `j`/`k` scroll-geometry test is repeated on the **windowed** path, above the 40-row virtualisation threshold, which the six-row case never reached. A third, test-only change: the mark-label assertion in the desk spec now accepts every label the desk can legitimately produce and requires at least one undated "End of day" row, instead of pinning the one label a solo run happened to show. The e2e suite shares a database, so that row read "End of day" alone or "No mark stored" depending on which specs ran before it — a red that was never about the desk. - **"Not enabled in v4.0" is now "not enabled in this release"** — the planned providers' labels, the error they throw and their health reason. A version number baked into a string is a string that lies one release later. - **One migration, 0068**, additive: `instruments.results_date`, nullable TEXT, ISO `YYYY-MM-DD`, validated on every write. It is reference data, not account-scoped, and it travels in a backup because `lib/backup.ts` dumps every schema column. - **No dependency was added, removed or upgraded.** `package-lock.json` is untouched and the only line this release changes in `package.json` is the version number. - **The uninstaller still warns and copies first (unchanged since v3.8.0).** Before the "Delete the application data" option can act, the uninstaller names the journal database and the licence key, copies both (they live in `vyuha.sqlite`), the sidecar's pre-migration `backups\` snapshots and your attachments to `Documents\Vyuha-backup-`, and asks; Cancel keeps everything in place, and if that copy cannot be made — a full disk, a OneDrive files-on-demand placeholder — the uninstall stops with nothing removed. Ticking the box erases the data folder only once that copy exists. - **Not in this release, stated plainly:** Telegram alerts for a stop or target are **cut** and become their own release after v4.2 — "alerts" stays out of every Pro description until they exist. There is **no `openalgo-charts` pilot**; `lightweight-charts` stays where it is. Kelly still takes the win rate and payoff **you** supply — nothing is inferred from your journal yet. The five NSE size-index lists are not built. **Native Upstox and Angel One price feeds are v4.2**, and until then the planned providers refuse with the reason rather than pretending. The v4.0.0 notes said a `results_date` on instruments had not made that release; it is in this one. ## v4.0.0 — 2026-09-06 *The release where the journal starts looking at the positions you still hold. A Live Desk that prices them and says what each one is risking, a chart that draws the trade — entry, stop and target — as a zone instead of three loose lines, a Sizing Lab that prints the formula beside every number it returns, and a Market Atlas computed from the end-of-day bars already on your machine. Everything here is computed on your own PC from data it already has, and v4.0.0 adds no new network host.* - **Live Desk (`/live`) — your open positions, priced.** Free, and free for good: symbol, product, quantity, average entry, the mark, the day's move, unrealised ₹ and %, and how many days you have held it — twelve sortable columns, all accounts together with an account filter in the header, a market clock, and a chip on every row naming the mark it was priced from: **End of day · ** for a bhavcopy close, **Stored mark** (undated) for a price you typed into `mtm_prices` — that table has no reliable as-of column — a bare **End of day** when only the trade's own closing price is on file, or **No mark**. Only a dated mark can earn the **Stale** badge, shown when a row is older than the newest mark on the desk. It is your own record, so it is not sold. **Pro adds the forward-looking arithmetic:** risk at stop, open R, % of capital, the portfolio-heat strip and sector concentration, and the chart overlay. The Pro columns render as locked chips beside a free row — the screen is never taken away, and it never hides a number you already own. - **A position chart that draws the trade, not just the price.** The expanded row gets a candlestick chart (a line on the compact card) with the entry, stop and target drawn as a shaded reward-and-risk zone by a new `ISeriesPrimitive` — `components/charts/lw/position-zone-primitive.ts` — rendered by the charting library already in the build (lightweight-charts 5.2.0). **No dependency was added or upgraded for any of this**: the whole release changes neither `package.json` nor `package-lock.json`. - **Sizing Lab (`/sizing-lab`, Pro) — seven ways to size a position, each with its formula on screen.** Fixed rupee, fixed fractional, the Turtle volatility unit, % volatility, Kelly (your own win rate and payoff — nothing is inferred from your journal yet), fixed ratio and equal weight, priced for CNC, MTF, intraday or F&O with the charge schedule the segment actually uses. The per-trade risk slider **opens at 0.25% of capital** and runs 0.1–5%; a **deploy cap of 25%** is on by default and visible, because a cap that is off until you switch it on is not a cap — raw Kelly routinely returns a position larger than the account. A portfolio heat ceiling stays EMPTY until you set one: Vyuha draws a limit you chose, never one it invented. Sending a result back into your stored risk settings takes an explicit button and a dialog that shows **old → new** before it writes. - **Market Atlas (`/atlas`, Pro) — market context from your own bars.** Breadth, advance/decline, new highs and lows, group and cap-band returns and a staleness ledger, all computed from the end-of-day bhavcopy bars in your own database — nothing is fetched to draw this screen, and each panel prints the public definition it uses. Rotation is labelled **"current classification, not point-in-time"**, because a name sits in the band its index membership puts it in today. Without a licence the tab is **locked with a static preview rather than hidden**, so you can see what it is before you pay for it. Bars arrive three ways: the daily download you may already have on (auto-MTM), a **backfill you start yourself** — up to 252 past files, one every 1.5 seconds, with a confirm, a progress list and a stop button, keeping whatever it has already saved — or by dropping bhavcopy files you already hold, which makes no network request at all. NSE's UDiFF file is the primary download with the legacy `sec_bhavdata_full` as the fallback. `docs/client/PRIVACY.md` item #2 is amended to state all of this before it can happen. - **The bundled index map gains cap bands.** All eight NSE size lists (Nifty 50, Next 50, 100, 200, 500, Midcap 150, Smallcap 250, Microcap 250) are now in `lib/data/nse-index-map.json` beside the 54 sectoral ones — 62 indices, 1,379 symbols — so a position can say whether it is large, mid, small or micro. Each list carries its own as-of and capture date. The lists are downloaded on the owner's machine by a build script; the app itself contacts no index website. - **THIRD-PARTY-NOTICES.txt** ships inside the installer and in the client ZIP, naming every open-source component and its licence. - **Four database migrations, 0064–0067**, all additive: the risk inputs the sizing methods need (`risk_config`), the Atlas daily cache, the backfill ledger, and the live-feed settings. - **No broker feed prices the desk.** A row priced from the end-of-day bhavcopy reads "End of day · "; a row priced only from a mark you typed into `mtm_prices` reads "Stored mark" with no date, because that table has no source or reliable as-of column; a row with only the trade's own closing price reads a bare "End of day"; only dated marks can show Stale. The OpenAlgo feed adapter, its consent sheet and migration 0067 are all in the build, and all of it is **withheld by one compile-time constant** — `OPENALGO_FEED_ENABLED` in `lib/quotes/types.ts` is `false`, so the provider is not in the registry, the Settings card does not offer it, and a POST asking for it is a 400. Turning it on is what v4.1 is about, and it arrives with a rewritten disclosure — cadence, the symbols sent, the `/funds` probe — and an amended `docs/client/PRIVACY.md` item #3. - **The uninstaller still warns and copies first (unchanged since v3.8.0).** Before the "Delete the application data" option can act, the uninstaller names the journal database and the licence key, copies both (they live in `vyuha.sqlite`), the sidecar's pre-migration `backups\` snapshots and your attachments to `Documents\Vyuha-backup-`, and asks; Cancel keeps everything in place, and if that copy cannot be made — a full disk, a OneDrive files-on-demand placeholder — the uninstall stops with nothing removed. Ticking the box erases the data folder only once that copy exists. - **Still true for anyone coming from v3.7.1:** the installer runs the old, unguarded v3.7.1 uninstaller once, and that one has no backup step, so leave "Delete the application data" UNTICKED — ticking it there erases the data folder with no copy taken. From v3.8.0 on the guard is in place. - **Not in this release, stated plainly:** Telegram alerts for a stop or target are not built; the owner's proprietary Atlas widgets are not here and will arrive as a separately signed daily file, not as code; cohort analytics stay dark until there is enough history; the OpenAlgo live feed is withheld (the code ships, the constant is off, and it returns in 4.1 with disclosure v2); and there are no native broker feeds — Upstox and Angel One are v4.2. Journal-derived Kelly inputs and a `results_date` on instruments did not make this release either. ## v3.9.1 — released 2026-09-06 *A patch release with four items and nothing else: what Vyuha says about itself, what the import route will accept, when a licence key is bound to a machine, and a 220ms animation offset that shipped in v3.9.0. Tagged `v3.9.1` at commit `0e18b1d`; the published artefacts were built by CI run 33987227426.* - **Positioning: desktop or web, the trader chooses.** "100% local & offline" is retired as a sales line. Vyuha Desktop keeps every technical guarantee it had — a licence verified on your own machine with no server call, a 7-day trial with no signup, one download-only check at launch, and your journal in one SQLite file on your PC — but they are now stated as facts about the desktop app rather than as a promise about the product. A web platform is in development. `docs/client/PRIVACY.md` keeps its four-kinds list word for word, now stated as a Vyuha Desktop statement. - **The import route refuses a file before it reads it.** Uploads over **32 MB** are declined with a 413 and a message that says the limit, checked from the file's own size before a single byte is read into memory; the route declares `maxDuration = 60` so a slow parse cannot run unbounded. The readability guard now checks **magic bytes** first — zip/xlsx, legacy CFB `.xls`, `%PDF`, or text-like — and refuses a file whose extension and content disagree, instead of handing an untrusted buffer to the spreadsheet reader to find out. CSV and PDF still go straight to their own parsers, and a file the reader can open at all still reaches the generic column mapper, so nothing that imported before stops importing. - **SheetJS updated to 0.20.3, vendored in the repo.** The registry copy (`xlsx@0.18.5`) is the one SheetJS abandoned; **CVE-2023-30533** is fixed only in the line published on the vendor's own CDN. That build is now committed as a tarball and installed from the file, so a build never depends on a third party's host being up. - **A licence key bound to one computer is now refused when it is activated, not after.** The activation route did not pass the machine id, so a bound key entered on another machine appeared to activate and only failed later. It now gets the same check the app already applied when reading the licence, with the same message. Keys issued without a machine binding activate exactly as before. - **Dialogs, popovers, tooltips and the command palette open in the right place.** The entrance animation ended on a transform that Tailwind v4 composes with its own positioning instead of replacing, so for 220ms every one of those surfaces was drawn offset — up to 190px for the search panel — and then snapped back. Fixed in `28d6655`, already on `main` before this release was cut. - **The uninstaller still warns and copies first (unchanged since v3.8.0).** Before the "Delete the application data" option can act, the uninstaller names the journal database and the licence key, copies both (they live in `vyuha.sqlite`), the sidecar's pre-migration `backups\` snapshots and your attachments to `Documents\Vyuha-backup-`, and asks; Cancel keeps everything in place, and if that copy cannot be made — a full disk, a OneDrive files-on-demand placeholder — the uninstall stops with nothing removed. Ticking the box erases the data folder only once that copy exists. - **Still true for anyone coming from v3.7.1:** the installer runs the old, unguarded v3.7.1 uninstaller once, and that one has no backup step, so leave "Delete the application data" UNTICKED — ticking it there erases the data folder with no copy taken. From v3.8.0 on the guard is in place. ## v3.9.0 — trust the numbers *Built 2026-09-04 against the owner's own broker exports, read in place. Where v3.8.0 asked whether a broker file was read correctly, v3.9.0 asks the next question: does the book agree with what the broker itself says?* - **The Dhan transaction report is the book; the Realised P&L is the reference.** Importing both into one account used to double every position — the two files state the same trades differently, so duplicate detection could not see it. A statement that carries broker figures AND trades now stores the figures always, and imports its trades only when that account holds no transaction report for the broker; either way the import says which happened. - **Broker Truth — your broker's stated figures beside your journal's.** A new Pro screen (**Import → Broker Truth**) puts the broker's own numbers next to Vyuha's, per financial year, per segment and per scrip, with the difference and — where the difference has a knowable cause — the cause. Nothing is averaged, blended or corrected into anything else: the two sides stay two sides. Each reason is a counted fact from your own book (sales with no purchase and what they sold for, charges a file states nothing about, quantity still open against a scrip the broker calls realised, a product filed under a different segment); a gap with no knowable cause is shown with no cause rather than an invented one. A demat holding summary adds a quantities-only comparison — what the broker holds, what your book has open, and the difference. The status word is a direction, never the word "mismatch": *Within tolerance · Broker higher · Vyuha higher · Not compared*. Lines are joined on **ISIN first and on the symbol only as a fallback**, and the screen says which was used, because a symbol join can be wrong. In the "All accounts" view it renders one book per account rather than one summed book — two brokers' statements added together is a figure no statement states. **Seven files feed it**: **Dhan Realised P&L**, **Paytm Money Realized P&L**, **Angel One P&L Statement**, **Dhan Demat Holding summary**, **Dhan DP Charges**, a **Dhan contract note** and an **Angel One account statement** — the last three state CHARGES, and "Charges the broker states" is the table that reads them. A charge line is ONE broker's statement against ONE broker's trades: two brokers' fees are never added together, and a broker whose book holds nothing for that year or that day is shown as *Not compared* rather than against a zero. - **Seven new file formats read natively — none of which imports a trade.** Paytm Money Realized P&L, Dhan DP Charges, Dhan Demat Holding summary, Dhan contract note (PDF), Upstox ledger, Angel One account statement and Angel One P&L statement. Six store the broker's stated figures; the contract note enriches trades you already have; the DP-charge, Upstox and Angel statements also post to **Cash & Ledger**. Each one warns out loud that it created no trades, and the book for a broker stays what it was — the tradebook or the Global Transaction Report. **A parser must see the broker's own fingerprint before it claims a file**, either the name in the filename or a name inside the file; shape alone claims nothing. **Two of the seven are recorded exceptions** — Dhan's DP Charges report and Angel One's P&L statement name no broker anywhere, in any cell, sheet name or filename, so their *format* is the fingerprint (an exact sheet-and-header conjunction, worth 0.9; the broker's name in the filename adds 0.1). Both are written up as deliberate exceptions in `docs/BROKER_FORMATS.md`, not as a precedent. A rival broker named in the filename, in a sheet name or in the title/banner rows above the header vetoes both claims outright; the data grid is never read for a name, because PAYTM and ANGELONE are listed companies you can hold. - **A contract note never creates a trade.** It adds the **fill times** and the **instrument type** to trades your book already holds, matched on symbol, date, side and quantity. The Global Transaction Report is the book; a note covers one day on one exchange pair, and importing it as trades would double-book every execution. An enrichment that matches nothing is reported, not stored. - **The Dhan MTF Report is a web screen with no export in any format** (verified 2026-09-04), so it is not an import source and there is no parser for one. Vyuha's MTF figures come from the files that do exist — the Global Transaction Report and the Realised P&L for the positions, the ledger for MTF interest. - **The Trades list now has a total order, and it did not before.** Rows imported in one batch share a `created_at` to the second, so ordering by (sell date, created time) left every row inside a batch tied — their order within the batch was **unspecified until now, and is now by id, which is insertion order**. On the owner's own book this was not an edge case: **842 of 905 rows sat inside a tie block** (174 blocks, the largest 36). Only the order of tied rows changed — every tax-by-FY total is identical to the paisa, every harvest lot keeps its long/short status, and the holding clock is unchanged. - **/trades is served in pages of 500 from the server.** Filters, views and sorting are applied in SQL, and **every count is computed over the whole filtered set, never over the page you were sent** — a count that quietly means "of what we fetched" is a fabricated denominator. The KPI strip, the acquisition panel, the unmarked-holdings panel and the delete-by-scope list remain whole-book figures. Measured on a 25,000-trade book: **/trades 1,968 → 1,063 ms median** (95th percentile 2,280 → 1,115), the last route over budget. - **Switching accounts no longer leaves the previous account's rows on screen.** The Trades table kept rendering the earlier server render's rows after an account switch while the totals above it had already changed; found by an end-to-end flow, not by a unit test. - **Same-day covered shorts are labelled as what they were.** Sell first and buy back the same day and the closed position now says so; the arithmetic was already right, the meaning was missing. A sale an existing holding could deliver is not called a short, and cash equity cannot be short overnight, so a multi-day sale without a purchase stays an unpriced sale. - **Bought on one exchange, sold on another — noted, not split.** A closed position whose buys and sell span NSE and BSE now carries a note saying so. It is deliberately **not** split into two positions: that was measured in v3.8 and rejected, because on the owner's 7,544-execution book it turned 38 sales-without-a-purchase into 101. One holding; the exchange is where the fill happened. - **Two limits found by driving the engine harder than any real file will.** A book with 190,000 legs on one symbol crashed the import pairing with a stack overflow at around 123,000 positions — now fixed and pinned by a load case. And every Excel `.xls` in the older BIFF8 format declares its whole sheet as its used range, so a 1,400-cell file was being read as 65,536 rows by every detector that examined it: the range is now trimmed once to what the sheet actually contains, taking a per-sheet flatten from 440 ms to 2 ms and file ranking from 3.7 s to under a second. - **Search, second pass.** The **ledger** and the **audit trail** are now searchable alongside trades, symbols, playbooks, instruments, sessions, challans, help entries and screens. A **floating search assistant** (**Ctrl + Shift + K**) stays open while you navigate, so a result can be opened, read and the next one tried without retyping; it can be dragged anywhere, remembers where you put it, and is pulled back on-screen if it is reopened on a smaller display. Ctrl+K's palette is unchanged, and both surfaces run the same engine. One copy correction: a group of results that is not filtered by your account selection now reads "across all accounts" rather than "all accounts", which in the aggregate view read as a claim about those rows specifically. - **Migrations 0061, 0062 and 0063.** A v3.8.x journal upgrades in place on first launch — the ledger and audit search indexes, the store for brokers' stated figures, and the Trades index that carries the new total order. As always, **the app writes a backup of your database before applying any migration**. - **The uninstaller still warns and copies first (unchanged since v3.8.0).** Before the "Delete the application data" option can act, the uninstaller names the journal database and the licence key, copies both (they live in `vyuha.sqlite`), the sidecar's pre-migration `backups\` snapshots and your attachments to `Documents\Vyuha-backup-`, and asks; Cancel keeps everything in place, and if that copy cannot be made — a full disk, a OneDrive files-on-demand placeholder — the uninstall stops with nothing removed. Ticking the box erases the data folder only once that copy exists. - **Still true for anyone coming from v3.7.1:** the installer runs the old, unguarded v3.7.1 uninstaller once, and that one has no backup step, so leave "Delete the application data" UNTICKED — ticking it there erases the data folder with no copy taken. From v3.8.0 on the guard is in place. **Known limits, stated rather than buried.** - **Angel One's P&L statement carries no ISIN column and no date column of any kind.** Its scrip figures are therefore joined on the symbol, and the financial year comes from the statement's own period ("To Date"). Nothing is invented to fill either. - **Dhan's Realised P&L states no period.** It contributes per-segment figures but no financial-year line, because filing figures under an unstated year would be a fabricated denominator. - **One load case (`a7-cash-ledger`) is sensitive to machine noise.** It fails intermittently on a busy development laptop at the previous release's code too — measured, three runs each way — and nothing in the engine it times was changed. The idle CI runner is the arbiter. ## v3.8.0 — trust the import *Cut 2026-09-04 after three adversarial audit passes — the diff, the fix wave, and the second fix pass — each proven with red-on-revert tests.* The theme is the word "trust": every figure a broker file produces should survive being checked against the broker's own statement. The release was built against the owner's own 29 broker exports, and its harness caught a parser returning an empty result with a 0.98 detection score on the first run. - **Paytm Money pairs on ISIN, and the file's own charges decide the product.** Paytm switches its `Script` column from ticker to numeric code mid-window, and pairing on that cell split 35 securities into two books — a phantom open buy under one label and a phantom "sale with no purchase" under the other. Fills now group on ISIN (label-independent), and a scrip-day whose stamp duty sits between the intraday and delivery rates is split into an intraday pair and a delivery remainder rather than booked as delivery by the calendar. On the owner's 7,544-execution book: **804 → 793 positions, opening sells 72 → 38** — the 38 that remain are the SME IPO allotments, which genuinely have no buy — with charges conserved to the paisa. The banner claiming an unpriced sale was "already counted in Net P&L" is gone: only its charges ever were. Migration 0059 re-keys the stored Paytm de-duplication hashes on ISIN so a re-import de-duplicates correctly. - **The import summary now warns about the shape of what it read.** When opening sells are 10% or more of the positions in a file, or a security appeared under two labels, the summary says so — with the count — before you trust Net P&L. - **Remove a broker's imported rows, then re-import clean.** A broker-scoped remove on the Import screen (account-scoped, confirmed, audit-logged) takes every row that broker's imports created into Trash, from where the whole set is restorable under its original ids in **Backup & Restore → Deleted items**. Ledger and IPO rows are unlinked, never deleted. It exists so a mis-paired book can be replaced in one step instead of ~50 hand deletions. - **Dhan connects the way the form promised.** The Client-ID box no longer blocks re-saving an enrolment (the server keeps the stored key; no plaintext leaves it); a 401 with enrolment present clears the cache, mints once and retries; an enrolment that is stored but unreadable is surfaced as exactly that instead of being swallowed; every connection row carries a **mode pill** ("PIN + TOTP · mints its own token" vs "pasted token · expires …") with a one-time pop-up when a pasted token expires; and in All-accounts mode "Save connection" names the account it will write to — there is no silent default pick. - **Six parser changes, one of them a silent-empty fix.** Dhan's Global Transaction Report now reads the 2026 date grammar (`dd-mm-yyyy HH:MM`) — it had been detecting at 0.98 and importing **zero rows**, and a detected GTR that parses to nothing now warns with the unparsed sample. New: **Dhan Realised P&L** (`.xls`, the per-segment charge reference), **Dhan P&L `.xlsx`**, **Dhan Ledger** and **Dhan Dividend payout** as cash sources on the Cash & Ledger screen, and **Angel One `Trades_History`** (per-row charges; the flat per-order F&O brokerage lines are summed into charges, never into quantity). Zerodha detection now requires a Zerodha fingerprint before it claims a tradebook — it had been claiming Angel One's file at 0.50 on two column names. - **A bigger, richer symbol snapshot.** 5,691 ISINs (NSE + NSE Emerge + BSE) now carry name, board, BSE code and series; a BSE code resolves keyed on the code, never the ticker (FOCUS, HSIL and KALYANI are different companies on the two boards); NSE still wins an ISIN collision; the SME list importer reads today's file (`NAME_OF_COMPANY`, `ST` series). - **A four-level NSE sector taxonomy — data layer only.** 2,229 ISINs classified macro / sector / industry / basic industry with a confidence tier and provenance; the risk cockpit's sector concentration shows the tier. Sector *analytics* are v4.0 — this release stores the map and says how sure it is. - **A pre-open session band (09:00–09:15).** Session edge no longer files a pre-open fill under "opening drive"; the band names the fill time, and a pre-open order filling at 09:15:00 is stated as indistinguishable from a regular fill. The session review now reports how many trades carry no time instead of treating "no time" as "before the cutoff". - **Search (Ctrl+K).** One box over trades (a full-text index with mid-word hits across notes, tags and symbols), symbols, playbooks, instruments, sessions, challans, help entries and screens, with category chips. Gated screens are shown with a lock and one line on what unlocks them — never hidden — and your own trade rows are never locked. A previous-search control and a "back to where I was" control, neither of which touches browser history. On a 25,000-trade book a query returns in about 15 ms. - **Deep links keep their word.** `/trades?…` links now persist the query string (results are re-enterable, browser Back works) and honour `basis=unknown` and every `view=` the trades select offers — a URL that cannot mirror "Loss — closed" is a URL that lies. - **The uninstaller warns and copies first.** Before the "Delete the application data" option can act, the uninstaller names the journal database and the licence key, copies both (they live in `vyuha.sqlite`), the sidecar's pre-migration `backups\` snapshots and your attachments to `Documents\Vyuha-backup-`, and asks; Cancel keeps everything in place, and if that copy cannot be made — a full disk, a OneDrive files-on-demand placeholder — the uninstall stops with nothing removed. Ticking the box erases the data folder only once that copy exists. A data folder with no journal in it (a crashed first launch) has nothing to protect, so it is skipped rather than blocking the uninstall. **Upgrading from v3.7.1: the installer runs the old, unguarded v3.7.1 uninstaller once — leave "Delete the application data" UNTICKED.** From v3.8.0 on the guard is in place. - **Every date is IST.** Forty-one screens that computed "today" in UTC now use one IST helper; the owner's book priced identically before and after. - **Guards behind the scenes.** The audit log flags a before/after record whose keys drift (the class that survived two v3.7 audits) — outside production it throws, so a test that exercises the write fails on the shape; in the shipped app it records the entry and logs a warning, because a mutation must not lose its trail over a logging defect; writes refuse the "All accounts" view with a typed error; a golden-book harness over 27 redacted real exports — exact shape counts and broker-stated totals — is a release gate, and the load suite runs as its own required CI job. **Nothing new leaves your machine.** Egress is unchanged: the exactly four kinds `docs/client/PRIVACY.md` lists, and no fifth. Search and the broker remove are same-origin calls to the app's own local server. **Not in v3.8 (planned for v3.9 "Trust the numbers"):** a Paytm P&L (`Realized P&L Detail`) parser; Dhan DP charges, demat holdings, Upstox and Angel One ledgers, the Angel One P&L statement; the broker-truth reconciliation screen ("broker ₹X · Vyuha ₹Y · Δ"); Dhan MTF Report and Contract Note parsers; `/trades` server pagination (its own before/after proof); short-sell and cross-exchange modelling. Sector analytics and the Live Desk are v4.0. Migrations **0059–0060**. ## v3.7.1 — the release (v3.7.0 was superseded unpublished) v3.7.0 was cut, tagged and fully verified — and then audited a **second** time, over the fix wave the first audit had produced and never seen. That pass (106 agents, 33 candidates, a three-skeptic refutation panel per finding, 40 refuted) found two things worth stopping a release for. Its draft was deleted without ever being published; the v3.7.0 tag remains for history. Everything in v3.7.0's notes below ships here. - **The first-run wizard could erase a capital base you had already set.** Its step-1 boxes were seeded once when the wizard mounted, so re-opening it from Settings → "Run setup again" showed **empty** boxes even when the account held real capital — and Continue read empty as *"cleared on purpose"* and wrote NULL over it, reporting success. Every %-of-equity figure in the app then read "—". The boxes are now derived from the live account rather than copied into state, so there is nothing that can fall behind. Capital is still optional: a box you genuinely empty still clears, and an entry that cannot be read (`₹5,00,000`) still refuses and says which box, instead of clearing it. An empty account name no longer advances the step as though it had saved. - **Three audit-log rows described changes that never happened, on paths you cannot undo.** After merging one account into another, the log claimed your weekly-review note, its completion and its score had all been *cleared* — when the note had in fact been appended to and neither other value moved; the brought-forward-loss merge said the same of a tax carry-forward record, and left out the provenance sentence it had just gained. Separately, clearing the STT box in the charge editor really did change what that segment is priced at, and the log said **nothing** about STT while reporting two rates that had not moved. All three now record exactly what was written. Nothing about money, tax or stored values was wrong in v3.7.0 — the second audit re-confirmed the paise boundary, the dated advance-tax engine's agreement with the old scalar path, and the migration backfills independently. These were a data-loss path and a truthfulness problem in the record of what changed. ## v3.7.0 — review & discipline - **The Trade Review Desk.** A new screen at **Review** (Pro/lifetime, after the 7-day trial) that answers "which trades have I not read back yet, and how did I actually trade this week?". A queue of closed trades carrying no review stamp — filtered, windowed, and always stating "showing N of M" rather than presenting a slice as the whole. Each row opens the same journal dialog the Trades screen uses; saving stamps the trade, and a trade with nothing to add can be stamped directly and reopened later. A **Sunday ritual** completes one ISO week with a note: what closed, what it netted and cost, the widest expectancy gaps by mistake tag, best and worst by R, and why positions were closed. Completing a week stores the score that was on screen at that moment beside the score recomputed today. It is in-app only — it sends no reminder, by Telegram or anything else. **The queue does not start from zero on upgrade:** closed trades you have already journalled — carrying a note, an exit trigger or mistake tags — are stamped as reviewed the first time this version opens your database, dated by the last time that row was touched rather than by today. A journalled book therefore opens with a non-zero "Reviewed n of m" and a shorter queue, instead of hundreds of rows of work you had already done; a trade nobody annotated stays in the queue, which is the point. It is not a claim that those trades were reviewed on the desk — the desk did not exist — only that the record shows they were read by hand. - **The weekly discipline score is now the Process Score, and your numbers will move.** One weekly figure for how a book was *traded*, built from five equal-weight components — planned (SL or target recorded), risk-cap (loss within its own risk), daily-stop (day net within your stop), rules-followed (a playbook, and no rule broken), reviewed (a review stamp) — each shown as "n of m · pct" with its own coverage, so the arithmetic sits on screen next to the number. Two changes move figures on upgrade, deliberately: - **A week with fewer than 10 closed trades no longer scores.** It shows "—", says what was short, and is **excluded from averages** instead of entering them as a zero. On a representative five-week fixture the honest average is **80 where v3.6 printed 32**, because three un-scoreable weeks were being averaged in as zeros. Averages now state their coverage — "across 7 scoring weeks of 12" — so a mean can no longer hide how little it was computed on. - **The score and the Target Tracker no longer substitute a limit you never set.** The old score fell back to ₹9,500 per trade and ₹25,000 a day when no per-trade cap or daily stop was configured, silently deciding whether your losses were "respected" against a number you had never seen. Those components now refuse and drop out of the mean rather than judge you by an invented limit, and the Target Tracker shows a dash and points at Settings instead of raising a STOP banner against a stop nobody set. Some other screens still carry default figures of their own — this release fixes the two that judged your discipline, not every default in the product. - **First-run onboarding.** A fresh install now opens a four-step wizard — account and optional starting capital, then getting trades in, then optional Telegram, then done. **Capital stays optional**: skip it and the reports that need a base keep saying "—" and pointing at Settings, exactly as before. "Run setup again" lives in Settings for anyone who skipped a step. An existing install with a book in it never sees the wizard. - **Advance tax is now measured against dated challans, not one running total.** Record what you actually paid — date, amount, and optionally the BSR code and challan serial — on the Advance Tax report. Each instalment is then judged against what had been paid **by its own due date**, replacing a single cumulative figure that treated a March payment as though it had been available in June. The s.425(2) safe harbour is decided by date, and anything paid after 31 March is named as **self-assessment tax, not advance tax**. The ITR pack gains a **"Taxes paid (advance tax)"** table and export in the return's own Schedule IT shape — blank, never 0, for anything it cannot derive. **If you record no challans, no computed figure changes.** - **Capital now resolves per account on eight more screens** — both trackers, the risk cockpit, the monthly report, the target tracker, cash openings, the pre-trade concentration limit, and the dashboard's total-capital tile. This is not only a multi-account fix: **it corrects single-account books too.** Compounding realised P&L writes the account's own row, so those eight surfaces had been reading the pre-compound figure while Settings and the performance page showed the compounded one — two numbers for one book, and nothing on screen looked broken. - **Lenses opens in about half the time.** 1718/1557 ms → **920/901 ms** on a seeded 25,000-trade book, with 94% less data crossing the wire. **Not one figure on the page moved** — every group, total and rate is still computed over your whole book; what changed is how much of it is rendered and sent. - **A failed Telegram digest is now remembered.** The note that a digest could not be sent is durable and visible from **every** route rather than only the dashboard, quotes the job's own reason, and clears on the next successful send. Dismissing it hides the strip without pretending the failure resolved. The strip also carries an opt-in button to ask this device's system for a notification — it promises nothing, because a system notification has **not been proven on a built installer**; the strip stays the record either way. - **Week-start fix — some weekly buckets were labelled a day early.** The ISO week bucketer emitted the **Sunday** rather than the Monday in any timezone east of UTC, which is every Indian user. Weekly rows may therefore re-label by one day on upgrade; the trades inside each week are unchanged. ## v3.6.0 — navigate & connect - **The sidebar is now grouped around how you work, and yours to change.** Screens live in nine groups — Import, Tax and Back Office are new — each showing its most-used screens with the rest one click behind "N more…". You choose what stays visible per group, by drag or by checkbox, and Reset brings the default back. A saved order from an earlier version is migrated, never discarded, and the screen you are on is never hidden from you. - **Expected-capital goals.** A ₹ or % target per capital bucket, with an optional date. Progress, gap and trailing run-rate are computed from your own realised record — never a projection — and a % goal with no capital on file shows "—" and points at Settings rather than inventing a base. - **Dhan connects once with PIN + TOTP.** Vyuha can store your client ID, PIN and TOTP secret (encrypted, machine-bound) and mint each day's access token itself — the sign-in call goes only to `auth.dhan.co`, Dhan's own endpoint. Storing these makes Vyuha a second factor for your Dhan account; the consent screen says so before you agree, and the paste-a-token path remains. - **Zerodha's official session exchange.** Log in on Zerodha's own page once a day, paste the request token, and Vyuha completes Kite's documented checksum-and-exchange itself. - **Auto-pull on launch — opt-in, once a day.** Pulls your saved broker connections at launch so the day's trades are waiting. Off by default, and anything the manual flow would stop and ask about still stops and asks — a collision is never auto-committed. - **Telegram end-of-day digest — opt-in, and called what it is.** Your own recorded numbers, sent to a Telegram bot you create yourself. This is the one feature that uploads anything, so it is off by default behind a disclosure that says plainly the content transits Telegram's servers. If Telegram is unreachable, the digest degrades to a quiet note on the dashboard. - **Brought-forward losses are enterable.** Losses from years before your journal starts can be recorded per year and head; the tax timeline, ITR pack and loss ledger honour them, including the year each vintage expires. - **The privacy claim now has teeth.** A source-scanning test pins every outbound destination in the codebase to a named allowlist with its reason — a stray analytics call cannot ship without a test going red. The claims-audit wave also brought the in-app help, README, privacy page and this changelog in line with what v3.6 actually does on the network. ## v3.5.1 — demo hardening, Vyuha Intelligence, and the audit that caught its own release *(v3.5.0 was tagged but never published: a 15-agent adversarial audit of its diff confirmed 10 new bugs — two of which silently rewrote money — so the draft was deleted and v3.5.1, the same features plus all 10 fixes, is the release.)* - **Zerodha's Console tax P&L imports natively** — with the broker's own charges per trade and entry AND exit timestamps. Reconciled against Zerodha's own summary on two real financial years: realised profit matched exactly on both, charges to the paisa on one and within the file's own ₹187 exits-only gap on the other. F&O contract names (NIFTY2540323750CE) now classify as options with strike, type and expiry read from the symbol. - **Vyuha Intelligence** — a deterministic insight engine behind Arjun's Eye and the Lenses popups. Every insight is descriptive (what your record shows, never what to do), refuses to exist below its sample floor, and carries its coverage with the claim ("SL recorded on 12 of 40 losers"). Entirely offline; nothing an LLM could hallucinate, by design. - **Arjun's Eye became the five-tab Trade Craft cockpit** — Winners vs losers (win-rate × payoff against the breakeven curve), Stop-losses (every losing exit classified against the stop you recorded), Trailing stops, and Exits (exit clock, holding times, order fragmentation). Each tab states what it needs when your book has not recorded it. - **Turnover, both ways.** Zerodha's tax report computes F&O turnover as differences only; current ICAI guidance adds option premium. On a real book the two differed 6.5–8.7× — opposite sides of the audit line. The ITR Pack now shows both, labelled, with an audit read on each. - **Tax tools you can steer** — the harvest what-if simulator (nothing pre-selected, nothing ranked), a carry-forward loss ledger with expiry years, s.425(4) relief inputs and a presumptive-scheme toggle on advance tax. - **Session-plan watchlists** import from txt, CSV, Excel or PDF (PDF rows always ask first), resolved through your aliases and ISINs — which also fixed an aliased symbol being scored as "traded outside the watchlist". - **Every KPI card explains itself** — meaning, formula, how it is commonly read (stated as a heuristic, not a law), and its honest caveats. - **No screen computes on money you never told it about.** Nine surfaces used to assume a capital figure on a fresh install; every one now says "— · set your capital in Settings", and a permanent test fails the build if a made-up capital figure ever returns. ## v3.4.0 — the screens that got slow as your book grew - **Five heavy screens now open in about a second.** Option Strategies went from ~6.0 s to ~1.0 s, the Options Seller Journal from ~5.8 s to ~1.1 s, the Equity tracker from ~3.2 s to ~0.9 s, Portfolio Risk from ~2.5 s to ~1.3 s and Lenses from ~2.1 s to ~1.3 s — measured on a 25,000-trade book. **Not one figure on any of those screens changed.** Every total, rate and interval is still computed over your whole book; what changed is that Vyuha stopped building thousands of rows of screen you were never looking at. - **Where a list is shortened, it says so.** Long tables now render a window with a "Showing 150 of 3,460 — show 150 more" control, and the three capped panels on Portfolio Risk say "Showing the first 100 of N, most urgent first". A quietly truncated list that looks complete is worse than a slow one. - **Payoff diagrams draw as you reach them.** Option Strategies was building every payoff chart at once — 626 of them on a large book — for a page showing about two at a time. - **Less of your data is sent to the screen than before.** The Options Seller Journal was loading all 75 columns of every option trade to read nineteen of them, and Lenses was sending 43 columns per trade to use twenty. Same rows, same order, same numbers. - **The Trades table is deliberately unchanged.** It is the one screen still slower than we want on a very large book, and the fix needs a change to how trades are ordered — which can move a paisa in a tax total and change which rows appear first. That is not something to slip into a speed change, so it gets its own release and its own before-and-after check. - **Release signatures are now verified against the actual downloaded file.** Previously the release check confirmed a signature was made by the right key; it now also confirms the signature genuinely matches the installer bytes you receive. This is the exact failure that once shipped an update no installed copy would accept. ## v3.3.0 — the law changed, and the turnover had been wrong for three years - **The Income-tax Act, 1961 is repealed.** The Income-tax Act, 2025 came into force on 1 April 2026, so every section number Vyuha displayed — 111A, 112A, 43(5), 44AB, 44AD, 234C, 87A, 115BAC — is repealed law for the current year. The arithmetic almost all survives; the citations do not. Citations are now resolved **by tax year**: a 2024-25 pack keeps "S.111A", a 2026-27 pack says "s.196", and a report for a year names the Act that governed it. Verified against the Gazette text and the enacted Finance Act, 2026 — which amends 88 sections of the new Act, none of them in a way that moves the rules Vyuha relies on. - **F&O turnover was omitting option premium, and that number decided whether you were told an audit applies.** The current ICAI Guidance Note on Tax Audit (11th edition, 2026, para 5.11(b)) requires premium received on the sale of options to be included. Premium was removed from the method in the 8th edition (2022) and **reinstated in the 9th (2023)** — the widely repeated "premium never counts" has been wrong for three years, and a web search still returns it. For an options seller, premium can exceed absolute P&L by orders of magnitude. Fixed, and the basis is now stated on screen rather than assumed. - **Turnover had three different formulas in three modules, two of them on screen at once.** The Tax Summary and the ITR pack could report different turnovers for the same year, and the ITR schedule was computing it from *net* P&L, which is after charges and wrong under every edition. One module now owns the method, and a test asserts the two screens agree. - **Advance tax was charging interest the statute does not.** s.425(2) waives deferment interest entirely where at least 12% is paid by 15 June or 36% by 15 September — first two instalments only, with no tolerance for December or March. The shortfall is still shown, because the payment obligation is real; the row now reads "short · no interest" so it does not look like a bug. The s.425(4) relief for capital gains is available too, opt-in and payment-tested. - **Realised by head, by month.** What you actually booked each month, split the way the return splits it — deliberately *not* called a monthly tax bill, since set-off, the exemption threshold and the slab rates are all annual and no month has a tax figure of its own. - **Month detail.** The monthly matrix could only ever show one percentage per cell, because it is computed from the equity curve. Months now also read as units of work: trades, win rate, net, charges, drag, best and worst — and a month-over-month column that stays blank across a gap rather than inventing a trend. - **Three tax levers a trade book can compute exactly**, on the harvesting screen: which losses can meet gains *this* year instead of only future business income (the asymmetry every competing screen misses, because they are all equity-holdings-only); how much STT was deductible on a business-head leg versus forfeited on a delivery leg; and how many days each open lot has left before it turns long-term. Vyuha does not name a security to sell, does not estimate what you owe, and does not tell you to wait before buying back — India has no wash-sale rule, and inventing a waiting period would be teaching false law. ## v3.2.0 — the journal stops guessing, and starts saying how sure it is - **Charge rates are now effective-dated.** A rate row used to have no time dimension, so every trade of every vintage was priced at today's rate. The Finance Act 2026 raised three derivative STT rates on 1 April 2026 (option sale 0.10% → 0.15%, option exercised 0.125% → 0.15% on intrinsic, futures sale 0.02% → 0.05% — NSE circular 02/2026), and a book spanning that date was priced wholly at the newer regime. Vyuha now holds a dated history per rate and prices each trade at the rate that actually applied to it. **Nothing re-prices on upgrade**, and where no rate is on file for a date it says so rather than substituting a nearby one. - **Every rate now carries a confidence interval, and the Edge report is corrected for testing many slices at once.** A 68% win rate on 15 trades has a 95% interval of roughly 42%–86%; rank twenty such slices and the winner is frequently just the luckiest. Slices that are not yet distinguishable from your own overall rate are marked as such — and still shown, because it is your record. - **Segment depth — the five books inside your book.** Equity Intraday, Delivery, MTF, Options (Index) and Options (Stock) are different businesses with different statute, different holding costs and different settlement. A single expectancy over all five hides which one pays for the others. - **Four things the journal always recorded and never showed you:** the session you EXIT in (the entry side has had this for months), how long you actually hold a same-day position, how many separate orders a position took to build and unwind, and — new — **why** you closed it, crossed with how much of the available move that exit captured. - **Stops that moved after entry are now visible.** The journal stores the final stop, so a trade whose stop was widened three times looked identical to one left alone. Reported as the difference in expectancy, never as a guess at what the trade "would have" made. - **Fixed:** a trailing stop typed on the wrong side of its original stop silently widened the working stop and made a position look safer than it was on two screens at once. It is now flagged rather than silently corrected. - **Fixed:** settlement warnings were computing the STT jump from superseded rates. ## v3.1.1 — an import says what it did with every row - **"7,544 executions → 804 positions (82 open, 72 opening sells without buy history)".** A tradebook states executions; Vyuha stores positions, because a position is what a trader reasons about. The screen used to announce only the second number, so a book of 7,544 orders imported as "804" and read as data loss. The preview, the commit result and the Recent-imports row now all state the arithmetic, in the same words, and the Recent-imports column is headed **Executions → positions**. - **The blank P&L cells now explain themselves.** A sale of shares bought before the export window has no cost basis anywhere in the file, so Vyuha shows "—" rather than invent one. The import result now says so, names how many rows it applies to, and tells you that setting the buy price fills them in. - **Fixed: a false "conservation check FAILED — please report this file" on large, correct imports.** The check treated any value difference as a lost lot, but each paired position rounds to the paisa, so a big book accumulates a few paise of arithmetic residue — 4 paise on ₹75.8 crore of turnover, with quantity conserved exactly. The tolerance is now derived from that rounding instead of assumed to be zero; quantity stays strict, and a genuinely lost lot still fails loudly. - **Numeric scrip codes resolve to real tickers — including SME.** Paytm Money's tradebook states exchange scrip codes, and the bundled index-constituent map only covered index members, so SME-heavy books showed rows of numbers. Vyuha now bundles a full listed-equity snapshot — **5,671 securities across NSE, NSE Emerge and BSE** — and resolves every code in a real 215-code book. Your own uploaded instruments still take precedence. ## v3.1.0 — an account can leave the journal cleanly, and OpenAlgo gets a manual - **Delete an account — or merge it into another — with a preview that shows the true blast radius.** Every account in Settings now carries a Delete. The dialog offers two coherent ends: delete everything the account owns, or merge its journal into another account (with a target picker) — and in either case, a separate choice for its broker connections (delete them, or move them along with a merge). Before anything is armed, a live server-computed preview shows the exact per-table counts, any duplicate trades already present in the merge target, and the warnings that apply; the button stays disabled until the account's name is typed back. - **Deletions are snapshot-first and transactional.** The snapshot is written before anything is removed — no snapshot, no delete — so trades, ledger entries, IPOs, import history, sessions and capital history are all recoverable from Deleted items, and restoring recreates the account itself. The one deliberate exception is stated in the dialog: broker API credentials are never written to snapshots, so deleting a connection is final. - **Merges keep every link and never double-count capital.** Trade ids do not change, so legs, attachments and ledger references survive untouched; trades already present in the target are skipped and the skip count reported, never silently dropped; and the capital-compounding marker is carried with arithmetic capped so it can neither compound the same realised P&L twice nor drive "available to compound" negative. - **Import Help v2: the cards open as full guides.** Each broker card now opens as a pop-up guide with bigger text, enriched with per-broker OpenAlgo setup detail — Dhan and Upstox verified against live instances; Groww, Paytm Money, Kotak, Angel One and Zerodha documented. Each points to two new files bundled in the client package: **OPENALGO_SETUP_GUIDE.html** and **OPENALGO_SETUP_GUIDE.docx** — a step-by-step multi-broker OpenAlgo manual covering install, running multiple instances, the daily login, per-broker `.env` differences, and troubleshooting drawn from real testing. - The tour video now films in the Aurora skin (flat panels) with two Terminal-skin scenes, and its music bed loops the full runtime. - Suite: 2,070 tests across 138 files, 15 load cases, 45 e2e flows. ## v3.0.0 — every connection knows its account, imports explain themselves, and speed is now measured The public-launch release. Its performance claims were measured on a new 42-route benchmark against a seeded 25,000-trade book, on the production build — every number below is from that sweep, not an estimate. - **The all-accounts Import view now shows every connection.** Connected broker APIs and OpenAlgo instances used to silently collapse to the first account's set, so a second account's connections were invisible from "All accounts". The view now lists every one with a per-account label, saving a connection asks which account it belongs to — the same picker file imports already use — and **Pull & commit always books into the connection's own account**. That last part closes a latent cross-account write path: "All accounts" is a view, never a place a write can land, and the API-pull path now honours that rule the way every other write already did. - **New: Import Help — a sidebar tab that answers "which file do I download?"** One expandable card per broker: which of its exports import, where each one lives on the broker's own site (dated "as of Aug 2026", because brokers move menus), and the full API setup path — Kite's daily token, DhanHQ's 24-hour token, Angel SmartAPI's TOTP secret, Upstox's Analytics token plus its static-IP registration. Two OpenAlgo cards cover setting up an instance and connecting it, and a final card explains the generic column mapper for everyone else. The copy derives from the import registry — the same source of truth the dropzone reads — and a new test keeps it from drifting. - **Cash & Ledger on a 25,000-trade book: 27.3 s → 0.9 s.** The page was serializing a 113 MB response — the ledger's every row, twice — not running a slow query. Sums and the running balance moved into SQL, the table pages at 200 rows, and the export is built only when clicked. Corporate actions went 1.6 s → 0.7 s and the dashboard 1.9 s → 1.3 s on the same book; the tax, performance and harvest reports all sit under budget. - **The whole app feels faster, and the sweep proves it isn't imagined**: overall route median 1,195 ms → 987 ms at the 25,000-trade tier, and console errors 3 → 0 (one was a real React hydration error on the Help Desk, now fixed). Every route now shows a loading skeleton (8 of 42 did), the wallpaper paints on a GPU-composited layer, chart mount animations are off, the sidebar no longer re-renders on every navigation, page payloads are trimmed by column projection (proven value-identical row for row), and the router cache holds pages for 120 s — with the charge and risk editors explicitly refreshing after a save so they never show a stale table. - **New: a repeatable performance harness.** `npm run perf:seed` builds a deterministic 25,000-trade book and `npm run perf:sweep` times all 42 routes against it and fails on any console error — the same gate the numbers above came from. The load suite grows to 15 cases with `a7-cash-ledger`, so the 113 MB regression class stays pinned. Known and deliberate: at this abusive 25,000-trade tier, six payload-bound routes remain above the internal 1.5 s budget (the options journal and strategies render ~8,058 option rows at ~6 s; equity/risk ~3 s; trades and lenses ~2.2 s). The sweep found no algorithmic defect on them — they render everything they are given — so they are scheduled as v3.0.x pagination work rather than launch-night patches. ## v2.99.104 — Upstox connects natively, and duplicate pulls explain themselves Built and verified against a live Upstox account on 2026-08-28 (11 real fills across NSE, NFO and BFO, all three equity products), cross-checked to the paisa against a second, independent pull of the same day. - **New: a native Upstox connection — the fourth broker-API pull, on the best credential of the four.** Upstox's **Analytics token** lasts a year and is **read-only by design** (it cannot place orders, even in principle), so the connection is paste-once instead of daily token churn. Two one-time steps at account.upstox.com → Apps: generate the token, and register your current **IPv4** address under Static IPs — Upstox answers account APIs only from that address. Vyuha forces its requests onto IPv4 for exactly that reason (api.upstox.com is dual-stack, and a default fetch from a dual-stack machine arrives from the IPv6 address and fails — found live, coded around, and explained in the connection's own help text). - **Upstox F&O books correctly from day one**: weekly option symbols (`NIFTY2690124350CE`) canonicalise from Upstox's compact format — verified against three live contracts — with equity ISINs read from the instrument token, MTF arriving as the stated product, and fill times taken from the one timestamp field the live payload proved honest. Monthly-format symbols state no expiry day and are imported under their raw name with a warning rather than a guessed calendar date. - **A commit that would add nothing now says so in a dialog** — "These trades are already in your journal", listing each matched trade — instead of a one-line skip note. Found live when a native Upstox pull exact-matched all 5 trades already imported through a second path: the silent skip was correct, but invisible. Normal re-pulls (some new, some duplicate) stay nag-free, and risky near-misses keep their blocking warning dialog — three distinct outcomes, three distinct behaviours. - **Fixed:** the connect form's save button wrongly demanded Angel One's credentials for any broker that collects no daily token. ## v2.99.103 — Angel One's live pull books F&O correctly, verified against its contract note The first Angel One pull ever to return fills ran on 2026-08-27 (11 real executions across all four products and four exchanges/segments), and its contract note reconciled the result **6/6 — every quantity, price, per-contract net AND every fill time matched the broker's annexure.** - **Fixed: F&O pulled through the Angel One API classified as equity** (the same defect v2.99.102 fixed for Dhan; Angel was the known-still-open case). Derivative names are now built from the fields Angel One states — `instrumenttype`, `strikeprice`, `optiontype`, `expirydate` — never from the symbol, and the live payload proved why that matters: a real SENSEX contract's symbol said `26AUG` while its stated (and true) expiry was 27 Aug 2026. The broker's own contract note carries the same mismatch. An F&O row whose stated facts are incomplete keeps its raw name and says so. **Zerodha's API pull remains the one path with no real F&O payload to verify against; its file imports were always correct.** - **Fixed: Angel One MTF trades now carry the MTF product.** A real MTF trade arrives as `producttype: "MARGIN"`, which the old mapping discarded on the assumption it was an F&O carry product (that is `CARRYFORWARD`, confirmed in the same payload). MTF interest tracking now sees Angel One MTF positions. - **Angel One equity symbols lose their NSE series suffix** (`HFCL-EQ` → `HFCL`), so API-pulled trades line up with the same stock imported from any file or any other broker. - The field mapping is no longer "inferred from documentation" — the pull's own info line now records that it was verified against a live trade book. Known and recorded, not yet changed: same-day-squared delivery/MTF equity currently books delivery-rate STT where brokers levy intraday STT on what actually settled — a small, conservative overstatement (docs/DECISIONS.md 2026-08-28) scheduled for its own pass. ## v2.99.102 — the first live F&O pull, and everything it taught The first broker-API pull ever to return real F&O fills ran on 2026-08-26 against a live Dhan account, supervised end to end and reconciled against the broker's contract note (all 9 contracts to the 4th decimal, STT exact to the paisa, non-brokerage levies −0.081%). It found real defects; this release ships their fixes. - **Fixed: the Dhan API pull classified every F&O position as equity.** The API's hyphenated option symbols (`SENSEX-Aug2026-78200-CE`) never matched the classifier's canonical names, so options were charged **equity** STT, filed under equity segments, and invisible to the options analytics — while open options nagged as unvalued equity "holdings". Derivative names are now built from the facts Dhan itself states (`drvExpiryDate` / `drvStrikePrice` / `drvOptionType`), never guessed from symbol shape; an F&O row whose stated facts are incomplete keeps its raw name and says so. Contract-note verified. The same class of defect is **known and still open for Zerodha and Angel One API pulls** (no real F&O payload exists yet to fix them against — DECISIONS 2026-08-26); their file imports were always correct. - **Open Dhan positions arrive already valued.** The pull now derives the broker's own mark (entry ± stated unrealised ÷ quantity — it reproduced Dhan's displayed LTPs exactly), so open positions show their unrealised P&L immediately instead of asking for a price. - **A suspected duplicate now blocks the commit until you decide.** Pulling the same trades from two sources can differ by a paisa and slip past the exact duplicate check — found live, where it silently double-counted one SENSEX option. A risky overlap now stops the commit and opens a dialog naming each suspect row (quantity, source file, kind of match); only its explicit **Commit anyway** proceeds. The same instrument traded the same day at a *different* broker imports normally — two brokers are two books — with a note confirming the overlap is intentional. - **Portfolio Risk speaks rupees, not only percentages**: the Open P&L tile, each position row and the expanded Return now show the ₹ figure beside the %. Holdings with no mark gain an inline **Value it** box (the old link led to a page with no visible entry point), and a partial risk save can no longer silently clear an SL/TSL/target it did not mention. - **Fixed:** engine charge refusals during an API import now surface as a readable message instead of a bare HTTP 500, and Angel One API commits no longer file under the Kite name. ## v2.99.101 — a closed position explains itself One shipped-app fix, plus the owner tooling and test infrastructure that had collected on `main`. - **Fixed: booking an exit on a fully closed staged position was an unexplained dead end.** The dialog's 25/50/100% shortcuts silently wrote a fraction of zero, and the quantity input carried a native `max=0` constraint — so the browser blocked every typed quantity with the cryptic "Value must be 0." before the ladder's own clear refusal could ever surface (hit by a real user on 2026-08-24). The dialog now states that the position is fully closed and names the two real paths: **Add entry** re-opens it, or remove the wrongly-booked exit leg and book the exit that actually happened. The shortcuts hide when nothing is open, the blocking `max` is gone, and the submit stays enabled — the panel warns; it does not decide. Pinned by `e2e/staged-position.spec.ts`, which now closes a position fully and asserts all three behaviours. - **The sale flow is one command.** `npm run sell -- --years 1|--lifetime --utr --name ""` runs mint → verify → receipt → encrypted key backup → send-message, with the traps from the two real sales automated (duplicate-email guard BEFORE the irreversible mint, same-day backup renamed not clobbered, archive folder created before redirect). `npm run renewals` prints the annual-renewal outreach list and exits 2 on a lapsed key so a scheduled run can alert. 11 tests on a throwaway ed25519 keypair; the real key is never opened. - **Simulation harness** (`tests/sim/`, 24 cases): a deterministic 10,028-fill book rendered as five real broker formats through the real detection route — every parser conserves quantity exactly and value to the paisa, and all formats agree on the same 4,504 positions. - **Demo-video kit** (`docs/owner/demo-video/`): narration, shot list pinned to the sidebar's `nav-config.ts` by test, importable OBS profile, setup script, end card, publish copy — narration and publish copy scanned by `tests/demo-video-copy.test.ts` for outcome claims. - **Full off-device backup**: `npm run backup:drive -- ` — verified git bundle, secrets, key archive, `.vkb` bundles, private fixtures, client ZIPs and the live journal in one command; refuses same-disk targets (C:/K:/T: are one physical NVMe) and refuses to run while Vyuha is open. - **Fixed:** the sell-flow suite was date-frozen to the day it was written and `sell.mjs` predicted the backup bundle's name from `--today` while the backup script used the real clock — both now derive from the artefacts actually produced (DECISIONS 2026-08-24). `tests/readme-claims.test.ts`'s file-count guard made recursive (it was blind to `tests/sim/`). Orphan `scripts/demo-ind7.mjs` deleted — it wrote into the live journal; `npm run demo` supersedes it. ## v2.99.100 — imports stay proportional as a book grows One fix, and a real one: **the pairing engine was quadratic on a single symbol**, so the longer you had traded one instrument, the slower importing it became. Numbered as a patch deliberately — the output is byte-identical and nothing about compatibility changed, so calling it 3.0.0 would have signalled a breaking change that does not exist. The 3.0.0 milestone stays reserved for the public launch. - **The defect.** `lib/import/pair-legs.ts` walks a FIFO lot queue per symbol. The cost of a *sell* was proportional to the number of OPEN LOTS rather than to the number of legs, because each sell ran **three separate O(lots) scans**: a full-queue pass looking for same-day lots, `lots.some(...)` **and** `lots.find(...)` re-scanning from the head on every iteration of the oldest-first loop, and a reverse `splice` to drop exhausted lots. When buys outnumber sells the queue grows without bound and the walk becomes O(n²). - **How it was found.** A new load case, `tests/load/c8-pairing-depth.load.ts`. It exists because an import-graph scan of the thirteen existing load cases found that **none of them imported the pairing engine** — it had been rewritten in v2.99.98, five days after the load suite was written, and "13 of 13 green" had been reading as coverage it never had. - **The numbers.** One symbol, 65% buys: 8,000 legs → 79 ms, 32,000 → 1,249 ms — a **15.89× cost for 4× the work**, where linear is 4 and quadratic is 16. Opening-sell-heavy books: 13.32×. Multi-symbol books, which is what most people have, were **never affected** — 4.19×, with per-item cost flat at 1.10 → 1.14 µs, because the work partitions per symbol. - **The fix.** A forward-only `head` pointer replaces the `splice` compaction (lots are only ever emptied, never refilled, so it never looks back), and a per-date index replaces the same-day full-queue scan. **Selection is unchanged** — the head walk returns exactly the lot `find` returned. Ratios are now **3.70×** and **4.10×**, and 50,000 legs on one symbol went **775 ms → 63 ms**. - **Proven identical, not merely tested.** Same 28,269 positions, same 22,559 closed / 5,710 open / 0 opening-sell split, quantity conserved exactly, value drift unchanged at ₹3.29 on ₹1.5 billion — 2.19 parts per billion, which is IEEE-754 noise and not a leak. 1,920 unit tests across 131 files pass, and so do both real-file reconciliations: Paytm's 414 executions against Paytm's own Realized P&L Detail, and the 1,554-fill Zerodha Console tradebook. - **Also carried in from the v2.99.99 line:** `winget:manifest` now requires `--sha` and refuses to hash the local build — it would otherwise emit a manifest whose hash could not match its own URL — and a documentation sweep that corrected two claims that were untrue, including a "signed Windows installer" line in an application drafted for an outside party. ## v2.99.99 — Angel One's live pull works again; it had been broken since v2.99.80 **Angel One's live API pull was broken in every shipped build from v2.99.80 to v2.99.98, including the published v2.99.98.** No entry in this changelog said so until this one. Pressing **Pull** on an Angel One connection returned "The saved credentials cannot be read: … Re-enter the API key and access token" and never reached the network. Zerodha and Dhan pulls were unaffected, as was every file import and every report. - **The cause.** The vault stores each secret encrypted. Angel One is the only broker that collects no access token — it mints the day's login code from your TOTP secret — so the app stored an *encrypted empty string*. AES-GCM over an empty plaintext yields a zero-length ciphertext, producing `venc:1:::`, which `parseVaultString` correctly refuses as malformed. The pull's guard required a readable token **before** dispatching to any broker, so it refused on a token this broker never asks for. - **The fix.** The guard now requires a token only where `API_BROKERS` says one is collected (`!keyRead.ok || (needsToken && !tokenRead.ok)`), and the Kite/Dhan branches take an empty string when there is no token to read. **The vault format is deliberately unchanged** — refusing to read an empty ciphertext is right; the caller was wrong to demand a secret it never collected. `tests/vault.test.ts` now pins the property, so the next caller meets this trap in a test. - **Nothing to re-enter.** Saved Angel One credentials were never wrong and were never lost. Install this build and press Pull. - **In-app text that had drifted is now true.** The Help Desk said "Eight brokers, auto-detected" (six have parsers) and that MTF is never read from a file — Angel One's tax P&L carries an explicit MTF Qty column and Vyuha believes it rather than asking. The Dashboard's empty state said five brokers. The import column mapper still promised plain FIFO after the pairing engine moved to same-day-netting-first. - **The guards that let those rot are closed.** `tests/readme-claims.test.ts` compared its six figures only to each other, so 1,858/128 stayed green against a suite at 1,920/131; it now reads the `tests/` and `screenshots/` counts off disk. `docs/owner/DOC_AUDIT.md` gains a row that forces a check that every advertised broker-API pull actually works **in the build being shipped** — nothing in CI asserts that a broker API works, which is how this survived from v2.99.80 to v2.99.98. ## v2.99.98 — tradebooks become the trades you made, checked against the broker's own statement The first live Paytm Money and Zerodha tradebooks exposed that both parsers aggregated a whole file per symbol and booked `sell − buy` as P&L — ₹2.17 Cr and ₹31 L of fabricated gain respectively on sells of shares bought before the window. Both now pair fills per scrip-day through the shared FIFO engine, which itself learned two things from Paytm's lot statement. - **Pairing engine (`lib/import/pair-legs.ts`).** A sell consumes the same day's buy first (exchange intraday netting), then lots oldest-first; the quantity a file never shows being bought is measured in a first pass and seeded as the oldest lot in a second, so opening sells land on the earliest delivery sells — where the broker puts them. Dhan GTR, Groww orders and the column mapper inherit it; every existing pairing test still passes. - **Zerodha tradebook.** Console export preamble, numeric date serials, `Order Execution Time` for fill times, per scrip-day legs (1,554 fills → 28 positions on the real file, 11 opening sells with blank P&L), derived product when the export has no Product column, in-content fingerprint weights raised so a neutral filename still routes (0.75 / 0.70). Console P&L skips all-zero ISIN-in-Symbol rows. - **Paytm Money tradebook.** Product from the scrip-day STT/stamp signature (`Product Type` is `EQ` = segment); the six stated charge components apportioned per position (conserved to ₹0.16 over 142 positions); numeric scrip codes resolved to tickers by ISIN at commit (instruments table → bundled NSE index map → keep the code with a note); `sourceRows` so the summary reads "414 fills → 142 positions". Reconciled against Paytm's Realized P&L Detail: 47 of 52 in-window scrips within ₹25, closed net within 1.4% of the broker; the residual is 3,200 shares of opening inventory the tradebook cannot see (DECISIONS.md 2026-08-20). - **Upstox.** Fingerprint on `UPSTOX SECURITIES PRIVATE LIMITED` in A1; trade report header on row 11, realised P&L on row 22; `Trade Time`, `Buy/Sell Date`, `Buy/Sell Amt`, `Total PL`, `Speculation`→intraday mapped. Layouts VERIFIED, values INFERRED (the real exports carried no rows). Ledger has no header and is not claimed. - **Fixtures + tests.** Seven schema-only redacted fixtures in the cross-broker matrix (loaded under neutral filenames), a private block that replays the real files where present, `tests/private-reconciliation.test.ts`, and `docs/BROKER_FORMATS.md` updated with every verified quirk. ## v2.99.97 — skins you can feel, a theme you can build, and a buy button that answers Appearance grows from "pick a skin" into a set of dials, the buy buttons stop being dead in the desktop shell, and the installer stops tripping over the app's own server. - **Tint intensity.** A 0–100 slider (default 50; presets Subtle 25 / Balanced 50 / Vivid 75; −/+ step 10) tints canvas, sidebar surface, card, card-top, card-hover, border, rule and header band toward the skin hue. The engine is the pure module `lib/domain/appearance.ts`; `app/layout.tsx` injects the resulting literal tokens inline on `` so there is no first-paint flash and no class-specificity fight, and charts re-theme through an `appearance-tick` class toggle because lightweight-charts observes classes, not inline properties. The spec curves for card-top / card-hover / surface (0.20 / 0.22 / 0.14) were cut to 0.13 / 0.11 / 0.11 after Lime and Luxe measured 8.5:1 and 11.9:1 at intensity 100; every skin now holds dark canvas/card/surface ≥12:1, card-top/hover ≥9:1, and light ≥7:1 body-text contrast at 100. - **Panel style.** Flat / Soft / Luxe (default) / Glow as `html.panel-*` classes, overrides in `@layer utilities` at (0,2,1) specificity. Terminal + Glow degrades to a flat shadow by design. - **Custom theme.** A ninth skin, `custom`: seven fields × dark/light (accent, analytics, money, sidebar, cards, borders, canvas), derived shades computed in code, a per-row WCAG badge that warns and never blocks, "Start from " seeding from the computed tokens; saved only with the form and only while Custom is selected. Stored `ice` / `royal` still map to `sapphire`. - **Wallpaper.** PNG/JPEG/WebP ≤12 MB, magic-byte sniffed, stored in `/wallpaper/` outside backups (the Backup screen says so), drawn as a fixed cover behind `
` under a theme-aware scrim `rgb(ch / var(--wallpaper-scrim))` (not `color-mix()`), with an opacity slider; removed in print. Migration 0048 adds `tint_intensity`, `panel_style`, `custom_theme`, `wallpaper_stored_name`, `wallpaper_opacity`. - **Buy CTAs that work in the shell.** The desktop webview blocks external `target=_blank` and the shell carries no opener plugin on purpose (zero runtime Tauri deps). Every "Get …" now opens a dialog: +91 73936 73714, the pre-filled message, Copy number / Copy message, an Open WhatsApp link for browsers, and the offline note. Settings → License pills open the plan card in a popup, no comparison table. - **Installer: no more "Error opening file for writing … node.exe".** The Node sidecar was killed only on `WindowEvent::Destroyed`, so an in-app update, a crash or a Task-Manager kill orphaned it and it held the lock; Tauri's NSIS template stops `vyuha.exe` only. Now `stop_sidecar()` (kill + wait) runs on Destroyed, `RunEvent::ExitRequested` / `Exit`, and before `update.download_and_install`; NSIS PREINSTALL / PREUNINSTALL hooks stop `node.exe` / `vyuha.exe` whose `ExecutablePath` is under `$INSTDIR` only (`Get-CimInstance` filter — never `taskkill /IM node.exe`), with `$INSTDIR` passed via an environment variable to avoid quoting. Ignoring the old error was harmless (same Node 22.17.0 bytes); it just looked alarming. ## v2.99.96 — the table says what you paid, eight skins that differ, and the terminal that goes away A batch of things the owner asked for after using the app: columns that answer the question a trader actually has, skins that are distinct instead of permutations, and a desktop shell that stops leaking a console window. Under it, seven load tests found five real defects and fixed them. - **Trades table: Qty, Invested, Entry price, Exit price.** The Buy/Sell rupee values are gone; in their place the quantity, what you put in, and the two prices. Every import path — six broker parsers, the column mapper and the three API pulls — already produced weighted-average prices, so the columns are universal. An open trade shows "—" for its exit, never ₹0. On MTF rows Invested is *your* contribution with the broker-funded amount alongside; when the funding is not yet resolved it says so rather than inventing a percentage. - **Options Seller Journal opens up.** The four seller KPIs and the outcome mix now open the same breakdown dialog the Dashboard uses — per-underlying counts, realised vs open, best and worst contract, capture arithmetic in one sentence — each row a deep link into the trades it counts. An outcome-mix bar and section headers give the screen a shape. - **Eight skins that are actually different.** Ice shared Sapphire's analytics colour and Royal's primary was Luxe's analytics colour; both are retired (a saved choice becomes Sapphire) and Lime, Rose and Ember join. Coloured skins now tint card, border and background subtly instead of only the accents, and a test asserts no two skins share a primary hex. Light-theme primaries measure 5.16–5.58:1. - **No more background terminal.** The desktop app spawned its Node server with inherited stdio from a GUI-subsystem shell, so Windows allocated it a console. It now runs hidden and logs to `%APPDATA%\in.vyuha.tradejournal\logs\sidecar.log`. - **Load tests, second batch (B1, B2, B5, B6, B7, C2, C7).** Lens grouping on a 40k book was going quadratic (14.3× per 4× — now 5.2×); the licence check wrote a mark to SQLite on essentially every Pro screen (200 writes per 200 reads — now 0 unless a day has passed); the backup page materialised 125,195 rows to count 29 tables (now 29 rows, 421 ms → 1 ms); an encrypted restore derived its scrypt key twice (now once); import detection decoded a workbook 15 times (now 8, with ≤2 pinned as a follow-up); a generic import left `sourceRows` unset. Two predictions were wrong — the skipped-row warning already existed, and 250k trades of float P&L do not drift — and both are recorded as such. - **Licensing operations.** `license-upgrade.mjs` implements the promised annual→lifetime upgrade as full credit within the year (dry-run first, `--confirm` needs a UTR, the old key is revoked); `license-issue.mjs --save-dir` archives every key and a ledger snapshot; `license-backup.mjs` bundles the private key and ledger into an AES-256-GCM file. Legacy SKU labels no longer advertise indicators; the landing page's indicator FAQ is gone. - **Paperwork that says the right version.** TERMS and PRIVACY apply-to lines are guarded by a test against `package.json`; a second test keeps indicator copy off buyer surfaces. New owner guides: refund/terms sign-off, winget + SmartScreen submission, and a per-release doc audit list. ## v2.99.95 — launch pricing that survives division, and a comparison that hides nothing The price became the pitch. Everything in this release is commercial surface, and every number on it is derived, sourced, or floored — never asserted. - **Launch pricing, with honest anchors.** The list prices are ₹13,000/yr (Pro — Annual) and ₹35,999 (Journal — Lifetime) — committed prices, effective 2027-01-01, not decorative strike-throughs. Until then the launch offer sells at ₹9,999/yr and ₹29,999. The savings badges are computed from the numbers and floored: **23% off** and **16% off**. The owner asked for "30%/20%"; those labels did not survive division and were corrected. Lifetime's true 16.67% is shown as 16, never rounded up to 17 — a discount claim on this product does not overstate. - **Lifetime is now the featured plan.** "Best value" moved from Annual to Lifetime, in-app and on every sales surface, and Lifetime lists the roadmap: every future upgrade at no extra cost. - **How Vyuha compares.** The pricing page and landing page now carry a seven-product comparison — pricing, where your data lives, Indian broker support, statutory charges — every cell read from public pages on 2026-08-15, "not stated" wherever a claim could not be verified, and a † wherever the official page was unreachable and third-party 2026 reviews had to stand in. The ₹999–₹2,499 Indian competitors are in the table; hiding them would be the selective honesty this product positions against. - **The current mark, everywhere.** The landing page, brochure and getting-started deck were still carrying the retired flat-tile mark (and an old favicon); all three now embed the current design. - **macOS is no longer sold here.** Every macOS selling claim came off the landing page, brochure, deck, client docs and README — the Mac edition will be offered separately later. The builds, CI matrix and platform code are unchanged; only the advertising is gone. - **The refund policy states its edges.** A closing note: beyond the two named exceptions, refunds are at the owner's discretion, and verified tampering, replication of Vyuha, or other malpractice forfeits them. - **The getting-started deck caught up.** All six brokers named, the column mapper and three broker-API pulls listed, the full Pro screen set (Lenses included), the SmartScreen note beside the install steps — and one stray `` that had survived since the deck was written is gone, verified by a tag-balance check. ## v2.99.94 — the renewal you were never warned about, and four claims that were not true Almost none of this is new capability. It is the product telling the truth about itself, and one long-standing hole in the plan that is meant to renew. - **Your annual licence now warns you before it lapses.** There was no notice of any kind: the key was valid, and then one morning seventeen Pro screens were locked. The only reminder in the whole system pointed at the seller, not at you. From 30 days out, every Pro screen carries a dated countdown and a renew link, and nothing is withheld while it counts down. Your journal is unaffected either way — trades, imports, backups and exports keep working after expiry exactly as they do on a free copy. - **PDF is no longer described as an importer.** It never was one: opening a broker PDF extracts the text so you can enter trades by hand, and produces no trades of its own. The import screen and the guide now say that plainly instead of listing PDF beside the six brokers that really do auto-detect. - **Prices no longer claim to include tax.** No GST is charged or collected on these sales, so the line saying otherwise was wrong and is gone. - **The download promise matches reality.** The installer is around 35 MB — too large to attach to an email — so the page now says you get a private download link, which is what actually happens. - **macOS is described honestly.** Mac builds are produced for every release and available on request; they are not code-signed or notarised yet, so macOS asks you to right-click → Open the first time. Previously the page implied a Mac download that was not being packaged. - **A refund policy, terms of use and a privacy statement now ship with the app**, inside the download. The FAQ used to ask "Is there a refund policy?" and then answer a different question. For the seller, licence issuing gained two guards after a near-miss reading of the tooling: a licence term must now be stated explicitly (omitting it used to mint a lifetime key silently), and a paid licence cannot be issued without recording its payment reference. Release day also gained a winget manifest generator and a documented Microsoft file submission — the two free ways to stop Windows warning buyers about an unsigned installer. ## v2.99.93 — five things that only showed up under load, two of which lost data A load and stress suite now exists, and the first six tests written against it found five real defects. Two of those were quietly destroying or refusing your data, not merely being slow — and neither would ever have produced an error message. **The thumbnail fix only protects backups taken from this version onward**, so take a fresh one after updating. - **Screenshot thumbnails no longer vanish when you restore.** Thumbnails are saved beside each screenshot under a companion name with no database row of its own — so the backup, which walks the attachment records, never included one, and a restore rebuilds the folder from the backup and deletes what was there. Your screenshots survived and every preview silently went blank. This also fires on the automatic backup Vyuha takes before a database upgrade, so it could happen without you restoring anything on purpose. - **Deleting a large account no longer fails.** "Delete everything in this account" hands the whole list of trades to the database in one statement, and SQLite refuses more than 32,766 values at once — so above roughly that many trades the delete threw an error instead of running. The same fix cut a 2,000-trade delete from 4,010 database statements to 29. - **A staged position can no longer be left half-repriced.** Rebuilding a ladder wrote each tranche separately and then updated the parent trade, with no transaction around them: an interruption at the wrong moment left the tranches repriced and the headline figures stale, and nothing on screen would have looked wrong, because every report reads the parent row. It is now one all-or-nothing write. - **Import preview is 364× faster on a large book.** Checking a new file against trades you already have compared every incoming row with every existing one. On a 25,000-trade book a 5,000-row import took **8 seconds** before the preview appeared — during which the whole app was frozen, so it looked like a hang worth retrying. Now about 20 ms. - **Data Quality is 31× faster when your symbols are not price-marked.** The check for unmarked positions scanned the whole price table for every trade, and the scan only ended early when a symbol matched. With an F&O book against equity-only bhavcopy marks nothing matched, and the page took **10 seconds** every time it was opened. The same rewrite fixes a smaller wrong answer: marks written with different capitalisation counted as different symbols, so a fresh price could still be reported stale. Also: the emailable one-page brochure and the standalone landing page were several releases out of date on price and on what is included, and the installation guide pointed at the wrong folder for your database file. All corrected, with a test that now fails if the sales copy drifts from the app's own prices again. ## v2.99.92 — the same app as v2.99.91, shipped by a pipeline that now works **No behaviour changed since v2.99.91.** This release exists because v2.99.91's did not reach you: its Windows job died on the release gate, so it published with macOS assets only and no `Vyuha_x64-setup.exe` at all. Everything described under v2.99.91 below — the signed revocation list, the grace countdown, the locked-screen reason line, the corrected network claims — reaches a Windows machine for the first time here. - **Windows CI no longer fails a test that is not broken.** The DPAPI round-trip is the one test in the suite that spawns a real process — two cold `powershell.exe` starts to reach the OS keystore. That takes well under a second on a developer's machine and can exceed vitest's 5-second default on a cold CI runner. It now gets 60 seconds, so a slow runner reports a slow test instead of a broken build. - **A release-tooling script stopped leaving a file behind.** The signature verifier wrote a scratch `.sigcheck.tmp` beside the source and never removed it; one got committed. It is now cleaned up in a `finally` and ignored, so a crashed run cannot leave a blob for the next commit to sweep up. - **The revocation list's own release must be a prerelease** — written down in the three places that would have caught it. GitHub resolves "latest release" across every tag by creation date, so publishing that list without the flag makes it the latest release, and the updater's `releases/latest/download/latest.json` endpoint 404s. Auto-update then stops for every installed copy without a single visible symptom, because the updater is deliberately fail-open. Found and fixed the same day; the runbook now carries the one-line check that makes it visible. - **The Node version is pinned, because a floating one broke the build.** `node-version: 22` resolves to the newest 22.x at run time, and the runner moved to 22.23.2 mid-afternoon. `better-sqlite3` then reported "No prebuilt binaries found": its installer, `prebuild-install`, is unmaintained and resolves the download name from a bundled table, so a Node newer than that table is a 404 rather than a fallback — and the fallback cannot rescue it, because `node-gyp` reads the image's Visual Studio 18 as `unknown version "undefined"`. A routine runner-image update broke the Windows release build hours after the identical commit had built fine. Both workflows now pin 22.17.0, and `npm ci` retries three times for the genuinely transient case. - **CI now builds on Windows — it never did.** Every CI job was Ubuntu or macOS, and the only Windows build in the pipeline was the release workflow, which runs *after* a tag is pushed. So every Windows-only breakage was guaranteed to be discovered as a broken release, and three were in a row. A new job runs the install, typecheck and unit tests on `windows-latest` on every push, so the next one fails a commit instead of a release. - **The release verifier can no longer bless an incomplete release.** It printed "✓ every signature matches… Safe to publish" for a build with no Windows installer at all — every signature it inspected was genuinely correct, and the release was still unshippable. It now checks that all five expected artefacts exist *before* checking signatures, names what is missing, and exits non-zero. A verifier that cannot see an absent platform is worse than none, because its ✓ reads as "complete". ## v2.99.91 — a withdrawn licence now stops working before the next release Revocation used to be a build-time list: a refunded or leaked key kept working until the user happened to install a newer build. It now also travels as a signed list the app picks up during the version check it already ran at every launch — which means the honest thing to do was also fix four places that promised no such mechanism would ever exist, and three that described this app's network activity inaccurately. - **The list travels down; nothing travels up.** The request carries no key id, no machine id, no account — the same public file is served to everyone, and which key it names was decided before the download, not by it. It is a plain fetch of a signed file, Ed25519-verified against the same vendor key as the licences themselves; an unsigned, altered or older list is ignored. - **Three warnings and a grace period, then it locks.** An entry names the date it takes effect. Until then every Pro screen carries a countdown — "14 days left", with your message — and *nothing* is withheld, so a withdrawal is never discovered as a dead screen. Your journal is untouched either way: trades, imports, backups and exports keep working after that date, as they do for any unlicensed copy. - **Reversible, and it fails open.** Publishing a newer list without the id un-revokes, with no build to ship. No list, a corrupt file, a captive-portal login page or an offline machine all resolve to "keep working" — the alternative is locking out a paying user whose internet is down. - **An older list cannot undo a newer one.** The accepted issue date ratchets in the database, so keeping yesterday's copy and restoring it changes nothing — and a *rejected* list deliberately does not advance that ratchet, or a forgery could lock a machine out of the genuine list behind it. - **A blocked screen now says why it is blocked.** The entitlement has always carried a specific reason — a key locked to a different computer, a licence that cannot be decrypted on this machine, and now a revocation message — and it was computed and then rendered nowhere. Every locked Pro screen said "your annual license has expired", which for those cases is untrue and tells the user nothing they can act on. It now shows the actual reason, and stops claiming an expiry when nothing expired. - **The copy was corrected, not the feature softened.** The desktop app has always asked GitHub for a newer signed release at every launch — that was never optional, and three published claims said or implied it was. They now state plainly that one download-only check runs at launch, sends nothing about you, and cannot be switched off. The two real limits are written down in the same places: a permanently offline machine never receives the list, and none of this survives a patched binary. ## v2.99.90 — the first broker that connects itself every morning Angel One joins the API pulls — and unlike Zerodha (daily browser login) or Dhan (24-hour tokens), nothing about it expires on you: the day's login code is minted from your TOTP secret at pull time, unattended. - **Connect once with four credentials** — SmartAPI key, client code, PIN and the TOTP *secret* (the base32 behind the enrollment QR). All four live encrypted in the v2.99.80 vault; the extras travel as one sealed blob in a new column, a broken vault refuses the save outright, and backups carry none of it. Pasting the 6-digit code where the secret belongs is caught at save with an explanation, not at tomorrow's pull as a broker rejection. - **The TOTP engine is forty lines of node:crypto, pinned to RFC 6238's own test vectors** — no new dependency, and this app's six digits and your authenticator's six digits cannot silently diverge. - **Read-only by construction.** The Angel One module exports login and the trade book — no order, no funds, no modification — and the export list is pinned in tests, so a trading capability cannot be added without failing CI. A leaked pull path cannot trade. - Pulls fetch today's fills, aggregate them per symbol + product with every execution preserved, and run the same preview → classify → charges → dedup pipeline as every file import. Re-pulls are idempotent. - The honest one: the login contract is verified against Angel One's docs, but the trade-book row shape is inferred from their examples — the pull's own warnings say so, unreadable fills are refused and counted rather than guessed, and the first live pull should be previewed against a contract note once. The connect card also stops claiming credentials are stored "in plain text" — that sentence outlived the vault by one release. ## v2.99.80 — what the database file knows, it no longer tells Secrets at rest. Until now the licence key and the broker API credentials sat in SQLite as plaintext — defensible for daily-expiry tokens, and exactly the thing that had to change before longer-lived credentials (a TOTP secret is a permanent second factor) ever arrive. - **Every stored secret is now encrypted with a key the database does not hold.** One AES-256-GCM vault key per install, wrapped by Windows DPAPI (bound to your user profile) or a machine-identity KDF on macOS/Linux, living beside the database — so the .sqlite file alone, copied, synced or shared, carries nothing usable. Built on node:crypto only; no new dependency. - **Nothing changes for you until something goes wrong, and then it says so.** Existing plaintext upgrades itself on first read. On a new machine the app asks you to re-paste the licence key from your purchase email and to re-connect brokers — never a crash, never a silently lost journal. Saving a NEW credential while the vault is broken refuses loudly instead of quietly storing plaintext. - **Backups stop carrying credentials entirely.** Broker connections travel as names only, the way the licence key has been redacted since v2.99.75; a restored journal prompts you to re-connect. - The honest one: this defends the file at rest, not a compromised machine — no user-mode design defends secrets from other code running as you, the OS keychain included. The claim is narrower and true: your database alone tells nothing. ## v2.99.77 — the boundary holds everywhere The integrity sweep. Eleven defects from the 2026-08-12 register, most of them one disease: code touching an account-scoped table without resolving which account it was in. None of them looked broken on screen — which is exactly why they were dangerous. - **Every write now resolves its account at the point of touch.** Sessions no longer accept a client-supplied account id (a stale tab could silently MOVE a plan across accounts); IPOs added from the All-accounts view land in the resolved account instead of always account 1, and IPO edit/delete refuse ids outside the account being viewed; every staged-position leg mutation now runs the same own-account check the delete engine has always had. - **IPO exit charges come from the charges engine.** The rates were hard-coded — STT, exchange, SEBI, stamp, DP, GST, frozen in source where no budget change could reach them — and they fed real net P&L into capital compounding. Exits now price through charge_config like any delivery sell, with the allotment as a zero-brokerage buy side; the old constants survive only as the documented fallback for an IPO that names no broker. - **Deleting a playbook now does what it always claimed.** "Its trades fall back to Untagged" was false — trades kept a dead id, session plans kept ghost references, and the journal dialog rendered a select with no matching option. The references are nulled in the same transaction and the message reports the real counts. - **Archiving the selected account no longer strands you.** Selection moves to a live account the moment its account is archived, and one live + one archived account reads as a single-account book, not an aggregate. - **The guard tests can now fail.** The account-isolation registry maps each scoped table to owner files and fails unless each owner actually resolves the account — on its first run it correctly distinguished a route that delegates from a route that forgets. The reconciliation diagnostics assert their figures exist instead of ending in expect(true). The dead `positions` table — 28 columns, zero readers, faithfully backed up empty for months — is dropped (migration 0045). - The honest one: exercise STT (0.125% on intrinsic) stays a named constant. It is a different statute from the premium STT charge_config carries, feeds one advisory figure, and inventing a config column no computation uses would be worse — recorded in DECISIONS.md. ## v2.99.76 — the price becomes the positioning Supersedes v2.99.75 within the hour — that build shipped with the launch-era prices baked in, and an offline app quoting a price is making a promise the seller has to keep. - **Repriced: Pro — Annual ₹9,999/yr (recommended) and Journal — Lifetime ₹29,999.** Two SKUs, clean numbers. The strike-through anchor and the "first 100 buyers" scarcity banner are gone — at this price point the credibility is the pitch, and manufactured urgency undercuts it. The TradingView-indicators bundle came off every pricing surface; indicators remain a conversation, not a card. - **Every surface moved together, held by a test.** The in-app pricing module, the upsell panel, the licence card, /pricing, the landing page and the brochure all quote the same two numbers, and CI pins the code to the landing page's own price cells — the two things a prospect can compare side by side cannot drift apart. - The brochure's third card now shows the **free tier** (₹0, forever) instead of an indicators price — the free journal is the honest third offer, and it sells the paid ones. ## v2.99.75 — the file proves itself, the delete forgives, the price speaks The trust wave: three different promises the app was quietly breaking — about whose file it was reading, about what delete meant, and about what it costs — each rebuilt to be provable. - **Import detection was rebuilt on in-content fingerprints, after a real misroute.** A Groww order-history export imported as broker "Zerodha" — 111 rows, priced at Zerodha's rates, reported as success. The probe that diagnosed it found a second live misroute the same day: Paytm's tradebook, claimed because its filename contains the English word "tradebook". Every broker parser now has to prove whose file it holds — Zerodha by its Auction column or its "- Z" charge heads, Groww by its own metadata phrasing, Paytm by UCC + its misspelt "Script" column — and a file that names no broker gets the column-mapping question, never a guess. A cross-broker refusal matrix runs redacted copies of real exports through the registry in CI. - **Three new import formats, from verified real exports.** Paytm Money tradebook (per-execution WITH the broker's own charge breakdown — richer than Zerodha's), Angel One tax P&L (seven independently-headed sub-tables, futures and options, and the only export examined that states MTF quantity directly), and Groww stocks order history (no price column — price is derived, and the file says so). Six brokers now auto-detect. - **Every delete writes a snapshot first.** Trades, staged legs and chart attachment bytes move into a per-delete snapshot beside the database, restorable from Backup & Restore → Deleted items — under their original ids, so nothing that pointed at them is orphaned, and never restored as a duplicate if the same trades came back by re-import. New delete scopes — date range, current view, one broker, one type, one file, one hand-entered day — all resolve through the same confirmation that shows the exact set before anything happens. Nothing is auto-purged. - **Lenses.** One screen, six cuts of the same book — month, broker, trade type, import file, setup, outcome — each group with its own P&L, charges and (with Pro) win rate, profit factor, expectancy and average R. Built for the question "what exactly did that one import produce?", and every group can be deleted from where you see it. - **The app finally answers "how much?".** Real prices on the trial-expired panel, the licence card and a new in-app pricing page, each carrying the date they were true and embedding the quoted figure in the WhatsApp message — an offline build cannot check for a price change, so the quote travels with the conversation instead of pretending to be live. - **Money now lands where the screen reads.** Compounding realised P&L wrote a global row while the summary read the per-account one: "Compounded +₹X", no visible change, and the rolled-in marker burned every other account's un-compounded P&L. Capital and its marker are per-account now, and the aggregate view refuses to compound rather than move money between books. - **Backups carry all thirty tables, and nothing that isn't yours.** Four tables had silently fallen out of the backup list — restoring lost every uploaded MTF margin sheet — and the guard test counted to 26 instead of reading the schema, so it could not notice. It reads the schema now. Licence key and trial state no longer travel in a backup at all: a shared file is no longer a shared key, and restoring an old backup no longer rewinds the clock ratchet. - **The honest one.** Three e2e specs had been red since v2.99.70 — that release renamed the row-action tooltips and the specs kept querying the old attribute, one of them burning its full 90-second timeout every run. Four locator lines. The suite is genuinely green again, and the two "guard" tests that could not fail (a table count and a name list) were rebuilt to introspect what they claim to protect. ## v2.99.70 — three new skins, and the chrome grows reflexes - **Three new accent skins: Royal, Sapphire, Aurora.** Violet-led and regal; electric indigo with orchid analytics; fuchsia-led with teal — the most vibrant palettes the app has shipped. Like the original four, each is a coordinated triple (primary / money / analytics), measured before it was written: every colour clears the same WCAG contrast floors as the existing skins on both themes, roles sit 67–109° apart on the hue wheel, and no primary comes near the profit/loss hues. Settings → Appearance; the P&L colours (and colourblind mode) are untouched, as always. - **Real tooltips.** Hot surfaces — the sidebar rail, the trades toolbar, the calendar heatmap, the screenshot viewer — replace the browser's slow OS-styled `title` bubbles with app-chrome tooltips that appear in 300 ms, follow keyboard focus, and flow instantly between adjacent icons. - **The command palette became a real dialog.** Ctrl+K now traps focus, locks the page scroll behind it, and dismisses like every other overlay — the last piece of chrome that only looked like a dialog. Keyboard behaviour (arrows, Enter, Ctrl+K toggle) is unchanged. - **The money gold turned metallic.** The gold accent brightened to a more saturated bullion (#f0b429, same 41° hue, contrast up not down), and the headline money numbers — total charges, MTF interest, charges leak — now wear a champagne-to-bronze gradient with a soft glint. Built from tokens, so every skin keeps its own money colour (Tape's stays violet), light theme keeps its AA-safe dark golds, and print falls back to solid ink. - **Numbers count up everywhere.** The dashboard's animated KPI treatment rolled out across the report and tracker screens — raw numbers animate in over ~700 ms with the currency sign kept quiet, and render instantly under reduced motion. - Owner docs: paid code signing is formally deferred (users are happy with the branded wizard); the free mitigation playbook — winget listing, Microsoft reputation submissions — is written down in docs/owner/CODE_SIGNING.md, with the Azure wiring kept dormant. ## v2.99.60 — every screen speaks the same language The cosmetic wave. Nothing about what the app computes changed; everything about how it carries itself did: - **Every table wears the same chrome.** Thirty-seven hand-rolled tables — the tax pack, discipline, edge, ITR, surveillance, sessions, the audit log, the ledger — now share the trades table's treatment: tracked-caps header bands, sticky headers, readable sans-serif prose with tabular numbers, row hover. The reports no longer look like a different application. - **One feedback voice.** Thirty-one components' inline messages became toasts — and the six forms that used to save SILENTLY (journal, IPO, risk edits, position close, limit check, AIS) now confirm. Persistent results (parse recaps, limit verdicts) stay where they belong, on the page. - **Empty screens tell you what to do next.** Thirty-three empty states share the illustrated treatment, with a real next step wherever one exists — and a brand-new install now greets you with "Nothing journalled yet — import a broker file", not five ₹0 tiles and advice to clear a filter you never set. - **Dialogs keep their bearings.** Sticky titles and footers — Save can no longer scroll out of reach in the tall forms — and the close button finally has a focus ring. - **Print works everywhere.** Report cards no longer split across page breaks, and buttons/headers stay off the paper. - **Screenshots got light.** New chart uploads carry a browser-generated thumbnail, so a screenshot-heavy journal no longer decodes hundreds of MB to paint a film-strip. Existing attachments are untouched and keep working. - Loading skeletons now match what they stand in for (no more 12px jump on every navigation), captions scale with the Comfortable density setting again (151 fixes), the command palette animates like every other overlay, the last unguarded animation respects reduced-motion, and the flagship PDF header can never render a tofu box again. ## v2.99.55 — fewer questions asked, none answered twice Performance wave two — the server side: - **Every navigation asks the database less.** The account resolver answered the same question up to ten times per page; now once. The mark-to-market table was scanned twice back-to-back on the risk screens; now once. The risk cockpit asked two questions per staged position and one per held symbol's price history; now two and one for the lot. - **The Monte Carlo stopped re-simulating a book that hadn't changed.** The ruin analysis is deterministic, yet all 504,000 iterations reran on every performance-report view — now computed once per book state. - **Back/forward is instant.** The browser reuses its own copy of a page for 30 seconds on history navigations instead of refetching everything. - **The honest one:** we attempted the React Compiler this wave, proved by bisection that it introduces hydration mismatches on this toolchain (an upstream JSX-whitespace bug — three errors flag-on, zero flag-off, same page, same data), and rolled it back the same day. The attempt left the codebase better guarded than before: the surfaces where a compiler fails SILENTLY — table sorting, the sidebar's order restore, the live charge preview — now have their own regression spec. ## v2.99.50 — built for the ten-thousand-trade book Performance wave one, everything measured before and after: - **The Trades table now scales.** The client receives a 43-field wire projection instead of all 74 columns (44% off the payload — ~8.7 MB instead of ~16 MB at a 10,000-trade book), and the rows are **virtualized**: the DOM holds only what fits your window, whatever the book's size. Selection, per-view counts and the "N of M" counter still speak for the whole filtered book — the semantics moved nowhere. - **The hottest query got its index.** Every navigation runs the same account-filtered, date-sorted trades read on ~25 screens; a composite index turns its filesort into an index scan. - **399 KB of spreadsheet library left every screen.** The XLSX exporter now loads at the moment you click Export, not on every dashboard/report visit — and the import screen stopped shipping the entire parser stack to the browser for one line of hint text. - **Startup got honest.** The desktop app backed up your whole database on every single launch, protecting against migrations that weren't happening — and did it with a raw file copy that, under WAL, could miss just-committed trades. It now backs up only when a migration is actually pending, through SQLite's own backup API, and polls for the server five times faster. ## v2.99.45 — the forensic pass A three-lane audit of every feature against real application data — engines and money identities across all 252 journal rows, all 40 routes rendered live, the full e2e suite, and an adversarial read of every changed file. Three real defects surfaced; all fixed and pinned by tests: - **Statutory rounding at an exact half rupee.** IEEE754 could land ₹7.50 of stamp duty at 749.9999999999999 paise and round it DOWN to ₹7 where half-up statutory rounding says ₹8. `roundRupee` now carries sub-paisa float armour; off by at most ₹1 and only at exact halves, but a money engine rounds the way the statute says, always. - **The attachment viewer could reopen uninvited.** Deleting the last screenshot left a stale viewer index behind, and the next upload satisfied it — popping the viewer open unasked. Delete-last now clears the index. - **A truncated REG_IND row could silently wipe the ESM category.** Detection read columns off the first data row instead of the header line; a re-saved file with a short first row could hide the trailing ESM column and clear that category while reporting success. Detection now reads the header. Everything else came back clean, on the record: money identities 0 violations, account scoping intact, licence import graph safe, all routes streaming without error chunks, the print path canvas-free, and the empty-ban-day path working exactly as designed. ## v2.99.40 — the calculator remembers, the exchange files import themselves, and the installer looks like us **The Trade Calculator got a memory and learned the indices.** Equity and F&O each keep their own last-entered trade now — flip modes and ₹2,450 of stock entry no longer masquerades as an option premium; reload and both books come back, including which mode you were in. A new **Underlying index** picker fills the correct market lot for Nifty 50, Bank Nifty, FinNifty, Midcap Nifty, Sensex and Bankex — verified against the exchanges' January-2026 lot revision (Nifty is 65 now, not 75), routed to the right exchange automatically (Sensex means BSE), and every lot names its source: your own fo_mktlots upload beats the bundled snapshot, and a manual edit is respected and labelled, never silently corrected. **Chart screenshots open inside the app.** Click a thumbnail and a full-size viewer appears — arrow keys, a counter, the file's name/size/date, delete, and an "Open in tab" escape hatch. Escape closes the viewer, not the dialog you were in. **Surveillance imports the exchange's own files.** Drop NSE's `fo_secban.csv` (F&O ban) or the `REG_IND` Surveillance Indicator file — one file that carries ASM (long & short term), GSM **and ESM** stages for every listed scrip — and the app reads the trade date out of the file itself. Each upload replaces only the categories that file speaks for, so the ban list, the surveillance list and your pasted BSE rows coexist. ESM is now a first-class category with its own tile. A file it cannot fingerprint is refused with the headers it actually saw — never imported confidently and wrongly. **The Trades table's columns reorder by drag**, like the sidebar — the frozen row-select and Instrument columns stay put, the order survives restarts, and a reset control puts everything back. **Four coordinated looks.** Luxe (the shipping gradient), Terminal (flat), Ice and Tape — each swaps the whole primary/money/analytics triple so the colour law holds in every skin, in dark and light both. And the trade replay moved to a native price chart (lightweight-charts) — screen-only by design; everything that reaches paper stays SVG so PDFs keep printing light. **The installer finally wears the mark.** Setup's title bar, header, file icon, wizard banner and sidebar all carry the Trinity Chakra now instead of the stock NSIS globe users kept mistaking for malware — and updates refresh the desktop shortcut's icon without an Explorer cache dance. ## v2.99.30 — import from any broker, and a new skin for the whole app **Import now works with every broker, including ones we have never seen.** The report was "why does import only show 3 brokers", and two bugs sat behind it. The dropzone's hint was hand-written and had drifted — the app read five brokers' files while the text named three — so it is now generated from the parser registry and a test fails if anyone hand-writes it again. The second was worse and invisible. The Angel One / Upstox detector scored on tradebook *shape* alone: a symbol column, a side column. That describes every Indian broker's export, so **any CSV with a column called "Scrip" was claimed as Angel One** — a Kotak Neo, Paytm Money or Sahi tradebook imported silently as Angel One trades, priced with Angel One's charge rates. A broker-named parser now has to see the broker's name before it claims a file. The PDF sniffer had the same flaw: it knew three brokers and defaulted everything else to Dhan. Kotak Neo, Paytm Money and Sahi publish no column specification anywhere — not in their own help pages, and not in the third-party journals that support them, which ask users to email a sample file. So rather than guess at their headers, Vyuha **asks**: drop any broker's CSV/XLSX, match the columns once, and the mapping is remembered for that broker. Mapped tradebooks go through the same FIFO pairing, de-duplication and charge engine as native ones — nothing downstream can tell the difference. A row whose cells cannot be read is skipped and counted, never coerced to zero; a trade for zero shares at zero rupees is worse than no trade. **A new mark.** Three arcs in the interface's own three roles — teal for what you can act on, gold for money, violet for what the numbers say about you — ringing व hung from a shirorekha drawn as a price level, with a ₹ coin in the lower right. It replaces the squircle everywhere at once: taskbar and dock, installer, favicon, sidebar, the share card you post publicly, the printable report. The Devanagari outline is reused rather than re-traced, so the letter is the same one already shipping and still never a font-dependent text node. **Tables you can actually read.** Every table rendered in JetBrains Mono — a face built for digits — so company names, brokers and segments came out ~15% wider with their word shapes flattened. Prose is now set in Inter and only numbers stay monospaced, which is the one thing the mono face was ever needed for: columns still align to the digit. Table headers, the sidebar caption and KPI labels each moved up a step in size. **A new look — "Dark Luxe".** Near-black blue-cast canvas, panels that are gradients rather than flat fills, and a colour law: teal is anything you can click, gold is money leaving the account, violet is a statistic about your trading. Space Grotesk joins Inter and JetBrains Mono for titles. The Tape and Ice accent skins are retired — a swappable amber primary beside a fixed gold "money" role reads as a bug, not a choice. Light mode was measured rather than assumed: the new gold only clears WCAG AA against pure white, not against this app's actual off-white canvas, so it ships two steps darker at 4.95:1. The row hairline kept its old measured value for the same reason — the proposed one computed to 1.12:1, which is where separators went invisible on 250-row tables once before. - The hero card's teal border had never rendered, in any release — Tailwind sorts custom utilities before its own, so the plain border token always won. - The desktop build compiled the web bundle, type-checked, seeded the template database and copied an 81 MB Node runtime **twice** on every run. Once now. - `margin_config` gained the broker-completeness test `charge_config` has had for releases; adding a broker with no margin rows used to price at defaults silently. - The API panel says plainly that only Zerodha and Dhan pull over an API, and that everything else imports by file. ## v2.99.20 — the app fits the trader, not the other way round Six changes, all answering the same complaint from testing: the app knew more than it was willing to show, and showed more than any one trader needed. **MTF now shows the rate it is actually using.** The own-capital / broker-funds split used to render on *every* equity trade — delivery and intraday included, where broker funding does not exist — with a static 25% in the hint text. The engine was resolving per-stock margins correctly all along; the form was describing a default it wasn't using. The split now appears only for MTF, and leads with the resolved percentage, naming the stock and the broker list it came from. A stock missing from that broker's list says so instead of quietly falling back. **Chart screenshots are findable.** The feature existed in three places and was discoverable in none: add-trade only revealed it *after* saving, the edit and journal dialogs buried it below the fold, and no trade row ever indicated an attachment existed. Trades now carry a paperclip with a count, and the add form says up front that a chart can be attached. **Daily P&L calendar** — click any day to open exactly that day's trades. Above it, current and best green/red runs counted in *traded* days (a weekend does not break a streak, and a flat day neither extends nor breaks one), best and worst days marked in place, and each month's net in its header. Fixes a UTC bug that could highlight the wrong cell as "today" for users east of GMT. **Sidebar reordering is a drag, not a click.** A grip appears on hover; the row follows the pointer with a glow and an insertion line shows where it will land. Replaces the arrow buttons, which testers found mechanical. **Workspace mode (Settings → Workspace).** Say you trade only equity or only F&O and the other book's screens leave the sidebar and command palette, with the bucket filter on Trades and the Dashboard seeded to match. It is not a lock: hidden routes still open from a link or bookmark, the screen you are on always stays in the sidebar, the pre-filter is the screen's own control and clears in one click, and a chip names the mode and links back to Settings. **A wider Pro surface.** Deep analytics (Arjun's Eye, Edge/Setups, Discipline, Scaling), the options-seller pack, the tax pack, data & export tools, and live open-position tracking now sit behind a licence. Recording *closed* trades — your own record of what you have already done — stays free, as it always has. ### Under the hood - `PRO_FEATURES` went from 6 entries to 17, and its doc comment was corrected: it claimed adding an entry gated a page "everywhere at once", which was never true — `ProGate` takes no feature argument. `tests/pro-gating.test.ts` now reads the real page files and fails if the registry and the gates drift apart, or if a core-journal page ever gains a gate. - Two drag bugs fixed before they shipped. `setPointerCapture` ran before any state was set, so a capture failure killed the drag silently; the listeners now live on `window`, which needs no capture — and which is what makes a 12px grip usable at all, since the pointer leaves it immediately. Separately, the insertion line counts rows as displayed while `moveIndex` splices after removal, so every downward drag landed one slot too far. `dropTarget` reconciles the two coordinate systems. - `moveWithinVisible` keeps a saved sidebar order intact when workspace mode is hiding part of the list — committing the drag's visible-only indices directly would have written back an order with every hidden screen missing. - Migration `0042_workspace-mode` adds `settings.workspace`, defaulting to `both`: existing installs behave exactly as before until the user chooses. - Calendar "today" was computed from an ISO/UTC string, which highlights the wrong cell for anyone east of GMT after ~05:30 IST. Now built from local date parts. ## v2.99.10 — the trial is now 7 days The full-Pro trial on a fresh install is **7 days**, down from 14. One trading week is enough to import a real book, sit through an expiry and see a charge-leak number; the second week mostly added drift before the decision. Everything else is unchanged from v2.99.9. The core journal remains free forever — the trial only ever gated the analytics layer. Two notes on the mechanics, because they matter: - The countdown is `TRIAL_DAYS − days-since-first-run`, so an install already past day 7 of the old trial shows 0 days remaining as soon as it updates. Existing evaluators should be issued keys before they update. - `TRIAL_DAYS` in `lib/license.ts` is the single source: every screen, doc and sales page derives from it, and the entitlement tests assert against it rather than a baked-in number. ## v2.99.9 — every broker's MTF list, compared — and a sidebar that's yours ### The complete MTF picture (10,501 per-stock margins, all seven brokers) The bundled margin snapshot is now built from each broker's own feed via the owner's refresh toolkit — Dhan (1,742), Zerodha (1,493), Upstox (1,440), Kotak Neo (1,680), Paytm Money (1,460), Angel One (1,557, per-scrip from back-office categories + NSE VaR/ELM) and Groww (1,129). Approved-but- unfunded scrips (Kotak funds 1,178 of its 1,680) carry 100% own margin and a funded flag — full cash in practice, never an invented funding number. Every MTF consumer upgraded silently: the trades-form auto-split, the margin gauge and the drift card now answer per-scrip for brokers that previously fell back to rules. ### Broker Costs: MTF across your brokers A new section on the cost comparison: per-broker funding reality (approved vs actually funded, median margin, best leverage), Sahi listed explicitly as offering no MTF delivery, and **your own delivery/MTF symbols margin-priced across all seven lists** with the cheapest broker highlighted per stock. The footer says what the table can't: lowest margin is most leverage, not lowest cost — interest, plan fees and DP are priced in the cost table above. ### A sidebar that's yours "Customize order" — move screens within a group, move whole groups, persisted on this machine, one-click reset. Saved order merges with each update's nav, so new screens appear in their default slot instead of vanishing. ## v2.99.8 — MTF that knows your broker's list, and trades that carry their charts ### Per-stock MTF margins (3,083 real numbers, not one assumption) The flat 25% own-margin assumption is gone. The app now bundles the brokers' own approved-stock margins — Zerodha (1,493, complete), Paytm Money (1,460, complete), Groww and Kotak Neo (partial — their sites serve no more openly), Angel One and Dhan as their published rules (40%/50% by category; ~25%). Coverage is declared everywhere: a partial list never pretends otherwise. Resolution chain, most specific wins: your uploaded refresh → bundled stock list → broker rule → your margin-config rate → 25% default. Refresh without an update: upload a broker's JSON/CSV and it takes precedence. - **Trades form**: pick MTF, enter price and quantity — your capital and the broker-funded amount fill in from the per-stock margin, both editable, each deriving the other. A badge names the source and its as-of date. - **Margin gauge**: MTF positions block their own-margin share at the per-stock rate ("own 25.9% (stock list)"), never 100% of invested. - **Startup checks** on Portfolio Risk: a staleness flag when the bundled lists age past 60 days, and an MTF drift card showing open positions whose current requirement moved since entry — with the top-up figure. The journal itself is never rewritten. - `docs/MTF_STOCK_LISTS.xlsx`: the full capture, one sheet per broker, with sources and caveats. ### From the previous batch, also in this build - **Chart screenshots at trade entry** — saving a trade flows into an attach step (trade commits first; screenshots never block the save); the edit dialog gets the same section. - **Export selected trades as PDF** from the Trades toolbar — summary tiles plus a full-detail card per trade, print-to-PDF. - **Daily P&L calendar honesty** — closed trades with no exit date (aggregated P&L imports) are now counted under the calendar instead of silently missing. - MTF margin estimate fixed to block only the own-margin share (was 100% of invested when no rate was configured). ## v2.99.7 — sectors in one click, and edge by theme ### The bundled NSE index map Official industry classification + thematic index memberships for ~1,150 NSE symbols, built from 54 index constituent lists and bundled with the app (snapshot date shown in the UI — constituents change at every semi-annual rebalance; `scripts/build-nse-index-map.mjs` regenerates from fresh downloads). One click on Instruments fills sectors, names and ISINs for every symbol in your master — and the **sector-concentration panel on Portfolio Risk starts working without any manual tagging**. Sectors fill only empty cells: a classification you typed yourself is never overwritten. Individual `ind_*_list.csv` uploads work too, and record that index's membership. ### Edge by NSE theme A new lens on the Edge report: expectancy, win rate and net P&L per thematic index — Defence, Railways PSU, EV, Digital, Internet… — answering where your edge actually lives, which segment and setup tables cannot see. Honesty built in: themes overlap (one stock sits in up to ten indices), so rows are labelled as lenses, not slices; only closed trades count; thin samples are flagged; and the untagged remainder of your book is reported, never hidden. ## v2.99.6 — files in, typing out ### Uploads everywhere data used to be typed - **Instruments** fill from the files NSE actually publishes: the daily CM bhavcopy or `EQUITY_L.csv` (names + ISINs) and `fo_mktlots.csv` (lot sizes), with in-app guidance on where each lives on nseindia.com and to download after ~6 PM IST. Merge semantics: only columns a file proves are written, so sector tags survive — no NSE file publishes sectors, and none are invented. - **Corporate actions** import from the NSE CF-CA CSV. Splits, bonuses and cash dividends are translated (bonus A:B → ×(A+B)/B, FV split X→Y → ×X/Y); every parsed row keeps the verbatim PURPOSE as its note so the reading can be checked before applying; rights and buybacks are counted, never guessed; re-uploading an overlapping date range never duplicates an event. - **Symbol aliases** accept a CSV upload (header row auto-dropped). - **AIS reconcile** accepts the income-tax portal's JSON download. A tolerant walker classifies headings and inherits them down to detail rows, prefers leaves over category aggregates (the double-count trap), normalises AY→FY, and reads Indian-grouped amounts. Paste still works — one reconciler, two front doors. ### The audit log grew categories Auto-MTM writes a row per trading day, and after a few months the flat table was price-maintenance noise with a journal buried in it. Entries now group by **what happened** — Trades · Journal & playbooks · Imports & deletes · Capital · Settings & rates · Licence · Auto-MTM — as clickable category cards with counts, drilling into the detail table. ### The client template is finally anonymous The bundled first-run database carried the developer's own capital figures and go-live date into every installed copy. It now ships zero capital and a sentinel go-live that is stamped to the *user's* actual first-launch date. Existing installs are untouched — this affects new installs only. ## v2.99.5 — the व mark, and tables you can actually read ### Identity Vyuha finally has its own mark: the Devanagari letter **व** hanging from a shirorekha extended edge to edge across a teal squircle — the headline stroke of the letter doubling as a price level cutting the frame. It ships everywhere at once — installer icon, taskbar/dock, favicon, sidebar, share card — all generated from one committed glyph outline by `scripts/make-logo.mjs`, so the surfaces cannot drift. The outline comes from Noto Sans Devanagari (SIL OFL), extracted once and committed: nothing depends on a Devanagari font being installed on the user's machine. The share card previously drew व as canvas *text* in a font with no Devanagari coverage — exported PNGs could carry a tofu box; they now paint the same outline via `Path2D`. A secondary ₹ mark (same bar, same baseline — ₹ was derived from र and hangs from the identical stroke) ships as a brand asset. ### Readability - **Row separators you can see.** Every table drew its row rules at `border-border/40` — measured at 1.08:1 against the row surface, below what the eye registers as a line. A dedicated `--color-rule` token (~1.5:1, both themes) now rules all 50 separator sites. Zebra striping was measured and rejected: the surface tokens are only 1.02–1.05 apart, too close to read. - **Headers that read as headers.** Table headers were the same size and nearly the same weight as data rows. They are now a step smaller, uppercase, letter-spaced — a proper header band. - **Light-mode primary now passes AA.** `#0d9488` on white measured 3.74:1, under the 4.5:1 floor for the small text primary is used for (links, active nav, sort state). Now `#0b7a70` at 5.21:1 — visually the same teal. ### Ease of use - **Display density** (Settings → Preferences): Compact (the shipped terminal look) or Comfortable. One root font-size — everything is rem-sized, so the whole interface scales together, and the choice joins My Default Settings. Baselines captured before this release simply don't track it: no phantom "differs from your default" after upgrading. - **The trades table pins select + Instrument** while scrolling horizontally — wide tables no longer scroll the symbol out from under you. - **Long option names truncate** (full name on hover) instead of one tradingsymbol shoving every P&L column off screen. - **Sticky headers and rows now share one surface** — scrolling no longer reveals a tone step between the header band and the table it belongs to. - Table heights use `dvh`, so mobile browser chrome no longer hides the last visible rows. ## v2.99.1 — a help desk, honest deletion, and settings that come back ### Help Desk A new screen (`/help`, System group) describing every part of Vyuha: the question each screen answers, its honesty rules, and what it deliberately will **not** do — the refusals are design, so they are documented as features. Searchable by task words ("delete", "stop loss", "grandfathering"), grouped like the sidebar, every card deep-linking to its screen. A build-time test joins the help registry against the navigation in both directions, so a screen without help — or help for a screen that no longer exists — cannot ship. ### CLEAR / DELETE Deleting is the one destructive thing Vyuha does to a user's own record, so the decision and the execution are separated: a pure resolver turns a scope into exactly which trades match, and the confirmation dialog shows — and submits — that same list of ids. Nothing is re-derived after you confirm. - **Select rows in Trades** with checkboxes (header selects all visible; selection resets when filters change so a hidden row cannot be deleted unseen), then delete with a full preview: counts, open/staged warnings, net P&L, symbols and date span. Past ten trades, the count must be typed. - **Delete an imported file** from the Import screen — with the cascade question asked explicitly: remove the trades it created too, or keep them and lose only the provenance record. The table shows how many trades each import still owns. - **Scopes for batch cleanup**: import batch, manual-entry day (which means *not-imported*, so an import can never be swept up by a manual cleanup), date range on either leg, broker, segment, account, or exactly what the current filter shows. - **Fixed on the way**: the old single-trade delete removed the trade row and nothing else — orphaning legs and attachment records, leaking screenshot files on disk forever, and writing no audit entry. Every delete now takes the trade's belongings with it, writes the full before-snapshot to the audit log first, and unlinks (never deletes) a linked IPO record. - There is deliberately **no "delete everything"** — that is what Backup & Restore is for, where it is preceded by an export. ### Advisory panels can be dismissed — with memory Panels like "open holdings with no current price" are computed from your data, so they cannot simply be closed while the situation persists. Dismissing one now hides it **for that exact situation**: any real change — a new unmarked holding, one resolved — brings it back. Nothing stays hidden while the facts move. ### Import correctness - **The reported "no cost on record" bug ran to ground.** The parser handles the Dhan Global Transaction Report correctly (verified against the real file — every position pairs and closes as it should). The real fault: the duplicate check keys on prices and dates, which a P&L export states differently or not at all — so the *same trade* arriving from two file kinds inserted twice, producing a costless duplicate holding, "open" positions that were closed, and what looked like bad merges. The import preview now detects rows that look like trades already recorded from a different file kind and says so before commit — naming the earlier file. Nothing is merged automatically, because merging means choosing whose numbers to keep, and getting that wrong silently corrupts cost basis and holding period. - **"No mark price" reworded.** It read as "no buy price". The panel now says what it means: a **current price to value the holding at today** — a separate fact from the purchase price, which these holdings may well have. ### My Default Settings The first configuration you run with is kept as your baseline, automatically. Change anything freely; **Restore my defaults** brings back preferences and the charge/margin/risk rate tables in one transaction, with a diff of what would change shown before you confirm. **Save current as my default** replaces the baseline explicitly. A restore returns *choices*, never state: your licence, trial, accounting and account selection survive untouched, byte-for-byte, by construction — those fields are not in the snapshot at all. ### Notes Migrations `0037_panel-dismissals.sql`, `0038_settings-baseline.sql`. **1,147 unit/integration tests** pass with typecheck, lint and the production bundle. ## v2.99.0 — Vyuha runs on a Mac, and the seller journal grows up Three upgrades and two real bugs, one of which was found by the macOS support this release adds. ### Vyuha builds and runs on macOS The project had been Windows-shaped in the places that decide whether it runs at all, so this fixes those rather than bolting a runner onto the side. - **Bundle targets** went from a hardcoded `nsis` to per-platform, and the macOS bundle metadata that was entirely absent — category, copyright, descriptions, minimum system version — now exists. - **The bundled Node had no execute bit on macOS or Linux.** `copyFileSync` does not carry the source mode across on every platform, and a sidecar without `+x` fails at spawn with a bare `EACCES` — after the installer has been built, signed and published. - **Two Mac builds, not one universal binary.** The app ships a Node runtime copied from the machine that built it, so a universal bundle would carry an arm64 Node that dies on startup on every Intel Mac, in a way no check would notice. Take the build matching your Mac. - **Releases now build on three platforms** — Windows x64, macOS Apple silicon, macOS Intel — and one platform failing no longer removes the others from the draft. - **CI runs the full Playwright suite on a real Mac**, plus a job that proves the desktop bundle assembles there and that its sidecar is present, native and executable. > **macOS Gatekeeper:** these builds are not yet notarised with an Apple > Developer ID, so the first launch reports that the developer cannot be > verified. Right-click the app → Open → Open, once. ### Option-seller journal, round two The existing report was the scoreboard — how much premium was kept. These are the questions a seller actually changes behaviour over: - **Where the edge is, by days to expiry.** Expiry zone, expiry week, fortnight, monthly and far are different businesses on the same underlying. - **Does hedging pay?** Hedged vs unhedged expectancy, reported as a *gap between two observed populations* and never as "hedging cost you ₹X" — you chose which trades to hedge, so the two groups are not a controlled comparison. That caveat ships inside the result rather than as UI decoration. - **Did rolling help?** Adjustment chains compared against what the first leg alone actually booked — a result that was genuinely available, not a model of what the underlying did next. It surfaces the number worth knowing: how many chains turned a first-leg profit into an overall loss. - **Rich IV or cheap IV**, ranked within this journal's own recorded entry IVs for that underlying, because there is no IV feed. Fewer than eight observations and it says so instead of ranking against three numbers. - **Premium kept per day of risk**, as a median — one expiry-day scalp distorts an average badly. Every grouped finding carries its sample size and stops calling itself trustworthy below fifteen trades. Undated trades, unrecorded DTE and open positions are excluded rather than guessed. ### Licence: time is now monotonic The trial and any annual key were both evaluated against the system clock, and an offline app cannot ask anyone what day it is. Winding the clock back renewed a 14-day trial and revived a lapsed key, silently and repeatedly. The install now remembers the latest date it has ever seen and reasons about `max(clock, mark)`. It is a **ratchet, not a lock**: forward jumps are always honoured, a two-day tolerance absorbs timezone changes, DST and NTP corrections, **nothing is ever expired early**, and a corrupt mark is ignored rather than locking anyone out. A genuinely wrong clock costs a user nothing. ### Two bugs - **Two e2e failures that were real, not flaky.** `staged-position` had reddened CI for six consecutive releases: the panel fetches its ladder after mount, so the test's `enable.count()` ran during the loading window, returned 0, skipped the click silently, then waited twenty seconds for a ladder that was never created — surfacing as a failure that pointed at the panel instead of the skipped click. The backup spec compared a page count against a whole-database dump, which are different populations. - **`SQLITE_BUSY` during `next build`.** Page data is collected by several worker processes, each opening the same SQLite file and racing to set `journal_mode`. Raising `busy_timeout` did **not** fix it — changing the journal mode takes a brief exclusive lock and returns busy immediately rather than waiting. The database is now created before the build, and the pragma is tolerated failing since WAL is a property of the file, not the connection. ### Notes Migration `0036_clock-high-water-mark.sql`. **1,062 unit/integration tests and 19 Playwright flows** pass on Linux and macOS, with typecheck, lint and the production bundle. ## v2.98.0 — the safety net proven, and the last mile of the tax stack v2.97 shipped seven subsystems in one release. The two that can lose data silently — the backup and multi-account isolation — carried almost no tests between them. This release does not add features; it makes the existing ones provable, and fixes what writing the proofs uncovered. ### Backup and restore - **A latent data-loss path in restore is closed.** `dumpDatabase(false)` still emitted `attachments: []`, and restore guarded on the field's *presence* rather than its length — an empty array is truthy. Restoring an attachments-excluded backup therefore deleted every screenshot on disk while restoring the `trade_attachments` rows that pointed at them. Attachments are now replaced only when the backup actually carries some. A backup exported without them says nothing about which files should exist, and the asymmetry of guessing wrong is total: an orphaned file is invisible and reclaimable, a deleted screenshot is gone. - **Restore is now ordered so any failure leaves the journal intact.** Incoming attachment bytes are decoded and staged to a sibling directory *before* the database transaction runs; the table swap is one transaction; the staged directory is swapped in only after that commits. A malformed payload or a bad row now returns "your journal is unchanged" instead of throwing partway through. - **The backup KDF was strengthened.** scrypt ran at node's default cost (N=16384) — light for a key protecting an entire trading history in an offline file an attacker can grind at leisure. New backups use OWASP's baseline (N=2^17) and, more importantly, **record the parameters in the envelope**, so the cost can be raised again without stranding files already on disk. Backups written before this release still open. - **19 round-trip tests** now cover what `backup-format` never did: dump → wipe → restore reproducing every table, money surviving as integer paise, attachment bytes returning, encrypt → decrypt → restore, wrong passwords, tampered ciphertext (GCM), and v1 envelopes. ### Multi-account - **Single-account installs no longer sit in the aggregate view.** Migration 0034 defaulted `selected_account_id` to 0 ("All accounts") while trades defaulted to account 1, so every install landed in an aggregate view of exactly one account — which is what made writes ambiguous in the first place. Migration `0035` selects the sole account, and `getSelectedAccountId()` resolves a stored 0 the same way, covering fresh installs and users who delete a second account back down to one. - **Writes from the aggregate view now ask which account.** With 2+ accounts, the add-trade form and the importer show an account picker instead of silently filing everything under Primary. The importer asks before the preview, because dedup is per (account, broker) and a preview run against the wrong account reports the wrong duplicate count. An explicit account id is validated against the accounts table, so a stale tab cannot redirect a write. - **14 isolation tests**, including a **schema registry test** that reads `account_id` columns out of SQLite itself and fails the moment a new table gains one — catching the next table, not just today's eight. ### ITR schedule-format export The ITR pack already computed the head-wise split, Guidance-Note turnover and the 44AB read. What it could not do was answer the question a CA actually asks: *which box does this go in?* - **Schedule CG** — A3 for STCG u/s 111A and B4 for LTCG u/s 112A, in the return's own item codes, with consideration and cost reported **separately** (a net gain loses exactly the two figures the schedule asks for) and the ₹1.25L / ₹1L deduction applied per the sell-date regime. - **Schedule BP** for both business heads, **Schedule CFL** with each loss vintage and the year it lapses — sourced from the same set-off engine the Tax Summary uses, so the two pages cannot drift apart. - **It says which form the book implies:** ITR-2 for a capital-gains-only year, ITR-3 the moment any intraday or F&O appears. - **The STT rule is applied per head, which a re-label would get wrong.** STT is excluded from capital-gains deductions (proviso to S.48) but allowed in full as a business expense against intraday and F&O. Every other figure in Vyuha is net of STT, so the Schedule CG balance is deliberately *higher* than the net P&L shown elsewhere. The charge breakdown is stored per trade, so the split is a fact here rather than an estimate. - Amounts the app cannot derive are emitted as **blank, never 0** — "not applicable" and "zero" are different answers on a tax return. ### The v2.97 features are now actually tested - **The four thin modules went from 5 tests to 71.** Options-seller, scaling quality, session review and data quality shipped as headline features with one or two tests between them. - **Five new Playwright flows** cover the surfaces no e2e had ever touched: the Data Quality Center, session plan → review, account switching and isolation, the backup export → restore round trip through the real UI, and an encrypted backup refusing the wrong password. ### Notes Isolation was found to be *correctly implemented* across all eight account-scoped tables; these tests lock that in rather than fix it. Foundation: migration `0035_default-account-selection.sql`; **1,019 unit/integration tests and 19 Playwright flows** pass, with typecheck, lint and the production bundle. ## v2.97.0 — trust, workflow, and portfolio intelligence Seven coordinated upgrades turn Vyuha from a journal with deep analytics into a safer daily operating system for traders: - **Complete, encrypted backup and restore.** Versioned full-database exports now include every user table and screenshot attachment, support AES-256-GCM password protection, and show a restore preview before anything is replaced. - **Data Quality Center.** One confidence score surfaces missing cost basis, marks, stops, MTF funding, option metadata, instrument-master coverage, IPO links, and missing attachment files, with direct remediation routes. - **Session planner and review.** Pre-market watchlist, playbook, cutoff, trade-count and loss budgets flow into a deterministic post-market adherence review. - **Versioned rule packs.** SEBI derivatives rules and broker-rate assumptions carry effective dates, source URLs, review dates, versions, and an audit trail; the compliance radar reads the active pack rather than hard-coded display copy. - **Scaling Quality + Trade Replay.** Staged positions are compared with a clearly labelled first-entry-only counterfactual and replayed over local EOD price history. - **Options Seller Journal.** Entry/exit IV, DTE, hedge status, expiry outcome, and adjustment groups sit beside premium-capture and outcome summaries. - **Multi-account portfolios.** Trades, ledgers, imports, broker connections, capital snapshots, IPOs, and quality/workflow reports are account-aware, with a sidebar switcher and an honest aggregate “All accounts” read view. Foundation: migration `0034_vyuha-297-foundation.sql`; **892 unit/integration tests and 14 Playwright flows** pass, together with typecheck, lint, and the production bundle. All notable changes to Vyuha are tracked here. Versions are kept in sync across `package.json`, `src-tauri/tauri.conf.json`, `src-tauri/Cargo.toml`, and the sidebar footer via `npm run bump-version `. ## v2.96.0 — free plan vs paid plan, side by side (and rate cards that finally reach you) ### Kotak Neo, Paytm Money and Sahi Rate cards sourced from each broker's own pricing page and cited in `lib/db/seed-data.ts`, so a future reader can check them against the source. | | Delivery | Intraday | F&O | MTF interest | |---|---|---|---|---| | **Kotak Neo** | 0.20%, uncapped | ₹10 or 0.05%, lower | ₹10 flat | 9.69% (Pro plan only) | | **Paytm Money** | 2.5% or ₹20, lower | 0.05% or ₹20, lower | ₹20 | tiered 7.99 / 9.99 / 8.99% | | **Sahi** | ₹10 or 0.05%, lower | ₹10 or 0.05%, lower | ₹10 flat | **not published** | Four things that would have been wrong if assumed: - **Kotak's delivery is 0.20% with NO cap.** On a large delivery book that is the difference between ₹94k and ₹1.73k lakh of charges — it is a percentage broker, not a discount one, and the comparison now says so plainly. - **Sahi's delivery is not free**, unlike almost every other discount broker. - **Paytm's MTF tiers are not monotonic** — the middle band (9.99%) is dearer than the top one (8.99%). Code that assumed sorted tiers would misprice every mid-size book. - **Paytm's MTF brokerage is a FLOOR, not a cap** — "0.1% or current brokerage, whichever is higher" — so capping it at ₹20 would understate it badly. ### Percentage DP charges Kotak Neo bills DP as **0.04% of the sale with a ₹20 minimum**, which the flat-fee model could not express. `dpPct` now exists: when set, the flat `dpCharge` becomes the FLOOR rather than the whole fee. Every other broker leaves it at zero, so their arithmetic is byte-identical to before. ### "Unpriced" no longer reads as free **"Unpriced" means that broker has no rate row for those trades' segment and exchange** — it could not price them at all. Angel One and Upstox showed `₹0` and a green `−₹94,133`, which reads as the biggest saving in the table when it actually means *no answer*. Now: - A broker that priced **nothing** shows "no rates configured — nothing to compare" instead of zeros. - A broker with **partial** coverage shows its total marked `*` and `n/a` against recorded, because a partial total is the cost of a smaller book: it is always lower, and always flatters. - **Only a broker that priced every trade can be called cheapest.** Ranking on a partial total would put a broker that priced three trades above one that priced three hundred, purely for doing less work. ### Sahi's unknown MTF rate Sahi names margin funding as a revenue source but publishes no rate. Neither obvious option was honest: seeding 0% advertises free funding in the very report meant to compare costs, and omitting the row makes `findRates` throw the moment such a trade is imported. So `mtfRateUnknown` states it as a fact — the row exists with every other charge real, and an MTF trade priced against Sahi counts as unpriced rather than as free. ### Verified A 60-assertion forensic sweep across **every broker × every segment**: no negative components, components summing to the stated total, brokerage respecting each cap and floor, statutory rates identical across all eight brokers (they are the law, not a broker's choice), and each broker's published numbers pinned individually. Hand-checked against arithmetic: a ₹5,00,000 Kotak delivery round trip gives brokerage ₹2,000, STT ₹1,000, stamp ₹75, DP ₹200 — each matching its formula exactly. 873 unit tests total. ### Free and paid plans are now separate offers Most traders are on no plan at all. Vyuha was pricing every broker as though everyone subscribed — Kotak Neo's 9.69% MTF and cheaper delivery come with **Trade Free Pro at ₹249/month**, and the free tier gets neither. Quoting the subscriber rate to a non-subscriber recommends a discount they will not receive. `charge_config` now carries a **plan** (`default` is the free tier every broker has), so a paid tier is stored as its own complete rate card beside the free one, and both appear as their own rows in Broker Costs: | | Delivery | MTF interest | Fee | |---|---|---|---| | Kotak Neo — free | 0.20% | **not published** | — | | Kotak Neo — Trade Free Pro | 0.10% | 9.69% | ₹249/month | **The subscription is in the total, not a footnote.** It is amortised over the months the compared trades actually span, because a paid plan judged on brokerage alone always looks cheaper than it is — which is precisely the mistake this report exists to prevent. On a large book Pro wins even after its fee; on a small one the fee costs more than it saves, and the table now says so. Angel One, Upstox, Dhan, Zerodha, Groww, Paytm Money and Sahi each run a single flat structure and sell no tier. Inventing one for them would be a claim about their pricing, not a gap in ours. ### Three rate cards were wrong Checked against each broker's live pricing page: - **Angel One delivery is FREE**, not "₹20 or 0.1%". It had been overcharged on every delivery trade in the comparison. - **Angel One MTF is 18%** a year, not 14.25%. - **Upstox MTF is 18.25%** (₹20/day per ₹40,000 slab), not 14.95%. The two MTF figures had been unsourced estimates, and both were understated by about a quarter — the direction that makes margin funding look cheaper. ### New rate cards never reached an installed copy — the real bug Migrations ran on every launch, but **seeding ran once**, when the database file was first created. So every broker added and every rate corrected after a user's first launch stayed on the developer's machine. Kotak Neo, Paytm Money and Sahi would have shipped and still shown as *unpriced* on your install; the Angel One and Upstox corrections above would never have arrived. Rate cards are now refreshed on every launch — and a row **you** edited is pinned by `user_edited` and never overwritten, because your figure came from your own contract note and outranks ours. ### Also fixed - The **trade calculator's broker list was hard-coded to three brokers** — Angel One, Upstox, Kotak Neo, Paytm Money and Sahi were invisible there. It is now driven by the rate cards themselves, so it cannot go stale again. When the selected broker sells a paid tier, a plan picker appears beside it. - A legacy unique index on `(broker, segment, exchange)` survived the plan migration and silently swallowed every paid-plan row inserted against it. - Margin defaults existed for only five brokers; the three new ones fell through to a global default without saying so. 885 unit tests. ## v2.95.0 **An IPO allotment is no longer a dead holding.** Shares from an IPO are credited on allotment — they never appear as a buy in any tradebook. So the position lands in the journal missing **both** facts that make a holding mean anything: - **no cost basis** — nothing says what you paid, so it cannot join win rate, expectancy or Return on Margin - **no mark price** — nothing says what it is worth, so it has no unrealised result and appears in neither "in gain" nor "in loss" It just sat there, contributing to nothing. ### The route out Trades now surfaces **open holdings with no mark price**, says plainly what that costs you, and — when the holding has no cost either, which is the signature of an allotment — offers **"This came from an IPO"**. That creates a linked IPO record seeded from the holding: symbol, quantity, exchange and date carried across. The **issue price is deliberately left blank**, because that is precisely the fact the journal is missing and the one thing only you know. Nothing is guessed. ### The IPO record becomes the source of truth Once linked, saving the IPO writes back to the holding: - the **issue price minus any category discount** becomes the cost basis - the **listing price** becomes the mark — or the **exit price** if you have sold, which also closes the position and books the realised P&L - the **allotment date** becomes the acquisition date, which starts the tax holding period Verified end to end: 37 shares at ₹500 issue, listed at ₹598 → basis ₹18,500, mark ₹598, unrealised **₹3,626**. Then an exit at ₹640 → closed, sold ₹23,680, gross **₹5,180**, mark cleared, unrealised back to zero. Keeping the two numbers in **one** place is the point. A second copy on the trade would drift, and you would have no way to tell which was right. ### What it still refuses to do - With no listing price and no exit, the holding stays **honestly unmarked**. The basis is supplied — so it rejoins the edge statistics — but no mark is invented, and it keeps appearing under **Open** rather than being sorted into a gain or loss it never had. - An application that was **not allotted** produces no holding at all. A patch is refused rather than creating a position from shares that never arrived. - Flagging a holding as an IPO does **not** by itself price it. Until an issue price is entered it stays out of win rate and expectancy, because it still has no basis. 19 new unit tests (813 total) and 1 new e2e flow (14 total). ## v2.94.0 **See exactly the trades you mean**, and a repo that no longer mixes the vendor's files with the buyer's. ### Status and outcome, in one control The Trades filter bar gains a dropdown covering both questions at once: - **Status** — Open · Closed · Staged (scaled) positions - **Outcome** — In gain (open) · In loss (open) · Profit (closed) · Loss (closed) Every option carries its **own live count**, computed after the other filters, so an empty view is visible before it is chosen. The counts are a partition: open + closed always equals the total, and an e2e test asserts that choosing an option returns exactly the number it advertised — a filter whose label disagrees with its result is worse than no filter. **An open position with no mark price appears in neither "in gain" nor "in loss".** It has no unrealised result to judge. Vyuha stores 0 for an unmarked holding, and reading that 0 as breakeven would file it under a result it never had — so those positions stay under the *status* views, and the count of them is stated on screen rather than left as a silent shortfall. Staged is deliberately **not exclusive**: a staged position is also open or closed, so "show me my staged trades" and "show me what is open" never fight. ### The repository now separates owner from client ``` docs/client/ what a BUYER gets — install guide, getting-started deck, welcome docs/owner/ VENDOR ONLY — licensing, release runbook, monetization, indicators docs/sales/ public marketing assets (landing page, brochure) ``` Two new indexes: `docs/owner/README.md` is the operating manual for cutting a release and selling a key — including which three secrets exist, where they live, and precisely what each one costs if lost. `docs/client/README.md` is the buyer's first page, including which broker file to import and why Vyuha asks about MTF at all. Also removed: a stale `updater-private.key.pub` at the repo root, left over from the dead pre-v2.91 signing key. It matched nothing that ships and could only mislead. The current public key now sits in `docs/owner/` beside the runbook. The README gained a **repo map**, and states the rule that keeps the maths honest: `lib/analytics/*` and `lib/engine/*` import neither the database nor React, which is why every number can be tested without a browser. 18 new unit tests (794 total) and 3 new e2e flows (13 total). ## v2.92.0 **The staged-position panel no longer blocks you.** "Add entry" was disabled once a position went flat, on the reasoning that you cannot add to something that no longer exists. That reasoning was wrong twice over: - **Re-entering the same name, or correcting a fill booked in error, are ordinary things a trader does.** A journal that refuses to record what actually happened is worse than one that records it with a caveat. - **The engine already allowed it.** `validateLegs` only ever rejects an exit larger than the quantity open at that point, and `rebuildStagedTrade` re-derives `isOpen` from the ladder — so a new entry re-opens the trade by itself. The block was a UI opinion with nothing behind it. All three actions — Add entry, Book exit, Set stop on all open — are now always clickable. In their place: - A line under the buttons says what each will do **from the current state**: that Add entry re-opens a flat position and keeps the realised P&L, and that Book exit has nothing to sell against until an entry exists. - The Add-entry dialog carries an explicit **"this re-opens the position"** notice when the position is flat, with what happens to the P&L already booked. - An e2e test now asserts that **no action is ever disabled by position state**, so this cannot quietly return. The principle, written down so it stops being re-litigated: **Vyuha warns; the user decides.** Guards that remain are only for work in flight (a pending submit) or genuinely empty input — never for a state the app disapproves of. ## v2.91.0 **MTF, answered properly** — and the updater signing that has been quietly broken since v2.84. ### Dhan API — the only source that STATES margin funding Every Dhan *file* is silent about MTF. A P&L export has no product column; a transaction report has one implicitly in the charge rates, but MTF and delivery carry identical STT and stamp duty while financing interest is booked to the ledger. From files alone, "was this MTF?" is unanswerable. `GET /v2/positions` answers it: `productType` is an enum of CNC, INTRADAY, MARGIN, **MTF**, CO and BO. Stated by the broker, not inferred from charges, so those rows need no confirmation dialog at all. - Connect under **Import → Connect broker**, now a two-broker card. Dhan wants a **Client ID** plus a 24-hour access token from web.dhan.co → DhanHQ Trading APIs; Zerodha is unchanged. - Pulls today's positions through the same classify → charges → dedup pipeline as every file, so re-pulls stay idempotent. - `MARGIN` deliberately maps to *no* hint: it is the F&O carry-forward product, and the classifier already reads the segment off the symbol. - Positions carry aggregates, not fills, so execution times stay null rather than inventing a session. ### Dhan ledger import — real MTF interest instead of an estimate Dhan calculates MTF interest daily and posts it **weekly to the ledger**. Until now Vyuha estimated it from the funded amount and a day count. **Cash & Ledger** now imports the ledger and reads the real figure. - The card shows **actual vs estimated side by side**, with the gap in rupees and percent. Deliberately a *comparison, not a correction*: ledger interest is a weekly account-level posting, and splitting it back across positions would invent a per-trade allocation the broker never stated. - Columns are found by **header keyword, not position**, so a reordered export still parses. - MTF is matched **first and on its own**, because a generic "charges" rule would otherwise swallow "MTF charges". - Opening/closing balance rows are recognised as **assertions, not entries**, so the opening capital is never counted as a deposit. - Anything the classifier cannot read is **listed for review**, never filed under a guess. A ledger importer that silently mislabels a debit is worse than one that admits it is unsure. ### Fixed: releases have been unsigned since v2.84 `tauri.conf.json` ships a public key and `createUpdaterArtifacts: true`, so every install trusts updates signed with the matching private key. That key was never on this machine. Tauri does not fail without it — it prints a notice at the end of a multi-minute build and emits no `.sig`. Seven releases went out looking complete with auto-update silently dead; the last signature was **v2.82**. - A signing keypair now lives in `.secrets/` (gitignored) and the build picks it up automatically. - `tauri build` is launched by a wrapper so the key reaches the right process — the three `&&`-chained steps do not share an environment. - The build now **refuses to start** without a key, and **fails after** if the installer has no `.sig`. Deliberate unsigned builds need `VYUHA_ALLOW_UNSIGNED=1`. - **The public key changed**, because the original private key is unrecoverable. Installs at v2.82 or earlier will not accept these updates and must be reinstalled once from the release page. Everything since v2.84 was unsigned anyway, so nothing that previously worked is lost. 41 new unit tests (776 total). ## v2.90.1 — CRITICAL: v2.90.0 installer does not run on any machine but the build machine **Do not distribute v2.90.0.** It starts, fails to load the database engine, and shows a bare "Internal Server Error". ### What happened Next 16 stages every `serverExternalPackages` entry as a **symlink** under `.next/node_modules/-`, pointing at an **absolute path inside the developer's checkout**: ``` better-sqlite3-90e2652d1716b047 -> T:\…\vyuha\node_modules\better-sqlite3 pdf-parse-08f4573089f02674 -> T:\…\vyuha\node_modules\pdf-parse ``` The compiled server requires those packages *by the hashed name*. The desktop bundler copied the links verbatim, so the installer shipped two 69-byte pointers to a directory that exists on exactly one computer in the world. On any other machine the first database call fails with: ``` Cannot find module 'better-sqlite3-90e2652d1716b047' ``` and because the failure happens during render, Next then tries to draw its global error page — which needs the same missing module — so the user sees plain "Internal Server Error" with no clue as to the cause. ### Why it slipped through Two reasons, both now closed: 1. **It works perfectly on the build machine.** The symlink target is real there, so every local check — 735 unit tests, 10 e2e flows, a full route sweep, a manual browse of the running app — passed against a bundle that could never work anywhere else. 2. **The only outward symptom was the installer getting SMALLER.** 32.25 MB at v2.89.0 → 28.27 MB at v2.90.0, because two real packages became two links. A shrinking installer reads like a successful optimisation, not a defect. ### The fix - Symlinks are now **materialised into real directories** during bundling. `fs.cpSync(..., { dereference: true })` alone is not enough on Windows, where these are directory junctions that get copied as links regardless, so each one is explicitly replaced with its target's contents. - A **portability guard** now runs before any installer is produced and **fails the build** if the bundle contains a symlink, an empty external package, or a missing `better-sqlite3` native binding. A build that would only run on the build machine can no longer reach a customer. v2.90.1 is byte-for-byte v2.90.0 plus this fix. Installer is back to 32.25 MB, exactly on the size trend from v2.80 onward. ## v2.90.0 **Dhan's Global Transaction Report** — the file that finally answers the three questions an aggregated P&L cannot: *when* did I trade this, *what product* was it, and *what did it actually cost*. ### A new importer, and why it matters more than "one more broker file" Dhan's P&L export has no per-trade dates and no product column. That is why a book built from it sat almost entirely outside the equity curve and every risk-adjusted metric. The Global Transaction Report has one row per scrip per settlement bill, with a real date, and the broker's own charges on every row. - **Delivery and intraday are told apart from the charges themselves.** India levies statutory charges at different rates per product, so the rate is a fingerprint: stamp duty **0.015%** on a delivery buy against **0.003%** intraday, corroborated independently by STT at **0.1%** on both legs versus **0.025%** on the sell alone. Two witnesses, agreeing on 89 of 92 rows of a real report. Below ₹5,000 the per-rupee rounding swamps the signal, so those rows return *unknown* rather than a reading of an artefact. - **MTF is still never claimed.** An MTF position carries exactly the same STT and stamp duty as delivery; the only thing separating them is financing interest, which is a ledger entry and appears nowhere in this file. Verified rather than assumed: `Oth. Charges` totalled **₹0.03** across 92 rows and GST was 18% of (brokerage + txn + SEBI) to within **₹0.01**, leaving no unexplained rupee for financing to hide in. The confirmation panel therefore narrows from every scrip to just the **delivery** rows — intraday and F&O can never be MTF, so asking about them was noise. - **Bills that mix both products are split algebraically.** Buy 3,600, square 1,800 the same day and carry the rest, and the stamp duty lands between the two rates. Since stamp is linear in value, the split has exactly one solution. Labelled as *derived*, because it is arithmetic on a total rather than a stated fact. - **Legs are paired FIFO across dates into positions.** Bought the 6th, sold the 7th is one trade held one day — not a phantom open position and a phantom naked short. FIFO matches how the Income Tax Act treats equity delivery, so the holding periods agree with the ones that decide STCG versus LTCG. A conservation check asserts no share and no rupee is created or lost. - **The broker's charges are stored as the truth**, with Vyuha's computed figures kept alongside as a cross-check. This is real money that really left the account; the engine cannot be more accurate about a charge than the charge itself, and storing an estimate that differs from the contract note would make the journal disagree with the broker. - Execution times stay **null**. The date column reads `00:00:00` on every row — a settlement stamp, not a fill — and bucketing the whole book into a pre-open session would fabricate an edge. ### Sales with no purchase — the IPO allotment problem Sell a holding acquired before the import window and the file contains the sale and nothing else. In Indian retail this is most often an **IPO allotment**: shares are credited on allotment and never appear as a buy anywhere. With `buyValue = 0` the arithmetic still "works" — and every number it produces is false and flattering. A book of IPO flips would show a 100% win rate and an infinite Return on Margin. - These trades are now **flagged, and counted in cash but held out of every edge statistic** — win rate, expectancy, profit factor, ROM — until a cost is set. The sale and its charges were always real and remain in Net P&L. - **Vyuha recovers the missing cost from the file's own footer.** The rows omit the purchase, but the broker's stated gross P&L includes the trade, so subtracting everything that could be matched leaves exactly what it must have cost. On a real report: matched gross of −₹8,268.27 against a footer of −₹8,489.60 left −₹221.33 for one unmatched holding — 37 shares sold for ₹21,904, implying **₹597.98 a share**. Offered pre-filled for confirmation, never applied silently. - Confirm the acquisition as **IPO allotment, bonus/split, transfer-in or an ordinary earlier purchase**, set the cost and date, and the trade rejoins the statistics. IPO P&L is reported in its own panel, apart from trading edge — a listing-day pop is not a repeatable skill and blending it into expectancy overstates how well you actually trade. ### Fixed **A drill-down that did not reconcile.** The trades date filter used `sellDate ?? buyDate` regardless of whether a position was open, while `dailyPnl` skips open trades entirely. A holding that is open *and* carries a sell date — a partial exit, or a sale with no recorded purchase — appeared in the filtered rows but never in the figure that was clicked. Realised drill-downs now restrict to closed trades, and the effective date is the exit for a closed trade and the **entry** for an open one, which is what the code already claimed in a comment. 64 new unit tests (735 total) and 2 new end-to-end flows (10 total), the new ones asserted against a real 92-row broker report rather than synthetic data. ## v2.89.1 — forensic audit fixes A full-book audit of every feature. Money identities were already exact (gross − charges − net reconciled to 0.0000 across 252 trades, charge components summed to the stored total to the paise, no float leak). Six defects surfaced, all fixed. **The equity curve disagreed with Net P&L by ₹1.47 lakh, silently.** `dailyPnl` buckets on the exit date, so a closed trade without one belongs to no day. An aggregated broker P&L statement (Dhan's) carries no per-trade dates at all — the range lives in the file header only — so 116 of 243 closed trades were invisible to the return series while the dashboard's Net P&L counted every rupee. Performance reported **−2.84%** on a book that was down ~11.5%, with CAGR, Sharpe, Sortino and max drawdown all computed on the dated quarter of it. Both surfaces now state their coverage before showing a number: which trades are included, how much P&L sits outside, and that a tradebook import closes the gap. Nothing about the maths changed — the silence was the defect. **F&O rows were offered an equity product choice that did nothing.** The P&L confirmation panel listed every symbol, including options and futures. A derivative names its own segment and `classify()` ignores the product hint entirely, so those buttons were dead controls — and the panel keyed on the display symbol while the server looked up the tradingsymbol, so the override could silently miss. Only equity is listed now, keyed correctly, with the derivative count stated rather than hidden. **Two silent drops in Arjun's Eye**, both against the module's own documented rule that nothing is discarded quietly. Weekday analysis built Mon–Fri only, so a Saturday trade — NSE does run occasional Saturday live sessions — vanished and the weekday counts stopped reconciling. And a timed trade outside 09:15–15:30 fell out of every session bucket with no trace, which is exactly what a misread broker time column looks like. Both are now counted and surfaced; three tests pin the reconciliation. **The cost engine was underselling itself.** Reconciliation showed "total charges −32.5%" in warning colour, which reads as a broken engine. Almost all of that gap is brokerage, which genuinely cannot be derived from a scrip-aggregated file. Excluding it, computed statutory charges match the broker to **0.69% — ₹291 on ₹42,006**. That comparison is now shown. Also fixed: literal control characters and a garbled sentence in `lib/import/time-parse.ts`, and a race in a new e2e spec that read `innerText` before the streamed page had rendered. Verified end-to-end: a timestamped tradebook imported through the live pipeline produced `09:20` from `2026-06-01T09:20:15` — the six-hour bug confirmed fixed against real data, not only unit tests — with MIS/CNC classifying correctly and the sessions bucketing as expected. 671 unit tests, 8 e2e flows, 38 routes with no NaN, Infinity, or error boundary. ## v2.89.0 Two things traders asked for after using v2.88 in anger: **know what kind of trade you imported**, and **know what kind of trader you are**. ### Import split — P&L vs Transactions `/import` now presents two clearly-labelled kinds, because they are genuinely not equivalent and the difference decides how much Vyuha can know: - **Transactions / Tradebook** (recommended) — every execution, with product type and timestamps. Delivery, MTF and intraday identify themselves, scaled positions keep their entry ladder, and time-of-day analytics work. - **P&L Statement** — a pre-aggregated summary with **no product column and no times**. "Was this delivery or MTF?" is genuinely unanswerable from the file. So the P&L path now **asks once, before commit**. Rows are grouped by symbol with a guess pre-selected, and choosing a different product **re-prices immediately** — segment, charges, MTF interest and Return-on-Margin all derive from it, so showing old numbers beside a new choice would be wrong at exactly the moment you are deciding. - Same-day round trips are **inferred** as intraday, which is reliable. MTF is never inferred — it is indistinguishable from delivery in a P&L file — so the default is **delivery**, the safest wrong answer: it neither invents MTF interest nor applies intraday leverage. Guessed rows are labelled "assumed". - The file kind is **detected**, not taken on trust from the tab. Drop a tradebook on the P&L tab and it says so rather than asking for product types the file already knows. ### Execution times now actually reach the database `entry_time` and `exit_time` existed since the first schema and **nothing ever wrote them**. Tradebook parsers now extract HH:MM and commit persists it. - Date and time are extracted **independently**, because the same broker column may hold a bare date, a full timestamp, or both split by `T`, a space, or nothing. - Day-first is assumed for ambiguous dates, per Indian convention — reading `06-01-2026` as June 1st rather than 6th January would silently rewrite the P&L calendar by months. - A wrong time is worse than none, so anything unparseable returns null rather than guessing. ### Arjun's Eye — the trader's cockpit (`/arjuns-eye`, Pro) A new page under Journal. Performance keeps its risk-adjusted returns under Analytics untouched — the two answer different questions: *how good are my returns* versus *what kind of trader am I*. - **When you actually make money** — expectancy by Indian session (opening drive, morning trend, midday chop, afternoon push, closing hour) and by weekday. - **Which products are worth your capital** — expectancy, win rate, charge drag and average hold per segment. - **Do you cut winners and hold losers?** — average hold of winners vs losers and the ratio between them, the most common structural leak in retail. - **Does a loss change how you trade?** — expectancy after a win vs after a loss, streaks, and same-day re-entries after a loser. - **Is your conviction rewarded?** — expectancy by position-size quartile. Three honesty rules are enforced in code, not just intended: 1. **No finding below 15 trades** in a group. Thin groups are shown, labelled *thin*, and excluded from the conclusions — "Tuesdays are your best day" from four trades is noise dressed as insight. 2. **No invented sessions.** Trades without a time are counted as a coverage gap and the section says a tradebook import is needed. Bucketing them into 09:15 would fabricate an edge that never existed. 3. **Descriptive, never prescriptive.** A test asserts no finding contains "you should", "must" or "stop doing". ### Fixed while building this A regex bug that would have misattributed **every timestamped trade by six hours**: the regex word-boundary anchor does not match between `01` and `T` in `2026-06-01T09:15:32` (both are word characters), so the date-strip silently failed and the time regex read `15:32` out of the middle of the date. Caught by a test written before the code was trusted. 56 new unit tests (668 total) and 3 new end-to-end flows (7 total). ## v2.88.0 **Return on Margin** — the metric that answers what your capital actually earned, not what your turnover did. - **New Pro report at `/reports/rom`.** Every Indian F&O journal reports P&L against turnover or notional, and both are close to meaningless: a long option and a short strangle can carry identical notional while tying up wildly different capital. ROM measures against **capital actually blocked**. - **The denominator is instrument-aware**, because the market is: **long options** cost the premium and block no SPAN margin; **short options** block margin against the *underlying* notional (which is why a ₹10,000 credit can tie up ₹1.5 lakh); **futures and intraday** block a percentage of contract value; **MTF** blocks only your own capital; **delivery** blocks the lot. The rule was extracted out of the live margin cockpit into a shared `capitalBlocked()` so the two views can never drift apart. - **Three time framings, each for a reason.** Raw ROM is unambiguous but treats a one-day and a thirty-day 2% identically. ROM/day fixes that, weighted by **capital-days** — ₹1L held ten days is ten times the commitment of ₹1L held one, and a naive average would say otherwise. Annualisation appears only in the rollups, never per trade. - **Annualised figures are clamped, and say so.** A book of one-day option trades losing 10%/day extrapolates to −3,887% — arithmetically correct and impossible, since you cannot lose more than your capital. The display floors at −100% and caps at +1,000%, marks clamped values with `*`, and keeps the uncapped number in the CSV/XLSX export. - Groups by segment and by playbook, flags segments where no margin rate is configured (which *understates* ROM), and skips trades whose capital cannot be established rather than reporting an infinite return. **KPI drill-downs now go somewhere.** The Net P&L popup's best/worst-day rows deep-link to `/trades` filtered to that date, and a footer links to the full journal. `/trades` gained `?symbol=`, `?from=`, `?to=` and `?segment=` support. - The date filter matches a trade's **effective date** — exit for a closed trade, entry for an open one — deliberately mirroring how `dailyPnl` buckets realised P&L. An earlier version matched *either* leg and pulled in positions opened that day but closed later, so the filtered rows did not add up to the figure that had just been clicked. They now reconcile exactly, and an e2e test asserts the sum. **End-to-end coverage went from one flow to four**: import, staged positions (enable → add tranche → partial exit), the ROM report, and the drill-down reconciliation. A new dated Zerodha tradebook fixture also puts a second importer under e2e — the Dhan fixture is an aggregated P&L report with no per-trade dates, so it can never produce a daily P&L to drill into. - Fixed a latent race in the existing import spec while doing this: handing a file to a not-yet-hydrated page silently drops it, and the failure presents as "broker not detected", which sends you hunting in the parser. **Indicator (SA-PRO v2.1.0)** — beta thresholds now span 0.05–3.0 on *both* inputs. The previous build capped Low at 1.0 and floored High at 1.0, which structurally forced "Normal" to straddle 1.0 and made the band unusable against a peer benchmark where the whole universe can sit below it. An inverted band is now ordered defensively rather than mislabelling every stock. 36 new unit tests (612 total), plus 3 new end-to-end flows. ## v2.87.0 **The first paid build.** No new features — this is the release that turns the licence gate on. - **`LICENSE_ENFORCEMENT` → `"block"`.** When a 14-day trial ends without a key, the four Pro screens (Portfolio Risk, Tax Summary, ITR Pack, Broker Compare) render the upsell panel instead of their content. The **core journal is still never gated** — trades, imports, dashboard, playbooks and backups keep working forever, and your data never leaves the machine either way. - **`WHATSAPP_NUMBER` set**, so `BUY_URL` now opens WhatsApp with a pre-filled message. Every in-app upsell and all eight landing-page buy buttons derive from that one constant. - Verified by simulating an expired unlicensed install against a snapshot of a real settings row: `/risk`, `/reports/tax` and `/reports/itr` all render the upsell with the correct `wa.me` link and no Pro content, while `/trades` is untouched. Snapshot restored and confirmed byte-identical afterwards. Superseded **v2.86.0**, which was tagged *before* the enforcement flip and therefore still shipped ungated with the fallback buy link. Publish this one instead. ## v2.86.0 Vendor control over licence keys, and the sales assets to actually sell with. No changes to the journal itself — this release is about the business around it. - **Your sales ledger.** Keys were *signed, not registered* — nothing in the system knew a key existed, so there was no way to answer "did this person actually buy?". `license-issue.mjs` now records every key it mints to `license-ledger.jsonl` (gitignored, contains buyer emails). `license-list.mjs` reads it back: filter by buyer or key, and `--expiring 30` produces your renewal outreach list. - **Key IDs.** Every key now carries a short derived ID (`A1B2-C3D4-E5`, `sha256(key)` truncated) shown in **Settings → License**. Support threads quote the ID instead of pasting the key — which is a credential that ends up in screenshots. - **Revocation.** `license-revoke.mjs "reason"` stops a refunded or leaked key activating. Documented honestly: this is a *build-time* list in an offline app, so it reaches new installs only and is not a kill switch. A real one would mean phoning home on launch, which this product promises never to do. Revocation is checked *before* the signature, because a revoked key is still cryptographically perfect. - **Machine-bound keys — opt-in per sale.** `--machine ABCD-EF12-3456` locks a key to one computer; omit it and the key runs anywhere, which is what every key issued before this does forever. The buyer copies their **Machine ID** from Settings → License. The fingerprint is Windows' own `MachineGuid` — stable across app reinstalls, driver updates, RAM upgrades and renames — falling back to hostname + platform + arch + CPU model. Deliberately *not* total memory, MAC address or disk serial: each of those changes for reasons that are not the customer's fault and would kill a paying key. The binding lives inside the signed payload, so it cannot be stripped; a test forges a stripped payload and asserts the signature check catches it. - **BUY_URL now derives from a single `WHATSAPP_NUMBER`** with a pre-filled message, falling back to the releases page while unset so no button is ever dead. A test **fails the build** if `LICENSE_ENFORCEMENT` is `"block"` while the number is still empty — the one combination that would strand every trial-expired user behind a dead link. - **Landing page rebuilt** (the previous one predated v2.80 and still carried Razorpay placeholders and no screenshots): WhatsApp-first CTA, founding-trader pricing, real product screenshots, staged positions as the flagship section, and a delivery flow matching email-a-ZIP. SEBI-safe by construction — no return, accuracy or win-rate claims anywhere. `build-landing.mjs` inlines the screenshots into one self-contained file and refuses to build while any `[[PLACEHOLDER]]` is unfilled. - **Docs brought current**: `LICENSE_OPERATIONS.md` (the owner's runbook — issue, list, support, refund, rotate), `INDICATORS_LAUNCH_KIT.md` (analysis of both Pine scripts, sales copy, paste-ready TradingView descriptions, invite-only publishing steps), plus a current-state section appended to the roadmap, whose handoff notes had stopped at v1.14.0. - 25 new tests (576 total). Enforcement deliberately still `"banner"` — flipping it needs the real WhatsApp number. ## v2.85.0 **Staged positions** — build a position in tranches and scale out of it, the way positions are actually managed. - **Entry ladder with a stop per tranche.** Turn on staged mode from the Trades table and a position becomes a list of fills: add another entry as the trade proves itself, each with its own stop and target, or write one stop across every open tranche in a click. Closed tranches are never rewritten — that would falsify the record of what you did. - **Partial exits on any trade.** Book 25/50/100% (or any quantity) and the rest keeps running. No mode switch needed: a plain trade converts to a ladder on the fly, losslessly. Percentage shortcuts round DOWN to a whole unit, because you cannot sell 762.5 shares. - **Three accounting rules, chosen deliberately and documented in the code.** *Pricing is weighted-average* — an exit books against the blended cost of everything open, so journal P&L never disagrees with your broker's average price. *Quantity consumption is FIFO* — money is fungible but stops are not, so an exit retires the oldest tranche and the survivor keeps its own stop. *R is frozen at the first entry* — a 3R stays a 3R whether or not you pyramided, so every existing expectancy and playbook report keeps working. - **Charges booked per fill.** Brokerage is per order and STT per execution, so each leg is priced on its own — with DP levied once per exit DATE rather than once per leg, and MTF interest accrued per tranche from its own entry date. Scaling into options really does cost ₹20 an order and the journal now says so; under percentage brokerage it is correctly cost-neutral. - **Risk cockpit sums real risk.** Open risk, initial risk and capital-at-risk are summed across tranches with individual stops instead of being inferred from one position-level stop — a wide stop on the core and tight stops on the adds is genuinely less exposed, and `/risk` now says so. - **Imports rebuild the ladder automatically.** Zerodha, Angel One and Upstox tradebooks list every execution; those fills are now preserved instead of being flattened into one average. A position is staged only when a SIDE was filled more than once — an ordinary buy-then-sell stays an ordinary trade. - **Two warnings that earn their place.** *Averaging down* fires when an add is worse than your average (and correctly inverts for shorts). *Open risk above initial risk* fires when an add is not funded by trailing the earlier stops up — which is most of them, and is precisely the thing nobody notices. - 83 new unit tests (551 total), including proof that a one-entry ladder prices identically to the classic round-trip across all five brokers. - Note on precision: STT and stamp duty round to the nearest rupee, so pricing a trade as two legs instead of one round trip can move its total by up to about ₹2. Measured across every segment on real data the drift was ≤ ₹1.11. The per-leg figure is the more accurate one and is not corrected back. ## v2.84.0 Two fixes aimed at discoverability: numbers that explain themselves, and the preset playbooks that were hiding inside a dropdown. - **Clickable KPI cards with a drill-down popup.** Sixteen cards across the Dashboard, Portfolio Risk, Equity Tracker and Trade F&O Tracker now lift and glow on hover and open a compact breakdown on click (or Enter/Space — the cards are keyboard-focusable `role="button"`s). The popups answer *what is this number made of*, not just what it is: **Net P&L** splits into gross minus every charge with best/worst day and dates; **Open Risk @ SL** puts open risk next to initial risk with the stopped/unstopped count, so trailing a stop visibly moves the number; **MTF funded** shows effective leverage and interest accrued as a share of your paper gain, flagging when financing has eaten the entire unrealised gain; **Unrealised P&L** names your best and worst position. Detail objects are plain serializable strings, so server components can build them without a client boundary. - **Preset library on `/playbooks`.** The 25 world-class setups existed since earlier releases but lived inside a `