Files
PerishFire 8ab7c3d5f1 feat(standalone): establish the exact lifecycle and Terminal carrier (#7716)
* feat(standalone): add shell-neutral exact lifecycle

* feat(terminal): add native exact cold-start carrier

* test(terminal): exercise mutable exact channel heads

* feat(standalone): model synced blobs and Shell updates

* feat(terminal): exercise the complete Shell lifecycle

* feat(release): add the independent exact Terminal line

* test(exact): run the full local Terminal release line

* feat(terminal): harden exact Sidecar lifecycle

* feat(standalone): prove exact update transactions

* refactor(standalone): separate shell lifecycle dimensions

* refactor(e2e): decouple terminal exact drivers

* refactor(terminal): isolate exact sidecar fixture host

* feat(terminal): gate handoff on physical retirement

* refactor(release): gate exact activation on public acceptance

* test(terminal): formalize guarded lifecycle algebra

* fix(terminal): guard shell installer handoff

* feat(terminal): add exact bootloader handoff

* feat(terminal): integrate exact sidecar lifecycle

* refactor(exact): rename validation channels

* test(terminal): harden exact release acceptance

* fix(postinstall): build standalone dependencies first

Generated-By: looper 0.11.2 (runner=fixer, agent=codex)

* fix(ci): build the native Terminal scene

Generated-By: looper 0.11.2 (runner=fixer, agent=codex)

* test(ci): cover exact convergence handoff routing

Generated-By: looper 0.11.2 (runner=fixer, agent=codex)

* fix(exact): isolate terminal validation from main CI

* fix(terminal): complete shell update confirmation

Generated-By: looper 0.11.2 (runner=fixer, agent=codex)

* fix(exact): bind acceptance to installed manifest

Generated-By: looper 0.11.2 (runner=fixer, agent=codex)

* fix(standalone): block occupied shell installs

Generated-By: looper 0.11.2 (runner=fixer, agent=codex)

---------

Co-authored-by: Looper <looper@noreply.github.com>
2026-09-03 03:50:34 +00:00

62 lines
2.2 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://nexu.io/contracts/terminal/instance-lifecycle-v1.schema.json",
"title": "Shared Shell instance lifecycle v1",
"type": "object",
"additionalProperties": false,
"required": ["scope", "state", "generationId", "instanceId", "references", "occupants", "fence", "lease"],
"properties": {
"scope": {
"type": "object",
"additionalProperties": false,
"required": ["channel", "namespace"],
"properties": {
"channel": {"type": "string", "pattern": "^[a-z0-9]{1,12}$", "not": {"const": "local"}},
"namespace": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"}
}
},
"state": {"enum": ["running", "stopped"]},
"generationId": {"type": ["string", "null"], "pattern": "^[a-f0-9]{64}$"},
"instanceId": {"type": ["string", "null"], "pattern": "^[A-Za-z0-9._-]{1,128}$"},
"references": {"type": "integer", "minimum": 0},
"occupants": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["attachmentId", "generationId", "shell"],
"properties": {
"attachmentId": {"type": "string"},
"generationId": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
"shell": {
"type": "object",
"additionalProperties": false,
"required": ["type", "version", "buildHash", "digest"],
"properties": {
"type": {"type": "string"},
"version": {"type": "string"},
"buildHash": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
"digest": {"type": "string", "pattern": "^[a-f0-9]{64}$"}
}
}
}
}
},
"fence": {"type": "integer", "minimum": 0},
"lease": {
"oneOf": [
{"type": "null"},
{
"type": "object",
"additionalProperties": false,
"required": ["heartbeatIntervalMs", "expiresAt"],
"properties": {
"heartbeatIntervalMs": {"type": "integer", "minimum": 1000},
"expiresAt": {"type": "string", "format": "date-time"}
}
}
]
}
}
}