Skip to content

fix: preserve paper identity and validate delivery receipts - #10

Merged
HsukqiLee merged 1 commit into
mainfrom
fix/confirmed-paper-delivery
Nov 17, 2026
Merged

HsukqiLee merged 1 commit into
mainfrom
fix/confirmed-paper-delivery

Conversation

@HsukqiLee

Copy link
Copy Markdown
Contributor

The remaining identity and receipt findings in #2 are reproduced through process_paper and the standalone publisher. A fetched unrelated page could replace a supplied paper, partial failures appeared in the success recipient list, and malformed 2xx JSON counted as delivery.

Candidate enrichment now uses the existing exact-match/confidence acceptance rule consistently; fetching a page does not bypass it. Both publishing entries share the FastResearch receipt contract (ok=true plus a nonempty list of recipient names), and confirmations derive recipients only from those receipts.

Validation: the original code failed 12 assertions across the new scenarios. All five scenarios now pass, including accepted enrichment, identity preservation through publication, partial success, nine malformed receipt variants and the actual publisher CLI. Linux full suite: 65 tests passed. External HTTP protocols are local fixtures; verifier and routing children, composition, HTTP clients and filesystem stay real. No live publication was performed.

The sweep covered page_fetched/match_score identity merges, both urllib publish clients and confirmation consumers. Production changes consolidate acceptance and receipt rules and remove route owners from delivered recipients. No new model fields, dependencies, keyword rules or timeouts were added.

Addresses INS-2/6/7. Cancellation INS-3/4 remains a separate lifecycle change, so #2 stays open.

@HsukqiLee
HsukqiLee merged commit 6ecfc30 into main Nov 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant