Documentation
¶
Overview ¶
Package workloom exists to embed the example workflow policies into the binary, so `devsys workflow init --template` works for users who only have the release binary — the docs/ tree ships with the repository, not with the binary. docs/examples/workflows/ stays the single source: the smoke scripts and the README copy from the same files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var WorkflowTemplatesFS embed.FS
WorkflowTemplatesFS holds the example workflow policies (quick-fix, feature-development, architecture-change, reference-template) exactly as they appear in docs/examples/workflows/.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
devsys
command
Command devsys is the compatibility alias for the workloom CLI: the same entry point under the historical name, kept so existing scripts and muscle memory keep working.
|
Command devsys is the compatibility alias for the workloom CLI: the same entry point under the historical name, kept so existing scripts and muscle memory keep working. |
|
workloom
command
Command workloom is the CLI entry point for the project-local agent development infrastructure described in docs/原始文档/ (方案 = specification, 实施计划 = step plan).
|
Command workloom is the CLI entry point for the project-local agent development infrastructure described in docs/原始文档/ (方案 = specification, 实施计划 = step plan). |
|
internal
|
|
|
app
Package app is the shared application service behind every workloom surface (CLI, MCP, file protocol): one implementation of input validation, gates, approvals, version guards and transactions, so no entry point can bypass a constraint the others enforce (方案 §8.1, 实施计划 M4.2).
|
Package app is the shared application service behind every workloom surface (CLI, MCP, file protocol): one implementation of input validation, gates, approvals, version guards and transactions, so no entry point can bypass a constraint the others enforce (方案 §8.1, 实施计划 M4.2). |
|
approval
Package approval persists Approval records as one file per approval under .devsys/approvals/<id>.yaml (方案 §4.9/§5.8, 实施计划 M3.7) and implements the request → decide → consume lifecycle.
|
Package approval persists Approval records as one file per approval under .devsys/approvals/<id>.yaml (方案 §4.9/§5.8, 实施计划 M3.7) and implements the request → decide → consume lifecycle. |
|
archive
Package archive implements M8.3 (方案 §14.2): conservative archiving of the append-only JSONL streams — project events and run streams — to keep the working tree small without losing history.
|
Package archive implements M8.3 (方案 §14.2): conservative archiving of the append-only JSONL streams — project events and run streams — to keep the working tree small without losing history. |
|
cli
Package cli implements the workloom command surface: global switches, command dispatch, output rendering and the exit-code taxonomy.
|
Package cli implements the workloom command surface: global switches, command dispatch, output rendering and the exit-code taxonomy. |
|
config
Package config validates the managed metadata files devsys owns inside a project's .devsys/ directory (方案 §14.1/§14.2/§14.3, 实施计划 M0.4).
|
Package config validates the managed metadata files devsys owns inside a project's .devsys/ directory (方案 §14.1/§14.2/§14.3, 实施计划 M0.4). |
|
dispatch
Package dispatch decides which work items a scheduling tick may start (方案 §4.8/§7.4): the ordering, the concurrency gates and the preconditions, as a pure function of the state the caller read.
|
Package dispatch decides which work items a scheduling tick may start (方案 §4.8/§7.4): the ordering, the concurrency gates and the preconditions, as a pure function of the state the caller read. |
|
domain
Package domain defines the versioned, text-persisted project records.
|
Package domain defines the versioned, text-persisted project records. |
|
events
Package events appends and filters the project event stream under .devsys/events/<YYYY-MM>.jsonl (方案 §4.6, 实施计划 M1.3).
|
Package events appends and filters the project event stream under .devsys/events/<YYYY-MM>.jsonl (方案 §4.6, 实施计划 M1.3). |
|
harness
Package harness is the execution layer: one adapter interface over the harnesses devsys can drive (方案 §9.1/§9.2) plus the shell adapter that runs an arbitrary command with line-level streaming.
|
Package harness is the execution layer: one adapter interface over the harnesses devsys can drive (方案 §9.1/§9.2) plus the shell adapter that runs an arbitrary command with line-level streaming. |
|
knowledge
Package knowledge implements the knowledge layer's page contract and the bookkeeping that keeps the layer honest about which code it describes (方案 §12): the front matter every page carries, located validation, and the scan/freshness machinery the later milestones build on.
|
Package knowledge implements the knowledge layer's page contract and the bookkeeping that keeps the layer honest about which code it describes (方案 §12): the front matter every page carries, located validation, and the scan/freshness machinery the later milestones build on. |
|
mcp
Package mcp exposes the devsys application service over the Model Context Protocol using the official Go SDK (github.com/modelcontextprotocol/go-sdk).
|
Package mcp exposes the devsys application service over the Model Context Protocol using the official Go SDK (github.com/modelcontextprotocol/go-sdk). |
|
next
Package next evaluates a project's readiness verdict and the single recommended next action (方案 §7.4, 实施计划 M3.4).
|
Package next evaluates a project's readiness verdict and the single recommended next action (方案 §7.4, 实施计划 M3.4). |
|
project
Package project implements project-local devsys operations.
|
Package project implements project-local devsys operations. |
|
prompt
Package prompt assembles the text one attempt round hands to a harness (方案 §4.8): the first round carries the full task brief, later rounds carry only what changed and what is left, so a session's context is not rebuilt from scratch every round.
|
Package prompt assembles the text one attempt round hands to a harness (方案 §4.8): the first round carries the full task brief, later rounds carry only what changed and what is left, so a session's context is not rebuilt from scratch every round. |
|
reconcile
Package reconcile implements M2.3 (orphan recovery) and M2.4 (state repair) per 方案 §15.4.
|
Package reconcile implements M2.3 (orphan recovery) and M2.4 (state repair) per 方案 §15.4. |
|
record
Package record persists Decision, Finding and Artifact records as one file per record under .devsys/{decisions,findings,artifacts}/<id>.yaml (方案 §14.3, 实施计划 M1.5).
|
Package record persists Decision, Finding and Artifact records as one file per record under .devsys/{decisions,findings,artifacts}/<id>.yaml (方案 §14.3, 实施计划 M1.5). |
|
registry
Package registry manages the user-level project path registry defined in 方案 §14.4: it stores only project id, path and last_seen_at — never project state.
|
Package registry manages the user-level project path registry defined in 方案 §14.4: it stores only project id, path and last_seen_at — never project state. |
|
retry
Package retry computes when a failed or stalled attempt may run again (方案 §15.4): an exponential backoff with a reproducible jitter.
|
Package retry computes when a failed or stalled attempt may run again (方案 §15.4): an exponential backoff with a reproducible jitter. |
|
run
Package run persists Run records under .devsys/runs/<id>.yaml (方案 §14.3, 实施计划 M1.4).
|
Package run persists Run records under .devsys/runs/<id>.yaml (方案 §14.3, 实施计划 M1.4). |
|
search
Package search scans .devsys/ text files for a keyword without any database or index (方案 §14.1, 实施计划 M1.6).
|
Package search scans .devsys/ text files for a keyword without any database or index (方案 §14.1, 实施计划 M1.6). |
|
sitestatic
Package sitestatic renders a view.Model as an offline static site (实施计划 M7.2, 方案 §17 两种形态之一)。
|
Package sitestatic renders a view.Model as an offline static site (实施计划 M7.2, 方案 §17 两种形态之一)。 |
|
storage
Package storage implements the text state primitives required by 方案 §15.2: atomic single-file replacement, JSONL appends with torn-tail detection, stable-key YAML/JSON serialization, a project-level short write lock, optimistic version checks and a recoverable multi-file transaction log.
|
Package storage implements the text state primitives required by 方案 §15.2: atomic single-file replacement, JSONL appends with torn-tail detection, stable-key YAML/JSON serialization, a project-level short write lock, optimistic version checks and a recoverable multi-file transaction log. |
|
syncstatus
Package syncstatus implements the read-only inspection behind `workloom sync status` (实施计划 M8.1, 方案 §14.4).
|
Package syncstatus implements the read-only inspection behind `workloom sync status` (实施计划 M8.1, 方案 §14.4). |
|
version
Package version carries the build identity of the workloom CLI.
|
Package version carries the build identity of the workloom CLI. |
|
view
Package view assembles the read-only workspace view (方案 §17, 实施计划 M7.1): one snapshot of a project's blueprint, progress, runs, records and knowledge freshness, built from the .devsys/ state files and git state.
|
Package view assembles the read-only workspace view (方案 §17, 实施计划 M7.1): one snapshot of a project's blueprint, progress, runs, records and knowledge freshness, built from the .devsys/ state files and git state. |
|
workflow
Policy cache and last-known-good resolution (实施计划 M3.5, 方案 §5.3).
|
Policy cache and last-known-good resolution (实施计划 M3.5, 方案 §5.3). |
|
workitem
Package workitem — scheduling: claim / heartbeat / release / start / retry / repair.
|
Package workitem — scheduling: claim / heartbeat / release / start / retry / repair. |
|
workspace
Package workspace manages execution workspaces for runs (方案 §4.8): one workspace per work item below a configured root, its lifecycle hooks, and the path invariants that keep an agent inside its workspace.
|
Package workspace manages execution workspaces for runs (方案 §4.8): one workspace per work item below a configured root, its lifecycle hooks, and the path invariants that keep an agent inside its workspace. |
|
The smoke-m1 helper walks the M1 lifecycle against one initialized project directory (实施计划 M1.7): 创建项目 → 建任务 → 记录决策 → 完成.
|
The smoke-m1 helper walks the M1 lifecycle against one initialized project directory (实施计划 M1.7): 创建项目 → 建任务 → 记录决策 → 完成. |
|
m3helper
command
Command m3helper prepares and inspects M3.3 smoke fixtures for scripts/smoke-m3.*: stage gates, the claim-time quality gate and completion propagation.
|
Command m3helper prepares and inspects M3.3 smoke fixtures for scripts/smoke-m3.*: stage gates, the claim-time quality gate and completion propagation. |
|
m4helper
command
Command m4helper drives a scripted MCP session against a devsys binary and asserts the M4 acceptance: profile filtering, the health tool, a record round-trip through the tool surface, the session interface, and the error taxonomy.
|
Command m4helper drives a scripted MCP session against a devsys binary and asserts the M4 acceptance: profile filtering, the health tool, a record round-trip through the tool surface, the session interface, and the error taxonomy. |