AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Loop Orchestration

skill-runxhq-runx-loop-orchestration · by runxhq

Reference loop-orchestration example; a local loop host chains governed runx turns through receipts, budgets, context, and stop policy.

No reviews yet
0 installs
24 views
0.0% view→install

Install

$ agentstack add skill-runxhq-runx-loop-orchestration

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-runxhq-runx-loop-orchestration)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Loop Orchestration? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Loop Orchestration

This example shows the runx pattern for long-running agent work:

  1. An outer loop host decides whether work should continue.
  2. Each iteration submits one normal governed runx turn.
  3. Each turn seals a receipt before the loop can advance.
  4. The next turn consumes only explicit inputs, projection state, and receipt

summaries.

Nothing in this example adds a loop engine to runx-core. The loop host is just an application script. In production it could be a hosted service, Temporal workflow, LangGraph app, n8n workflow, or another orchestrator.

Run It

sh examples/loop-orchestration/run.sh

The script runs three demonstrations:

  • success: two governed turns complete a tiny build-review loop;
  • refusal: a requested tool is outside the loop policy, so the loop stops

before another turn is submitted;

  • context gate: an agent-task turn pauses with digest-bound skill context

and explicit allowed_tools, showing what a host or managed provider would receive without requiring a model key.

The output prints each run id, receipt id, decision, and next-turn reason.

Check The Harness

For the repeatable inline harness, use a fresh receipt store and the demo signing identity. A clean store avoids mixing receipts signed by different local test issuers.

tmpdir="$(mktemp -d)"
RUNX_RECEIPT_SIGN_KID=runx-demo-key \
RUNX_RECEIPT_SIGN_ED25519_SEED_BASE64=QkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkI= \
RUNX_RECEIPT_SIGN_ISSUER_TYPE=hosted \
"${RUNX_BIN:-crates/target/debug/runx}" harness examples/loop-orchestration \
  --receipt-dir "$tmpdir" \
  --json

What This Proves

The important boundary is not the Node script. It is the contract:

  • A loop owns scheduling, durable loop state, projection, and stop policy.
  • A turn is one runx skill/graph run with explicit authority and one sealed

receipt.

  • A handoff is an artifact/result the loop host can inspect; it is not

hidden prompt continuation.

  • A projection is derived from receipts and admitted signals, not from

ambient memory.

Security Rules

  • The loop has a max-turn budget.
  • The turn runner receives only declared inputs.
  • Tool choices are checked against loop policy before another turn is allowed.
  • Context skills are advisory, digest-bound, and untrusted.
  • A pause or refusal is a healthy result; the loop does not keep prompting until

it gets the answer it wants.

Adapting The Example

Replace loop/loop-host.mjs with your real orchestrator and keep the same shape:

load projection -> submit runx turn -> read receipt/result -> check stop policy

Do not move product-specific scheduling or state into the kernel. If a loop needs to wake up later, persist the loop state in the host and submit another runx turn when policy allows.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.