Files
semantica/tests/context
754fe5fdd7 fix(context): deep-copy store results in ErasureReceipt.to_dict() (#1381)
* fix(context): deep-copy store results in ErasureReceipt.to_dict()

to_dict() used dict(result), a shallow copy, so a nested dict in a
per-store result (e.g. a vector backend's backend_result) was shared by
reference between the serialized payload and the live receipt. Mutating
the payload for a user-facing response silently corrupted the audit
record. Copy each store result with copy.deepcopy() instead and document
the isolation. Regression test covers nested dict mutation isolation.

* fix(context): deep-copy erasure receipt store results

---------

Co-authored-by: BinarySpecter <185640875+BinarySpecter@users.noreply.github.com>
Co-authored-by: Sameer Kadam <sskadam6305@gmail.com>
Co-authored-by: Sameer Kadam <sameerkadam@Sameers-MacBook-Air.local>
2026-09-05 16:41:12 +05:30
..