Discussion: Deterministic workflow state around Compound Engineering
I've been exploring a few operational problems that emerged for me when using Compound Engineering across longer-running development work and multiple AI coding hosts.
The individual Compound Engineering skills work well, but over time I found myself needing a layer around the workflow to keep three things consistent:
Workflow state across sessions — agent sessions are ephemeral, context gets compacted, and workflow progress can otherwise become implicit in chat history.
Compound Engineering installations across coding hosts — when working with multiple hosts, I wanted a consistent way to install, update, synchronize, and detect drift in the Compound Engineering assets they consume.
The project knowledge generated by the engineering process itself — specifications, plans, solutions, decisions, and guidance accumulate as development progresses. That knowledge is valuable, but it can also become stale, duplicated, contradictory, or simply turn into another form of technical debt.
These looked like separate tooling problems at first, but I've increasingly found them to be aspects of the same underlying problem:
How do we keep the engineering system surrounding probabilistic agent execution consistent over time?
That led me to a distinction I've been experimenting with:
Agent execution can remain probabilistic while workflow state, operational contracts, and project knowledge can be governed deterministically.
The approach I built
To explore this, I built CE-AI:
https://github.com/mastepanoski/ce-ai
CE-AI is an open-source workflow orchestration and governance layer around Compound Engineering.
It doesn't replace or fork Compound Engineering, and it doesn't attempt to orchestrate the agents themselves.
Instead, Compound Engineering remains the source of the engineering skills and workflow methodology, while CE-AI focuses on the operational consistency surrounding that workflow.
Conceptually:
Compound Engineering
skills + engineering workflow
│
▼
CE-AI
operational workflow governance
│
┌────────────┼────────────┐
▼ ▼ ▼
Workflow state Host sync Project knowledge
│ │ │
└────────────┼────────────┘
▼
AI coding hostsWhat CE-AI currently explores
Workflow continuity
CE-AI maintains explicit workflow state through a stage-gated FSM, validates stage transitions, creates checkpoints, and reconciles persisted state with repository reality when work resumes.
The intention isn't to make agent behavior deterministic. An agent can still reason differently or produce different implementations between runs.
The deterministic part is the bookkeeping and contracts surrounding that execution.
Multi-host consistency
CE-AI can install and synchronize Compound Engineering assets across supported coding hosts and audit them for drift.
This came from a practical problem: once the same engineering workflow is used from multiple hosts, keeping those environments aligned becomes another state-management problem.
Project knowledge and documentation debt
Compound Engineering intentionally creates durable engineering knowledge: plans, specifications, solved problems, decisions, and guidance.
I've found that this creates a second-order problem worth addressing: the artifacts that help agents maintain context can themselves accumulate debt.
Documentation can become stale relative to the implementation, overlapping documents can diverge, old decisions can remain discoverable after they are no longer valid, and generated guidance can gradually stop representing repository reality.
CE-AI therefore also experiments with documentation hygiene as part of workflow governance rather than treating documentation as write-only output.
The broader idea is that compounding knowledge only remains useful if that knowledge remains trustworthy.
Why I'm sharing this here
I'm not proposing that CE-AI become part of the Compound Engineering plugin.
CE-AI is the implementation I built to explore these problems. I'm more interested in whether the boundaries themselves make sense from the Compound Engineering maintainers' perspective.
In particular:
Does separating probabilistic agent execution from deterministic workflow/operational state fit the way you think about Compound Engineering?
Is synchronization and drift management across coding hosts intentionally a responsibility of external tooling, or does Compound Engineering intend to own more of that lifecycle?
How do you think about documentation/knowledge debt as Compound Engineering continuously produces durable artifacts?
Are there responsibilities here that CE-AI is duplicating—or that Compound Engineering already plans to address?
If an external governance layer around Compound Engineering is a reasonable boundary, are there stable integration points it should rely on rather than coupling to internal plugin structure?
I'm especially interested in criticism of this model. CE-AI is the solution I built because I encountered these problems; whether these are the right architectural boundaries is what I'd most value feedback on.
Repository: https://github.com/mastepanoski/ce-ai
Source: EveryInc/compound-engineering-plugin