numeric_boundaries.v1.json (4741B)
1 { 2 "schema_version": 1, 3 "profile": "food_availability_profile", 4 "contract_version": "1.0.0", 5 "revision": "189c49b74b4bafc142b00b76b296477931139e72", 6 "provenance": "Synthetic reviewed boundary recipes from actual pinned FoodPublishedAt/FoodIdentifier constructors and unsigned Food codec; no signed events, keys, operator data or independent protocol policy.", 7 "vectors": [ 8 { 9 "id": "food_timestamp_zero_hcr014", 10 "kind": "timestamp", 11 "value": "0", 12 "expected": { 13 "native": { 14 "result": "rejected", 15 "code": "food_published_at_invalid" 16 }, 17 "typescript": { 18 "result": "rejected", 19 "code": "timestamp_invalid" 20 } 21 } 22 }, 23 { 24 "id": "food_timestamp_one_hcr014", 25 "kind": "timestamp", 26 "value": "1", 27 "expected": { 28 "native": { 29 "result": "accepted", 30 "timestamp": "1", 31 "encoded_published_at": "1" 32 }, 33 "typescript": { 34 "result": "accepted", 35 "timestamp": "1", 36 "encoded_published_at": "1" 37 } 38 } 39 }, 40 { 41 "id": "food_timestamp_safe_minus_one_hcr014", 42 "kind": "timestamp", 43 "value": "9007199254740990", 44 "expected": { 45 "native": { 46 "result": "accepted", 47 "timestamp": "9007199254740990", 48 "encoded_published_at": "9007199254740990" 49 }, 50 "typescript": { 51 "result": "accepted", 52 "timestamp": "9007199254740990", 53 "encoded_published_at": "9007199254740990" 54 } 55 } 56 }, 57 { 58 "id": "food_timestamp_safe_max_hcr014", 59 "kind": "timestamp", 60 "value": "9007199254740991", 61 "expected": { 62 "native": { 63 "result": "accepted", 64 "timestamp": "9007199254740991", 65 "encoded_published_at": "9007199254740991" 66 }, 67 "typescript": { 68 "result": "accepted", 69 "timestamp": "9007199254740991", 70 "encoded_published_at": "9007199254740991" 71 } 72 } 73 }, 74 { 75 "id": "food_timestamp_unsafe_first_hcr014", 76 "kind": "timestamp", 77 "value": "9007199254740992", 78 "expected": { 79 "native": { 80 "result": "accepted", 81 "timestamp": "9007199254740992", 82 "encoded_published_at": "9007199254740992" 83 }, 84 "typescript": { 85 "result": "unsupported", 86 "reason": "Canonical timestamp exceeds Number.MAX_SAFE_INTEGER; current JavaScript adapter must reject it without rounding." 87 } 88 } 89 }, 90 { 91 "id": "food_timestamp_unsafe_next_hcr014", 92 "kind": "timestamp", 93 "value": "9007199254740993", 94 "expected": { 95 "native": { 96 "result": "accepted", 97 "timestamp": "9007199254740993", 98 "encoded_published_at": "9007199254740993" 99 }, 100 "typescript": { 101 "result": "unsupported", 102 "reason": "Canonical timestamp exceeds Number.MAX_SAFE_INTEGER; current JavaScript adapter must reject it without rounding." 103 } 104 } 105 }, 106 { 107 "id": "food_timestamp_u64_max_hcr014", 108 "kind": "timestamp", 109 "value": "18446744073709551615", 110 "expected": { 111 "native": { 112 "result": "accepted", 113 "timestamp": "18446744073709551615", 114 "encoded_published_at": "18446744073709551615" 115 }, 116 "typescript": { 117 "result": "unsupported", 118 "reason": "Canonical timestamp exceeds Number.MAX_SAFE_INTEGER; current JavaScript adapter must reject it without rounding." 119 } 120 } 121 }, 122 { 123 "id": "food_timestamp_u64_overflow_hcr014", 124 "kind": "timestamp", 125 "value": "18446744073709551616", 126 "expected": { 127 "native": { 128 "result": "rejected", 129 "code": "food_published_at_invalid" 130 }, 131 "typescript": { 132 "result": "unsupported", 133 "reason": "Canonical timestamp exceeds Number.MAX_SAFE_INTEGER; current JavaScript adapter must reject it without rounding." 134 } 135 } 136 }, 137 { 138 "id": "food_raw_identifier_nfc_hcr014", 139 "kind": "identifier", 140 "value": "é", 141 "expected": { 142 "native": { 143 "result": "accepted", 144 "identifier": "é" 145 }, 146 "typescript": { 147 "result": "accepted", 148 "identifier": "é" 149 } 150 } 151 }, 152 { 153 "id": "food_raw_identifier_nfd_hcr014", 154 "kind": "identifier", 155 "value": "é", 156 "expected": { 157 "native": { 158 "result": "accepted", 159 "identifier": "é" 160 }, 161 "typescript": { 162 "result": "accepted", 163 "identifier": "é" 164 } 165 } 166 } 167 ] 168 }