Skip to content

loops: script the deterministic lane mechanics — machine-behavior block, #502 telemetry upsert, wire script-the-deterministic-work into prompt ritual #538

Description

@kyle-sexton

Category: deterministic-work extraction · Source: control-tower gap-hunt 2026-07-19 (skill-catalog audit)

Problem — lane prompts make the model re-do pure mechanics every cycle

Standing operator principle: what needs no reasoning gets a script. Three concrete violations in the current loop prompts:

  1. MACHINE-BEHAVIOR telemetry block — every lane hand-assembles worktree root/pattern/count, clone path, gh identity, plugin versions, deviations each session. Pure environment inspection; machine-health / claude-config:audit already inspect this surface. Fix: script emits the block; prompt references the script.
  2. ops: loop-lane telemetry — running per-lane status (babysit / triage / work) #502 telemetry-comment upsert — "maintain ONE comment, EDIT in place, never post a second" needs a prompt warning against double-posting — the tell that marker-based edit-in-place belongs in a script. Folds into the WP2 telemetry contract that supersedes ops: loop-lane telemetry — running per-lane status (babysit / triage / work) #502; script is the interim.
  3. Prompt-versioning ritual never runs re-anchor:script-the-deterministic-work over loop-prompts/ — a skill exists whose whole job is finding exactly these extractions; wire it into the prompt-authoring ritual (and feat(claude-ops or session-flow): loop-prompt authoring skill — generate and maintain standing loop-lane prompts #480's future skill) so this class self-detects instead of needing an audit to spot it.

Effect

Shrinks lane prompts (context-minimalism: long prompts = micromanagement, and Fable-class models need fewer steers), removes per-cycle token spend on mechanics, and makes the outputs deterministic/testable.

Relations

#502 (interim home of the telemetry block), #480 (prompt-authoring skill = ritual home for item 3), #477-#479 (absorption umbrellas — these extractions are the script-shaped subset), #496 (context economy).

Metadata

Metadata

Assignees

Labels

priority: mediumReal value, no hard deadline; normal backlog flow.status: readyTriaged, unblocked, and fully specified; eligible to pick up.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions