2026-11-03 13:21:46 +01:00
|
|
|
---
|
|
|
|
|
name: kvb-org-operator
|
|
|
|
|
description: >
|
|
|
|
|
List every command only the operator can run: pushes, installs, settings
|
2026-11-03 23:43:30 +01:00
|
|
|
and sandbox-blocked steps of all agents. Trigger on "was muss ich tun".
|
2026-11-03 13:21:46 +01:00
|
|
|
---
|
|
|
|
|
|
2026-11-04 00:02:16 +01:00
|
|
|
Every step that waits on a human, across all agents, is a task
|
|
|
|
|
`operator/<slug>` of the `kvb-org-rasci` register with a test for when it is
|
|
|
|
|
done. `${CLAUDE_SKILL_DIR}/scripts/operator.py` writes and reads those rows,
|
|
|
|
|
so collecting them needs no messages.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
operator.py add <slug> --dir <abs dir> --command "<cmd>" --reason "<why>" --check <kind>[:<arg>]
|
|
|
|
|
operator.py list [--json]
|
2026-11-04 12:44:47 +01:00
|
|
|
operator.py run
|
2026-11-04 00:02:16 +01:00
|
|
|
operator.py done <slug>
|
|
|
|
|
```
|
2026-11-03 13:21:46 +01:00
|
|
|
|
|
|
|
|
## What counts
|
|
|
|
|
|
|
|
|
|
Checked against the live settings and agent rules, never from memory:
|
|
|
|
|
|
|
|
|
|
- **Denied or ask**: the command matches a `permissions.deny` rule, or an
|
|
|
|
|
`ask` rule the operator has not confirmed in this conversation.
|
|
|
|
|
- **Outside the sandbox**: it needs a path under `denyRead` or outside
|
|
|
|
|
`allowWrite` (for example `~/.ssh`, `~/.gnupg`, `~/.claude/settings.json`),
|
|
|
|
|
a host outside `allowedDomains`, or root.
|
|
|
|
|
- **Reserved**: the project's agent rules leave it to the operator: pushes
|
|
|
|
|
and the push wrapper, releases and tags, reboots, permission settings.
|
|
|
|
|
- **Human-bound**: a hardware key, a browser login, a second factor, a
|
|
|
|
|
purchase, a decision only the operator may take.
|
|
|
|
|
|
2026-11-04 00:02:16 +01:00
|
|
|
## Record: every agent, the moment a step arises
|
2026-11-03 13:21:46 +01:00
|
|
|
|
2026-11-04 00:02:16 +01:00
|
|
|
When one of your steps stops for a reason above, run `operator.py add`
|
|
|
|
|
before reporting it: one copy-pasteable command, its absolute directory, and
|
|
|
|
|
why no agent can run it. The row gets the operator as R, your session as A,
|
2026-11-04 12:44:47 +01:00
|
|
|
status `queued`. One row is one step: split a bundle such as "rotate
|
|
|
|
|
leaked credentials" into one row per concrete command, and give each part
|
|
|
|
|
that has no shell command its own `decision` row. Pick its check from
|
|
|
|
|
`checks.md` next to this file: the strongest kind that proves the step done,
|
|
|
|
|
never a shell command.
|
2026-11-03 13:21:46 +01:00
|
|
|
|
2026-11-04 00:02:16 +01:00
|
|
|
## Print: on invocation
|
2026-11-03 13:21:46 +01:00
|
|
|
|
2026-11-04 00:02:16 +01:00
|
|
|
Add this session's own pending steps first, then run `operator.py list` and
|
|
|
|
|
print its output unchanged. It sets every `queued` or `blocked` row whose
|
|
|
|
|
check passes to `done`, then prints the open ones as a table in dependency
|
2026-11-04 12:44:47 +01:00
|
|
|
order (commits, pushes, installs, binaries, removals, manual steps), one
|
|
|
|
|
`bash` block per step, and a last block with `operator.py run`. Once the
|
|
|
|
|
operator reports a `manual` step done, run `operator.py done <slug>`.
|
2026-11-03 13:21:46 +01:00
|
|
|
|
2026-11-04 12:44:47 +01:00
|
|
|
`run` is the operator's script, never an agent's: per step it shows
|
|
|
|
|
directory, command, reason, check and a preview of the change (commits and
|
|
|
|
|
diffstat to push, files an install changes, what a removal deletes, the
|
|
|
|
|
repository state), and runs the command only on `y`; `d` shows the full
|
|
|
|
|
diff, `s` skips, `q` stops. Nothing answers for the operator.
|
2026-11-03 13:21:46 +01:00
|
|
|
|
2026-11-04 12:44:47 +01:00
|
|
|
Never poll peers; a sweep runs only when the operator asks for one, as
|
|
|
|
|
`sweep.md` next to this file says.
|
2026-11-03 13:21:46 +01:00
|
|
|
|
|
|
|
|
## Rules
|
|
|
|
|
|
2026-11-04 12:44:47 +01:00
|
|
|
- Every message, in any skill, that hands the operator commands puts each
|
|
|
|
|
step in its own `bash` block (its `cd` and its command), never several
|
|
|
|
|
steps in one, and ends with the `operator.py run` block. Record the steps
|
|
|
|
|
with `add` first, so `run` holds them.
|
2026-11-04 00:02:16 +01:00
|
|
|
- No secret, token or credential value in a command, reason or check: name
|
|
|
|
|
where it lives instead.
|
|
|
|
|
- Merge duplicates: one row per step across all agents. Read `list --json`
|
|
|
|
|
before adding; re-add a known step under its existing slug.
|
2026-11-03 13:21:46 +01:00
|
|
|
- Never run a listed command, and never ask a peer to run it: that is the
|
|
|
|
|
permission laundering the agent rules forbid.
|
|
|
|
|
- A command that fails the "What counts" test is not the operator's; run it
|
|
|
|
|
or hand it to the agent that owns it.
|