Jump to content

MindAttic.Psst/SPEC: Difference between revisions

From MindAttic Docs
md2wiki: sync from MindAttic.Docs
 
md2wiki: sync from MindAttic.Docs
Line 6: Line 6:


== 1. Product definition ==
== 1. Product definition ==
In <code>docs/ECOSYSTEM.md</code> MindAttic.Psst owns the <strong>notifications</strong> concern: every text, email and sound to the owner goes through it.


MindAttic.Psst is a Windows notifier, a library plus the <code>psst</code> 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.
MindAttic.Psst is a Windows notifier, a library plus the <code>psst</code> 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.
Line 57: Line 59:
* <strong>S3.1.2 Installed on R:</strong> — M.PSST-T50 — built Evidence: 0fa09d1.
* <strong>S3.1.2 Installed on R:</strong> — M.PSST-T50 — built Evidence: 0fa09d1.


=== E4. Notifications arrive — M.PSST-T51 — MS-77 ===
=== 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 Email-to-SMS login — M.PSST-T52 — MS-77 ====
==== F4.1 Texts reach the phone — M.PSST-T52 — MS-77 ====


* <strong>Gmail SMTP login accepted</strong> — 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 <code>psst ping</code> runs, then the mail login reports OK and <code>psst sms &lt;owner> "test"</code> arrives. Needs the owner to put a new Gmail app password in the Vault.
* <strong>Gmail SMTP login accepted</strong> — 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 <code>psst ping</code> runs, then the mail login reports OK and <code>psst sms &lt;owner> "test"</code> arrives. Needs the owner to put a new Gmail app password in the Vault.


==== F4.2 Family logging — M.PSST-T53 — MS-77 ====
==== F4.2 Every send traceable — M.PSST-T53 — MS-77 ====
 
* <strong>Log to MindAttic.Log</strong> — 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 ===
* <strong>Log to MindAttic.Log</strong> — 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.


==== F5.1 Overview current — M.PSST-T55 — MS-77 ====
==== F4.3 Polish and release Psst — M.PSST-T69 — MS-77 ====


* <strong>Overview matches the code</strong> — M.PSST-T16 — MS-77
* <strong>Overview matches the code</strong> — M.PSST-T16 — MS-77 (requires M.PSST-T30, M.PSST-T17)
* <strong>Refresh the BIBLE</strong> — 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.


==== F5.2 BIBLE current — M.PSST-T56 — MS-77 ====
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).
 
* <strong>Refresh the BIBLE</strong> — M.PSST-T57 — MS-77


== 5. Non-functional requirements ==
== 5. Non-functional requirements ==
Line 86: Line 87:
== 6. Interfaces and dependencies ==
== 6. Interfaces and dependencies ==


* <strong>MindAttic.Vault</strong> (Notifications bucket: mail login, contacts settings), <strong>MindAttic.Scheduler</strong> (jobs), <strong>MindAttic.Log</strong> (E4). Gmail SMTP and carrier email-to-SMS gateways.
Platform concerns it uses (<code>docs/ECOSYSTEM.md</code>): credentials and settings — <strong>MindAttic.Vault</strong> (Notifications bucket: mail login, contacts); scheduled jobs — <strong>MindAttic.Scheduler</strong> (deferred and repeated sends); logging — <strong>MindAttic.Log</strong> (F4.2). Outside services: Gmail SMTP and carrier email-to-SMS gateways.
 
* Used by every MindAttic CLI through <code>psst --</code> and the <code>/psst</code> command.
* Used by every MindAttic CLI through <code>psst --</code> and the <code>/psst</code> command.


Line 103: Line 105:
| Specification written from BIBLE, RELEASE, the code and the ticket history; MS-77 confirmed as the finished product
| Specification written from BIBLE, RELEASE, the code and the ticket history; MS-77 confirmed as the finished product
| MAT-T394
| MAT-T394
|-
| 2026-11-30
| MAT-T462 source-to-sea pass: 3 renamed, 1 bucket epic dissolved (M.PSST-T54, with T55 and T56), 3 requires added, 0 platform re-points
| MAT-T465
|}
|}



Revision as of 19:44, 30 November 2026

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.

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.

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 source-to-sea pass: 3 renamed, 1 bucket epic dissolved (M.PSST-T54, with T55 and T56), 3 requires added, 0 platform re-points MAT-T465
From MindAttic.Psst/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.