Move every package to host 43 for Ziran's format 62

Ziran 0e91eb43 saves IR in format 62 and a host reads only its own
program format, so host_api, oldest_host_api and every package's and
node app's host_api move to 43; released hosts (2.1.62 and older) are
42 and are no longer offered packages built since.
This commit is contained in:
waozi committed 2026-11-07 15:04:04 -03:00
1 parent 724182c67a
commit 456ca38212
5 files changed
+22 -22

No files matched your search

+14 -14
View File
@@ -1,6 +1,6 @@
{
"host_api": 42,
"oldest_host_api": 41,
"host_api": 43,
"oldest_host_api": 43,
"package_format": "zx",
"module_api": 2,
"apps": {
@@ -9,7 +9,7 @@
"version": "2.1.64",
"sequence": 61,
"bundled": true,
"host_api": 42,
"host_api": 43,
"release": "2.1.63"
},
"habits": {
@@ -17,8 +17,8 @@
"version": "1.3.17",
"sequence": 40,
"bundled": true,
"host_api": 42,
"oldest_host_api": 41,
"host_api": 43,
"oldest_host_api": 43,
"release": "2.1.63"
},
"practices": {
@@ -26,8 +26,8 @@
"version": "1.6.11",
"sequence": 40,
"bundled": true,
"host_api": 41,
"oldest_host_api": 41,
"host_api": 43,
"oldest_host_api": 43,
"release": "2.1.63"
},
"lists": {
@@ -35,7 +35,7 @@
"version": "1.1.30",
"sequence": 38,
"bundled": true,
"host_api": 41,
"host_api": 43,
"release": "2.1.63"
},
"diary": {
@@ -43,7 +43,7 @@
"version": "1.3.27",
"sequence": 44,
"bundled": true,
"host_api": 41,
"host_api": 43,
"release": "2.1.63"
},
"lumi": {
@@ -51,7 +51,7 @@
"version": "1.5.29",
"sequence": 47,
"bundled": true,
"host_api": 42,
"host_api": 43,
"release": "2.1.63"
},
"leaderboard": {
@@ -59,9 +59,9 @@
"version": "1.0.31",
"sequence": 32,
"bundled": true,
"host_api": 41,
"host_api": 43,
"release": "2.1.63",
"oldest_host_api": 41
"oldest_host_api": 43
}
},
"node_apps": {
@@ -70,14 +70,14 @@
"title": "Library",
"version": "1.0.5",
"sequence": 6,
"host_api": 41
"host_api": 43
},
"radio": {
"id": "inbe.radio",
"title": "Radio",
"version": "1.0.4",
"sequence": 5,
"host_api": 41
"host_api": 43
}
}
}
+3 -3
View File
@@ -529,9 +529,9 @@ declares the oldest host interface it needs (`host_api` in its ledger entry),
and the host runs packages from `oldest_host_api` to its own `host_api`.
A host loads only programs in its own Ziran program format, so a toolchain whose
format changed is a new interface too: `oldest_host_api` and every package's
`host_api` rise above the last released host. Host 41 (2.1.61) is the
first with format 59; released apps up to 2.1.60 (host 40) cannot load
packages built since, and are not offered them.
`host_api` rise above the last released host. Host 43 is the first with
format 62; released apps up to 2.1.62 (host 42) cannot load packages built
since, and are not offered them.
A format bump publishes in this order, because a host only finds what the
node already serves for its interface and `make package-compat-test` needs
+2 -2
View File
@@ -1,5 +1,5 @@
// Generated from apps/versions.json. This host runs packages built for host
// interfaces from the oldest to the current one; module interfaces must match.
PackageHostAPI :: 42
PackageHostAPIOldest :: 41
PackageHostAPI :: 43
PackageHostAPIOldest :: 43
PackageModuleAPI :: 2
+2 -2
View File
@@ -20,8 +20,8 @@ PackageBundledSequence :: (index: s32) -> s32 {
// them; an older one gives way to the bundled copy.
PackageHostAPIOldestFor :: (index: s32) -> s32 {
if index < 0 || index >= 7 {
return 41
return 43
}
oldest: [7]s32 = .[41, 41, 41, 41, 41, 41, 41]
oldest: [7]s32 = .[43, 43, 43, 43, 43, 43, 43]
return oldest[index]
}
+1 -1
View File
@@ -104,7 +104,7 @@ Main :: () -> s32 {
arcade_art = json.loads(arcade_assets['assets/apps/catalog.json'])['art']['sha256'] + '.zx'
(fixture / 'embedded-releases.json').write_bytes(root_assets['assets/apps/bundled/releases.json'])
release = dict(app_id='inbe.fixture', sequence=2, version='2.0.0', runtime='kryon-app-v1',
host_api=41, module_api=2, data_schema=0, key_id='other', dependencies=[],
host_api=43, module_api=2, data_schema=0, key_id='other', dependencies=[],
artifacts=[dict(variant='module', sha256=hashlib.sha256(packed_root.read_bytes()).hexdigest(),
size=packed_root.stat().st_size)])
release['signature'] = key.sign(signing_message(release)).hex()