From 93dc66e96f7195616097676d8bc506c4bb70e2dd Mon Sep 17 00:00:00 2001 From: jefftj86 Date: Sun, 15 Nov 2026 23:48:35 -0800 Subject: [PATCH 1/2] chore: mark System One source as 0.2.0 Describe the local advisory engine and its relationship to the Gateway. Version current source output independently of frozen Phase 10 evidence. Pin Hono and its Node adapter to patched versions while retaining the required dependency audit. Signed-off-by: jefftj86 --- CHANGELOG.md | 12 +- Cargo.lock | 8 +- Cargo.toml | 2 +- README.md | 111 ++++++--- apps/api/package.json | 10 +- apps/console/package.json | 10 +- .../request_observer/tests.rs | 2 +- crates/lnsatd/src/lib.rs | 2 +- crates/lnsatd/src/product_surface.rs | 6 +- crates/lnsatd/src/product_transport.rs | 2 +- crates/lnsatd/tests/product_surface_cli.rs | 4 +- docs/PRODUCT_BUILD_SEQUENCE.md | 6 + docs/PROJECT_STATUS.md | 39 +++- docs/RELEASING.md | 2 +- docs/ROADMAP.md | 13 +- docs/WHY_PUBLIC_NOW.md | 10 +- .../CRYPTO_OPERATION_PROVIDER_INVENTORY.md | 2 +- ...PHASE_10_PRODUCT_SURFACE_CONTRACT_SPINE.md | 18 +- docs/reference/CONTRACT_VERSIONING.md | 12 +- docs/reference/PRODUCT_DIRECTION_ALIGNMENT.md | 35 +-- .../legacy-identifier-inventory.json | 2 +- .../public-history-reviews/registry.json | 8 + docs/sdk/migration.md | 4 +- docs/sdk/typescript-reference.md | 4 +- fixtures/contracts/daemon-status-v1.json | 38 +++ fixtures/contracts/daemon-status-v2.json | 2 +- fixtures/contracts/product-surface-v1.json | 219 ++++++++++++++++++ fixtures/contracts/product-surface-v2.json | 2 +- package-lock.json | 80 +++---- package.json | 7 +- packages/audit/package.json | 6 +- packages/cli/package.json | 6 +- packages/cli/src/product-surface.ts | 7 +- packages/cli/test/product-surface.test.ts | 6 +- packages/core/package.json | 2 +- packages/core/src/index.ts | 2 +- packages/core/test/core.test.ts | 2 +- packages/gateway/package.json | 8 +- packages/mcp/package.json | 6 +- packages/mcp/src/index.ts | 2 +- packages/mcp/test/modern-http.test.ts | 2 +- packages/packets/package.json | 2 +- packages/policy/package.json | 4 +- ...ck-phase10-product-surface-conformance.mjs | 33 ++- ...ase10-product-surface-conformance.test.mjs | 26 +++ .../check-phase11-docker-proof-readiness.mjs | 2 +- ...check-product-direction-alignment.test.mjs | 11 +- scripts/product-direction-invariants.mjs | 6 +- 48 files changed, 614 insertions(+), 191 deletions(-) create mode 100644 fixtures/contracts/daemon-status-v1.json create mode 100644 fixtures/contracts/product-surface-v1.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 86d22b4..49dce24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ ### Source milestone +- Set the npm and Cargo source version to `0.2.0` and align command versions, + MCP server identity, and the current manifest and status fixtures. The + System One direction adds a planned CPU-first advisory engine with + evidence-bound routing and abstention alongside the enforcement Gateway. + - Added an experimental authenticated action-request source contract with an immutable durable request root, explicit failed or unknown evaluation, first replay/conflict evidence, bounded requester/owner operator readback, @@ -13,6 +18,9 @@ ### Security +- Pin Hono to 4.13.16 and its Node server adapter to 2.1.6 to resolve advisories + reported for the previous lockfile. + - Bounded daemon and MCP request ingestion with absolute five-second read deadlines that partial progress cannot reset. Cooperative shutdown now interrupts incomplete daemon requests, overload rejection no longer drains @@ -42,8 +50,8 @@ identity, records the source-only fresh authenticated store transaction and bound pre-supervisor guard, and keeps the runnable driver and every live runtime identity blocking. - Product/source version remains unpublished `0.1.0`; no Docker, runtime, - package, tag, release, deployment, production, or support authority opens. + That operator-packet milestone used unpublished product/source version + `0.1.0` and left runtime and release gates closed. - Added a source-only private Phase 11 Docker proof run-manifest contract. It canonically binds reviewed proof metadata to exact later-run declarations, diff --git a/Cargo.lock b/Cargo.lock index f6cb73c..7460565 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -365,7 +365,7 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" [[package]] name = "lnsat-auth" -version = "0.1.0" +version = "0.2.0" dependencies = [ "argon2", "sha2", @@ -375,7 +375,7 @@ dependencies = [ [[package]] name = "lnsat-contracts" -version = "0.1.0" +version = "0.2.0" dependencies = [ "ed25519-dalek", "serde", @@ -385,7 +385,7 @@ dependencies = [ [[package]] name = "lnsat-store" -version = "0.1.0" +version = "0.2.0" dependencies = [ "getrandom", "lnsat-auth", @@ -402,7 +402,7 @@ dependencies = [ [[package]] name = "lnsatd" -version = "0.1.0" +version = "0.2.0" dependencies = [ "ctrlc", "getrandom", diff --git a/Cargo.toml b/Cargo.toml index 7f61a5a..62f6baf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ members = [ resolver = "3" [workspace.package] -version = "0.1.0" +version = "0.2.0" edition = "2024" rust-version = "1.97.1" license = "Apache-2.0" diff --git a/README.md b/README.md index 01bca8a..3631982 100644 --- a/README.md +++ b/README.md @@ -6,30 +6,36 @@ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE) [![Status](https://img.shields.io/badge/status-pre--release-orange.svg)](docs/PROJECT_STATUS.md) -**Execution authorization and evidence for consequential agent actions.** +**Local System One for evidence-bound decisions, with an optional enforcement gateway.** -LNSAT is an open-source authority engine that binds an agent's proposed action -to deterministic policy, authenticated human approval where required, a bounded -execution attempt, and durable evidence of the consequence. Its security boundary -is the Gateway. Models, applications, protocol adapters, and user interfaces -submit requests through that boundary; they cannot manufacture approval or -execution authority. - -> **Pre-release source, version `0.1.0`.** This repository contains experimental -> implementations, private source candidates, conformance fixtures, and design -> contracts. It does not yet provide a supported end-to-end V1 product, installer, -> package, container, or hosted service. Real Docker runtime proof remains -> unfinished. The Control Center is an experimental read-only preview. - -Current source milestone (2026-10-18): authenticated action-request intake -now has a durable immutable request record, explicit failed/unknown evaluation, -first replay/conflict evidence, and bounded read-only operator projection. -Focused local evidence passes; runtime dispatch, headless installation, native -resource enforcement, mutual-authenticated Unix transport, deployment, release, -and supported operation remain gated. Schema 18 belongs to this request-record -source milestone; earlier headless schema-18 proposals are future schema 19 and -must be rederived. See [the action-request record contract](docs/architecture/action-request-record.md). +LNSAT is building a local decision engine for technical reviewers and management +systems. System One is the fast path. It combines structured evidence checks +with a small model to recommend where a case belongs, cite the evidence that +drives the recommendation, and abstain when the case needs human judgment. +Applications can use the planned advisory interface on its own. +**Execution authorization and evidence for consequential agent actions.** +The Gateway provides that authority path when an application requests an +effect. It binds a proposed action to deterministic policy, authenticated +human approval where required, one bounded attempt, and durable result evidence. +Models and management clients can present recommendations. The Gateway owns +authorization for managed workflow actions. Offline backup, inert restore, +and owner recovery follow separate operator-local CLI contracts. + +> **Pre-release source milestone `0.2.0`.** The public repository contains +> experimental Gateway implementation, conformance fixtures, and contracts. +> The System One runner, reference weights, and management integration are +> planned. Supported installers, containers, hosted service, and end-to-end +> runtime proof remain pending. The Control Center is a read-only preview. + +Current source includes durable authenticated action-request records, explicit +failed and unknown evaluation, replay and conflict evidence, and bounded +read-only operator projections. Request-bound recovery has test-only +conformance coverage. See [the action-request record contract](docs/architecture/action-request-record.md) +and [Project Status](docs/PROJECT_STATUS.md) for implementation and runtime +claims. + +[System One](#system-one-decision-engine) · [Architecture](#architecture-and-trust-boundaries) · [Authority flow](#from-proposal-to-consequence) · [CLI](#current-cli-and-service-interfaces) · @@ -42,6 +48,50 @@ truth. [Claims and Maturity](docs/CLAIMS_AND_MATURITY.md) defines the maturity labels. This README explains the system and links the exact contracts; its examples and diagrams do not open runtime or release gates. +## System One Decision Engine + +A caller supplies a reviewer note and a redacted evidence summary through the +planned interface. A result carries a probability for each route, an explicit +abstention outcome, and evidence references. These routes describe which +review or action view to show to a person. + +| Route | Recommended review | +| -------------- | ---------------------------------------------------------------------- | +| Approval | Examine the proposed scope and the approval record. | +| Execution | Review readiness for a bounded attempt or inspect its recorded result. | +| Reconciliation | Resolve a prior attempt with missing or conflicting evidence. | +| Clarify | Request the context needed to establish scope or interpret the record. | + +The first workloads cover cloud changes, database migrations, transactions, and +MCP tool requests. Structured checks bind the selected target, attempt, receipt, +and independent readback. The learned component handles ambiguous notes and +evidence selection. When a required binding is missing, stale, or contradictory, +the decision abstains and points the reviewer to the gap. A management client +uses separate Gateway operations for approval, execution, and reconciliation. + +### Integration and scale + +The planned versioned CLI and API give Rangoon and other management systems the +same decision output. The first target is CPU inference on one machine. +Distributed worker pools can later partition independent cases, with bounded +queues, deadlines, and replay-safe result collection. Metal, Vulkan, and CUDA +are candidates for measured acceleration under the same result contract. + +### Evaluation and model release + +The evaluation plan compares deterministic rules, pinned peer models, and +hybrid decisions on whole held-out case families and public benchmarks. +One-fact variants test whether a decision and its cited evidence change +together. Report error at matched coverage, confident mistakes, abstention, +latency, and memory. + +A future open-source AI release requires distributable parameters, training and +inference source, and data information sufficient to build a substantially +equivalent system. Private histories and evaluation holdouts stay separate from +public artifacts. The repository source uses Apache-2.0. +See [product direction alignment](docs/reference/PRODUCT_DIRECTION_ALIGNMENT.md) +and the [Open Source AI Definition](https://opensource.org/ai/open-source-ai-definition). + ## Architecture And Trust Boundaries LNSAT separates the actor asking for a consequence from the authority deciding @@ -265,11 +315,12 @@ was rolled back. ## Versioning, Canonical Bytes And Conformance -Several identities coexist and must not be substituted for one another: +The product source, wire contract, and persistence schema have independent +version identities. | Identity | Current source value | Meaning | | ------------------------------------- | -------------------------- | ----------------------------------------------------------------- | -| Product/source SemVer | Unpublished `0.1.0` | Repository package version; no supported artifact implied | +| Product/source SemVer | Unpublished `0.2.0` | Repository package and command version | | Gateway wire target | `lnsat.contracts.v1_0` | Exact contract family/version negotiation | | Default product-surface diagnostic | `lnsat.product_surface.v1` | Current default manifest/status contract | | Explicit headless diagnostic selector | `lnsat.product_surface.v2` | Opt-in source diagnostics; no version range or automatic fallback | @@ -480,12 +531,12 @@ complete executable management tutorials are not yet available. ### Engine and application responsibilities -LNSAT owns policy enforcement, approval validation, execution authorization, -durable state, evidence and recovery semantics. Applications own presentation, -workflow organization and adapters to their chosen enterprise systems. -Rangoon can make setup, policy editing, approval and activity understandable, -but it consumes the same versioned engine contracts as other clients. LNSAT -has no Rangoon dependency or alternate Rangoon authority path. +Applications own presentation, workflow organization, and integrations with +their enterprise systems. The planned advisory interface recommends a review +view and supplies evidence references. The Gateway owns policy enforcement, +approval validation, execution authorization, durable receipts, and recovery. +Rangoon and other management clients use the same versioned contracts for +these responsibilities. LNSAT runs independently of any management client. Enterprise identity, workload identity, policy services, key providers and audit destinations may supply authenticated inputs through separately scoped diff --git a/apps/api/package.json b/apps/api/package.json index dc290a5..765c843 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -1,6 +1,6 @@ { "name": "@lnsat/api", - "version": "0.1.0", + "version": "0.2.0", "private": true, "description": "Experimental loopback Gateway inspection API for LNSAT", "license": "Apache-2.0", @@ -29,10 +29,10 @@ "typecheck": "npm run build -w @lnsat/gateway && tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@lnsat/audit": "0.1.0", - "@lnsat/gateway": "0.1.0", - "@lnsat/packets": "0.1.0", - "@lnsat/policy": "0.1.0", + "@lnsat/audit": "0.2.0", + "@lnsat/gateway": "0.2.0", + "@lnsat/packets": "0.2.0", + "@lnsat/policy": "0.2.0", "fastify": "5.12.6", "pg": "8.22.0" }, diff --git a/apps/console/package.json b/apps/console/package.json index efe96a5..3351c41 100644 --- a/apps/console/package.json +++ b/apps/console/package.json @@ -1,6 +1,6 @@ { "name": "@lnsat/console", - "version": "0.1.0", + "version": "0.2.0", "private": true, "description": "Read-only local evidence Control Center for LNSAT", "repository": { @@ -17,10 +17,10 @@ "typecheck": "npm run build -w @lnsat/gateway && tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@lnsat/audit": "0.1.0", - "@lnsat/gateway": "0.1.0", - "@lnsat/packets": "0.1.0", - "@lnsat/policy": "0.1.0", + "@lnsat/audit": "0.2.0", + "@lnsat/gateway": "0.2.0", + "@lnsat/packets": "0.2.0", + "@lnsat/policy": "0.2.0", "next": "16.4.1", "react": "^19.2.5", "react-dom": "^19.2.5" diff --git a/crates/lnsat-store/src/phase7_consumption/request_admission/request_coordinator/request_observer/tests.rs b/crates/lnsat-store/src/phase7_consumption/request_admission/request_coordinator/request_observer/tests.rs index 91874e3..4badc6e 100644 --- a/crates/lnsat-store/src/phase7_consumption/request_admission/request_coordinator/request_observer/tests.rs +++ b/crates/lnsat-store/src/phase7_consumption/request_admission/request_coordinator/request_observer/tests.rs @@ -1707,7 +1707,7 @@ fn request_observer_g26_structural_closure() { ); pin( include_bytes!("../../../../../../lnsatd/src/lib.rs"), - "832673d40fd917138e236d9f21b9f987fbbd0369d5daf0e65b60db7705aa0e57", + "1a1232e4a5afd13679d48e3b2b0a5c4aa3ed77888e54ffb36854e85af160b95e", ); assert!(COORDINATOR_SOURCE.contains("#[cfg(test)]\nmod request_observer;")); let source = include_str!("../request_observer.rs"); diff --git a/crates/lnsatd/src/lib.rs b/crates/lnsatd/src/lib.rs index 0d0d286..cc6d4d6 100644 --- a/crates/lnsatd/src/lib.rs +++ b/crates/lnsatd/src/lib.rs @@ -9197,7 +9197,7 @@ mod tests { ), ( AUTHENTICATED_STATUS_PATH_V1, - include_str!("../../../fixtures/contracts/phase10-status-v1.json"), + include_str!("../../../fixtures/contracts/daemon-status-v1.json"), ), ] { let request = fixture.product_read_request( diff --git a/crates/lnsatd/src/product_surface.rs b/crates/lnsatd/src/product_surface.rs index 9f2ae22..b24bb08 100644 --- a/crates/lnsatd/src/product_surface.rs +++ b/crates/lnsatd/src/product_surface.rs @@ -500,10 +500,10 @@ impl ProductExitCodeV1 { } } -/// Exact embedded target-neutral Phase 10 source manifest. +/// Exact embedded target-neutral v1 source manifest. #[must_use] pub const fn product_surface_manifest_json_v1() -> &'static str { - include_str!("../../../fixtures/contracts/phase10-product-surface-v1.json") + include_str!("../../../fixtures/contracts/product-surface-v1.json") } /// Exact opt-in HCFG-1 product-surface manifest bytes. @@ -994,7 +994,7 @@ mod tests { ); let status_fixture: serde_json::Value = serde_json::from_str(include_str!( - "../../../fixtures/contracts/phase10-status-v1.json" + "../../../fixtures/contracts/daemon-status-v1.json" )) .expect("status fixture must parse"); let status = daemon_status_v1(); diff --git a/crates/lnsatd/src/product_transport.rs b/crates/lnsatd/src/product_transport.rs index 3b7500c..3e0d4d3 100644 --- a/crates/lnsatd/src/product_transport.rs +++ b/crates/lnsatd/src/product_transport.rs @@ -501,7 +501,7 @@ mod tests { #[test] fn explicit_status_selector_requires_exact_single_echo() { - let status_body = include_str!("../../../fixtures/contracts/phase10-status-v1.json"); + let status_body = include_str!("../../../fixtures/contracts/daemon-status-v1.json"); let response = format!( "HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nContent-Length: {}\r\nLNSAT-Contract-Version: lnsat.contracts.v1_0\r\nLNSAT-Product-Surface-Contract: lnsat.product_surface.v1\r\nConnection: close\r\n\r\n{status_body}", status_body.len() diff --git a/crates/lnsatd/tests/product_surface_cli.rs b/crates/lnsatd/tests/product_surface_cli.rs index 1946a07..48d9b90 100644 --- a/crates/lnsatd/tests/product_surface_cli.rs +++ b/crates/lnsatd/tests/product_surface_cli.rs @@ -53,7 +53,7 @@ fn three_product_manifest_selectors_are_exact_and_legacy_compatible() { assert_eq!(daemon_v1.stdout, operator_v1.stdout); assert_eq!( daemon_v1.stdout, - include_bytes!("../../../fixtures/contracts/phase10-product-surface-v1.json") + include_bytes!("../../../fixtures/contracts/product-surface-v1.json") ); let daemon_v2 = Command::new(env!("CARGO_BIN_EXE_lnsatd")) .args([ @@ -147,7 +147,7 @@ fn shared_output_formats_preserve_default_json_and_exact_position() { assert!(text.starts_with("command=doctor\n")); assert!(text.contains("configuration.ambient_environment_used=false\n")); assert!(text.contains("side_effects=[]\n")); - assert!(text.ends_with("source_version=0.1.0\n")); + assert!(text.ends_with("source_version=0.2.0\n")); let yaml = Command::new(env!("CARGO_BIN_EXE_lnsatctl")) .args(["doctor", "--output", "yaml"]) diff --git a/docs/PRODUCT_BUILD_SEQUENCE.md b/docs/PRODUCT_BUILD_SEQUENCE.md index becc77a..5d44b15 100644 --- a/docs/PRODUCT_BUILD_SEQUENCE.md +++ b/docs/PRODUCT_BUILD_SEQUENCE.md @@ -34,6 +34,12 @@ runtime and package: and production reference actions remain outside initial v1; selected core package lifecycle proof remains part of the staged V1 build. +The [System One decision-engine expansion](../README.md#system-one-decision-engine) +is an independent advisory workstream. Its sequence starts with a versioned +CPU-first contract and reproducible public evaluations. Distributed workers, +accelerators, and external management integrations need separate compatibility +evidence. Consequential workflows use the Gateway and its V1 acceptance path. + ## Headless Configuration And Control Accepted V1 product requirement; implementation and platform proof remain pending. diff --git a/docs/PROJECT_STATUS.md b/docs/PROJECT_STATUS.md index fcfcb4b..457d674 100644 --- a/docs/PROJECT_STATUS.md +++ b/docs/PROJECT_STATUS.md @@ -1,7 +1,9 @@ # Project Status -LNSAT `0.1.0` is pre-release, source-only software. Repository is suitable for -contract evaluation and contributor development, not production operation. +LNSAT `0.2.0` is pre-release, source-only software. The repository supports +contract evaluation and contributor development. The Gateway is experimental +source. The [System One decision engine](../README.md#system-one-decision-engine) +is a separate advisory workstream with a planned runner and model release. ## November 3 Functional Repair Candidate @@ -51,16 +53,18 @@ fixture checkout. ## Version Posture -Product/source SemVer remains unpublished `0.1.0` across the root npm package, +Product/source SemVer is unpublished `0.2.0` across the root npm package, every private npm workspace, and the unpublished Cargo workspace. The stable Gateway wire target is `lnsat.contracts.v1_0`; the default product surface is `lnsat.product_surface.v1` with explicit source-diagnostic v2 selection; local SQLite schema is `18` in the accepted request-record source milestone; schema -17 remains the historical local-v1 baseline. These layers are independent. PR -#39 merged Phase 11 -operator preparation into public `main`, but changed no product, wire, family, -persistence, runtime-profile, or adapter-protocol version and created no tag or -release. See [contract versioning](reference/CONTRACT_VERSIONING.md). +17 remains the historical local-v1 baseline. The source version also appears +in command, MCP server, and product-surface outputs. The PR #39 Phase 11 +operator-packet integration used the earlier `0.1.0` source version. See +[contract versioning](reference/CONTRACT_VERSIONING.md). + +The dependency lock pins Hono 4.13.16 and its Node server adapter 2.1.6 to +address the audit findings on the previous lockfile. ## Public Action-Request Record Source Milestone @@ -4125,7 +4129,7 @@ does not rerun unchanged Rust binaries. #### Monitoring, authentication and protected control CLI command inventory is the exact v1/v2 manifest in -[`phase10-product-surface-v1.json`](../fixtures/contracts/phase10-product-surface-v1.json) +[`product-surface-v1.json`](../fixtures/contracts/product-surface-v1.json) and [`product-surface-v2.json`](../fixtures/contracts/product-surface-v2.json). Reserved names express unavailable source behavior. Existing loopback routes are separate from absent CLI consumers; no blanket CLI/API/MCP mutation parity @@ -4162,7 +4166,7 @@ is claimed. | `lnsat packet validate` | Source-implemented pure packet validation in [`index.ts`](../packages/cli/src/index.ts). | [`cli.test.ts`](../packages/cli/test/cli.test.ts) P valid structured output; N invalid schema, input/JSON/usage failure; no mutation R. | Preserve contracts and selected artifact parity; no authority from validation. | | `lnsat packet hash` | Source-implemented canonical packet SHA-256 over validated input. | Same CLI suite P canonical hash, N invalid packet/input; no mutation R. | Artifact/component identity remains separate from a packet digest. | | `lnsat packet inspect` | Source-implemented read-only Gateway-backed inspection with CLI/API/MCP parity. | [`transport-neutral-packet-inspection.test.ts`](../packages/cli/test/transport-neutral-packet-inspection.test.ts) P: `matches API and MCP behavior for valid packet inspection`; N: `rejects invalid packets identically and avoids raw secret echo`; no mutation R. | Parity covers this contract only; it grants no execution or broad headless-control parity. | -| Manifest, help/version, completion and man source | Source-implemented for the three product commands; unpublished `0.1.0`, target-neutral source manifests. | O P/N: `three_product_commands_expose_same_source_manifest`, exact-selector test, `zsh_completion_per_binary_exact_surfaces`; [TS product-surface tests](../packages/cli/test/product-surface.test.ts) cover completion/man sources and unsupported selectors/shells. | Installed files, service lifecycle and immutable selected-target identity; generated source text is not an installer. | +| Manifest, help/version, completion and man source | Source-implemented for the three product commands with unpublished `0.2.0` and target-neutral source manifests. | O P/N: `three_product_commands_expose_same_source_manifest`, exact-selector test, `zsh_completion_per_binary_exact_surfaces`; [TS product-surface tests](../packages/cli/test/product-surface.test.ts) cover completion/man sources and unsupported selectors/shells. | Installed files, service lifecycle and immutable selected-target identity; generated source text is not an installer. | | `lnsatd --config` or explicit direct arguments | Source-implemented bounded daemon configuration; numeric-loopback and explicit source-local hosting seams. | C P/N: `explicit_config_and_legacy_direct_arguments_are_distinct_compatible_modes`, closed/value/file-boundary tests; no service installation/start proof. | Complete headless protected lifecycle and selected-target daemon/service evidence. | | Embeddable runtime and stable integration API | Rust trusted-core/store primitives, exact Gateway contracts and experimental SDK/MCP/A2A interfaces exist. Complete integrated embeddable headless authority lifecycle is missing. | Packet-inspection parity, CLI-only [recovery parity](../fixtures/contracts/phase10-recovery-parity-v1.json), Phase 7 conformance and existing served Phase 8 fixtures cover their exact boundaries only. | Authenticated configuration/owner/native/store/release integration and full embeddable lifecycle conformance. Offline exceptions never gain agent/API/MCP/UI routes. | | Genuine native/OS enforcement and unsupported controls | S1, journal custody, ACL sampler and mountinfo byte decoder are inert prerequisites. A private procfs/held-mount reader source candidate exists; genuine Linux reader evidence and the full native freeze remain missing. | Synthetic byte/ACL tests, private Linux file/descriptor fixtures and unsupported-platform denials prove their named scopes; no live mount/ACL absence/idmapping/startup permit is proved. | [Separate reader contract and full freeze gates](architecture/headless-resource-enforcement/plan.md#next-genuine-procfs-reader-contract-gate), captured pins and later actual grant/use/substitution/revocation proof. | @@ -4461,6 +4465,21 @@ and [Phase 8 adapter authority conformance](architecture/PHASE_8_ADAPTER_AUTHORI ## Expanded Product Direction +The System One expansion targets a local, CPU-first advisory engine with a +versioned CLI and API for evidence-bound reviewer routing. Initial work covers +approval, execution review, reconciliation, and clarification. The planned +output carries probabilities, explicit abstention, and evidence references. +The Gateway remains the authority component whenever a supported workflow can +produce a consequence. Rangoon and other management systems can integrate +through the same planned advisory contract. + +The engine and open reference model are development direction. A released +checkpoint, supported decision service, accelerator compatibility, and +distributed worker pools each need their own implementation and evidence. The +existing V1 Gateway acceptance sequence remains in the +[product build sequence](PRODUCT_BUILD_SEQUENCE.md). See +[the decision-engine overview](../README.md#system-one-decision-engine). + ADR-0003 and ADR-0007 now fix repository, product, and first-integration boundaries: diff --git a/docs/RELEASING.md b/docs/RELEASING.md index 1254cb5..eaaacd2 100644 --- a/docs/RELEASING.md +++ b/docs/RELEASING.md @@ -48,7 +48,7 @@ private commit topology, exact diffs, tree IDs, or protected blobs. ## Version Contract -Current product/source SemVer remains unpublished `0.1.0`. Source-only Phase 11 +Current product/source SemVer remains unpublished `0.2.0`. Source-only Phase 11 operator preparation, including PR #39, does not open a version transition, tag, artifact, or release. The separate current product, wire, family-schema, persistence, and evidence identities are recorded in diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index ec2be25..0157cfb 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -19,7 +19,16 @@ in the dated milestone section. Canonical readiness states: Phase 7a signed-evidence design = complete; Phase 7b wrapper verification = implemented_verification_only; Phase 7c Ed25519 primitive = implemented_not_wired; Phase 7d schema candidate = proposed_test_only; P7-ADR0 local-v1 trust-model revision = complete; P7-M1 core persistence = complete; P7-N1 nonce/expiry lifecycle = complete; P7-B1 preauthorization hardening = complete; P7-C1 atomic consumption = complete (implemented_not_wired); P7-A1 local authorization = complete (source-only, implemented_not_wired); P7-R1 Git reference adapter = complete (source-only, implemented_not_wired); P7-X1 local-v1 conformance freeze = complete (source-only evidence, no runtime/publication authority); runtime is schema 17/17 with migrations 0016 and 0017 registered; optional signed-evidence packets remain blocked. -## Current source milestone — 2026-10-18 +## System One decision engine + +The `0.2.0` source direction adds a local advisory workstream. First define +the versioned reviewer-note and evidence contract, benchmark a CPU runner on +whole held-out case families, and qualify an open reference model. Then +integrate the advisory CLI and API with management clients and measure +distributed workers and accelerator backends. Workflows requesting an effect +use the Gateway milestones below. + +## Action-request source milestone — 2026-10-18 The accepted action-request record source milestone reserves schema 18 for durable authenticated request roots, explicit failed/unknown evaluation, first @@ -197,7 +206,7 @@ compatibility rows remain unsupported. - [Phase 4 source exit evidence](architecture/PHASE_4_EXIT_EVIDENCE.md) maps bootstrap, restart, migration, backup, restore, corruption, disk-full, and interruption negatives to checked-in tests. -- Source-only `0.1.0`; no supported runtime or published artifact. +- Source-only `0.2.0`; supported runtime and artifact publication are pending. ## Fourteen Ordered Phases diff --git a/docs/WHY_PUBLIC_NOW.md b/docs/WHY_PUBLIC_NOW.md index f30795d..596967c 100644 --- a/docs/WHY_PUBLIC_NOW.md +++ b/docs/WHY_PUBLIC_NOW.md @@ -5,9 +5,11 @@ - Product status: pre-release source only - Runtime, artifact, and support effect: none -LNSAT is public because an authority boundary governing consequential agent -actions must be inspectable, portable, independently testable, and shared -across runtimes rather than hidden inside one product or provider. +LNSAT is public so integrators can inspect, test, and port the engine's +contracts across runtimes. This applies to the Gateway's authority for +consequential agent actions and to the planned System One advisory interface. +The `0.2.0` direction adds reproducible local decision evaluation and an open +reference model to the project roadmap. ## 1. Public Core Purpose @@ -165,7 +167,7 @@ a release or support commitment. ## 7. Maturity and Support Boundary -LNSAT `0.1.0` remains pre-release source for evaluation and contribution. APIs +LNSAT `0.2.0` remains pre-release source for evaluation and contribution. APIs and contracts may change. No supported package, binary, container, image, installer, hosted service, deployment, production connector, or production-use guarantee exists. Public visibility and passing source checks do not imply diff --git a/docs/architecture/CRYPTO_OPERATION_PROVIDER_INVENTORY.md b/docs/architecture/CRYPTO_OPERATION_PROVIDER_INVENTORY.md index e7f4797..97cfa31 100644 --- a/docs/architecture/CRYPTO_OPERATION_PROVIDER_INVENTORY.md +++ b/docs/architecture/CRYPTO_OPERATION_PROVIDER_INVENTORY.md @@ -16,7 +16,7 @@ security assessment, or supported-product claim. ## Scope and maturity -LNSAT is pre-release `0.1.0` source-only software. Gateway remains the +LNSAT is pre-release `0.2.0` source-only software. Gateway remains the authorization boundary. Protocol adapters do not gain infrastructure authority; the console remains an experimental read-only preview. Hosted SaaS, fleet/HA, and multi-tenancy remain outside the selected local V1 scope. This inventory supplies evidence for later strict-profile work and does diff --git a/docs/architecture/PHASE_10_PRODUCT_SURFACE_CONTRACT_SPINE.md b/docs/architecture/PHASE_10_PRODUCT_SURFACE_CONTRACT_SPINE.md index 4462962..f0cca0b 100644 --- a/docs/architecture/PHASE_10_PRODUCT_SURFACE_CONTRACT_SPINE.md +++ b/docs/architecture/PHASE_10_PRODUCT_SURFACE_CONTRACT_SPINE.md @@ -55,11 +55,15 @@ is refused for daemon bind and all offline recovery mutations on macOS/Linux. API, MCP, and Control Center expose only unavailable posture evidence: no route, tool, or rendered action exists. -The canonical manifest is -`fixtures/contracts/phase10-product-surface-v1.json` with contract -`lnsat.product_surface.v1`. It is embedded or loaded from repository source. It -is not an artifact manifest and contains no selected target, source-revision -binding, component digest, package row, or support claim. +The current canonical manifest is `fixtures/contracts/product-surface-v1.json` +with contract `lnsat.product_surface.v1`. It is embedded or loaded from +repository source. It contains source capability metadata and no artifact +identity, selected target, component digest, package row, or support claim. + +The original Phase 10 manifest and status fixtures are preserved as frozen +evidence. The current v1 manifest and `fixtures/contracts/daemon-status-v1.json` +each differ from their frozen counterpart in one product/source version field. +Source conformance checks both the historical raw pins and the current bytes. The canonical explicit configuration fixture is `fixtures/contracts/phase10-daemon-config-v1.json` with contract @@ -95,7 +99,9 @@ stdin, non-root refusal, no-clobber restore, and closed activation/served lanes. ## Source Ownership -- `fixtures/contracts/phase10-product-surface-v1.json` owns canonical manifest. +- `fixtures/contracts/product-surface-v1.json` owns the current canonical + manifest. `fixtures/contracts/phase10-product-surface-v1.json` and + `fixtures/contracts/phase10-status-v1.json` retain the Phase 10 evidence bytes. - `fixtures/contracts/phase10-product-surface-conformance-v1.json` and `scripts/check-phase10-product-surface-conformance.mjs` own P10-X1 exit evidence and fail-closed validation. diff --git a/docs/reference/CONTRACT_VERSIONING.md b/docs/reference/CONTRACT_VERSIONING.md index ff40dfb..34583cc 100644 --- a/docs/reference/CONTRACT_VERSIONING.md +++ b/docs/reference/CONTRACT_VERSIONING.md @@ -21,7 +21,7 @@ names the version needed to interpret it. | Surface | Current identity | Current state | | ----------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| Product/source SemVer | `0.1.0` | Pre-release source; npm workspaces private and Rust crates unpublished | +| Product/source SemVer | `0.2.0` | Pre-release source; npm workspaces private and Rust crates unpublished | | Gateway wire contract | `lnsat.contracts.v1_0` | Stable source contract target; no supported product artifact exists | | Deprecated wire compatibility | `lnsat.contracts.v0_1` | Accepted only on explicitly documented compatibility surfaces | | Product-surface selector | `lnsat.product_surface.v1` default; `lnsat.product_surface.v2` explicit | v2 is opt-in source diagnostics; no range or fallback | @@ -33,11 +33,11 @@ PR #39 integrated the operator packet at merge record lives in the [operator run packet](../architecture/PHASE_11_REAL_DISPOSABLE_DOCKER_PROOF_OPERATOR_RUN_PACKET.md). That merge does not increment product SemVer, promote a wire or family schema, -create a tag, or publish an artifact. A future versioned source release must -move every npm workspace, the Cargo workspace, both lockfiles, changelog, and -compatibility notes together under the separately authorized -[release process](../RELEASING.md). Until then, the changelog remains -`Unreleased` and product/source version remains `0.1.0`. +create a tag, or publish an artifact. The later `0.2.0` source milestone aligns +the npm and Cargo workspaces, lockfiles, command versions, and product-surface +version fields. The changelog remains `Unreleased`. Independent wire and +persistence identities are listed above. A versioned source release follows +the separately authorized [release process](../RELEASING.md). ## Canonical Contract Versions diff --git a/docs/reference/PRODUCT_DIRECTION_ALIGNMENT.md b/docs/reference/PRODUCT_DIRECTION_ALIGNMENT.md index 8405f22..b0c5d0d 100644 --- a/docs/reference/PRODUCT_DIRECTION_ALIGNMENT.md +++ b/docs/reference/PRODUCT_DIRECTION_ALIGNMENT.md @@ -11,23 +11,24 @@ claim because it appears here. ## Canonical Decisions -| Decision | Canonical source | Required aligned surfaces | -| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------- | -| Execution authorization and evidence is primary position | [ADR-0002](../architecture/ADR-0002_AUTHORITY_LAYER_AND_V1_DISTRIBUTION.md) | README, architecture guide, roadmap, project status | -| Gateway owns authority above MCP/A2A/API/CLI/UI | [Authority layer](../architecture/AUTHORITY_LAYER_AND_REFERENCE_WORKFLOW.md) | security, SDK, adapters, CLI, UI | -| MCP 2026-07-28 is canonical experimental source; legacy and framework lanes stay bounded | [MCP interoperability](../architecture/MCP_V2_FASTMCP_INTEROPERABILITY_AND_OUTAGE_RECOVERY.md) | MCP, SDK, roadmap, status, conformance | -| Required path is Phase 8 -> 9 -> 10 -> 11 -> 13 -> 14; Phase 12 and signed lanes stay nonblocking unless selected | [Product build sequence](../PRODUCT_BUILD_SEQUENCE.md) | roadmap, status, release, compatibility, distribution | -| LNSAT is a standalone product with versioned authority and interoperability contracts | [ADR-0003](../architecture/ADR-0003_OPEN_CORE_EXTENSIONS_AND_MANAGEMENT_PLANE.md) | governance, contributor, SDK, release, public readiness | -| Docker/OCI is first v1 runtime profile; Gateway authority remains runtime-neutral | [ADR-0007](../architecture/ADR-0007_DOCKER_FIRST_RUNTIME_NEUTRAL_ENFORCEMENT.md) | README, roadmap, status, runtime adapters, distribution | -| Configuration layers only narrow; authority-managed emergency stop dominates | [ADR-0007](../architecture/ADR-0007_DOCKER_FIRST_RUNTIME_NEUTRAL_ENFORCEMENT.md) | config, CLI, UI, policy, adapters, recovery | -| Agent configuration, skills, instructions, context, and overlays are governed inputs | [Management design](../architecture/AGENT_CONFIGURATION_SKILL_AND_CONTEXT_MANAGEMENT.md) | context firewall, SDK, UI, onboarding, threat model | -| Gatekeeper models advise; deterministic policy and humans authorize | [ADR-0003](../architecture/ADR-0003_OPEN_CORE_EXTENSIONS_AND_MANAGEMENT_PLANE.md) | auth, agent framework, SDK, threat model | -| Node/graph UI and exact source editor serve different tasks | [Management UI](../architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.md) | UI framework, management design, roadmap | -| LNSAT API and `lnsatctl` form the complete headless V1 surface; selected core artifacts require lifecycle proof; graphical setup is outside initial V1 | [ADR-0008](../architecture/ADR-0008_LNSAT_STANDALONE_V1_SCOPE.md) | README, roadmap, status, CLI, UI, release, distribution | -| Canonical components are built once and wrapped unchanged | [Distribution plan](../architecture/DISTRIBUTION_AND_CLIENT_INSTALLERS.md) | release, compatibility, package composition | -| Public source visibility is independent from final artifact publication | [Public source readiness](../PUBLIC_READINESS.md) | roadmap, status, release, governance | -| Final artifact publication follows Phase 14 and separate explicit go/no-go authorization | [Source release process](../RELEASING.md) | roadmap, status, release, distribution | -| Entitlement controls features, never authority | [Extension boundary](../architecture/OPEN_CORE_AND_EXTENSION_BOUNDARIES.md) | governance, security, product docs | +| Decision | Canonical source | Required aligned surfaces | +| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | +| Execution authorization and evidence define the existing Gateway boundary | [ADR-0002](../architecture/ADR-0002_AUTHORITY_LAYER_AND_V1_DISTRIBUTION.md) | README, architecture guide, roadmap, project status | +| System One adds a planned local advisory decision engine and an open reference model. Consequential workflows use the Gateway. | [Decision-engine direction](../../README.md#system-one-decision-engine), [ADR-0003](../architecture/ADR-0003_OPEN_CORE_EXTENSIONS_AND_MANAGEMENT_PLANE.md) | README, product build sequence, project status | +| Gateway owns authority above MCP/A2A/API/CLI/UI | [Authority layer](../architecture/AUTHORITY_LAYER_AND_REFERENCE_WORKFLOW.md) | security, SDK, adapters, CLI, UI | +| MCP 2026-07-28 is canonical experimental source; legacy and framework lanes stay bounded | [MCP interoperability](../architecture/MCP_V2_FASTMCP_INTEROPERABILITY_AND_OUTAGE_RECOVERY.md) | MCP, SDK, roadmap, status, conformance | +| Required path is Phase 8 -> 9 -> 10 -> 11 -> 13 -> 14; Phase 12 and signed lanes stay nonblocking unless selected | [Product build sequence](../PRODUCT_BUILD_SEQUENCE.md) | roadmap, status, release, compatibility, distribution | +| LNSAT is a standalone product with versioned authority and interoperability contracts | [ADR-0003](../architecture/ADR-0003_OPEN_CORE_EXTENSIONS_AND_MANAGEMENT_PLANE.md) | governance, contributor, SDK, release, public readiness | +| Docker/OCI is first v1 runtime profile; Gateway authority remains runtime-neutral | [ADR-0007](../architecture/ADR-0007_DOCKER_FIRST_RUNTIME_NEUTRAL_ENFORCEMENT.md) | README, roadmap, status, runtime adapters, distribution | +| Configuration layers only narrow; authority-managed emergency stop dominates | [ADR-0007](../architecture/ADR-0007_DOCKER_FIRST_RUNTIME_NEUTRAL_ENFORCEMENT.md) | config, CLI, UI, policy, adapters, recovery | +| Agent configuration, skills, instructions, context, and overlays are governed inputs | [Management design](../architecture/AGENT_CONFIGURATION_SKILL_AND_CONTEXT_MANAGEMENT.md) | context firewall, SDK, UI, onboarding, threat model | +| Gatekeeper models advise; deterministic policy and humans authorize | [ADR-0003](../architecture/ADR-0003_OPEN_CORE_EXTENSIONS_AND_MANAGEMENT_PLANE.md) | auth, agent framework, SDK, threat model | +| Node/graph UI and exact source editor serve different tasks | [Management UI](../architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.md) | UI framework, management design, roadmap | +| LNSAT API and `lnsatctl` form the complete headless V1 surface; selected core artifacts require lifecycle proof; graphical setup is outside initial V1 | [ADR-0008](../architecture/ADR-0008_LNSAT_STANDALONE_V1_SCOPE.md) | README, roadmap, status, CLI, UI, release, distribution | +| Canonical components are built once and wrapped unchanged | [Distribution plan](../architecture/DISTRIBUTION_AND_CLIENT_INSTALLERS.md) | release, compatibility, package composition | +| Public source visibility is independent from final artifact publication | [Public source readiness](../PUBLIC_READINESS.md) | roadmap, status, release, governance | +| Final artifact publication follows Phase 14 and separate explicit go/no-go authorization | [Source release process](../RELEASING.md) | roadmap, status, release, distribution | +| Entitlement controls features, never authority | [Extension boundary](../architecture/OPEN_CORE_AND_EXTENSION_BOUNDARIES.md) | governance, security, product docs | ## Repository and Product Boundaries diff --git a/docs/reference/legacy-identifier-inventory.json b/docs/reference/legacy-identifier-inventory.json index 7734a7c..59d1010 100644 --- a/docs/reference/legacy-identifier-inventory.json +++ b/docs/reference/legacy-identifier-inventory.json @@ -1,6 +1,6 @@ { "schema_version": "1.0", - "source_tree_sha256": "8e4cedc5d3ab53374af3941bf823af6db6c5b3d8eaf7822835f66b29f2b3929b", + "source_tree_sha256": "75f6d497e45cdb4b7589b783bb9cd3eb9a59e30f5a874c60e5bd9c5b340b9f24", "scope": { "tracked_text_files_only": true, "excluded_inventory_mechanics": [ diff --git a/docs/reference/public-history-reviews/registry.json b/docs/reference/public-history-reviews/registry.json index da2e154..d9bda46 100644 --- a/docs/reference/public-history-reviews/registry.json +++ b/docs/reference/public-history-reviews/registry.json @@ -843,6 +843,14 @@ "manifest_path": "docs/reference/public-history-reviews/PHR-0105/review.json", "review_type": "independent_implementation_review", "state": "attested" + }, + { + "entry_id": "PHR-0106", + "subject_id": "system-one-decision-engine-direction", + "review_subject_ids": ["system-one-decision-engine-direction"], + "manifest_path": "docs/reference/public-history-reviews/PHR-0106/review.json", + "review_type": "independent_implementation_review", + "state": "pending" } ] } diff --git a/docs/sdk/migration.md b/docs/sdk/migration.md index 64d37f8..b0e986e 100644 --- a/docs/sdk/migration.md +++ b/docs/sdk/migration.md @@ -31,7 +31,7 @@ runtime behavior, calling external services, or opening live side effects. ## Current Migration Posture No migration is executable yet. All current `@lnsat/*` workspaces are -unpublished packages at version `0.1.0`. They are documentation source refs and +unpublished packages at version `0.2.0`. They are documentation source refs and review inputs only. They are not installable, published, registry-backed, marketplace-listed, release-ready, or stable public SDK packages. @@ -50,7 +50,7 @@ explicit package boundary. This guide records documentation requirements only. | ----------------------------- | --------------------------------------------------------- | --------------------------------------------------------------- | ---------------------------------------------------- | | Package identity | private `@lnsat/*` workspace names | approved public package name and owner | package rename, package creation, publication | | Import path | repo-local source imports and private workspace exports | before/after mapping after approval | dependency rewrite, consumer migration | -| Version | private `0.1.0` source version | semver policy, changelog scope, compatibility note | version bump, release tag, registry metadata | +| Version | private `0.2.0` source version | semver policy, changelog scope, compatibility note | version bump, release tag, registry metadata | | API stability | source export groups by audience | stable/experimental/deprecated classification | API guarantee, public SDK claim | | Conformance | source-only positive checks and fail-closed probe docs | package-bound conformance checklist | runner, workflow, live probe | | Release evidence | planned release lanes and approval gates | package/release review record before publication | checksums, signatures, SBOM, provenance, release | diff --git a/docs/sdk/typescript-reference.md b/docs/sdk/typescript-reference.md index 23b6896..728c977 100644 --- a/docs/sdk/typescript-reference.md +++ b/docs/sdk/typescript-reference.md @@ -29,7 +29,7 @@ lockfiles, runtime behavior, package availability, or publication state. ## Current Package State -All current source packages are marked `private: true` at version `0.1.0`. They +All current source packages are marked `private: true` at version `0.2.0`. They are source refs for documentation and review only. They are not installable, published, marketplace-listed, release-ready, or stable public SDK packages. @@ -122,7 +122,7 @@ publication, GitHub mutation, or live side effects. | Group | Source refs | Current exports to reference | Boundary | | ------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------- | -| Package export inventory | `apps/api/package.json`, `packages/*/package.json`, `packages/*/src/index.ts` | Unpublished package names, version `0.1.0`, `private: true`, package export entries. | Inventory only; no package availability claim. | +| Package export inventory | `apps/api/package.json`, `packages/*/package.json`, `packages/*/src/index.ts` | Unpublished package names, version `0.2.0`, `private: true`, package export entries. | Inventory only; no package availability claim. | | Release/package contracts | `packages/packets/src/index.ts`, `docs/sdk/release.md` | Release readiness, package/release review envelope, source refs, required gates, fail-closed package/release examples. | Review docs only; no artifact generation. | | CLI source | `packages/cli/src/index.ts` | `CLI_STATUS`, `runCli`, packet validate/hash result shapes. | Current local source commands only; future `lnsat`/`lnsatctl` direction is documented separately. | | Core constants | `packages/core/src/index.ts` | `LNSAT_CORE_VERSION`, `LNSAT_PRODUCT_NAME`, `ProductLifecycleStatus`, `currentProductLifecycleStatus`. | Maintainer metadata only. | diff --git a/fixtures/contracts/daemon-status-v1.json b/fixtures/contracts/daemon-status-v1.json new file mode 100644 index 0000000..40cbf05 --- /dev/null +++ b/fixtures/contracts/daemon-status-v1.json @@ -0,0 +1,38 @@ +{ + "authenticated_read_scope": { + "permission": "read_evidence", + "roles": ["owner", "operator", "auditor"] + }, + "contract": "lnsat.daemon.status.v1", + "contract_version": "lnsat.contracts.v1_0", + "explicit_target": { + "ambient_target_used": false, + "endpoint_required": true, + "remote_transport": false + }, + "mutation_authority": false, + "phase10": { + "implemented_packets": ["P10-A1", "P10-A2", "P10-A3", "P10-A4", "P10-X1"], + "next_packet": "none_authorized", + "phase11_open": false, + "status": "complete" + }, + "product_surface": { + "implemented": [ + "doctor", + "config.inspect", + "recovery.inspect", + "backup", + "restore", + "recovery.owner" + ], + "reserved": ["recovery.activate", "service", "update"] + }, + "readiness": { + "daemon_reachable": true, + "schema_current": true, + "storage_ready": true + }, + "side_effects": ["session_activity_evidence_may_append"], + "source_version": "0.2.0" +} diff --git a/fixtures/contracts/daemon-status-v2.json b/fixtures/contracts/daemon-status-v2.json index 7b385cd..d1fecb0 100644 --- a/fixtures/contracts/daemon-status-v2.json +++ b/fixtures/contracts/daemon-status-v2.json @@ -40,5 +40,5 @@ "storage_ready": true }, "side_effects": ["session_activity_evidence_may_append"], - "source_version": "0.1.0" + "source_version": "0.2.0" } diff --git a/fixtures/contracts/product-surface-v1.json b/fixtures/contracts/product-surface-v1.json new file mode 100644 index 0000000..b78148d --- /dev/null +++ b/fixtures/contracts/product-surface-v1.json @@ -0,0 +1,219 @@ +{ + "contract_id": "lnsat.product_surface.v1", + "contract_version": "lnsat.contracts.v1_0", + "schema_version": 1, + "product_version": "0.2.0", + "source_status": "experimental_source", + "supported_release": false, + "package_or_binary_claim": false, + "required_sequence": [10, 11, 13, 14], + "optional_phase": 12, + "binaries": { + "lnsatd": { + "audience": "service_manager", + "implemented_commands": ["run", "run --config", "help", "version", "manifest"], + "authority_boundary": "gateway_only" + }, + "lnsatctl": { + "audience": "owner_operator", + "implemented_commands": [ + "doctor", + "config inspect", + "recovery inspect", + "backup", + "restore", + "recovery owner", + "manifest", + "completion", + "man", + "help", + "version" + ], + "authority_boundary": "read_only_and_offline_recovery_source_commands" + }, + "lnsat": { + "audience": "user_agent_script_developer", + "implemented_commands": [ + "packet validate", + "packet hash", + "packet inspect", + "manifest", + "completion", + "man", + "help", + "version" + ], + "authority_boundary": "gateway_client_or_pure_local_read" + } + }, + "withdrawn_commands": { + "lnsatctl": ["health", "status"], + "reason": "same_uid_unix_socket_cannot_authenticate_live_daemon", + "fails_before": ["protected_stdin", "unix_connect", "request_bytes"], + "replacement": "accepted_mutual_daemon_authentication_required" + }, + "reserved_command_groups": { + "lnsat": [ + "context", + "request", + "policy", + "approval", + "execute", + "receipt", + "audit", + "agent", + "profile", + "instruction", + "skill", + "connector", + "graph" + ], + "lnsatctl": [ + "identity", + "role", + "session", + "revoke", + "policy", + "connector", + "module", + "model", + "service", + "recovery activate", + "update", + "audit", + "emergency-disable" + ] + }, + "configuration": { + "explicit_config_contract": "lnsat.daemon.config.v1", + "precedence": [ + "compiled_safe_defaults", + "system_config", + "user_config", + "explicit_config_file" + ], + "current_path_profile": "explicit_only_source", + "direct_arguments_compatible": true, + "mixed_direct_and_config_input": "rejected", + "system_paths_selected": false, + "user_paths_selected": false, + "target_path_selection_owner": "phase14", + "explicit_config_file": { + "path": "absolute_only", + "format": "closed_json", + "encoding": "utf-8", + "file_type": "regular_non_symlink", + "maximum_bytes": 65536, + "duplicate_keys": "rejected", + "unknown_fields": "rejected", + "digest": "sha256_exact_bytes" + }, + "implemented_fields": [ + "database_path", + "listen_address", + "phase8_runtime.disposable_git_root", + "phase8_runtime.git_executable", + "console.root", + "console.asset_manifest" + ], + "environment_discovery_used": false, + "environment_authority_allowed": false, + "environment_secrets_allowed": false, + "process_argument_secrets_allowed": false, + "config_secret_fields_allowed": false, + "secret_inputs": [ + "protected_stdin", + "inherited_file_descriptor", + "os_credential_broker", + "secret_store_reference" + ] + }, + "diagnostics": { + "machine_schema": "lnsat.cli.output.v1", + "implemented_output_formats": ["text", "json", "jsonl", "yaml"], + "reserved_output_formats": [], + "stdout": "requested_result", + "stderr": "public_safe_diagnostics", + "exit_code_families": { + "success": 0, + "refused": 1, + "usage_or_configuration": 2, + "authentication": 3, + "unavailable": 4, + "conflict": 5, + "temporary_failure": 6, + "outcome_unknown": 7, + "internal_failure": 70 + } + }, + "authenticated_read_transport": { + "status": "withdrawn_pending_mutual_daemon_authentication", + "legacy_commands": ["health", "status"], + "fails_before": ["protected_stdin", "unix_connect", "request_bytes"], + "browser_header_pair_transport_changed": false, + "tcp_bearer_transport": false, + "mutation_authority": false + }, + "recovery": { + "inspect": "implemented_read_only", + "contract": "lnsat.operator_recovery.v1", + "backup": "implemented_offline", + "restore": "implemented_inert", + "owner_recovery": "implemented_offline_protected_stdin", + "daemon_quiescence": "exclusive_database_lease", + "existing_file_replacement": false, + "path_reflection": false, + "api": "unavailable", + "mcp": "unavailable", + "ui_action": "unavailable", + "served_mutation": false, + "automatic_activation": false + }, + "service_manager": { + "metadata_contract_only": true, + "install_implemented": false, + "start_implemented": false, + "automatic_start": false, + "sudo_invocation": false, + "privileged_helper": false + }, + "operator_assets": { + "completion_shells": ["bash", "zsh", "fish"], + "man_pages": ["lnsat", "lnsatctl", "lnsatd"], + "generated_to_stdout": true, + "filesystem_install": false + }, + "build_manifest": { + "source_revision_bound": false, + "target_selected": false, + "artifact_digests_present": false, + "phase14_candidate": false + }, + "non_root": { + "runtime_required": true, + "runtime_enforced": true, + "offline_recovery_enforced": true, + "effective_uid_zero": "refused", + "implemented_targets": ["linux", "macos"], + "automatic_privilege_escalation": false, + "target_lifecycle_proof_owner": "phase14" + }, + "parity": { + "contract": "lnsat.gateway.packet_inspection.v0_1", + "cli": true, + "api": true, + "mcp": true, + "ui_projection": true, + "side_effects": [] + }, + "hard_stops": { + "served_recovery_mutation": false, + "production_or_user_repository_consequence": false, + "migration_0018": false, + "key_or_provider_work": false, + "install_or_service_start": false, + "tag_release_publication_deploy": false, + "phase11_or_later_implementation": false, + "automatic_promotion": false + } +} diff --git a/fixtures/contracts/product-surface-v2.json b/fixtures/contracts/product-surface-v2.json index b46052f..6d34432 100644 --- a/fixtures/contracts/product-surface-v2.json +++ b/fixtures/contracts/product-surface-v2.json @@ -2,7 +2,7 @@ "contract_id": "lnsat.product_surface.v2", "contract_version": "lnsat.contracts.v1_0", "schema_version": 2, - "product_version": "0.1.0", + "product_version": "0.2.0", "source_status": "experimental_source", "supported_release": false, "package_or_binary_claim": false, diff --git a/package-lock.json b/package-lock.json index ed3c7b1..ba0b193 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "lnsat", - "version": "0.1.0", + "version": "0.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "lnsat", - "version": "0.1.0", + "version": "0.2.0", "license": "Apache-2.0", "workspaces": [ "apps/*", @@ -25,13 +25,13 @@ }, "apps/api": { "name": "@lnsat/api", - "version": "0.1.0", + "version": "0.2.0", "license": "Apache-2.0", "dependencies": { - "@lnsat/audit": "0.1.0", - "@lnsat/gateway": "0.1.0", - "@lnsat/packets": "0.1.0", - "@lnsat/policy": "0.1.0", + "@lnsat/audit": "0.2.0", + "@lnsat/gateway": "0.2.0", + "@lnsat/packets": "0.2.0", + "@lnsat/policy": "0.2.0", "fastify": "5.12.6", "pg": "8.22.0" }, @@ -74,13 +74,13 @@ }, "apps/console": { "name": "@lnsat/console", - "version": "0.1.0", + "version": "0.2.0", "license": "Apache-2.0", "dependencies": { - "@lnsat/audit": "0.1.0", - "@lnsat/gateway": "0.1.0", - "@lnsat/packets": "0.1.0", - "@lnsat/policy": "0.1.0", + "@lnsat/audit": "0.2.0", + "@lnsat/gateway": "0.2.0", + "@lnsat/packets": "0.2.0", + "@lnsat/policy": "0.2.0", "next": "16.4.1", "react": "^19.2.5", "react-dom": "^19.2.5" @@ -677,16 +677,16 @@ } }, "node_modules/@hono/node-server": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.3.tgz", - "integrity": "sha512-TA//nWMqPhbfdfneACk6t5a9eqbS9lABEPyKn0/xZTah3H3U2XaVg85rJFl0/Fyit0I552YDHgXGVSf3GwqbUw==", + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.6.tgz", + "integrity": "sha512-p/KH9MnfNcsm3sR6x4lNgm5j+QN4Et8srKredl9DZfXiyZ1UQ3aQ2YVpFLbqktYN5JI+DB+VZFKM2PqE5hLKjQ==", "dev": true, "license": "MIT", "engines": { "node": ">=20" }, "peerDependencies": { - "hono": "^4" + "hono": "^4 || ^5.0.0-0" } }, "node_modules/@img/colour": { @@ -1283,15 +1283,15 @@ } }, "node_modules/@modelcontextprotocol/node/node_modules/@hono/node-server": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.3.tgz", - "integrity": "sha512-TA//nWMqPhbfdfneACk6t5a9eqbS9lABEPyKn0/xZTah3H3U2XaVg85rJFl0/Fyit0I552YDHgXGVSf3GwqbUw==", + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.6.tgz", + "integrity": "sha512-p/KH9MnfNcsm3sR6x4lNgm5j+QN4Et8srKredl9DZfXiyZ1UQ3aQ2YVpFLbqktYN5JI+DB+VZFKM2PqE5hLKjQ==", "license": "MIT", "engines": { "node": ">=20" }, "peerDependencies": { - "hono": "^4" + "hono": "^4 || ^5.0.0-0" } }, "node_modules/@modelcontextprotocol/sdk": { @@ -3140,9 +3140,9 @@ } }, "node_modules/hono": { - "version": "4.13.11", - "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.11.tgz", - "integrity": "sha512-/SMX/RQNJn7oNmFwH6DtwDqcrzZU2otm1FD6OJe2cWF6cfy/F8hq0XVBv7xW3FTJshRQwuBnXHDq2kNsdZnshg==", + "version": "4.13.16", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.16.tgz", + "integrity": "sha512-AOLOEhvrV+iH92xXCnFr/5+3KjPKcI3xP63XJtX5spAnkznPdHijlIsUTpi7/9EhWqrTCekw5c5zh1K+YsVw7A==", "license": "MIT", "engines": { "node": ">=16.9.0" @@ -4875,20 +4875,20 @@ }, "packages/audit": { "name": "@lnsat/audit", - "version": "0.1.0", + "version": "0.2.0", "license": "Apache-2.0", "dependencies": { - "@lnsat/packets": "0.1.0", - "@lnsat/policy": "0.1.0" + "@lnsat/packets": "0.2.0", + "@lnsat/policy": "0.2.0" } }, "packages/cli": { "name": "@lnsat/cli", - "version": "0.1.0", + "version": "0.2.0", "license": "Apache-2.0", "dependencies": { - "@lnsat/gateway": "0.1.0", - "@lnsat/packets": "0.1.0" + "@lnsat/gateway": "0.2.0", + "@lnsat/packets": "0.2.0" }, "bin": { "lnsat": "dist/index.js" @@ -4896,27 +4896,27 @@ }, "packages/core": { "name": "@lnsat/core", - "version": "0.1.0", + "version": "0.2.0", "license": "Apache-2.0" }, "packages/gateway": { "name": "@lnsat/gateway", - "version": "0.1.0", + "version": "0.2.0", "license": "Apache-2.0", "dependencies": { - "@lnsat/audit": "0.1.0", - "@lnsat/packets": "0.1.0", - "@lnsat/policy": "0.1.0" + "@lnsat/audit": "0.2.0", + "@lnsat/packets": "0.2.0", + "@lnsat/policy": "0.2.0" } }, "packages/mcp": { "name": "@lnsat/mcp", - "version": "0.1.0", + "version": "0.2.0", "license": "Apache-2.0", "dependencies": { "@cfworker/json-schema": "^4.1.1", - "@lnsat/api": "0.1.0", - "@lnsat/gateway": "0.1.0", + "@lnsat/api": "0.2.0", + "@lnsat/gateway": "0.2.0", "@modelcontextprotocol/core": "2.4.0", "@modelcontextprotocol/node": "2.1.2", "@modelcontextprotocol/server": "2.4.0", @@ -4964,15 +4964,15 @@ }, "packages/packets": { "name": "@lnsat/packets", - "version": "0.1.0", + "version": "0.2.0", "license": "Apache-2.0" }, "packages/policy": { "name": "@lnsat/policy", - "version": "0.1.0", + "version": "0.2.0", "license": "Apache-2.0", "dependencies": { - "@lnsat/packets": "0.1.0" + "@lnsat/packets": "0.2.0" } } } diff --git a/package.json b/package.json index b7b468a..c1b218f 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "lnsat", - "version": "0.1.0", + "version": "0.2.0", "private": true, "type": "module", - "description": "Pre-release source for policy-governed AI-agent authorization, human approval, and audit evidence", + "description": "Pre-release local System One decision engine and optional enforcement gateway for evidence-bound workflows", "keywords": [ "ai-agents", "agent-security", @@ -124,13 +124,14 @@ "vitest": "4.1.12" }, "overrides": { + "@hono/node-server": "2.1.6", "@modelcontextprotocol/sdk": "1.32.0", "body-parser": "2.4.0", "esbuild": "0.28.1", "express-rate-limit": "8.5.2", "fast-uri@^3.0.0": "3.1.9", "fast-uri@^4.0.0": "4.2.3", - "hono": "4.13.11", + "hono": "4.13.16", "ip-address": "10.7.4", "qs": "6.16.1", "sharp": "0.35.5", diff --git a/packages/audit/package.json b/packages/audit/package.json index fd5303e..7af01c9 100644 --- a/packages/audit/package.json +++ b/packages/audit/package.json @@ -1,6 +1,6 @@ { "name": "@lnsat/audit", - "version": "0.1.0", + "version": "0.2.0", "private": true, "description": "Audit contracts and PostgreSQL writer foundation for LNSAT", "repository": { @@ -17,8 +17,8 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@lnsat/packets": "0.1.0", - "@lnsat/policy": "0.1.0" + "@lnsat/packets": "0.2.0", + "@lnsat/policy": "0.2.0" }, "license": "Apache-2.0" } diff --git a/packages/cli/package.json b/packages/cli/package.json index 016e89e..171162f 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@lnsat/cli", - "version": "0.1.0", + "version": "0.2.0", "private": true, "description": "CLI for validating, hashing, and inspecting LNSAT packets", "repository": { @@ -20,8 +20,8 @@ "typecheck": "npm run build -w @lnsat/gateway && tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@lnsat/gateway": "0.1.0", - "@lnsat/packets": "0.1.0" + "@lnsat/gateway": "0.2.0", + "@lnsat/packets": "0.2.0" }, "license": "Apache-2.0" } diff --git a/packages/cli/src/product-surface.ts b/packages/cli/src/product-surface.ts index dd4efc9..b819b4d 100644 --- a/packages/cli/src/product-surface.ts +++ b/packages/cli/src/product-surface.ts @@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url"; export const PRODUCT_SURFACE_CONTRACT_ID = "lnsat.product_surface.v1"; export const PRODUCT_SURFACE_CONTRACT_ID_V2 = "lnsat.product_surface.v2"; export const CLI_OUTPUT_SCHEMA = "lnsat.cli.output.v1"; -export const PRODUCT_SOURCE_VERSION = "0.1.0"; +export const PRODUCT_SOURCE_VERSION = "0.2.0"; type ProductWriter = { write(chunk: string): void; @@ -19,10 +19,7 @@ const manifestPaths = new Map([ [ PRODUCT_SURFACE_CONTRACT_ID, fileURLToPath( - new URL( - "../../../fixtures/contracts/phase10-product-surface-v1.json", - import.meta.url, - ), + new URL("../../../fixtures/contracts/product-surface-v1.json", import.meta.url), ), ], [ diff --git a/packages/cli/test/product-surface.test.ts b/packages/cli/test/product-surface.test.ts index dc6a90f..85e8bca 100644 --- a/packages/cli/test/product-surface.test.ts +++ b/packages/cli/test/product-surface.test.ts @@ -20,7 +20,7 @@ describe("Phase 10 lnsat product surface", () => { const manifest = await loadProductSurfaceManifest(); const fixture = JSON.parse( await readFile( - join(repoRoot, "fixtures", "contracts", "phase10-product-surface-v1.json"), + join(repoRoot, "fixtures", "contracts", "product-surface-v1.json"), "utf8", ), ); @@ -59,11 +59,11 @@ describe("Phase 10 lnsat product surface", () => { it("returns exact raw manifest bytes for default and exact selectors", async () => { for (const [argv, contractId, fixture] of [ - [["manifest"], PRODUCT_SURFACE_CONTRACT_ID, "phase10-product-surface-v1.json"], + [["manifest"], PRODUCT_SURFACE_CONTRACT_ID, "product-surface-v1.json"], [ ["manifest", "--product-surface-contract", PRODUCT_SURFACE_CONTRACT_ID], PRODUCT_SURFACE_CONTRACT_ID, - "phase10-product-surface-v1.json", + "product-surface-v1.json", ], [ ["manifest", "--product-surface-contract", PRODUCT_SURFACE_CONTRACT_ID_V2], diff --git a/packages/core/package.json b/packages/core/package.json index e2050bf..b796733 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@lnsat/core", - "version": "0.1.0", + "version": "0.2.0", "private": true, "description": "Core public types and primitives for LNSAT", "repository": { diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 5e2abf9..4fa2c1e 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -1,4 +1,4 @@ -export const LNSAT_CORE_VERSION = "0.1.0"; +export const LNSAT_CORE_VERSION = "0.2.0"; export const LNSAT_PRODUCT_NAME = "LNSAT"; diff --git a/packages/core/test/core.test.ts b/packages/core/test/core.test.ts index c1791e2..b849edf 100644 --- a/packages/core/test/core.test.ts +++ b/packages/core/test/core.test.ts @@ -8,7 +8,7 @@ import { describe("@lnsat/core", () => { it("exposes the current product identity and lifecycle status", () => { expect(LNSAT_PRODUCT_NAME).toBe("LNSAT"); - expect(LNSAT_CORE_VERSION).toBe("0.1.0"); + expect(LNSAT_CORE_VERSION).toBe("0.2.0"); expect(currentProductLifecycleStatus).toBe("active_development"); }); }); diff --git a/packages/gateway/package.json b/packages/gateway/package.json index 54af43b..dd6f15a 100644 --- a/packages/gateway/package.json +++ b/packages/gateway/package.json @@ -1,6 +1,6 @@ { "name": "@lnsat/gateway", - "version": "0.1.0", + "version": "0.2.0", "private": true, "description": "Transport-neutral Gateway contracts and handlers for LNSAT", "repository": { @@ -32,9 +32,9 @@ "typecheck": "npm run build -w @lnsat/packets && npm run build -w @lnsat/policy && npm run build -w @lnsat/audit && tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@lnsat/audit": "0.1.0", - "@lnsat/packets": "0.1.0", - "@lnsat/policy": "0.1.0" + "@lnsat/audit": "0.2.0", + "@lnsat/packets": "0.2.0", + "@lnsat/policy": "0.2.0" }, "license": "Apache-2.0" } diff --git a/packages/mcp/package.json b/packages/mcp/package.json index dc11d73..ff0b13a 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -1,6 +1,6 @@ { "name": "@lnsat/mcp", - "version": "0.1.0", + "version": "0.2.0", "private": true, "description": "Read-only MCP adapters for LNSAT inspection contracts", "repository": { @@ -25,8 +25,8 @@ }, "dependencies": { "@cfworker/json-schema": "^4.1.1", - "@lnsat/api": "0.1.0", - "@lnsat/gateway": "0.1.0", + "@lnsat/api": "0.2.0", + "@lnsat/gateway": "0.2.0", "@modelcontextprotocol/core": "2.4.0", "@modelcontextprotocol/node": "2.1.2", "@modelcontextprotocol/server": "2.4.0", diff --git a/packages/mcp/src/index.ts b/packages/mcp/src/index.ts index d69bf2b..2813009 100644 --- a/packages/mcp/src/index.ts +++ b/packages/mcp/src/index.ts @@ -3359,7 +3359,7 @@ export type LocalStdioSmokeResponse = const LNSAT_MCP_SERVER_ID = "lnsat.mcp.read_only.v0_1"; const LNSAT_OFFICIAL_MCP_SERVER_NAME = "lnsat.mcp.official.v0_2"; -const LNSAT_OFFICIAL_MCP_SERVER_VERSION = "0.1.0"; +const LNSAT_OFFICIAL_MCP_SERVER_VERSION = "0.2.0"; const LNSAT_REPO_ROOT = fileURLToPath(new URL("../../..", import.meta.url)); type McpToolName = diff --git a/packages/mcp/test/modern-http.test.ts b/packages/mcp/test/modern-http.test.ts index 8371212..4dc1313 100644 --- a/packages/mcp/test/modern-http.test.ts +++ b/packages/mcp/test/modern-http.test.ts @@ -91,7 +91,7 @@ describe("official MCP 2026-07-28 HTTP serving", () => { id: 1, result: { protocolVersion: "2025-11-25", - serverInfo: { name: "lnsat.mcp.official.v0_2", version: "0.1.0" }, + serverInfo: { name: "lnsat.mcp.official.v0_2", version: "0.2.0" }, }, }); expect(observations).toContainEqual({ diff --git a/packages/packets/package.json b/packages/packets/package.json index 2403488..1a38cb3 100644 --- a/packages/packets/package.json +++ b/packages/packets/package.json @@ -1,6 +1,6 @@ { "name": "@lnsat/packets", - "version": "0.1.0", + "version": "0.2.0", "private": true, "description": "Versioned packet and governance contracts for LNSAT", "repository": { diff --git a/packages/policy/package.json b/packages/policy/package.json index ea4196f..c465157 100644 --- a/packages/policy/package.json +++ b/packages/policy/package.json @@ -1,6 +1,6 @@ { "name": "@lnsat/policy", - "version": "0.1.0", + "version": "0.2.0", "private": true, "description": "Policy decision and approval-gate contracts for LNSAT", "repository": { @@ -18,7 +18,7 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@lnsat/packets": "0.1.0" + "@lnsat/packets": "0.2.0" }, "license": "Apache-2.0" } diff --git a/scripts/check-phase10-product-surface-conformance.mjs b/scripts/check-phase10-product-surface-conformance.mjs index 900b58b..ecc1d5a 100644 --- a/scripts/check-phase10-product-surface-conformance.mjs +++ b/scripts/check-phase10-product-surface-conformance.mjs @@ -6,6 +6,7 @@ import { fileURLToPath } from "node:url"; const REPO_ROOT = resolve(fileURLToPath(new URL("..", import.meta.url))); const DEFAULT_EVIDENCE_PATH = "fixtures/contracts/phase10-product-surface-conformance-v1.json"; +const CURRENT_SOURCE_VERSION = "0.2.0"; const FROZEN_PHASE10_RAW_SHA256 = { "fixtures/contracts/phase10-product-surface-v1.json": @@ -147,6 +148,7 @@ function expectedProductSurfaceV2(frozenV1Manifest) { const expected = JSON.parse(JSON.stringify(frozenV1Manifest)); expected.contract_id = "lnsat.product_surface.v2"; expected.schema_version = 2; + expected.product_version = CURRENT_SOURCE_VERSION; expected.binaries.lnsatctl.implemented_commands.splice( 2, 0, @@ -243,7 +245,7 @@ const EXPECTED_DAEMON_STATUS_V2 = { storage_ready: true, }, side_effects: ["session_activity_evidence_may_append"], - source_version: "0.1.0", + source_version: CURRENT_SOURCE_VERSION, }; const EXPECTED_HEADLESS_CONFIG_DIAGNOSTICS_V1 = { @@ -380,6 +382,30 @@ function validateFrozenPhase10Raw(root, paths, errors) { } } +function validateCurrentV1Fixtures(root, paths, errors) { + for (const [current, historical, versionField] of [ + ["product-surface-v1.json", "phase10-product-surface-v1.json", "product_version"], + ["daemon-status-v1.json", "phase10-status-v1.json", "source_version"], + ]) { + const currentPath = `fixtures/contracts/${current}`; + const historicalPath = `fixtures/contracts/${historical}`; + try { + const baseline = readFileSync(resolve(root, historicalPath), "utf8"); + const originalField = `"${versionField}": "0.1.0"`; + const nextField = `"${versionField}": "${CURRENT_SOURCE_VERSION}"`; + const expected = Buffer.from(baseline.replace(originalField, nextField)); + const actual = readFileSync(paths?.[currentPath] ?? resolve(root, currentPath)); + if (baseline.split(originalField).length !== 2 || !actual.equals(expected)) { + errors.push( + `current v1 fixture: only source version may differ in ${currentPath}`, + ); + } + } catch (error) { + errors.push(`current v1 fixture: unreadable ${currentPath} (${String(error)})`); + } + } +} + function validateRows(root, rows, expectedIds, withCommand, path, errors) { if (!Array.isArray(rows)) { errors.push(`${path}: expected array`); @@ -439,10 +465,12 @@ export function validatePhase10ProductSurfaceConformance({ "fixtures/contracts/headless-config-diagnostics-v1.json", ), frozenPhase10RawPaths, + currentV1Paths, migrationsPath = resolve(root, "crates/lnsat-store/migrations"), } = {}) { const errors = []; validateFrozenPhase10Raw(root, frozenPhase10RawPaths, errors); + validateCurrentV1Fixtures(root, currentV1Paths, errors); const evidence = readJson(evidencePath, errors); if ( !exactKeys( @@ -584,6 +612,9 @@ export function validatePhase10ProductSurfaceConformance({ const packageJson = readJson(packagePath, errors); if (packageJson) { + if (packageJson.version !== CURRENT_SOURCE_VERSION) { + errors.push("package.json: current product/source version mismatch"); + } if ( !packageJson.scripts?.check?.includes( "npm run phase10:exit:test && npm run phase10:exit:check", diff --git a/scripts/check-phase10-product-surface-conformance.test.mjs b/scripts/check-phase10-product-surface-conformance.test.mjs index e28bd2a..b8c0298 100644 --- a/scripts/check-phase10-product-surface-conformance.test.mjs +++ b/scripts/check-phase10-product-surface-conformance.test.mjs @@ -196,6 +196,32 @@ test("P10-X1 rejects raw-byte drift in frozen Phase 10 fixtures", () => { assert.match(result.errors.join("\n"), /sha256 mismatch/u); }); +test("current v1 fixtures advance source version with exact historical semantics", () => { + for (const [path, mutate] of [ + [ + "fixtures/contracts/product-surface-v1.json", + (fixture) => { + fixture.product_version = "0.1.0"; + }, + ], + [ + "fixtures/contracts/daemon-status-v1.json", + (fixture) => { + fixture.phase10.phase11_open = true; + }, + ], + ]) { + const result = validatePhase10ProductSurfaceConformance({ + root, + currentV1Paths: { [path]: mutatedJson(path, mutate) }, + }); + assert.equal(result.ok, false); + assert.deepEqual(result.errors, [ + `current v1 fixture: only source version may differ in ${path}`, + ]); + } +}); + test("P10-X1 rejects HCFG-1 product, status, or config authority drift", () => { const productSurfaceV2Path = mutatedJson( "fixtures/contracts/product-surface-v2.json", diff --git a/scripts/check-phase11-docker-proof-readiness.mjs b/scripts/check-phase11-docker-proof-readiness.mjs index 07a1171..e12c66b 100644 --- a/scripts/check-phase11-docker-proof-readiness.mjs +++ b/scripts/check-phase11-docker-proof-readiness.mjs @@ -350,7 +350,7 @@ const EXPECTED_DOC_MARKERS = { ], "docs/RELEASING.md": [ "## Version Contract", - "Current product/source SemVer remains unpublished `0.1.0`.", + "Current product/source SemVer remains unpublished `0.2.0`.", "does not open a version transition", ], "docs/architecture/README.md": [ diff --git a/scripts/check-product-direction-alignment.test.mjs b/scripts/check-product-direction-alignment.test.mjs index b405ad9..a740727 100644 --- a/scripts/check-product-direction-alignment.test.mjs +++ b/scripts/check-product-direction-alignment.test.mjs @@ -44,7 +44,7 @@ test("current version snapshot binds complete table assertions", () => { assert.deepEqual(collectCurrentVersionSnapshotErrors(value), []); const mutations = [ - ["| `0.1.0`", "| `0.2.0`", "Product/source SemVer"], + ["| `0.2.0`", "| `0.1.0`", "Product/source SemVer"], ["| `lnsat.contracts.v1_0`", "| `lnsat.contracts.v1_1`", "Gateway wire contract"], ["| SQLite schema `18`", "| SQLite schema `19`", "Local persistence schema"], [ @@ -82,7 +82,7 @@ test("historical tokens and duplicate rows cannot satisfy current snapshot", () .split("\n") .find((line) => line.startsWith("| Product/source SemVer")); assert.ok(row); - const altered = value.replace(row, row.replace("`0.1.0`", "`0.2.0`")); + const altered = value.replace(row, row.replace("`0.2.0`", "`0.1.0`")); assert.match( collectCurrentVersionSnapshotErrors(`${altered}\nHistorical: ${row}\n`).join("\n"), /current version snapshot mismatch: Product\/source SemVer/u, @@ -170,7 +170,7 @@ test("additive published maturity claim fails closed", () => { const values = documents(); values.set( "docs/PROJECT_STATUS.md", - `${values.get("docs/PROJECT_STATUS.md")}\nLNSAT 0.1.0 is supported and published. Hosted runtime is available.\n`, + `${values.get("docs/PROJECT_STATUS.md")}\nLNSAT 0.2.0 is supported and published. Hosted runtime is available.\n`, ); assert.match(errors(values).join("\n"), /source-only\/unpublished/u); }); @@ -341,8 +341,8 @@ test("published/runtime availability contradictions fail closed", () => { .replace("| Distribution | Not available |", "| Distribution | Available |") .replace("| Hosted runtime | Not available |", "| Hosted runtime | Available |") .replace( - "LNSAT `0.1.0` is pre-release, source-only software.", - "LNSAT `0.1.0` is supported and published.", + "LNSAT `0.2.0` is pre-release, source-only software.", + "LNSAT `0.2.0` is supported and published.", ), ); assert.match(errors(values).join("\n"), /source-only\/unpublished/u); @@ -353,6 +353,7 @@ test("production-ready maturity synonym fails closed", () => { "LNSAT 0.1.0 is production-ready.", "LNSAT 0.1.0 is production ready.", "LNSAT 0.1.0 is generally available.", + "LNSAT 0.2.0 is generally available.", ]) { const values = documents(); values.set( diff --git a/scripts/product-direction-invariants.mjs b/scripts/product-direction-invariants.mjs index 95b94b5..b23a2ff 100644 --- a/scripts/product-direction-invariants.mjs +++ b/scripts/product-direction-invariants.mjs @@ -5,7 +5,7 @@ function compact(value) { const currentVersionSnapshotRows = [ [ "Product/source SemVer", - "`0.1.0`", + "`0.2.0`", "Pre-release source; npm workspaces private and Rust crates unpublished", ], [ @@ -132,7 +132,7 @@ function tableValue(value, label) { function hasCurrentMaturityContradiction(value) { const lnsatClaim = - /\blnsat(?:\s+`?0\.1\.0`?)?\s+(?:is|is now|has become)\s+(?:supported|published|released|shipped|available|production[- ]ready|generally\s+available|ga)\b/iu; + /\blnsat(?:\s+`?\d+\.\d+\.\d+`?)?\s+(?:is|is now|has become)\s+(?:supported|published|released|shipped|available|production[- ]ready|generally\s+available|ga)\b/iu; const currentClaim = /\bcurrent\s+(?:maturity|product|release|runtime|software|status)\b[^.!?;]{0,40}\b(?:is|are|has become)\s+(?:now\s+)?(?:supported|published|released|shipped|available|production[- ]ready|generally\s+available|ga)\b/iu; const surfaceClaim = @@ -279,7 +279,7 @@ export function collectBuildSequenceErrors(readSource) { const sequenceCompact = compact(sequence); if ( - !status.includes("LNSAT `0.1.0` is pre-release, source-only software.") || + !status.includes("LNSAT `0.2.0` is pre-release, source-only software.") || hasCurrentMaturityContradiction(status) || distributionValue !== "not available" || hostedRuntimeValue !== "not available" || From f0ad228871f3ee5b0229647ae6e2034395455c04 Mon Sep 17 00:00:00 2001 From: jefftj86 Date: Sun, 15 Nov 2026 23:55:06 -0800 Subject: [PATCH 2/2] docs: attest System One 0.2.0 source review Signed-off-by: jefftj86 --- .../legacy-identifier-inventory.json | 2 +- .../PHR-0106/review.json | 232 ++++++++++++++++++ .../public-history-reviews/registry.json | 2 +- 3 files changed, 234 insertions(+), 2 deletions(-) create mode 100644 docs/reference/public-history-reviews/PHR-0106/review.json diff --git a/docs/reference/legacy-identifier-inventory.json b/docs/reference/legacy-identifier-inventory.json index 59d1010..96e3ccd 100644 --- a/docs/reference/legacy-identifier-inventory.json +++ b/docs/reference/legacy-identifier-inventory.json @@ -1,6 +1,6 @@ { "schema_version": "1.0", - "source_tree_sha256": "75f6d497e45cdb4b7589b783bb9cd3eb9a59e30f5a874c60e5bd9c5b340b9f24", + "source_tree_sha256": "0b888dfd9aaf7eb4e769f2a159270195d12ffc2a41813cd9e837cb0c2899cca9", "scope": { "tracked_text_files_only": true, "excluded_inventory_mechanics": [ diff --git a/docs/reference/public-history-reviews/PHR-0106/review.json b/docs/reference/public-history-reviews/PHR-0106/review.json new file mode 100644 index 0000000..e81ad4c --- /dev/null +++ b/docs/reference/public-history-reviews/PHR-0106/review.json @@ -0,0 +1,232 @@ +{ + "schema_version": "lnsat.security_review.v1", + "review_id": "PHR-0106-independent-implementation-review-93dc66e9", + "review_type": "independent_implementation_review", + "packet_ids": ["system-one-decision-engine-direction"], + "base_revision": "87e9cf11378fc980289ae1a8dd57ba0535fb51d6", + "reviewed_revision": "93dc66e96f7195616097676d8bc506c4bb70e2dd", + "reviewed_tree_oid": "da5115d5d370eac243b7e7e9f350bf5c399fe13a", + "diff_sha256": "sha256:0bcfbce94c108753486d467c3e18a7ab7344592a9eb8ecc0e9526fc0a1ca8d13", + "protected_files": [ + { + "path": "CHANGELOG.md", + "sha256": "sha256:6fb6c228226d5510232a830920652cfad11521ee61d2be85f520a6c6a8c42000" + }, + { + "path": "Cargo.lock", + "sha256": "sha256:11f9071969f2ac8b9292f822030f9032bd93d292fed1bc9c3b71dba7832fd6c3" + }, + { + "path": "Cargo.toml", + "sha256": "sha256:e4388fe9d47a3bcd5b5c1aa863e1bd221fb215ffd3f8b5a18489fc6d35a7547c" + }, + { + "path": "README.md", + "sha256": "sha256:c2f6dfc23df0866d00da643f68013c84a81214eda149c621450d871d24dceaf2" + }, + { + "path": "apps/api/package.json", + "sha256": "sha256:4c274a62b35298d37e61b7368cd9bceca5daf057249b79aef1c1f6f8a75e0efd" + }, + { + "path": "apps/console/package.json", + "sha256": "sha256:360d316035dfff516815c20f6789d59465e1139beead1d5d004f4e96f8023c50" + }, + { + "path": "crates/lnsat-store/src/phase7_consumption/request_admission/request_coordinator/request_observer/tests.rs", + "sha256": "sha256:356277e54abd5cbaed6f0d1c38d4e1c45b0a57b3ecf36411843cbcfa6398a7b8" + }, + { + "path": "crates/lnsatd/src/lib.rs", + "sha256": "sha256:1a1232e4a5afd13679d48e3b2b0a5c4aa3ed77888e54ffb36854e85af160b95e" + }, + { + "path": "crates/lnsatd/src/product_surface.rs", + "sha256": "sha256:846b96f5acd2ce36b3f49598d9c070df3db8af06d8e21e7bb6bd2fac86e8e85f" + }, + { + "path": "crates/lnsatd/src/product_transport.rs", + "sha256": "sha256:8ea9f6ff3e8c981bb82c9d0369a66b966e77ccbefeff9d1a4f37e4f59c30893f" + }, + { + "path": "crates/lnsatd/tests/product_surface_cli.rs", + "sha256": "sha256:3876fbf97b2ddc3a4ea1155951ff083ff41671944e1ea5190141cc1ff2a5179a" + }, + { + "path": "docs/PRODUCT_BUILD_SEQUENCE.md", + "sha256": "sha256:8d0881a2effb4fcfa962d1a94388e83f37dc8ddfc690cacb05e7d482dbf5aea9" + }, + { + "path": "docs/PROJECT_STATUS.md", + "sha256": "sha256:e89f98b3fc0082023120f794b82228087f44560579631354be29578786c62887" + }, + { + "path": "docs/RELEASING.md", + "sha256": "sha256:72094e1f63dffa92a6e8dbf5c3027547be53517d489c5e56122c0dd127b18c04" + }, + { + "path": "docs/ROADMAP.md", + "sha256": "sha256:319c91a531bdd167f10820f2ece5beb5d337e6c3480e2f5ce8e7ad90697bd6c3" + }, + { + "path": "docs/WHY_PUBLIC_NOW.md", + "sha256": "sha256:7de0665b0e21145b87c0f42378128a5c4077c3cda13456697ed48fce17777822" + }, + { + "path": "docs/architecture/CRYPTO_OPERATION_PROVIDER_INVENTORY.md", + "sha256": "sha256:7701783c50148c40fbacbfa0d38deb80b182e878e78d7b720fbb5757c0c862e5" + }, + { + "path": "docs/architecture/PHASE_10_PRODUCT_SURFACE_CONTRACT_SPINE.md", + "sha256": "sha256:1e8a569f8536c900f6ad5ca269430b0ebec6b16afaa51b5b6f30b5e6c8bcbd8b" + }, + { + "path": "docs/reference/CONTRACT_VERSIONING.md", + "sha256": "sha256:e09fce8a78062e6ab1bcd7ee16c026acbc08bffac428e4d5a31a708d9710cf7e" + }, + { + "path": "docs/reference/PRODUCT_DIRECTION_ALIGNMENT.md", + "sha256": "sha256:1cbd43f85c90f8c62cf01086d531c42bc78a7e14278b25615eeddb7d322962c9" + }, + { + "path": "docs/reference/legacy-identifier-inventory.json", + "sha256": "sha256:2b5b10bf8c0c405f6090e2aabbe99279c5c699c94e369df17d24844fc73ab1e0" + }, + { + "path": "docs/reference/public-history-reviews/registry.json", + "sha256": "sha256:f4534cd93571f1c9a5e3f1d3f664663e8164185cea0fd3c7fab71a1637f30b35" + }, + { + "path": "docs/sdk/migration.md", + "sha256": "sha256:9b88fd4d03bc3c0b9b81cd80ed8d9e752083023e3d0a5038364ae4a1fa8c1835" + }, + { + "path": "docs/sdk/typescript-reference.md", + "sha256": "sha256:ee207248c52df182d0734eda43dcf07bd99ee7ac8bd1191766bdb7c16477b5cc" + }, + { + "path": "fixtures/contracts/daemon-status-v1.json", + "sha256": "sha256:8a5fb685d19dd993e1832830097bbd971823f3d094e2f76e6d82728d37784661" + }, + { + "path": "fixtures/contracts/daemon-status-v2.json", + "sha256": "sha256:2e8f93dbf83a25bd259e0acca984ad22aa48b5f0b41ec2c014ccfc2fb163cae1" + }, + { + "path": "fixtures/contracts/product-surface-v1.json", + "sha256": "sha256:0876e5ae82bce19cdf6cb036a91902c3f66ac056148d681a4f5982e690fd652a" + }, + { + "path": "fixtures/contracts/product-surface-v2.json", + "sha256": "sha256:281e01c659462f18a73fa6b335a9fe55dd4ff876e15160fbb79b24c7e15ee3dd" + }, + { + "path": "package-lock.json", + "sha256": "sha256:6244b3f4bb6f3379619cacf450b1cdd190fbf274cc2998d0db106247541c7a05" + }, + { + "path": "package.json", + "sha256": "sha256:8c0976a694c0815b85c0877b41f04791d68f4f23f464017ae963233a652323b5" + }, + { + "path": "packages/audit/package.json", + "sha256": "sha256:4235fb34b504db85818db3d37a39e073f5315a6b5372ae91d0180cb3475c9699" + }, + { + "path": "packages/cli/package.json", + "sha256": "sha256:2cfd232e3ea4b8bb3b7fe36d127b4ea068c33537b8e8d5b4ce9cc188342bf375" + }, + { + "path": "packages/cli/src/product-surface.ts", + "sha256": "sha256:ddf5bf6ff3cd298d20c0564c21fa463c78816c962ed50aee717f57383b2c8753" + }, + { + "path": "packages/cli/test/product-surface.test.ts", + "sha256": "sha256:33fe9ddbc0cda5c94e79cc6140ef888f8287d115efaa03fbd1cf0a1731c9a703" + }, + { + "path": "packages/core/package.json", + "sha256": "sha256:8e6ccb3c66efcdd050bcab84792e4df9b190c31b399218bbbe6f386798e95d73" + }, + { + "path": "packages/core/src/index.ts", + "sha256": "sha256:3ce4e728a2bad3d37cd1a2027b3056a2224043c882b55d0888d365982ea92f16" + }, + { + "path": "packages/core/test/core.test.ts", + "sha256": "sha256:3272148b5ba0d254ae09eaf6553cc1a0a265f097e0303caacc5ac0e87dd121e8" + }, + { + "path": "packages/gateway/package.json", + "sha256": "sha256:00a9bb9d833a99950f1d07bdf2661a0cdba6cab49c1b4f768a639bacb42311c0" + }, + { + "path": "packages/mcp/package.json", + "sha256": "sha256:12bfabb3ff6170d067854e58005947a880b34f29b2c7344a4fcf5468369222b2" + }, + { + "path": "packages/mcp/src/index.ts", + "sha256": "sha256:3f913f8b0c6c5879b79dd535ea4e5d2720b8285db621f156dda41424af2069ba" + }, + { + "path": "packages/mcp/test/modern-http.test.ts", + "sha256": "sha256:d2787ce5fa6fb4d1089d6e89165893ace7a2a451ff874bf2953329761998c04f" + }, + { + "path": "packages/packets/package.json", + "sha256": "sha256:9032046b03fc27bdc0992d342814c64090df2ec4e61e6214d52ad473eefd9a13" + }, + { + "path": "packages/policy/package.json", + "sha256": "sha256:0eed52eb67d8ed6aa890f256fe567eb4ec57bd8c737c764d0e16a040793e1bbb" + }, + { + "path": "scripts/check-phase10-product-surface-conformance.mjs", + "sha256": "sha256:830c660c0d84d039cfc035354fe138e209f8c05081419fcf5992cebc6d0640b4" + }, + { + "path": "scripts/check-phase10-product-surface-conformance.test.mjs", + "sha256": "sha256:9f1a96ff11890055f30e13c720261dd23837b1ae8418a8d6b21a30040ba09ad2" + }, + { + "path": "scripts/check-phase11-docker-proof-readiness.mjs", + "sha256": "sha256:10825a2a42e46469fc20a9cdc7c273f5545cd5dee1214fb8518d5bfba37d997e" + }, + { + "path": "scripts/check-product-direction-alignment.test.mjs", + "sha256": "sha256:d3331325c47f987af0d023801d09ec6e04bc9a8592f739aa8fad2d05f2eb76ed" + }, + { + "path": "scripts/product-direction-invariants.mjs", + "sha256": "sha256:44d05cfdb004441903f5c11fbe45f3ea339ce67b0292de9b891280a1a4c45ac9" + } + ], + "reviewer": { + "identity": "codex-agent:/root/system_one_source_review", + "kind": "agent", + "independent_from_author": true, + "tool": "OpenAI Codex native gpt_reviewer, configured gpt-5.6-terra/xhigh. Independent whole-source and correction reviews bound the final staged tree. Backend runtime model identity unexposed." + }, + "findings": [ + { + "finding_id": "PHR-0106-F1", + "severity": "P1", + "status": "resolved", + "disposition": "accepted_fixed", + "summary": "Preserve the frozen Phase 10 fixture bytes and raw hashes. Route current source outputs through separate version-only successor fixtures.", + "resolution_revision": "93dc66e96f7195616097676d8bc506c4bb70e2dd" + }, + { + "finding_id": "PHR-0106-F2", + "severity": "P2", + "status": "resolved", + "disposition": "accepted_fixed", + "summary": "Scope the Gateway authority claim to managed workflow actions and distinguish existing operator-local CLI contracts.", + "resolution_revision": "93dc66e96f7195616097676d8bc506c4bb70e2dd" + } + ], + "verdict": "approved", + "execution_authorized": false, + "runtime_authority_opened": false, + "side_effects": [] +} diff --git a/docs/reference/public-history-reviews/registry.json b/docs/reference/public-history-reviews/registry.json index d9bda46..8c41db7 100644 --- a/docs/reference/public-history-reviews/registry.json +++ b/docs/reference/public-history-reviews/registry.json @@ -850,7 +850,7 @@ "review_subject_ids": ["system-one-decision-engine-direction"], "manifest_path": "docs/reference/public-history-reviews/PHR-0106/review.json", "review_type": "independent_implementation_review", - "state": "pending" + "state": "attested" } ] }