MindAttic.Browser/SPEC
MindAttic.Browser — Product specification
The complete product, written down before it is built (owner, 2026-11-30, MAT-T360). Every epic, feature and story the finished product will have is listed here, built or not. The ticket tree mirrors this file one to one: every ID below is a ticket. Nothing gets built unless it is here, and anything taken out of here is closed wont-do in the tree.
docs/RELEASE.mdsays which part of this the current milestone delivers.
1. Product definition
In docs/ECOSYSTEM.md this is a platform repo: the shared everyday and capture browser, reused by every app that needs one.
MindAttic.Browser is a WPF + WebView2 Windows browser for the owner's everyday browsing. Anything on screen becomes a screenshot or a video on the clipboard in one click, every capture is named after the site it shows, and a local site folder opens at https://<site>.local/ as if it were deployed. Its settings live in MindAttic.Vault, it records its failures in MindAttic.Log, and other MindAttic tools (MindAttic.Web's capture.ps1, tickets view, MindAttic.Media.Capture) start its Release build. The finished product is MindAttic.Browser 1.0 (MS-70): the browser that exists today, with crash logging and its docs presenting it as released.
2. Scope boundary
2.1 In the product
- Browsing: navigation, an address bar that takes URLs or search text, command-line targets, favorites, history and real popup windows.
- Local sites served through WebView2 virtual host mapping.
- One-click capture: screenshots with a crop lightbox, recordings, capture flags, the page capture bridge, captures named after the site.
- Ask Claude: an operator panel that drives the page with LLM tool calls.
- Settings edited in MindAttic.Vault; the shared run menu deploying to
R:\MindAttic\Apps\MindAttic.Browser. - Failures and unhandled exceptions recorded in MindAttic.Log.
2.2 Never in the product
- Extensions, sync, accounts or a Chrome-style tab model. It is not a Chrome replacement (BIBLE §3).
- A recorder or capture naming of its own. Recording and naming come from the MindAttic.Media.Capture packages.
- A web server. Local sites use WebView2 virtual host mapping only.
- A settings dialog or a separate settings package. Settings are MindAttic.Vault's (BRWS-LAW-3); the Vault Dashboard and settings-tab packages (M.BRWS-T19..T22) were superseded by LAMP (M.BRWS-T23).
- New Ask Claude operator capabilities beyond today's tool set. The panel is finished as built; MindAttic.Auto.* repos own web automation.
- Standing bughunts, cleanup sweeps, line-ending conversions and audit-generated edge-case test lists (M.BRWS-T4, T7, T8, T14, T37): they produced no product behaviour.
3. Users and roles
- The owner browses, captures and records, and edits settings in MindAttic.Vault.
- Other MindAttic tools (MindAttic.Web
capture.ps1,tickets view, MindAttic.Media.Capture) launch the Release exe with a target and capture flags. - A served local site may call
window.mindattic.captureto mark moments.
4. Requirements
Status is built (closed ticket, with evidence) or MS-n: the milestone in §7 that delivers it.
E1. Everyday browsing — M.BRWS-T53 — built
A WebView2 browser for everyday browsing.
F1.1 Navigation and address bar — M.BRWS-T54 — built
- S1.1.1 Toolbar navigation — M.BRWS-T55 — built As the owner, I want back, forward, reload and home on the toolbar and keyboard, so that I browse without a mouse. Acceptance:
- Given a page, when I press Alt+Left, Alt+Right or F5, then it goes back, forward or reloads; Ctrl+L focuses the address bar and F12 opens DevTools. Evidence:
MainWindow.xaml(.cs).
- Given a page, when I press Alt+Left, Alt+Right or F5, then it goes back, forward or reloads; Ctrl+L focuses the address bar and F12 opens DevTools. Evidence:
- S1.1.2 URL or search text — M.BRWS-T56 — built As the owner, I want text that is not a URL searched with my engine, so that one box does both. Acceptance:
- Given "weather tomorrow" in the address bar, when I press Enter, then the Settings search engine opens with it. Evidence:
BrowserTarget.Parse/NormalizeUrl,BrowserTests.cs.
- Given "weather tomorrow" in the address bar, when I press Enter, then the Settings search engine opens with it. Evidence:
- S1.1.3 Command-line targets — M.BRWS-T57 — built As another MindAttic tool, I want to start the exe with a URL, search text, a folder or a file, so that I open exactly what I need. Acceptance:
- Given
MindAttic.Browser.exe page.html --host demo.local, when it starts, then the file's folder is served athttps://demo.local/. Evidence:BrowserTarget.Parse,App.xaml.cs.
- Given
F1.2 Local sites — M.BRWS-T58 — built
- S1.2.1 Serve a site folder — M.BRWS-T59 — built As the owner, I want a local site folder served at
https://<site>.local/, so that it behaves like the deployed page with no web server. Acceptance:- Given
MindAttic.Browser.exe D:\...\mindattic.com, when it opens, then the page loads athttps://mindattic.com.local/and only that site can use the capture bridge. Evidence: virtual host mapping inMainWindow; MindAttic.Webcapture.ps1(c9def19).
- Given
F1.3 Favorites, history and popups — M.BRWS-T60 — built
- S1.3.1 Favorites — M.BRWS-T61 — built As the owner, I want to star pages and list them, so that I return to them in one click. Acceptance:
- Given a starred page, when I unstar it and star it again, then the favorite comes back (soft removal). Evidence: favorites in
BrowserSettings, favorites tests.
- Given a starred page, when I unstar it and star it again, then the favorite comes back (soft removal). Evidence: favorites in
- S1.3.2 Browsing history — M.BRWS-T12 — built As the owner, I want every visit recorded and a Ctrl+H History window that clears in widening buckets, so that I find and prune what I visited. Acceptance:
- Given visits, when I press Ctrl+H and clear "last hour", then only that hour's visits go. Evidence: baef646.
- S1.3.3 Real popup windows — M.BRWS-T35 — built As the owner, I want sized popups (OAuth sign-in) opened as real windows, so that Google or Discord sign-in works. Acceptance:
- Given a sign-in popup, when the provider calls back, then
window.openeris intact and the sign-in completes. Evidence: cda6f05.
- Given a sign-in popup, when the provider calls back, then
E2. One-click capture — M.BRWS-T62 — built
A screenshot or a video lands on the clipboard in one action, named after the site.
F2.1 Screenshots — M.BRWS-T63 — built
- S2.1.1 Screenshot to clipboard — M.BRWS-T64 — built As the owner, I want one click or Ctrl+Shift+S to save the page and copy it, so that it is ready to paste. Acceptance:
- Given a page, when I press Ctrl+Shift+S then Enter, then the PNG is saved and on the clipboard and the status bar says where. Evidence:
CaptureFiles,ClipboardService.
- Given a page, when I press Ctrl+Shift+S then Enter, then the PNG is saved and on the clipboard and the status bar says where. Evidence:
- S2.1.2 Crop lightbox — M.BRWS-T65 — built As the owner, I want to crop a screenshot before it is saved, so that I keep only what matters. Acceptance:
- Given the lightbox, when I drag, move or resize the box, then it stays under the cursor even at the image edge, on the monitor the window is on; Enter saves, Esc cancels, Ctrl+A selects the whole page. Evidence:
CropWindow,CropMath; 8461af5 (M.BRWS-T30), 144684b (M.BRWS-T46).
- Given the lightbox, when I drag, move or resize the box, then it stays under the cursor even at the image edge, on the monitor the window is on; Enter saves, Esc cancels, Ctrl+A selects the whole page. Evidence:
- S2.1.3 Files named after the site — M.BRWS-T66 — built As the owner, I want captures named
<site>_<timestamp>under a per-site folder, so that a folder explains itself. Acceptance:- Given two screenshots in the same millisecond, when both save, then neither overwrites the other. Evidence:
CaptureFiles, 6cc802d (M.BRWS-T41).
- Given two screenshots in the same millisecond, when both save, then neither overwrites the other. Evidence:
F2.2 Recording — M.BRWS-T67 — built
- S2.2.1 Record a clip — M.BRWS-T68 — built As the owner, I want record and stop on the toolbar or Ctrl+Shift+R, so that the finished video is on the clipboard. Acceptance:
- Given a recording, when I stop it, then the video file is written and copied to the clipboard as a file. Evidence: c32d5c8 (M.BRWS-T39).
- S2.2.2 Capture flags — M.BRWS-T69 — built As another MindAttic tool, I want
-capture video|screen N|hq [duration], so that a whole visit is filmed or screenshotted unattended. Acceptance:- Given
-capture screen 5, when the page is open, then a PNG is written every 5 seconds until a limit stops it. Evidence: MindAttic.Media.Capture flags via c32d5c8.
- Given
- S2.2.3 Page capture bridge — M.BRWS-T70 — built As a served local site, I want
window.mindattic.capture, so that my script marks moments in a recording. Acceptance:- Given a served site, when its script calls
window.mindattic.capture.raise('name'), then the moment is marked; other websites cannot use the bridge. Evidence: MindAttic.Media.Capture.WebView2; MindAttic.Web capture-demo comments (M.WEB-T25).
- Given a served site, when its script calls
F2.3 Capture folder — M.BRWS-T71 — built
- S2.3.1 Default capture folder — M.BRWS-T72 — built As the owner, I want captures under
R:\MindAttic\Media\Captureby default and a button that opens the site's folder, so that I find them. Acceptance:- Given a saved old default
R:\MindAttic\Capture, when the app loads, then it moves to the new default; a custom folder is kept. Evidence: 5bee609 (M.BRWS-T42).
- Given a saved old default
E3. Ask Claude operator — M.BRWS-T73 — built
A chat panel that drives the live page with LLM tool calls.
F3.1 Page operator — M.BRWS-T74 — built
- S3.1.1 Ask Claude panel — M.BRWS-T13 — built As the owner, I want a chat panel that searches, navigates, reads, clicks, fills forms and waits on the live page, so that I can hand it a web chore. Acceptance:
- Given a request, when the operator runs, then each tool call shows in the panel and acts on the live page. Evidence: 0a752b7.
- S3.1.2 Reliable operator tools — M.BRWS-T75 — built As the owner, I want the operator's tools to hit the right element and survive a stopped run or an empty reply, so that a conversation stays usable. Acceptance:
- Given a filled field, when the operator presses Enter, then the field receives it; an empty reply is reported, not stored. Evidence: f74017c (M.BRWS-T29), 4fbe85b (T43), d7bf909 (T44), aef04b0 (T45).
E4. Settings and deploy — M.BRWS-T76 — built
Settings live in MindAttic.Vault; the shared run menu deploys to R:.
F4.1 Settings in Vault — M.BRWS-T77 — built
- S4.1.1 Edit settings in Vault — M.BRWS-T78 — built As the owner, I want the cog to open MindAttic.Vault and my edits to apply to the open window, so that settings live in one place. Acceptance:
- Given a Vault edit to the pinned toolbar buttons, when it saves, then the open window's toolbar and cog menu update. Evidence: 9c9823e (M.BRWS-T23), b857d34 (T24), fcf93bf (T31).
F4.2 Run menu and deploy — M.BRWS-T79 — built
- S4.2.1 Redeploy without losing a capture — M.BRWS-T80 — built As the owner, I want Redeploy to ask a running copy to close and keep it if it is mid-recording, so that a deploy never kills a capture. Acceptance:
- Given a copy still recording after 30 s, when Redeploy runs, then that build is kept and the other is rebuilt. Evidence: 23e80b0 (MAT-T301), e3a54cb (M.BRWS-T25).
- S4.2.2 App icon — M.BRWS-T2 — built As the owner, I want the browser icon on the exe and every window, so that it is recognisable in the taskbar. Acceptance:
- Given the Release build, when it runs, then every window shows
assets/browser.ico.
- Given the Release build, when it runs, then every window shows
E5. Crashes leave a diagnosis — M.BRWS-T47 — MS-70
Failures and unhandled exceptions are recorded where they can be read.
F5.1 Crash detail in the shared log — M.BRWS-T48 — MS-70
- T5.1.1 Log to MindAttic.Log — M.BRWS-T10 — built As the owner, I want startup, data-changing actions, failures and unhandled exceptions written to the Browser's Vault-assigned MindAttic.Log database, so that a crash leaves a record. Acceptance:
- Given an unhandled exception on the UI thread, an AppDomain or an unobserved task, when it happens, then a log row tagged with the Browser's component is written; tests point the log at a temp file.
E6. 1.0 release — M.BRWS-T49 — MS-70
The polish-and-release epic: the Browser is presented as a released 1.0 app.
F6.1 Docs match 1.0 — M.BRWS-T50 — MS-70
- T6.1.1 Overview presents 1.0 — M.BRWS-T9 — MS-70 As a reader of the docs, I want
docs/overview.mdto show 1.0 as released with current screenshots and a section on Ask Claude, so that the docs match the app. Acceptance:- Given the overview, when I read it, then the status badge says live and both screenshots match the Release build.
5. Non-functional requirements
- Platform: Windows 10 2004 or later, .NET 10, WebView2 runtime; Release is a self-contained single file.
- Data: settings in
%APPDATA%\MindAttic\MindAttic.Browser\settings.jsonthrough MindAttic.Vault; browser profile in%LOCALAPPDATA%\MindAttic\Browser; captures under the capture folder. - Security: a served local folder is readable only by its own site; only that site gets the capture bridge; operator credentials come from MindAttic.Legion's shared key store, never from this repo.
- Reliability: a redeploy never kills a capture in progress; an unreadable settings file never resets settings.
6. Interfaces and dependencies
Platform it relies on (docs/ECOSYSTEM.md): MindAttic.Log (crash and error detail), MindAttic.Legion (the Ask Claude operator's LLM calls), MindAttic.Vault (settings and keys), MindAttic.Agency, MindAttic.Tickets.
- Uses: MindAttic.Media.Capture.Wpf and .WebView2 (recording, naming, flags), MindAttic.Vault (settings), MindAttic.Components.Wpf (styles), MindAttic.Legion credentials (Ask Claude), MindAttic.Log (E5).
- Used by: MindAttic.Web
capture.ps1,tickets viewand MindAttic.Media.Capture, which all startR:\MindAttic\Apps\MindAttic.Browser\Release\MindAttic.Browser.exe.
7. Release sequence
- MS-70 — MindAttic.Browser 1.0: everyday capture browser (active). Epics E5 Crash diagnostics (900) and E6 1.0 release (800, the polish-and-release epic). Reaching it finishes the product: everything else is built.
8. Change log
| Date | Change to scope | Ticket |
|---|---|---|
| 2026-11-30 | Specification written from the BIBLE, overview, RELEASE charter, code, commit log and ticket history; built work filed as epics E1–E4; MS-70 is the finished product, since the docs describe nothing beyond it and rule out extensions, sync and accounts | MAT-T398 |
| 2026-11-30 | MAT-T462 single-source pass: 3 renamed, 0 buckets, 1 requires added, 1 platform re-point (crash detail named as the shared Log sink); E5 and E6 are single-feature epics, kept: each is one outcome | MAT-T466 |