Looper cron builder

From weiyangzen/b3ehive · View interactive version

Looper cron builder is an AI agent skill from the GitHub repository weiyangzen/b3ehive. Defines an optional external loop layer that sets granularity and governs repeated attempts with leases, side-effect gates, reward and ROI ledgers. Use when a loop must attach to an item, metric, or surface, or when several loops share a budget. 循环、粒度、预算、ROI。

How to use this skill

Skill file

Looper

For a user-facing choice guide, read docs/skill-selection.md. Use this skill

when an explicit external loop must set granularity or govern shared resources.

The smallest work unit is normally internal to the selected skill.

core v2 · owner of loop v2. Read references/core.md, then loop.md.

Looper has two layers. It owns loop.md, the shared attempt-loop definition

that the other four skills bind by name. The looper-cron-builder skill is an

optional external definition: it attaches a loop to an item, metric, or surface

and sets its granularity, budget, and governance. A small internal loop can use

loop.md without a separately named looper definition.

Objects

| Object | Holds |

|---|---|

| Loop | target (item, metric, or surface), oracle, budget envelope, attachment point |

| Lease | budget slice for one attempt: tokens, time, money, disk, diff size, TTL, heartbeat, owner, workspace |

| Attempt | hypothesis, direction, shape, receipt, result (loop v2 vocabulary) |

| Evidence row | changed paths, commands, results, side-effect decisions, nested-run refs, reward class |

| Decision | continue, replan, pause, split, lower, raise, escalate, or retire |

| Friction note | instrument, effect (helped, blocked, wasted, under-validated), evidence, suggestion |

Field schemas, bridge levels, signal types, and the full ledger set live in

references/schemas.md. Use them when a loop needs them; omit the rest.

Governance

new ones.

resume, replan. cancel, drain, and pause block new leases.

delete or broad write, protected or authoritative paths, secret exposure,

identity-level writes. Ordinary reads and owned-path edits pass ungated.

refill.

envelope, not each daemon, caps global concurrency.

counter; secondary reward lowers it; negative or empty output raises it.

classifies reward.

when the replan obligation is still open at the third stall.

keys absent from the loop's history lowers the no-reward counter; a replayed

or renamed claim does not.

lease; record the no-spend closeout.

Workflow

  1. Inspect the repository: bridge targets, metrics, DAG nodes, oracles,

resource limits.

  1. Write sanitized loop specs to Docs/looper/; keep private names, paths, and

ledgers under ignored .b3ehive/looper/ and .cron/.

  1. Generate the broker, lease allocator, gate evaluator, signal reader, daemon

runner, ledgers, ROI accountant, space guard, installer, and cleanup.

  1. Run VALIDATE_ONLY=1, then one manual tick on a tiny envelope.
  2. Install cron after validate-only, the manual tick, the budget guard, and the

privacy scan pass.

  1. Clean up only with no live lease, no unaccounted attempt, no unfinished

nested run, no open attached item, and no pending signal.

Validation

monitoring source.

absolute paths in committed files.

Ablation

B3_LOOP=full|single|null swaps the loop variant for every skill at once.

B3_LOOPER_GOVERNANCE=off runs loops on their leases alone. Evaluations in

evals/ compare both switches; the loop keeps its own version number.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.