Verify a fix actually closed the targeted retain cycle
verifyFixCompare pre-fix and post-fix memory snapshots to verify retain cycle fixes. Get per-pattern PASS/FAIL verdicts or check a specific pattern disappeared.
Instructions
[mg.memory] Cycle-semantic diff. Classifies both before and after .memgraph snapshots and emits a per-pattern PASS/PARTIAL/FAIL verdict plus bytes freed and instances released. Use as a CI gate: if expectedPatternId is provided, expectedPatternVerdict tells you in one field whether the fix landed.
Pipeline: this is the natural followup to classifyCycle after you've shipped a fix. Capture a fresh .memgraph, point this at the before/after pair.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| before | Yes | Absolute path to the baseline `.memgraph` (pre-fix). | |
| after | Yes | Absolute path to the post-fix `.memgraph`. | |
| expectedPatternId | No | If provided, the verdict is gated on whether this specific patternId disappeared from `after`. Defaults to checking every classified pattern. | |
| verbosity | No | compact |