Skip to content

[codex] Modularize chat prompts and tests#92

Open
anth-volk wants to merge 2 commits into
mainfrom
codex/modular-chat-prompts-tests
Open

[codex] Modularize chat prompts and tests#92
anth-volk wants to merge 2 commits into
mainfrom
codex/modular-chat-prompts-tests

Conversation

@anth-volk
Copy link
Copy Markdown

@anth-volk anth-volk commented May 29, 2026

Fixes #91

Summary

  • Move UK chat runtime prompts into a dedicated backend/prompts.py module.
  • Add factual-neutrality and row-level microdata rules to prompts and exposed tool metadata.
  • Add PR CI for backend pytest and frontend production build.
  • Clean up backend tests around live Anthropic calls, compiled-engine availability, conversation table isolation, and stale compute coverage.
  • Add model-agnostic AI guidance docs under docs/engineering/skills/ with thin adapters for AGENTS, Claude, and Copilot.

Validation

  • PYTHONPATH=backend python -m pytest backend/tests/test_prompts.py backend/tests/test_agent_tools.py
  • npm run build in frontend/
  • git diff --check --cached before commit

Notes

The full backend suite is intended to run in CI after installing backend/requirements.txt. Local compiled-engine-dependent tests skipped cleanly where policyengine_uk_compiled was not installed.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
policyengine-uk-chat Ready Ready Preview, Comment May 29, 2026 5:10pm

Request Review

@github-actions
Copy link
Copy Markdown

Beta preview is ready.

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.

Modularize chat prompts and add PR test workflow

1 participant