envelope_read_discards
Inspect auto-propose discard residue to reveal swallowed envelope errors, filter by session, and verify pending queue completeness.
Instructions
Read the auto-propose discard residue for the current process.
PR6 auto-propose (envelope-accrual) is silent on failure — it swallows EnvelopeAuthoringError so the specialist's real errno isn't masked. But silence on the write path shouldn't mean the discards leave no residue. This tool is the second walk (mirroring Nestor's ledger.unreadable() pattern): what got proposed AND what got swallowed, so the operator can see whether the pending queue is the full picture or a floor.
Empty session_id returns all discards this process has seen; a
specific session_id filters. Discards are cleared on process
restart (same discipline as the attribution and dedup caches);
clear_auto_propose_cache() also clears them per-session or
globally.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No |