@amalgm/core 0.4.6 → 0.4.8-main.34168902443
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/PURPOSE.md +79 -6
- package/README.md +18 -5
- package/dist/identity/index.d.ts +1 -0
- package/dist/identity/index.d.ts.map +1 -1
- package/dist/identity/index.js +1 -0
- package/dist/identity/index.js.map +1 -1
- package/dist/identity/machine-setup.d.ts +27 -7
- package/dist/identity/machine-setup.d.ts.map +1 -1
- package/dist/identity/machine-setup.js +77 -25
- package/dist/identity/machine-setup.js.map +1 -1
- package/dist/identity/product-state.d.ts +4 -2
- package/dist/identity/product-state.d.ts.map +1 -1
- package/dist/identity/product-state.js +7 -2
- package/dist/identity/product-state.js.map +1 -1
- package/dist/identity/runtime-binding.d.ts +49 -0
- package/dist/identity/runtime-binding.d.ts.map +1 -0
- package/dist/identity/runtime-binding.js +161 -0
- package/dist/identity/runtime-binding.js.map +1 -0
- package/dist/identity/runtime-endpoints.d.ts +47 -0
- package/dist/identity/runtime-endpoints.d.ts.map +1 -0
- package/dist/identity/runtime-endpoints.js +92 -0
- package/dist/identity/runtime-endpoints.js.map +1 -0
- package/dist/supervision/index.d.ts +5 -2
- package/dist/supervision/index.d.ts.map +1 -1
- package/dist/supervision/index.js +5 -2
- package/dist/supervision/index.js.map +1 -1
- package/dist/supervision/installation-plan.d.ts +12 -0
- package/dist/supervision/installation-plan.d.ts.map +1 -1
- package/dist/supervision/installation-plan.js +18 -0
- package/dist/supervision/installation-plan.js.map +1 -1
- package/dist/supervision/managed-release.d.ts +75 -0
- package/dist/supervision/managed-release.d.ts.map +1 -0
- package/dist/supervision/managed-release.js +168 -0
- package/dist/supervision/managed-release.js.map +1 -0
- package/dist/supervision/managed-update.d.ts +95 -0
- package/dist/supervision/managed-update.d.ts.map +1 -0
- package/dist/supervision/managed-update.js +226 -0
- package/dist/supervision/managed-update.js.map +1 -0
- package/dist/supervision/update.d.ts +6 -4
- package/dist/supervision/update.d.ts.map +1 -1
- package/dist/supervision/update.js +6 -4
- package/dist/supervision/update.js.map +1 -1
- package/docs/managed-updates.md +126 -0
- package/package.json +29 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../src/supervision/update.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../src/supervision/update.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAS9D;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACzD,MAAM,CAAC,IAAI,GAAG,EAAE,EAAE,UAAU,GAAG,EAAE,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IACvD,MAAM,CAAC,KAAK,GAAG,GAAG,EAAE,KAAK,GAAG,GAAG,EAAE,KAAK,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAChE,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;QACzB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;QACzB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;QACzB,UAAU;KACX,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY,EAAE,KAAa;IAC3D,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK;QAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,CAAC,IAAI;QAAE,OAAO,CAAC,CAAC;IACpB,IAAI,CAAC,KAAK;QAAE,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,0BAA0B,GAAG,gCAAgC,CAAC;AAE3E;;;;;;;;;GASG;AACH,MAAM,UAAU,2BAA2B,CAAC,IAAuB;IACjE,IAAI,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IAC3B,IAAI,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC,MAAM,CAAC;IAEpC,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC9E,IAAI,cAAc,GAAG,CAAC,EAAE,CAAC;QACvB,OAAO,iBAAiB,cAAc,eAAe,cAAc,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IACzF,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/C,IAAI,SAAS,GAAG,CAAC,EAAE,CAAC;QAClB,OAAO,WAAW,SAAS,6BAA6B,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IACvF,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Managed runtime release and update contracts
|
|
2
|
+
|
|
3
|
+
## Purpose and scope
|
|
4
|
+
|
|
5
|
+
Keep main and preview current without routine user action, preserve durable work,
|
|
6
|
+
and make recovery predictable after a process death or reboot. Core supplies the
|
|
7
|
+
portable admission and decision rules. Shell's external installation owner must
|
|
8
|
+
supply actual TUF verification, native storage, process effects and product
|
|
9
|
+
examinations. These APIs are source candidates; no published Core release or
|
|
10
|
+
installed Shell currently consumes them.
|
|
11
|
+
|
|
12
|
+
`src/supervision/managed-release.ts` owns recipe admission and compatibility.
|
|
13
|
+
`src/supervision/managed-update.ts` owns the durable update transaction. The
|
|
14
|
+
historical `update.ts` exports remain additive compatibility APIs; their npm-tag,
|
|
15
|
+
global-install and environment opt-out behavior does not govern managed updates.
|
|
16
|
+
|
|
17
|
+
## Recipe laws
|
|
18
|
+
|
|
19
|
+
- The host first verifies `current.json` with the lane's standard TUF repository.
|
|
20
|
+
Core receives those exact bytes and their SHA-256. Parsing is not signature or
|
|
21
|
+
freshness verification, and a boolean claiming verification is not a trust root.
|
|
22
|
+
- A schema-1 runtime target names its lane, immutable sequence, controller
|
|
23
|
+
protocol, Node major, native platforms and dependency graph of process units.
|
|
24
|
+
Unknown schema fields fail admission. Protocol evolution uses an explicit new
|
|
25
|
+
schema or controller protocol, rather than interpreting unknown instructions.
|
|
26
|
+
- A process unit names one exact Amalgm archive, archive SHA-512, shrinkwrap
|
|
27
|
+
SHA-512 and owner/branch/commit. The public Shell unit uses `amalgm` from
|
|
28
|
+
`amalgm-inc/amalgm-shell`. The shrinkwrap binds its embedded package graph;
|
|
29
|
+
embedded SDK changes rebuild that process unit instead of mutating a running
|
|
30
|
+
import. The host checks the actual archive, shrinkwrap and source descriptors.
|
|
31
|
+
- Dependency protocols must match exactly and the graph must be acyclic. Each
|
|
32
|
+
declared writable store has one process-unit owner, a readable schema range
|
|
33
|
+
and a written schema within that range. Store identifiers are host-owned
|
|
34
|
+
resource bindings, never paths supplied by the release server.
|
|
35
|
+
- A signed sequence cannot rebind different bytes. Metadata renewal reuses the
|
|
36
|
+
same target. Local bindings and incompatible hosts fail before update effects.
|
|
37
|
+
Managed operation has no environment-variable opt-out.
|
|
38
|
+
|
|
39
|
+
The archive's signed recipe and native examination must agree with the unit's
|
|
40
|
+
actual executable, embedded graph and state contracts. Core's structural
|
|
41
|
+
admission cannot prove a product truthfully declared its migrations. A semantic
|
|
42
|
+
storage change that an old product cannot recover must advance the existing
|
|
43
|
+
store's schema; placing state in another file does not make rollback compatible.
|
|
44
|
+
|
|
45
|
+
## Durable host protocol
|
|
46
|
+
|
|
47
|
+
The host holds one OS-backed installation-owner lease throughout reconciliation.
|
|
48
|
+
It restores state with `restoreManagedUpdateState`, refuses corrupt records, and
|
|
49
|
+
atomically persists and fsyncs every new state before executing its effect.
|
|
50
|
+
Accepted target history, active/desired records, quarantine, generation counters,
|
|
51
|
+
phase, retry time, probation evidence and potentially live artifact slots all
|
|
52
|
+
survive restart. A missing record is initial installation, not permission to
|
|
53
|
+
forget a failed transaction. The host must distinguish missing from corrupt.
|
|
54
|
+
|
|
55
|
+
1. `desireManagedRuntimeRelease` admits a freshly TUF-verified target. An event
|
|
56
|
+
merely triggers that refresh. Subscribe before reading current on startup,
|
|
57
|
+
wake and reconnection. A newer target remains desired while an immutable
|
|
58
|
+
transaction completes; it cannot rewrite that transaction's candidate.
|
|
59
|
+
2. `beginManagedUpdate` persists staging intent for changed process units. All
|
|
60
|
+
other units retain their running generations. The host downloads exact bytes,
|
|
61
|
+
checks archive and shrinkwrap integrity, materializes an immutable slot and
|
|
62
|
+
runs isolated preflight without user credentials, writable state or work claims.
|
|
63
|
+
3. `managedUpdateEffect` returns a stable transaction/step/phase token. The host
|
|
64
|
+
makes each effect idempotent under that token. Replaying a start adopts the
|
|
65
|
+
same authenticated generation; it cannot spawn a second process. Persisted
|
|
66
|
+
state precedes effects, including process starts whose receipts could be lost.
|
|
67
|
+
4. The affected products stop admission and checkpoint. A non-resumable operation
|
|
68
|
+
may defer with a bounded public reason and next check within 60 seconds. The
|
|
69
|
+
healthy release continues running during staging and safe-point waiting.
|
|
70
|
+
5. Fencing confirms every affected writer at or below the named epoch has lost
|
|
71
|
+
its capability, then observes store schemas under that exclusive ownership.
|
|
72
|
+
A remembered PID, attempted signal or expired timeout is not fencing proof.
|
|
73
|
+
Stop dependants before providers and start providers before dependants, using
|
|
74
|
+
the recipe's dependency order. Removed units stay stopped.
|
|
75
|
+
6. Only after fencing may the host start the new epoch and let it open declared
|
|
76
|
+
state or claim work. A new store requires explicit zero/absent evidence; an
|
|
77
|
+
existing store cannot silently disappear. The host returns generation-bound
|
|
78
|
+
health evidence throughout a 60-second observation window. A long observation
|
|
79
|
+
gap starts a new window; elapsed controller downtime is not healthy evidence.
|
|
80
|
+
7. Successful probation commits the candidate as active. A newer desired target
|
|
81
|
+
then reconciles automatically. Cache collection retains active, desired,
|
|
82
|
+
transaction/recovery and possibly live slots until fencing proves them unused.
|
|
83
|
+
|
|
84
|
+
Safe-point wait and service interruption are separate measurements. The portable
|
|
85
|
+
policy supplies durations but does not certify throughput, exactly-once external
|
|
86
|
+
effects, native process lifetime or the host's fsync/rename behavior.
|
|
87
|
+
|
|
88
|
+
## Failure and recovery
|
|
89
|
+
|
|
90
|
+
Transient staging failures retry with durable exponential delay capped at one
|
|
91
|
+
minute while the active release remains healthy. A deterministic preflight
|
|
92
|
+
failure quarantines that target. A writer or fence operation with an uncertain
|
|
93
|
+
outcome enters recovery; the host cannot relabel it a transient retry.
|
|
94
|
+
|
|
95
|
+
Recovery first fences the entire affected cohort, including old and candidate
|
|
96
|
+
epochs, then checks the store schemas actually present. If the previous release
|
|
97
|
+
can read them, recovery starts it under a fresh epoch and runs probation. If it
|
|
98
|
+
cannot, or recovery itself fails, the affected update remains parked with its
|
|
99
|
+
reason and possibly live slots retained. No unsafe rollback or restart loop is
|
|
100
|
+
inferred from a version number. Unrelated units retain their generations.
|
|
101
|
+
|
|
102
|
+
A newer verified release can recover a parked cohort automatically. Its fence
|
|
103
|
+
covers every previous attempted epoch, and its recipe must read the observed
|
|
104
|
+
state before starting. Failure evidence and uncertain artifact slots survive
|
|
105
|
+
that attempt, even if its staging fails. A new release is an explicit authority
|
|
106
|
+
decision; rebooting cannot retry the quarantined target.
|
|
107
|
+
|
|
108
|
+
All host error reasons must pass the existing diagnostic redaction boundary
|
|
109
|
+
before becoming public update state. These contracts never supply credentials,
|
|
110
|
+
filesystem paths, shell strings or process stop capabilities to a release target.
|
|
111
|
+
|
|
112
|
+
## Examinations and remaining integration
|
|
113
|
+
|
|
114
|
+
`tests/supervision/managed-update.test.js` generates graph sizes and permutations,
|
|
115
|
+
checks both lanes and all declared host platforms, rejects cross-lane/replay and
|
|
116
|
+
malformed recipes, and models every handover/recovery phase through durable
|
|
117
|
+
restart. It examines missing or migrated stores, safe-point deferral, staging
|
|
118
|
+
backoff, interrupted probation, parked roll-forward, stale receipts and retained
|
|
119
|
+
possibly live slots. An independent writer model replays effects across both
|
|
120
|
+
sides of persistence and checks unchanged process units retain their generations.
|
|
121
|
+
|
|
122
|
+
This is portable policy proof. The production host must still use the public
|
|
123
|
+
Core API from an actually published, gated release and prove real TUF client,
|
|
124
|
+
artifact staging, native launcher, authenticated fencing, product checkpoints,
|
|
125
|
+
store inspection and packaged old-to-new activation on every supported OS.
|
|
126
|
+
Local packed consumer proof does not replace that native release gate.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amalgm/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8-main.34168902443",
|
|
4
4
|
"description": "The Amalgm kernel SDK — identity, transport, supervision, and host capability contracts behind host-injected adapters.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -55,12 +55,17 @@
|
|
|
55
55
|
"./adapters": {
|
|
56
56
|
"types": "./dist/adapters/index.d.ts",
|
|
57
57
|
"default": "./dist/adapters/index.js"
|
|
58
|
+
},
|
|
59
|
+
"./binding": {
|
|
60
|
+
"types": "./dist/identity/runtime-binding.d.ts",
|
|
61
|
+
"default": "./dist/identity/runtime-binding.js"
|
|
58
62
|
}
|
|
59
63
|
},
|
|
60
64
|
"files": [
|
|
61
65
|
"dist",
|
|
62
66
|
"PURPOSE.md",
|
|
63
|
-
"docs/authorization.md"
|
|
67
|
+
"docs/authorization.md",
|
|
68
|
+
"docs/managed-updates.md"
|
|
64
69
|
],
|
|
65
70
|
"engines": {
|
|
66
71
|
"node": ">=18"
|
|
@@ -71,9 +76,30 @@
|
|
|
71
76
|
"prepack": "npm run build",
|
|
72
77
|
"test": "npm run build && node --test",
|
|
73
78
|
"examine:machine-setup": "npm run build && node --test tests/supervision/installation-plan.test.js tests/machine-setup/examination.test.js",
|
|
74
|
-
"examine:user-ground": "npm run build && npm --prefix ../amalgm-live run build && node --test examinations/user-ground/login.examination.mjs"
|
|
79
|
+
"examine:user-ground": "npm run build && npm --prefix ../amalgm-live run build && node --test examinations/user-ground/login.examination.mjs",
|
|
80
|
+
"release:admit": "node scripts/release/package.mjs admit",
|
|
81
|
+
"release:prepare": "node scripts/release/package.mjs prepare",
|
|
82
|
+
"release:examine": "node scripts/release/package.mjs examine",
|
|
83
|
+
"release:publish": "node scripts/release/package.mjs publish",
|
|
84
|
+
"test:release": "node --test scripts/release/*.test.mjs"
|
|
75
85
|
},
|
|
76
86
|
"devDependencies": {
|
|
77
87
|
"typescript": "^5.7.3"
|
|
88
|
+
},
|
|
89
|
+
"amalgmRelease": {
|
|
90
|
+
"schema": 1,
|
|
91
|
+
"workflow": "verify.yml",
|
|
92
|
+
"jobs": [
|
|
93
|
+
"verify"
|
|
94
|
+
],
|
|
95
|
+
"verify": "test",
|
|
96
|
+
"cli": []
|
|
97
|
+
},
|
|
98
|
+
"gitHead": "80005a0eacf6d3814e4c41d917be00594afbeba4",
|
|
99
|
+
"amalgmSource": {
|
|
100
|
+
"repository": "amalgm-inc/amalgm-core",
|
|
101
|
+
"branch": "main",
|
|
102
|
+
"commit": "80005a0eacf6d3814e4c41d917be00594afbeba4",
|
|
103
|
+
"occurrence": "34168902443"
|
|
78
104
|
}
|
|
79
105
|
}
|