mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-09-10 04:00:35 +00:00
* 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>