Jump to content

MindAttic.Psst/SPEC

From MindAttic Docs

MindAttic.Psst — 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 MindAttic.Psst owns the notifications concern: every text, email and sound to the owner goes through it.

MindAttic.Psst is a Windows notifier, a library plus the psst CLI, that taps the owner on the shoulder: a sound at the desk and an Email-to-SMS (or email) message the moment a wrapped command finishes, at a set time, on a repeat, or when an event happens. Deferred and repeated sends run as MindAttic.Scheduler jobs, so nothing stays resident. The finished product is the current feature set with delivery that actually arrives, family logging, and docs that match.

2. Scope boundary

2.1 In the product

  • Wrap any command and announce its status and duration.
  • On-demand sends to named contacts, one transport per send.
  • Schedules, repeats, reminders and when-event watches through MindAttic.Scheduler.
  • Settings and keys in the Vault; installed on R: by the run menu; family logging.

2.2 Never in the product

  • A resident daemon, tray app, listening port or service (BIBLE §3).
  • Cross-platform support: Windows only.
  • Inbound messages or chat.
  • More transports (Twilio, push, chat apps) or fan-out across transports at send time (M.PSST-LAW-4).
  • Audit-generated NUnit coverage for ContactStore, CarrierGateways, PsstViaResolver, CLI parsing, the task lister and EmailSmsClient failure paths (M.PSST-T3..T9).
  • Generic cleanup, bughunt and run-the-suite sweeps (M.PSST-T14, T15, T44).

3. Users and roles

  • The owner gets the sound and the text.
  • Agents and CLIs wrap long commands with psst -- and schedule announcements.
  • MindAttic.Scheduler runs the deferred and repeating sends.

4. Requirements

E1. Notify when it lands — M.PSST-T60 — built

F1.1 Wrap and announce — M.PSST-T61 — built

  • S1.1.1 Wrap any command — M.PSST-T62 — built As the owner, I want psst -- <command> to tell me when it ends, so that I can walk away from a long build. Acceptance: Given a wrapped command, when it exits, then a sound plays and a message says what ran, OK or FAIL (NTSTATUS crash codes named) and how long it took. Evidence: PsstCli WrapAsync, BIBLE §2.
  • S1.1.2 Send on demand — M.PSST-T63 — built Acceptance: Given psst sms <contact> "text", when it runs, then exactly one transport sends it. Evidence: EmailSmsClient, CarrierGateways, M.PSST-LAW-4.
  • S1.1.3 Contacts by name — M.PSST-T64 — built Acceptance: Given a contact name or phone, when it is used, then it resolves; a malformed entry is skipped. Evidence: ContactBook; M.PSST-T46.

E2. Later, repeated and on events — M.PSST-T65 — built

F2.1 Schedules and watches — M.PSST-T66 — built

  • S2.1.1 Schedule any future time — M.PSST-T25 — built Evidence: 4960f2f.
  • S2.1.2 Announce when an event happens — M.PSST-T41 — built psst when, email-to-mailbox and psst ping through repeating Scheduler jobs. Evidence: de62c5b.

E3. Settings and install — M.PSST-T67 — built

F3.1 Vault settings and R: install — M.PSST-T68 — built

  • S3.1.1 Settings in the Vault — M.PSST-T27 — built
  • S3.1.2 Installed on R: — M.PSST-T50 — built Evidence: 0fa09d1.

Build-up comb (MAT-T484). Built: M.PSST-T70 (a sound with every notification, F1.1), T71 (repeat and schedule a text, F2.1), T72 (login from the Vault, checked by ping, F3.1: S3.1.1's claim of a manifest and a Vault cog does not hold, so fix T84 follows it up), feature T74 (repo tooling, E3), built membrane T73 (one solution, CLI entry and CI, joining E1 to E3). Debt: T75 (dead transport choice), T76 (one handler per command; requires T78, T82, T83), T77 (test-only parse wrappers), T78 (legacy task migration), T79 (SMS-program pages). Fixes: T80 (Scheduler found from the R: install), T81 (trigger paths off C:\Apps), T82 (one bad contact, not the book), T83 (settings not from the current folder), T84 (settings in Vault.Desktop).

E4. Every notification arrives — M.PSST-T51 — MS-77

Every notification reaches the owner (text, email and sound), every send is traceable, and the docs describe Psst as it is.

F4.1 Texts reach the phone — M.PSST-T52 — MS-77

  • Gmail SMTP login accepted — M.PSST-T30 — MS-77 As the owner, I want the shared mail login to work, so that every psst actually reaches my phone. Acceptance: Given the Vault's Gmail app password, when psst ping runs, then the mail login reports OK and psst sms <owner> "test" arrives. Needs the owner to put a new Gmail app password in the Vault.

F4.2 Every send traceable — M.PSST-T53 — MS-77

  • Log to MindAttic.Log — M.PSST-T17 — MS-77 (MindAttic.Log owns logging) Acceptance: Given any psst run, when it starts, fails or throws, then a row lands in its MindAttic.Log database.

F4.3 Polish and release Psst — M.PSST-T69 — MS-77

  • Overview matches the code — M.PSST-T16 — MS-77 (requires M.PSST-T30, M.PSST-T17)
  • Refresh the BIBLE — M.PSST-T57 — MS-77 (requires M.PSST-T30) Acceptance: the overview and BIBLE describe Psst as it is, and the owner receives a text and an email from it.
  • Membranes: M.PSST-T85 (E4: one real send arrives and is traced in MindAttic.Log; the overview M.PSST-T16 requires it, R51), M.PSST-T86 (F4.3: overview and BIBLE agree with psst usage and ping).

The former epic E5 "Docs match the tool" (M.PSST-T54, with M.PSST-T55 and T56) was a bucket; its tasks moved into F4.3 (MAT-T462).

5. Non-functional requirements

  • net10.0-windows; sound only on Windows.
  • Credentials only through the Vault; never persisted or committed.
  • A send never blocks the shell for a deferred or repeated message: it detaches to a Scheduler job.
  • Whole-number versions.

6. Interfaces and dependencies

Platform concerns it uses (docs/ECOSYSTEM.md): credentials and settings — MindAttic.Vault (Notifications bucket: mail login, contacts); scheduled jobs — MindAttic.Scheduler (deferred and repeated sends); logging — MindAttic.Log (F4.2). Outside services: Gmail SMTP and carrier email-to-SMS gateways.

  • Used by every MindAttic CLI through psst -- and the /psst command.

7. Release sequence

  1. MS-77 — Every psst notification actually arrives (active, docs/RELEASE.md): E4, E5. Its docs features are the polish and release step. 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-77 confirmed as the finished product MAT-T394
2026-11-30 MAT-T462 single-source pass: 3 renamed, 1 bucket epic dissolved (M.PSST-T54, with T55 and T56), 3 requires added, 0 platform re-points MAT-T465
2026-12-01 Build-up plan phase: comb 14 of 42 to 42 of 42 by reading; built M.PSST-T70 to T74; debt T75 to T79; fixes T80 to T84; membranes T85, T86 MAT-T484
From MindAttic.Psst/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.