Skip to content

About

Open-source, local-first continuity-of-authority kernel for agentic work: durable policy, scoped authority, execution truth, and safe continuation across people, agents, processes, and execution frameworks.

Resources

Code of conduct

Contributing

Security policy

Stars

11 stars

Watchers

1 watching

Forks

Latest commit

 

History

1,052 Commits

Folders and files

Workflow OS

CI Release License

Workflow OS is an open-source, local-first continuity-of-authority kernel for agentic work. When the original agent, process, or conversation disappears, Workflow OS preserves what was authorized, what happened, and what another authorized executor may lawfully do next on supported paths. It sits beneath the tools that execute the work.

Agent executes. Workflow OS governs.

Missing acknowledgement is not permission to retry. Evidence, events, WorkReports, and receipts are proof of the kernel's decisions and recorded outcomes. They do not grant permission by themselves.

Agents can already write code, call tools, and change external systems. Most systems preserve context, traces, or task state. Workflow OS preserves whether the work is still legitimate to continue by keeping three operational layers connected:

  • Procedure authority: who may define, revise, activate, or retire the workflow and its policy and check requirements.
  • Invocation authority: who authorized this exact run, action, resource, execution window, and replacement executor.
  • Execution truth: what was accepted, attempted, completed, failed, denied, or externally observed, and what reconciliation remains required.

Continuity of authority is the property that keeps those layers bound across retries, interruptions, compaction, restore, and executor replacement. It determines what the next authorized executor may safely do without recreating permission from chat history.

That produces durable, bounded, and fail-closed answers to:

  • What was the agent authorized to do?
  • Which workflow, policy, and inputs governed the action?
  • What evidence and checks supported the decision?
  • Who or what approved it?
  • What side effects occurred?
  • What may happen next?

Workflow OS puts those facts in a deterministic, fail-closed kernel instead of leaving them inside prompts, chat history, model traces, or agent memory. Evidence references, events, audit records, SideEffects, and WorkReports verify and expose those bindings; they are proof surfaces of the control function, not the product category by themselves.

Evidence And Status

Status What it means
Demonstrated In an evaluator-built Codex-to-LangGraph handoff, the second harness resumed without transcript authority, denial and authority drift stopped the bounded effect, and a reviewer reconstructed the outcome. The setup used synthetic identities and a simulated ambiguous target.
Current preview scope Local repo onboarding, governed workflows and approvals, durable state, local validation and WorkReports, and explicit recovery and replay. The 0.4.0-preview.1 release is in preparation, not published.
Next bounded proof Codex to Claude Desktop, as distinct authenticated principals, with one authorized disposable effect and reconciliation after interruption without resending. Not yet accepted.
Not shipped Plug-and-play cross-harness interoperability, cross-domain delegation or federation, production hosting, general provider writes, or production nested harnesses.

In three paired scenarios with actual Codex compaction, both recovery paths made all nine decisions correctly. Providing the current kernel checkpoint used 83,857 gross tokens versus 167,470 for lookup-based recovery (49.93% fewer). An earlier four-case comparison used 72,407 versus 108,770 (33.43% fewer) and avoided two evidence lookups. These small-sample measurements have different cache conditions and do not establish universal or billed savings. The primary result was correct recovery without recreating permission from chat.

See The Kernel Work

A workflow declares ordered work, the skill or adapter used at each step, its policy requirements, and any approval boundary. This abridged example requires approval before a repository metadata read:

schema_version: workflowos.dev/v0
id: example/github-repository-metadata-fixture
version: v1
autonomy_level: level_2
steps:
  - id: read
    skill_ref:
      id: adapter/github-repository-metadata
      version: v1
    policy_requirements: [{ id: external/read }]
    approval_policy:
      policy: { id: approval/github-read }
    terminal_behavior: fail_workflow
approval_requirements:
  - id: repository-read
    reason: Approval is required before the metadata read.

The complete example includes ownership, trigger, timeout, audit, and observability declarations.

Starting an approval-gated run produces an explicit checkpoint rather than silently invoking the skill:

run_id: run-...
status: WaitingForApproval
approval_id: approval/run-.../read

After approval, workflow-os inspect <run-id> exposes the ordered history:

RunCreated -> PolicyDecisionRecorded -> ApprovalRequested -> ApprovalGranted
-> RunResumed -> SkillInvocationStarted -> SkillInvocationSucceeded
-> RunCompleted

For a qualifying low-risk local path, proportional governance can proceed without an approval interruption while still persisting the governed check result and report:

status: Completed
governance: quiet_success
report: persisted report/run-...
inspect: workflow-os inspect run-...

That is the core product loop: execution stays flexible inside a governed work envelope, while the exact authority-to-execution relationship and the next lawful action remain recoverable. Evidence posture, side-effect records, and completion claims make that continuity inspectable.

How It Works

person / agent / harness
  -> Workflow OS: intent, current authority, durable state and admission
  -> executor or enforcement substrate
  -> provider effect (where supported)
  -> Workflow OS: observation, reconciliation and proof

For each material action, Workflow OS:

  1. validates the workflow and policy;
  2. binds the run to immutable definitions and inputs;
  3. evaluates authority, checks, evidence, and approval requirements;
  4. proceeds quietly, discloses, blocks for approval, or denies;
  5. records durable events and supported side-effect outcomes; and
  6. on supported paths, produces an inspectable WorkReport and derives the next permitted action.

Workflow OS does not model every reasoning step or tool-selection edge. The agent remains free to explore inside the authorized envelope. The kernel governs the boundaries where work consumes authority, changes durable state, invokes a capability, creates a side effect, or claims completion.

The planned continuation profile requires a replacement to authenticate independently and the kernel to re-resolve authority against current facts and the exact operation. A signed record can prove history, not grant a new effect. A transcript, summary, old approval, portable envelope, or reusable provider credential is not a handoff of authority.

Why Workflow OS

Memory and traces preserve context; workflow engines preserve execution progress; sandboxes constrain runtime access. Workflow OS preserves current work authority and effect truth across replacement. These layers can compose with substrates such as Temporal and OpenShell; neither is a bundled dependency or a shipped interoperability claim.

Most agent infrastructure governs one layer of the problem:

Category What it does well What Workflow OS adds
Agent frameworks and graph orchestrators Run model loops, tools, handoffs, and durable execution A separate authority boundary that does not require every reasoning or execution edge to be encoded in a graph
Sandboxes and security runtimes Contain processes, files, networks, credentials, and tool access The work-level contract that explains why execution was authorized, which evidence was required, and what the result may claim
Action-governance runtimes and gateways Enforce identity, capability, policy, and approval around individual agent actions A repository-adoptable contract spanning declared work, immutable inputs, required evidence and checks, side-effect accounting, terminal WorkReports, and lawful continuation
Policy and authorization engines Decide whether a principal may perform an action Durable workflow identity, approval context, evidence and check obligations, side-effect records, and terminal reporting
Observability and evaluation platforms Trace, inspect, score, and debug what ran Fail-closed decisions before material actions plus an assurance-labeled record of what was approved and completed
Workflow OS Governs the complete unit of work across those layers One inspectable chain from declared intent and authority to evidence references, side-effect records, outcome, WorkReport, and next permitted action

This makes Workflow OS complementary to agent SDKs, deterministic workflow engines, policy systems, observability platforms, and sandboxes. Those systems can execute, contain, authorize, or observe individual parts of a run. Workflow OS keeps the governed work contract durable across them.

The distinction is deliberate:

  • Govern the work, not the model loop. Agents may plan and adapt without forcing every internal decision into a brittle graph.
  • Authority is not a prompt. Scope, policy, approval, and capability state live outside model context and are reassessed at material boundaries.
  • A trace is not proof of permission. Events are connected to the exact workflow, immutable inputs, checks, approvals, side-effect records, and evidence references whose assurance remains explicit.
  • Completion is a governed claim. A WorkReport records what happened, what did not happen, what remains incomplete, and what may happen next.
  • Low risk does not mean no record. Proportional governance can proceed quietly while preserving an inspectable governance and evidence-reference trail.

Build And Try It

Prerequisites

  • Rust stable
  • Node.js 20 for repository checks and SDK development

Build the current CLI from source:

git clone https://github.com/rcs2153/workflow-os.git
cd workflow-os
cargo build --release -p workflow-cli --bin workflow-os
export WORKFLOW_OS="$PWD/target/release/workflow-os"

Published preview archives and checksums are available from GitHub Releases. The current source tree may be newer than the latest published preview.

From a repository you want to govern:

cd /path/to/your-repository
"$WORKFLOW_OS" init-repo-governance --agent codex --dry-run
"$WORKFLOW_OS" init-repo-governance --agent codex
"$WORKFLOW_OS" validate
"$WORKFLOW_OS" first-run

init-repo-governance adds a local governance envelope while preserving existing unmanaged AGENTS.md content. first-run safely inspects allowlisted repository metadata and reports:

  • what governance is already configured;
  • missing ownership, checks, evidence, and side-effect decisions;
  • concrete workflow candidates for the detected repository; and
  • what Workflow OS did not inspect, execute, or change.

It does not read arbitrary source files, execute project commands, contact providers, or invent evidence.

To persist one governed local WorkReport for the bounded first-run analysis:

"$WORKFLOW_OS" first-run --write-report-artifact

This path validates the generated contract, binds the analysis to immutable run identity, executes the declared Workflow OS project-validation check, selects the required governance level, and writes one create-only report after completion. It still does not execute repository build or test commands, read arbitrary source, access the network, or create external side effects.

For a fully local approval and event-history demonstration, see the vertical-slice approval example.

What Is Implemented

  • Deterministic YAML loading and validation.
  • Sequential multi-step local workflows.
  • Immutable run inputs and approval-resume integrity.
  • Policy decisions and proof-bound approvals.
  • Durable event history, retries, escalation, cancellation, and rehydration.
  • Evidence references, side-effect records, and terminal WorkReports, with path-specific assurance and explicit local storage-owner limits.
  • Proportional governance: quiet capture, visible disclosure, approval, or denial.
  • Scoped capability, current-authority, required-context, and check models.
  • Local filesystem, SQLite continuity, and PostgreSQL state implementations.
  • Fixture-first read-only GitHub, Jira, and GitHub Actions adapters, with opt-in live reads for documented operations.
  • Narrow, explicit GitHub sandbox write paths for pull-request comments and managed draft pull requests, not general provider automation.
  • A single-tenant hosted no-write alpha and optional OpenShell boundary.

Not every Core capability is exposed through the CLI. The Current Product Contract distinguishes public execution paths from reviewed internal foundations.

Current Boundaries

Workflow OS is not an agent runtime, prompt router, agent swarm, CI system, or general automation engine. The current preview does not provide production multi-tenant hosting, enterprise identity administration, broad provider writes, arbitrary shell execution, or proof that caller-asserted work happened.

Missing handlers, unsupported authority, and ambiguous actions fail closed. A model or schema in the repository is not a runtime capability until a tested execution path enforces it.

Evidence assurance is path-specific. Content-bound dispatch proves which selected executable bytes and request were used; it does not authenticate an operator-selected executable as an official validator. Supported WorkReport stores enforce exact artifact identity and a retained complete-body commitment across accepted read, inspect, recovery, reconciliation, and replay paths. That detects report-only substitution while the local anchor remains intact; local storage still does not provide cryptographic tamper evidence against an owner who can rewrite both record and anchor. See the Current Product Contract for the exact trust boundary.

Use It With An Agent

Give the coding agent one operating instruction:

Use Workflow OS as the governing layer for this task.
Treat kernel state, not conversation history, as authoritative.
Execute only the work currently authorized by the kernel.
Do not bypass validation, policy, approval, evidence, check, or scope failures.
At closure, report checks, evidence, side effects, incomplete work, and the
kernel-authorized next action.

The agent still edits files and uses ordinary tools unless a reviewed Workflow OS handler owns that execution. Workflow OS governs the work; an instruction file alone does not give the kernel control of the agent.

Read Next

Repository

crates/workflow-core/    canonical Rust kernel
crates/workflow-cli/     local CLI and onboarding
crates/workflow-hosted/  single-tenant hosted alpha
packages/sdk-typescript/ spec-authoring helpers
examples/                portable evaluation projects
dogfood/                 this repository's governed workflows
docs/                    contracts, architecture, plans, and reports

The dogfood/ workflows govern development of Workflow OS itself. They are reference implementations, not defaults installed into downstream projects.

Develop

Building the locked Rust workspace, including native Python bindings, requires Rust 1.89 or newer. Native release packaging retains its separately pinned toolchain and bundles SQLite; it does not depend on the system SQLite version.

cargo fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
npm ci
npm run check
npm run check:integrations

See CONTRIBUTING.md and SECURITY.md before opening a change or reporting a vulnerability.

License

Apache License 2.0. See LICENSE.

About

Open-source, local-first continuity-of-authority kernel for agentic work: durable policy, scoped authority, execution truth, and safe continuation across people, agents, processes, and execution frameworks.

Resources

Code of conduct

Contributing

Security policy

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages