Skip to content

Validate profile chunks and summary on save#33

Open
exyw wants to merge 5 commits intodevfrom
chunk-validation
Open

Validate profile chunks and summary on save#33
exyw wants to merge 5 commits intodevfrom
chunk-validation

Conversation

@exyw
Copy link
Collaborator

@exyw exyw commented Jan 9, 2026

What this PR does

  • Adds safety + relevance validation when saving profile chunks
  • Adds validation when saving the profile summary
  • Prevents nonsensical or unsafe text from being saved
  • Refactors validation API to remove unused fullName input

Notes

  • Validation is intentionally loose to minimise false rejections
  • Category matching is only enforced for chunks (not summaries)
  • Summary and chunks share the same validation endpoint

Testing

  • Edited summary and chunk content
  • Verified unsafe / irrelevant text is blocked
  • Verified valid content saves successfully

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