workflows

package
v0.23.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Workflows

Studio's home for designing user/agent/system workflows as Surface modules. A brief records the intended outcome, each actor's steps, and acceptance checks. The workflow designer uses the workflows slot; its external specialist folder is selected through the module-agent binding when available. This module does not ship a substitute specialist identity.

Create and save a draft, fill the three actors' steps and acceptance checks, mark it for review, then mark it ready after review. Only the owner can mark ready. Changed content must return to draft. Every save compares the revision, so stale pages and agent turns cannot silently overwrite a newer brief. Delegated writes also refuse to change a brief while its window is dirty or composing.

The server owns the SQLite briefs and publishes workflows.changed. The view uses registry components and refreshes its list on that event, retaining unsaved input and offering an explicit reload for stale revisions. HTTP writes are owner-only; agent/outside clients use the write-level workflows_save tool. workflows_list, workflows_get, and workflows_handoff are read-only.

A review handoff is a Markdown snapshot with the brief ID and revision, ready to copy into a Design request. Preparing it does not contact the design team or start work. The agent may use the existing design_request tool when authorized. Review readiness is not approval to deploy or merge an implementation.

Tests: go test -race ./modules/workflows ./module/..., plus the repository's page typecheck/lint, generated wiring check and CI.

Documentation

Overview

Package workflows hosts the workflow designer and keeps reviewable module briefs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Brief

type Brief struct {
	ID          string `json:"id"`
	Title       string `json:"title"`
	Outcome     string `json:"outcome"`
	UserSteps   string `json:"user_steps"`
	AgentSteps  string `json:"agent_steps"`
	SystemSteps string `json:"system_steps"`
	Acceptance  string `json:"acceptance"`
	Stage       string `json:"stage"`
	Revision    int    `json:"revision"`
	Updated     string `json:"updated"`
}

Brief describes the shared workflow, before implementation or design review.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL