Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ is inventory/provenance, not profile-branch delivery. Recovery proceeds forward;
legacy-installation rollback is not required. See the migration contract for boundaries.

Product updates have a separate failure contract: prepare beside the active version;
failed preparation preserves the existing usable product and working data. For the
controlled pilot, clear diagnosis and an explicit bounded repair/retry procedure are
required, not general automatic recovery from every interruption or expired transcript.
Repair must preserve accepted trust and cannot reset metadata or bypass signatures.
See [pilot repair](docs/pilot-repair.md). One-way Folder migration does not weaken this
failed preparation preserves the existing usable product and working data; an
interrupted activation is reconciled by the next command from what is on disk. A
release is accepted only with a verified attestation of the exact-tag release
workflow and never below the durable version floor; nothing bypasses that check.
See [product update](docs/update.md) and decision F13. One-way Folder migration does not weaken this
product-update preservation requirement.

This preparation does not rewrite legacy apps, migrate current hosts, implement
Expand All @@ -79,7 +79,8 @@ Platform release. The local `lazurio` CLI and operator own Environment setup and
updates afterwards; Machines is not a second Organization/module reconciler.
The current increment is **foundation + Folder handover pilot, not Environment
installation**. Machines must not remove its resident layer on that basis.
Organization materialization, tools/sign-ins, the real release channel and gateway
Organization materialization, tools/sign-ins, the first real GitHub Release through the
product update path and gateway
integration remain separate qualification gates. Organization conversion remains an
experimental preview until consumer/rollout qualification. The existing Core schema
is already authoritative; see [contract convergence](docs/organization-contract.md)
Expand All @@ -88,7 +89,7 @@ The [tool and sign-in proposal](docs/environment-tools.md) separates explicit lo
preparation from operator-owned provider authentication; it does not claim either is implemented.

The nearest controlled pilot is one private canary VM, delivered by Machines, through
the real release channel, with one agreed preset/Organization/module, a real agent
a real GitHub Release, with one agreed preset/Organization/module, a real agent
task and a repeated infrastructure apply that preserves identity, content and the
selected version; the team preset follows. The ordered work is the
[nearest-pilot sequence](docs/acceptance.md#nearest-pilot-sequence). Personal migration,
Expand Down
27 changes: 14 additions & 13 deletions docs/acceptance.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ implemented by the document that records it.
2. **OS-owned applications on Linux.** Service-manager ownership with CLI/Launchpad
parity, concurrent operations, dependency exclusion and application survival across
a Launchpad restart ([module adoption](module-adoption.md#application-lifetime--accepted-direction-not-implemented)).
3. **Durable update check.** Trust and availability state that survives interruption
(product update contract, `docs/update.md`, separate PR).
4. **Publisher and release workflow.** The real channel produced by the real workflow.
3. **Verified update check.** Attestation verification, the version floor and the
availability cache ([product update contract](update.md)).
4. **Release workflow.** A real GitHub Release produced and attested by the real workflow.
5. **Activation, rollback and the Launchpad update pill.** Two real versions, candidate
failure, reboot, concurrent requests and an update while applications are in use.
6. **Hosted entry adapter.** Unauthenticated denial, authenticated access, WebSockets,
unknown hosts and module links ([hosted entry](hosted-entry.md)).
7. **Materialization and content synchronization.** One real Organization and one
standard module through explicit clone, prepare, start, functional check and stop
([content synchronization](content-sync.md)).
8. **One private canary VM** through the real channel, with explicit tool and sign-in
8. **One private canary VM** through a real GitHub Release, with explicit tool and sign-in
preparation, a real agent task and a **repeated infrastructure apply that preserves
identity, content and the selected version**. VM restart, failed-update preservation
and the repeat on a second approved VM from the 2026-09-16 note remain required
Expand Down Expand Up @@ -60,19 +60,19 @@ apply/restart or access mandate.
| Slice | Prerequisite | Smallest real consumer and exit criterion |
| --- | --- | --- |
| 0 — Foundation review | Product intent and repository routing | Public architecture, explicit decision amendments, stack comparison, working standalone proof, independent review |
| 1a — Distribution decisions | Reviewed foundation and accepted stack | Distribution owner proposes and obtains acceptance of concrete bootstrap trust, hosting, signing/rotation, channel authorization, retention, platform support and installer layout contracts; record signed/tampered/offline behavior and test strategy |
| 1b — Distribution implementation | Accepted slice 1a contracts | Clean machine runs full installed CLI + Launchpad without source; signed/tampered/offline artifact cases and artifact secret scan |
| 1a — Distribution decisions | Reviewed foundation and accepted stack | **Accepted as decision F13 and the [product update contract](update.md):** HTTPS bootstrap, GitHub Releases as the only origin, Sigstore attestation of the exact-tag release workflow, a durable version floor, two retained versions, the narrow target list and the per-user layout. There are no product-held signing keys and no channels. Still open here: OS publisher signing (Apple Developer ID, notarization, Windows) before public release |
| 1b — Distribution implementation | Accepted slice 1a contracts | Clean machine runs full installed CLI + Launchpad without source; the evidence list of the product update contract (attested, tampered, wrong-identity, below-floor and offline cases, the native activation journey, one real release candidate) and artifact secret scan |
| 2 — Environment generation | Slice 1 and ownership/schema contract | Folder Factory produces only owned Lazurio Folder files through the shared CLI/Launchpad core; the shared core applies locally through CLI or Launchpad, starts full app; unknown/edited paths preserved; rollback drill |
| 3 — Profile capability | Slice 2 and accepted behavior schema | CLI and Launchpad use the same profile use case; deterministic generation, stale revision refusal, session pin/restart and upgrade preservation |
| 4 — Environment purposes | Slices 2–3 and the validated hosted presets | Private human, team, Buddy and AI Colleague acceptance with correct Principal or Team attribution, Owner, custody and unavailable-capability behavior |
| 5 — Migration rehearsal | Relevant slices 1–4, legacy compatibility and restore mapping | Faithful dirty legacy source-working fixtures plus legacy shared-workshop convergence to a private or team workspace prove preservation, interrupted recovery and no-op unknown state |
| 6 — Opt-in cohorts | Qualified consumer slices; rehearsal and explicit migration approval for migrating cohorts | Small native cohort on each supported OS, user completion evidence, observation and recovery; halt on data loss/identity ambiguity |
| 7 — General availability and retirement | Successful cohorts, public release approval | Published support matrix and release provenance; legacy install/update paths retired by declared criteria, backups retained by policy |

Slice 1 includes decision work, not only coding. The foundation does not claim those
mechanisms are already selected. Acceptance of this foundation permits developing
the concrete distribution proposal, not shipping an installer with invented trust
roots. Slice 1 is complete only when both 1a and 1b pass; the owning distribution
Slice 1 included decision work, not only coding. Its trust, hosting and update
decisions are now selected (F13); what remains of 1a is OS publisher signing.
Nothing here permits shipping an installer with invented trust roots: the only
trust inputs are the ones the contract names. Slice 1 is complete only when both 1a and 1b pass; the owning distribution
plan must record that ordering before implementation starts. Build/proof experiments
without installation remain useful evidence but do not bypass 1a.

Expand All @@ -87,11 +87,12 @@ boundaries and keep the proof's evidence labels accurate.

Unsigned fixture evidence cannot complete public-release slices 1–3, qualify a public installer,
authorize daily-Machine activation or waive any native platform/harness gate. Installer
trust decisions in 1a remain prerequisites for installer implementation; certificate
availability is not a prerequisite for unrelated core or generation tests.
trust decisions in 1a (F13) are prerequisites for installer implementation and are
accepted; OS publisher certificate availability is not a prerequisite for the
controlled pilot or for unrelated core or generation tests.

The Principal explicitly permits a controlled internal pilot with HTTPS initial
bootstrap and subsequent TUF verification before Apple Developer ID, notarization
bootstrap and subsequent release attestation verification before Apple Developer ID, notarization
and Windows publisher signing are available. Record that limitation in pilot evidence.
Do not disable OS protections, waive integrity/recovery tests or infer public release
readiness. Later OS signing changes artifact bytes: qualify those final signed artifacts
Expand Down
51 changes: 48 additions & 3 deletions docs/decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ strict TypeScript with pinned Bun tooling. Distribute a standalone executable co
its required runtime; users do not need a separately installed Bun, Node or npm. First
installation starts with a terminal command and a thin bootstrap that verifies and
installs Lazurio; environment setup belongs to the shared core. HTTPS delivery from
the official source followed by TUF verification is accepted. A controlled internal
the official source followed by verification of the release attestation is accepted
(F13; this replaces the earlier selection of TUF). A controlled internal
pilot may precede Apple Developer ID, notarization and Windows publisher signing;
these remain mandatory before public release. Remaining technical details are delegated
to the implementer to specify and verify, without disabling OS protections.
Expand Down Expand Up @@ -232,7 +233,7 @@ lockfile, toolchain pin, target, artifact digest and signed release metadata. A
alone detects corruption but does not authenticate its publisher. Trust bootstrap,
signing-key rotation, rollback retention and Windows/macOS distribution signing
must be implemented and exercised before public release. The controlled pilot exception
above defers OS publisher signing only, not TUF verification, preservation or recovery.
above defers OS publisher signing only, not release verification, preservation or recovery.
No keys or workflows
are created by this draft.

Expand All @@ -249,7 +250,7 @@ semantics, trust mechanism and automatic update detection remain implementation
| License/IP and product release | Authorized repository/IP owner | Reused-source inventory, license disposition, explicit product-release instruction; repository visibility is already public by request |
| Native supported platform floor | Lazurio Platform maintainer | Native OS/CPU/ABI tests; build success alone insufficient |
| Hosting envelope for private and team workspaces | Infrastructure owner | Isolation and identity smoke per kind, brokered attribution and revocation on the team kind, recovery plan; legacy shared workshops converge to one of the two kinds |
| Release signing and recovery | Distribution owner | Verified candidate, tamper denial, key rotation drill and offline restore |
| Release trust and recovery | Distribution owner | One real release candidate verified by a compiled client, tamper and wrong-identity denial, protected tag and release environment in place (F13) |
| Coordinator capability | Harness integration owner | Actual delegated and unavailable-tool scenarios, not generated text assertions |

Function labels describe required responsibility, not granted permissions. Concrete
Expand Down Expand Up @@ -489,3 +490,47 @@ general-availability target; the canary path is narrower and says so. Internal u
analytics, marketplace, hosted advice, legacy personal migration and generic remote
reconciliation are outside the canary path. Analytics stays default-off and
consent-bound per [profile evidence](profile-evidence.md) and can never block an update.

## F13 — Release trust is GitHub artifact attestation

**Accepted direction (2026-09-19), not implemented.** A product release is a GitHub
Release of the public repository `Lazurio/LazurioPlatform`, built by one protected
tag-driven workflow and carrying a Sigstore attestation (`actions/attest`) over its
manifest and every binary. The installed product verifies that attestation with the
maintained `sigstore` library against the workflow identity of the exact tag, the
repository and owner IDs and the source commit, and never goes below a durable
version floor on any network path. The contract is [product update](update.md). This replaces the earlier
selection of TUF.

Motivation: the Principal asked for proven practice instead of our own machinery.
The TUF path was secure on paper, but the maintained JavaScript client does not
persist what it verifies, so the product had grown its own role promotion, floor
vector, link rules, a four-key publisher, a metadata tree on a second origin with a
daily refresh job, and a key ceremony — several thousand lines whose every review
round found another gap. None of it had a second consumer.

| Alternative | Trade-off / disposition |
| --- | --- |
| Keep TUF and finish the persistence layer around `tuf-js` | Strongest freeze and key-compromise model; we own a security-critical client layer and a publisher nobody else maintains; operating cost (keys, refresh, two origins) from day one; rejected for this product stage |
| Own signed manifest (offline root key signs an online release key, Tailscale `distsign` style) | Small and independent of GitHub and Sigstore; still our own protocol, keys and rotation drill; kept as the fallback if attestation proves unworkable |
| HTTPS and a checksum only (what most self-updating CLIs ship) | Simplest; a digest does not authenticate its publisher; rejected |
| GitHub Releases with Sigstore attestation | No keys, no ceremony, no second origin, maintained verifier and signer; selected |

Knowingly accepted: no expiring freshness metadata (an attacker holding both the
network and a valid `github.com` certificate can hold a client on its current
version, never lower, visible only as an ageing last check); GitHub Actions OIDC and
Sigstore's certificate authority, transparency log and trust root are cryptographic
dependencies outside Lazurio's control; authorization rests on the governance of the
repository, so the tag
ruleset, the protected `release` environment with a required reviewer, immutable
releases and commit-pinned actions are part of the mechanism, not hygiene; update
availability depends on Sigstore's trust root being reachable on a cold cache; a
private fork is a separately compiled product configuration. First installation is
authenticated by HTTPS only and says so; OS publisher signing remains a gate before
public release.

Evidence before acceptance as implemented: a spike on 2026-09-19 verified a real
GitHub CLI provenance bundle with `sigstore@5.0.0` inside a `bun build --compile`
binary (wrong identity and a tampered artifact refused). Still required: one real
release candidate of this repository verified by a compiled client, and the native
Linux activation journey listed in the contract.
2 changes: 1 addition & 1 deletion docs/expired-trust-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> **Superseded for product update (2026-09-19).** The accepted contract for
> checking, downloading, activating and rolling back a product version is
> [product update](update.md). The journal-reconstruction work package below is not continued. Its threat analysis of authenticated-but-unpersisted role floors stays valid and is answered by the Check step of the new contract.
> [product update](update.md). The journal-reconstruction work package below is not continued. Decision F13 removes the product's own TUF client, so the threat it analyses (authenticated-but-unpersisted role floors) no longer has a subject; this document is removed together with the pilot installer.

Status: deferred automatic-recovery work, not a prerequisite for the controlled
pilot (scope decision 2026-09-15; see [pilot repair](pilot-repair.md)). Stop expanding
Expand Down
6 changes: 3 additions & 3 deletions docs/machine-handover.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ requires operator diagnosis. No automatic cleanup or universal recovery is
promised. Recreating a disposable VM requires separate infrastructure approval.

Product update follows the [product update contract](update.md); until it is
implemented the pilot installer's [repair runbook](pilot-repair.md) applies: retain accepted TUF
trust and the previous working product. Folder handover does not change that rule.
implemented nothing installs a product release on a Machine: retain the previous
working product. Folder handover does not change that rule.
The local filesystem boundary assumes no hostile concurrent same-user/root
directory replacement; ownership checks are not a sandbox.

Expand All @@ -123,7 +123,7 @@ it does not qualify either architecture. See [Bun's executable targets](https://

Unit fixtures prove parsing/refusal, directory preservation and recognized
interruption completion. They do not prove actual Machines delivery, official
HTTPS/TUF hosting, native Linux x64 execution, Organization/module authorization,
release hosting and attestation, native Linux x64 execution, Organization/module authorization,
gateway operation, agent work, VM restart or the second-VM repeat. Record those
separately at exact source/artifact revisions. The real pilot must exercise the
installed binary and root-issued file under the non-root operator account.
2 changes: 1 addition & 1 deletion docs/pilot-repair.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> **Superseded for product update (2026-09-19).** The accepted contract for
> checking, downloading, activating and rolling back a product version is
> [product update](update.md). This runbook and `product recover` describe the pilot installer that is still the code on `main`; they are not the target mechanism. The preservation principles below (prepare beside the active version, never reset trusted metadata, never bootstrap an established installation again) remain binding.
> [product update](update.md). This runbook and `product recover` describe the pilot installer that is still the code on `main`; they are not the target mechanism and are removed together with that code (decision F13: there is no product-held trust metadata any more). The preservation principles below (prepare beside the active version, never reset trusted metadata, never bootstrap an established installation again) remain binding.

Accepted scope decision, 2026-09-15. This replaces a requirement to finish general
automatic expired/inconsistent-transcript recovery before the first usable pilot.
Expand Down
Loading
Loading