Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
111 changes: 81 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) ·
Expand All @@ -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
Expand Down Expand Up @@ -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 |
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions apps/api/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
},
Expand Down
10 changes: 5 additions & 5 deletions apps/console/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion crates/lnsatd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 3 additions & 3 deletions crates/lnsatd/src/product_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion crates/lnsatd/src/product_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions crates/lnsatd/tests/product_surface_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down Expand Up @@ -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"])
Expand Down
6 changes: 6 additions & 0 deletions docs/PRODUCT_BUILD_SEQUENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading