dev-loops · v1

The State Graph Is the Surface

Delivery handoffs can lose context, hide waits, and carry approvals based on stale evidence. dev-loops makes each handoff an explicit state with one legal next move.

The graph preserves policy. The loop keeps returning to current evidence.
01 / 12

The landscape

Three ideas converge

01

Ralph loops

Persistence across bounded runs, backed by durable artifacts.

02

Evaluated loops

Selection pressure through measurable outcomes and keep-or-revert decisions.

03

Graph engineering

Explicit branches, waits, cycles, and boundaries between policy and judgment.

dev-loops composes these ideas around authoritative modeled state.
02 / 12

The reframe

The graph follows the work. The current state determines who can move it forward.

authoritative facts
→
modeled state
→
legal action
→
new evidence

↖──────────────── refresh from the world ────────────────↙

03 / 12

The public contract

Five dimensions compile the surface

DimensionQuestionWhat it unlocks
targetWhich artifact is active?Stable identity
ownershipWho carries durable responsibility?Strategy family
nextActorWho should act now?Concrete handoff
statusActive, waiting, blocked, approval-ready, merge-ready, done?Route, wait, or stop
authorizationIs this mutation authorized?Safe boundary
Start, continue, inspect, steer, wait, approve, and merge are projections over this model.
04 / 12

Composition

One surface, nested graphs

Public graph

Operator meaning

  • artifact and ownership
  • status and authorization
  • next visible action
Lifecycle graph

Change progression

  • intake and refinement
  • implementation and gates
  • approval and merge
Inner graphs

Focused mechanics

  • review and fix cycles
  • CI and external waits
  • UI evidence capture
The conductor joins these machines through narrow contracts and refreshes their interpreted state at every boundary.
05 / 12

Delivery progression

Clean evidence still meets human authority

intake
→
refine
→
implement
→
draft gate
→
feedback
→
pre-approval
human approval
→
merge authorization
→
merge
Findings and changed evidence route back to implementation or feedback resolution. A clean gate never grants merge authority by itself.
06 / 12

A single cycle

Observe. Resolve. Act once. Refresh.

1

Observe

Read the artifact, head, checks, threads, ownership, and approvals.

2

Resolve

Interpret one state and its allowed transitions.

3

Act

Execute one bounded mutation or wait.

4

Refresh

Rebuild truth before choosing again.

A fresh session can continue because durable facts carry the workflow forward.
07 / 12

The v1 backend boundary

One tracker seam; one GitHub-coupled PR plane

Provider seam

Issues and board / queue

The stable Tracker interface supports a registered provider. GitHub ships as the built-in default.

GitHub-coupled

Pull requests and delivery evidence

PRs, review threads, CI, Copilot review, head SHAs, and merge truth use GitHub in v1.

A future non-GitHub PR host needs its own independent seam.
08 / 12

Responsibility

Policy, judgment, and authority each have a home

Deterministic code

  • normalizes facts
  • enforces transitions
  • checks current-head evidence
  • fails closed

Agents

  • refine and explore
  • implement and diagnose
  • review through focused lenses
  • explain trade-offs

Humans

  • resolve ambiguity
  • set policy
  • approve risk
  • authorize merge
09 / 12

Applicability

The change lifecycle spans greenfield and brownfield

Greenfield
  • new plan or tracker item
  • architecture established during refinement
  • tests and implementation grow together
Brownfield
  • existing behavior and history enter the evidence bundle
  • compatibility and migration constrain the solution
  • regression and contract gates grow stronger
Portability beyond this bootstrap repository is not yet established: the planned second-repository pilot has not started, and repeated external runs remain required future evidence.
10 / 12

Learning

Two loops improve different horizons

Current change

Operational correction

state
→
act
→
verify

Findings return the change to another bounded cycle.

Future changes

Workflow learning

trace
→
decision
→
contract + test

Retrospectives and escaped defects harden later runs.

An evaluated meta-loop can compare candidate graph versions on correctness, review burden, latency, cost, and policy violations.
11 / 12

Takeaway

The state graph preserves authority across worker and evidence changes, and every loop returns to it.

Durable

Facts survive sessions.

Explainable

Every route has a reason.

Governed

Human authority remains explicit.

12 / 12