Repository navigation
feat(views): add native compliance precision contract - #123
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chubirka The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
PR Summary by QodoAdd compliance precision Insight view contract
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can switch off images and animations for a plain-text comment |
|
Companion implementation is now published: traust-core#387, immutable Core commit The Qodo cross-repository finding is inspecting an older mounted Core snapshot. The actual native producer is implemented, not a stub:
Core stays draft for dependency reconciliation/re-pin: its pre-existing contracts#117 dependency must be retained, so validation uses a separate temporary integration ref; this schema PR remains only its three additive view files. The downstream Traust draft will preserve the existing flat JSON contract while using the canonical wrapper internally. |
Development landed the reworked remediation-scheduling slice (#117, #121, #123): run_order gains work_item_id plus fork_url/fork_branch, the remediation / remediation_finding tables are retired (remediation.schema.json is the system of record), and the upgrades/ channel is dropped (7c9554c). This merge takes development's decisions wholesale for the DB surface and keeps this branch's sole addition: the benchmark-scorecards view contract, its tests and README section, layered after the compliance-precision section.
Summary
Verification
make setuponce for the fresh worktree.make lint-fix: passed.TRAUST_TEST_DATABASE_URL=postgresql://traust:traust-test-only@127.0.0.1:60395/contracts_compliance_precision_fnfe42sg make test: 1435 passed, including SQLite and isolated PostgreSQL./tmp/contracts-compliance-precision-fnfe42sg-dist/traust_contracts-0.0.0-py3-none-any.whl; installed it with isolated uv outside the source worktree. Loaded the packaged new schema and 46 artifact resources; valid framework accepted, unknown framework rejected, zero external retrievals.Core integration supplies its existing artifact registry when validating this view. JSON Schema validates shape/ranges, not count arithmetic or derived flags.