← Catalog

@4242labs/pi-tron-clu

TRON-CLU for Pi — a supervisor extension that drives a fleet of Pi seats through a build/review/merge pipeline.

Extension

Install

Install with PiG

pig install npm:@4242labs/pi-tron-clu

Install with Pi

pi install npm:@4242labs/pi-tron-clu
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.1 (README.md). PiG does not review it.

@4242labs/pi-tron-clu

Project Status: WIP Maintenance License: Apache-2.0 npm

TRON-CLU for Pi — a supervisor extension that drives a fleet of Pi seats through a build → review → merge pipeline, one block at a time, and stops at every merge to ask you.

A terminal session: a mandate of three blocks is started; the first block is built, gated and reviewed by agent seats; then the run stops and waits for the operator to approve the merge.

Pre-v1. The driver, the seats, the law and the memory adapter are built and tested, and one three-block pilot has run end to end on a private sandbox. Seats are not contained yet — see docs/containerization.md before pointing it at work you care about.

What it does

You give CLU a mandate: an ordered list of blocks. Each block is a task, a branch, and a set of acceptance criteria — where every criterion carries the command that decides it, so "done" is never a judgement call.

For each block, in order:

  1. a worker seat builds it in its own git worktree and commits;
  2. the gates run in a fresh detached checkout of what was committed — never in the worker's live worktree, so uncommitted work cannot reach a gate;
  3. a reviewer seat reads the diff, the evidence, and the protected paths the change touched, and returns APPROVED or REJECTED with its reasons;
  4. the branch is pushed and the run parks. Nothing merges until you say so.

A rejection sends the block back to the same worker seat with the reviewer's own words as its brief. A wall the driver cannot clear — a retry cap, a spent budget, a block file edited underneath it — parks an escalation with a fixed set of answers, and waits.

The one rule

A seat never lands work. That is held three ways, in order of strength: the tool allowlist Pi enforces from the parent process, the parked merge that no code path can clear, and a pattern-matching deny extension that is bypassable and documented as such. docs/law.md states exactly where each stops working, and which one is load-bearing (it is you).

Install

pi install npm:@4242labs/pi-tron-clu

Then, in a Pi session at the root of a git repository:

/tron-clu init                 # gates, branch, merge strategy — written to .pi/tron-clu.json
/tron-clu ./blocks/mandate.json # start a mandate
/tron-clu status               # where it is
/tron-clu approve <block>      # the merge. TUI only, always
/tron-clu reject <block> <why>
/tron-clu answer <item> <choice>

approve, reject, answer and starting a mandate are TUI-only: there is no programmatic path to starting a run or approving a merge.

A block

{
  "id": "b1-titlecase",
  "task": "Add a titleCase function to src/kit.js and export it…",
  "reviewerClass": "code",
  "acceptance": [
    { "criterion": "titleCase is exported", "verify": "node -e \"…\"" },
    { "criterion": "the whole suite passes", "verify": "npm test" }
  ]
}

A criterion with no verify command is refused: a criterion no command can check is not a criterion. So is an unknown field — a typo is a reason not to run.

What it does not do

  • It does not decide. No timeout resolves a merge or an escalation. Silence keeps a run parked forever, on purpose.
  • It does not contain its seats. A worker seat has bash, and bash reaches the network and the filesystem. See docs/containerization.md — evaluated, deferred, with the conditions for adopting it named.
  • It does not run seats in parallel. One block at a time, in the mandate's order.

Documentation

(blank)(blank)
docs/law.mdwhat a seat cannot do, and where that stops being a guarantee
docs/drills.mdevery failure this design claims to survive, and the test that proves it
docs/pi-api.mdthe verified Pi contract this is built against
docs/memento-adapter.mdwhat the supervisor remembers, and what it must not
docs/containerization.mdseat containment: evaluated and deferred
docs/publishing.mdhow this reaches npm and Pi's gallery

Requirements

  • pi 0.84.1 or later (the verified baseline)
  • git 2.5+ (worktrees)
  • gh, for the pr and squash merge strategies

License

Open source — Apache-2.0.


If it earned its keep, coffee is appreciated. ☕