Skip to content

v1.0.0

Latest

Choose a tag to compare

@IanFoxDev IanFoxDev released this 27 Oct 16:28

Added

  • Four checklists: refunds and reversals (REV), subscription lifecycle (SUB), periods
    and dates (TIME), data completeness for syncs, backfills and aggregates (DATA).
  • The provider checklist reads provider messages too: loose values (PSP-5), pending
    results taken as final (PSP-6), amounts not checked against the order (PSP-7),
    unsigned messages (PSP-8), late events (PSP-9), events acknowledged and never applied
    (PSP-10); PSP-3 also covers a default branch that maps unknown events to a charge.
  • MONEY-8 (amounts in different units or scales), MONEY-9 (a missing value that
    defaults to moving money), IDEM-12 (a dedup check that can never match), TX-10 (a
    second write path that skips the side effects of the main one).
  • A category also matches on the path of a file in scope, so a PostbackController.php
    gets the provider checklist when the changed lines do not name the provider.

Changed

  • The verifier treats a scenario that a comment at the code states as a decision (a
    paid purchase stands, only the counter is capped) as already weighed: it keeps only
    what the decision leaves out, such as money with no trace in data or a docblock that
    promises the opposite, with severity low, and rejects the rest. A rule stated in a
    repository doc (README, a module's notes, docs/) or in a named constant counts the
    same, and the verifier reads the module's notes before it calls a behaviour
    unintended, also when the diff does not touch them.
  • IDEM-1 covers an API endpoint that moves money with no idempotency key while the
    other money endpoints of the same API take one, and a stored key whose saved answer
    is replayed for a request with a different body.
  • A file in scope only through money_paths gets the four base checklists (TX, RACE,
    IDEM, MONEY); the others load when the file matches their patterns.
  • REV, SUB, TIME and DATA are built-in prefixes and cannot name private rules.
  • "Do not report" cases for DATA-5 (a migration the default branch has not run),
    SUB-4 (an expired subscription renewed from now with no access in the gap), MONEY-9
    (a fallback that money paths cannot reach), IDEM-12 (a type the write layer casts),
    IDEM-5 (an action a person starts by hand, where running it again is a new request)
    and PSP-3 (a handler behind a provider setting that sends one event type, when the
    code or its configuration shows that setting).
  • Eval: a finding with the right rule counts when its line is within 10 lines of the
    anchor range (was 5). Reviews that point at the start of the function or the
    missing guard were scored as false alarms. The stored runs of the real set
    (0.8.3 baseline, 0.9.1) score the same with the new window.
  • Eval: new baselines for both sets from a full run before this release
    (docs/eval-results/2026-10-27-1.0.md). Gaps in
    the synthetic cases that the reviewer found are fixed in the cases; findings that
    are the same bug under a newer rule are accepted.