Skip to content

fix(auth): add route policy for memory/v2/concept-frequency#29626

Merged
siddseethepalli merged 1 commit into
mainfrom
do/fix-concept-frequency-route-policy
May 5, 2026
Merged

fix(auth): add route policy for memory/v2/concept-frequency#29626
siddseethepalli merged 1 commit into
mainfrom
do/fix-concept-frequency-route-policy

Conversation

@siddseethepalli
Copy link
Copy Markdown
Contributor

@siddseethepalli siddseethepalli commented May 5, 2026

Summary

  • Add missing memory/v2/concept-frequency:POST entry to route-policy.ts with settings.read scope (matches sibling read-only debug routes).
  • Fixes guard-tests.test.ts failure: "Endpoints dispatched in http-server.ts have no route policy in route-policy.ts: memory/v2/concept-frequency".

Original prompt

--yolo Fix the specific CI issue in this failing job only: https://github.com/vellum-ai/vellum-assistant/actions/runs/25363413453/job/74368127577


Open in Devin Review

The memory/v2/concept-frequency debug endpoint was added in #29618 but no
matching scope policy was registered, causing guard-tests.test.ts to fail
in CI. Add settings.read (matches sibling read-only debug routes like
concept-page and explain-similarity).
@siddseethepalli siddseethepalli merged commit 9b218b8 into main May 5, 2026
@siddseethepalli siddseethepalli deleted the do/fix-concept-frequency-route-policy branch May 5, 2026 07:58
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 1 additional finding in Devin Review.

Open in Devin Review

Comment thread assistant/src/runtime/auth/route-policy.ts
siddseethepalli added a commit that referenced this pull request May 9, 2026
…30098)

The endpoint memory/v2/fit-anisotropy:POST was registered twice in
ACTOR_ENDPOINTS. Since registerPolicy uses policyRegistry.set(), the
second call silently overwrote the first, making one entry dead code.

Follow-up to #29626 review feedback from Devin.

Co-authored-by: Vellum Assistant <assistant@vellum.ai>
@siddseethepalli
Copy link
Copy Markdown
Contributor Author

Addressed Devin's duplicate-registration finding in follow-up #30098 (already merged).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant