@integraledger/lcp-placement-visa-tap 0.10.1 → 0.12.0

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 CHANGED
@@ -1,5 +1,70 @@
1
1
  # @integraledger/lcp-placement-visa-tap
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @integraledger/lcp-binding-core@0.12.0
8
+
9
+ ## 0.11.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 822190a: Give the terms URL the write path the published set never had, and certify the composition that broke
14
+ without it (integra-protocol#8).
15
+
16
+ A third party assembling a seller from published parts emitted a 402 the published buyer refuses: every
17
+ published reader demanded `legalContextUrl` and no published writer placed it, and the schema
18
+ `placement-x402` inlined onto the wire (`required: ["type","value"]`, closed) contradicted the authority
19
+ document integraledger.com serves (`required: ["type","value","legalContextUrl"]`, closed) — two
20
+ definitions of one `info`, no document valid against both, each package self-consistent. Three structural
21
+ gaps let it ship: the manifest's `termsUrlField` was singular and read-only (declared, hygiene-checked,
22
+ never written — and x402's wire carries the URL in two slots, so one path could not even name the shape),
23
+ nothing compared the inlined schema to the authority document, and the corpus certified `place` and
24
+ `extract` separately but never fed one to the other.
25
+
26
+ `binding-core` — the placement seam now moves an ADVERTISEMENT, not a bare reference. `place` takes
27
+ `{ ref, termsUrl? }` and writes the URL at every slot the manifest's new `termsUrlFields` (plural,
28
+ replacing `termsUrlField`) declares; it REFUSES an integrity-bearing advertisement with no URL where slots
29
+ are declared (a hash no counterparty can resolve is unverifiable by construction), a URL where no slot
30
+ exists (silent dropping is fail-open), and a non-https URL on either side of the seam. `extract` returns
31
+ `{ ref, termsUrl }` with absence as a typed value — `no-field-declared` is a fact about the protocol,
32
+ `declared-fields-empty` a fact about the document, and the gate decides what an absence means — while two
33
+ slots that disagree, or a malformed value in either, refuse. The object-path writer learned to descend
34
+ into an EXISTING array element (never minting one, never extending a list, refusing an index segment it
35
+ would have to create), which is what lets x402's `accepts[0].extra` mirrors land.
36
+
37
+ `placement-x402` — the inlined wire schema now IS the authority document minus `$id` and `$defs`
38
+ (Bazaar forbids both on the wire), drift-gated in `lcp-conformance` where the two packages meet.
39
+ `termsUrlFields` declares both slots the wire carries; the bare-hash alias is written (`extra` stopped
40
+ being wholly scheme-private when x402 §6.1 reserved names inside it, and LCP v1.38 §C.4's own Tier A
41
+ illustration carries the pair there); the `url` carrier admission is withdrawn (`carrierTypes` is
42
+ `sha256` alone — the schema on the wire is `const: "sha256"`, and no shipped reader ever accepted a url
43
+ in this slot). The `place` override shrinks to composition: the kit performs the whole placement and the
44
+ override adds only the `{info, schema}` wrapper.
45
+
46
+ `placement-mpp` / `placement-acp` — the singular member becomes the one-entry `termsUrlFields`; the kit
47
+ now writes the slot their buyer parsers always demanded and refuses first at the seller.
48
+
49
+ `lcp-conformance` — the corpus grows 812 → 844: a `roundtrip` op (place then extract in one case, the
50
+ composition certification whose absence let two separately-conformant halves ship jointly broken),
51
+ advertisement-rule refusals for every manifest, and the authority↔wire drift gate. Extract expectations
52
+ across every placement area become the extracted advertisement.
53
+
54
+ `lcp-verify` — `referencePlacementStep` reads the advertisement (`extracted.ref.value`) and deliberately
55
+ ignores `termsUrl`: where the terms live is the gate's fetch concern, not a fact the record can
56
+ contradict.
57
+
58
+ `lcp-discovery` — the x402 authority document restates the atrHash pattern inline in both definitions
59
+ (no `$defs` indirection the wire copy would have to rewrite) and moves the two-definitions rationale into
60
+ `$defs.receipt`, so the challenge-time root is byte-derivable for the wire.
61
+
62
+ ### Patch Changes
63
+
64
+ - Updated dependencies [b2ffecc]
65
+ - Updated dependencies [822190a]
66
+ - @integraledger/lcp-binding-core@0.11.0
67
+
3
68
  ## 0.10.1
4
69
 
5
70
  **0.10.0 was staged and withdrawn before approval; this is that release, re-cut.** The conformance corpus
package/README.md CHANGED
@@ -28,7 +28,7 @@ import { VISA_TAP_PLACEMENT, visaTapPlacement } from "@integraledger/lcp-placeme
28
28
 
29
29
  declare const request: { headers: Record<string, string> }; // the TAP request, as received
30
30
 
31
- const placed = visaTapPlacement.place({ type: "sha256", value: "0x…" }, { headers: {} });
31
+ const placed = visaTapPlacement.place({ ref: { type: "sha256", value: "0x…" } }, { headers: {} });
32
32
  const ref = visaTapPlacement.extract(request);
33
33
  ```
34
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integraledger/lcp-placement-visa-tap",
3
- "version": "0.10.1",
3
+ "version": "0.12.0",
4
4
  "description": "Places an LCP reference into a Visa TAP request. The header sits outside TAP's signature.",
5
5
  "keywords": [
6
6
  "lcp",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "homepage": "https://github.com/IntegraLedger/integra-protocol/tree/main/packages/placement-visa-tap#readme",
43
43
  "dependencies": {
44
- "@integraledger/lcp-binding-core": "0.10.1"
44
+ "@integraledger/lcp-binding-core": "0.12.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@cfworker/json-schema": "4.1.1",