GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(aggregator): charges producer turns declined purchase alerts and outstanding invoices into charge candidates (PR #2149) · Issue #3120 · developing-today/code

fix(aggregator): charges producer turns declined purchase alerts and outstanding invoices into charge candidates (PR #2149) #3120

New issue
Copy link
New issue
Copy link
Closed
#3193
Closed
fix(aggregator): charges producer turns declined purchase alerts and outstanding invoices into charge candidates (PR #2149)#3120
#3193
Copy link
Assignees
dezren39
Labels
app/aggregatorPackage/app: aggregator (pm-stack in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobsource/pr-diff-reviewFiled by the pr-diff-review jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 31, 2026
Issue body actions

Finding

PR #2149's Gmail charge producer turns two kinds of NOT-a-charge mail into charge candidates:

  1. Declined/failed purchase alerts — a subject like "Your $20.00 purchase at OpenAI was declined" passes the query and isNotChargeSubject, the amount and merchant parse cleanly, and a payment that never occurred is recorded as a charge (Codex P2, comment 4409381650).
  2. Outstanding invoices — a subject like "Your OpenAI invoice" with a body saying "Amount due $20.00 / Due Nov 1" is accepted; the body fallback extracts $20 with no evidence of payment, and when payment lands >3 days later the Plaid transaction is kept as a second charge (Codex P2, comment 4409467123).

Both merged unchanged and are still on main: isNotChargeSubject has no declined/failed pattern, and nothing requires payment evidence.

Evidence

  • PR: feat(aggregator): wire charges auto-matcher into collector + Plaid/Gmail producer (#1057) #2149 (merged, 7d064e5, feat(usage-hub): v3 charges auto-matching — Plaid + Gmail alerts to services #1057)
  • Current main: pm-stack/aggregator/scripts/produce-charge-candidates.ts:148-157 (isNotChargeSubject: cancellation/refund/payment-received/marketing only) and the body amount fallback at :208.

Why it matters

The producer's stated discipline is "never guessed at" — but declined and merely-due amounts are guesses that a charge occurred, and they flow into matched rows and the once-only attention strip as real spending.

Acceptance criteria

  • Subjects/bodies indicating a declined or failed purchase produce no candidate (counted as skipped).
  • An invoice whose only amount is an amount DUE (no paid/charged evidence) produces no candidate.
  • Tests pin both shapes; genuine receipts/alerts still produce candidates.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    source/pr-diff-reviewFiled by the pr-diff-review job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    effort/sSmall: expected under 2 hours of work
    app/aggregatorPackage/app: aggregator (pm-stack in this repo)
    on Oct 31, 2026
  2. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    agent-note:v1 — Agent: pr-diff-review-b; state: filed. Filed from PR diff review lane B (late-arriving Codex P2 evidence on the source PR, verified against current main ada2d88; see the issue body for PR, comment, and file:line evidence). Enqueued as a repo-task/v1 triage packet on repo-health-code-pilot.

  3. github-actions
    assigned
    dezren39
    on Oct 31, 2026
  4. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 31, 2026
  5. 38 remaining items

  6. dezren39
    added
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Oct 31, 2026
  7. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane E shift
    • Session / ID: queue task 4577
    • Task: PR fix(aggregator): charges producer — reject declined alerts and amount-due-only invoices (#3120) #3193 @d6dfa4c1d — tests verified first-hand at head this shift (producer 15/15, charges suites 42/42); parked 20m on the Codex re-review requested at ~20:05Z, which had not landed within the wait window. The earlier park reason (CI pending) is superseded: no CI workflow covers pm-stack/aggregator paths, so there is no CI gate to wait for.
    • Expectation: Resume: Codex re-review clean → merge fix(aggregator): charges producer — reject declined alerts and amount-due-only invoices (#3120) #3193 → close this issue → complete task 4577 as fixed_merged.
    • Links: PR fix(aggregator): charges producer — reject declined alerts and amount-due-only invoices (#3120) #3193
  8. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 31, 2026
  9. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane E shift
    • Session / ID: queue task 4577 (resume after park)
    • Found via: queue claim
    • Task: Resume PR 3193 — re-verify Codex re-review gate fresh, merge if clean, close fix(aggregator): charges producer turns declined purchase alerts and outstanding invoices into charge candidates (PR #2149) #3120
    • Expectation: effort s; done = PR 3193 merged, fix(aggregator): charges producer turns declined purchase alerts and outstanding invoices into charge candidates (PR #2149) #3120 closed, task completed fixed_merged
    • Links: PR fix(aggregator): charges producer — reject declined alerts and amount-due-only invoices (#3120) #3193 · branch queue/4577-3120-charges-declined-due
  10. dezren39
    added a commit that references this issue on Oct 31, 2026

    Merge pull request #3193 from developing-today/queue/4577-3120-charge…

    49a2a22
  11. dezren39
    closed this as completedin #3193on Oct 31, 2026
  12. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane E shift
    • Session / ID: queue task 4577
    • Found via: queue claim (resume after park)
    • Task: PR 3193 merged — Codex re-review at head d6dfa4c clean ("Didn't find any major issues", has_unresolved_findings:false, 19:51Z), sole Codex P2 thread resolved, merge state CLEAN. Laptop tests at head verified first-hand previous shift (producer 15/15, charges 42/42); head SHA unchanged since. No CI workflow covers pm-stack/aggregator (CodeRabbit NEUTRAL only).
    • Expectation: done = PR merged (merge commit 49a2a22), issue closed
    • Links: PR fix(aggregator): charges producer — reject declined alerts and amount-due-only invoices (#3120) #3193
  13. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/aggregatorPackage/app: aggregator (pm-stack in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobsource/pr-diff-reviewFiled by the pr-diff-review jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.