Skip to content

Latest commit

 

History

286 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agent-workflow

agent-workflow is a headless workflow, evidence, evaluation, and delegation engine for coding-agent work.

The durable execution object is an Agent Run. A task may produce one or more Agent Runs over its lifetime; each Agent Run has an immutable execution contract, a worker plan, durable messaging, evidence, and a review/acceptance lifecycle.

Core model

Workflow
  └── Task
       └── Agent Run
            └── Worker

A worker has one of two modes:

  • headless — agent-workflow launches and owns the local worker process group;
  • external — agent-workflow prepares the Agent Run and execution contract, while another runtime launches the worker.

The core intentionally does not own workspace, pane, window, or interactive terminal layout. External interactive hosts are future integrations rather than core dependencies.

What agent-workflow owns

  • Git worktree isolation, source baselines, and provenance;
  • Agent Run contracts and worker policy;
  • restart-safe workflow DAGs and hierarchical delegation authority;
  • persist-first steering, progress, acknowledgement, replay, and correlation;
  • controlled process execution and bounded supervision;
  • completion handoffs, sealed evidence, receipts, review, and acceptance;
  • evaluation plans, scoring, comparative benchmarks, and usage/cost evidence;
  • rebuildable SQLite projections and read-only MCP access;
  • prompt-pack validation and trusted semantic plugins.

Agent Run lifecycle

For the normal path, create/select the worktree and launch the Agent Run in one deterministic composition:

agent-workflow delegate RUN-001 prompt.md --repo /path/to/repo \
  --ticket TICKET-001 --base-ref HEAD --role implementation --tier medium

The lower-level worktree create, agent-run prepare, and agent-run start commands remain available for recovery, diagnostics, and explicit operator control. delegate uses those same authorities and produces the same durable Agent Run evidence; it does not introduce a parallel lifecycle.

Observe and communicate durably:

agent-workflow agent-run status RUN-001
agent-workflow agent-run progress RUN-001 "implemented parser changes" --actor worker
agent-workflow agent-run steer RUN-001 "also run the integration tests" --actor parent
agent-workflow agent-run ack RUN-001 MESSAGE_ID "applied" --actor worker

Review and disposition remain separate from worker completion:

agent-workflow agent-run review RUN-001 --actor reviewer --reason "evidence inspected"
agent-workflow agent-run accept RUN-001 --actor maintainer --reason "accepted" --revision HEAD_SHA

External worker preparation

An external runtime can consume a prepared Agent Run without being a dependency of the core:

agent-workflow delegate RUN-EXT prompt.md --workdir /path/to/worktree \
  --worker-mode external --interactive --role implementation

The facade records the durable authority and launch plan but does not launch a process.

Workflows

agent-workflow workflow validate workflow.json
agent-workflow workflow start ./workflow-run workflow.json
agent-workflow workflow status ./workflow-run workflow.json
agent-workflow workflow resume ./workflow-run workflow.json
agent-workflow workflow seal ./workflow-run workflow.json

Workflow eligibility and durable state belong to agent-workflow. Presentation of workers does not.

Testing

The repository is acceptance-first. Invariant tests protect durable contracts and security boundaries; installed end-to-end journeys exercise public CLI behavior. The core must operate on a machine with no interactive runtime host installed.

python -m pytest -q tests/invariants
python -m pytest -q tests/acceptance
python -m pytest -q

See docs/TESTING.md.

Documentation

Generate the exact installed command surface directly from the parser:

agent-workflow commands --format markdown

Future interactive-host integration

The core is deliberately host-independent. A future plugin may project Agent Runs into an interactive coding-agent environment, provide live delivery after durable persistence, and reconcile host bindings, but it must consume public Agent-Workflow contracts rather than become workflow authority. See the external host/plugin boundary and backlog.

Version

Version 0.9.0 builds on the breaking 0.8 headless-core rewrite and begins the skill-first product-surface simplification. Older terminal-host-era runtime and schema compatibility is intentionally not carried forward. See the 0.9 skill-first simplification plan.

Repository-only CI assets

Jenkins CI and local server-job files remain in the source repository for maintainers. They are repository infrastructure, not installed runtime features; see Contributing.

Phase 2 simplification notes

Normal agent-workflow delegate output is intentionally compact: run ID, logical role, worker mode, worktree, state, idempotency/worktree indicators, and next actions. Use agent-workflow agent-run status RUN or agent-workflow agent context RUN when detailed durable state is actually needed rather than paying that context cost on every delegation.

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages