Skip to content

[codex] Harden public AI summary invariants - #200

Merged
JSONbored merged 3 commits into
JSONbored:mainfrom
jeffreyzeng10:codex/ai-public-safety-invariants
Jun 1, 2026
Merged

[codex] Harden public AI summary invariants#200
JSONbored merged 3 commits into
JSONbored:mainfrom
jeffreyzeng10:codex/ai-public-safety-invariants

Conversation

@jeffreyzeng10

Copy link
Copy Markdown
Contributor

Summary

  • add unsafe AI output fixtures for public forbidden language from test(ai): add AI sanitizer and fallback invariants #152
  • sanitize public AI prompt context before model upload while preserving private authenticated context
  • extend public unsafe-output detection to private reviewability/private scoreability/public score-estimate language

Verification

  • npx vitest run test/unit/ai-summaries.test.ts --testNamePattern "unsafe public AI output|public AI prompt"
  • npx vitest run test/unit/ai-summaries.test.ts
  • npm run typecheck
  • npm run test:coverage
  • git diff --check
  • npm run test:ci

Closes #152

@JSONbored JSONbored left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@jeffreyzeng10 This is ready from my side. Public AI summary generation now uses stripped public context, rejects unsafe public model output, and includes regression coverage for forbidden output terms plus private-context separation.

Current checks are green and the merge tree is clean.

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.

test(ai): add AI sanitizer and fallback invariants

2 participants