Skip to content

feat: add companion manifest, attestation, and evidence schemas v0#4

Merged
jal-co merged 1 commit into
mainfrom
feat/spec-v0
Jul 11, 2026
Merged

feat: add companion manifest, attestation, and evidence schemas v0#4
jal-co merged 1 commit into
mainfrom
feat/spec-v0

Conversation

@jal-co

@jal-co jal-co commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

What

Adds the v0 companion manifest, attestation, and evidence JSON Schemas, RFC 0001, a 19-fixture conformance suite (valid/invalid/malicious), Ajv validation tooling, tests, and SHA-pinned CI with a DCO check.

Why

Spec Milestones 0–3 groundwork: the schemas are the contract the core, CLI, and cloud consume, and the first defense against malicious registry payloads.

How

Strict draft-2020-12 schemas (additionalProperties: false, bounded sizes, safe path patterns), conditional source-model requirements, no generic "verified" state, and canonicalization profile named for the attestation digest.

Testing

  • pnpm validate: 19/19 fixtures match expected outcomes
  • pnpm test: 20/20 node:test assertions pass
  • Malicious fixtures cover traversal, absolute paths, oversized file lists, confusable namespaces, http URLs, and generic trust labels

Signed-off-by: Justin Levine <20596508+jal-co@users.noreply.github.com>
@jal-co
jal-co requested review from a team as code owners July 11, 2026 20:55
@jal-co
jal-co merged commit d37f8e9 into main Jul 11, 2026
2 checks passed
@jal-co
jal-co deleted the feat/spec-v0 branch July 11, 2026 20:56
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