What happened?
packages/core/src/policy/stable-stringify.ts is a security-critical utility used for policy rule matching with no dedicated unit tests.
The function handles complex edge cases (circular references, toJSON, sorted keys, undefined/function coercion) that are only indirectly tested via policy-engine.test.ts.
What did you expect to happen?
A dedicated test file covering all documented behaviors of stableStringify, including primitives, sorted keys, arrays, circular references, and toJSON support.
Client information
Not Applicable
Login information
No response
Anything else we need to know?
The JSDoc already documents all expected behaviors with examples, making this straightforward to test directly.
What happened?
packages/core/src/policy/stable-stringify.tsis a security-critical utility used for policy rule matching with no dedicated unit tests.The function handles complex edge cases (circular references, toJSON, sorted keys, undefined/function coercion) that are only indirectly tested via policy-engine.test.ts.
What did you expect to happen?
A dedicated test file covering all documented behaviors of stableStringify, including primitives, sorted keys, arrays, circular references, and toJSON support.
Client information
Not Applicable
Login information
No response
Anything else we need to know?
The JSDoc already documents all expected behaviors with examples, making this straightforward to test directly.