Add audited external quant screening API - #10
Merged
Conversation
Public /screen_external_manifest endpoint that screens user-supplied AGGREGATE evidence (no model download, no raw prompts, unsigned + provisional) via the frozen RTSI screen. - external_screen.py: strict manifest validation (32KB cap; NaN/inf/SHA/range rejection), reuse compute_rtsi/classify_risk/RTSI_WEIGHTS/feature_deltas, append delta to frozen 45-row substrate, per-feature contributions sum to score, refusal-collapse -> HIGH/ROUTE, both-zero -> UNKNOWN/INSUFFICIENT_SIGNAL. - schemas/external_screen_v1.schema.json: frozen request contract (draft 2020-12). - app.py (+86/-0, additive only): collapsed "Test your own quant - API-ready" accordion in Score a config; .click api_name="screen_external_manifest" public; all reflected metadata HTML-escaped. - tests/test_external_screen.py (60) + tests/test_external_screen_ui.py (19). - README / SECURITY_AUDIT / SUBMISSION / AGENT_TRACE docs. Frozen substrate, score/cert semantics, providers, six tabs, and worker concurrency unchanged. 556 tests pass; ruff/bandit/pip-audit clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/screen_external_manifestendpoint and collapsed UI panelVerification
git diff --checkpassedgradio_clientvalid/rejected requests passed