Skip to content

Add TruthStream MVP: backend pipeline, API, CLI, React frontend, providers, and tests#2

Open
Gitcoder12 wants to merge 1 commit into
mainfrom
codex/establish-project-workflow-guidelines-l37ven
Open

Add TruthStream MVP: backend pipeline, API, CLI, React frontend, providers, and tests#2
Gitcoder12 wants to merge 1 commit into
mainfrom
codex/establish-project-workflow-guidelines-l37ven

Conversation

@Gitcoder12

Copy link
Copy Markdown
Owner

Motivation

  • Provide a minimal, deterministic MVP for evidence-centered claim verification that runs locally and in CI without external model keys.
  • Offer a clear, extensible architecture that separates claim extraction, evidence retrieval, scoring, and presentation so remote providers or NLP models can be swapped in later.

Description

  • Add a new Python package truthstream under src/ implementing domain models (models.py), deterministic claim extraction (extraction.py), evidence retrieval abstractions and an in-memory retriever (evidence.py), real-world provider integrations with caching (providers.py), confidence scoring (scoring.py), a composable pipeline (pipeline.py), runtime settings (settings.py), a FastAPI app (api.py), and a CLI entrypoint (cli.py).
  • Introduce a React + TypeScript + Tailwind frontend scaffold under frontend/ including pages, components, types, build config, and docs for local development and the Vite proxy.
  • Add packaging and developer config via pyproject.toml, a top-level README.md expanded with quickstart instructions, and a .gitignore tuned for Python and the frontend.
  • Include automated tests covering the API, pipeline behavior, and provider mappings under tests/, and small utilities for local caching and retriever composition.

Testing

  • Ran pytest against the new test suite including tests/test_api.py, tests/test_pipeline.py, and tests/test_providers.py, and all tests passed.
  • The FastAPI health and verify endpoints were exercised via fastapi.testclient in tests and returned expected JSON payloads.
  • Provider unit tests simulated remote responses via injected openers and verified mapping to Evidence objects and caching behavior.

Codex Task

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant