Skip to main content
Glama

ck_loop

Create and govern bounded iterative loops with verifier path freezing, artifact classification, and multiple stop conditions. Supports create, record, status, stop, and promote modes.

Instructions

Create and govern a bounded iterative loop without executing worker code. The contract freezes verifier paths and hashes, separates mutable paths, classifies artifact longevity, and enforces metric, iteration, cost, duration, no-progress, blocked-finding, and lasting-code architecture stop conditions. Modes: create, record, status, stop, promote. Rejected iterations require an explicit audited rollback.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo
reasonNo
targetNo
summaryNo
task_idYes
directionNo
iterationNo
mechanismNo
review_idNo
call_graphNo
cost_centsNo
hypothesisNo
session_idYes
metric_nameNo
review_riskNo
metric_valueNo
project_rootNo
changed_pathsNo
mutable_pathsNo
rollback_pathNo
artifact_classNo
diagnosis_pathNo
environment_idNo
max_cost_centsNo
max_iterationsNo
verifier_pathsNo
observed_effectNo
sandbox_adapterNo
verifier_passedNo
complexity_deltaNo
invariant_effectNo
promotion_packetNoRequired when a lasting_code iteration reaches its target. Contains citable behavior, invariant, interface, deterministic command, rollback, and documentation evidence.
semantic_changesNo
verifier_commandNo
complexity_budgetNo
no_progress_limitNo
invariant_evidenceNo
local_defense_limitNo
documentation_impactNo
invariant_boundariesNo
max_duration_secondsNo
allowed_sandbox_adaptersNo
allowed_semantic_changesNo
human_promotion_requiredNo
required_review_personasNo
maintenance_without_modelNo
forbidden_semantic_changesNo
machine_independence_evidenceNo
machine_independence_verifiedNo
require_ephemeral_environmentNo
machine_independence_requirementsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYes
task_idYes
contractYes
decisionNo
cost_centsNo
iterationsYes
session_idYes
best_metricNo
contract_idNo
stop_reasonNo
iteration_countNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aryaminus/controlkeel'

If you have feedback or need assistance with the MCP directory API, please join our Discord server