PackSpec v1 TCK
PackSpec v1 TCK
Run the PackSpec v1 Test Compatibility Kit (TCK):
make test-packspec-tckor
bash scripts/test_packspec_tck.sh ./gaitFixture Root
scripts/testdata/packspec_tck/v1/
Current base vector:
run_record_input.json(deterministic source for runpack + PackSpec generation)
TCK Coverage
The TCK validates these required vectors:
- Valid run pack (
pack_type=run) verify pass. - Valid job pack (
pack_type=job) verify pass. - Tampered hash pack verify fail.
- Undeclared file pack verify fail.
- Schema-invalid manifest verify fail.
- Legacy migration vectors:
- legacy runpack verify through
gait pack verify - legacy guard pack verify through
gait pack verify
- legacy runpack verify through
- Deterministic
pack diffoutput (stable hash across repeated runs).
Exit Contract
0: full TCK pass.- non-zero: at least one contract vector failed.
Contribution Rules
When modifying PackSpec behavior:
- update/add fixture vectors under
scripts/testdata/packspec_tck/v1/ - keep vectors deterministic and content-addressable
- update this document with any new mandatory vector class