email-connect/WORK-RECORDS.md
tegwick e9609b4024
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
EMAIL-WP-0005-T04: end-to-end send-and-scan tests, and two fixes they found
Adds tests/test_integration_send_scan.py: 7 harness-gated cases covering
delivery and Message-ID correlation, scanner ingestion without a delivery
claim, idempotency, resend, suppression, rejected requests never reaching the
provider, and verification mail carrying no authorization.

Fixes the reply heuristic, which matched against headers as well as body. The
Received: trace that every MTA-handled message carries matched its "received"
keyword, so ordinary mail was classified human_reply with a
success.reply_received assessment at medium confidence -- the exact overclaim
this repo exists to prevent. Hand-written fixtures have no Received headers,
so only real scanned mail exposed it. The heuristic now takes the body alone;
DSN detection still sees headers, which it needs. Regression test is offline.

Fixes the provider reference: SMTPProvider set no Message-ID, so send() fell
back to abs(hash((recipient, subject))) -- randomized per process and colliding
for equal recipient/subject. Outgoing mail now carries a proper RFC 5322
Message-ID, returned as the reference, which is what makes send-to-scan
correlation testable.

Suite: 72 passed with the harness up, 62 passed + 10 skipped with it down.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-14 01:54:56 +02:00

4.3 KiB

Work Records — email-connect

Generated by statehub fix-consistency (CUST-WP-0061-T04, work-record stage 3). Do not edit by hand — edit the source file/block listed for each record and re-run fix-consistency to refresh this index. Archived workplans are omitted; closed decisions/intakes/engagements stay listed so recently-resolved work is still visible. [auto]

Kind ID Status Lane Source
workplan EMAIL-WP-0001 finished workplans/EMAIL-WP-0001-repo-onboarding.md
workplan EMAIL-WP-0002 finished workplans/EMAIL-WP-0002-mvp-mailbox-evidence-scanner.md
workplan EMAIL-WP-0003 finished workplans/EMAIL-WP-0003-expected-recipient-reporting-and-mailbox-tutorial.md
workplan EMAIL-WP-0004 finished workplans/EMAIL-WP-0004-transactional-mail-delivery-service.md
workplan EMAIL-WP-0005 proposed workplans/EMAIL-WP-0005-test-mailbox-harness.md
task EMAIL-WP-0001-T01 done workplans/EMAIL-WP-0001-repo-onboarding.md
task EMAIL-WP-0001-T02 done workplans/EMAIL-WP-0001-repo-onboarding.md
task EMAIL-WP-0001-T03 done workplans/EMAIL-WP-0001-repo-onboarding.md
task EMAIL-WP-0001-T04 done workplans/EMAIL-WP-0001-repo-onboarding.md
task EMAIL-WP-0002-T01 done workplans/EMAIL-WP-0002-mvp-mailbox-evidence-scanner.md
task EMAIL-WP-0002-T02 done workplans/EMAIL-WP-0002-mvp-mailbox-evidence-scanner.md
task EMAIL-WP-0002-T03 done workplans/EMAIL-WP-0002-mvp-mailbox-evidence-scanner.md
task EMAIL-WP-0002-T04 done workplans/EMAIL-WP-0002-mvp-mailbox-evidence-scanner.md
task EMAIL-WP-0002-T05 done workplans/EMAIL-WP-0002-mvp-mailbox-evidence-scanner.md
task EMAIL-WP-0002-T06 done workplans/EMAIL-WP-0002-mvp-mailbox-evidence-scanner.md
task EMAIL-WP-0002-T07 done workplans/EMAIL-WP-0002-mvp-mailbox-evidence-scanner.md
task EMAIL-WP-0002-T08 done workplans/EMAIL-WP-0002-mvp-mailbox-evidence-scanner.md
task EMAIL-WP-0002-T09 done workplans/EMAIL-WP-0002-mvp-mailbox-evidence-scanner.md
task EMAIL-WP-0002-T10 done workplans/EMAIL-WP-0002-mvp-mailbox-evidence-scanner.md
task EMAIL-WP-0002-T11 done workplans/EMAIL-WP-0002-mvp-mailbox-evidence-scanner.md
task EMAIL-WP-0002-T12 done workplans/EMAIL-WP-0002-mvp-mailbox-evidence-scanner.md
task EMAIL-WP-0003-T01 done workplans/EMAIL-WP-0003-expected-recipient-reporting-and-mailbox-tutorial.md
task EMAIL-WP-0003-T02 done workplans/EMAIL-WP-0003-expected-recipient-reporting-and-mailbox-tutorial.md
task EMAIL-WP-0003-T03 done workplans/EMAIL-WP-0003-expected-recipient-reporting-and-mailbox-tutorial.md
task EMAIL-WP-0003-T04 done workplans/EMAIL-WP-0003-expected-recipient-reporting-and-mailbox-tutorial.md
task EMAIL-WP-0003-T05 done workplans/EMAIL-WP-0003-expected-recipient-reporting-and-mailbox-tutorial.md
task EMAIL-WP-0003-T06 done workplans/EMAIL-WP-0003-expected-recipient-reporting-and-mailbox-tutorial.md
task EMAIL-WP-0003-T07 done workplans/EMAIL-WP-0003-expected-recipient-reporting-and-mailbox-tutorial.md
task EMAIL-WP-0004-T01 done workplans/EMAIL-WP-0004-transactional-mail-delivery-service.md
task EMAIL-WP-0004-T02 done workplans/EMAIL-WP-0004-transactional-mail-delivery-service.md
task EMAIL-WP-0004-T03 done workplans/EMAIL-WP-0004-transactional-mail-delivery-service.md
task EMAIL-WP-0004-T04 done workplans/EMAIL-WP-0004-transactional-mail-delivery-service.md
task EMAIL-WP-0005-T01 done workplans/EMAIL-WP-0005-test-mailbox-harness.md
task EMAIL-WP-0005-T02 done workplans/EMAIL-WP-0005-test-mailbox-harness.md
task EMAIL-WP-0005-T03 done workplans/EMAIL-WP-0005-test-mailbox-harness.md
task EMAIL-WP-0005-T04 todo workplans/EMAIL-WP-0005-test-mailbox-harness.md
task EMAIL-WP-0005-T05 todo workplans/EMAIL-WP-0005-test-mailbox-harness.md
task EMAIL-WP-0005-T06 todo workplans/EMAIL-WP-0005-test-mailbox-harness.md