@humanagencyp/hap-core 0.8.2 → 0.8.3

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/dist/index.d.mts CHANGED
@@ -415,6 +415,28 @@ interface AgentProfile {
415
415
  * know why 0.5 exists. Absent → surfaces show the version alone.
416
416
  */
417
417
  whatsNew?: string;
418
+ /**
419
+ * Whether receipts under this profile may be looked up BY THEIR CONTENT — a
420
+ * verifier holding the content supplies its hash and learns which receipts
421
+ * bind it, without needing a receipt id.
422
+ *
423
+ * OFF unless declared, and that default is the point. The lookup is a
424
+ * confirmation oracle: given a guess at the content it says whether that
425
+ * content was authorized. Where the bound content has low entropy this is
426
+ * disclosure, not verification — guessing a message body is hopeless,
427
+ * guessing `production` takes a second. It is the same enumeration hazard
428
+ * recorded for per-field commitments, arriving from the other direction.
429
+ *
430
+ * Enable only when the bound content is unguessable enough that producing it
431
+ * is equivalent to already having it: prose, an artifact URL, a whole record
432
+ * payload. Never for a binding over a short value drawn from a small set.
433
+ *
434
+ * Why it must exist at all: most consequential actions cannot carry their
435
+ * receipt id. A released build was built before the receipt existed, a
436
+ * content-addressed artifact would change identity if the id were added, and
437
+ * a forwarded message has usually lost the footer that carried it.
438
+ */
439
+ receipt_lookup?: boolean;
418
440
  /**
419
441
  * v0.3 frame schema (deprecated, kept for backward compat).
420
442
  * Used when boundsSchema is not present.
package/dist/index.d.ts CHANGED
@@ -415,6 +415,28 @@ interface AgentProfile {
415
415
  * know why 0.5 exists. Absent → surfaces show the version alone.
416
416
  */
417
417
  whatsNew?: string;
418
+ /**
419
+ * Whether receipts under this profile may be looked up BY THEIR CONTENT — a
420
+ * verifier holding the content supplies its hash and learns which receipts
421
+ * bind it, without needing a receipt id.
422
+ *
423
+ * OFF unless declared, and that default is the point. The lookup is a
424
+ * confirmation oracle: given a guess at the content it says whether that
425
+ * content was authorized. Where the bound content has low entropy this is
426
+ * disclosure, not verification — guessing a message body is hopeless,
427
+ * guessing `production` takes a second. It is the same enumeration hazard
428
+ * recorded for per-field commitments, arriving from the other direction.
429
+ *
430
+ * Enable only when the bound content is unguessable enough that producing it
431
+ * is equivalent to already having it: prose, an artifact URL, a whole record
432
+ * payload. Never for a binding over a short value drawn from a small set.
433
+ *
434
+ * Why it must exist at all: most consequential actions cannot carry their
435
+ * receipt id. A released build was built before the receipt existed, a
436
+ * content-addressed artifact would change identity if the id were added, and
437
+ * a forwarded message has usually lost the footer that carried it.
438
+ */
439
+ receipt_lookup?: boolean;
418
440
  /**
419
441
  * v0.3 frame schema (deprecated, kept for backward compat).
420
442
  * Used when boundsSchema is not present.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humanagencyp/hap-core",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Core types, cryptographic primitives, and verification logic for the Human Agency Protocol",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/types.ts CHANGED
@@ -427,6 +427,29 @@ export interface AgentProfile {
427
427
  */
428
428
  whatsNew?: string;
429
429
 
430
+ /**
431
+ * Whether receipts under this profile may be looked up BY THEIR CONTENT — a
432
+ * verifier holding the content supplies its hash and learns which receipts
433
+ * bind it, without needing a receipt id.
434
+ *
435
+ * OFF unless declared, and that default is the point. The lookup is a
436
+ * confirmation oracle: given a guess at the content it says whether that
437
+ * content was authorized. Where the bound content has low entropy this is
438
+ * disclosure, not verification — guessing a message body is hopeless,
439
+ * guessing `production` takes a second. It is the same enumeration hazard
440
+ * recorded for per-field commitments, arriving from the other direction.
441
+ *
442
+ * Enable only when the bound content is unguessable enough that producing it
443
+ * is equivalent to already having it: prose, an artifact URL, a whole record
444
+ * payload. Never for a binding over a short value drawn from a small set.
445
+ *
446
+ * Why it must exist at all: most consequential actions cannot carry their
447
+ * receipt id. A released build was built before the receipt existed, a
448
+ * content-addressed artifact would change identity if the id were added, and
449
+ * a forwarded message has usually lost the footer that carried it.
450
+ */
451
+ receipt_lookup?: boolean;
452
+
430
453
  /**
431
454
  * v0.3 frame schema (deprecated, kept for backward compat).
432
455
  * Used when boundsSchema is not present.