XYZ Forge

How it Works

It started as a coordination kernel. It has become the loop around it: capture → rate → plan → preflight → execute → gate → land → record — with the execution layer driving headless agents through build→review turns under hard verification gates, and the operations layer carrying everything an unattended run needs around that.

Layer 1 — the tick kernel

tick coordinates agents through a shared local event log under .tick/events/:

The kernel is deliberately tiny and test-covered: bin/tick, src/, test/ in the repo, and install.sh can materialize it into any other repo.

Layer 2 — the execution layer

relay-automation/ runs agents headlessly in turns: a Producer builds an artifact, a Reviewer critiques and proposes fixes, and the loop hands off through files — a relay thread plus the artifact under review — until it converges. The Reviewer's STATUS: line drives the loop: approved/closed is terminal, anything else is another round, bounded by a round cap.

Every turn runs inside a shared containment core (relay-automation/relay-turn-lib.sh):

Layer 3 — the operations layer

Execution alone doesn't survive contact with an unattended run. Work that is under-specified, colliding, ungated, or unrecorded fails for boring reasons, so each failure mode got a durable surface — and the stages compose into one loop:

Two design commitments hold the layer together: machine-readable boundaries (state crossing a subsystem boundary travels as a schema-stamped JSON artifact, never parsed out of logs or prose) and deterministic before advisory (regex, schema, and file checks may block; LLM review may warn, rank, or propose but never block).

Marathon — chaining relays unattended

A marathon chains several build→review phases from a MARATHON.yaml plan:

Where concurrency actually lives

Phases inside one plan are serial on purpose. Real parallelism exists across runners and sessions:

The execution model in one ladder

TermScopeDefinition
TurnAgentA single bounded headless invocation of a builder or reviewer.
RelayProductThe iterative builder→reviewer handoff loop until a verified gate pass or halt.
PhaseMarathonOne discrete step in a MARATHON.yaml — strictly sequential per runner.
LaneWorkflowAn autonomous pipeline dedicated to one issue or task.
WavePlannerA batch of independent lanes with disjoint write-sets and respected zone caps.
MarathonAutomationThe orchestrator executing a plan's phases on a branch.
SwarmArchitectureMultiple independent agents or runners working concurrently across separate clones.

Quality assurance & verification architecture: two-tier review

XYZ Forge treats code and repository quality as a top priority. Quality assurance is divided into two decoupled tiers so that fine-grained code correctness and macro system delivery are both rigorously verified:

How “done” is defined

XYZ separates a claim from evidence: an uncommitted run artifact is not proof. Gates are real commands that must pass on the final state; a passing assertion counts only once it has been seen to fail on a mutated input; and every phase boundary, escalation, and approval is recorded as events you can audit after the fact.