Files
reverse-engineering-anything/src/artifacts
gensokyo-devandgensokyo-dev e9bfd51266 perf(artifacts): keep the inspection's inventory Evidence sealed
inspect_artifact nests the inventory_artifact Evidence in its result. The
nested Evidence was created unsealed, so createArtifactInspection parsed
and authenticated it again, and the result schema then parsed the whole
embedded inventory a second time, producing an unsealed copy. When the
session recorded that copy as a source, the ledger authenticated it a
third time, recomputing its evidence_id over the complete inventory.

The inventory Evidence is now created sealed. createArtifactInspection
seals what it receives with immutableEvidence, which borrows a sealed
snapshot, and checks each substep's Evidence by seal instead of parsing
the inventory again, so the recorded source is that same snapshot. The
advertised result schema is unchanged.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-24 19:01:58 +08:00
..