feat: add TruthBench semantic red-team foundation#142
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (43)
📝 WalkthroughWalkthroughTruthBench adds deterministic typed models, eight-domain fixtures, privacy-safe sink scanning, public-surface adapters, backend parity checks, normalization, schemas, release gates, tests, and design documentation. ChangesTruthBench evaluation framework
Estimated code review effort: 5 (Critical) | ~120 minutes Sequence Diagram(s)sequenceDiagram
participant FixtureBuilder
participant SurfaceAdapter
participant SinkScanner
participant Normalizer
participant ReleaseGates
FixtureBuilder->>SurfaceAdapter: provide validated fixture
SurfaceAdapter->>SinkScanner: scan and redact observation sinks
SurfaceAdapter-->>Normalizer: return SurfaceObservation
Normalizer-->>ReleaseGates: produce normalized records and cases
ReleaseGates-->>ReleaseGates: evaluate independent release gates
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
FreshData benchmark report —
|
| fixture | n_rows | n_cols | p50 s | p95 s | peak MB | repair % | false-repair % | preserve % | trust | monotonic | export % |
|---|
Authored-code reduction (Metric 6)
|
Strix is installed on this repository, but we couldn't run this PR security review because this workspace's trial has ended. Add a card to resume code reviews here. |
Summary
Verification
PYTHONPATH=src python -m pytest -m "not online and not large": passed; the two previously recorded timing flakes did not reproduce in this run.PYTHONPATH=src python -m pytest -q tests/truthbench --no-cov: passed.ruff check .: passed.mypy src/freshdata: passed.python -m build --no-isolation: passed.Scope note
This draft contains the implemented/reviewed foundation through Tasks 1–11. Determinism/generated-code execution, the full runner/minimizer/CLI, artifact publication, CI release wiring, source-level audit fixes, and final release-profile verification remain follow-up work.
Summary by CodeRabbit
New Features
Documentation