Add P1 routing contracts and P2 safety baseline - #4
Merged
Conversation
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.
What changed
P1 routing contracts
policy_scoresemantics while keepingscorefor compatibility.quality.status: not_calibratedso policy scoring is not presented as empirical acceptance probability.P2 packaging and privacy baseline
Added
pyproject.toml,uv.lock, package entry points, and the one-command repository validation gate.Moved CI installation to the locked
uvenvironment.Added local credential scanning/redaction helpers and a documented security/privacy threat model.
Documented the mandatory tenant, consent, retention/deletion, audit, redaction, and provider-control gates before SaaS/API work.
Updated schemas, tests, documentation, changelog, and workboard.
Why
The review identified fragile matching, insufficient program-card provenance, ambiguous score semantics, unreproducible setup, and an insufficient privacy posture for future private projects. This patch creates explicit local contracts and blocks SaaS/API expansion until the required security controls are designed and tested. It does not invent provenance for legacy cards or claim score calibration that does not yet exist.
Validation
38 passeduv lock --checkuv run --locked python -m runtime.checkpython3 runtime/validate_schemas.pypython3 runtime/verify_route.py tests/cases/ai_startup.yaml --all-aipython3 -m py_compile runtime/*.py tests/test_p1_contracts.pygit diff --check