Repository navigation
fix(memory): honor legacy vector delete body scope - #1192
santoshkumarradha merged 2 commits into
Conversation
📊 Coverage gateThresholds from
✅ Gate passedNo surface regressed past the allowed threshold and the aggregate stayed above the floor. |
📐 Patch coverage gateThreshold: 80% on lines this PR touches vs
✅ Patch gate passedEvery surface whose lines were touched by this PR has patch coverage at or above the threshold. |
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
santoshkumarradha
left a comment
There was a problem hiding this comment.
Reviewed the focused change and its regression coverage. The implementation is scoped, the CLA is signed, and the required checks are green.
Summary
Fixes #1188. Legacy
POST /api/v1/memory/vector/deleterequests retained the body key but discarded the body scope, so an explicit actor or session deletion could target the workflow namespace when multiple context headers were present.Retain the bound body scope before resolving and authorizing the deletion. A nonempty query scope continues to take precedence; omitted/null scope fallback and RESTful path-key deletion retain their existing behavior.
Type of change
Test plan
VITEST_MAX_WORKERS=2 ./scripts/test-all.sh: Go control plane and Go SDK passed; Python SDK 2,989 passed, 4 skipped, 38 deselected; TypeScript SDK 1,394 passed, 1 skipped across 99 files; Web UI 837 passed across 141 files. Upstream-defined exclusions were retained.make fmt tidy: passed, with no module-file changes. Unrelated baseline formatter output was restored to keep this patch focused.Go checks use an isolated offline Linux Go 1.25.14 environment. Python and Node checks use their native macOS environments. No live model/provider calls are used.
Test coverage
vector_memory.goat 100%; the control-plane surface is 88.2% and the weighted aggregate is 86.12%.Checklist
The commit follows conventional-commits style; no commit-signature claim is made.
Related issues / PRs
Fixes #1188. #1189 fixes the independent TypeScript scoped-handle ID issue and explicitly records this legacy handler defect as a separate limitation.
Prepared with Codex assistance and independently reviewed.