Documentation
ΒΆ
Overview ΒΆ
Package gemba is the module root. It exists primarily to host the embed directive for the Vite SPA build output, which cannot live inside cmd/gemba because embed paths cannot traverse upward with "..".
Consumers (cmd/gemba) call SPA() to get the embedded filesystem.
Index ΒΆ
Constants ΒΆ
This section is empty.
Variables ΒΆ
This section is empty.
Functions ΒΆ
Types ΒΆ
This section is empty.
Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
check-decisions
command
check-decisions enforces the bidirectional linkage between docs/design/*.md files and decision-type beads (D6 / gm-d1m1).
|
check-decisions enforces the bidirectional linkage between docs/design/*.md files and decision-type beads (D6 / gm-d1m1). |
|
gemba
command
Command gemba is the Gemba CLI: a standalone sidecar that serves a browser-based Atlassian-style UI for a Gas Town workspace today, and β via a thin adapter flip β for a Gas City workspace when Gas City reaches GA.
|
Command gemba is the Gemba CLI: a standalone sidecar that serves a browser-based Atlassian-style UI for a Gas Town workspace today, and β via a thin adapter flip β for a Gas City workspace when Gas City reaches GA. |
|
gemba-ask
command
gemba-ask is the skill-authoring sentinel for surfacing operator attention from inside a dispatched session (gm-97w7.1).
|
gemba-ask is the skill-authoring sentinel for surfacing operator attention from inside a dispatched session (gm-97w7.1). |
|
gemba-bd-hook
command
gemba-bd-hook is the small companion binary an out-of-process bd writer (terminal `bd update`, an installed bd post-write hook, an ops cron) invokes after a Dolt commit lands so /api/workitems/notify gets a chance to fan out a workitem.* GembaEvent (gm-e4.3.3 β gm-e4.3.2).
|
gemba-bd-hook is the small companion binary an out-of-process bd writer (terminal `bd update`, an installed bd post-write hook, an ops cron) invokes after a Dolt commit lands so /api/workitems/notify gets a chance to fan out a workitem.* GembaEvent (gm-e4.3.3 β gm-e4.3.2). |
|
gemba-bridge
command
gemba-bridge is the structured-event shim the native orchestrator adaptor relies on (gm-native.7).
|
gemba-bridge is the structured-event shim the native orchestrator adaptor relies on (gm-native.7). |
|
gemba-codex-driver
command
|
|
|
gemba-mcp
command
gemba-mcp is the MCP-tool sibling of gemba-ask + gemba-state (gm-97w7.2).
|
gemba-mcp is the MCP-tool sibling of gemba-ask + gemba-state (gm-97w7.2). |
|
gemba-state
command
gemba-state is the deterministic state-transition sentinel for native-adaptor sessions (gm-cdph / gm-97w7).
|
gemba-state is the deterministic state-transition sentinel for native-adaptor sessions (gm-cdph / gm-97w7). |
|
gen-core-types
command
Command gen-core-types writes the TypeScript mirror of core.
|
Command gen-core-types writes the TypeScript mirror of core. |
|
Package core: see doc.go for the overview.
|
Package core: see doc.go for the overview. |
|
internal
|
|
|
adapter/bd
Package bd wraps the `bd` CLI.
|
Package bd wraps the `bd` CLI. |
|
adapter/dolt
Package dolt implements the core.WorkPlane adaptor by opening a direct MySQL connection to a Dolt server that hosts a beads database (gm-0fd / milestone M1).
|
Package dolt implements the core.WorkPlane adaptor by opening a direct MySQL connection to a Dolt server that hosts a beads database (gm-0fd / milestone M1). |
|
adapter/fs
Package fs provides low-latency reads of workspace runtime state files that rarely change and don't need a CLI round-trip.
|
Package fs provides low-latency reads of workspace runtime state files that rarely change and don't need a CLI round-trip. |
|
adapter/gc
Package gc wraps the `gc` CLI for Gas City workspaces.
|
Package gc wraps the `gc` CLI for Gas City workspaces. |
|
adapter/gitnexus/codeanalysis
Package codeanalysis is the GitNexus reference backend for the codeanalysis.Provider interface defined in internal/core/codeanalysis (gm-1ak).
|
Package codeanalysis is the GitNexus reference backend for the codeanalysis.Provider interface defined in internal/core/codeanalysis (gm-1ak). |
|
adapter/gt
Package gt wraps the `gt` CLI for Gas Town v1.0 workspaces.
|
Package gt wraps the `gt` CLI for Gas Town v1.0 workspaces. |
|
adapter/native
Package native implements core.OrchestrationPlaneAdaptor by talking directly to shell sessions on the operator's host (tmux panes, iTerm2 tabs, Terminal.app tabs).
|
Package native implements core.OrchestrationPlaneAdaptor by talking directly to shell sessions on the operator's host (tmux panes, iTerm2 tabs, Terminal.app tabs). |
|
adapter/native/agents
Package agents loads the operator-authored .gemba/agents.toml, which lists the agent types the native adaptor can spawn (Claude Code, shell-only, future types like Codex).
|
Package agents loads the operator-authored .gemba/agents.toml, which lists the agent types the native adaptor can spawn (Claude Code, shell-only, future types like Codex). |
|
adapter/native/backend
Package backend defines the abstraction the native orchestrator adaptor calls to enumerate sessions, spawn new ones, inject keystrokes, capture output, and kill.
|
Package backend defines the abstraction the native orchestrator adaptor calls to enumerate sessions, spawn new ones, inject keystrokes, capture output, and kill. |
|
adapter/native/bridge
Package bridge parses the jsonl files gemba-bridge writes and translates each frame into a core.OrchestrationEvent.
|
Package bridge parses the jsonl files gemba-bridge writes and translates each frame into a core.OrchestrationEvent. |
|
adapter/native/claudemd
Package claudemd is the leaf utility that owns sentinel-bracketed writes to a workspace's CLAUDE.md.
|
Package claudemd is the leaf utility that owns sentinel-bracketed writes to a workspace's CLAUDE.md. |
|
adapter/native/dod
Package dod synthesizes a default DefinitionOfDone when a bead doesn't have one declared (gm-native.11).
|
Package dod synthesizes a default DefinitionOfDone when a bead doesn't have one declared (gm-native.11). |
|
adapter/native/preamble
Package preamble composes the project / workspace / work-item context layers (gm-native.10) into the format the operator's chosen agent type expects.
|
Package preamble composes the project / workspace / work-item context layers (gm-native.10) into the format the operator's chosen agent type expects. |
|
adapter/native/worktrees
Package worktrees provisions git worktrees for native-adaptor sessions (gm-native.9).
|
Package worktrees provisions git worktrees for native-adaptor sessions (gm-native.9). |
|
adapter/noop
Package noop provides minimal in-memory WorkPlane and OrchestrationPlaneAdaptor implementations used by the conformance harness (testing/) as a self-test, and by transports that need a valid zero-state adaptor while the real backend is being wired.
|
Package noop provides minimal in-memory WorkPlane and OrchestrationPlaneAdaptor implementations used by the conformance harness (testing/) as a self-test, and by transports that need a valid zero-state adaptor while the real backend is being wired. |
|
adapter/registry
Package registry holds the process-wide list of adaptors gemba can use.
|
Package registry holds the process-wide list of adaptors gemba can use. |
|
agentprofile
Package agentprofile implements the persistent agent profile (gm-v5z2.2, work-planning.md Β§4 Layer 1.2).
|
Package agentprofile implements the persistent agent profile (gm-v5z2.2, work-planning.md Β§4 Layer 1.2). |
|
auth
Package auth implements authentication and authorization for the HTTP surface: token auth, TLS, and (post-v1) OIDC.
|
Package auth implements authentication and authorization for the HTTP surface: token auth, TLS, and (post-v1) OIDC. |
|
cli
Package cli builds the Cobra command tree for the gemba binary.
|
Package cli builds the Cobra command tree for the gemba binary. |
|
concepts
Package concepts owns the controlled-vocabulary half of the gm-s47n two-axis planner (see docs/design/work-planning.md Β§6).
|
Package concepts owns the controlled-vocabulary half of the gm-s47n two-axis planner (see docs/design/work-planning.md Β§6). |
|
config
Package config: see doc.go for the overview.
|
Package config: see doc.go for the overview. |
|
core/codeanalysis
Package codeanalysis is the core typed surface for Gemba's agentic code-analysis capability (gm-l1i, design docs/design/code-analysis.md).
|
Package codeanalysis is the core typed surface for Gemba's agentic code-analysis capability (gm-l1i, design docs/design/code-analysis.md). |
|
core/persona
Package persona is the parsed-config layer for Gemba personas (gm-57b / gm-518).
|
Package persona is the parsed-config layer for Gemba personas (gm-57b / gm-518). |
|
core/phase
Package phase implements the project-level Phase primitive (gm-jt9, design docs/design/persona-pppp.md Β§3 + invariants #29β30).
|
Package phase implements the project-level Phase primitive (gm-jt9, design docs/design/persona-pppp.md Β§3 + invariants #29β30). |
|
core/projectshape
Package projectshape introduces named, shared understandings of the implementation pattern a workspace follows β the "architectural archetype" the project lives under (gm-4uso).
|
Package projectshape introduces named, shared understandings of the implementation pattern a workspace follows β the "architectural archetype" the project lives under (gm-4uso). |
|
core/prompt
Package prompt holds PromptEnvelope β the cross-cutting composition layer that produces every persona/skill invocation's final prompt from separately-owned pieces.
|
Package prompt holds PromptEnvelope β the cross-cutting composition layer that produces every persona/skill invocation's final prompt from separately-owned pieces. |
|
core/promptctx
Package promptctx: see doc.go for the overview.
|
Package promptctx: see doc.go for the overview. |
|
core/promptctx/providers
Package providers: see doc.go for the overview.
|
Package providers: see doc.go for the overview. |
|
core/promptctx/providers/codeanalysis
Package codeanalysis provides four prompt-ctx providers that adapt a codeanalysis.Provider (the typed knowledge-graph surface from gm-1ak) into context-provider Result fragments the persona prompt envelope splices in (gm-bro).
|
Package codeanalysis provides four prompt-ctx providers that adapt a codeanalysis.Provider (the typed knowledge-graph surface from gm-1ak) into context-provider Result fragments the persona prompt envelope splices in (gm-bro). |
|
enrichment
Package enrichment owns the Enrichment data type the gm-s47n.1 epic adds to every WorkItem (targets[] glob patterns + concepts[] vocabulary tags) plus the Store interface the CLI / planner / future LLM-extraction path read and write through.
|
Package enrichment owns the Enrichment data type the gm-s47n.1 epic adds to every WorkItem (targets[] glob patterns + concepts[] vocabulary tags) plus the Store interface the CLI / planner / future LLM-extraction path read and write through. |
|
events/log
Package log is the append-only NDJSON event log with rotation, retention, and post-rotate archival.
|
Package log is the append-only NDJSON event log with rotation, retention, and post-rotate archival. |
|
evidence
Package evidence implements the shared evidence-synthesis library (gm-e11.6, resolves DD-13).
|
Package evidence implements the shared evidence-synthesis library (gm-e11.6, resolves DD-13). |
|
model
Package model defines the shared domain types used across adapters, the API layer, and (via codegen) the TypeScript frontend.
|
Package model defines the shared domain types used across adapters, the API layer, and (via codegen) the TypeScript frontend. |
|
persona
Package persona is the runtime invocation layer for personas.
|
Package persona is the runtime invocation layer for personas. |
|
persona/purviewgate
Package purviewgate binds a Persona's corepersona.Purview to the Manager-mutation path (gm-3on, follow-up to gm-9rv).
|
Package purviewgate binds a Persona's corepersona.Purview to the Manager-mutation path (gm-3on, follow-up to gm-9rv). |
|
personas/onboarder
Package onboarder implements the Onboarder persona β the transient, single-skill host for the newproject skill (gm-root.17.10).
|
Package onboarder implements the Onboarder persona β the transient, single-skill host for the newproject skill (gm-root.17.10). |
|
planner
Package planner is the home of the two-axis work planning and dispatch subsystem (gm-s47n, docs/design/work-planning.md).
|
Package planner is the home of the two-axis work planning and dispatch subsystem (gm-s47n, docs/design/work-planning.md). |
|
planner/autodispatch
Package autodispatch implements the auto-dispatch daemon (gm-s47n.6.3, work-planning.md Β§4 Layer 5.2).
|
Package autodispatch implements the auto-dispatch daemon (gm-s47n.6.3, work-planning.md Β§4 Layer 5.2). |
|
planner/claims
Package claims implements the per-rig owner-claim cross-check (gm-v5z2.6, work-planning.md Β§4 Layer 5.1 inputs + Β§4 Layer 5.2 gate 2).
|
Package claims implements the per-rig owner-claim cross-check (gm-v5z2.6, work-planning.md Β§4 Layer 5.1 inputs + Β§4 Layer 5.2 gate 2). |
|
planner/conflicts
Package conflicts is the bead-set conflict scorer (gm-s47n.4.3).
|
Package conflicts is the bead-set conflict scorer (gm-s47n.4.3). |
|
planner/dispatch
Package dispatch persists dispatch decisions β the moment a coach (or, later, the auto-dispatch daemon) picks a bead for a session (gm-s47n.6.2, work-planning.md Β§5 Layer 5).
|
Package dispatch persists dispatch decisions β the moment a coach (or, later, the auto-dispatch daemon) picks a bead for a session (gm-s47n.6.2, work-planning.md Β§5 Layer 5). |
|
planner/intent
Package intent implements the operator-pinned session focus directive (gm-v5z2.3, work-planning.md Β§4 Layer 1.3).
|
Package intent implements the operator-pinned session focus directive (gm-v5z2.3, work-planning.md Β§4 Layer 1.3). |
|
planner/retro
Package retro implements the turn-retrospective comparator (gm-s47n.8.1, work-planning.md Β§7).
|
Package retro implements the turn-retrospective comparator (gm-s47n.8.1, work-planning.md Β§7). |
|
planner/runway
Package runway implements the per-session runway estimator (gm-v5z2.4, work-planning.md Β§4 Layer 5.1).
|
Package runway implements the per-session runway estimator (gm-v5z2.4, work-planning.md Β§4 Layer 5.1). |
|
planner/scanscheduler
Package scanscheduler owns scheduling re-indexing of the source analysis tool (gm-s47n.9, work-planning.md Β§8).
|
Package scanscheduler owns scheduling re-indexing of the source analysis tool (gm-s47n.9, work-planning.md Β§8). |
|
planner/scoring
Package scoring implements the WP2.0 score components Selection (gm-v5z2.7) composes:
|
Package scoring implements the WP2.0 score components Selection (gm-v5z2.7) composes: |
|
planner/selection
Package selection implements the WP2.0 Layer 5 Selection step (gm-v5z2.7, work-planning.md Β§4 Layer 5).
|
Package selection implements the WP2.0 Layer 5 Selection step (gm-v5z2.7, work-planning.md Β§4 Layer 5). |
|
planner/semantic
Package semantic implements the gm-s47n.4.2 SemanticDetector for the conflicts package: two beads conflict semantically when one bead's targets are dependents of the other bead's targets in the SourceAnalysis index.
|
Package semantic implements the gm-s47n.4.2 SemanticDetector for the conflicts package: two beads conflict semantically when one bead's targets are dependents of the other bead's targets in the SourceAnalysis index. |
|
planner/sizecalibration
Package sizecalibration implements the bead-size calibration loop (gm-v5z2.8 part b, work-planning.md Β§7.6).
|
Package sizecalibration implements the bead-size calibration loop (gm-v5z2.8 part b, work-planning.md Β§7.6). |
|
planner/targets
Package targets implements the target-overlap glob algorithm (gm-s47n.4.1) β given two WorkItems' target glob sets, decides whether they could touch the same concrete file path.
|
Package targets implements the target-overlap glob algorithm (gm-s47n.4.1) β given two WorkItems' target glob sets, decides whether they could touch the same concrete file path. |
|
qa/linters
Package linters models the QA persona's configurable lint and style catalog.
|
Package linters models the QA persona's configurable lint and style catalog. |
|
qa/regression
Package regression seeds the QA persona's regression-suite registry.
|
Package regression seeds the QA persona's regression-suite registry. |
|
server
Package server wires the HTTP surface: chi router, SPA fallback, JSON API, and the SSE hub.
|
Package server wires the HTTP surface: chi router, SPA fallback, JSON API, and the SSE hub. |
|
server/dispatch
Package dispatch holds the server-side routing policy that decides whether a new bead should co-locate in an existing intra-parallel session or trigger a fresh pane spawn (gm-root.16.4).
|
Package dispatch holds the server-side routing policy that decides whether a new bead should co-locate in an existing intra-parallel session or trigger a fresh pane spawn (gm-root.16.4). |
|
server/httperr
Package httperr is the single place every gemba data handler goes to turn a Go error into the wire-stable JSON error envelope.
|
Package httperr is the single place every gemba data handler goes to turn a Go error into the wire-stable JSON error envelope. |
|
server/metrics
Package metrics binds the GembaEvent stream to a Prometheus /metrics endpoint so operators can scrape adaptor health, session activity, escalation pressure, and budget posture without standing up an OTEL collector.
|
Package metrics binds the GembaEvent stream to a Prometheus /metrics endpoint so operators can scrape adaptor health, session activity, escalation pressure, and budget posture without standing up an OTEL collector. |
|
skills/epic_order
Package epic_order implements the Project Manager's first Skill: rank a set of candidate Epics for staging into a sprint.
|
Package epic_order implements the Project Manager's first Skill: rank a set of candidate Epics for staging into a sprint. |
|
skills/escalation_handoff
Package escalation_handoff implements the dispatcher skill behind the EscalationsPage Hand-off action (gm-e11.8.7).
|
Package escalation_handoff implements the dispatcher skill behind the EscalationsPage Hand-off action (gm-e11.8.7). |
|
skills/newproject
Package newproject implements the Onboarder persona's bundled conversational skill (gm-root.17.5).
|
Package newproject implements the Onboarder persona's bundled conversational skill (gm-root.17.5). |
|
skills/walk_summary
Package walk_summary implements the Documentarian persona's walk-end artifact skill (gm-77u).
|
Package walk_summary implements the Documentarian persona's walk-end artifact skill (gm-77u). |
|
sourceanalysis
Package sourceanalysis defines the abstract code-analysis surface the planner consumes when computing semantic conflicts (gm-s47n.3, docs/design/work-planning.md Β§4 Layer 2).
|
Package sourceanalysis defines the abstract code-analysis surface the planner consumes when computing semantic conflicts (gm-s47n.3, docs/design/work-planning.md Β§4 Layer 2). |
|
speckit
Package speckit reads Spec Kit planning artifacts and projects them onto Gemba work items.
|
Package speckit reads Spec Kit planning artifacts and projects them onto Gemba work items. |
|
transport
Package transport hosts the three wire shims (api, jsonl, mcp) that bind adaptors to the core.
|
Package transport hosts the three wire shims (api, jsonl, mcp) that bind adaptors to the core. |
|
transport/api
Package api is the JSON-over-HTTP transport shim.
|
Package api is the JSON-over-HTTP transport shim. |
|
transport/jsonl
Package jsonl is the newline-delimited JSON transport shim, used by streaming surfaces (SSE event hubs, log tails, watcher pipelines) and by stdio-dispatched in-process adaptors.
|
Package jsonl is the newline-delimited JSON transport shim, used by streaming surfaces (SSE event hubs, log tails, watcher pipelines) and by stdio-dispatched in-process adaptors. |
|
transport/mcp
Package mcp is the Model Context Protocol transport shim, exposing Gemba's read surface to MCP-aware clients (Claude Desktop, IDE plugins).
|
Package mcp is the Model Context Protocol transport shim, exposing Gemba's read surface to MCP-aware clients (Claude Desktop, IDE plugins). |
|
transport/testadaptors
Package testadaptors provides lightweight fake adaptors used by the transport host tests and the adaptor-register CLI tests.
|
Package testadaptors provides lightweight fake adaptors used by the transport host tests and the adaptor-register CLI tests. |
|
walk
Package walk implements the Gemba walk core (gm-rfy, design docs/design/gemba-walk.md).
|
Package walk implements the Gemba walk core (gm-rfy, design docs/design/gemba-walk.md). |
|
walk/sources
Package sources contains the live wiring between Gemba's data planes (OrchestrationPlane today; Witness, Refinery, Beads-degraded, Budget, Adaptor-degraded later) and the gm-rfy walk agenda aggregator.
|
Package sources contains the live wiring between Gemba's data planes (OrchestrationPlane today; Witness, Refinery, Beads-degraded, Budget, Adaptor-degraded later) and the gm-rfy walk agenda aggregator. |
|
workflow
Package workflow wraps the bd CLI's formula + mol surfaces behind a thin Go client (gm-e12.22.2).
|
Package workflow wraps the bd CLI's formula + mol surfaces behind a thin Go client (gm-e12.22.2). |
|
Package testing publishes Gemba's conformance test harness as an importable library so third-party adaptor authors can run our contract tests inside their own `go test` suites (gm-2am, Foolery-spike lesson).
|
Package testing publishes Gemba's conformance test harness as an importable library so third-party adaptor authors can run our contract tests inside their own `go test` suites (gm-2am, Foolery-spike lesson). |
Click to show internal directories.
Click to hide internal directories.


