Jump to content

MindAttic.Psst/SPEC

From MindAttic Docs
Revision as of 17:52, 30 November 2026 by Docs Sync (talk | contribs) (md2wiki: sync from MindAttic.Docs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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.

E4. Notifications arrive — M.PSST-T51 — MS-77

F4.1 Email-to-SMS login — 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 Family logging — M.PSST-T53 — MS-77

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

E5. Docs match the tool — M.PSST-T54 — MS-77

F5.1 Overview current — M.PSST-T55 — MS-77

  • Overview matches the code — M.PSST-T16 — MS-77

F5.2 BIBLE current — M.PSST-T56 — MS-77

  • Refresh the BIBLE — M.PSST-T57 — MS-77

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

  • MindAttic.Vault (Notifications bucket: mail login, contacts settings), MindAttic.Scheduler (jobs), MindAttic.Log (E4). 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
From MindAttic.Psst/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.