Skip to content

data_validation: check mapping rows that cite published test records - #106

Open
astrogilda wants to merge 4 commits into
GenAI-Security-Project:mainfrom
astrogilda-forks:validation/evidence-mapping-check
Open

astrogilda wants to merge 4 commits into
GenAI-Security-Project:mainfrom
astrogilda-forks:validation/evidence-mapping-check

Conversation

@astrogilda

Copy link
Copy Markdown
Contributor

This adds validators/evidence_mapping_check.py, the check I promised in the channel on 10 Oct, and it runs from run_all_checks.py.

A mapping row can carry an optional test_records field. It names a corpus of signed accept and reject records in agent-evidence-vectors (pinned at 0.24.0), and optionally one requirement in it. The check fails when the corpus is missing from the pinned version, or the requirement is absent, withdrawn or silent on the row's control. It also fails when the corpus does not replay clean under the package's reference verifier. Rows marked missing or not_applicable get a warning.

The check is opt-in. It acts only once mapping rows carry the field. No row cites an MCP Top 10 control yet, so today it passes on every file and changes nothing.

The existing pip entry in dependabot.yml covers data_validation/, so each release of the package opens a bump PR that this check tests. Ruff, mypy and the suite pass.

Signed-off-by: Sankalp Gilda <23521054+astrogilda@users.noreply.github.com>
Add evidence_mapping_check, a shared check that replays the corpus a
framework_alignments row cites with its reference verifier, checks the
cited requirement exists and tests the row's control, and runs from
run_all_checks. Allow test_records and OWASP MCP Top 10 in the risk
assessment schema.

Signed-off-by: Sankalp Gilda <23521054+astrogilda@users.noreply.github.com>
Signed-off-by: Sankalp Gilda <23521054+astrogilda@users.noreply.github.com>
…ange

The schema checksum recorded in croissant.json no longer matched schema.json. Regenerated with data_validation/croissant/build_croissant.py.

Signed-off-by: Sankalp Gilda <23521054+astrogilda@users.noreply.github.com>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant