fix(anatomy): R5.3 __proto__ field segments refused, seed identity guard over the whole seed tree, hashed id comparisons

This commit is contained in:
bchanot committed 2026-10-23 10:51:39 +02:00
1 parent 3ece1a64b1
commit f245b3ec25
7 files changed
+86 -33

No files matched your search

@@ -564,6 +564,20 @@ const ACCEPTED: Case[] = [
{ op: 'add', target: `${MOBILITY}/n1`, value: leaf('child') },
]),
},
{
// The TypeScript's assignment through `__proto__` ignored the string (no pollution: safe
// in this process); the port refuses the segment at the op (declared).
name: 'declared-proto-segment-overwritten',
changes_file: one([
{ op: 'set', target: MOBILITY, field: 'name.__proto__', value: 'x' },
{
op: 'set',
target: MOBILITY,
field: 'name',
value: { fr: 'a', en: 'b' },
},
]),
},
{
name: 'two-changes',
changes_file: {