{"uid":"cap_lUgeuehsEsOwztRxhCAC-","slug":"imap-references-message-thread-forest-reconstructor-716a447c","name":"IMAP REFERENCES Message Thread Forest Reconstructor","description":"IMAP REFERENCES message threading forest. Reconstruct the fully typed result and compare its complete canonical SHA256 claim.","url":"https://detect.halowerk.com/v1/F-TD2000-DOCUMENTS-08/imap5256-references-dummy-pruning-subject-merge-thread-forest?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"artifact":{"type":"object","required":["imapThread"],"properties":{"imapThread":{"type":"object","required":["data","claim"],"properties":{"data":{"type":"object","required":["messages"],"properties":{"messages":{"type":"array","items":{"type":"object","required":["sequence","uid","message_id","references","sent_time","base_subject","reply_or_forward"],"properties":{"uid":{"type":"integer","maximum":4294967295,"minimum":1},"sequence":{"type":"integer","maximum":1000000,"minimum":1},"sent_time":{"type":"integer","maximum":1000000000000,"minimum":-1000000000000},"message_id":{"anyOf":[{"type":"null"},{"type":"string","maxLength":128,"minLength":3}]},"references":{"type":"array","items":{"type":"string","maxLength":128,"minLength":3},"maxItems":32,"minItems":0},"base_subject":{"type":"string","maxLength":256,"minLength":0},"reply_or_forward":{"type":"boolean"}},"additionalProperties":false},"maxItems":64,"minItems":0}},"additionalProperties":false},"claim":{"anyOf":[{"type":"null"},{"type":"string","pattern":"^[0-9a-f]{64}$","maxLength":64,"minLength":64}]}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NdHHG5XtFuzVIo7jir7iJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reconstructs an IMAP message threading forest using REFERENCES headers and subject merging, then validates the result against a canonical SHA256 claim","exampleAgentPrompt":"Take these 12 IMAP messages with their message-id, references headers, base subjects, and sent timestamps, reconstruct the full thread forest using subject-merge pruning, and verify the result matches the SHA256 claim I have: 'a3f9...d41b'.","exampleUseCases":[{"title":"Email client thread integrity check","prompt":"I have a batch of 20 IMAP messages exported from a mailbox — each with their UID, message-id, references list, base subject, and sent time. Reconstruct the full threading forest and confirm whether it matches this SHA256 claim: 'e3b0c44298fc1c149afb4c8996fb92427ae41e4649b934ca495991b7852b855'."},{"title":"Detecting thread corruption in archived mailboxes","prompt":"We archived an IMAP folder and need to verify the threading wasn't corrupted — can you take these messages with their references and subject lines, rebuild the conversation forest, and tell me if the canonical SHA256 digest matches what we recorded at archive time?"},{"title":"Subject-merge disambiguation for mailing lists","prompt":"I have a mailing list export where some threads share similar subjects but different references chains — reconstruct the full threaded forest with subject-merge pruning and validate the result against our expected SHA256 claim hash."}],"resultDescription":"Returns the reconstructed IMAP thread forest (grouped conversation trees built from REFERENCES and base-subject merging) along with a verification of whether the computed canonical SHA256 digest matches the supplied claim hash.","failureModes":["Mismatched SHA256 claim returns a verification failure response","Malformed or missing message-id fields cause threading gaps or errors","Messages array exceeding 64 items is rejected by schema validation","References entries exceeding 32 items per message are truncated or rejected","Invalid sent_time outside allowed range causes input rejection","Null message-id entries may prevent proper thread linkage","Circular or inconsistent references chains may produce unexpected forest shapes"],"whenToPreferThis":"Use this endpoint when you need to both reconstruct IMAP threading forests (using REFERENCES + subject-merge) and cryptographically verify the result against a pre-computed SHA256 claim — particularly for archival integrity checks, mailbox auditing, or agent workflows that must confirm deterministic threading outputs match expected digests.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-04T06:41:19.945Z","isFirstParty":false,"canonicalSlug":"imap-references-message-thread-forest-reconstructor-716a447c"}