Jump to content

RusNet/SPEC

From MindAttic Docs

RusNet — 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.md says which part of this the current milestone delivers.

1. Product definition

In docs/ECOSYSTEM.md RusNet is a product (an app): it uses the platform for UI and shipping and owns none of those concerns.

RusNet scans the network you administer and gives you every reachable device, what it is and how it connects, as a standard JSON map (schema v1) and one self-contained interactive HTML report. The core is Python stdlib only; the viewer runs in a browser, in a pywebview window, or in a .NET WebView2 app with a Scan button. 1.0 is feature complete; the finished product is 1.0 on the shared run menu, installed only from R:.

2. Scope boundary

2.1 In the product

  • Benign discovery: ping sweep, ARP table, SSDP and mDNS advertisements, common ports, OUI vendors.
  • Offline classification (hostname, vendor, OS guess, device type).
  • The JSON map, the offline HTML report and three viewer hosts.

2.2 Never in the product

  • Anything offensive: logging in, exploiting or evading (BIBLE §3).
  • Scanning networks the user does not own or is not authorised to assess.
  • Monitoring: scheduled or diff scans, alerts.
  • New discovery methods, schema v2, macOS or Linux installers (RELEASE §5).

3. Users and roles

  • The owner (or any network admin) scans their own network and reads the report.

4. Requirements

E1. Scan and identify — RN-T28 — built

F1.1 Discovery and classification — RN-T29 — built

  • S1.1.1 Scan to a standard map — RN-T2 — built
  • S1.1.2 Discovery that answers — RN-T3 — built
  • S1.1.3 SMB hosts classified — RN-T12 — built Evidence: 0da6305.
  • S1.0.1 CLI joins scan and report (membrane, built) — RN-T35 — built The rusnet CLI and python -m rusnet drive E1 and hand its Scan to E2; the test suite covers both. Joins E1 and E2 (R17). Evidence: 414620d.

E2. Reports and viewers — RN-T30 — built

F2.1 Report and desktop viewers — RN-T31 — built

  • S2.1.1 Self-contained report — RN-T32 — built As the owner, I want one report file that works offline, so that I can keep or share a scan. Acceptance: Given a scan, when it finishes, then network-map.json (schema v1) and one network-map.htm with the viewer and data inlined are written. Evidence: rusnet/report.py, docs/SCHEMA.md.
  • S2.1.2 Scan from the viewer — RN-T4 — built
  • S2.1.3 Reports default to Downloads — RN-T8 — built
  • S2.1.4 Schema v1 read in one place (debt) — RN-T36 — built Acceptance: Given an existing network-map.json, when rusnet report runs, then the same .htm is written, schema v1 is parsed only in model.py (Scan.from_dict), and cli.py holds no schema field names. Evidence: Scan.from_dict with Host/Interface/Port.from_dict in rusnet/model.py; a report from one JSON was byte-identical before and after.
  • S2.1.5 Report fetches nothing (debt) — RN-T37 — built Acceptance: Given a written report, when opened offline and online, then it renders the same and requests nothing outside the file (RN-LAW-4); viewer.htm regenerated. Evidence: the Google Fonts links are gone from _TEMPLATE; a measured render (headless Edge, R15) of a report and of viewer.htm made one request each (the file itself), no console errors, and identical screenshots online and offline; the font stack falls back to an installed Outfit, else system-ui.

E3. Install and versioning — RN-T33 — built

F3.1 Deploy script and 1.0.0 — RN-T34 — built

  • S3.1.1 One deploy script — RN-T7 — built
  • S3.1.2 Version 1.0.0 — RN-T9 — built Evidence: 2da6032.

E4. R: cutover — RN-T22 — MS-79

F4.1 Shared run menu on R: — RN-T23 — MS-79

  • run.ps1 over deploy-lib.ps1 — RN-T20 — MS-79 As the owner, I want RusNet on the shared run menu, so that it installs like every other MindAttic app. Acceptance: Given Redeploy, when it runs, then R:\MindAttic\Apps\RusNet\{Debug,Release} hold the viewer and its Python side, and Run Release starts the viewer.

F4.2 No C: copy left — RN-T24 — MS-79

  • Delete the old deploy — RN-T21 — MS-79 Acceptance: C:\Apps\RusNet does not exist, and Scan in Run Release renders a report.

5. Non-functional requirements

  • Python 3.9+, stdlib core; pywebview optional (RN-LAW-3).
  • Reports are self-contained, nothing fetched at view time (RN-LAW-4).
  • docs/SCHEMA.md and rusnet/model.py change together (RN-LAW-2).

6. Interfaces and dependencies

Platform concerns it uses (docs/ECOSYSTEM.md): UI controls — MindAttic.Components (vendored viewer components); shipping — the shared run menu (run.ps1 over deploy-lib.ps1, to R:).

  • MindAttic.Components (vendored viewer components), the shared run menu (deploy-lib.ps1).
  • No MindAttic repo consumes RusNet.

7. Release sequence

  1. MS-79 — RusNet 1.0 on the shared run menu, deployed only from R: (active, docs/RELEASE.md): E4. 1.0 is feature complete, so the cutover is the final polish. The finished product.

8. Change log

Date Change to scope Ticket
2026-11-30 Specification written from BIBLE, RELEASE, the code and the ticket history; MS-79 confirmed as the finished product MAT-T394
2026-11-30 MAT-T462 single-source pass: 1 renamed, 0 buckets, 0 requires added, 2 cross-repo tasks re-seated (RN-T20 from MAT-T293, RN-T21 from MAT-T261, related links kept) MAT-T465
2026-12-01 Build-up plan phase (comb): built membrane S1.0.1 (RN-T35) recorded under E1; debt S2.1.4 (RN-T36) and S2.1.5 (RN-T37) filed under F2.1 without reopening it (R13) RN-T36
2026-12-01 Build: debt S2.1.4 built, schema v1 read only in model.py (Scan.from_dict); cli._load_scan only opens the file RN-T36
2026-12-01 Build: debt S2.1.5 built, report head fetches nothing (Google Fonts links dropped, system font stack kept), viewer.htm regenerated RN-T37
Part of RusNet.
From RusNet/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.