No active packet. Next packet shown from source status.
docs/build/STATUS.jsonLNSAT
Command Center
COMMAND CENTER
Management Overview
Source-Only Auth Session And Authorization Levels Readiness Contract.
docs/build/BOARD.mdLive/runtime/mutation gates remain closed.
NEXT_SESSION.mdRead-only source evidence render.
docs/build/packets/BP-0186.jsonCurrent State
docs/build/STATUS.json- 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.
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.
BP-0186 is complete as read-only Management Overview UI MVP.
DB writes and persisted audit ledger remain blocked.
Runtime dispatcher, broker dispatch, adapter invocation, and live execution remain blocked.
BP-0186 uses source evidence only; live health probes are a non-goal.
Allowed
Read existing build-state docs and show current state, next packet, and evidence.
docs/build/packets/BP-0186.jsonRead packet status, queue, recent evidence, and source refs.
docs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.mdList blocked live/runtime/mutation scopes from current handoff docs.
NEXT_SESSION.mdApproval Required Preview
Requires later Gateway policy, approval, audit persistence, and runtime adapter scope.
docs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.mdMVP shows preview shape only; no approve/deny mutation exists.
docs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.mdBlocked
Blocked by current product boundary.
NEXT_SESSION.mdBlocked by current product boundary.
NEXT_SESSION.mdBlocked by current product boundary.
NEXT_SESSION.mdBlocked by current product boundary.
NEXT_SESSION.mdBlocked by current product boundary.
NEXT_SESSION.mdBlocked by current product boundary.
NEXT_SESSION.mdBlocked by current product boundary.
NEXT_SESSION.mdBlocked by current product boundary.
NEXT_SESSION.mdBlocked by current product boundary.
NEXT_SESSION.mdBlocked by current product boundary.
NEXT_SESSION.mdBlocked by current product boundary.
NEXT_SESSION.mdBlocked by current product boundary.
NEXT_SESSION.mdRecent Evidence
docs/build/PACKET_LOG.mdAdded `docs/architecture/SELF_DEPLOY_PACKAGING_PLAN.md`.
docs/build/PACKET_LOG.mdAdded `packages/packets/src/self-deploy-packaging-plan-contract.ts`.
docs/build/PACKET_LOG.mdExported the self-deploy packaging plan contract, defaults, constants,
docs/build/PACKET_LOG.mdAdded `packages/packets/test/self-deploy-packaging-plan-contract.test.ts`.
docs/build/PACKET_LOG.mdThe contract references BP-0193 auth/integration posture, BP-0199 substrate
docs/build/PACKET_LOG.mdThe contract models deployment modes, future artifact refs, auth posture refs,
docs/build/PACKET_LOG.mdSource Evidence
7 refsmachine-readable current status
Current phase, active packet, next packet, pivot, and last checks.
Active Packet / Queue
Current packet queue and packet closeout evidence.
Completed Packet: BP-0216 Source-Only Self-Deploy Packaging Plan Contract
Latest completed packet evidence and verification notes.
Active Slice
Current allowed scope, blocked scope, and closeout rule.
Management Overview UI MVP
Current packet objective, scope, non-goals, and checks.
Management UI Information Architecture
Selection evidence for the Command Center UI.
Screen Contracts
Human management screen contracts and blocked-scope language.
MVP SURFACES
Management Surface Index
Nine read-only management surfaces are indexed.
docs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.mdCurrent MVP surfaces with source-backed UI previews.
docs/build/PACKET_LOG.mdPython is optional later adapter scope, not a core MVP requirement.
docs/build/packets/BP-0200.jsonOS-specific artifacts belong to later policy-gated substrate packages.
docs/build/packets/BP-0199.jsonManagement Navigation
9 surfacesCurrent 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.jsonLocal 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.jsonPacket 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.jsonSubstrate 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.jsonDry-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.jsonAgent 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.jsonApproval-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.
docs/architecture/MANAGEMENT_UI_INFORMATION_ARCHITECTURE.mdAudit 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.jsonIndependent 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.jsonMVP Surface Coverage
source linkedCurrent 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.
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.
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.
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.
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.
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.
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.
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.
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.
OS Connection Posture
no core binaryThe current platform core is TypeScript contracts, source evidence, and read-only web/Gateway surfaces; it requires no Python and no OS-specific binary.
Host and OS-level control belongs to later substrate adapters or node-agent packages after policy, approval, and audit packets open scope.
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.
Deployment owners choose integrations, auth providers, local auth, third-party auth, and authorization levels; LNSAT keeps those choices behind Gateway policy.
Blocked Gates
22 gatesBlocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Blocked by BP-0201 or current handoff boundary.
Evidence Checks
6 checksManagement IA defines each operator management surface used by the index.
Current packet source identifies the management surface review.
BP-0201 selected BP-0202 historically, and current source state queues BP-0217 after BP-0216 self-deploy packaging plan closeout.
Current evidence says Python and OS-specific binaries are not core MVP requirements.
Settings/Policy posture preserves deployment-owner auth and integration control.
Handoff and packet non-goals keep settings, packets, approvals, audit, runtime, DB, Git, deploy, credentials, and infrastructure mutation closed.
Source Evidence
29 refscurrent build state
Machine-readable next packet and current platform boundaries.
Queue
Operator-facing queue and latest packet closeout.
Completed Packet: BP-0215 Source-Only Persisted Knowledge Read Surface Contract
Append-only publication, packet evidence, and validation notes.
Active Slice
Allowed scope, blocked scope, and handoff boundary.
Screen Contracts
Nine management screen contracts and blocked-scope language.
Management Overview UI MVP
Command Center source evidence.
Knowledge UI MVP
Knowledge/Wiki source evidence.
Settings Policy Auth Posture UI Preview
Settings/Policy and auth/integration posture evidence.
Read-Only Packet Management UI Preview
Packets source evidence.
Read-Only Agent Management UI Preview
Agents source evidence.
Read-Only Audit Management UI Preview
Audit source evidence.
Read-Only Substrates Management UI Preview
Substrates and OS connection posture evidence.
Read-Only Runtime Readiness Management UI Preview
Runtime readiness and no Python/OS-binary core evidence.
Read-Only Management Navigation And MVP Surface Review
Current surface index packet evidence.
Read-Only Persistence And Policy Gate Review
Completed source-only persistence and policy gate review.
Source-Only Persistence Gate Contract
Completed source-only persistence gate contract evidence.
Source-Only Persistence Schema Contract
Completed source-only persistence schema contract evidence.
Source-Only Migration Artifact Static Review Contract
Completed migration static review packet evidence.
GitHub Repository Publication Checkpoint
Completed GitHub publication checkpoint evidence.
Source-Only Writer Preflight Contract
Completed writer preflight packet evidence.
Source-Only Database Security Preflight Contract
Completed database security preflight packet evidence.
Source-Only Policy Gate Preflight Contract
Completed policy gate preflight packet evidence.
Source-Only Approval Request Preflight Contract
Completed approval request preflight packet evidence.
Source-Only Persistence Readiness Preflight Contract
Completed persistence readiness preflight packet evidence.
Source-Only Implementation Packet Selection Review
Completed implementation packet selection review evidence.
Source-Only Knowledge Persistence Implementation Packet Contract
Completed knowledge persistence implementation packet contract evidence.
Source-Only Persisted Knowledge Read Surface Contract
Completed persisted knowledge read surface packet evidence.
Source-Only Self-Deploy Packaging Plan Contract
Completed self-deploy packaging plan packet evidence.
Source-Only Auth Session And Authorization Levels Readiness Contract
Queued auth session and authorization levels readiness packet evidence.
KNOWLEDGE / WIKI
Source-Grounded Search
Read-only local file snapshot index.
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md:3-153 cited hits under 1400 tokens.
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md:67-186Every included record has a visible citation ref.
docs/architecture/INTERNAL_KNOWLEDGE_SURFACE.md:67-186Embeddings, Gateway/MCP routes, source edits, and live connectors stay closed.
docs/build/packets/BP-0187.md:15-19Search Page
read-onlyknowledge ui source refs
## 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
## 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
## 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
## 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
## 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
## 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
## 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;
## 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;
BP-0187 packet lookup
## 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
## 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
## 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
## Objective Build read-only Knowledge/Wiki UI for local knowledge search and context bundle preview.
## 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.
Warnings Visible By Default
39 rowsSource Record List
39 records## 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
## 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 -
## 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
## 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
## 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
## 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
## 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
## Screen Contracts Screen Purpose Primary Data Sources Empty State Blocked-Scope Language ----------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------ ----------
## 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
## 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
Context Bundle Preview
1377 tokens est.preview cited BP-0187 Knowledge UI context for operators
## 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## 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## 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-20Exact Source Expansion
3 refs67 | ## 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.
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.
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 boundaryBlocked until a later persistence/vector packet opens scope.
docs/build/packets/BP-0187.md:15-19Blocked in BP-0187. UI reads local source evidence only.
NEXT_SESSION.md:32-151Blocked by current product boundary and BP-0187 non-goals.
docs/build/packets/BP-0187.md:15-19PACKETS
Packet Management
Active packet comes from repo-local build status.
docs/build/STATUS.jsonQueue is parsed from the build board.
docs/build/BOARD.mdRecent completion evidence remains source-linked.
docs/build/packets/BP-0196.jsonPacket create/edit/reorder controls are blocked.
docs/build/packets/BP-0197.jsonPacket Under Review
docs/build/packets/BP-0216.jsonAdded 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.jsonQueue
1 packetsSource-Only Auth Session And Authorization Levels Readiness Contract.
Recent Completed
2 packetsDefine 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.
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.
Acceptance Checks
5 checksAcceptance check is read from the current packet source.
Acceptance check is read from the current packet source.
Acceptance check is read from the current packet source.
Acceptance check is read from the current packet source.
Acceptance check is read from the current packet source.
Verification Commands
6 commandsCommand is declared in packet source; latest execution is recorded during packet closeout.
Command is declared in packet source; latest execution is recorded during packet closeout.
Command is declared in packet source; latest execution is recorded during packet closeout.
Command is declared in packet source; latest execution is recorded during packet closeout.
Command is declared in packet source; latest execution is recorded during packet closeout.
Command is declared in packet source; latest execution is recorded during packet closeout.
Rollback Notes
source onlyRemove 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 checksLatest completed packet is visible in board and packet log.
BP-0217 queue selection is visible in board and status JSON.
Current packet source remains available for the Packets UI.
Management IA defines Packets as first-class human UI surface.
Blocked Live Gates
18 gatesBlocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Blocked by current packet non-goal or current handoff boundary.
Source Evidence
26 refsactive and next packet
Machine-readable packet state, build state, and last verification.
Active Packet / Queue
Operator-facing packet queue and latest closeout summary.
Completed Packet: BP-0215 Source-Only Persisted Knowledge Read Surface Contract
Append-only packet evidence, validation, and selected-next records.
Active Slice
Allowed scope, blocked scope, and continuation instructions.
Packets screen
Packets screen contract and blocked-scope language.
Read-Only Packet Management UI Preview
Older completed packet management UI packet.
Read-Only Agent Management UI Preview
Prior completed agent management packet.
Read-Only Audit Management UI Preview
Prior completed audit management packet.
Read-Only Substrates Management UI Preview
Prior completed substrates packet scope, checks, and non-goals.
Read-Only Runtime Readiness Management UI Preview
Latest completed packet scope, checks, rollback, and non-goals.
Read-Only Management Navigation And MVP Surface Review
Prior completed management surface packet scope and checks.
Read-Only Persistence And Policy Gate Review
Current completed packet scope, checks, rollback, and non-goals.
Source-Only Persistence Gate Contract
Current completed packet scope, checks, rollback, and non-goals.
Source-Only Persistence Schema Contract
Current completed packet scope, checks, rollback, and non-goals.
Source-Only Migration Artifact Static Review Contract
Completed migration static review packet scope, checks, and non-goals.
GitHub Repository Publication Checkpoint
Completed first GitHub publication checkpoint.
Source-Only Writer Preflight Contract
Completed writer preflight packet after GitHub publication.
Source-Only Database Security Preflight Contract
Completed database security preflight packet after writer preflight.
Source-Only Policy Gate Preflight Contract
Completed policy gate preflight packet after database security.
Source-Only Approval Request Preflight Contract
Completed approval request preflight packet after policy gate.
Source-Only Persistence Readiness Preflight Contract
Completed persistence readiness preflight packet after approval request.
Source-Only Implementation Packet Selection Review
Completed implementation packet selection review after readiness.
Source-Only Knowledge Persistence Implementation Packet Contract
Completed knowledge persistence implementation packet contract.
Source-Only Persisted Knowledge Read Surface Contract
Completed persisted knowledge read surface packet contract.
Source-Only Self-Deploy Packaging Plan Contract
Completed self-deploy packaging plan packet contract.
Source-Only Auth Session And Authorization Levels Readiness Contract
Queued auth session and authorization levels readiness packet contract.
SUBSTRATES
Substrates / Nodes
Kinds come from the source-only taxonomy.
docs/build/packets/BP-0085.mdEnvironment types are display-only readiness classes.
docs/architecture/SUBSTRATES_AND_NODES.mdService, database, queue, and tunnel inventory stays source-only.
docs/build/packets/BP-0090.mdNo live substrate control is exposed.
docs/build/packets/BP-0199.jsonOS Connection Posture
4 source-only decisionsLNSAT core stays TypeScript/Node for Gateway, packets, policy, audit, MCP, and UI.
docs/architecture/SUBSTRATES_AND_NODES.mdPython is optional later connector/runtime implementation detail, not an MVP requirement.
docs/architecture/SUBSTRATES_AND_NODES.mdOS binaries are optional later node-agent packages for direct host observation/control.
docs/architecture/SUBSTRATES_AND_NODES.mdNo OS agent, package install, Python runtime, binary distribution, host service, SSH, Docker runner, or live connector is open.
NEXT_SESSION.mdSubstrate Classes
10 classes- 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
- 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
- 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
- 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
- Observation
- database.health.read, database.schema.read
- Proposal
- database.migration.propose, database.query.plan
- Approval
- database.migration.request
- Forbidden
- database.drop, database.write
- Observation
- queue.depth.read, queue.status.read
- Proposal
- queue.replay.propose, queue.worker.plan
- Approval
- queue.replay.request
- Forbidden
- queue.message.write, queue.purge
- 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
- Observation
- cloud.account.read, cloud.resource.read
- Proposal
- cloud.change.propose, cloud.cost.plan
- Approval
- cloud.change.request
- Forbidden
- cloud.delete, cloudflare.write
- 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
- 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
Environment Types
8 typesContainer workloads wait for approved runner scope.
Compose stacks stay inventory-only before Docker runner scope.
VM targets require explicit adapter and approval packets later.
Host services wait for optional per-OS node agent scope.
Model workers expose readiness only until runtime scope opens.
Nomad jobs are taxonomy placeholders, not live schedulers.
Kubernetes support stays future substrate adapter scope.
Cloud runners require official API adapter and policy gates.
Service / Database Inventory
4 recordsLNSAT Gateway source-only service record
service / shared / owner owner:lnsat-platform
Audit ledger PostgreSQL source-only target
database / shared / owner owner:lnsat-platform
Audit ledger review queue source-only placeholder
queue / shared / owner owner:lnsat-platform
lnsat.hypler.com tunnel source-only surface
tunnel / production / owner owner:hypler
Adapter Readiness
1 manifestsService control proposal adapter manifest
manifest_only_no_invocation
service.restart.request
Control Intent Posture
1 intentsagent: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
Installation Boundaries
9 surfacesexecution stays disabled for MVP source-only preview
credential references stay disabled for MVP preview
ssh stays disabled for MVP source-only preview
docker stays disabled for MVP source-only preview
node_agent stays disabled for MVP source-only preview
database stays disabled for MVP source-only preview
service_mutation stays disabled for MVP source-only preview
dns_cloudflare stays disabled for MVP source-only preview
deploy stays disabled for MVP source-only preview
Evidence Checks
9 checksManagement IA defines Substrates as a first-class management surface.
Core no-Python/no-OS-binary posture is documented in architecture and handoff.
Installation control contract remains source-only.
Substrate kind and control-mode taxonomy remains source-only.
Service/database inventory remains read-only evidence.
Control intent evidence is visible without live control.
Adapter manifest is manifest-only, no live invocation.
MCP inspection surfaces exist as source-only adapters.
Packet log records prior management UI checkpoint before BP-0199.
Blocked Host / Runtime Gates
24 gatesBlocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Blocked by BP-0199 non-goal or current handoff boundary.
Source Evidence
11 refsRead-Only Substrates Management UI Preview
Substrates UI packet scope, non-goals, checks, and rollback.
Substrates
Substrates screen contract and blocked live-action language.
OS-Level Connection Strategy
Substrate taxonomy, environment types, node-agent posture, and OS boundary.
Installation Control Profile
Installation mode and denied control-surface contract.
Substrate Taxonomy
Source-only substrate kinds and control-mode boundaries.
Service Database Inventory
Service, database, queue, tunnel, approval, and rollback inventory contract.
Substrate Control Intent
Source-only control request evidence and denied live behavior.
Substrate Adapter Manifest
Manifest-only adapter readiness before live invocation exists.
substrate inspection adapters
Read-only MCP inspection registrations for substrate contracts.
Active Slice
Current allowed scope, OS posture, and blocked live gates.
Completed Packet
Latest packet closeout evidence and queued next packet.
RUNTIME READINESS
Runtime Readiness
Dry-run evidence chain is source-only.
docs/build/packets/BP-0200.jsonNo dispatcher is present in MVP scope.
docs/build/packets/BP-0200.jsonNo live adapter invocation is exposed.
docs/build/packets/BP-0200.jsonRuntime readiness reads repo-local evidence only.
NEXT_SESSION.mdDry-Run Proof Chain
9 source refspreflight:service-control-adapter-invocation
lnsat.platform.adapter_invocation_preflight.v0_1
result:service-control-adapter-invocation
lnsat.platform.adapter_invocation_result.v0_1
authorization_bundle:service-control-adapter-invocation
lnsat.platform.adapter_invocation_authorization_bundle.v0_1
readiness_gate:service-control-adapter-runtime-readiness
lnsat.platform.runtime_adapter_readiness_gate.v0_1
implementation_scope:service-control-adapter-runtime
lnsat.platform.runtime_adapter_implementation_scope.v0_1
implementation_plan:service-control-adapter-runtime
lnsat.platform.runtime_adapter_implementation_plan.v0_1
chain_review:bp0149-runtime-adapter-plan-chain-review
lnsat.platform.runtime_adapter_implementation_authorization_request.v0_1
authorization_request:bp0150-runtime-adapter-implementation-authorization-request
lnsat.platform.runtime_adapter_implementation_approval_gate.v0_1
artifact:bp0163-dry-run-evidence-contract-output
lnsat.platform.runtime_adapter_implementation_dry_run_evidence.v0_1
Preflight Status
preflight_only_no_invocationservice_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
Authorization Bundle
authorization_bundle_only_no_invocation- 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
Readiness Gates
readiness_gate_only_no_runtime_invocation- 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
Implementation Scope
implementation_scope_only_no_runtime_adapter- 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
Implementation Plan
implementation_plan_only_no_runtime_adapter- 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
Authorization Request
implementation_authorization_request_only_no_runtime_adapter- 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
Approval Gates
implementation_approval_gate_only_no_runtime_adapter- 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
Dry-Run Evidence
implementation_dry_run_evidence_only_no_runtime_adapter- 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
Missing Approvals
3 approvalsRequired approval evidence is visible only. Approve/deny mutation is not open.
Required approval evidence is visible only. Approve/deny mutation is not open.
Required approval evidence is visible only. Approve/deny mutation is not open.
Blocked Invocation Reasons
10 blockedBlocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.
Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.
Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.
Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.
Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.
Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.
Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.
Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.
Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.
Blocked until a later packet opens Gateway policy, approval, audit, and runtime adapter scope.
Next Packet Gates
1 gatesFuture 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 checksManagement IA defines Runtime Readiness as a first-class console surface.
BP-0114 source evidence exists before runtime invocation.
BP-0126 cross-ref authorization evidence is available.
BP-0132 readiness evidence exists without runtime dispatch.
Implementation proof chain exists as source-only evidence.
Core MVP is Node/TypeScript; Python and OS binaries stay optional later adapter/node-agent scope.
Current handoff and packet log preserve no-live/no-runtime boundary.
Source Evidence
15 refsRead-Only Runtime Readiness Management UI Preview
Runtime Readiness UI packet scope, non-goals, checks, and rollback.
Runtime Readiness
Runtime Readiness screen contract and blocked invocation language.
OS-Level Connection Strategy
Core Node/TypeScript posture and optional Python/OS-binary adapter scope.
Adapter Invocation Preflight
Source-only adapter invocation preflight evidence.
Adapter Invocation Result
Source-only adapter result evidence without execution.
Adapter Invocation Authorization Bundle
Cross-ref authorization evidence before invocation exists.
Runtime Adapter Readiness Gate
Runtime readiness gate evidence without runtime dispatch.
Runtime Adapter Implementation Scope
Implementation scope evidence before adapter implementation opens.
Runtime Adapter Implementation Plan
Implementation plan evidence and dry-run plan.
Runtime Adapter Implementation Authorization Request
Authorization request evidence before implementation.
Runtime Adapter Implementation Approval Gate
Human approval gate evidence before implementation.
Runtime Adapter Implementation Dry-Run Evidence
Dry-run proof chain evidence without adapter implementation.
Read-Only Substrates Management UI Preview
OS posture and substrate readiness evidence before runtime readiness.
Active Slice
Current allowed scope, blocked scope, and next runtime gates.
Completed Packet
Latest packet closeout evidence and queued next packet.
AGENTS
Agent Management
Profiles come from repo-local onboarding fixtures.
packages/packets/fixtures/agent-profiles/valid/codex-observer-profile.jsonInvalid profile raw content remains withheld.
docs/onboarding/AGENT_ONBOARDING.mdInputs come from read-only ContextPacket evidence.
apps/web/src/lib/onboarding-context-inspector.tsLive execution remains blocked.
NEXT_SESSION.mdAgent Profiles
1 source-backed profilesBP-0197 complete: read-only agent management preview
- Provider
- OpenAI Codex
- Projects
- lnsat
- TTL
- 7200s
context.read, context.compile, repo.read
secret.read.never, raw_shell, production_db.write, deploy.prod
repo.write_branch, tests.run.sandbox, container.sandbox, deploy.request
Context Bundle Inputs
4 inputspkt_onboarding_context_lnsat_agent_codex
sha256:4714650cd278be8259aac07ea86984f5675b541a149ea2094866dde558fc422d
packages/packets/fixtures/agent-profiles/valid/codex-observer-profile.json
Profile source used before agent work.
context.compile, context.read, repo.read
Blocked: database.query_readonly.dev, deploy.execute.approved, deploy.prod, production_db.write, raw_shell, secret.read.never.
120000 tokens / 7200s
Context bundle remains bounded and side-effect free.
Handoff Prompts
3 prompts/caveman lite
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: 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 checksPacket source defines Agents UI scope and acceptance checks.
At least one valid source-backed agent profile is available.
Agent onboarding docs define blocked raw system access.
Context evidence is compiled from repo-local profiles.
Management IA defines Agents as a first-class read-only screen.
Handoff keeps live, runtime, mutation, Git, deploy, and secrets blocked.
Blocked Live Gates
20 gatesBlocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Blocked by BP-0197 non-goal or current handoff boundary.
Source Evidence
8 refsRead-Only Agent Management UI Preview
Current Agents UI packet scope, checks, non-goals, and rollback.
Agent Profile
Agent profile fields, validation rules, and blocked capabilities.
Agent Profile Template
Template for source-backed agent profile evidence.
Codex Observer
Valid source-backed observer profile fixture.
ContextPacket proposal
Read-only context packet evidence built from repo-local profiles.
Agents
Agents screen contract and blocked-scope language.
Active Slice
Current handoff, allowed scope, and blocked live gates.
Continuation prompt
Copy-ready handoff prompt for the next build window.
APPROVAL CENTER
Read-Only Decision Preview
Current packet may only show approval evidence.
docs/build/packets/BP-0190.mdFuture DB and migration actions need explicit approval.
docs/architecture/PERSISTENCE_SCHEMA_PLAN.mdLive/runtime and approve/deny mutation stay closed.
NEXT_SESSION.mdNo approve, deny, execute, queue, DB, or runtime control exists.
docs/build/packets/BP-0190.mdRequest Previews
source-linked- 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
- 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
- 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
- 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 checksBP-0190 defines approval preview scope and blocks mutation.
Next-session handoff keeps live, runtime, DB, and mutation gates closed.
Management IA defines the operator approval screen fields.
Persistence plan records future migration approval and DB role boundaries.
Policy/audit docs anchor Gateway-owned approval and audit evidence.
Blocked Center Actions
no mutation pathNo approve mutation exists in BP-0190. The UI can show evidence only.
docs/build/packets/BP-0190.mdNo deny mutation exists in BP-0190. Denial is represented as source-derived policy text only.
docs/build/packets/BP-0190.mdRuntime, DB, queue, deploy, and live adapter paths remain outside current scope.
NEXT_SESSION.mdSource Evidence
7 refsApproval Center Plan And UI Preview
Current packet scope for read-only approval preview and no approval mutation.
Active Slice
Current blocked/live scope and handoff boundary.
Approvals Screen Contract
Operator UI rules for approvals, risk, source evidence, rollback, and audit obligations.
Migration Approval Workflow
Future DB schema and migration approval workflow, plan-only.
Policy and audit boundary
Gateway, policy, approval, and audit rules for future state changes.
Persistence Plan
Completed docs-only persistence planning packet.
Current build status
Current packet chain and source-only build posture.
AUDIT
Audit Management
Audit events are source-only previews.
docs/build/packets/BP-0036.mdLive persistence remains behind explicit later scope.
docs/build/packets/BP-0071.mdFilters are labels only; no DB query exists.
docs/architecture/PERSISTENCE_SCHEMA_PLAN.mdDatabase writes remain blocked.
NEXT_SESSION.mdAudit Event Previews
1 source-only previews- Packet
- pkt_onboarding_context_lnsat_agent_codex
- Source refs
- 10
- Side effects
- 0
Persistence Readiness
5 gateswriter.migrate; static checker required: [object Object].
ledger.record.append; ledger_state_change.
audit_events.v0_1; append-only checks source-ready.
postgresql_rls; required fields tenant_id, project_id.
source_ready_for_later_scope_request_only; live persistence false.
Writer Status
6 fieldsledger.record.append
Capability audit.ledger.writer.append_only.
approval_required
ledger_state_change; requested.
insert_only
Forbidden: update, delete, truncate, in_place_redaction.
fail_closed
exact_replay_returns_existing_ref
not_present
Raw rejected value: not_present.
sha256:41775b6f383b496e48086d20de7729fcc93b1e14d7a94f89f49244288d3bf528
Canonical digest only; no raw payload echo.
Display-Only Filters
6 filterscontext_packet_compiled
Display-only filter source from audit event preview records.
success
Display-only filter source from audit event preview records.
pkt_onboarding_context_lnsat_agent_codex
Display-only packet filter; no query or persisted read exists.
not_persisted
No persisted audit ledger is live.
source_ready_for_later_scope_request_only
Readiness is source-only and requires a later explicit packet.
tenant_id, project_id
Required later isolation fields; not a live DB filter.
Evidence Checks
9 checksPacket source defines Audit UI scope and acceptance checks.
Management IA defines Audit as a first-class read-only screen.
Persistence plan names future audit tables and live gates.
BP-0036 defines ledger record preview without a writer.
BP-0046 defines approval preview without migration execution.
BP-0052 defines writer interface evidence only.
BP-0059 defines source-only persistence preflight evidence.
BP-0065 defines security requirements before DB scope.
BP-0071 keeps live persistence behind explicit later scope.
Blocked Persistence Gates
22 gatesBlocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Blocked by BP-0198 non-goal or current handoff boundary.
Source Evidence
11 refsRead-Only Audit Management UI Preview
Current Audit UI packet scope, checks, non-goals, and rollback.
Audit
Audit screen contract and blocked-scope language.
audit_events
Future audit persistence schema target and migration approval flow.
Audit Ledger Record Schema Contract
Typed audit ledger record preview contract.
Audit Ledger Migration Approval Evidence Preview
Read-only migration approval preview evidence.
Append-Only Audit Ledger Writer Interface Contract
Pure append-only writer interface contract evidence.
Audit Writer Persistence Preflight Evidence Helper
Source-only writer persistence preflight evidence.
Audit Ledger Database Security Preflight
Source-only database security preflight evidence.
Audit Ledger Persistence Readiness Gate
Persistence implementation readiness evidence.
Active Slice
Current allowed scope and blocked live gates.
Completed Packet: BP-0198 Read-Only Audit Management UI Preview
Latest completed packet evidence and queued substrate slice.
SETTINGS / POLICY
Auth posture
Independent application posture is source evidence.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdDeployment owner controls runtime shape and boundary.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdAuth provider choice belongs to deployment config.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdLive provider, sessions, and credentials are blocked.
NEXT_SESSION.mdDeployment Owner Boundary
source evidenceLNSAT ships as an independent open source management system, not as a bundled provider account.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdDeployment owner chooses local, self-hosted, hybrid, SaaS, or isolated deployment posture.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdThe deployment owner chooses auth mode and authorization levels in future explicit packets.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdUsers connect their own services, credential references, capabilities, approvals, audit, rollback, and disablement paths.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdNo local, third-party, passkey, SAML, OIDC, OAuth, or hosted identity provider is preferred by the product boundary.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdFuture integration/auth work may reference deployment-owned secrets but may not echo raw secret values.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdAuth Modes
4 source contract termsLocal auth
Needs explicit local auth implementation packet, session model, storage policy, audit, and rollback.
Third-party auth
Needs explicit provider adapter packet, callback policy, secret references, audit, and approval.
User-selected auth levels
Needs explicit authorization model, persisted policy, UI mutation approval, and audit persistence.
Isolated auth
Needs explicit local-only auth packet, backup/recovery policy, and optional break-glass policy.
Authorization Levels
7 levelsExisting docs, UI, and API evidence may show source refs.
Read-only routes and MCP inspection tools stay fail-closed where opened.
Future request shape only; no mutation path exists now.
Approval mutation needs future policy and audit persistence.
No live provider, session store, or settings writer exists.
No integration setup writer or connector enablement exists.
Requires future runtime, approval, audit, and rollback gates.
Integration Descriptor Requirements
secret references onlyStable integration id owned by deployment config.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdHuman-readable integration name.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdReference to the deployment owner or tenant boundary.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdRepo, service, machine, DB, queue, cloud, SaaS, or local node kind.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdReference type for deployment-owned auth, never a raw credential value.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdDeclares whether a deployment secret reference is needed.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdRaw credential values are never allowed.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdExplicit capabilities the integration can request.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdRisk rating for policy and approval decisions.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdWhether operator approval is needed before future action.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdWhether audit evidence is required.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdRollback evidence requirement for future action.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdUser-controlled disablement path requirement.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdNo live connector is enabled in current MVP.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdNo integration mutation is allowed in current MVP.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdDescriptor evidence must remain side-effect free.
docs/architecture/AUTH_AND_INTEGRATION_POSTURE.mdFail-Closed Checks
10 checksRejected evidence must not echo secret-like, token-like, connection-string, or credential-like values.
Rejected evidence must not echo secret-like, token-like, connection-string, or credential-like values.
Rejected evidence must not echo secret-like, token-like, connection-string, or credential-like values.
Rejected evidence must not echo secret-like, token-like, connection-string, or credential-like values.
Rejected evidence must not echo secret-like, token-like, connection-string, or credential-like values.
Rejected evidence must not echo secret-like, token-like, connection-string, or credential-like values.
Rejected evidence must not echo secret-like, token-like, connection-string, or credential-like values.
Rejected evidence must not echo secret-like, token-like, connection-string, or credential-like values.
Rejected evidence must not echo secret-like, token-like, connection-string, or credential-like values.
Rejected evidence must not echo secret-like, token-like, connection-string, or credential-like values.
Blocked Live Gates
no setup writerRequires a later explicit packet with policy, approval, audit, and rollback evidence.
Requires a later explicit packet with policy, approval, audit, and rollback evidence.
Requires a later explicit packet with policy, approval, audit, and rollback evidence.
Requires a later explicit packet with policy, approval, audit, and rollback evidence.
Requires a later explicit packet with policy, approval, audit, and rollback evidence.
Requires a later explicit packet with policy, approval, audit, and rollback evidence.
Requires a later explicit packet with policy, approval, audit, and rollback evidence.
Requires a later explicit packet with policy, approval, audit, and rollback evidence.
Requires a later explicit packet with policy, approval, audit, and rollback evidence.
Requires a later explicit packet with policy, approval, audit, and rollback evidence.
Requires a later explicit packet with policy, approval, audit, and rollback evidence.
Requires a later explicit packet with policy, approval, audit, and rollback evidence.
Evidence Checks
7 checksPosture doc states LNSAT is independent open source and self-deployable.
Auth modes are source contract terms only, with no provider selected.
BP-0193 records future descriptor requirements and secret-reference-only behavior.
BP-0194 opens only a read-only Settings/Policy posture preview.
Management IA requires auth/integration posture to stay source evidence.
Policy docs keep Gateway as authority and auth providers as adapters.
Current handoff blocks live auth, credentials, connector setup, and mutation.
Source Evidence
6 refsBP-0193 Source Contract
Defines open source self-deploy posture, deployment-owner auth choices, user-owned integrations, descriptor rules, and fail-closed checks.
Auth And User-Owned Integration Boundary
Completed source-only packet for auth modes, authorization levels, and user-owned integration boundary.
Settings Policy Auth Posture UI Preview
Current UI packet scope for read-only Settings/Policy posture evidence.
Settings / Policy
Human management UI rule that auth and integration posture stays source evidence until later live auth or settings packets.
Auth and integration policy
Gateway policy remains the authority; auth providers and integrations are adapters.
Active Slice
Current allowed read-only BP-0194 scope and blocked live auth, integration, DB, runtime, and credential gates.
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
Missing required 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
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 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
Unexpected root field 'shell'.
Audit Preview
- packet_rejected
ONBOARDING
Profile Inspector
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
Missing required 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
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 secrets must use references only.
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
Missing required 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
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
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 secrets must use references only.
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
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
Unexpected onboarding ContextPacket inspection request field.
Unexpected onboarding ContextPacket inspection request field.
Unexpected onboarding ContextPacket inspection request field.
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 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 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/approval_request
/approval_request/policy_gate_ref/decision_id
/policy_gate_decision/decision
/policy_gate_decision/reason_codes
/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 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/raw_rejected_value
/writer_interface_contract
/writer_interface_contract/record_ref/canonical_record_digest
/writer_interface_contract/idempotency
/writer_interface_contract/live_execution_allowed
/writer_interface_contract/side_effects
/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 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/raw_rejected_value
/persistence_preflight
/isolation_model/mode
/isolation_model
/tenant_project_scope/required_row_scope_fields
/tenant_project_scope
/role_boundaries/writer_role/forbidden_grants
/role_boundaries/select_role/forbidden_grants
/role_boundaries/migration_role/forbidden_grants
/test_requirements
/live_execution_allowed
/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 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/raw_rejected_value
/database_security_preflight
/minimum_source_evidence
/database_security_preflight/isolation_model
/database_security_preflight/tenant_project_scope
/database_security_preflight/role_boundaries
/database_security_preflight/test_requirements_before_live_scope
/database_security_preflight/live_execution_allowed
/database_security_preflight/side_effects
/live_execution_allowed
/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