Skip to content

fix(schema): allow SLSA Level 0 for software-only platforms (TRACE v0.2)#21

Open
harshnair75567-cloud wants to merge 3 commits into
agentrust-io:mainfrom
harshnair75567-cloud:main
Open

fix(schema): allow SLSA Level 0 for software-only platforms (TRACE v0.2)#21
harshnair75567-cloud wants to merge 3 commits into
agentrust-io:mainfrom
harshnair75567-cloud:main

Conversation

@harshnair75567-cloud

Copy link
Copy Markdown

v0.2 added support for slsa_level: 0 (software-only platforms, no hardware attestation), but the schema, tr_sca.py, and the test suite were never updated to match — so a valid Level 0 record currently gets rejected.

This PR fixes that:

  • schema minimum for slsa_level lowered from 1 to 0
  • tr_sca.py now accepts 0 in _SLSA_LEVELS, error message updated to match
  • test_level0.py assertion updated to allow 0

Didn't need to touch test_level0_negative.py — it already checks that 4 and -1 get rejected, and this change doesn't affect either bound, just adds 0 as a new valid floor.

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