# Nj Supervise

Brief and verify delegated workers to ensure they are actually working. Provides checks for four common failures, including drift, undercount, corruption, and estimate discipline. Use when spawning subagents or teammates for batch processing tasks.

**Canonical URL:** https://skillshunter.net/skills/discovered-2b1b9b5b56f2890c77ddc1efae508879976bfd09f9ccb899

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-2b1b9b5b56f2890c77ddc1efae508879976bfd09f9ccb899

**Markdown URL:** https://skillshunter.net/skills/discovered-2b1b9b5b56f2890c77ddc1efae508879976bfd09f9ccb899.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-2b1b9b5b56f2890c77ddc1efae508879976bfd09f9ccb899/download

**Category:** Software & Development

**Source URL:** https://github.com/NJ-Burrito/NJ-Kit/blob/2644ffdccb94c9eb0a65b23624abe9795e005faa/nj-plugin/skills/nj-supervise/SKILL.md

**Source commit:** 2644ffdccb94c9eb0a65b23624abe9795e005faa

**Listing approved at:** 2026-11-29

**Created at:** 2026-11-28T18:52:12.000000Z

**Updated at:** 2026-11-29T10:53:39.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Before using, ensure named write paths are claimed at runtime with `relay.py claim` and that output files are written atomically. The first deliverable is a script run at the wake event, which checks liveness via mtime of the output file.

### When to use it

- Verify that delegated workers are processing units correctly during audits or migrations
- Detect silent failures such as zero findings returned when expected
- Ensure atomic writes to prevent corruption of shared scripts
- Track estimate discipline and detect slippage in time estimates

## Skill instructions

---
name: nj-supervise
description: How to brief a delegated worker and how to know it is actually working. Use whenever spawning subagents or teammates for a batch of units - audits, sweeps, per-service fixes, migrations, any fan-out. Covers the brief's mandatory clauses, the four checks that detect parking/drift/undercount, and the director's own estimate discipline. Triggers - delegate this, run workers on each X, fan out, how do I know the agent is working, worker KPI, the agent says running but nothing happens, my estimate slipped.
---

# Supervising delegated workers

Derived from one measured session (PROJ, 2026-09-20, 9 Sonnet workers, 46 videos),
then attacked by `nj-kit:nj-devil` and grounded by `nj-researcher`. It exists so the
same four failures are not rediscovered per project.

## The four failures this prevents

Every one was invisible in the worker's own report and visible on disk.

| # | What happened | Cost |
|---|---|---|
| P1 | Two workers ended turns with a backgrounded job; reported "running" while output mtime was frozen | ~20 min each, the largest single loss |
| P2 | A worker returned **0** findings for a unit whose real answer was **47** — a hardcoded path silently excluded everything before scoring | Would have shipped a clean bill on a broken unit |
| P3 | A worker edited the **shared** script other live workers were reading | Corrupts a whole batch, not one unit |
| P4 | The director estimated 20 min off a 1-unit pilot; actual 90 min, and never volunteered the slip | User had to ask five times |

Sits under `nj-delegate` §0 (NJ Governance v4): the Lead decides and spends turns on
receipts, not on progress; Sonnet leads supervise their own Haiku helpers the same way.
Everything below is **deterministic supervision** — artefact checks a script can run — which v4
keeps and encourages; what it bans is waking the Lead to interpret "still running", and any
cron watchdog or monitor polling. Named write paths are claimed at runtime (`relay.py claim`)
and checked across briefs (`check_governance.py --run`) (§0.6).

## Part 1 — the brief

Nine clauses. Omit one and you get the matching failure back.

1. **Named write paths.** "Your writes are limited to: `<exact paths>`. Anything
   else is drift." A worker that needs to change shared tooling gets its **own
   copy**; never the file another live worker reads. (P3)
2. **Write per unit, atomically.** "After each unit, append to your output file —
   write a temp file and rename, never edit in place." Incremental writing is
   what makes liveness checkable at all; atomic rename is what stops the race
   the incremental writing would otherwise create. (P1, P3)
3. **A stall bound, not just a total budget.** "If you produce no new output for
   `<~6x the median unit time>`, stop and report the cause." A total budget is a
   claim about the future and is unfalsifiable from a snapshot; a stall bound is
   checkable now. (Lamport 1977 on liveness; SQS visibility timeouts.)
4. **Finish inside your turn.** "Never end a turn with your own work still running. No
   background jobs of your own, no monitors, no polling." Say it, but do not trust it — see
   Part 2, check A. Saying it twice did not work. (P1) Dispatch mode is stated once, in
   `nj-delegate` §0.3a and `reference/runtime-map.md` (Sonnet leads in the background, a lead's
   Haiku helpers in one foreground batch); the worker's completion is the trigger, so this clause
   is what makes the trigger mean "done". Every brief carries the `FOCUS` line: a mid-run message
   that does not start `AMEND:` is not a task.
5. **Budgets are ceilings, never targets.** Token and tool-call limits mean
   "name the cause and stop", never "aim for this". Any effort number a worker
   knows it is scored on gets padded. (Goodhart; Campbell; Strathern 1997.)
6. **One report, at the end: a receipt of ≤ 25 lines plus the stage detail file.**
   STATUS / FINDING / EVIDENCE / FILES-SYMBOLS / RISK / NEXT ACTION and a CHANGED
   list from `git status`, in the final message; everything else goes in the detail
   file the brief's RESUME line names, and no other report file. Plus: **a positive
   sample before any sweep** — prove the method reproduces one known-true case
   before spending the batch on it.
7. **Hierarchy, not delegation.** Sonnet lead: "You may brief Haiku helpers only (never a Sonnet or
   Opus agent), in ONE foreground batch; with `ITEMS` >= 6 you must brief at least HELPERS_REQUIRED;
   read every helper receipt before your one report." Haiku helper: "You have no `Agent` tool and
   never spawn, brief or instruct anyone; write one report file and stop." The clause texts are
   `HIERARCHY:` in `nj-delegate/templates/worker-brief.md` and `NO_SPAWN:` in `helper-brief.md`.
   The gates are `check_governance.py --brief` (exactly one clause, matching the model) and
   `relay.py verify` over the spawn log (illegal nesting, helpers required); the receipt's
   `helpers_spawned` is a claim the log must match.
8. **Graded facts, and the right to refuse one.** Every factual claim in the brief is `[V]`
   (cited), `[A]` (falsifiable inference) or `[U]` (to establish). "If a `[V]` claim is false,
   reply `CHALLENGE: <claim> — <counter-evidence>` and stop that line; you are never obliged to
   disprove an `[A]`." This is clause 8 because of a measured failure: on 2026-09-20 a Lead
   wrote an inference as a verified fact and a worker burned a whole pass disproving it. A
   supervision standard that only watches workers will never catch that one.
9. **Rules by path, changed in every brief.** The brief names the rule file; it does not restate
   it. A rule change goes to every shared brief and every running worker (`AMEND:`) before any new
   dispatch. Credentials are never written to disk; deletions go through `nj-safe-delete`. Full protocol:
   `nj-delegate/templates/worker-brief.md` § "Rule changes, secrets, deletions". (2026-10-12 lessons 1, 16)

## Part 2 — the checks

Four, against artefacts, in one command. **When:** once, at the wake event
(worker complete, blocker, stall timeout) — never as a periodic Lead turn. If
liveness is in doubt at the wake, check A is one script run once; v4 has no cron watchdog and no
monitor polling.

**A. Liveness — mtime.** `stat -c %y` each worker's output file, once, at the wake.
No write within the stall bound = parked, whatever the worker says.
This is the only available proxy for a worker being alive: unlike an OTP
process, an LLM worker emits no death signal, so absence-of-artefact is all
there is — which is exactly why clause 3 must give it a bound to compare to.

**B. Scope — file list.** At report time, list what the worker actually wrote
and compare to its named paths. One `ls`. Do not try to infer drift from
effort signals; those are gameable, a file list is not.

**C. Sibling deviation, both directions.** A unit whose output is far from its
siblings' is a bug until explained — and **zero is only the loudest case**.
P2 was caught at 0-vs-47; a 12-vs-47 would have shipped. Ask for the cause,
not a re-run.

**D. Read one gate line, not the report.** Artefact-based: value is earned at a
checkable artefact — a passing gate, a delivered file, a row count — never at a
worker's narrative of its own progress.

**What is deliberately NOT a check:** tokens-per-unit, calls-per-unit, or rows-
per-unit against the batch median. At n=2–4 workers the "median" is one raw data
point, and unit sizes differ 10x; today's two legitimate workers (6.9k vs 14.1k
tokens/unit) already trip a 2x rule. Below ~8–10 samples use a fixed ceiling,
not a statistical outlier test.

## Part 3 — the director's own discipline

The checks above watch workers. These watch the director, which is where P4 lived.

- **A 1-unit pilot is an n=1 inside-view estimate.** Say so when giving it.
  Re-forecast from the median of *completed* units as they land, and keep the
  class comparable — do not mix blocked units and clean units in one median.
- **Announce a slip unprompted, at the first missed mark**, with the cause.
  "The estimate is void because both workers were parked" is a report;
  waiting to be asked is not.
- **Measure progress by artefacts, not by whether agents are alive.**
  "Still running" is not progress. Rows on disk are.
- **Reach for the cheapest instrument that answers the question.** Check what the
  pipeline already records before rendering, decoding or re-running anything.
  In the source session, ~70 min of video decode was spent to infer what the
  build's own checkpoint files already stated; every finding that survived came
  from JSON and audio reads that took seconds.

## The brief itself

Use `nj-delegate/templates/worker-brief.md`: it carries all nine clauses as gated
fields (`check_governance.py --brief`). Clause 2 (write per unit, atomically) goes in
its RESUME line; the positive sample (clause 6) goes in GATES. There is no second
skeleton here on purpose — two skeletons drifted apart once (prompt audit, 2026-09-29).

## Sources

`nj-researcher` checkpoint, 2026-09-20: Lamport (liveness/safety, 1977); SQS
visibility-timeout and dead-letter practice; Erlang/OTP supervision trees (noted
as *not* transferring — no death signal from an LLM worker); Goodhart/Campbell,
Strathern 1997; Flyvbjerg on reference-class forecasting and the planning
fallacy; small-sample limits of median/MAD (derived, not cited). Adversarial
pass: `nj-kit:nj-devil`, same date — it is what removed the three effort metrics
and forced the director section.

