LNSAT

Command Center

Platformactive nonenext BP-0217read-only2026-05-16

COMMAND CENTER

Management Overview

docs/build/STATUS.json
Next packetBP-0217

Source-Only Auth Session And Authorization Levels Readiness Contract.

docs/build/BOARD.md
Project
LNSAT
Phase
Platform
Last verified
2026-05-16
Queued packets
1

BP-0191 cleanup is complete. BP-0182 Local Knowledge Record Model is complete. BP-0183 Local Repo Knowledge Index is complete. BP-0184 Knowledge Search And Context Bundle is complete. BP-0185 Management UI Information Architecture is complete. BP-0186 Management Overview UI MVP is complete. BP-0187 Knowledge UI MVP is complete. BP-0188 Eval Harness is complete. BP-0189 Persistence Plan is complete. BP-0190 Approval Center Plan And UI Preview is complete. BP-0192 Read-Only Knowledge Gateway API Contract is complete. BP-0193 Auth And User-Owned Integration Boundary is complete. BP-0194 Settings Policy Auth Posture UI Preview is complete. BP-0195 Read-Only MCP Knowledge Surface Contract is complete. BP-0196 Read-Only Packet Management UI Preview is complete. BP-0197 Read-Only Agent Management UI Preview is complete. BP-0198 Read-Only Audit Management UI Preview is complete. BP-0199 Read-Only Substrates Management UI Preview is complete. BP-0200 Read-Only Runtime Readiness Management UI Preview is complete. BP-0201 Read-Only Management Navigation And MVP Surface Review is complete. BP-0202 Read-Only Persistence And Policy Gate Review is complete. BP-0203 Source-Only Persistence Gate Contract is complete. BP-0204 Source-Only Persistence Schema Contract is complete. BP-0205 Source-Only Migration Artifact Static Review Contract is complete. BP-0206 GitHub Repository Publication Checkpoint is complete: public repo https://github.com/hypler-dev/LNSAT, branch main, publication commit 7dba5e1dfbe12901f8d9886463d51f34e83f521f. BP-0207 MVP Path And Publication Readiness Review is complete. BP-0208 Source-Only Writer Preflight Contract is complete. BP-0209 Source-Only Database Security Preflight Contract is complete. BP-0210 Source-Only Policy Gate Preflight Contract is complete. BP-0211 Source-Only Approval Request Preflight Contract is complete. BP-0212 Source-Only Persistence Readiness Preflight Contract is complete. BP-0213 Source-Only Implementation Packet Selection Review is complete and selected persisted knowledge records/source snapshots. BP-0214 Source-Only Knowledge Persistence Implementation Packet Contract is complete. BP-0215 Source-Only Persisted Knowledge Read Surface Contract is complete. BP-0216 Source-Only Self-Deploy Packaging Plan Contract is complete. BP-0217 Source-Only Auth Session And Authorization Levels Readiness Contract is queued next.

Verification snapshot

Last known source checks: npm run docs:check, npm run check, npm run format:check, gh api user --jq .login returned hypler-dev, gh repo view hypler-dev/LNSAT returned PUBLIC with default branch main, git ls-remote --heads origin main returned 7dba5e1dfbe12901f8d9886463d51f34e83f521f, env/key/local DB screening found only .env.example and no publishable key or DB files, secret-pattern screening found no private key/token patterns in publishable files, npm run test -w @lnsat/packets -- writer-preflight-contract, npm run test -w @lnsat/packets -- database-security-preflight-contract, npm run test -w @lnsat/packets -- policy-gate-preflight-contract, npm run test -w @lnsat/packets -- approval-request-preflight-contract, npm run typecheck -w @lnsat/packets, npm run test -w @lnsat/web -- packet-management management-overview management-surface-index, npm run test -w @lnsat/packets -- approval-request-preflight-contract policy-gate-preflight-contract database-security-preflight-contract writer-preflight-contract migration-artifact-static-review persistence-schema-contract persistence-policy-gate, npm run check passed after BP-0211 updates, npm run test -w @lnsat/packets -- persistence-readiness-preflight-contract, npm run test -w @lnsat/packets -- persistence-readiness-preflight-contract approval-request-preflight-contract policy-gate-preflight-contract database-security-preflight-contract writer-preflight-contract migration-artifact-static-review persistence-schema-contract persistence-policy-gate, npm run typecheck -w @lnsat/packets, npm run test -w @lnsat/web -- packet-management management-overview management-surface-index, npm run docs:check, npm run format:check, npm run check passed after BP-0212 updates, npm run test -w @lnsat/web -- packet-management management-overview management-surface-index, npm run test -w @lnsat/web, npm run docs:check, npm run format:check, npm run check passed after BP-0213 updates, npm run test -w @lnsat/packets -- knowledge-persistence-implementation-packet, npm run typecheck -w @lnsat/packets, npm run test -w @lnsat/web -- packet-management management-overview management-surface-index, npm run docs:check, npm run format:check, npm run check passed after BP-0214 updates, npm run test -w @lnsat/packets -- persisted-knowledge-read-surface-contract, npm run typecheck -w @lnsat/packets, npm run test -w @lnsat/web -- packet-management management-overview management-surface-index, npm run docs:check, npm run format:check, npm run check passed after BP-0215 updates, npm run test -w @lnsat/packets -- self-deploy-packaging-plan-contract, npm run typecheck -w @lnsat/packets, npm run test -w @lnsat/web -- packet-management management-overview management-surface-index, npm run docs:check, npm run format:check, npm run check passed after BP-0216 updates, npm run build -w @lnsat/web produced apps/web/out static export for deployment start.

Allowed

Show blocked scopes

List blocked live/runtime/mutation scopes from current handoff docs.

NEXT_SESSION.md

Approval Required Preview

Blocked

node-agent install/enrollment/heartbeat/host telemetry collection

Blocked by current product boundary.

NEXT_SESSION.md
Docker runner/container launch/VM launch

Blocked by current product boundary.

NEXT_SESSION.md
service mutation/restart

Blocked by current product boundary.

NEXT_SESSION.md

Source Evidence

7 refs
Build Statusdocs/build/STATUS.json

machine-readable current status

Current phase, active packet, next packet, pivot, and last checks.

Build Boarddocs/build/BOARD.md

Active Packet / Queue

Current packet queue and packet closeout evidence.

Packet Logdocs/build/PACKET_LOG.md

Completed Packet: BP-0216 Source-Only Self-Deploy Packaging Plan Contract

Latest completed packet evidence and verification notes.

Next SessionNEXT_SESSION.md

Active Slice

Current allowed scope, blocked scope, and closeout rule.

BP-0186 Packetdocs/build/packets/BP-0186.json

Management Overview UI MVP

Current packet objective, scope, non-goals, and checks.

BP-0185 Packetdocs/build/packets/BP-0185.json

Management UI Information Architecture

Selection evidence for the Command Center UI.

Management IAdocs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.md

Screen Contracts

Human management screen contracts and blocked-scope language.

MVP SURFACES

Management Surface Index

packet BP-0201completenext BP-0202core python falsecore os binaries falseside_effects: []

Management Navigation

9 surfaces
Command CenterBP-0186

Current state, queue, blocked scopes, readiness, and source evidence render as read-only management overview.

Live/runtime action remains blocked until Gateway policy, approval, audit persistence, and runtime adapter scope open.

docs/build/packets/BP-0186.json
KnowledgeBP-0187
complete#knowledge

Local source-grounded search, citation refs, context bundle preview, warnings, and source expansion render read-only.

Embeddings, DB-backed search, external connectors, Gateway write routes, and MCP mutation remain closed.

docs/build/packets/BP-0187.json
PacketsBP-0196, BP-0201
complete#packets

Packet queue, completed packets, acceptance checks, verification commands, rollback notes, and blocked gates render source-only.

Packet create/edit/reorder mutation and Git runner remain blocked.

docs/build/packets/BP-0196.json
SubstratesBP-0199
complete#substrates

Substrate classes, OS connection posture, inventory evidence, adapter readiness, and install boundaries render read-only.

Node-agent install, SSH, Docker, raw shell, service mutation, Python runtime requirement, and OS-specific binary requirement remain closed.

docs/build/packets/BP-0199.json
Runtime ReadinessBP-0200

Dry-run proof chain, preflight, authorization, readiness, plan, approval gate, and blocked invocation reasons render read-only.

Runtime dispatcher, live broker dispatch, adapter invocation, and live execution remain blocked.

docs/build/packets/BP-0200.json
AgentsBP-0197
complete#agents

Agent profiles, assignments, allowed capabilities, blocked capabilities, context inputs, and handoff evidence render read-only.

Agent mutation, live agent execution, runtime dispatch, connector setup, and credential storage remain blocked.

docs/build/packets/BP-0197.json
AuditBP-0198
complete#audit

Audit event previews, persistence readiness, writer status, display filters, and missing DB/persistence gates render read-only.

Persisted audit writer, DB writes, migration execution, and queue mutation remain blocked.

docs/build/packets/BP-0198.json
Settings / PolicyBP-0194

Independent open source/self-deploy posture, local auth, third-party auth, user-owned integrations, and user-selected authorization levels render read-only.

Settings mutation, live auth provider wiring, session DB, credential storage, and integration setup writes remain blocked.

docs/build/packets/BP-0194.json

MVP Surface Coverage

source linked
Command Center

Current state, queue, blocked scopes, readiness, and source evidence render as read-only management overview.

Live/runtime action remains blocked until Gateway policy, approval, audit persistence, and runtime adapter scope open.

completeBP-0186runtime dispatcher, live probes, mutation controlsdocs/build/packets/BP-0186.json
Knowledge

Local source-grounded search, citation refs, context bundle preview, warnings, and source expansion render read-only.

Embeddings, DB-backed search, external connectors, Gateway write routes, and MCP mutation remain closed.

completeBP-0187embeddings, external connectors, DB-backed searchdocs/build/packets/BP-0187.json
Packets

Packet queue, completed packets, acceptance checks, verification commands, rollback notes, and blocked gates render source-only.

Packet create/edit/reorder mutation and Git runner remain blocked.

completeBP-0196, BP-0201packet mutation, Git runner, deploy pathdocs/build/packets/BP-0196.json
Substrates

Substrate classes, OS connection posture, inventory evidence, adapter readiness, and install boundaries render read-only.

Node-agent install, SSH, Docker, raw shell, service mutation, Python runtime requirement, and OS-specific binary requirement remain closed.

completeBP-0199node-agent, SSH, Docker, OS-specific binary coredocs/build/packets/BP-0199.json
Runtime Readiness

Dry-run proof chain, preflight, authorization, readiness, plan, approval gate, and blocked invocation reasons render read-only.

Runtime dispatcher, live broker dispatch, adapter invocation, and live execution remain blocked.

completeBP-0200runtime dispatcher, live adapter invocation, live executiondocs/build/packets/BP-0200.json
Agents

Agent profiles, assignments, allowed capabilities, blocked capabilities, context inputs, and handoff evidence render read-only.

Agent mutation, live agent execution, runtime dispatch, connector setup, and credential storage remain blocked.

completeBP-0197agent mutation, live agent execution, credentialsdocs/build/packets/BP-0197.json
Approvals

Approval-required and blocked action previews render with source refs, risk rating, policy decision, rollback, and audit obligations.

Approve/deny mutation is not open until a later persisted approval packet opens it.

completeBP-0190approve mutation, deny mutation, queue mutationdocs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.md
Audit

Audit event previews, persistence readiness, writer status, display filters, and missing DB/persistence gates render read-only.

Persisted audit writer, DB writes, migration execution, and queue mutation remain blocked.

completeBP-0198persisted writer, DB write, migration executiondocs/build/packets/BP-0198.json
Settings / Policy

Independent open source/self-deploy posture, local auth, third-party auth, user-owned integrations, and user-selected authorization levels render read-only.

Settings mutation, live auth provider wiring, session DB, credential storage, and integration setup writes remain blocked.

completeBP-0194settings mutation, live auth, credential storagedocs/build/packets/BP-0194.json

OS Connection Posture

no core binary
Core MVP

The current platform core is TypeScript contracts, source evidence, and read-only web/Gateway surfaces; it requires no Python and no OS-specific binary.

OS connections

Host and OS-level control belongs to later substrate adapters or node-agent packages after policy, approval, and audit packets open scope.

Python

Python can be allowed later as an adapter/helper runtime chosen by deployment owners, but it is not a core dependency or management UI requirement.

Self deploy

Deployment owners choose integrations, auth providers, local auth, third-party auth, and authorization levels; LNSAT keeps those choices behind Gateway policy.

Blocked Gates

22 gates
No runtime dispatcher, runtime adapter implementation, live broker dispatch, live adapter invocation, or live execution.

Blocked by BP-0201 or current handoff boundary.

No Docker runner, node-agent, SSH, raw shell, root helper, service mutation, package install, or host service install.

Blocked by BP-0201 or current handoff boundary.

No database connection/write, migration execution, queue mutation, or persisted state writer.

Blocked by BP-0201 or current handoff boundary.

No credential field, secret storage, connector setup, external service call, live auth provider integration, or live connector setup.

Blocked by BP-0201 or current handoff boundary.

No Git command runner, branch mutation, stage, commit, push, PR, deploy, DNS/Cloudflare mutation, or infrastructure mutation.

Blocked by BP-0201 or current handoff boundary.

approve/deny mutation

Blocked by BP-0201 or current handoff boundary.

live substrate control

Blocked by BP-0201 or current handoff boundary.

node-agent install/enrollment/heartbeat/host telemetry collection

Blocked by BP-0201 or current handoff boundary.

Docker runner/container launch/VM launch

Blocked by BP-0201 or current handoff boundary.

SSH path

Blocked by BP-0201 or current handoff boundary.

raw shell

Blocked by BP-0201 or current handoff boundary.

root helper

Blocked by BP-0201 or current handoff boundary.

host service install

Blocked by BP-0201 or current handoff boundary.

service mutation/restart

Blocked by BP-0201 or current handoff boundary.

package install

Blocked by BP-0201 or current handoff boundary.

DNS/Cloudflare mutation

Blocked by BP-0201 or current handoff boundary.

live inventory scan

Blocked by BP-0201 or current handoff boundary.

migration execution

Blocked by BP-0201 or current handoff boundary.

Evidence Checks

6 checks
BP-0216 complete, BP-0217 queued

BP-0201 selected BP-0202 historically, and current source state queues BP-0217 after BP-0216 self-deploy packaging plan closeout.

No mutation controls

Handoff and packet non-goals keep settings, packets, approvals, audit, runtime, DB, Git, deploy, credentials, and infrastructure mutation closed.

Source Evidence

29 refs
Build Statusdocs/build/STATUS.json

current build state

Machine-readable next packet and current platform boundaries.

Build Boarddocs/build/BOARD.md

Queue

Operator-facing queue and latest packet closeout.

Packet Logdocs/build/PACKET_LOG.md

Completed Packet: BP-0215 Source-Only Persisted Knowledge Read Surface Contract

Append-only publication, packet evidence, and validation notes.

Next SessionNEXT_SESSION.md

Active Slice

Allowed scope, blocked scope, and handoff boundary.

Management IAdocs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.md

Screen Contracts

Nine management screen contracts and blocked-scope language.

BP-0186 Packetdocs/build/packets/BP-0186.json

Management Overview UI MVP

Command Center source evidence.

BP-0187 Packetdocs/build/packets/BP-0187.json

Knowledge UI MVP

Knowledge/Wiki source evidence.

BP-0194 Packetdocs/build/packets/BP-0194.json

Settings Policy Auth Posture UI Preview

Settings/Policy and auth/integration posture evidence.

BP-0196 Packetdocs/build/packets/BP-0196.json

Read-Only Packet Management UI Preview

Packets source evidence.

BP-0197 Packetdocs/build/packets/BP-0197.json

Read-Only Agent Management UI Preview

Agents source evidence.

BP-0198 Packetdocs/build/packets/BP-0198.json

Read-Only Audit Management UI Preview

Audit source evidence.

BP-0199 Packetdocs/build/packets/BP-0199.json

Read-Only Substrates Management UI Preview

Substrates and OS connection posture evidence.

BP-0200 Packetdocs/build/packets/BP-0200.json

Read-Only Runtime Readiness Management UI Preview

Runtime readiness and no Python/OS-binary core evidence.

BP-0201 Packetdocs/build/packets/BP-0201.json

Read-Only Management Navigation And MVP Surface Review

Current surface index packet evidence.

BP-0202 Packetdocs/build/packets/BP-0202.json

Read-Only Persistence And Policy Gate Review

Completed source-only persistence and policy gate review.

BP-0203 Packetdocs/build/packets/BP-0203.json

Source-Only Persistence Gate Contract

Completed source-only persistence gate contract evidence.

BP-0204 Packetdocs/build/packets/BP-0204.json

Source-Only Persistence Schema Contract

Completed source-only persistence schema contract evidence.

BP-0205 Packetdocs/build/packets/BP-0205.json

Source-Only Migration Artifact Static Review Contract

Completed migration static review packet evidence.

BP-0206 Packetdocs/build/packets/BP-0206.json

GitHub Repository Publication Checkpoint

Completed GitHub publication checkpoint evidence.

BP-0208 Packetdocs/build/packets/BP-0208.json

Source-Only Writer Preflight Contract

Completed writer preflight packet evidence.

BP-0209 Packetdocs/build/packets/BP-0209.json

Source-Only Database Security Preflight Contract

Completed database security preflight packet evidence.

BP-0210 Packetdocs/build/packets/BP-0210.json

Source-Only Policy Gate Preflight Contract

Completed policy gate preflight packet evidence.

BP-0211 Packetdocs/build/packets/BP-0211.json

Source-Only Approval Request Preflight Contract

Completed approval request preflight packet evidence.

BP-0212 Packetdocs/build/packets/BP-0212.json

Source-Only Persistence Readiness Preflight Contract

Completed persistence readiness preflight packet evidence.

BP-0213 Packetdocs/build/packets/BP-0213.json

Source-Only Implementation Packet Selection Review

Completed implementation packet selection review evidence.

BP-0214 Packetdocs/build/packets/BP-0214.json

Source-Only Knowledge Persistence Implementation Packet Contract

Completed knowledge persistence implementation packet contract evidence.

BP-0215 Packetdocs/build/packets/BP-0215.json

Source-Only Persisted Knowledge Read Surface Contract

Completed persisted knowledge read surface packet evidence.

BP-0216 Packetdocs/build/packets/BP-0216.json

Source-Only Self-Deploy Packaging Plan Contract

Completed self-deploy packaging plan packet evidence.

BP-0217 Packetdocs/build/packets/BP-0217.json

Source-Only Auth Session And Authorization Levels Readiness Contract

Queued auth session and authorization levels readiness packet evidence.

KNOWLEDGE / WIKI

Source-Grounded Search

39 records39 chunks39 warning rowsside effects 0

Search Page

read-only
Knowledge UI search

knowledge ui source refs

docs/build/packets/BP-0187.md:15-19
#1 Human Management UI Console

## Human Management UI Console Purpose: show operators LNSAT state without asking them to inspect SQL/logs. Screens: - Home / Command Center: current state, active packet, next packet, blocked scopes, health checks, recent evidence, allowed actions, approval-required actions. - Knowledge / Wiki: sou

docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.mdscore 37keyword
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md:67-186
#2 Human Management UI Console

## Human Management UI Console Purpose: show operators LNSAT state without asking them to inspect SQL/logs. Screens: - Home / Command Center: current state, active packet, next packet, blocked scopes, health checks, recent evidence, allowed actions, approval-required actions. - Knowledge / Wiki: sou

docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.mdscore 37keyword
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md:187-213
#3 Knowledge Record Fields

## Knowledge Record Fields - BP-0182 implements the first pure TypeScript model in packages/packets/src/knowledge-record.ts . - BP-0183 implements the first source-only local repo index in packages/packets/src/local-repo-knowledge-index.ts . It accepts caller-supplied allowlisted file snapshots, n

docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.mdscore 37keyword
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md:214-258
#4 Build Packet Sequence

## Build Packet Sequence - BP-0181: MVP Internal Knowledge Surface Direction. - BP-0182: Local Knowledge Record Model. - BP-0183: Local Repo Knowledge Index. - BP-0184: Knowledge Search + Context Bundle. - BP-0185: Management UI Information Architecture. - BP-0186: Management Overview UI MVP. - BP-0

docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.mdscore 37keyword
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md:259-294
#5 Allowed, Approval-Required, Blocked

## Allowed, Approval-Required, Blocked Allowed in MVP: - read local source-derived build state; - inspect packet status and packet evidence; - search indexed local knowledge records; - compile cited context bundles from local records; - preview policy/audit/approval evidence; - view blocked scopes a

docs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.mdscore 36keyword
docs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.md:126-152
#6 Shared UI Rules

## Shared UI Rules - Every visible answer must expose source evidence through a source path, packet id, decision id, source ref, citation ref, or packet-log entry. - Every screen must label actions as allowed, approval-required, or blocked. - Blocked language must say what gate is missing and which

docs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.mdscore 29keyword
docs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.md:16-100
#7 System A: Internal Wiki/RAG For Agents

## System A: Internal Wiki/RAG For Agents Agent wiki/RAG is not chat memory. It is repo-truth retrieval. MVP capabilities: - register allowlisted repo/docs/packet/decision sources; - normalize markdown, JSON, and selected source files; - create deterministic knowledge records with exact source refs;

docs/product/MVP_KNOWLEDGE_AND_MANAGEMENT.mdscore 27keyword
docs/product/MVP_KNOWLEDGE_AND_MANAGEMENT.md:15-134
#8 System A: Internal Wiki/RAG For Agents

## System A: Internal Wiki/RAG For Agents Agent wiki/RAG is not chat memory. It is repo-truth retrieval. MVP capabilities: - register allowlisted repo/docs/packet/decision sources; - normalize markdown, JSON, and selected source files; - create deterministic knowledge records with exact source refs;

docs/product/MVP_KNOWLEDGE_AND_MANAGEMENT.mdscore 27keyword
docs/product/MVP_KNOWLEDGE_AND_MANAGEMENT.md:135-252
BP-0187 packet lookup

BP-0187 packet lookup

docs/build/packets/BP-0187.md:15-19
#1 Human Management UI Console

## Human Management UI Console Purpose: show operators LNSAT state without asking them to inspect SQL/logs. Screens: - Home / Command Center: current state, active packet, next packet, blocked scopes, health checks, recent evidence, allowed actions, approval-required actions. - Knowledge / Wiki: sou

docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.mdscore 16packet
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md:67-186
#2 Human Management UI Console

## Human Management UI Console Purpose: show operators LNSAT state without asking them to inspect SQL/logs. Screens: - Home / Command Center: current state, active packet, next packet, blocked scopes, health checks, recent evidence, allowed actions, approval-required actions. - Knowledge / Wiki: sou

docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.mdscore 16packet
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md:187-213
#3 Build Packet Sequence

## Build Packet Sequence - BP-0181: MVP Internal Knowledge Surface Direction. - BP-0182: Local Knowledge Record Model. - BP-0183: Local Repo Knowledge Index. - BP-0184: Knowledge Search + Context Bundle. - BP-0185: Management UI Information Architecture. - BP-0186: Management Overview UI MVP. - BP-0

docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.mdscore 16packet
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md:259-294
#4 Objective

## Objective Build read-only Knowledge/Wiki UI for local knowledge search and context bundle preview.

docs/build/packets/BP-0187.mdscore 16packet
docs/build/packets/BP-0187.md:15-19
#5 Selection Evidence

## Selection Evidence BP-0186 completed the read-only Command Center dashboard and made the web first screen source-derived. The next MVP gap is Knowledge/Wiki UI over the existing BP-0182 through BP-0184 local knowledge model, index, search, and cited context bundle evidence.

docs/build/packets/BP-0187.mdscore 16packet
docs/build/packets/BP-0187.md:20-26

Warnings Visible By Default

39 rows
docs/memory/DECISIONS.md
stale staleconflict possibleconflicting_sourcepolicy_boundary
docs/memory/DECISIONS.md
stale staleconflict possibleconflicting_sourcepolicy_boundary
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md
stale currentconflict nonepolicy_boundary
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md
stale currentconflict nonepolicy_boundary
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md
stale currentconflict nonepolicy_boundary
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md
stale currentconflict nonepolicy_boundary
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md
stale currentconflict nonepolicy_boundary
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md
stale currentconflict nonepolicy_boundary

Source Record List

39 records
Direction

## Direction LNSAT MVP now has two connected systems: 1. Internal wiki/RAG system for agents. 2. Human management UI console for operators. They stay separate. Agents use read-only knowledge APIs/MCP to get grounded context before touching code or infrastructure. Operators use the management console

docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.mdstale currentconflict nonepolicy_boundary
MVP Shape

## MVP Shape The first MVP demo path should be: text Agent - Knowledge search - Context bundle - cited packet/action plan Operator - Management console - source evidence - approval preview MVP remains source-only, read-only, and file-derived: - NEXT_SESSION.md - docs/DOCS_INDEX.md -

docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.mdstale currentconflict nonepolicy_boundary
Human Management UI Console

## Human Management UI Console Purpose: show operators LNSAT state without asking them to inspect SQL/logs. Screens: - Home / Command Center: current state, active packet, next packet, blocked scopes, health checks, recent evidence, allowed actions, approval-required actions. - Knowledge / Wiki: sou

docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.mdstale currentconflict nonepolicy_boundary
Human Management UI Console

## Human Management UI Console Purpose: show operators LNSAT state without asking them to inspect SQL/logs. Screens: - Home / Command Center: current state, active packet, next packet, blocked scopes, health checks, recent evidence, allowed actions, approval-required actions. - Knowledge / Wiki: sou

docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.mdstale currentconflict nonepolicy_boundary
Knowledge Record Fields

## Knowledge Record Fields - BP-0182 implements the first pure TypeScript model in packages/packets/src/knowledge-record.ts . - BP-0183 implements the first source-only local repo index in packages/packets/src/local-repo-knowledge-index.ts . It accepts caller-supplied allowlisted file snapshots, n

docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.mdstale currentconflict nonepolicy_boundary
Build Packet Sequence

## Build Packet Sequence - BP-0181: MVP Internal Knowledge Surface Direction. - BP-0182: Local Knowledge Record Model. - BP-0183: Local Repo Knowledge Index. - BP-0184: Knowledge Search + Context Bundle. - BP-0185: Management UI Information Architecture. - BP-0186: Management Overview UI MVP. - BP-0

docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.mdstale currentconflict nonepolicy_boundary
Shared UI Rules

## Shared UI Rules - Every visible answer must expose source evidence through a source path, packet id, decision id, source ref, citation ref, or packet-log entry. - Every screen must label actions as allowed, approval-required, or blocked. - Blocked language must say what gate is missing and which

docs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.mdstale currentconflict nonepolicy_boundary
Screen Contracts

## Screen Contracts Screen Purpose Primary Data Sources Empty State Blocked-Scope Language ----------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------ ----------

docs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.mdstale currentconflict nonepolicy_boundary
Evidence Display Rules

## Evidence Display Rules - Source refs show path, optional heading, line start, and line end. - Packet refs show packet id, status, acceptance checks, verification commands, result, next packet, scope_opened , and side_effects . - Citation refs show citation id, record id, source ref, and summary

docs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.mdstale currentconflict nonepolicy_boundary
Allowed, Approval-Required, Blocked

## Allowed, Approval-Required, Blocked Allowed in MVP: - read local source-derived build state; - inspect packet status and packet evidence; - search indexed local knowledge records; - compile cited context bundles from local records; - preview policy/audit/approval evidence; - view blocked scopes a

docs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.mdstale currentconflict nonepolicy_boundary

Context Bundle Preview

1377 tokens est.

preview cited BP-0187 Knowledge UI context for operators

policy_boundary
citation.knowledge_record_docs_architecture_internal_knowledge_surface_67_186.67_186

## Human Management UI Console Purpose: show operators LNSAT state without asking them to inspect SQL/logs. Screens: - Home / Command Center: current state, active packet, next packet, blocked scopes, health checks, recent evidence, allowed actions, approval-required actions. - Knowledge / Wiki: sou

docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md:67-186
citation.knowledge_record_docs_architecture_internal_knowledge_surface_259_294.259_294

## Build Packet Sequence - BP-0181: MVP Internal Knowledge Surface Direction. - BP-0182: Local Knowledge Record Model. - BP-0183: Local Repo Knowledge Index. - BP-0184: Knowledge Search + Context Bundle. - BP-0185: Management UI Information Architecture. - BP-0186: Management Overview UI MVP. - BP-0

docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md:259-294
citation.knowledge_record_docs_build_packets_bp_0182_15_20.15_20

## Objective Build the pure TypeScript knowledge record model that will anchor the agent internal wiki/RAG system before scanners, search, Gateway routes, MCP tools, UI, or persistence exist.

docs/build/packets/BP-0182.md:15-20

Exact Source Expansion

3 refs
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.mdlines 67-186
  67 | ## Human Management UI Console
  68 | 
  69 | Purpose: show operators LNSAT state without asking them to inspect SQL/logs.
  70 | 
  71 | Screens:
  72 | 
  73 | - Home / Command Center: current state, active packet, next packet, blocked
  74 |   scopes, health checks, recent evidence, allowed actions, approval-required
  75 |   actions.
  76 | - Knowledge / Wiki: source index search, citations, stale/conflict flags, source
  77 |   ownership, packet/decision links, context bundle preview.
  78 | - Packets: active/queued/completed packets, acceptance checks, evidence links,
  79 |   verification status, next action, rollback notes.
  80 | - Agents: profiles, allowed capabilities, current assignments, context bundles
  81 |   used, boundary status, handoff prompts.
  82 | - Approvals: requested action, source refs, risk rating, policy decision,
  83 |   rollback plan, audit obligations. MVP is read-only preview.
  84 | - Audit: event previews, filters by agent/packet/action/source/risk, warning that
  85 |   DB persistence is not live yet.
  86 | - Substrates / Nodes: repos, services, DBs, machines, adapters, current
  87 |   inventory/evidence mode, blocked live actions.
  88 | - Runtime Readiness: dry-run proof chain, missing gates, why live invocation is
  89 |   blocked, packet needed to open next scope.
  90 | - Settings / Policy: policy gates, role model, risk thresholds, source
  91 |   allowlists, connector approval matrix.
  92 | 
  93 | UI principles:
  94 | 
  95 | - operator-first, dense, practical;
  96 | - no landing page;
  97 | - status and evidence visible;
  98 | - blocked/live boundaries clear;
  99 | - every answer links back to source evidence.
 100 | 
 101 | BP-0185 records the concrete management UI screen contracts in
 102 | `docs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.md`. BP-0186 may
 103 | implement only the read-only Command Center overview from existing source
 104 | evidence. BP-0186 is now complete and makes the Command Center the web first
 105 | screen.
 106 | 
 107 | BP-0187 is now complete and renders the read-only Knowledge/Wiki console after
 108 | the Command Center. It uses allowlisted repo-local source snapshots with the
 109 | existing BP-0183 local repo knowledge index and BP-0184 search/context bundle
 110 | functions. It shows search panels, source records, citations/source refs,
 111 | stale/conflict/risk flags, context bundle preview, source expansion, and blocked
 112 | knowledge actions without opening Gateway routes, MCP tools, DB, embeddings,
 113 | source editing, approval mutation, runtime/live execution, Docker, node-agent,
 114 | Git runner, deploy, or credential behavior.
 115 | 
 116 | BP-0188 is now complete and adds the source-only eval harness over the BP-0183
 117 | and BP-0184 knowledge path. It provides default golden questions for current
 118 | packet, blocked scopes, approval needs, post-BP-0180 direction, stale/conflict
 119 | detection, and live-scope widening rejection, plus deterministic answer fixtures
 120 | that verify source citations and fail uncited, stale-unflagged,
 121 | credential-like, side-effect, live-collection, and live-widening cases without
 122 | raw rejected value echo.
 123 | 
 124 | BP-0189 is now complete and adds
 125 | `docs/architecture/PERSISTENCE_SCHEMA_PLAN.md`. The plan maps file-derived
 126 | knowledge records, source refs, source snapshots, chunks, context bundles, eval
 127 | runs, audit events, approval requests, agent sessions, packet runs, and future
 128 | embeddings to future Postgres/pgvector targets. It remains docs-only and opens
 129 | no DB connection/write, writer, migration, live storage, embedding generation,
 130 | Gateway route, MCP tool, runtime/live execution, Docker, node-agent, Git runner,
 131 | deploy, queue, or credential behavior.
 132 | 
 133 | ## Gateway Read APIs
 134 | 
 135 | MVP route plan:
 136 | 
 137 | - `GET /v1/knowledge/sources`
 138 | - `GET /v1/knowledge/search`
 139 | - `POST /v1/knowledge/context/compile`
 140 | - `GET /v1/build/state`
 141 | - `GET /v1/management/overview`
 142 | 
 143 | Later, after policy/audit persistence:
 144 | 
 145 | - source ref expansion API
 146 | - stale/conflict report API
 147 | - approval mutation API
 148 | - persisted audit/search/event APIs
 149 | 
 150 | ## Persistence Later
 151 | 
 152 | No database is required for BP-0182 through BP-0188. File-derived deterministic
 153 | indexing comes first.
 154 | 
 155 | Later schema planning needs:
 156 | 
 157 | - knowledge records
 158 | - audit events
 159 | - source snapshots
 160 | - embeddings/pgvector table
 161 | - approval requests
 162 | - agent sessions
 163 | - packet runs
 164 | - retention policy
 165 | - migration approval workflow
 166 | 
 167 | ## Research Anchors
 168 | 
 169 | Primary-source patterns converted into LNSAT rules:
 170 | 
 171 | - OpenAI accuracy guidance treats RAG as retrieval plus generation and calls out
 172 |   retrieval as its own optimization axis. LNSAT therefore tests retrieval before
 173 |   model answers.
 174 | - OpenAI agent evals and trace grading support reproducible agent-quality checks.
 175 |   LNSAT therefore makes golden questions and trace/evidence grading part of the
 176 |   platform, not a later QA afterthought.
 177 | - Anthropic citation docs emphasize document-backed citations for verifiable
 178 |   answers. LNSAT therefore stores exact source refs on every record and context
 179 |   bundle.
 180 | - Anthropic computer-use docs require sandboxing/minimal privilege for tool
 181 |   execution. LNSAT therefore keeps MCP as adapter only and Gateway as the
 182 |   boundary before any tool/runtime action.
 183 | - Google Vertex AI grounding docs define grounding as tying model output to
 184 |   verifiable sources for auditability. LNSAT therefore treats source refs and
 185 |   evidence bundles as first-class UI/API objects.
 186 | - Google grounding checks score whether generated claims are supported by facts.
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.mdlines 259-294
 259 | ## Build Packet Sequence
 260 | 
 261 | - BP-0181: MVP Internal Knowledge Surface Direction.
 262 | - BP-0182: Local Knowledge Record Model.
 263 | - BP-0183: Local Repo Knowledge Index.
 264 | - BP-0184: Knowledge Search + Context Bundle.
 265 | - BP-0185: Management UI Information Architecture.
 266 | - BP-0186: Management Overview UI MVP.
 267 | - BP-0187: Knowledge UI MVP. Complete.
 268 | - BP-0188: Eval Harness. Complete.
 269 | - BP-0189: Persistence Plan. Complete.
 270 | - BP-0190: Approval Center Plan/UI Preview. Complete.
 271 | - BP-0192: Read-Only Knowledge Gateway API Contract. Complete.
 272 | - BP-0193: Auth And User-Owned Integration Boundary. Complete.
 273 | - BP-0194: Settings Policy Auth Posture UI Preview. Complete.
 274 | - BP-0195: Read-Only MCP Knowledge Surface Contract. Complete.
 275 | - BP-0196: Read-Only Packet Management UI Preview. Queued next.
 276 | 
 277 | BP-0190 completed the approval-preview-only surface. It did not open
 278 | approve/deny mutation, DB writer, queue, runtime dispatcher, live execution,
 279 | Gateway write route, state-changing MCP tool, deploy, or credential behavior.
 280 | BP-0192 opened only a read-only Gateway knowledge API contract over existing
 281 | source-derived knowledge/search/context evidence. It also exposed source
 282 | evidence that LNSAT is independent open source, self-deployable, user-owned for
 283 | integrations, not locked to one auth provider, and not wired to a live auth
 284 | provider.
 285 | 
 286 | BP-0195 completed the first agent-facing MCP knowledge surface:
 287 | `lnsat.knowledge.surface.inspect`. It exposes only read-only source/search/
 288 | context inspection through Gateway knowledge contracts and keeps open
 289 | source/self-deploy, user-owned integration, auth-provider-unlocked, no-live,
 290 | source refs, citations, stale/conflict warnings, risk flags, and
 291 | `side_effects: []` visible to agents. BP-0196 may open only a read-only Packets
 292 | UI preview from repo-local build docs. It must not add packet mutation, Git,
 293 | deploy, runtime dispatch, DB/write, queue, auth provider wiring, connector
 294 | setup, external service calls, or credential behavior.
docs/build/packets/BP-0182.mdlines 15-20
  15 | ## Objective
  16 | 
  17 | Build the pure TypeScript knowledge record model that will anchor the agent
  18 | internal wiki/RAG system before scanners, search, Gateway routes, MCP tools, UI,
  19 | or persistence exist.
  20 | 

Blocked Knowledge Actions

BP-0187 boundary

PACKETS

Packet Management

active nonenext BP-0217mutation falseGit falseside_effects: []
BP-0216Define the source-only packaging and self-deploy contract for LNSAT as an independent open source management system, without creating packages, installing services, mutating hosts, starting Docker, adding a node-agent, requiring Python as core, requiring OS-specific binaries as core, wiring auth providers, storing credentials, invoking integrations, deploying, or opening live/runtime scope.
completescope_opened 0side_effects: []

Added docs/architecture/SELF_DEPLOY_PACKAGING_PLAN.md. Added packages/packets/src/self-deploy-packaging-plan-contract.ts. Exported the self-deploy packaging plan contract, defaults, constants, creator, result types, and evidence types from packages/packets/src/index.ts.

Remove the BP-0216 source/test/export artifacts and restore docs to BP-0215 closeout with BP-0216 queued; no live state rollback is required because no deploy, package install, service mutation, runtime, auth, integration, DB, or host/OS mutation scope should exist.

docs/build/packets/BP-0216.json

Queue

1 packets
BP-0217

Source-Only Auth Session And Authorization Levels Readiness Contract.

Platformqueueddocs/build/BOARD.md

Recent Completed

2 packets
BP-0216

Define the source-only packaging and self-deploy contract for LNSAT as an independent open source management system, without creating packages, installing services, mutating hosts, starting Docker, adding a node-agent, requiring Python as core, requiring OS-specific binaries as core, wiring auth providers, storing credentials, invoking integrations, deploying, or opening live/runtime scope.

Added docs/architecture/SELF_DEPLOY_PACKAGING_PLAN.md. Added packages/packets/src/self-deploy-packaging-plan-contract.ts. Exported the self-deploy packaging plan contract, defaults, constants, creator, result types, and evidence types from packages/packets/src/index.ts.

completenext BP-0217side_effects: []docs/build/packets/BP-0216.json
BP-0215

Define a pure TypeScript source contract for the future read-only persisted knowledge query surface after BP-0214, without connecting to a database, adding a query runner, writing records, opening Gateway runtime routes, registering MCP runtime tools, invoking adapters, or opening live/deploy scope.

Added packages/packets/src/persisted-knowledge-read-surface-contract.ts. Exported the persisted knowledge read surface contract, defaults, constants, creator, result types, and evidence types from packages/packets/src/index.ts. Added packages/packets/test/persisted-knowledge-read-surface-contract.test.ts.

completenext BP-0216side_effects: []docs/build/packets/BP-0215.json

Acceptance Checks

5 checks
Contract defines self-deploy modes and artifact refs without building, publishing, installing, deploying, or mutating services.

Acceptance check is read from the current packet source.

Contract preserves independent open source posture, deployment-owner auth, local auth, third-party auth, user-selected authorization levels, and user-owned integrations as future source-reviewed scopes.

Acceptance check is read from the current packet source.

Contract states the core MVP requires no Python and no OS-specific binaries; Python or OS binaries may exist later only as optional adapter or node-agent packages behind policy, approval, audit, and rollback boundaries.

Acceptance check is read from the current packet source.

Contract fails closed on deploy/package install/service mutation/Docker/node-agent/SSH/DNS/Cloudflare/Git runner/runtime/live/DB/credential/auth/integration/external-service scope or nonempty side effect.

Acceptance check is read from the current packet source.

Verification Commands

6 commands
npm run test -w @lnsat/packets -- self-deploy-packaging-plan-contract

Command is declared in packet source; latest execution is recorded during packet closeout.

npm run typecheck -w @lnsat/packets

Command is declared in packet source; latest execution is recorded during packet closeout.

npm run test -w @lnsat/web -- packet-management management-overview management-surface-index

Command is declared in packet source; latest execution is recorded during packet closeout.

Rollback Notes

source only
Rollback / recovery

Remove the BP-0216 source/test/export artifacts and restore docs to BP-0215 closeout with BP-0216 queued; no live state rollback is required because no deploy, package install, service mutation, runtime, auth, integration, DB, or host/OS mutation scope should exist.

Evidence Checks

4 checks
BP-0216 complete

Latest completed packet is visible in board and packet log.

Current next packet queued

BP-0217 queue selection is visible in board and status JSON.

Blocked Live Gates

18 gates
No package creation, package publish, installer, binary build, Docker image, service file, launchd/systemd unit, node-agent package, host service install, service mutation, or root helper.

Blocked by current packet non-goal or current handoff boundary.

No deploy path, GitHub Actions deploy pipeline, DNS/Cloudflare mutation, hosting mutation, SSH, Docker runner, VM launch, raw shell automation, or infrastructure mutation.

Blocked by current packet non-goal or current handoff boundary.

No DB connection/write, SQL/DDL execution, migration execution, writer implementation, queue mutation, persisted audit writer, approval mutation, or runtime dispatcher.

Blocked by current packet non-goal or current handoff boundary.

No auth provider wiring, session DB, credential field/storage, integration setup write, live connector activation, external service call, secret value, Python core requirement, or OS-specific binary core requirement.

Blocked by current packet non-goal or current handoff boundary.

migration execution

Blocked by current packet non-goal or current handoff boundary.

DB connection

Blocked by current packet non-goal or current handoff boundary.

DB write

Blocked by current packet non-goal or current handoff boundary.

writer implementation

Blocked by current packet non-goal or current handoff boundary.

knowledge record write

Blocked by current packet non-goal or current handoff boundary.

source snapshot capture

Blocked by current packet non-goal or current handoff boundary.

chunk persistence

Blocked by current packet non-goal or current handoff boundary.

context bundle persistence

Blocked by current packet non-goal or current handoff boundary.

eval run persistence

Blocked by current packet non-goal or current handoff boundary.

vector DB runtime

Blocked by current packet non-goal or current handoff boundary.

queue

Blocked by current packet non-goal or current handoff boundary.

live connector

Blocked by current packet non-goal or current handoff boundary.

state-changing MCP knowledge tool

Blocked by current packet non-goal or current handoff boundary.

MCP knowledge mutation

Blocked by current packet non-goal or current handoff boundary.

Source Evidence

26 refs
Build Statusdocs/build/STATUS.json

active and next packet

Machine-readable packet state, build state, and last verification.

Build Boarddocs/build/BOARD.md

Active Packet / Queue

Operator-facing packet queue and latest closeout summary.

Packet Logdocs/build/PACKET_LOG.md

Completed Packet: BP-0215 Source-Only Persisted Knowledge Read Surface Contract

Append-only packet evidence, validation, and selected-next records.

Next SessionNEXT_SESSION.md

Active Slice

Allowed scope, blocked scope, and continuation instructions.

Management IAdocs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.md

Packets screen

Packets screen contract and blocked-scope language.

BP-0196 Packetdocs/build/packets/BP-0196.json

Read-Only Packet Management UI Preview

Older completed packet management UI packet.

BP-0197 Packetdocs/build/packets/BP-0197.json

Read-Only Agent Management UI Preview

Prior completed agent management packet.

BP-0198 Packetdocs/build/packets/BP-0198.json

Read-Only Audit Management UI Preview

Prior completed audit management packet.

BP-0199 Packetdocs/build/packets/BP-0199.json

Read-Only Substrates Management UI Preview

Prior completed substrates packet scope, checks, and non-goals.

BP-0200 Packetdocs/build/packets/BP-0200.json

Read-Only Runtime Readiness Management UI Preview

Latest completed packet scope, checks, rollback, and non-goals.

BP-0201 Packetdocs/build/packets/BP-0201.json

Read-Only Management Navigation And MVP Surface Review

Prior completed management surface packet scope and checks.

BP-0202 Packetdocs/build/packets/BP-0202.json

Read-Only Persistence And Policy Gate Review

Current completed packet scope, checks, rollback, and non-goals.

BP-0203 Packetdocs/build/packets/BP-0203.json

Source-Only Persistence Gate Contract

Current completed packet scope, checks, rollback, and non-goals.

BP-0204 Packetdocs/build/packets/BP-0204.json

Source-Only Persistence Schema Contract

Current completed packet scope, checks, rollback, and non-goals.

BP-0205 Packetdocs/build/packets/BP-0205.json

Source-Only Migration Artifact Static Review Contract

Completed migration static review packet scope, checks, and non-goals.

BP-0206 Packetdocs/build/packets/BP-0206.json

GitHub Repository Publication Checkpoint

Completed first GitHub publication checkpoint.

BP-0208 Packetdocs/build/packets/BP-0208.json

Source-Only Writer Preflight Contract

Completed writer preflight packet after GitHub publication.

BP-0209 Packetdocs/build/packets/BP-0209.json

Source-Only Database Security Preflight Contract

Completed database security preflight packet after writer preflight.

BP-0210 Packetdocs/build/packets/BP-0210.json

Source-Only Policy Gate Preflight Contract

Completed policy gate preflight packet after database security.

BP-0211 Packetdocs/build/packets/BP-0211.json

Source-Only Approval Request Preflight Contract

Completed approval request preflight packet after policy gate.

BP-0212 Packetdocs/build/packets/BP-0212.json

Source-Only Persistence Readiness Preflight Contract

Completed persistence readiness preflight packet after approval request.

BP-0213 Packetdocs/build/packets/BP-0213.json

Source-Only Implementation Packet Selection Review

Completed implementation packet selection review after readiness.

BP-0214 Packetdocs/build/packets/BP-0214.json

Source-Only Knowledge Persistence Implementation Packet Contract

Completed knowledge persistence implementation packet contract.

BP-0215 Packetdocs/build/packets/BP-0215.json

Source-Only Persisted Knowledge Read Surface Contract

Completed persisted knowledge read surface packet contract.

BP-0216 Packetdocs/build/packets/BP-0216.json

Source-Only Self-Deploy Packaging Plan Contract

Completed self-deploy packaging plan packet contract.

BP-0217 Packetdocs/build/packets/BP-0217.json

Source-Only Auth Session And Authorization Levels Readiness Contract

Queued auth session and authorization levels readiness packet contract.

SUBSTRATES

Substrates / Nodes

packet BP-0199completecore python falsecore os binaries falseside_effects: []

OS Connection Posture

4 source-only decisions
Pythonoptional-adapter
mvp required falselive connection falseside_effects: []

Python is optional later connector/runtime implementation detail, not an MVP requirement.

docs/architecture/SUBSTRATES_AND_NODES.md
OS-specific binariesoptional-agent
mvp required falselive connection falseside_effects: []

OS binaries are optional later node-agent packages for direct host observation/control.

docs/architecture/SUBSTRATES_AND_NODES.md
Current packet gateblocked-now
mvp required falselive connection falseside_effects: []

No OS agent, package install, Python runtime, binary distribution, host service, SSH, Docker runner, or live connector is open.

NEXT_SESSION.md

Substrate Classes

10 classes
repossource repositories, mirrors, worktrees, branches, and patch zones
live mutation false3 read controls2 forbidden
Observation
repo.diff.read, repo.refs.read, repo.status.read
Proposal
repo.branch.plan, repo.patch.propose
Approval
repo.branch.request, repo.merge.request
Forbidden
repo.force_push.write, repo.history.delete
docs/build/packets/BP-0085.md
hostsbare metal or virtual hosts, launchd/systemd units, and host facts
live mutation false3 read controls2 forbidden
Observation
host.disk.read, host.process.read, host.status.read
Proposal
host.diagnostic.propose, host.runbook.propose
Approval
host.runbook.request
Forbidden
host.package.write, host.root.shell
docs/build/packets/BP-0085.md
containerscontainer images, sandboxes, compose stacks, and runtime boundaries
live mutation false2 read controls2 forbidden
Observation
container.logs.read, container.status.read
Proposal
container.build.propose, container.run.plan
Approval
container.sandbox.request
Forbidden
container.docker_socket.mount, container.privileged.run
docs/build/packets/BP-0085.md
servicesapplication services, health checks, service configs, and restarts
live mutation false2 read controls2 forbidden
Observation
service.logs.read, service.status.read
Proposal
service.config.propose, service.restart.plan
Approval
service.restart.request
Forbidden
service.config.write, service.restart.execute
docs/build/packets/BP-0085.md
databasesschemas, migrations, read-only queries, and data stores
live mutation false2 read controls2 forbidden
Observation
database.health.read, database.schema.read
Proposal
database.migration.propose, database.query.plan
Approval
database.migration.request
Forbidden
database.drop, database.write
docs/build/packets/BP-0085.md
queuesjob queues, topics, pending counts, and worker visibility
live mutation false2 read controls2 forbidden
Observation
queue.depth.read, queue.status.read
Proposal
queue.replay.propose, queue.worker.plan
Approval
queue.replay.request
Forbidden
queue.message.write, queue.purge
docs/build/packets/BP-0085.md
tunnelsnetwork tunnels, public routes, ingress state, and exposure plans
live mutation false2 read controls2 forbidden
Observation
tunnel.route.read, tunnel.status.read
Proposal
tunnel.exposure.plan, tunnel.route.propose
Approval
tunnel.route.request
Forbidden
tunnel.route.write, tunnel.secret.read
docs/build/packets/BP-0085.md
cloud_accountscloud accounts, projects, managed services, billing, and DNS scope
live mutation false2 read controls2 forbidden
Observation
cloud.account.read, cloud.resource.read
Proposal
cloud.change.propose, cloud.cost.plan
Approval
cloud.change.request
Forbidden
cloud.delete, cloudflare.write
docs/build/packets/BP-0085.md
agentshuman supervised seats, coding agents, workers, and MCP clients
live mutation false2 read controls2 forbidden
Observation
agent.session.read, agent.status.read
Proposal
agent.capability.plan, agent.task.propose
Approval
agent.capability.request
Forbidden
agent.unrestricted.enable, node_agent.exec
docs/build/packets/BP-0085.md
modelslocal models, hosted models, routing profiles, and availability
live mutation false2 read controls2 forbidden
Observation
model.catalog.read, model.status.read
Proposal
model.budget.plan, model.route.propose
Approval
model.route.request
Forbidden
model.billing.write, model.secret.read
docs/build/packets/BP-0085.md

Environment Types

8 types

Service / Database Inventory

4 records
service:lnsat-gateway

LNSAT Gateway source-only service record

service / shared / owner owner:lnsat-platform

deps 2db write falseservice mutation falsedocs/build/packets/BP-0090.md
database:audit-ledger-postgresql

Audit ledger PostgreSQL source-only target

database / shared / owner owner:lnsat-platform

deps 0db write falseservice mutation falsedocs/build/packets/BP-0090.md
queue:audit-ledger-review

Audit ledger review queue source-only placeholder

queue / shared / owner owner:lnsat-platform

deps 1db write falseservice mutation falsedocs/build/packets/BP-0090.md
tunnel:lnsat-hypler-com

lnsat.hypler.com tunnel source-only surface

tunnel / production / owner owner:hypler

deps 1db write falseservice mutation falsedocs/build/packets/BP-0090.md

Adapter Readiness

1 manifests
adapter:service-control-manifest

Service control proposal adapter manifest

manifest_only_no_invocation

service.restart.request

servicesapproval_gated_mutation, observation, proposaladapter live falsebroker dispatch falseexecution falsedocs/build/packets/BP-0108.md

Control Intent Posture

1 intents
service.restart.request

agent:codex requests approval_gated_mutation on services

no live substrate mutation, no live execution, no raw shell or SSH, no database writes, no service, queue, DNS, Cloudflare, Docker, node-agent, or Git mutation, no secret values

risk 5live substrate falseexecution false3 gatesdocs/build/packets/BP-0096.md

Installation Boundaries

9 surfaces
secrets

credential references stay disabled for MVP preview

approval_requiredcredential.human.approvallive control falsedocs/build/packets/BP-0083.md

Evidence Checks

9 checks

Blocked Host / Runtime Gates

24 gates
No node-agent install, enrollment, heartbeat, or host telemetry collection.

Blocked by BP-0199 non-goal or current handoff boundary.

No Docker runner, container launch, VM launch, SSH path, raw shell, root helper, or host service install.

Blocked by BP-0199 non-goal or current handoff boundary.

No service mutation, restart, package install, deploy, DNS/Cloudflare mutation, or infrastructure mutation.

Blocked by BP-0199 non-goal or current handoff boundary.

No database connection/write, migration execution, queue mutation, or persisted inventory writer.

Blocked by BP-0199 non-goal or current handoff boundary.

No runtime dispatcher, live broker dispatch, live adapter invocation, or live execution.

Blocked by BP-0199 non-goal or current handoff boundary.

No credential field, secret storage, connector setup, external service call, or live inventory scan.

Blocked by BP-0199 non-goal or current handoff boundary.

No Git command runner, branch mutation, stage, commit, push, or PR.

Blocked by BP-0199 non-goal or current handoff boundary.

live substrate control

Blocked by BP-0199 non-goal or current handoff boundary.

node-agent install/enrollment/heartbeat/host telemetry collection

Blocked by BP-0199 non-goal or current handoff boundary.

Docker runner/container launch/VM launch

Blocked by BP-0199 non-goal or current handoff boundary.

SSH path

Blocked by BP-0199 non-goal or current handoff boundary.

host service install

Blocked by BP-0199 non-goal or current handoff boundary.

service mutation/restart

Blocked by BP-0199 non-goal or current handoff boundary.

DNS/Cloudflare mutation

Blocked by BP-0199 non-goal or current handoff boundary.

live inventory scan

Blocked by BP-0199 non-goal or current handoff boundary.

migration execution

Blocked by BP-0199 non-goal or current handoff boundary.

DB connection

Blocked by BP-0199 non-goal or current handoff boundary.

DB write

Blocked by BP-0199 non-goal or current handoff boundary.

SQL query execution

Blocked by BP-0199 non-goal or current handoff boundary.

vector DB runtime

Blocked by BP-0199 non-goal or current handoff boundary.

queue

Blocked by BP-0199 non-goal or current handoff boundary.

live connector

Blocked by BP-0199 non-goal or current handoff boundary.

product Git mutation outside completed BP-0206 publication

Blocked by BP-0199 non-goal or current handoff boundary.

Source Evidence

11 refs
BP-0199 Packetdocs/build/packets/BP-0199.json

Read-Only Substrates Management UI Preview

Substrates UI packet scope, non-goals, checks, and rollback.

Management IAdocs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.md

Substrates

Substrates screen contract and blocked live-action language.

Substrates Architecturedocs/architecture/SUBSTRATES_AND_NODES.md

OS-Level Connection Strategy

Substrate taxonomy, environment types, node-agent posture, and OS boundary.

BP-0083 Control Profiledocs/build/packets/BP-0083.md

Installation Control Profile

Installation mode and denied control-surface contract.

BP-0085 Taxonomydocs/build/packets/BP-0085.md

Substrate Taxonomy

Source-only substrate kinds and control-mode boundaries.

BP-0090 Inventorydocs/build/packets/BP-0090.md

Service Database Inventory

Service, database, queue, tunnel, approval, and rollback inventory contract.

BP-0096 Control Intentdocs/build/packets/BP-0096.md

Substrate Control Intent

Source-only control request evidence and denied live behavior.

BP-0108 Adapter Manifestdocs/build/packets/BP-0108.md

Substrate Adapter Manifest

Manifest-only adapter readiness before live invocation exists.

MCP Sourcepackages/mcp/src/index.ts

substrate inspection adapters

Read-only MCP inspection registrations for substrate contracts.

Next SessionNEXT_SESSION.md

Active Slice

Current allowed scope, OS posture, and blocked live gates.

Packet Logdocs/build/PACKET_LOG.md

Completed Packet

Latest packet closeout evidence and queued next packet.

RUNTIME READINESS

Runtime Readiness

packet BP-0200completenext BP-0201core python falsecore os binaries falseside_effects: []
External service callsfalse

Runtime readiness reads repo-local evidence only.

NEXT_SESSION.md

Dry-Run Proof Chain

9 source refs
01. Preflight Status

preflight:service-control-adapter-invocation

lnsat.platform.adapter_invocation_preflight.v0_1

preflight_only_no_invocationpolicy 5approvals 2audit 8runtime implementation falsedispatch falseinvocation falseexecution falseside_effects: []docs/build/packets/BP-0114.md
02. Adapter Result Evidence

result:service-control-adapter-invocation

lnsat.platform.adapter_invocation_result.v0_1

result_evidence_only_no_executionpolicy 6approvals 2audit 8runtime implementation falsedispatch falseinvocation falseexecution falseside_effects: []docs/build/packets/BP-0120.md
03. Authorization Bundle

authorization_bundle:service-control-adapter-invocation

lnsat.platform.adapter_invocation_authorization_bundle.v0_1

authorization_bundle_only_no_invocationpolicy 7approvals 2audit 8runtime implementation falsedispatch falseinvocation falseexecution falseside_effects: []docs/build/packets/BP-0126.md
04. Readiness Gates

readiness_gate:service-control-adapter-runtime-readiness

lnsat.platform.runtime_adapter_readiness_gate.v0_1

readiness_gate_only_no_runtime_invocationpolicy 7approvals 2audit 8runtime implementation falsedispatch falseinvocation falseexecution falseside_effects: []docs/build/packets/BP-0132.md
05. Implementation Scope

implementation_scope:service-control-adapter-runtime

lnsat.platform.runtime_adapter_implementation_scope.v0_1

implementation_scope_only_no_runtime_adapterpolicy 8approvals 2audit 8runtime implementation falsedispatch falseinvocation falseexecution falseside_effects: []docs/build/packets/BP-0138.md
06. Implementation Plan

implementation_plan:service-control-adapter-runtime

lnsat.platform.runtime_adapter_implementation_plan.v0_1

implementation_plan_only_no_runtime_adapterpolicy 9approvals 2audit 8runtime implementation falsedispatch falseinvocation falseexecution falseside_effects: []docs/build/packets/BP-0144.md
07. Authorization Request

chain_review:bp0149-runtime-adapter-plan-chain-review

lnsat.platform.runtime_adapter_implementation_authorization_request.v0_1

implementation_authorization_request_only_no_runtime_adapterpolicy 10approvals 2audit 8runtime implementation falsedispatch falseinvocation falseexecution falseside_effects: []docs/build/packets/BP-0150.md
08. Approval Gates

authorization_request:bp0150-runtime-adapter-implementation-authorization-request

lnsat.platform.runtime_adapter_implementation_approval_gate.v0_1

implementation_approval_gate_only_no_runtime_adapterpolicy 11approvals 1audit 8runtime implementation falsedispatch falseinvocation falseexecution falseside_effects: []docs/build/packets/BP-0156.md
09. Dry-Run Evidence

artifact:bp0163-dry-run-evidence-contract-output

lnsat.platform.runtime_adapter_implementation_dry_run_evidence.v0_1

implementation_dry_run_evidence_only_no_runtime_adapterpolicy 12approvals 1audit 8runtime implementation falsedispatch falseinvocation falseexecution falseside_effects: []docs/build/packets/BP-0163.md

Preflight Status

preflight_only_no_invocation
preflight:service-control-adapter-invocationadapter:service-control-manifest
adapter live falsebroker dispatch falseexecution falseside_effects: []

service_control_adapter

Input Evidence
evidence:bp0096-source-only-substrate-control-intent, evidence:bp0102-capability-broker-request, evidence:bp0108-substrate-adapter-manifest
Policy Gates
capability.broker.policy.review, services.mutation.approval, substrate.adapter.invocation.preflight.review, substrate.adapter.manifest.review, substrate.intent.policy.review
Denied Adapter Behavior
preflight classifies adapter invocation only, preflight does not instantiate adapter, preflight does not invoke substrate control, preflight fails closed without policy and approval evidence, preflight requires manifest and broker evidence before future use
docs/build/packets/BP-0114.md

Authorization Bundle

authorization_bundle_only_no_invocation
authorization_bundle:service-control-adapter-invocation7 policy gates
adapter live falsebroker dispatch falseexecution falseside_effects: []
Consistency Requirements
requested actor matches substrate intent, broker request, manifest, preflight, and expected result evidence, capability matches substrate intent, broker request, manifest accepted capabilities, preflight, and expected result evidence, risk level matches substrate intent, broker request, preflight, policy, approval, audit, result, and rollback evidence, target substrate kind matches substrate intent, broker request, manifest, and preflight evidence, requested control mode matches substrate intent, broker request, manifest, and preflight evidence
Denied Live Behavior
authorization bundle does not dispatch broker request, authorization bundle does not execute runtime path, authorization bundle does not invoke adapter, no adapter invocation from preflight, no database writes, no live adapter invocation, no live broker dispatch, no live execution, no live substrate mutation, no raw shell or SSH, no secret values, no service, queue, DNS, Cloudflare, Docker, node-agent, or Git mutation, result evidence does not execute rollback, result evidence does not invoke adapter
docs/build/packets/BP-0126.md

Readiness Gates

readiness_gate_only_no_runtime_invocation
readiness_gate:service-control-adapter-runtime-readiness8 audit refs
dispatch falseinvocation falsebroker falseexecution false
Consistency Requirements
requested actor matches substrate intent, broker request, manifest, preflight, and expected result evidence, capability matches substrate intent, broker request, manifest accepted capabilities, preflight, and expected result evidence, risk level matches substrate intent, broker request, preflight, policy, approval, audit, result, and rollback evidence, target substrate kind matches substrate intent, broker request, manifest, and preflight evidence, requested control mode matches substrate intent, broker request, manifest, and preflight evidence
Denied Live Behavior
no adapter invocation from preflight, no database writes, no live adapter invocation, no live broker dispatch, no live execution, no live substrate mutation, no raw shell or SSH, no secret values, no service, queue, DNS, Cloudflare, Docker, node-agent, or Git mutation, readiness gate does not dispatch broker request, readiness gate does not execute runtime path, readiness gate does not invoke adapter, result evidence does not execute rollback, result evidence does not invoke adapter
docs/build/packets/BP-0132.md

Implementation Scope

implementation_scope_only_no_runtime_adapter
implementation_scope:service-control-adapter-runtimepacket:BP-0139-runtime-adapter-implementation
implementation falsedispatch falseinvocation falsebroker falseexecution false
Boundaries
boundary:source-only-adapter-scope: Scope contract may describe future adapter implementation zones only, boundary:no-live-dispatch-or-invocation: Scope contract must not dispatch broker requests or invoke adapters
Allowed Source Zones
zone:packages-runtime-adapters-future: src:packages/runtime-adapters, zone:packages-packets-contracts: src:packages/packets
Required Tests
test:runtime-adapter-implementation-scope-contract
docs/build/packets/BP-0138.md

Implementation Plan

implementation_plan_only_no_runtime_adapter
implementation_plan:service-control-adapter-runtimepacket:future-runtime-adapter-implementation
implementation falsedispatch falseinvocation falsebroker falseexecution false
Planned Files
src:packages/runtime-adapters/service-control: Future adapter implementation module after later approved packet, src:packages/packets/runtime-adapter-implementation-plan.ts: Source-only plan evidence for BP-0144
Implementation Steps
Define future adapter interface from BP-0138 scope evidence, Plan dry-run artifact before any adapter implementation
Dry-Run Plan
Future implementation packet must produce dry-run artifact before code path opens
docs/build/packets/BP-0144.md

Authorization Request

implementation_authorization_request_only_no_runtime_adapter
chain_review:bp0149-runtime-adapter-plan-chain-reviewpacket:future-runtime-adapter-implementation
implementation falsedispatch falseinvocation falsebroker falseexecution false
Chain Review
chain_review:bp0149-runtime-adapter-plan-chain-review
Implementation Plans
implementation_plan:service-control-adapter-runtime
Validation Commands
script:npm-workspace-packets-test-runtime-adapter-implementation-authorization-request: Run BP-0150 packet workspace test through named package script, script:npm-workspace-packets-test-runtime-adapter-implementation-plan: Run packet workspace test through named package script, script:npm-workspace-packets-typecheck: Run packet workspace typecheck through named package script
docs/build/packets/BP-0150.md

Approval Gates

implementation_approval_gate_only_no_runtime_adapter
authorization_request:bp0150-runtime-adapter-implementation-authorization-requestpacket:future-runtime-adapter-implementation
implementation falsedispatch falseinvocation falsebroker falseexecution false
Human Approvals
approval:human-runtime-adapter-implementation-approval-gate
Policy Gates
capability.broker.policy.review, services.mutation.approval, substrate.adapter.implementation_approval_gate.review, substrate.adapter.implementation_authorization_request.review, substrate.adapter.implementation_plan.review, substrate.adapter.implementation_scope.review, substrate.adapter.invocation.preflight.review, substrate.adapter.invocation.result.review, substrate.adapter.manifest.review, substrate.adapter.runtime_readiness_gate.review, substrate.intent.policy.review
Denied Runtime Behavior
approval gate does not create runtime adapter implementation, approval gate does not register dispatcher, approval gate does not dispatch broker request, approval gate does not invoke adapter, approval gate does not execute live runtime path
docs/build/packets/BP-0156.md

Dry-Run Evidence

implementation_dry_run_evidence_only_no_runtime_adapter
artifact:bp0163-dry-run-evidence-contract-outputpacket:future-runtime-adapter-implementation
implementation falsedispatch falseinvocation falsebroker falseexecution false
Dry-Run Artifacts
artifact:bp0163-dry-run-evidence-contract-output
Validation Commands
script:npm-workspace-packets-test-runtime-adapter-implementation-dry-run-evidence, script:npm-workspace-packets-typecheck
Denied Runtime Behavior
dry-run evidence does not create runtime adapter implementation, dry-run evidence does not register dispatcher, dry-run evidence does not dispatch broker request, dry-run evidence does not invoke adapter, dry-run evidence does not execute live runtime path
docs/build/packets/BP-0163.md

Missing Approvals

3 approvals
approval:human-runtime-adapter-implementation-approval-gate

Required approval evidence is visible only. Approve/deny mutation is not open.

approval:human-substrate-control

Required approval evidence is visible only. Approve/deny mutation is not open.

Blocked Invocation Reasons

10 blocked
No live broker dispatch

Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.

No live adapter invocation

Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.

No Docker runner, container launch, VM launch, SSH path, raw shell, root helper, node-agent, or host service install

Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.

No service mutation, deploy, DNS/Cloudflare mutation, package install, or infrastructure mutation

Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.

No database connection/write, migration execution, queue mutation, or persisted runtime state writer

Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.

No credential field, secret storage, connector setup, external service call, or live readiness scan

Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.

No Git command runner, branch mutation, stage, commit, push, or PR

Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.

Core MVP does not require Python or OS-specific binaries; those remain optional later adapter or node-agent scope

Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.

Next Packet Gates

1 gates
packet:future-runtime-adapter-implementation

Future implementation packet must cite dry-run evidence, approval gate, authorization request, policy gates, human approvals, and audit obligations before code can execute.

Evidence Checks

7 checks
Blocked live invocation language

Current handoff and packet log preserve no-live/no-runtime boundary.

Source Evidence

15 refs
BP-0200 Packetdocs/build/packets/BP-0200.json

Read-Only Runtime Readiness Management UI Preview

Runtime Readiness UI packet scope, non-goals, checks, and rollback.

Management IAdocs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.md

Runtime Readiness

Runtime Readiness screen contract and blocked invocation language.

Substrates Architecturedocs/architecture/SUBSTRATES_AND_NODES.md

OS-Level Connection Strategy

Core Node/TypeScript posture and optional Python/OS-binary adapter scope.

BP-0114 Preflightdocs/build/packets/BP-0114.md

Adapter Invocation Preflight

Source-only adapter invocation preflight evidence.

BP-0120 Resultdocs/build/packets/BP-0120.md

Adapter Invocation Result

Source-only adapter result evidence without execution.

BP-0126 Authorization Bundledocs/build/packets/BP-0126.md

Adapter Invocation Authorization Bundle

Cross-ref authorization evidence before invocation exists.

BP-0132 Readiness Gatedocs/build/packets/BP-0132.md

Runtime Adapter Readiness Gate

Runtime readiness gate evidence without runtime dispatch.

BP-0138 Implementation Scopedocs/build/packets/BP-0138.md

Runtime Adapter Implementation Scope

Implementation scope evidence before adapter implementation opens.

BP-0144 Implementation Plandocs/build/packets/BP-0144.md

Runtime Adapter Implementation Plan

Implementation plan evidence and dry-run plan.

BP-0150 Authorization Requestdocs/build/packets/BP-0150.md

Runtime Adapter Implementation Authorization Request

Authorization request evidence before implementation.

BP-0156 Approval Gatedocs/build/packets/BP-0156.md

Runtime Adapter Implementation Approval Gate

Human approval gate evidence before implementation.

BP-0163 Dry-Run Evidencedocs/build/packets/BP-0163.md

Runtime Adapter Implementation Dry-Run Evidence

Dry-run proof chain evidence without adapter implementation.

BP-0199 Substratesdocs/build/packets/BP-0199.json

Read-Only Substrates Management UI Preview

OS posture and substrate readiness evidence before runtime readiness.

Next SessionNEXT_SESSION.md

Active Slice

Current allowed scope, blocked scope, and next runtime gates.

Packet Logdocs/build/PACKET_LOG.md

Completed Packet

Latest packet closeout evidence and queued next packet.

AGENTS

Agent Management

packet BP-0197completeagent mutation falseruntime falseside_effects: []

Agent Profiles

1 source-backed profiles
Codex Observeragent.codex
observerdraftread-only source evidence

BP-0197 complete: read-only agent management preview

Provider
OpenAI Codex
Projects
lnsat
TTL
7200s
Allowed Capabilities

context.read, context.compile, repo.read

Blocked Capabilities

secret.read.never, raw_shell, production_db.write, deploy.prod

Approval Required

repo.write_branch, tests.run.sandbox, container.sandbox, deploy.request

packages/packets/fixtures/agent-profiles/valid/codex-observer-profile.json

Context Bundle Inputs

4 inputs
Policy envelope

context.compile, context.read, repo.read

Blocked: database.query_readonly.dev, deploy.execute.approved, deploy.prod, production_db.write, raw_shell, secret.read.never.

Handoff Prompts

3 prompts
Read order

Read first: `AGENTS.md`, `NEXT_SESSION.md`, `docs/DOCS_INDEX.md`, `docs/build/STATUS.json`, `docs/build/BOARD.md`, `docs/build/PACKET_LOG.md`, `docs/memory/CURRENT_STATE.md`, `docs/memory/DECISIONS.md`.

Next exact task

Next exact task: start BP-0217 Source-Only Auth Session And Authorization Levels Readiness Contract. Add only the source-only auth/session/authorization readiness contract and deterministic tests for local auth, third-party auth, isolated auth, user-selected authorization levels, tenant/project scope, credential references, policy, approval, audit, rollback, validation refs, source refs, and no-live posture.

Evidence Checks

6 checks
Blocked live gates

Handoff keeps live, runtime, mutation, Git, deploy, and secrets blocked.

Blocked Live Gates

20 gates
No runtime dispatcher, live broker dispatch, live adapter invocation, or live execution.

Blocked by BP-0197 non-goal or current handoff boundary.

No credential field, secret storage, connector setup, or external service call.

Blocked by BP-0197 non-goal or current handoff boundary.

No DB connection/write, migration, queue mutation, or persisted writer.

Blocked by BP-0197 non-goal or current handoff boundary.

No Git command runner, branch mutation, stage, commit, push, or PR.

Blocked by BP-0197 non-goal or current handoff boundary.

live substrate control

Blocked by BP-0197 non-goal or current handoff boundary.

node-agent install/enrollment/heartbeat/host telemetry collection

Blocked by BP-0197 non-goal or current handoff boundary.

Docker runner/container launch/VM launch

Blocked by BP-0197 non-goal or current handoff boundary.

SSH path

Blocked by BP-0197 non-goal or current handoff boundary.

live inventory scan

Blocked by BP-0197 non-goal or current handoff boundary.

DB connection

Blocked by BP-0197 non-goal or current handoff boundary.

DB write

Blocked by BP-0197 non-goal or current handoff boundary.

live data/storage

Blocked by BP-0197 non-goal or current handoff boundary.

vector DB runtime

Blocked by BP-0197 non-goal or current handoff boundary.

queue

Blocked by BP-0197 non-goal or current handoff boundary.

live connector

Blocked by BP-0197 non-goal or current handoff boundary.

product Git mutation outside completed BP-0206 publication

Blocked by BP-0197 non-goal or current handoff boundary.

live auth provider integration

Blocked by BP-0197 non-goal or current handoff boundary.

Source Evidence

8 refs
BP-0197 Packetdocs/build/packets/BP-0197.json

Read-Only Agent Management UI Preview

Current Agents UI packet scope, checks, non-goals, and rollback.

Agent Onboardingdocs/onboarding/AGENT_ONBOARDING.md

Agent Profile

Agent profile fields, validation rules, and blocked capabilities.

Agent Profile Templatedocs/templates/AGENT_PROFILE.md

Agent Profile Template

Template for source-backed agent profile evidence.

Codex Observer Fixturepackages/packets/fixtures/agent-profiles/valid/codex-observer-profile.json

Codex Observer

Valid source-backed observer profile fixture.

Onboarding Context Evidenceapps/web/src/lib/onboarding-context-inspector.ts

ContextPacket proposal

Read-only context packet evidence built from repo-local profiles.

Management IAdocs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.md

Agents

Agents screen contract and blocked-scope language.

Next SessionNEXT_SESSION.md

Active Slice

Current handoff, allowed scope, and blocked live gates.

Next Context Promptdocs/prompts/NEXT_CONTEXT_PROMPT.md

Continuation prompt

Copy-ready handoff prompt for the next build window.

APPROVAL CENTER

Read-Only Decision Preview

4 previews1 approval-required2 blockedmutation controls falseside effects 0

Request Previews

source-linked
Render Approval Center previewHuman management UI
read-only-previewrisk medium
Requested Action
Show approval evidence for blocked and approval-required work in the management UI.
Policy Decision
Allowed as read-only source evidence because it has no approval, denial, queue, runtime, DB, or deploy control.
Blocked Explanation
Mutation controls remain absent. The preview can only link source evidence and explain gates.

Rollback Plan

  • Remove the Approval Center component and model.
  • Remove BP-0190 route/page wiring.
  • No persisted approval state exists to migrate or restore.

Audit Obligations

  • Record source refs used for the preview.
  • Record that side_effects remains empty.
  • Record that no approval mutation path exists.

Allowed Review Controls

  • Open source refs
  • Read rollback plan

Blocked Mutation Controls

  • Approve request
  • Deny request
  • Execute action
Future persistence migration requestDatabase migration workflow
approval-requiredrisk high
Requested Action
Execute Postgres or pgvector schema migration for knowledge, audit, approvals, sessions, or packet runs.
Policy Decision
Approval required before any migration execution. BP-0190 can preview evidence only and cannot connect to a database.
Blocked Explanation
DB connection/write, migration execution, writer implementation, live storage, and credential behavior remain blocked.

Rollback Plan

  • Require a signed migration artifact before execution.
  • Require backup/restore evidence and down-migration notes.
  • Disable writer paths until post-migration checks pass.

Audit Obligations

  • Capture requested migration id, packet id, approver, and policy result.
  • Capture source refs from the persistence schema plan.
  • Capture before/after role and grant verification evidence.

Allowed Review Controls

  • Open persistence plan
  • Read audit obligations

Blocked Mutation Controls

  • Run migration
  • Create DB writer
  • Store secrets
Future runtime adapter invocationRuntime readiness / Gateway policy
blockedrisk critical
Requested Action
Dispatch a live broker or runtime adapter action against a substrate, service, repo, queue, or node.
Policy Decision
Blocked until a later packet opens Gateway policy, approval persistence, audit persistence, and runtime adapter scope.
Blocked Explanation
Runtime dispatcher, live broker dispatch, live adapter invocation, live execution, Docker runner, node-agent, SSH, deploy, and queue mutation remain closed.

Rollback Plan

  • Require dry-run evidence before live dispatch is considered.
  • Require explicit stop/undo plan per substrate.
  • Require operator approval and audit persistence before execution.

Audit Obligations

  • Capture policy decision, requested tool, substrate, dry-run evidence, and rollback reference.
  • Capture Gateway authorization result.
  • Capture immutable audit event before and after execution in a later packet.

Allowed Review Controls

  • Open blocked scope evidence
  • Read policy decision

Blocked Mutation Controls

  • Dispatch runtime adapter
  • Mutate service
  • Restart infrastructure
Approval mutation endpointApprovals / Gateway / MCP
blockedrisk high
Requested Action
Create approve/deny state changes for approval requests from the management UI, Gateway route, or MCP tool.
Policy Decision
Blocked in BP-0190. The current surface may not create approval state, queue work, or expose a state-changing route/tool.
Blocked Explanation
Approve/deny mutation, Gateway write route, state-changing MCP tool, DB writer, and queue remain non-goals.

Rollback Plan

  • Keep mutation controls absent from BP-0190.
  • Require approval request schema, audit writer, and role policy before any later mutation.
  • Fail closed if approval persistence is unavailable.

Audit Obligations

  • Capture future approve/deny actor, source refs, policy result, and rollback plan.
  • Capture request lifecycle state only after persistence is approved.
  • Reject uncited approval decisions.

Allowed Review Controls

  • Open BP-0190 packet
  • Read blocked explanation

Blocked Mutation Controls

  • Approve request
  • Deny request
  • Create approval row

Evidence Checks

5 checks
Live scope boundary

Next-session handoff keeps live, runtime, DB, and mutation gates closed.

Blocked Center Actions

no mutation path
Execute requested action

Runtime, DB, queue, deploy, and live adapter paths remain outside current scope.

NEXT_SESSION.md

Source Evidence

7 refs
BP-0190 Packetdocs/build/packets/BP-0190.md

Approval Center Plan And UI Preview

Current packet scope for read-only approval preview and no approval mutation.

Next SessionNEXT_SESSION.md

Active Slice

Current blocked/live scope and handoff boundary.

Management IAdocs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.md

Approvals Screen Contract

Operator UI rules for approvals, risk, source evidence, rollback, and audit obligations.

Persistence Plandocs/architecture/PERSISTENCE_SCHEMA_PLAN.md

Migration Approval Workflow

Future DB schema and migration approval workflow, plan-only.

Policy And Auditdocs/architecture/POLICY_AND_AUDIT.md

Policy and audit boundary

Gateway, policy, approval, and audit rules for future state changes.

BP-0189 Packetdocs/build/packets/BP-0189.md

Persistence Plan

Completed docs-only persistence planning packet.

Build Statusdocs/build/STATUS.json

Current build status

Current packet chain and source-only build posture.

AUDIT

Audit Management

packet BP-0198completeaudit writes falsepersisted writer falseside_effects: []

Audit Event Previews

1 source-only previews
context_packet_compiledevt_pkt_onboarding_context_lnsat_agent_codex_context_packet_compiled_2026_05_04t00_00_00_000z
successnot_persistedvalid ledger preview
Packet
pkt_onboarding_context_lnsat_agent_codex
Source refs
10
Side effects
0
docs/build/packets/BP-0036.md

Persistence Readiness

5 gates
Migration approval preview

writer.migrate; static checker required: [object Object].

preview-onlylive falseside_effects: []docs/build/packets/BP-0046.md
Database security preflight

postgresql_rls; required fields tenant_id, project_id.

blocked-livelive falseside_effects: []docs/build/packets/BP-0065.md
Persistence readiness gate

source_ready_for_later_scope_request_only; live persistence false.

blocked-livelive falseside_effects: []docs/build/packets/BP-0071.md

Writer Status

6 fields
Record digest

sha256:41775b6f383b496e48086d20de7729fcc93b1e14d7a94f89f49244288d3bf528

Canonical digest only; no raw payload echo.

Display-Only Filters

6 filters
Packet

pkt_onboarding_context_lnsat_agent_codex

Display-only packet filter; no query or persisted read exists.

Readiness

source_ready_for_later_scope_request_only

Readiness is source-only and requires a later explicit packet.

Evidence Checks

9 checks

Blocked Persistence Gates

22 gates
No audit event write, append, update, delete, or replay mutation.

Blocked by BP-0198 non-goal or current handoff boundary.

No database connection/write, migration execution, queue mutation, or persisted writer implementation.

Blocked by BP-0198 non-goal or current handoff boundary.

No runtime dispatcher, live broker dispatch, live adapter invocation, or live execution.

Blocked by BP-0198 non-goal or current handoff boundary.

No credential field, secret storage, connector setup, or external service call.

Blocked by BP-0198 non-goal or current handoff boundary.

No Git command runner, branch mutation, stage, commit, push, or PR.

Blocked by BP-0198 non-goal or current handoff boundary.

live substrate control

Blocked by BP-0198 non-goal or current handoff boundary.

live inventory scan

Blocked by BP-0198 non-goal or current handoff boundary.

migration execution

Blocked by BP-0198 non-goal or current handoff boundary.

DB connection

Blocked by BP-0198 non-goal or current handoff boundary.

DB write

Blocked by BP-0198 non-goal or current handoff boundary.

writer implementation

Blocked by BP-0198 non-goal or current handoff boundary.

chunk persistence

Blocked by BP-0198 non-goal or current handoff boundary.

context bundle persistence

Blocked by BP-0198 non-goal or current handoff boundary.

eval run persistence

Blocked by BP-0198 non-goal or current handoff boundary.

live data/storage

Blocked by BP-0198 non-goal or current handoff boundary.

vector DB runtime

Blocked by BP-0198 non-goal or current handoff boundary.

queue

Blocked by BP-0198 non-goal or current handoff boundary.

live connector

Blocked by BP-0198 non-goal or current handoff boundary.

product Git mutation outside completed BP-0206 publication

Blocked by BP-0198 non-goal or current handoff boundary.

Source Evidence

11 refs
BP-0198 Packetdocs/build/packets/BP-0198.json

Read-Only Audit Management UI Preview

Current Audit UI packet scope, checks, non-goals, and rollback.

Management IAdocs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.md

Audit

Audit screen contract and blocked-scope language.

Persistence Plandocs/architecture/PERSISTENCE_SCHEMA_PLAN.md

audit_events

Future audit persistence schema target and migration approval flow.

BP-0036 Record Contractdocs/build/packets/BP-0036.md

Audit Ledger Record Schema Contract

Typed audit ledger record preview contract.

BP-0046 Migration Approvaldocs/build/packets/BP-0046.md

Audit Ledger Migration Approval Evidence Preview

Read-only migration approval preview evidence.

BP-0052 Writer Interfacedocs/build/packets/BP-0052.md

Append-Only Audit Ledger Writer Interface Contract

Pure append-only writer interface contract evidence.

BP-0059 Persistence Preflightdocs/build/packets/BP-0059.md

Audit Writer Persistence Preflight Evidence Helper

Source-only writer persistence preflight evidence.

BP-0065 Database Securitydocs/build/packets/BP-0065.md

Audit Ledger Database Security Preflight

Source-only database security preflight evidence.

BP-0071 Readiness Gatedocs/build/packets/BP-0071.md

Audit Ledger Persistence Readiness Gate

Persistence implementation readiness evidence.

Next SessionNEXT_SESSION.md

Active Slice

Current allowed scope and blocked live gates.

Packet Logdocs/build/PACKET_LOG.md

Completed Packet: BP-0198 Read-Only Audit Management UI Preview

Latest completed packet evidence and queued substrate slice.

SETTINGS / POLICY

Auth posture

contract lnsat.platform.auth_integration_boundary.v0_1local + third-partyuser-selected levelssettings mutation falseside_effects: []
Live auth configuredfalse

Live provider, sessions, and credentials are blocked.

NEXT_SESSION.md

Deployment Owner Boundary

source evidence
Integration ownershipdeployment_owner_controls_integrations: true
source-evidence

Users connect their own services, credential references, capabilities, approvals, audit, rollback, and disablement paths.

docs/architecture/AUTH_AND_INTEGRATION_POSTURE.md

Auth Modes

4 source contract terms

Authorization Levels

7 levels

Integration Descriptor Requirements

secret references only

Fail-Closed Checks

10 checks

Blocked Live Gates

no setup writer
settings mutation

Requires a later explicit packet with policy, approval, audit, and rollback evidence.

provider connection action

Requires a later explicit packet with policy, approval, audit, and rollback evidence.

credential field

Requires a later explicit packet with policy, approval, audit, and rollback evidence.

save form

Requires a later explicit packet with policy, approval, audit, and rollback evidence.

live connector setup

Requires a later explicit packet with policy, approval, audit, and rollback evidence.

permission mutation

Requires a later explicit packet with policy, approval, audit, and rollback evidence.

user/session database

Requires a later explicit packet with policy, approval, audit, and rollback evidence.

database write

Requires a later explicit packet with policy, approval, audit, and rollback evidence.

queue mutation

Requires a later explicit packet with policy, approval, audit, and rollback evidence.

runtime dispatch

Requires a later explicit packet with policy, approval, audit, and rollback evidence.

deploy path

Requires a later explicit packet with policy, approval, audit, and rollback evidence.

secret behavior

Requires a later explicit packet with policy, approval, audit, and rollback evidence.

Evidence Checks

7 checks
User-owned integration descriptor

BP-0193 records future descriptor requirements and secret-reference-only behavior.

Blocked live gates

Current handoff blocks live auth, credentials, connector setup, and mutation.

Source Evidence

6 refs
Auth And Integration Posturedocs/architecture/AUTH_AND_INTEGRATION_POSTURE.md

BP-0193 Source Contract

Defines open source self-deploy posture, deployment-owner auth choices, user-owned integrations, descriptor rules, and fail-closed checks.

BP-0193 Packetdocs/build/packets/BP-0193.md

Auth And User-Owned Integration Boundary

Completed source-only packet for auth modes, authorization levels, and user-owned integration boundary.

BP-0194 Packetdocs/build/packets/BP-0194.md

Settings Policy Auth Posture UI Preview

Current UI packet scope for read-only Settings/Policy posture evidence.

Management IAdocs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.md

Settings / Policy

Human management UI rule that auth and integration posture stays source evidence until later live auth or settings packets.

Policy And Auditdocs/architecture/POLICY_AND_AUDIT.md

Auth and integration policy

Gateway policy remains the authority; auth providers and integrations are adapters.

Next SessionNEXT_SESSION.md

Active Slice

Current allowed read-only BP-0194 scope and blocked live auth, integration, DB, runtime, and credential gates.

Packet fixtures6
Valid packets2
Profiles9
Context proposals1
Migration approvals1
Writer contracts1
Persistence preflights1
DB security preflights1
Readiness gates1
Compiler rejects4

Default Focus

Context Packet
Source
packages/packets/fixtures/valid/context-packet.json
Validation
ok
Packet
pkt_context_0001
Risk
1

Context Packet

validated
Source
packages/packets/fixtures/valid/context-packet.json
Validation
ok
Packet
pkt_context_0001
Risk
1

Canonical JSON

{"actor_id":"agent.codex","budget":{"cost_usd":0.25,"cpu":1,"memory_mb":512,"runtime_seconds":300,"tokens":8000},"constraints":{"output_contract":"summary_with_source_refs"},"created_at":"2026-05-03T00:00:00Z","intent":"Compile source-backed context for a bounded packet task.","packet_id":"pkt_context_0001","packet_type":"ContextPacket","permission_envelope":{"allow":["context.read","context.compile"],"block":["secret.read.never","deploy.execute.approved"]},"policy_profile":"context_readonly","project_id":"hypler","requires_approval":false,"resource_refs":["repo:lnsat"],"risk_level":1,"session_id":"sess_bp0002_0001","source_refs":["doc:docs/architecture/PACKET_MODEL.md"],"ttl_seconds":3600,"version":"0.1"}

Stable Hash

  • sha256:2e3967959e325d18a0222afd74f2ade775f6b405cee068c0c26ee0d0d3c6f436

Policy Preview

  • allow
  • approval not required

Audit Preview

  • packet_validated: success
  • policy_checked: allow

Execution Packet

validated
Source
packages/packets/fixtures/valid/execution-packet.json
Validation
ok
Packet
pkt_execute_0001
Risk
3

Canonical JSON

{"actor_id":"agent.codex","budget":{"cost_usd":0.5,"cpu":2,"memory_mb":4096,"runtime_seconds":900,"tokens":4000},"constraints":{"network":"disabled","writes":"workspace_only"},"created_at":"2026-05-03T00:00:00Z","intent":"Run package checks inside an approved sandbox.","packet_id":"pkt_execute_0001","packet_type":"ExecutionPacket","permission_envelope":{"allow":["tests.run.sandbox"],"block":["ssh","secret.read.never","database.write","deploy.execute.approved"]},"policy_profile":"agent_sandbox","project_id":"hypler","requires_approval":false,"resource_refs":["repo:lnsat"],"risk_level":3,"session_id":"sess_bp0002_0001","source_refs":["doc:docs/architecture/PACKET_MODEL.md"],"ttl_seconds":7200,"version":"0.1"}

Stable Hash

  • sha256:d3059f2ddf01fa73fb993ae3a33db6a89b240e380261cd93c1b54522e8dd78fe

Policy Preview

  • allow
  • approval not required

Audit Preview

  • packet_validated: success
  • policy_checked: allow

Missing Required Field

fail-closed
Source
packages/packets/fixtures/invalid/missing-required-field.json
Validation
rejected
Packet
untrusted
Risk
blocked
packet.missing_required_field/intent

Missing required field 'intent'.

packet.invalid_field/intent

intent must be a non-empty string.

Audit Preview

  • packet_rejected

Rejects Risk Out Of Range

fail-closed
Source
packages/packets/fixtures/invalid/rejects-risk-out-of-range.json
Validation
rejected
Packet
untrusted
Risk
blocked
packet.invalid_field/risk_level

risk_level must be an integer from 0 through 8.

Audit Preview

  • packet_rejected

Rejects Secret Value

fail-closed
Source
packages/packets/fixtures/invalid/rejects-secret-value.json
Validation
rejected
Packet
untrusted
Risk
blocked
packet.secret_value_embedded/constraints/secret_value

Packet constraints must not contain embedded secret values.

Audit Preview

  • packet_rejected

Rejects Unknown Field

fail-closed
Source
packages/packets/fixtures/invalid/rejects-unknown-field.json
Validation
rejected
Packet
untrusted
Risk
blocked
packet.unexpected_field/shell

Unexpected root field 'shell'.

Audit Preview

  • packet_rejected

ONBOARDING

Profile Inspector

2 valid7 fail-closedside effects 0

Project Profile

validated
Source
packages/packets/fixtures/project-profiles/valid/lnsat-project-profile.json
Validation
ok
Profile
lnsat
Side effects
0

Profile Ref

  • Layered Network Substrate for Agent Telemetry
  • owner: Jeff
  • status: draft
  • repos: 1
  • domains: lnsat.hypler.com

Source Refs

  • doc:docs/onboarding/PROJECT_ONBOARDING.md
  • doc:docs/templates/PROJECT_PROFILE.md
  • doc:NEXT_SESSION.md

Capabilities

  • allow: context.read
  • allow: context.compile
  • allow: repo.read
  • block: secret.read.never
  • block: deploy.execute.approved
  • block: database.query_readonly.dev

Inspection Evidence

  • docs/onboarding/PROJECT_ONBOARDING.md
  • docs/templates/PROJECT_PROFILE.md
  • docs/build/packets/BP-0020.md

Project Profile

fail-closed
Source
packages/packets/fixtures/project-profiles/invalid/missing-required-field.json
Validation
rejected
Profile
untrusted
Side effects
0
project_profile.missing_required_field/policies

Missing required field 'policies'.

project_profile.invalid_field/policies

policies must be an object.

Inspection Evidence

  • docs/onboarding/PROJECT_ONBOARDING.md
  • docs/templates/PROJECT_PROFILE.md
  • docs/build/packets/BP-0020.md
  • raw profile content: withheld
  • side effects: 0

Project Profile

fail-closed
Source
packages/packets/fixtures/project-profiles/invalid/rejects-repo-without-source.json
Validation
rejected
Profile
untrusted
Side effects
0
project_profile.invalid_field/repos/0

repo profile must include a repo path or remote.

Inspection Evidence

  • docs/onboarding/PROJECT_ONBOARDING.md
  • docs/templates/PROJECT_PROFILE.md
  • docs/build/packets/BP-0020.md
  • raw profile content: withheld
  • side effects: 0

Project Profile

fail-closed
Source
packages/packets/fixtures/project-profiles/invalid/rejects-secret-value.json
Validation
rejected
Profile
untrusted
Side effects
0
project_profile.secret_value_embedded/secrets/secret_value

Project profile secrets must use references only.

project_profile.unexpected_field/secrets/secret_value

Unexpected secrets field 'secret_value'.

Inspection Evidence

  • docs/onboarding/PROJECT_ONBOARDING.md
  • docs/templates/PROJECT_PROFILE.md
  • docs/build/packets/BP-0020.md
  • raw profile content: withheld
  • side effects: 0

Agent Profile

validated
Source
packages/packets/fixtures/agent-profiles/valid/codex-observer-profile.json
Validation
ok
Profile
agent.codex
Side effects
0

Profile Ref

  • Codex Observer
  • provider: OpenAI Codex
  • role: observer
  • status: draft
  • ttl: 7200s

Source Refs

  • doc:docs/onboarding/AGENT_ONBOARDING.md
  • doc:docs/templates/AGENT_PROFILE.md
  • doc:NEXT_SESSION.md

Capabilities

  • allow: context.read
  • allow: context.compile
  • allow: repo.read
  • block: secret.read.never
  • block: raw_shell
  • block: production_db.write
  • block: deploy.prod

Inspection Evidence

  • docs/onboarding/AGENT_ONBOARDING.md
  • docs/templates/AGENT_PROFILE.md
  • docs/build/packets/BP-0021.md

Agent Profile

fail-closed
Source
packages/packets/fixtures/agent-profiles/invalid/missing-required-field.json
Validation
rejected
Profile
untrusted
Side effects
0
agent_profile.missing_required_field/output_contract

Missing required field 'output_contract'.

agent_profile.invalid_field/output_contract

output_contract must be an object.

Inspection Evidence

  • docs/onboarding/AGENT_ONBOARDING.md
  • docs/templates/AGENT_PROFILE.md
  • docs/build/packets/BP-0021.md
  • raw profile content: withheld
  • side effects: 0

Agent Profile

fail-closed
Source
packages/packets/fixtures/agent-profiles/invalid/rejects-conflicting-capabilities.json
Validation
rejected
Profile
untrusted
Side effects
0
agent_profile.capability_conflict/capabilities/allow/1

capability cannot be both allowed and blocked.

Inspection Evidence

  • docs/onboarding/AGENT_ONBOARDING.md
  • docs/templates/AGENT_PROFILE.md
  • docs/build/packets/BP-0021.md
  • raw profile content: withheld
  • side effects: 0

Agent Profile

fail-closed
Source
packages/packets/fixtures/agent-profiles/invalid/rejects-empty-project-scope.json
Validation
rejected
Profile
untrusted
Side effects
0
agent_profile.invalid_field/projects_allowed

projects_allowed must contain at least one entry.

Inspection Evidence

  • docs/onboarding/AGENT_ONBOARDING.md
  • docs/templates/AGENT_PROFILE.md
  • docs/build/packets/BP-0021.md
  • raw profile content: withheld
  • side effects: 0

Agent Profile

fail-closed
Source
packages/packets/fixtures/agent-profiles/invalid/rejects-secret-value.json
Validation
rejected
Profile
untrusted
Side effects
0
agent_profile.secret_value_embedded/session/secret_value

Agent profile secrets must use references only.

agent_profile.unexpected_field/session/secret_value

Unexpected session field 'secret_value'.

Inspection Evidence

  • docs/onboarding/AGENT_ONBOARDING.md
  • docs/templates/AGENT_PROFILE.md
  • docs/build/packets/BP-0021.md
  • raw profile content: withheld
  • side effects: 0

CONTEXTPACKET

Onboarding Ledger Preview

1 proposal4 fail-closed errorsside effects 0

ContextPacket Proposal

validated
Packet
pkt_onboarding_context_lnsat_agent_codex
Validation
ok
TTL
7200s
Side effects
0
Ledger preview
1 valid

Packet Ref

  • ContextPacket
  • pkt_onboarding_context_lnsat_agent_codex
  • sha256:4714650cd278be8259aac07ea86984f5675b541a149ea2094866dde558fc422d

Profile Refs

  • packages/packets/fixtures/project-profiles/valid/lnsat-project-profile.json
  • packages/packets/fixtures/agent-profiles/valid/codex-observer-profile.json

Policy Envelope

  • allow: context.compile
  • allow: context.read
  • allow: repo.read
  • block: database.query_readonly.dev
  • block: deploy.execute.approved
  • block: deploy.prod
  • block: production_db.write
  • block: raw_shell
  • block: secret.read.never

Budget

  • tokens: 120000
  • runtime: 7200s
  • cost: 10
  • cpu: 0
  • memory: 0mb
  • ttl: 7200s

Validation Result

  • ok
  • errors: 0
  • side effects: 0

Trusted Source Refs

  • doc:NEXT_SESSION.md
  • doc:docs/architecture/PACKET_MODEL.md
  • doc:docs/architecture/POLICY_AND_AUDIT.md
  • doc:docs/build/packets/BP-0027.md
  • doc:docs/onboarding/AGENT_ONBOARDING.md
  • doc:docs/onboarding/PROJECT_ONBOARDING.md
  • doc:docs/templates/AGENT_PROFILE.md
  • doc:docs/templates/PROJECT_PROFILE.md
  • fixture:packages/packets/fixtures/agent-profiles/valid/codex-observer-profile.json
  • fixture:packages/packets/fixtures/project-profiles/valid/lnsat-project-profile.json

Audit Preview

  • context_packet_compiled
  • status: success
  • event: evt_pkt_onboarding_context_lnsat_agent_codex_context_packet_compiled_2026_05_04t00_00_00_000z
  • packet: pkt_onboarding_context_lnsat_agent_codex
  • profile project: packages/packets/fixtures/project-profiles/valid/lnsat-project-profile.json
  • profile agent: packages/packets/fixtures/agent-profiles/valid/codex-observer-profile.json
  • source refs: 10
  • reason codes: none
  • side effects: 0

Ledger Record Preview

  • record: alr_context_packet_compiled_ctx_inspect_001
  • source event: evt_pkt_onboarding_context_lnsat_agent_codex_context_packet_compiled_2026_05_04t00_00_00_000z
  • persistence: not_persisted
  • validation: ok
  • event type: context_packet_compiled
  • status: success
  • retention: preview
  • idempotency: audit:context_packet_compiled:evt_pkt_onboarding_context_lnsat_agent_codex_context_packet_compiled_2026_05_04t00_00_00_000z
  • reason codes: none
  • redaction command: not_present
  • redaction value: not_present
  • redaction invalid payload: not_present
  • redaction secrets: not_present
  • source refs: 11
  • side effects: 0

Compiler Fail-Closed Probe

raw input withheld
Request
ctx-inspect-fail-closed
Validation
fail-closed
Packet
withheld
Side effects
0
Ledger preview
1 valid
onboarding_context_inspection.unexpected_field/command

Unexpected onboarding ContextPacket inspection request field.

onboarding_context_inspection.unexpected_field/rejected_value

Unexpected onboarding ContextPacket inspection request field.

onboarding_context_inspection.unexpected_field/invalid_payload_content

Unexpected onboarding ContextPacket inspection request field.

onboarding_context_inspection.unexpected_field/secret_like_value

Unexpected onboarding ContextPacket inspection request field.

Audit Preview

  • context_packet_inspection_rejected
  • status: failure
  • event: evt_ctx_inspect_fail_closed_context_packet_inspection_rejected_2026_05_04t00_00_00_000z
  • packet: none
  • reason codes: onboarding_context_inspection.unexpected_field
  • source refs: 10
  • side effects: 0

Ledger Record Preview

  • record: alr_context_packet_inspection_rejected_ctx_inspect_fail_closed
  • source event: evt_ctx_inspect_fail_closed_context_packet_inspection_rejected_2026_05_04t00_00_00_000z
  • persistence: not_persisted
  • validation: ok
  • event type: context_packet_inspection_rejected
  • status: failure
  • retention: preview
  • idempotency: audit:context_packet_inspection_rejected:evt_ctx_inspect_fail_closed_context_packet_inspection_rejected_2026_05_04t00_00_00_000z
  • reason codes: onboarding_context_inspection.unexpected_field
  • redaction command: withheld
  • redaction value: withheld
  • redaction invalid payload: withheld
  • redaction secrets: withheld
  • source refs: 11
  • side effects: 0

Compiler Evidence

  • raw input content: withheld
  • trusted source refs: 0
  • request errors: 4
  • compiler errors: 0
  • profile errors: 0
  • side effects: 0

AUDIT LEDGER

Migration Approval Preview

BP-0046 evidencelive execution blockedside effects 0

BP-0046 Approval Evidence

writer.migrate
Operation
writer.migrate
Policy
approval_required
Approval kind
audit_ledger_migration
Live execution
blocked
Side effects
0

Policy Gate

  • contract: lnsat.policy.audit_ledger_writer_gate.v0_1
  • operation: writer.migrate
  • BP-0039 decision: approval_required
  • requires approval: true
  • risk: 7
  • reason codes: policy.audit_ledger_migration_requires_approval
  • side effects: 0

Approval Request

  • contract: lnsat.policy.audit_ledger_writer_approval_request.v0_1
  • request: apr_bp0046_audit_events_migration
  • status: requested
  • BP-0040 approval kind: audit_ledger_migration
  • policy gate: pol_req_bp0046_audit_events_migration
  • side effects: 0

Artifact Refs

  • BP-0044 SQL artifact: packages/audit/migrations/postgresql/0001_audit_events_v0_1.sql
  • BP-0044 manifest: packages/audit/migrations/postgresql/0001_audit_events_v0_1.manifest.json
  • docs/reviews/audit-ledger-migrations/BP-0044-0001_audit_events_v0_1.md
  • docs/reviews/audit-ledger-migrations/BP-0044-0001_audit_events_v0_1.smoke.md
  • docs/reviews/audit-ledger-migrations/BP-0045-0001_audit_events_v0_1.static-check.md

Static Checker

  • BP-0045 static checker: scripts/check-audit-ledger-migrations.mjs
  • required command: npm run audit:migrations:check
  • side effects: 0

No-Live Boundary

  • live_execution_allowed: false
  • side_effects: []
  • contract:lnsat.policy.audit_ledger_writer_gate.v0_1
  • contract:lnsat.policy.audit_ledger_writer_approval_request.v0_1
  • artifact:packages/audit/migrations/postgresql/0001_audit_events_v0_1.sql
  • manifest:packages/audit/migrations/postgresql/0001_audit_events_v0_1.manifest.json
  • checker:scripts/check-audit-ledger-migrations.mjs
  • review:docs/reviews/audit-ledger-migrations/BP-0044-0001_audit_events_v0_1.md
  • review:docs/reviews/audit-ledger-migrations/BP-0044-0001_audit_events_v0_1.smoke.md
  • review:docs/reviews/audit-ledger-migrations/BP-0045-0001_audit_events_v0_1.static-check.md
  • packet:BP-0039
  • packet:BP-0040
  • packet:BP-0044
  • packet:BP-0045

AUDIT LEDGER

Writer Interface Evidence

BP-0052 evidencelive execution blockedside effects 0

BP-0052 Writer Contract

ledger.record.append
Operation
ledger.record.append
Policy
approval_required
Approval kind
ledger_state_change
Live execution
blocked
Fail-closed probes
3

Writer Contract

  • contract: lnsat.audit.audit_ledger_writer_interface.v0_1
  • request: req_bp0053_append
  • operation: ledger.record.append
  • record: alr_context_packet_compiled_ctx_inspect_001
  • event: evt_pkt_onboarding_context_lnsat_agent_codex_context_packet_compiled_2026_05_04t00_00_00_000z

Policy Gate

  • contract: lnsat.policy.audit_ledger_writer_gate.v0_1
  • BP-0039 decision: approval_required
  • decision id: pol_req_bp0053_append
  • requires approval: true
  • reason codes: policy.audit_ledger_state_change_requires_approval

Approval Request

  • contract: lnsat.policy.audit_ledger_writer_approval_request.v0_1
  • request: apr_bp0053_append
  • status: requested
  • BP-0040 approval kind: ledger_state_change
  • policy gate: pol_req_bp0053_append

Canonical Digest

  • canonical_record_digest: sha256:41775b6f383b496e48086d20de7729fcc93b1e14d7a94f89f49244288d3bf528

Idempotency

  • idempotency: audit:context_packet_compiled:evt_pkt_onboarding_context_lnsat_agent_codex_context_packet_compiled_2026_05_04t00_00_00_000z
  • duplicate behavior: exact_replay_returns_existing_ref
  • collision behavior: fail_closed

Append-Only Invariants

  • mode: insert_only
  • correction model: append_new_record_referencing_prior_record
  • forbidden: update
  • forbidden: delete
  • forbidden: truncate
  • forbidden: in_place_redaction

Redaction Summary

  • raw rejected command: not_present
  • raw rejected value: not_present
  • raw invalid payload: not_present
  • secret-like values: not_present

Source Refs

  • contract:lnsat.gateway.onboarding_context_packet_inspection.v0_1
  • doc:NEXT_SESSION.md
  • doc:docs/architecture/PACKET_MODEL.md
  • doc:docs/architecture/POLICY_AND_AUDIT.md
  • doc:docs/build/packets/BP-0027.md
  • doc:docs/onboarding/AGENT_ONBOARDING.md
  • doc:docs/onboarding/PROJECT_ONBOARDING.md
  • doc:docs/templates/AGENT_PROFILE.md
  • doc:docs/templates/PROJECT_PROFILE.md
  • fixture:packages/packets/fixtures/agent-profiles/valid/codex-observer-profile.json
  • fixture:packages/packets/fixtures/project-profiles/valid/lnsat-project-profile.json

No-Live Boundary

  • live_execution_allowed: false
  • side_effects: []

Writer Fail-Closed Probes

raw input withheld
Missing BP-0040 approval requestaudit_ledger_writer.approval_request_required

/approval_request

Mismatched BP-0040 approval requestaudit_ledger_writer.approval_policy_mismatch

/approval_request/policy_gate_ref/decision_id

Non-approval BP-0039 policy gateaudit_ledger_writer.policy_gate_invalid

/policy_gate_decision/decision

Non-approval BP-0039 policy gateaudit_ledger_writer.policy_gate_invalid

/policy_gate_decision/reason_codes

Non-approval BP-0039 policy gateaudit_ledger_writer.approval_policy_mismatch

/approval_request/policy_gate_ref/decision_id

Fail-Closed Evidence

  • Missing BP-0040 approval request: withheld
  • contract: null
  • side effects: 0
  • errors: 1
  • Mismatched BP-0040 approval request: withheld
  • contract: null
  • side effects: 0
  • errors: 1
  • Non-approval BP-0039 policy gate: withheld
  • contract: null
  • side effects: 0
  • errors: 3

AUDIT LEDGER

Persistence Preflight Evidence

BP-0059 evidencelive execution blockedside effects 0

BP-0059 Preflight Evidence

audit_events.v0_1
Storage target
audit_events.v0_1
Writer operation
ledger.record.append
Policy
approval_required
Live execution
blocked
Fail-closed probes
4

Preflight Contract

  • contract: lnsat.audit.audit_ledger_writer_persistence_preflight.v0_1
  • request: req_bp0060_preflight
  • storage target: audit_events.v0_1
  • BP-0052 writer interface: req_bp0053_append
  • operation: ledger.record.append

Policy Gate

  • contract: lnsat.policy.audit_ledger_writer_gate.v0_1
  • BP-0039 decision: approval_required
  • decision id: pol_req_bp0053_append
  • requires approval: true
  • reason codes: policy.audit_ledger_state_change_requires_approval

Approval Request

  • contract: lnsat.policy.audit_ledger_writer_approval_request.v0_1
  • request: apr_bp0053_append
  • status: requested
  • BP-0040 approval kind: ledger_state_change
  • policy gate: pol_req_bp0053_append

Canonical Digest

  • canonical_record_digest: sha256:41775b6f383b496e48086d20de7729fcc93b1e14d7a94f89f49244288d3bf528

Idempotency

  • idempotency: audit:context_packet_compiled:evt_pkt_onboarding_context_lnsat_agent_codex_context_packet_compiled_2026_05_04t00_00_00_000z
  • duplicate behavior: exact_replay_returns_existing_ref
  • collision behavior: fail_closed

Append-Only Invariants

  • mode: insert_only
  • correction model: append_new_record_referencing_prior_record
  • forbidden: update
  • forbidden: delete
  • forbidden: truncate
  • forbidden: in_place_redaction

Redaction Summary

  • raw rejected command: not_present
  • raw rejected value: not_present
  • raw invalid payload: not_present
  • secret-like values: not_present

Migration Artifact Refs

  • BP-0044 SQL artifact: packages/audit/migrations/postgresql/0001_audit_events_v0_1.sql
  • BP-0044 manifest: packages/audit/migrations/postgresql/0001_audit_events_v0_1.manifest.json
  • BP-0045 static checker: scripts/check-audit-ledger-migrations.mjs
  • source packet: BP-0039
  • source packet: BP-0040
  • source packet: BP-0044
  • source packet: BP-0045
  • source packet: BP-0052

Source Refs

  • contract:lnsat.gateway.onboarding_context_packet_inspection.v0_1
  • doc:NEXT_SESSION.md
  • doc:docs/architecture/PACKET_MODEL.md
  • doc:docs/architecture/POLICY_AND_AUDIT.md
  • doc:docs/build/packets/BP-0027.md
  • doc:docs/onboarding/AGENT_ONBOARDING.md
  • doc:docs/onboarding/PROJECT_ONBOARDING.md
  • doc:docs/templates/AGENT_PROFILE.md
  • doc:docs/templates/PROJECT_PROFILE.md
  • fixture:packages/packets/fixtures/agent-profiles/valid/codex-observer-profile.json
  • fixture:packages/packets/fixtures/project-profiles/valid/lnsat-project-profile.json

No-Live Boundary

  • live_execution_allowed: false
  • side_effects: []

Preflight Fail-Closed Probes

raw input withheld
Missing BP-0052 writer interfaceaudit_ledger_persistence_preflight.invalid_request

/raw_rejected_value

Missing BP-0052 writer interfaceaudit_ledger_persistence_preflight.writer_interface_required

/writer_interface_contract

Bad digest and idempotencyaudit_ledger_persistence_preflight.canonical_digest_required

/writer_interface_contract/record_ref/canonical_record_digest

Bad digest and idempotencyaudit_ledger_persistence_preflight.idempotency_required

/writer_interface_contract/idempotency

Live execution and side effectsaudit_ledger_persistence_preflight.live_execution_forbidden

/writer_interface_contract/live_execution_allowed

Live execution and side effectsaudit_ledger_persistence_preflight.side_effects_forbidden

/writer_interface_contract/side_effects

Missing BP-0044/BP-0045 artifact refsaudit_ledger_persistence_preflight.migration_artifact_unverified

/migration_artifact_refs/source_packet_refs

Fail-Closed Evidence

  • Missing BP-0052 writer interface: withheld
  • preflight: null
  • side effects: 0
  • errors: 2
  • Bad digest and idempotency: withheld
  • preflight: null
  • side effects: 0
  • errors: 2
  • Live execution and side effects: withheld
  • preflight: null
  • side effects: 0
  • errors: 2
  • Missing BP-0044/BP-0045 artifact refs: withheld
  • preflight: null
  • side effects: 0
  • errors: 1

AUDIT LEDGER

Database Security Preflight Evidence

BP-0065 evidencelive execution blockedside effects 0

BP-0065 Security Evidence

audit_events.v0_1
Security target
audit_events.v0_1
Isolation
postgresql_rls
Row scope
tenant_id, project_id
Live execution
blocked
Fail-closed probes
3

Security Contract

  • contract: lnsat.audit.audit_ledger_database_security_preflight.v0_1
  • request: req_bp0066_database_security
  • storage target: audit_events.v0_1
  • table: audit_events
  • schema version: audit_events.v0_1
  • BP-0059 preflight: req_bp0060_preflight

Authority Refs

  • BP-0039 decision: approval_required
  • BP-0040 approval kind: ledger_state_change
  • BP-0052 writer interface: req_bp0053_append
  • BP-0058/BP-0059 persistence: lnsat.audit.audit_ledger_writer_persistence_preflight.v0_1

Isolation Evidence

  • mode: postgresql_rls
  • approved equivalent ref: none
  • deny_by_default: true
  • bypass_rls_forbidden: true

Tenant Project Scope

  • required fields: tenant_id, project_id
  • scope source: future_audit_events_columns_or_approved_equivalent_boundary
  • enforcement: all_writer_and_select_paths_must_filter_tenant_id_and_project_id
  • missing scope: fail_closed

Writer Role Boundary

  • role: role_ref:audit_ledger_writer
  • writer allow: insert_audit_events
  • writer allow: select_idempotency_lookup_scoped
  • writer deny: update
  • writer deny: delete
  • writer deny: truncate
  • writer deny: alter
  • writer deny: drop
  • writer deny: superuser
  • writer deny: bypassrls
  • writer deny: unscoped_select

Select Role Boundary

  • role: role_ref:audit_ledger_reader
  • select allow: select_scoped_audit_events
  • select deny: insert
  • select deny: update
  • select deny: delete
  • select deny: truncate
  • select deny: alter
  • select deny: drop
  • select deny: superuser
  • select deny: bypassrls
  • select deny: unscoped_select

Migration Role Boundary

  • role: role_ref:audit_ledger_migrator
  • migration allow: approved_migration_execution_only
  • migration deny: runtime_writer_use
  • migration deny: unapproved_ddl
  • migration deny: superuser
  • migration deny: bypassrls
  • migration deny: secret_inline_credentials

Migration Artifact Refs

  • BP-0044 SQL artifact: packages/audit/migrations/postgresql/0001_audit_events_v0_1.sql
  • BP-0044 manifest: packages/audit/migrations/postgresql/0001_audit_events_v0_1.manifest.json
  • BP-0045 static checker: scripts/check-audit-ledger-migrations.mjs
  • source packet: BP-0039
  • source packet: BP-0040
  • source packet: BP-0044
  • source packet: BP-0045
  • source packet: BP-0052

Required Checks Before Live DB Scope

  • required test: static_security_preflight_check
  • required test: rls_policy_or_equivalent_isolation_test
  • required test: tenant_project_scope_enforcement_test
  • required test: writer_role_grant_test
  • required test: select_role_grant_test
  • required test: deny_by_default_no_public_access_test
  • required test: no_bypassrls_or_superuser_writer_test

Source Refs

  • packet:BP-0044
  • packet:BP-0045
  • packet:BP-0058
  • packet:BP-0059
  • packet:BP-0065
  • docs:docs/architecture/AUDIT_LEDGER_WRITER_PERSISTENCE_PREFLIGHT.md
  • docs:docs/architecture/DATA_MODEL.md
  • docs:docs/architecture/POLICY_AND_AUDIT.md

No-Live Boundary

  • live_execution_allowed: false
  • side_effects: []

Database Security Fail-Closed Probes

raw input withheld
Missing BP-0059 persistence preflightaudit_ledger_database_security_preflight.invalid_request

/raw_rejected_value

Missing BP-0059 persistence preflightaudit_ledger_database_security_preflight.persistence_preflight_required

/persistence_preflight

Invalid RLS or equivalent isolation evidenceaudit_ledger_database_security_preflight.rls_or_equivalent_required

/isolation_model/mode

Invalid RLS or equivalent isolation evidenceaudit_ledger_database_security_preflight.grants_deny_by_default_required

/isolation_model

Unsafe scope, grants, tests, and live executionaudit_ledger_database_security_preflight.tenant_project_scope_required

/tenant_project_scope/required_row_scope_fields

Unsafe scope, grants, tests, and live executionaudit_ledger_database_security_preflight.tenant_project_scope_required

/tenant_project_scope

Unsafe scope, grants, tests, and live executionaudit_ledger_database_security_preflight.grants_deny_by_default_required

/role_boundaries/writer_role/forbidden_grants

Unsafe scope, grants, tests, and live executionaudit_ledger_database_security_preflight.grants_deny_by_default_required

/role_boundaries/select_role/forbidden_grants

Unsafe scope, grants, tests, and live executionaudit_ledger_database_security_preflight.grants_deny_by_default_required

/role_boundaries/migration_role/forbidden_grants

Unsafe scope, grants, tests, and live executionaudit_ledger_database_security_preflight.tests_required

/test_requirements

Unsafe scope, grants, tests, and live executionaudit_ledger_database_security_preflight.live_execution_forbidden

/live_execution_allowed

Unsafe scope, grants, tests, and live executionaudit_ledger_database_security_preflight.side_effects_forbidden

/side_effects

Fail-Closed Evidence

  • Missing BP-0059 persistence preflight: withheld
  • preflight: null
  • side effects: 0
  • errors: 2
  • Invalid RLS or equivalent isolation evidence: withheld
  • preflight: null
  • side effects: 0
  • errors: 2
  • Unsafe scope, grants, tests, and live execution: withheld
  • preflight: null
  • side effects: 0
  • errors: 8

AUDIT LEDGER

Persistence Readiness Gate Evidence

BP-0071 evidencelive execution blockedside effects 0

BP-0071 Readiness Gate

source_ready_for_later_scope_request_only
Readiness
source_ready_for_later_scope_request_only
Live scope
blocked
Reviewed layers
6
Minimum evidence
16
Fail-closed probes
3

Readiness Contract

  • contract: lnsat.audit.audit_ledger_persistence_implementation_readiness_gate.v0_1
  • request: req_bp0072_readiness_gate
  • status: source_ready_for_later_scope_request_only
  • live persistence scope allowed: false
  • next scope requires explicit packet: true
  • Gateway security boundary: true
  • MCP adapter only: true
  • state-changing MCP tools allowed: false

Reviewed Source Chain

  • BP-0044 SQL artifact: packages/audit/migrations/postgresql/0001_audit_events_v0_1.sql
  • BP-0044 manifest: packages/audit/migrations/postgresql/0001_audit_events_v0_1.manifest.json
  • BP-0045 static checker: scripts/check-audit-ledger-migrations.mjs
  • BP-0058/BP-0059 persistence: lnsat.audit.audit_ledger_writer_persistence_preflight.v0_1
  • BP-0065 database security: lnsat.audit.audit_ledger_database_security_preflight.v0_1
  • BP-0065 audit_helper: packages/audit/src/index.ts:createAuditLedgerDatabaseSecurityPreflightEvidence
  • BP-0066 ui_model: apps/web/src/lib/audit-ledger-database-security-preflight.ts:buildAuditLedgerDatabaseSecurityPreflightModel
  • BP-0067 gateway_contract: apps/api/src/audit-ledger-database-security-preflight.ts:inspectAuditLedgerDatabaseSecurityPreflightGatewayRequest
  • BP-0068 fastify_route: apps/api/src/server.ts:POST /v1/audit-ledger/database-security/preflight/inspect
  • BP-0069 mcp_adapter: packages/mcp/src/index.ts:inspectAuditLedgerDatabaseSecurityPreflightThroughMcpAdapterContract
  • BP-0070 mcp_registration: packages/mcp/src/index.ts:mcpAuditLedgerDatabaseSecurityPreflightToolRegistration

Minimum Source Evidence Before Live Scope

  • required evidence: BP-0044 audit_events.v0_1 SQL artifact and manifest refs
  • required evidence: BP-0045 repo-local migration static checker evidence
  • required evidence: BP-0058 source-only writer persistence preflight contract
  • required evidence: BP-0059 pure writer persistence preflight helper evidence
  • required evidence: BP-0065 pure database security preflight helper evidence
  • required evidence: BP-0066 UI rendering evidence for database security preflight
  • required evidence: BP-0067 Gateway contract evidence for database security preflight
  • required evidence: BP-0068 read-only Fastify route evidence for database security preflight
  • required evidence: BP-0069 read-only MCP adapter evidence for database security preflight
  • required evidence: BP-0070 read-only MCP registration evidence for database security preflight
  • required evidence: RLS or approved equivalent isolation source evidence
  • required evidence: tenant_id and project_id scope source evidence or approved equivalent boundary
  • required evidence: writer/select/migration role boundary and deny-by-default grant evidence
  • required evidence: required static, RLS/equivalent, scope, role, grant, and no-bypass tests
  • required evidence: secret-reference-only future credential plan
  • required evidence: explicit later build packet requesting DB/writer scope through LNSAT Gateway policy and approval

Isolation And Tenant Scope

  • mode: postgresql_rls
  • approved equivalent ref: none
  • deny_by_default: true
  • bypass_rls_forbidden: true
  • required fields: tenant_id, project_id
  • enforcement: all_writer_and_select_paths_must_filter_tenant_id_and_project_id
  • missing scope: fail_closed

Role And Grant Boundaries

  • writer role: role_ref:audit_ledger_writer
  • writer allow: insert_audit_events
  • writer allow: select_idempotency_lookup_scoped
  • writer deny: update
  • writer deny: delete
  • writer deny: truncate
  • writer deny: alter
  • writer deny: drop
  • writer deny: superuser
  • writer deny: bypassrls
  • writer deny: unscoped_select
  • select role: role_ref:audit_ledger_reader
  • select allow: select_scoped_audit_events
  • select deny: insert
  • select deny: update
  • select deny: delete
  • select deny: truncate
  • select deny: alter
  • select deny: drop
  • select deny: superuser
  • select deny: bypassrls
  • select deny: unscoped_select
  • migration role: role_ref:audit_ledger_migrator
  • migration allow: approved_migration_execution_only
  • migration deny: runtime_writer_use
  • migration deny: unapproved_ddl
  • migration deny: superuser
  • migration deny: bypassrls
  • migration deny: secret_inline_credentials

Required Tests

  • required test: static_security_preflight_check
  • required test: rls_policy_or_equivalent_isolation_test
  • required test: tenant_project_scope_enforcement_test
  • required test: writer_role_grant_test
  • required test: select_role_grant_test
  • required test: deny_by_default_no_public_access_test
  • required test: no_bypassrls_or_superuser_writer_test

Source Refs

  • packet:BP-0044
  • packet:BP-0045
  • packet:BP-0058
  • packet:BP-0059
  • packet:BP-0065
  • packet:BP-0066
  • packet:BP-0067
  • packet:BP-0068
  • packet:BP-0069
  • packet:BP-0070
  • packet:BP-0071
  • docs:docs/architecture/AUDIT_LEDGER_WRITER_PERSISTENCE_PREFLIGHT.md
  • docs:docs/architecture/DATA_MODEL.md
  • docs:docs/architecture/POLICY_AND_AUDIT.md
  • docs:docs/architecture/MCP_ADAPTER_DESIGN.md

No-Live Boundary

  • deny_by_default_required: true
  • live_execution_allowed: false
  • side_effects: []

Readiness Fail-Closed Probes

raw input withheld
Missing BP-0065 database security preflightaudit_ledger_persistence_readiness_gate.invalid_request

/raw_rejected_value

Missing BP-0065 database security preflightaudit_ledger_persistence_readiness_gate.database_security_preflight_required

/database_security_preflight

Incomplete minimum source evidenceaudit_ledger_persistence_readiness_gate.minimum_source_evidence_required

/minimum_source_evidence

Unsafe security, live execution, and side effectsaudit_ledger_persistence_readiness_gate.security_boundary_required

/database_security_preflight/isolation_model

Unsafe security, live execution, and side effectsaudit_ledger_persistence_readiness_gate.security_boundary_required

/database_security_preflight/tenant_project_scope

Unsafe security, live execution, and side effectsaudit_ledger_persistence_readiness_gate.security_boundary_required

/database_security_preflight/role_boundaries

Unsafe security, live execution, and side effectsaudit_ledger_persistence_readiness_gate.tests_required

/database_security_preflight/test_requirements_before_live_scope

Unsafe security, live execution, and side effectsaudit_ledger_persistence_readiness_gate.live_execution_forbidden

/database_security_preflight/live_execution_allowed

Unsafe security, live execution, and side effectsaudit_ledger_persistence_readiness_gate.side_effects_forbidden

/database_security_preflight/side_effects

Unsafe security, live execution, and side effectsaudit_ledger_persistence_readiness_gate.live_execution_forbidden

/live_execution_allowed

Unsafe security, live execution, and side effectsaudit_ledger_persistence_readiness_gate.side_effects_forbidden

/side_effects

Fail-Closed Evidence

  • Missing BP-0065 database security preflight: withheld
  • gate: null
  • side effects: 0
  • errors: 2
  • Incomplete minimum source evidence: withheld
  • gate: null
  • side effects: 0
  • errors: 1
  • Unsafe security, live execution, and side effects: withheld
  • gate: null
  • side effects: 0
  • errors: 8