@charter-agreement-protocol/verifier 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,56 @@
1
+ # Changelog
2
+
3
+ All notable public changes to `@charter-agreement-protocol/verifier` are
4
+ documented here.
5
+
6
+ ## [0.4.0] — 2026-09-17
7
+
8
+ ### Added
9
+
10
+ - The producer surface (the Elixir reference `SigningInput`, now fully
11
+ aligned): `descriptorSigningInput` / `receiptSigningInput` (build-only),
12
+ `acceptanceSigningInput` / `terminationSigningInput` (set-aware: build
13
+ first, then the R1–R3 refusal checks at the reference ordering), and
14
+ `assembleCompact` (registry-row length, framing re-decode, size gate).
15
+ Holder-side signers sign through these — exactly one producer
16
+ implementation.
17
+ - `governingRevision(chainInput, at)` — the certified governing semantics
18
+ as a public query (a digest, or `contested`/`none`).
19
+ - `decodeCharterRevision` / `revisionDigest` and
20
+ `decodePartyDescriptor` / `descriptorDigest` — the decode/digest pairs
21
+ over the certified internals.
22
+
23
+ ### Fixed
24
+
25
+ - Never-throw hardening across the new surface: non-JSON claims values
26
+ (the reference `tagged/1` walk) and non-object views return typed codes;
27
+ `assembleCompact` validates the signing-input struct (message must be
28
+ the exact protected/payload framing); `decodePartyDescriptor` binds the
29
+ `cap+party` typ.
30
+
31
+ ## [0.3.0] — 2026-09-17
32
+
33
+ ### Added
34
+
35
+ - The honest-signer refusal checks as a public surface:
36
+ `acceptanceRefusal` / `terminationRefusal` (R1 claims-truth, R2
37
+ no-equivocation, R3 ancestry/governing coverage) over the caller's own
38
+ verified view, and `checkSigningClaims` — the producer build gate's
39
+ claims half (the reference `decode_for_signing`), shared with the verify
40
+ paths. `verifyChain` facts grow the verified `acceptances`.
41
+
42
+ ## [0.2.0] — 2026-09-16
43
+
44
+ ### Added
45
+
46
+ - The artifact-level verification API: `verifyDescriptor`,
47
+ `verifyDescriptorChain`, `verifyAcceptance`, `verifyTermination`,
48
+ `verifyChain`, `verifyReceipt`, `decodeArtifact`, `verifySignature`,
49
+ plus the registry/emission/digest primitives.
50
+
51
+ ## [0.1.x] — 2026-09-15
52
+
53
+ - Initial public releases under the `charter-agreement-protocol` npm
54
+ organization: corpus report machinery, canonical JSON, strict I-JSON
55
+ decode, self-check battery, the `cap-verifier` CLI, and the
56
+ `./package.json` export for consumer corpus-path resolution.
package/NOTICE CHANGED
@@ -1,4 +1,10 @@
1
- charter_agreement_protocol
1
+ Charter Agreement Protocol Verifier (TypeScript)
2
2
  Copyright 2026 BaseLabs
3
3
 
4
- This product includes software developed by BaseLabs.
4
+ This product includes software developed by BaseLabs
5
+ (https://github.com/baselabs).
6
+
7
+ The certified conformance corpus vendored in this package is certified
8
+ against the Elixir reference implementation, charter_agreement_protocol
9
+ (https://github.com/baselabs/charter_agreement_protocol); no Elixir code
10
+ is included or required at runtime.
package/dist/index.js CHANGED
@@ -1,8 +1,12 @@
1
1
  // CAP never authorizes.
2
2
  //
3
- // The public surface of the independent TypeScript verifier: report over a
4
- // certified conformance corpus, canonical JSON, the strict I-JSON decoder,
5
- // and the self-check battery. Every verdict traces to corpus agreement with
6
- // the Elixir reference implementation, recomputed from raw bytes.
3
+ // The public surface of the independent TypeScript verifier: the corpus
4
+ // report machinery (canonical JSON, the strict I-JSON decoder, the
5
+ // self-check battery), artifact-level verification (descriptor, chain,
6
+ // acceptance, termination, receipt, full chain views), the governing/
7
+ // decode/ digest queries, the honest-signer refusal checks, and the pure
8
+ // producer surface (signing inputs per kind, assembly). Every verdict
9
+ // traces to corpus agreement with the Elixir reference implementation,
10
+ // recomputed from raw bytes.
7
11
  export { canonical, loadCorpus, reportFor, selfChecks, decodeJsonText, jsonProjection, } from "./core.js";
8
12
  export { CERTIFIED_INDEX_SHA256_BASE64URL, CERTIFIED_REGISTRY_DIGEST, algorithmRegistry, emissions, defaultEmissionName, encodeBase64url, taggedDigest, decodeArtifact, verifySignature, verifyDescriptor, verifyDescriptorChain, verifyAcceptance, verifyTermination, verifyChain, verifyReceipt, acceptanceRefusal, checkSigningClaims, terminationRefusal, descriptorSigningInput, receiptSigningInput, acceptanceSigningInput, terminationSigningInput, assembleCompact, governingRevision, decodeCharterRevision, revisionDigest, decodePartyDescriptor, descriptorDigest, } from "./core.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@charter-agreement-protocol/verifier",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Independent TypeScript verifier for the Charter Agreement Protocol (CAP) — byte-exact, offline re-verification of signed charter evidence. CAP verifies; it never authorizes.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -19,6 +19,7 @@
19
19
  },
20
20
  "files": [
21
21
  "dist",
22
+ "CHANGELOG.md",
22
23
  "conformance",
23
24
  "LICENSE",
24
25
  "NOTICE",