Skip to main content

LBE Persistent Agent Runtime

LBE is a persistent, provider-neutral local agent runtime with a CLI-first control surface.

V2 owns persistent sessions, provider-neutral model transport, governed tools, live tool/process events, evidence, validation, completion semantics, and the initial typed agent-control protocol.

The public installation/bootstrap surface is:

npm / npx
  -> @letterblack/lbe
  -> thin Node installer / launcher
  -> exact approved public Python runtime
  -> managed Python environment
  -> `lbe` CLI

The Node/npm layer does not implement a second LBE runtime. It discovers Python, acquires and verifies the approved Python artifact, installs/launches/upgrades the managed runtime, and diagnoses installation state.

Current V2 release line

Published V2.0 history:

@letterblack/lbe 2.0.0
lbe-guard-inspector 2.0.0

V2.0 froze the verified professional runtime through P7 plus the verified P8 typed control-protocol contract and initialization/read-only session/event handlers.

The 2.0.1 correction keeps the same runtime ownership boundary but fixes the public end-user installation path:

@letterblack/lbe 2.0.1
lbe-guard-inspector 2.0.1

A normal public user must not need the private repository or a manually copied wheel.

Public install

Install the public launcher:

npm install --global @letterblack/lbe@2.0.1

Install the managed runtime:

lbe --install

The launcher acquires the exact configured lbe-guard-inspector==2.0.1 universal wheel from the public Python registry, validates package identity/version, validates the approved HTTPS artifact host, verifies SHA-256, creates the managed environment, installs the runtime, verifies the installed version and lbe executable, and confirms runtime compatibility.

Then verify/use LBE:

lbe --diagnose
lbe --help
lbe provider list
lbe provider check ...
lbe session create ...
lbe session status ...
lbe audit ...
lbe investigate ...
lbe code ...

Use lbe --help and command-level help as the executable source of truth for exact runtime arguments.

Offline/developer override

A local wheel remains supported only as an explicit offline/developer path:

lbe --install --wheel "C:\path\to\lbe_guard_inspector-2.0.1-py3-none-any.whl"

This is not the normal public-user workflow.

Current architecture

User / external agent
        |
        v
`lbe` CLI / control protocol
        |
        v
Persistent LBE runtime
        |
        +-- session + workspace identity
        +-- provider/model selection
        +-- mode + permissions + policy
        +-- governed tool orchestration
        +-- live command/tool events
        +-- evidence + deterministic validation
        +-- checkpoint / resume / revalidation
        `-- validated completion persistence
        |
        v
replaceable reasoning provider
        |
        v
controlled workspace operations

Core ownership rule:

Provider reasons.
LBE runtime orchestrates.
LBE governance authorizes.
Governed tools execute.
Workspace evidence supplies current facts.
Validation proves.
Persistent session state belongs to LBE.

Distribution boundary

The public npm package remains bootstrap/distribution infrastructure. It does not implement provider/session/governance/tool/evidence/completion behavior and does not embed user credentials, runtime databases, proof workspaces, or persistent state.

For the corrected 2.0.1 public flow, the matching Python runtime must be available from a public registry that requires no authentication to the private source repository. The npm launcher pins the exact Python version and fails closed if that public artifact is missing or fails integrity checks.

Canonical public-distribution contract:

  • docs/design/PUBLIC_RUNTIME_DISTRIBUTION_CONTRACT.md
  • docs/acceptance/V2_0_1_PUBLIC_INSTALLER_READINESS.md

Runtime and state boundary

The npm launcher and Python runtime keep installation, configuration, and persistent state separate.

LBE_HOME/
  runtime/   managed versioned Python environments and transient download cache
  config/    user-owned runtime/provider configuration
  state/     persistent SQLite/session state

LBE_HOME may be set to choose a controlled user-scoped location.

Provider credentials remain external user-owned configuration. They must not be embedded in npm package contents, Python package source, runtime databases, acceptance records, or Git history.

Runtime replacement must not delete user-owned config/ or state/.

Provider model

LBE does not provide or bundle AI models/accounts.

The user selects a supported provider/model connection. The provider performs reasoning; LBE remains authoritative for workspace scope, permissions, governed execution, evidence, validation, and persistent task/session state.

The runtime includes first-party openai, anthropic, and gemini adapters plus openai-compatible for compatible endpoints. All adapters use the same persistent LBE session, governance, tools, evidence, validation, and completion owners; changing an adapter never transfers those authorities to a provider.

Operating modes

The runtime exposes thin CLI mode commands over the same persistent runtime services:

  • lbe code — governed coding workflow;
  • lbe audit — read-only audit workflow;
  • lbe investigate — investigation workflow.

These commands do not implement separate policy, provider, evidence, or completion systems.

Persistent sessions

The CLI supports persistent session lifecycle operations including creation, status, checkpoint/resume/continue, and validation paths implemented by the runtime.

Resume is evidence-aware: persisted memory is not treated as live workspace truth. Current Git/workspace state is re-inspected and stale source-backed facts are invalidated before continued execution.

Release history and scope

@letterblack/lbe@0.1.0 remains the first public bootstrap release.

@letterblack/lbe@2.0.0 is the first published V2 major release and remains historical evidence.

2.0.1 is a patch correction to the public installation experience. It does not claim the later P8 mutation controls, live subscriptions, stdio transport, MCP/interactive clients, browser capability, or additional professional capability backends as completed.

Canonical evidence includes:

  • docs/design/PROFESSIONAL_AGENT_RUNTIME_CANONICAL_IMPLEMENTATION_PLAN.md
  • docs/design/PUBLIC_RUNTIME_DISTRIBUTION_CONTRACT.md
  • docs/acceptance/C5_R7_ACCEPTANCE_RECORD.md
  • docs/acceptance/POST_V1_RELEASE_PACKAGE_READINESS.md
  • docs/acceptance/POST_V1_NPM_CONSUMER_DISTRIBUTION_READINESS.md
  • docs/acceptance/V2_RELEASE_READINESS.md
  • docs/acceptance/V2_0_1_PUBLIC_INSTALLER_READINESS.md

Legacy Guard Inspector surfaces

The original deterministic Guard Inspector and audit surfaces remain installed compatibility/read-only capabilities:

lbe-guard-inspector
lbe-guard-inspector-evidence
lbe-guard-audit

They are no longer the complete product identity or primary user control surface. The primary persistent-agent control surface is lbe.

Python package

The 2.0.1 managed Python runtime package builds as:

lbe-guard-inspector 2.0.1

with Python >=3.11 and console entry point:

lbe = lbe_guard_inspector.cli:main

The historical Python distribution name does not change runtime ownership: lbe is the primary CLI and persistent LBE runtime surface.

Development and release validation

Run the repository suite:

python -m pytest -q

Build the Python release artifacts:

python -m build

Run npm bootstrap tests and tarball audit from npm/:

npm test
npm pack --dry-run --json

The v2-release-candidate workflow builds/tests the coordinated 2.0.1 artifacts. The publish-python-runtime workflow is the explicit public Python-registry publication path and requires the repository's pypi environment/trusted-publisher configuration.

For 2.0.1, npm publication is downstream of Python publication and clean public installation proof:

exact source revision
-> Python tests/build
-> public Python registry publication
-> verify exact public wheel metadata/digest
-> npm tests/tarball audit
-> clean public `lbe --install`
-> npm publication
-> clean unauthenticated npm consumer proof

Non-goals / invariants

Do not introduce:

  • a second Node session/runtime implementation;
  • a Node provider authority;
  • a second permission/policy resolver;
  • a second governed tool registry;
  • a second evidence/completion system;
  • unrestricted generic shell bypasses;
  • provider credentials inside package/runtime state;
  • private-repository authentication as a normal public-install requirement;
  • unpinned or integrity-unverified runtime acquisition;
  • memory as a replacement for current workspace/Git evidence.

The npm layer distributes LBE. The Python LBE runtime remains the single execution/governance authority.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lbe_guard_inspector-2.0.1.tar.gz (197.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lbe_guard_inspector-2.0.1-py3-none-any.whl (250.0 kB view details)

Uploaded Python 3

File details

Details for the file lbe_guard_inspector-2.0.1.tar.gz.

File metadata

  • Download URL: lbe_guard_inspector-2.0.1.tar.gz
  • Upload date:
  • Size: 197.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.4

File hashes

Hashes for lbe_guard_inspector-2.0.1.tar.gz
Algorithm Hash digest
SHA256 3ab24a3cc5977fac5448b77cea4fa45f58c526358ab9b94de77e2fab7597ab3f
MD5 53f0074ebe0945027ca8807ecaf2a292
BLAKE2b-256 f3701fe0af134abec55b6d4127eab210bbf1c0f48c720bf1f394e40aee6d358b

See more details on using hashes here.

File details

Details for the file lbe_guard_inspector-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lbe_guard_inspector-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a4df62e54266ab8146f6cb925da8251ec5b77fe54a94b3e6a45a7fa7799bfd8
MD5 7ec98464f8e9bc128188783691ac291a
BLAKE2b-256 f127504ade780cafba502157e798a8d15ef57d79d9645d195d201feb868e79ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page