Skip to content

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

Merged
imran-siddique merged 3 commits into
agentrust-io:mainfrom
harshnair75567-cloud:main
Jun 22, 2026
Merged

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

Conversation

@harshnair75567-cloud

Copy link
Copy Markdown
Contributor

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.

@imran-siddique imran-siddique left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct fix — slsa_level 0 is valid for software-only Level 0 records per the TRACE spec. Minor: spaces after commas in the frozenset and error message string, but not blocking. Merging.

@imran-siddique imran-siddique merged commit 157761c into agentrust-io:main Jun 22, 2026
4 of 5 checks passed
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.

2 participants