loop.yaml

Created about 13 hours ago

attributes
source_urlhttps://github.com/ksimback/looper/blob/8a9b7981c212fcbcc4cfeb3cfde5d2bbac8cbb55/templates/loop.yaml
version: 1
meta:
  name: ai-workflow-mapping
  description: Map a manual workflow into a checkable agent design.
  author: ksimback
  created: 2026-06-18

goal:
  statement: >
    Produce an agent workflow map that converts the current manual process into
    a stepwise agent design with tool calls, handoffs, and human checkpoints.
  context_sources:
    - file: ./inputs/process-notes.md
  definition_of_done: >
    LOOP.md and an ASCII flow preview exist, every step has a tool, model, or
    human owner, and no step is left as TBD.
  verification:
    - id: required-sections
      type: programmatic
      check: ["python", "scripts/check-loop-doc.py", "loop-workspace/delivery-1.md"]
      expect: exit_zero
    - id: covers-goal
      type: judge
      rubric: >
        Every part of the goal statement is addressed; each workflow step has
        an owner; no step depends on information the loop never gathers.
    - id: user-signoff
      type: human
      prompt: "Confirm the workflow map matches the real process."

host:
  cli: codex
  model: gpt-5
  invoke: ["codex", "exec", "--model", "gpt-5"]
  timeout_sec: 600

council:
  - id: reviewer-1
    role: judge
    cli: claude
    model: default
    invoke: ["claude", "-p"]
    timeout_sec: 600
    scope: [plan, delivery]
    local: false

gates:
  plan_gate:
    when: after_plan
    members: [reviewer-1]
    verdict_policy: revise_until_clean
    verdict_source: reviewer-1
    criteria: [covers-goal]
    max_revisions: 3
  delivery_gate:
    when: after_each_delivery
    members: [reviewer-1]
    verdict_policy: revise_until_clean
    verdict_source: reviewer-1
    criteria: [required-sections, covers-goal]
    max_revisions: 3

loop_control:
  max_iterations: 12
  budget:
    usd: 5.0
    tokens: 2000000
    wall_clock_min: 30
  no_progress:
    max_stalled_iterations: 2
    signals:
      - same blocking issue repeats
      - delivery artifact has no material change
      - verifier output is unchanged
    action: stop
  human_checkpoints: []
  stop_conditions:
    - all deliveries pass their gate clean
    - max_iterations reached
    - same blocker repeats for 2 iterations
    - any budget cap exceeded

execution:
  mode: in_session
  isolation: current_workspace
  side_effects:
    requires_approval: true
    duplicate_action_check: true

observability:
  state_file: state.json
  run_log: run-log.md
  checkpoint_granularity: gate

privacy:
  egress:
    - to: reviewer-1
      sends: [plan, deliveries]
      redact: [".env", ".env.*", "secrets/**", "**/*.key"]
      consent: required

workspace:
  dir: ./loop-workspace
  layout: [plan.md, "delivery-{n}.md", "review-{n}.md", state.json, run-log.md]

Copyright (c) 2026 Kevin Simback License files are attached. MIT

MIT notice

MIT License

Copyright (c) 2026 Kevin Simback

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.