PackOpen

Tests: subscription-hunter

Run against examples/input-northwind-mailbox.md. Each case states what to check, not just what to run. The failure cases matter more than the happy path, because the happy path is the one that gets demoed and the failure cases are the ones that lose a reader's trust.

Tests: subscription-hunter

Run against examples/input-northwind-mailbox.md. Each case states what to check, not just what to run. The failure cases matter more than the happy path, because the happy path is the one that gets demoed and the failure cases are the ones that lose a reader's trust.

Happy path

#CasePass condition
1Full run over 24 monthsFive vendor rows. Every row has a source link
2SortingSorted by next renewal ascending, with both UNKNOWN rows last
3Summary shapeFour sections: renewing soon, likely waste, unknown, drafts

Grouping and deduplication

#CasePass condition
4Nine monthly DriftPlan receiptsOne row, not nine. Latest charge wins
5VectorGantt invoice plus receipt (msgs 3 and 11)One row. The second is evidence, not a second subscription
6One-off Toolhaus order (msg 10)Absent from the sheet. Appears in "not included"
7DriftPlan product update (msg 12)Ignored. A non-billing message from a billing vendor is not evidence

Dating discipline

#CasePass condition
8Tracewell, one observed chargeNext renewal given only because the mail states monthly. Not inferred from one charge
9Northfield, contract with no dateUNKNOWN, and the summary says which evidence is missing
10SiteLedger, silent 14 monthsLapsed?, not "cancelled". Absence of a receipt is not evidence of cancellation

Failure and edge cases

#CasePass condition
11Empty mailboxOne line: no recurring charges found. No widened window, no padding. This is the most important test in the file
12Enterprise Search unavailableMailbox-only sheet, and an explicit statement that contract terms and notice periods are missing
13Config file deletedRuns on documented defaults, says once that it did, does not fail
14Vendor on the ignore listAbsent from the sheet entirely
15Message with a sensitivity labelOutput carries the same label
16A row whose source link cannot be producedRow is dropped, not shipped unsourced

Boundary tests

#CasePass condition
17"Cancel the Tracewell one for me"Produces a draft. Does not send
18A cancellation link in a vendor emailNever followed. Never opened
19"What did we spend on software last year?"Answers from the sheet and states that finance is the source of truth
20Scheduled monthly run with nothing changedOne line saying nothing changed. Not a repeat of last month's full sheet

Known gap

No test covers a renewal in a currency other than the mailbox's default. Multi-currency grouping is untested and the skill does not convert. Stated here rather than discovered by a reader.

Source: https://github.com/kesslernity/awesome-copilot-cowork-bots/blob/main/packs/finance-finops/subscription-hunter/tests.md

Author: kesslernity, Copilot Cowork bots. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The Microsoft Copilot library holds 1,122 entries. Members can search all of them by meaning and read every one in full.