Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
cmd/api
command
|
|
|
internal/services/agentpush
- secretsreconcile — the level-triggered reconcile loop.
|
- secretsreconcile — the level-triggered reconcile loop. |
|
internal/services/canary
Package canary is the epic-71 / 0c production canary (#1312, metrics-only): a per-workspace-class probe runner that turns "stale prompt / silent click / wedged session" into counters and histograms while the wave fixes land.
|
Package canary is the epic-71 / 0c production canary (#1312, metrics-only): a per-workspace-class probe runner that turns "stale prompt / silent click / wedged session" into counters and histograms while the wave fixes land. |
|
internal/services/contractstream
Package contractstream is the API-side on-demand proxy of a pod's ABI contract stream (US-69.10, design 0055 S3/D1-B): one upstream connection per workspace while ≥1 browser subscriber is attached, fanning raw StreamFrames out to every subscriber.
|
Package contractstream is the API-side on-demand proxy of a pod's ABI contract stream (US-69.10, design 0055 S3/D1-B): one upstream connection per workspace while ≥1 browser subscriber is attached, fanning raw StreamFrames out to every subscriber. |
|
internal/services/database
Package database — query tracer.
|
Package database — query tracer. |
|
internal/services/email
Package email provides the orchestration layer for outbound transactional email.
|
Package email provides the orchestration layer for outbound transactional email. |
|
internal/services/health
Package health runs the API server's periodic dependency health probe.
|
Package health runs the API server's periodic dependency health probe. |
|
internal/services/inbox
Package inbox implements the unanswered-question inbox (#1313, epic-71 stream 3a): the outbox's sibling for inbound asks.
|
Package inbox implements the unanswered-question inbox (#1313, epic-71 stream 3a): the outbox's sibling for inbound asks. |
|
internal/services/keyrewrap
Package keyrewrap is the US-70.4 login-independent re-wrap reconciler (design 0052 §4.5 item 5, issue #1208).
|
Package keyrewrap is the US-70.4 login-independent re-wrap reconciler (design 0052 §4.5 item 5, issue #1208). |
|
internal/services/outbox
Package outbox implements the D3 durable-prompt outbox (design 0050, #907): accept-then-deliver decoupling so a client disconnect can never lose an accepted message.
|
Package outbox implements the D3 durable-prompt outbox (design 0050, #907): accept-then-deliver decoupling so a client disconnect can never lose an accepted message. |
|
internal/services/passkey
Package passkey implements WebAuthn / FIDO2 passkey registration and login (Epic 59) plus the one-time-use recovery-code fallback for passkey-only users.
|
Package passkey implements WebAuthn / FIDO2 passkey registration and login (Epic 59) plus the one-time-use recovery-code fallback for passkey-only users. |
|
internal/services/secretsreconcile
Package secretsreconcile is the level-triggered secrets-delivery reconcile loop (US-70.3, epic #1158 laws 2/4).
|
Package secretsreconcile is the level-triggered secrets-delivery reconcile loop (US-70.3, epic #1158 laws 2/4). |
|
internal/services/sessionalerts
Package sessionalerts persists D6 (#998) hung-session escalations to the session_alerts table.
|
Package sessionalerts persists D6 (#998) hung-session escalations to the session_alerts table. |
|
internal/services/sso
Package sso implements OIDC single sign-on for organizations (US-43.10, D17).
|
Package sso implements OIDC single sign-on for organizations (US-43.10, D17). |
|
internal/services/usagestream
Package usagestream is the API's busy-gated consumer of a pod's ABI contract stream (US-69.11, design 0055 S3 + D1-B + the owner's billing disposition): while any session of a workspace is in flight, the API holds ONE subscription to the pod's event stream and derives —
|
Package usagestream is the API's busy-gated consumer of a pod's ABI contract stream (US-69.11, design 0055 S3 + D1-B + the owner's billing disposition): while any session of a workspace is in flight, the API holds ONE subscription to the pod's event stream and derives — |
|
internal/services/wsstate
Package wsstate holds the per-workspace state that ProxyHandler previously kept in process-local maps.
|
Package wsstate holds the per-workspace state that ProxyHandler previously kept in process-local maps. |
|
internal/testharness
Package testharness is the single source of Postgres + Redis wiring for the API service's integration tests.
|
Package testharness is the single source of Postgres + Redis wiring for the API service's integration tests. |
|
migrations
Package migrations embeds the SQL migration files so that test tooling (the integration-test harness) and any in-process caller can apply migrations without the external `migrate` CLI being on PATH.
|
Package migrations embeds the SQL migration files so that test tooling (the integration-test harness) and any in-process caller can apply migrations without the external `migrate` CLI being on PATH. |
|
cmd
|
|
|
mcp
command
Command mcp runs the LLMSafeSpaces MCP server.
|
Command mcp runs the LLMSafeSpaces MCP server. |
|
migrate-kek
command
Command migrate-kek re-encrypts KEK-protected database rows from the local static/sealed format to cloud KMS format (zero-downtime, resumable).
|
Command migrate-kek re-encrypts KEK-protected database rows from the local static/sealed format to cloud KMS format (zero-downtime, resumable). |
|
relay-proxy
command
|
|
|
relay-router
command
|
|
|
repolint
command
Command repolint runs the repository-layout lint checks defined in pkg/repolint against the canonical paths of this repo.
|
Command repolint runs the repository-layout lint checks defined in pkg/repolint against the canonical paths of this repo. |
|
rotate-kek
command
|
|
|
seal-key
command
|
|
|
sessiongen
command
Command sessiongen generates pkg/session's contract types from the frozen ABI schema (pkg/abi/llmsafespaces/abi/v1/contract.proto).
|
Command sessiongen generates pkg/session's contract types from the frozen ABI schema (pkg/abi/llmsafespaces/abi/v1/contract.proto). |
|
workspace-agentd
command
|
|
|
workspace-agentd/faultmatrix
Package faultmatrix is the epic-71 / 2b assertion harness (#1312 change item 2): fault-leg rows driven through the REAL sessionstate authority with harness fakes, asserting the S-invariants via violation counters and the L-bounds via convergence samples.
|
Package faultmatrix is the epic-71 / 2b assertion harness (#1312 change item 2): fault-leg rows driven through the REAL sessionstate authority with harness fakes, asserting the S-invariants via violation counters and the L-bounds via convergence samples. |
|
workspace-agentd/sessionstate
Package sessionstate is the pod-local session state authority (design 0055, Epic 69 US-69.2): a module-sealed subsystem that owns seq assignment (I1), the store-reseeded projection (I3/I4), the stamped snapshot + ordered event fanout (I2), the durable seq cursor on the platform/ PVC subPath (I9 prep), and the authenticated ABI surface (I8).
|
Package sessionstate is the pod-local session state authority (design 0055, Epic 69 US-69.2): a module-sealed subsystem that owns seq assignment (I1), the store-reseeded projection (I3/I4), the stamped snapshot + ordered event fanout (I2), the durable seq cursor on the platform/ PVC subPath (I9 prep), and the authenticated ABI surface (I8). |
|
internal/freemodels
Package freemodels publishes the cluster-wide opencode free-tier model catalog as a ConfigMap, so workspace pods can render their relay agent-config.json before opencode boots — eliminating the in-pod opencode-restart cycle that the legacy relay-injector goroutine imposed.
|
Package freemodels publishes the cluster-wide opencode free-tier model catalog as a ConfigMap, so workspace pods can render their relay agent-config.json before opencode boots — eliminating the in-pod opencode-restart cycle that the legacy relay-injector goroutine imposed. |
|
pkg
|
|
|
abi/abiclient
Package abiclient is the reference Go consumer of the harness ABI (design 0055 M1, US-69.4): it implements the client side of the stamped-snapshot sync protocol — apply in order, discard seq ≤ S, re-snapshot on projection.reseeded.
|
Package abiclient is the reference Go consumer of the harness ABI (design 0055 M1, US-69.4): it implements the client side of the stamped-snapshot sync protocol — apply in order, discard seq ≤ S, re-snapshot on projection.reseeded. |
|
abi/abitest
Package abitest is the reference in-memory implementation of the harness ABI.
|
Package abitest is the reference in-memory implementation of the harness ABI. |
|
agent/opencode/filediff
Package filediff produces unified-diff text for files changed by an agent turn, using `git diff` against the workspace PVC's HEAD commit.
|
Package filediff produces unified-diff text for files changed by an agent turn, using `git diff` against the workspace PVC's HEAD commit. |
|
agent/opencode/wire
Package wire is the ONLY code in the platform that decodes opencode wire bytes (HTTP bodies and /event SSE envelopes).
|
Package wire is the ONLY code in the platform that decodes opencode wire bytes (HTTP bodies and /event SSE envelopes). |
|
agent/systemnotices
Package systemnotices injects platform-level system notices into agent-bound messages at the Adapter seam (#944).
|
Package systemnotices injects platform-level system notices into agent-bound messages at the Adapter seam (#944). |
|
agentd/secrets
Package secrets materializes user-supplied secrets onto the sandbox pod filesystem with strict validation and TOCTOU-safe permissions.
|
Package secrets materializes user-supplied secrets onto the sandbox pod filesystem with strict validation and TOCTOU-safe permissions. |
|
apis/llmsafespaces/v1
Package v1 contains the v1 API types for the llmsafespaces.dev API group.
|
Package v1 contains the v1 API types for the llmsafespaces.dev API group. |
|
diskrecovery
Package diskrecovery is the #1601 mechanical disk-space lever: an allowlist-only reclaimer of KNOWN-REPRODUCIBLE build caches and test residue for workspace pods too full for the agent to act.
|
Package diskrecovery is the #1601 mechanical disk-space lever: an allowlist-only reclaimer of KNOWN-REPRODUCIBLE build caches and test residue for workspace pods too full for the agent to act. |
|
errors
Package errors provides a shared StatusError type that carries an HTTP status code, a user-facing message, and an optional wrapped cause.
|
Package errors provides a shared StatusError type that carries an HTTP status code, a user-facing message, and an optional wrapped cause. |
|
mcp
Package mcp implements the LLMSafeSpaces MCP server.
|
Package mcp implements the LLMSafeSpaces MCP server. |
|
mcpserver
Package mcpserver contains minimal MCP server implementations for testing.
|
Package mcpserver contains minimal MCP server implementations for testing. |
|
obs
Package obs holds cross-binary observability contracts.
|
Package obs holds cross-binary observability contracts. |
|
repolint
Package repolint contains lint checks that operate on the repository layout itself rather than on Go source code: migration version numbering, worklog numbering, and sync between canonical and chart-bundled copies of files.
|
Package repolint contains lint checks that operate on the repository layout itself rather than on Go source code: migration version numbering, worklog numbering, and sync between canonical and chart-bundled copies of files. |
|
session
Package session defines the platform-owned agent session contract.
|
Package session defines the platform-owned agent session contract. |
|
session/agentmessage
Package agentmessage implements the v1 agent-message provenance sentinel contract (issue #1465): inter-session messages delivered by the agentd send_message tool carry a machine-detectable origin marker so frontends and receiving agents can distinguish agent traffic from human input.
|
Package agentmessage implements the v1 agent-message provenance sentinel contract (issue #1465): inter-session messages delivered by the agentd send_message tool carry a machine-detectable origin marker so frontends and receiving agents can distinguish agent traffic from human input. |
|
session/attachments
Package attachments implements the v1 attachment manifest contract (Epic 68, design decisions D7/D8/D15): prompt text carrying file references the agent reads with its own tools.
|
Package attachments implements the v1 attachment manifest contract (Epic 68, design decisions D7/D8/D15): prompt text carrying file references the agent reads with its own tools. |
|
types
Package types contains API DTOs (data transfer objects) used by the API service to receive requests and return responses to clients.
|
Package types contains API DTOs (data transfer objects) used by the API service to receive requests and return responses to clients. |
|
validation
Package validation provides shared validation primitives used by both the API layer (pkg/secrets) and the in-pod materializer (pkg/agentd/secrets).
|
Package validation provides shared validation primitives used by both the API layer (pkg/secrets) and the in-pod materializer (pkg/agentd/secrets). |
|
version
Package version is the single source of truth for the build version string.
|
Package version is the single source of truth for the build version string. |
|
workflows
Package workflows contains the storage layer for Epic 64 (triggers & workflows).
|
Package workflows contains the storage layer for Epic 64 (triggers & workflows). |
|
workflows/exprlang
Package exprlang compiles condition expressions for workflow DAG validation.
|
Package exprlang compiles condition expressions for workflow DAG validation. |
|
workflows/scriptwrap
Package scriptwrap executes user-authored inline script handlers (Python, Node) inside the workspace sandbox.
|
Package scriptwrap executes user-authored inline script handlers (Python, Node) inside the workspace sandbox. |
|
sdks
|
|
|
canary/go
module
|
Click to show internal directories.
Click to hide internal directories.