capdag 1.439.69 → 1.457.27

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/capdag.js CHANGED
@@ -7100,9 +7100,10 @@ function unixSecondsNow() {
7100
7100
  }
7101
7101
 
7102
7102
  // Default protocol limits / version, mirroring capdag::bifaci::frame.
7103
- // Protocol 5: a cap may answer with one stream per declared output, each
7104
- // stream other than the main output's naming the output it is.
7105
- const BIFACI_PROTOCOL_VERSION = 5;
7103
+ // Protocol 6: the host tells its cartridges what they may do with a Policy
7104
+ // frame (15), after the handshake and on every change; version 5's streams
7105
+ // per declared output are kept.
7106
+ const BIFACI_PROTOCOL_VERSION = 6;
7106
7107
  const BIFACI_DEFAULT_MAX_FRAME = 3670016;
7107
7108
  const BIFACI_DEFAULT_MAX_CHUNK = 262144;
7108
7109
  const BIFACI_DEFAULT_MAX_REORDER_BUFFER = 64;
package/formal/index.d.ts CHANGED
@@ -54,6 +54,7 @@ export type FrameType =
54
54
  | { readonly kind: "cancel" }
55
55
  | { readonly kind: "credit" }
56
56
  | { readonly kind: "closeStream" }
57
+ | { readonly kind: "policy" }
57
58
  ;
58
59
  export function frameTypeType(): L.Type<FrameType>;
59
60
 
package/formal/index.js CHANGED
@@ -179,6 +179,9 @@ export function frameTypeType() {
179
179
  case "closeStream":
180
180
  w.u32(13);
181
181
  return;
182
+ case "policy":
183
+ w.u32(14);
184
+ return;
182
185
  default:
183
186
  throw new L.MalformedError(`${String(v.kind)} is not a constructor of CapDAG.Bifaci.Flow.FrameType`);
184
187
  }
@@ -200,6 +203,7 @@ export function frameTypeType() {
200
203
  case 11: return ({ kind: "cancel" });
201
204
  case 12: return ({ kind: "credit" });
202
205
  case 13: return ({ kind: "closeStream" });
206
+ case 14: return ({ kind: "policy" });
203
207
  default: throw new L.MalformedError(`constructor index ${c} of CapDAG.Bifaci.Flow.FrameType`);
204
208
  }
205
209
  },
@@ -1931,7 +1935,7 @@ export const ASSURANCE = L.parseAssurance({
1931
1935
  },
1932
1936
  "assumptions": [],
1933
1937
  "package": "capdagFormal",
1934
- "fingerprint": "3416fe0fb612031c735d28ffe3232cd7c421d38c6548589244d093cd4f96fe00",
1938
+ "fingerprint": "61f18f50e82168d95c4b84bca9e27b8c325d0c08ccfb48206e26e6c7f95593eb",
1935
1939
  "source": {
1936
1940
  "package": "capdagFormal",
1937
1941
  "file": "CapDAG/Bifaci/Laws/Flow.lean",
@@ -1941,7 +1945,7 @@ export const ASSURANCE = L.parseAssurance({
1941
1945
  },
1942
1946
  "end": {
1943
1947
  "line": 20,
1944
- "column": 34
1948
+ "column": 42
1945
1949
  }
1946
1950
  }
1947
1951
  },
@@ -1952,7 +1956,7 @@ export const ASSURANCE = L.parseAssurance({
1952
1956
  "CapDAG.Bifaci.Flow.FrameType.isFlow"
1953
1957
  ],
1954
1958
  "specifications": [],
1955
- "statement": "CapDAG.Bifaci.Flow.FrameType.credit.isFlow = false ∧\n CapDAG.Bifaci.Flow.FrameType.cancel.isFlow = false ∧ CapDAG.Bifaci.Flow.FrameType.closeStream.isFlow = false",
1959
+ "statement": "CapDAG.Bifaci.Flow.FrameType.credit.isFlow = false ∧\n CapDAG.Bifaci.Flow.FrameType.cancel.isFlow = false ∧\n CapDAG.Bifaci.Flow.FrameType.closeStream.isFlow = false ∧ CapDAG.Bifaci.Flow.FrameType.policy.isFlow = false",
1956
1960
  "status": "proved",
1957
1961
  "evidence_trust": {
1958
1962
  "axioms": [
@@ -1962,7 +1966,7 @@ export const ASSURANCE = L.parseAssurance({
1962
1966
  },
1963
1967
  "assumptions": [],
1964
1968
  "package": "capdagFormal",
1965
- "fingerprint": "255124cf9d730687b5d5961cbcba30fd20b13205582ee6f7f578163690ae0b93",
1969
+ "fingerprint": "db92a9763d6232bdba0d20b8d45dc4d308166d7208f91716cd7c36929024cebb",
1966
1970
  "source": {
1967
1971
  "package": "capdagFormal",
1968
1972
  "file": "CapDAG/Bifaci/Laws/Flow.lean",
@@ -1971,8 +1975,8 @@ export const ASSURANCE = L.parseAssurance({
1971
1975
  "column": 1
1972
1976
  },
1973
1977
  "end": {
1974
- "line": 31,
1975
- "column": 62
1978
+ "line": 32,
1979
+ "column": 23
1976
1980
  }
1977
1981
  }
1978
1982
  },
@@ -1999,11 +2003,11 @@ export const ASSURANCE = L.parseAssurance({
1999
2003
  "package": "capdagFormal",
2000
2004
  "file": "CapDAG/Bifaci/Laws/Flow.lean",
2001
2005
  "start": {
2002
- "line": 146,
2006
+ "line": 147,
2003
2007
  "column": 1
2004
2008
  },
2005
2009
  "end": {
2006
- "line": 178,
2010
+ "line": 179,
2007
2011
  "column": 93
2008
2012
  }
2009
2013
  }
@@ -2031,11 +2035,11 @@ export const ASSURANCE = L.parseAssurance({
2031
2035
  "package": "capdagFormal",
2032
2036
  "file": "CapDAG/Bifaci/Laws/Flow.lean",
2033
2037
  "start": {
2034
- "line": 210,
2038
+ "line": 211,
2035
2039
  "column": 1
2036
2040
  },
2037
2041
  "end": {
2038
- "line": 214,
2042
+ "line": 215,
2039
2043
  "column": 68
2040
2044
  }
2041
2045
  }
@@ -2063,11 +2067,11 @@ export const ASSURANCE = L.parseAssurance({
2063
2067
  "package": "capdagFormal",
2064
2068
  "file": "CapDAG/Bifaci/Laws/Flow.lean",
2065
2069
  "start": {
2066
- "line": 180,
2070
+ "line": 181,
2067
2071
  "column": 1
2068
2072
  },
2069
2073
  "end": {
2070
- "line": 208,
2074
+ "line": 209,
2071
2075
  "column": 30
2072
2076
  }
2073
2077
  }
@@ -2088,7 +2092,7 @@ export const ASSURANCE = L.parseAssurance({
2088
2092
  },
2089
2093
  "assumptions": [],
2090
2094
  "package": "capdagFormal",
2091
- "fingerprint": "28a0cb39df7eb4601607dc3356ec2ac304b0e7cccdc2348d0f58769d6c4d02fe",
2095
+ "fingerprint": "b7eaadade382a099eb2badc8986778e43d946a1ed9f3d38c60e28ec6a5546a8e",
2092
2096
  "source": {
2093
2097
  "package": "capdagFormal",
2094
2098
  "file": "CapDAG/Bifaci/Laws/Flow.lean",
@@ -2125,11 +2129,11 @@ export const ASSURANCE = L.parseAssurance({
2125
2129
  "package": "capdagFormal",
2126
2130
  "file": "CapDAG/Bifaci/Laws/Flow.lean",
2127
2131
  "start": {
2128
- "line": 128,
2132
+ "line": 129,
2129
2133
  "column": 1
2130
2134
  },
2131
2135
  "end": {
2132
- "line": 129,
2136
+ "line": 130,
2133
2137
  "column": 82
2134
2138
  }
2135
2139
  }
@@ -2157,11 +2161,11 @@ export const ASSURANCE = L.parseAssurance({
2157
2161
  "package": "capdagFormal",
2158
2162
  "file": "CapDAG/Bifaci/Laws/Flow.lean",
2159
2163
  "start": {
2160
- "line": 131,
2164
+ "line": 132,
2161
2165
  "column": 1
2162
2166
  },
2163
2167
  "end": {
2164
- "line": 144,
2168
+ "line": 145,
2165
2169
  "column": 80
2166
2170
  }
2167
2171
  }
@@ -2184,7 +2188,7 @@ export const ASSURANCE = L.parseAssurance({
2184
2188
  },
2185
2189
  "assumptions": [],
2186
2190
  "package": "capdagFormal",
2187
- "fingerprint": "2f52e6f54a4e3af769844029c62856c59571051eaf96a81781ceeebaaab61f73",
2191
+ "fingerprint": "805ee681f6d27c85a91f2d26eb1c0a5a34798539598ff7776fa926b91565950e",
2188
2192
  "source": {
2189
2193
  "package": "capdagFormal",
2190
2194
  "file": "CapDAG/Bifaci/Laws/Flow.lean",
@@ -3139,7 +3143,7 @@ export const ASSURANCE = L.parseAssurance({
3139
3143
  },
3140
3144
  "assumptions": [],
3141
3145
  "package": "capdagFormal",
3142
- "fingerprint": "118d27bff3424f936547e81b0d2047420fdff1bdf9e4d6195e5d613ee52c9c8c",
3146
+ "fingerprint": "95a3ffb1b53e6621e98ddfcbb183e3b8a43bfd2cef9f70fc0853b149e95b1917",
3143
3147
  "source": {
3144
3148
  "package": "capdagFormal",
3145
3149
  "file": "CapDAG/Bifaci/Laws/Request.lean",
@@ -3170,7 +3174,7 @@ export const ASSURANCE = L.parseAssurance({
3170
3174
  },
3171
3175
  "assumptions": [],
3172
3176
  "package": "capdagFormal",
3173
- "fingerprint": "bd8fc089e5bf29d23267081e971948e0cc54571b3a7e8f59b0ee141c0cf6e540",
3177
+ "fingerprint": "f5d8f79ec578577a5f9909b551c536edb73541737a27786c09be570cc2580c6f",
3174
3178
  "source": {
3175
3179
  "package": "capdagFormal",
3176
3180
  "file": "CapDAG/Bifaci/Laws/Request.lean",
@@ -3230,7 +3234,7 @@ export const ASSURANCE = L.parseAssurance({
3230
3234
  },
3231
3235
  "assumptions": [],
3232
3236
  "package": "capdagFormal",
3233
- "fingerprint": "e64d865ff161b892d4509d2714dfffc80a06e91b34e8df662f0dae3789c75abd",
3237
+ "fingerprint": "8763bce7d09446554ab3c970063b7d44865a05fdb4543ab7ee109030ffd9ef77",
3234
3238
  "source": {
3235
3239
  "package": "capdagFormal",
3236
3240
  "file": "CapDAG/Bifaci/Laws/Request.lean",
@@ -3292,7 +3296,7 @@ export const ASSURANCE = L.parseAssurance({
3292
3296
  },
3293
3297
  "assumptions": [],
3294
3298
  "package": "capdagFormal",
3295
- "fingerprint": "dc0cf212e47fde776cddf1e867ff47d20d463e6adeba6f7263bae80dab0da368",
3299
+ "fingerprint": "e97e9dec8f9f8d67167db078c37a10100a9d05e46590a2b8207d577062d6fbc5",
3296
3300
  "source": {
3297
3301
  "package": "capdagFormal",
3298
3302
  "file": "CapDAG/Bifaci/Laws/Request.lean",
@@ -3323,7 +3327,7 @@ export const ASSURANCE = L.parseAssurance({
3323
3327
  },
3324
3328
  "assumptions": [],
3325
3329
  "package": "capdagFormal",
3326
- "fingerprint": "dd44e9c397ddf1fe7e868527d78f78a43cb342fc297570770b38c0500b7f9d69",
3330
+ "fingerprint": "88f1922967746d705264fc5663d503d113f767257d9297de6b3aa54d6742d785",
3327
3331
  "source": {
3328
3332
  "package": "capdagFormal",
3329
3333
  "file": "CapDAG/Bifaci/Laws/Request.lean",
@@ -3385,7 +3389,7 @@ export const ASSURANCE = L.parseAssurance({
3385
3389
  },
3386
3390
  "assumptions": [],
3387
3391
  "package": "capdagFormal",
3388
- "fingerprint": "57ba5a4e9af824bca24c21b10644eaf8c55f074032e3a955b39bec7c65cda1d1",
3392
+ "fingerprint": "01c6277aba7bdacef12a2c61b7347dff4ff83b41b82c3a4d45e6b77df892d01c",
3389
3393
  "source": {
3390
3394
  "package": "capdagFormal",
3391
3395
  "file": "CapDAG/Bifaci/Laws/Request.lean",
@@ -3416,7 +3420,7 @@ export const ASSURANCE = L.parseAssurance({
3416
3420
  },
3417
3421
  "assumptions": [],
3418
3422
  "package": "capdagFormal",
3419
- "fingerprint": "b016e74db42af462982c9cdd358be7a18d2fd6eb56c357bd633694398ead5301",
3423
+ "fingerprint": "7e304b23dbbadfbfc5cbd3acd616ffee82569113296acaac81e653d88c438594",
3420
3424
  "source": {
3421
3425
  "package": "capdagFormal",
3422
3426
  "file": "CapDAG/Bifaci/Laws/Request.lean",
@@ -4929,12 +4933,12 @@ export const ASSURANCE = L.parseAssurance({
4929
4933
  "package": "capdagFormal",
4930
4934
  "file": "CapDAG/Bifaci/Flow.lean",
4931
4935
  "start": {
4932
- "line": 37,
4936
+ "line": 38,
4933
4937
  "column": 1
4934
4938
  },
4935
4939
  "end": {
4936
- "line": 52,
4937
- "column": 23
4940
+ "line": 54,
4941
+ "column": 18
4938
4942
  }
4939
4943
  }
4940
4944
  },
@@ -4962,11 +4966,11 @@ export const ASSURANCE = L.parseAssurance({
4962
4966
  "package": "capdagFormal",
4963
4967
  "file": "CapDAG/Bifaci/Flow.lean",
4964
4968
  "start": {
4965
- "line": 72,
4969
+ "line": 75,
4966
4970
  "column": 1
4967
4971
  },
4968
4972
  "end": {
4969
- "line": 76,
4973
+ "line": 79,
4970
4974
  "column": 14
4971
4975
  }
4972
4976
  }
@@ -4994,11 +4998,11 @@ export const ASSURANCE = L.parseAssurance({
4994
4998
  "package": "capdagFormal",
4995
4999
  "file": "CapDAG/Bifaci/Flow.lean",
4996
5000
  "start": {
4997
- "line": 78,
5001
+ "line": 81,
4998
5002
  "column": 1
4999
5003
  },
5000
5004
  "end": {
5001
- "line": 81,
5005
+ "line": 84,
5002
5006
  "column": 15
5003
5007
  }
5004
5008
  }
@@ -5027,11 +5031,11 @@ export const ASSURANCE = L.parseAssurance({
5027
5031
  "package": "capdagFormal",
5028
5032
  "file": "CapDAG/Bifaci/Flow.lean",
5029
5033
  "start": {
5030
- "line": 54,
5034
+ "line": 56,
5031
5035
  "column": 1
5032
5036
  },
5033
5037
  "end": {
5034
- "line": 70,
5038
+ "line": 73,
5035
5039
  "column": 14
5036
5040
  }
5037
5041
  }
@@ -5065,11 +5069,11 @@ export const ASSURANCE = L.parseAssurance({
5065
5069
  "package": "capdagFormal",
5066
5070
  "file": "CapDAG/Bifaci/Flow.lean",
5067
5071
  "start": {
5068
- "line": 124,
5072
+ "line": 127,
5069
5073
  "column": 1
5070
5074
  },
5071
5075
  "end": {
5072
- "line": 132,
5076
+ "line": 135,
5073
5077
  "column": 59
5074
5078
  }
5075
5079
  }
@@ -5095,11 +5099,11 @@ export const ASSURANCE = L.parseAssurance({
5095
5099
  "package": "capdagFormal",
5096
5100
  "file": "CapDAG/Bifaci/Flow.lean",
5097
5101
  "start": {
5098
- "line": 92,
5102
+ "line": 95,
5099
5103
  "column": 1
5100
5104
  },
5101
5105
  "end": {
5102
- "line": 93,
5106
+ "line": 96,
5103
5107
  "column": 39
5104
5108
  }
5105
5109
  }
@@ -6584,7 +6588,7 @@ export const leanTypes = Object.freeze({
6584
6588
  "CapDAG.Bifaci.Credit.Window": Object.freeze({ fingerprint: "28df89763b22214ef57dfd7f1a3c0da786ff78af9768fe453cd451870749b6fe", type: windowType }),
6585
6589
  "CapDAG.Bifaci.Credit.Arrival": Object.freeze({ fingerprint: "940f01cf50eb8b763b9f44cc84753fcdbc65fbc0f816ab279408e74208649797", type: creditArrivalType }),
6586
6590
  "CapDAG.Bifaci.Credit.Granted": Object.freeze({ fingerprint: "47f8d3e63e9aaf7c4b602f781afce57fc832e3d4d645c6adabd25c461abed233", type: grantedType }),
6587
- "CapDAG.Bifaci.Flow.FrameType": Object.freeze({ fingerprint: "3d6742b864aeb68cf6add586acfcd1a9663a3816d718f8d8aadc3c5e3dab3e2f", type: frameTypeType }),
6591
+ "CapDAG.Bifaci.Flow.FrameType": Object.freeze({ fingerprint: "ef92a191779a89ce9c1e60a09202ebd3d2de8fdf006f505bb4d1a8522287248e", type: frameTypeType }),
6588
6592
  "CapDAG.Bifaci.Flow.Reorder": Object.freeze({ fingerprint: "d1e8b655f24db5e8b2348d6d41084a5c454346eb0a81fcf11b671432e72291bf", type: reorderType }),
6589
6593
  "CapDAG.Bifaci.Flow.Accepted": Object.freeze({ fingerprint: "a821d7a044f52a71dfd932fff60d2f3560ce5197658283853a56fb54aa96b69b", type: acceptedType }),
6590
6594
  "CapDAG.Bifaci.Pools.State": Object.freeze({ fingerprint: "20f7299c188d09234cda39e9cc356242e2b5bc56a09cf819d12d7f50fa24989b", type: stateType }),
Binary file
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "dependencies": {
4
4
  "lungo-ts": "1.108.38",
5
5
  "peggy": "^5.1.0",
6
- "tagged-urn": "^1.137.33"
6
+ "tagged-urn": "^1.139.4"
7
7
  },
8
8
  "description": "JavaScript implementation of Cap URN (Capability Uniform Resource Names) with strict validation and matching",
9
9
  "engines": {
@@ -50,5 +50,5 @@
50
50
  "test": "node capdag.test.js && node machine.test.js"
51
51
  },
52
52
  "type": "module",
53
- "version": "1.439.69"
53
+ "version": "1.457.27"
54
54
  }