Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

---

## [1.5.3] - 2026-03-23

### Added

- **`spec_version`** — Required top-level CPS field (default `"1.0"`) on `Capsule` / `CapsuleDict`, included in `to_dict()` / canonical hash. `from_dict()` defaults missing values to `"1.0"` for backward compatibility. Specification updated in `spec/README.md`; golden fixtures regenerated.
- **`validate_capsule_dict` / `validate_capsule` (Python)** and **`validateCapsuleDict` (TypeScript)** — FR-002 runtime validation for CPS content dicts: required keys, section shapes, chain rules, numeric ranges, optional `claimed_hash` integrity check, and optional `strict_unknown_keys` / `strictUnknownKeys`. Exported from `qp_capsule` and `@quantumpipes/capsule`. Invalid vectors updated to include `spec_version` where appropriate; added `missing_spec_version` (16 negative vectors total).
- **Structured verify (FR-003)** — Python: `SealVerifyCode`, `SealVerificationResult`, `Seal.verify_detailed()`, `Seal.verify_with_key_detailed()`; `verify()` / `verify_with_key()` unchanged (boolean, delegate to detailed). TypeScript: `verifyDetailed()`, `SealVerificationResult`, `SealVerifyCode`; `verify()` returns `(await verifyDetailed(...)).ok`.

---

## [1.5.2] - 2026-03-18

### Added
Expand Down
2 changes: 1 addition & 1 deletion conformance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ The URI spec is at [`spec/uri-scheme.md`](../spec/uri-scheme.md).

## Invalid Capsule Fixtures

The `invalid-fixtures.json` file provides 15 test vectors for **malformed or structurally invalid** capsules. A conformant verifier SHOULD reject each of these.
The `invalid-fixtures.json` file provides 16 test vectors for **malformed or structurally invalid** capsules. A conformant verifier SHOULD reject each of these.

Each entry contains:

Expand Down
82 changes: 49 additions & 33 deletions conformance/fixtures.json

Large diffs are not rendered by default.

Loading