[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AB22567TM0QMABYT9BPT0N":3,"skill-same:01M7AB22567TM0QMABYT9BPT0N":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7AB22567TM0QMABYT9BPT0N","nodes-operator",null,"Drive a running culture-nodes control plane: inspect runs\u002Fledger\u002Factors, author + validate + publish workflows, and assign real work to registered agent actors (codex-thor, codex-orin) through the normal engine dispatch path. Use when the user says \"assign this to codex\", \"run it through nodes\", \"create a workflow for X\", \"what's running\", \"cancel that run\", \"check the ledger\", or when you want to delegate a scoped task to the production actor fleet instead of doing it in-session. Works for ANY operator with the skill — Claude, the colleague backend, codex sessions, or a human at a shell — plain bash + curl + python3 against the public v1alpha1 HTTP API.","agentculture\u002Fculture-nodes","agentculture","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F277824871?v=4","01M7AAZDPCFA8RDCA27DQKKWCJ","AgentCulture","01M7AAZDQ1B6FYE24021YCDAPR",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fagentculture\u002Fculture-nodes\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fnodes-operator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: nodes-operator\ndescription: >-\n  Drive a running culture-nodes control plane: inspect runs\u002Fledger\u002Factors,\n  author + validate + publish workflows, and assign real work to registered\n  agent actors (codex-thor, codex-orin) through the normal engine dispatch\n  path. Use when the user says \"assign this to codex\", \"run it through\n  nodes\", \"create a workflow for X\", \"what's running\", \"cancel that run\",\n  \"check the ledger\", or when you want to delegate a scoped task to the\n  production actor fleet instead of doing it in-session. Works for ANY\n  operator with the skill — Claude, the colleague backend, codex sessions,\n  or a human at a shell — plain bash + curl + python3 against the public\n  v1alpha1 HTTP API.\ntype: command\n---\n\n# nodes-operator — assign work through the culture-nodes system\n\nThe point of this skill: **anyone — this agent, another agent, a human — can\ndelegate a scoped task to the registered actor fleet** and get back a run id,\nnode outcomes, and proposed ledger claims, all through the engine's normal\ndispatch path. No bypasses: everything lands in the same runs\u002Fboard\u002Fjobs UI,\nthe same ledger, the same evidence trail.\n\n## How to run\n\n```bash\nbash .claude\u002Fskills\u002Fnodes-operator\u002Fscripts\u002Fnodes-op.sh \u003Cverb> [args]\n```\n\nAPI resolution: `$NODES_API_URL` → `~\u002F.culture-nodes\u002Foperator.env` →\n`http:\u002F\u002F192.168.1.146:18080` (thor's LAN address; the web UI lives at the\nsame origin). Requires `bash`, `curl`, `python3` (+PyYAML for\n`validate`\u002F`publish`\u002F`assign`; `jq` not required).\n\n## The verbs\n\n| Verb | What it does |\n|------|--------------|\n| `status` | healthz + run-state counts |\n| `running` | every running run with its metadata\u002Finput and current node\u002Fattempt detail |\n| `workflows` | published workflows (key, digest) |\n| `runs [N]` \u002F `run \u003Cid>` | newest runs \u002F one run's nodes, outcomes, attempts |\n| `ledger \u003Cid>` | a run's ledger records (authority, origin actor, data) |\n| `tasks` | pending human tasks |\n| `validate \u003Cf.yaml>` \u002F `publish \u003Cf.yaml>` | server-side compile check \u002F publish, printing the content digest |\n| `create \u003Cdigest> \u003Cinput.json> [--category C] --yes` | create a run from a published digest |\n| `watch \u003Cid>` | poll to terminal, then print outcomes + ledger |\n| `cancel \u003Cid>` | cancel: reaps work items, best-effort Cancels in-flight sessions |\n| `grade \u003Crun-id> --rating N --notes \"...\" [--actor ID] [--as ID] [--category C]` | grade a run against an actor (1-5 rating + rationale, issue #28 item 1) |\n| `assign \u003Cactor> \"instruction\" [opts] --yes` | the headline: one-node workflow → publish → run → watch |\n| `actors` | registered actor rows, read over the API (no `ssh`); the 4th column is each lane's liveness (`session_ok\u002Freason\u002Fmode\u002Flocked`, or `unmeasured`) |\n\n## `assign` — delegate one task to one actor\n\n```bash\nbash .claude\u002Fskills\u002Fnodes-operator\u002Fscripts\u002Fnodes-op.sh assign codex-thor \\\n  \"Read deploy\u002Fprod\u002FREADME.md and report any statement that no longer matches the repo tree. Make no changes.\" \\\n  --yes\n```\n\nRenders `templates\u002Fassign.workflow.yaml` (single `task` node → `finish`,\nmodelled byte-for-byte on the proven `examples\u002Fcodex-smoke-pair` shape) for\nthe chosen actor, publishes it (idempotent — identical renders return the\nsame digest), creates the run with the instruction as input, and watches it\nto terminal. Options: `--sandbox read-only|workspace-write` (default\nread-only), `--timeout` (default 15m — always explicit: a node timeout is\nthe recovery story for a bridge restart), `--retries` (default 1 — a\nbillable session is investigated, not auto-retried), `--outcome`,\n`--category` (optional flat tag on the created run, e.g. `review`, `audit`\n— retaggable later via `nodes run retag \u003Cid> --category C`), `--devague-write`\n(the package writes `.devague\u002F`: developer lane only, in its custody\ncheckout — refused for every other actor before anything is billed; see\n`docs\u002Foperations\u002Fspec-chain-lane.md`), `--no-watch`.\n\nActors map to a checkout owned by that bridge's dedicated Unix account, not\nto the operator's own checkout: `codex-thor` and `codex-orin` each run as\n`culture-codex` on their host, both checking out\n`\u002Fhome\u002Fculture-codex\u002Fgit\u002Fculture-nodes-agent`; `developer`, `planner`,\n`verifier`, `intake` run as `culture-claude` on spark, each in its own clone\nunder `\u002Fhome\u002Fculture-claude\u002Fgit\u002Fculture-nodes-\u003Crole>`; `qwen-developer` runs\nas `culture-qwen` on spark, in `\u002Fhome\u002Fculture-qwen\u002Fgit\u002Fculture-nodes-qwen-developer`.\nNew actors: for a harness lane (qwen, pi, colleague) run\n`deploy\u002Fprod\u002Fcutover.sh \u003Chost> \u003Cengine> --dry-run` and then `--yes` — one\ncommand for secrets → deploy → registration, refusing by name when the\nengine account or the compose token key is missing (#298); creating the\n`culture-\u003Cengine>` account stays a root hand-turn typed on the host. For\nanything else, register with `deploy\u002Fprod\u002Fregister-actor.sh` directly. Either\nway, then extend the actor table in `scripts\u002Fnodes-op.sh` (one case line)\nwith a checkout under that bridge's account.\n\n**Harness-comparison lanes (#294).** Four actors run the same served model\n(`unsloth\u002FQwen3.8-27B-NVFP4` at `http:\u002F\u002Fthor:8000\u002Fv1`) through two harnesses\non the two prod hosts, so a run's harness is a property to compare rather than\na fixed backend:\n\n| Actor | Harness | Host | Account | Port |\n|---|---|---|---|---|\n| `qwen-thor` | Qwen Code (ACP) | thor | `culture-qwen` | 8092 |\n| `qwen-orin` | Qwen Code (ACP) | orin | `culture-qwen` | 8092 |\n| `pi-thor` | pi (`--mode json`) | thor | `culture-pi` | 8093 |\n| `pi-orin` | pi (`--mode json`) | orin | `culture-pi` | 8093 |\n\nThe qwen actors require `--mode` (`yolo` is admitted since #294 t1 — the\nengine account is the confinement); the pi actors take no mode. Dispatch the\nsame instruction to more than one and read the runs side by side, or run the\n`examples\u002Fharness-compare` workflow to fan and join in one graph.\n\n## `grade` — record an opinion on a run's actor\n\n```bash\nbash .claude\u002Fskills\u002Fnodes-operator\u002Fscripts\u002Fnodes-op.sh grade run_01J... \\\n  --rating 4 --notes \"read the files it was asked to, correct diagnosis, one stale detail\" \\\n  --actor codex-thor-actor-id\n```\n\nAppends a `grade` ledger record (`POST \u002Fv1alpha1\u002Fruns\u002F{id}\u002Fgrades`) evaluating\n`--actor` on the named run. `--as` (the grading actor) defaults to the first\nregistered `kind=human` actor; `--actor` defaults to the run's most recently\nattempted actor when it can be read cheaply off the run itself — both can be\npassed explicitly, and the verb refuses rather than guessing when neither a\ndefault nor an explicit value is available. The API looks up `--as`'s\nregistered kind and decides origin\u002Fauthority from it: a human actor's grade\nlands `confirmed` immediately; an agent actor's grade lands `proposed` and\nreaches `confirmed` only through the ordinary review surface. No actor may\ngrade its own work.\n\nThis is the mechanism behind CLAUDE.md's \"nodes dogfooding reflex\" —\ngrade every assigned run against its actor so the comparative record of\nwhich actor is better at what accrues as first-class ledger evidence, not\nonly as an eidetic `\u002Fremember` note.\n\n## What every operator must know\n\n- **Billable + guarded.** `assign`\u002F`create` dispatch real agent sessions\n  (ChatGPT quota today). They refuse without `--yes` \u002F `NODES_OP_YES=1`.\n- **Sandbox reality (issues #18 \u002F #63) and the account model.** codex\n  sessions on thor\u002Forin **can exec shell commands**, including in a\n  `read-only` sandbox. The blocker was the host AppArmor userns restriction,\n  not codex: with `kernel.apparmor_restrict_unprivileged_userns=0` applied\n  and persisted on all three hosts, run `01M00AM5NME6TZ1PXDG4A454HE` executed\n  `git log`, `git status`, `pwd` and `ls` and returned real output. Every\n  bridge now runs as its own dedicated, unprivileged Unix account\n  (`culture-codex` on thor\u002Forin, `culture-claude` and `culture-qwen` on\n  spark — `deploy\u002Fprod\u002Flanes\u002Funix-user.sh`) rather than the operator's login\n  user, so a `--sandbox workspace-write` dispatch is confined by account\n  ownership, not by a sandbox flag: the account cannot write anything it\n  does not own, and it cannot read the operator's own checkout at all. The\n  `read-only` probe above was pre-account. The account model was proven\n  live on 2026-08-29\u002F30 (#243 t10): as `culture-codex`, runs\n  `01M17E36Z7G8A60WP6TA9QB0AP` (orin) and `01M17E3ZC1MBQ6DZRKY93T8PWE`\n  (thor) fetched from github, ran black\u002Fisort\u002Fflake8 through `uvx`, passed\n  29 loopback tests and were denied on the login user's home, `sudo` and\n  the docker socket; runs `01M17NJ8W7B6NQ2RKT6B89SF94` \u002F `01M17NK19NY09G55J7AJWYW7XT`\n  did the same under `workspace-write` with network from the account's own\n  codex config. As `culture-claude`, run `01M17P15BJ28XN57N7P7Q77Y48` did\n  all of that AND handed its change over as\n  `refs\u002Fculture-nodes\u002F01M17P15BJ28XN57N7P7Q77Y48\u002F...` authored by the\n  account, fetched by the operator as `culture-claude@localhost`. Assign\n  reads, analysis and writes freely; a `--handover` dispatch is how a write\n  reaches you (see \"Harvesting a dispatched checkout\").\n- **Results are claims, not evidence.** A session's report lands as a\n  `proposed` ledger claim attributed to its registered actor. Confirming it\n  is a human's job; treat the summary exactly as you'd treat a colleague's\n  \"done\" — worth reading, not worth asserting onward unverified.\n- **Retry semantics.** The engine parks a node as `failed` after 3 dispatch\n  attempts per work item; workflow-declared `--retries` compose on top.\n  `cancel` reaps immediately and SIGTERMs in-flight sessions (~30ms\n  observed).\n- Everything is inspectable afterward: web UI at the API origin, this\n  skill's `run`\u002F`ledger` verbs, or the Python `nodes` CLI\n  (`uv run nodes run list`) which speaks the same API.\n\n## Harvesting a dispatched checkout\n\nA dispatch writes into the *bridge's* account checkout, not the operator's.\nTo read or copy what an actor left behind, log in as that account rather\nthan sudo-ing into its home: `ssh culture-\u003Cengine>@\u003Chost>` (`culture-codex`\non thor\u002Forin, `culture-claude` or `culture-qwen` on spark — for spark use\n`ssh culture-\u003Cengine>@localhost` since the operator is already on that\nhost). Never `sudo -u` into the account or read its files as the operator's\nlogin user — the account's checkout is deliberately unreadable to any other\naccount, the harvest path goes through the account's own login, the same\nway a dispatch does.\n\n## Pre-check lanes before fan-out (issue #308)\n\nBefore any `assign` fan-out or split plan, read the lanes' liveness. Both\ncodex lanes answered `\u002Fhealthz` 200 and `codex login status` said \"Logged in\"\non 2026-09-07, minutes before every dispatch failed with \"refresh token was\nrevoked\" — a healthy bridge process in front of a dead session, discovered\nby paying for the sessions. The bridge's `liveness` fact is what tells the\ntwo apart, and two surfaces read it off the control plane:\n\n```bash\nbash .claude\u002Fskills\u002Fnodes-operator\u002Fscripts\u002Fnodes-op.sh actors\n# company\u002Fcodex-orin|2|http:\u002F\u002F...:8086|session_ok=false reason=refresh_token_spent mode=LOCK locked=true\n# company\u002Fcodex-thor|1|http:\u002F\u002F...:8086|session_ok=true reason=ok mode=CHECK locked=false\nuv run nodes doctor            # [FAIL] lane_liveness: 1 dead lane(s): company\u002Fcodex-orin (...)\n```\n\nThe rule: **a lane reading `session_ok=false` or `locked=true` is not in the\nsplit plan.** Route its packages to its registered `fallback_actor`\n(`register-actor.sh --metadata fallback_actor=\u003Cactor_key>`; codex-thor and\ncodex-orin point at each other) or another live actor, and note the\nsubstitution in the wave's session declaration below. `unmeasured`\n(`session_ok=null`, no `liveness` field yet, or an unreachable API) is not a\nverdict — dispatch as usual, knowing the first failure is what will measure\nit (LOCK mode latches on it).\n\nRestoring a dead lane is an operator hand-turn — and the check itself is one\ntoo. It takes **two** clears, because there are two latches: the bridge's\nper-process one (`liveness_mode: LOCK`, reset by a restart) and the control\nplane's `locked=true` lock, which a restart does not touch and only the\nresume endpoint clears (decision c43).\n\n```bash\n# 1. re-login as the LOGIN user on the bridge host — bootstrap copies the\n#    credential out of the login user's home, not the engine account's, so a\n#    login as culture-\u003Cengine> is not what it will pick up\nssh \u003Chost>          # then, interactively on the host: codex login\n# 2. copy it into the engine account. bootstrap is the lane's ONE root step\n#    and refuses any non-root caller\nssh \u003Chost> 'sudo bash culture-nodes-prod\u002Fdeploy\u002Fprod\u002Flanes\u002Funix-user.sh bootstrap codex'\n# 3. restart the bridge: its latch is per-process, so this returns the\n#    bridge's own fact to `unmeasured`\nssh culture-codex@\u003Chost> \\\n  'export XDG_RUNTIME_DIR=\u002Frun\u002Fuser\u002F$(id -u); systemctl --user restart codex-bridge'\n# 4. clear the control-plane lock. Nothing else clears it — not a restart,\n#    not a fresh credential. Needs the registration bearer, and the actor\n#    ID (act_...), not the key\ncurl -fsS -X POST \"$NODES_API_URL\u002Fv1alpha1\u002Factors\u002F\u003Cactor-id>\u002Fresume\" \\\n  -H \"authorization: Bearer $NODES_ACTOR_REGISTRATION_TOKEN_SECRET\"\n```\n\nThen **re-read the surface rather than assuming step 4 finished it**: resume\nclears the lock and nothing else, so a lane whose last stored fact is still\n`session_ok=false` in LOCK mode stays un-leasable until a later collector\nwrite replaces that fact. `nodes-op.sh actors` showing `session_ok` no\nlonger `false` and `locked=false` is the recovery; a green `curl` from step 4\nis not.\n\nRecord the repair and the check with the CLI so they count (CLAUDE.md,\n\"Every piece of operator work opens or updates an issue\"):\n\n```bash\n# the ledger-native hand-turn record (t16): stage from the confirmed\n# hand_turn_definition, the work item the turn served, one line of what\nuv run nodes hand-turn --stage dispatch --work-item SCRUM-9 \\\n  \"read lane liveness before the wave-1 fan-out; codex-orin dead, routed to codex-thor\"\n```\n\n`codex-preflight.sh`'s `login status` check is advisory for the same reason:\nit reads the stored credential, not the session.\n\n## Split-plan lane guidance and session accounting (issue #48)\n\nWhen building an implementation split plan (via `\u002Fspec-to-plan` and\n`\u002Fassign-to-workforce`), account for session economics across the dispatch\nlandscape. The operator's interactive Claude, local subagents, and all bridge\nsessions share ONE subscription window — not independent capacity pools.\n\n### One meter, many lanes\n\n- **Operator main loop** (lowest cost): prompt cache warm, marginal session\n  cost lowest; right place for small\u002Fmechanical steps and merge gates.\n- **Local subagents**: cold-ish start but same-process context handoff, no\n  HTTP overhead.\n- **Bridge sessions** (full cold tax): each codex exec \u002F claude -p \u002F colleague\n  work invocation pays a complete cold-session cost (repo discovery, plan\n  reading, zero conversational history) plus engine dispatch overhead. Worth\n  it only when ledger attribution, isolation, or cross-machine execution\n  justifies it.\n\n### Node granularity and routing\n\n- **Work-package model nodes**: amortize bootstrap into one persistent warm\n  session with many ledgered sub-actions, never one cold session per small\n  plan task. This cycle's wave-0 averaged ~25k output tokens per task on top\n  of repeated cold bootstrap — a shared workstream session would have paid\n  that bootstrap once.\n- **Deterministic\u002Fcode nodes**: stay microscopic — these belong in the\n  operator lane or as part of a larger model workstream.\n- **Codex-first routing** for big analysis and build packages: the cold-session\n  tax is large enough to amortize over significant work; reserve the operator's\n  Claude window for operator-lane work and human merge gates.\n\n### Split-plan template\n\nBefore any fan-out, declare expected model-session count per wave against the\nremaining subscription window (windows reset on a fixed clock; the operator should\nknow the reset time and remaining capacity before planning), and only over lanes\nthe pre-check above read as live. Copy this template into the plan's waves\nsection and fill it in:\n\n```yaml\n# Wave W: \u003Cdescription>\n# - Tasks: t1, t2, t3, ...\n# - Model sessions (remaining window): N (justify per lane: operator X sessions,\n#   codex-bridge Y sessions for big packages P1, P2, ...)\n# - Non-billable: deterministic nodes, human tasks\n```\n\nExample:\n\n```yaml\n# Wave 0: Core design pass and scope exploration\n# - Tasks: t1 (scope), t2 (think), t3 (challenge), t4 (spec-to-plan)\n# - Model sessions (remaining window: 4h): 1 (operator lane, local design refinement)\n# - Non-billable: challenge pass findings, spec review\n#\n# Wave 1: Phase-0 vertical slice implementation\n# - Tasks: t5–t11 (usage telemetry, session stickiness, breaker, pacing, budget)\n# - Model sessions (remaining window: 3.5h): 3 (codex-thor for usage + stickiness,\n#   codex-orin for breaker logic + pacing; operator: PR review gates only)\n# - Non-billable: tests, documentation\n```\n\nRecord deviations (issue #48 comment item 5): if a wave exhausts budget mid-execution\nor stays significantly under-budget, emit a deviation record with the observed session\ncount and reason (longer node output, unforeseen complexity, faster execution). These\nrecords feed the next build's planning accuracy and the economics analysis (issue #28\nper-actor analytics).\n\n## Provenance\n\nFirst-party to **culture-nodes** — authored here (2026-08-12 cycle), not\nvendored; steward may broadcast it to the mesh later. Cite, don't import:\ndownstream repos copy it. See `docs\u002Fskill-sources.md`.\n","# nodes-operator — assign work through the culture-nodes system\n\nThe point of this skill: **anyone — this agent, another agent, a human — can\ndelegate a scoped task to the registered actor fleet** and get back a run id,\nnode outcomes, and proposed ledger claims, all through the engine's normal\ndispatch path. No bypasses: everything lands in the same runs\u002Fboard\u002Fjobs UI,\nthe same ledger, the same evidence trail.\n\n## How to run\n\n```bash\nbash .claude\u002Fskills\u002Fnodes-operator\u002Fscripts\u002Fnodes-op.sh \u003Cverb> [args]\n```\n\nAPI resolution: `$NODES_API_URL` → `~\u002F.culture-nodes\u002Foperator.env` →\n`http:\u002F\u002F192.168.1.146:18080` (thor's LAN address; the web UI lives at the\nsame origin). Requires `bash`, `curl`, `python3` (+PyYAML for\n`validate`\u002F`publish`\u002F`assign`; `jq` not required).\n\n## The verbs\n\n| Verb | What it does |\n|------|--------------|\n| `status` | healthz + run-state counts |\n| `running` | every running run with its metadata\u002Finput and current node\u002Fattempt detail |\n| `workflows` | published workflows (key, digest) |\n| `runs [N]` \u002F `run \u003Cid>` | newest runs \u002F one run's nodes, outcomes, attempts |\n| `ledger \u003Cid>` | a run's ledger records (authority, origin actor, data) |\n| `tasks` | pending human tasks |\n| `validate \u003Cf.yaml>` \u002F `publish \u003Cf.yaml>` | server-side compile check \u002F publish, printing the content digest |\n| `create \u003Cdigest> \u003Cinput.json> [--category C] --yes` | create a run from a published digest |\n| `watch \u003Cid>` | poll to terminal, then print outcomes + ledger |\n| `cancel \u003Cid>` | cancel: reaps work items, best-effort Cancels in-flight sessions |\n| `grade \u003Crun-id> --rating N --notes \"...\" [--actor ID] [--as ID] [--category C]` | grade a run against an actor (1-5 rating + rationale, issue #28 item 1) |\n| `assign \u003Cactor> \"instruction\" [opts] --yes` | the headline: one-node workflow → publish → run → watch |\n| `actors` | registered actor rows, read over the API (no `ssh`); the 4th column is each lane's liveness (`session_ok\u002Freason\u002Fmode\u002Flocked`, or `unmeasured`) |\n\n## `assign` — delegate one task to one actor\n\n```bash\nbash .claude\u002Fskills\u002Fnodes-operator\u002Fscripts\u002Fnodes-op.sh assign codex-thor \\\n  \"Read deploy\u002Fprod\u002FREADME.md and report any statement that no longer matches the repo tree. Make no changes.\" \\\n  --yes\n```\n\nRenders `templates\u002Fassign.workflow.yaml` (single `task` node → `finish`,\nmodelled byte-for-byte on the proven `examples\u002Fcodex-smoke-pair` shape) for\nthe chosen actor, publishes it (idempotent — identical renders return the\nsame digest), creates the run with the instruction as input, and watches it\nto terminal. Options: `--sandbox read-only|workspace-write` (default\nread-only), `--timeout` (default 15m — always explicit: a node timeout is\nthe recovery story for a bridge restart), `--retries` (default 1 — a\nbillable session is investigated, not auto-retried), `--outcome`,\n`--category` (optional flat tag on the created run, e.g. `review`, `audit`\n— retaggable later via `nodes run retag \u003Cid> --category C`), `--devague-write`\n(the package writes `.devague\u002F`: developer lane only, in its custody\ncheckout — refused for every other actor before anything is billed; see\n`docs\u002Foperations\u002Fspec-chain-lane.md`), `--no-watch`.\n\nActors map to a checkout owned by that bridge's dedicated Unix account, not\nto the operator's own checkout: `codex-thor` and `codex-orin` each run as\n`culture-codex` on their host, both checking out\n`\u002Fhome\u002Fculture-codex\u002Fgit\u002Fculture-nodes-agent`; `developer`, `planner`,\n`verifier`, `intake` run as `culture-claude` on spark, each in its own clone\nunder `\u002Fhome\u002Fculture-claude\u002Fgit\u002Fculture-nodes-\u003Crole>`; `qwen-developer` runs\nas `culture-qwen` on spark, in `\u002Fhome\u002Fculture-qwen\u002Fgit\u002Fculture-nodes-qwen-developer`.\nNew actors: for a harness lane (qwen, pi, colleague) run\n`deploy\u002Fprod\u002Fcutover.sh \u003Chost> \u003Cengine> --dry-run` and then `--yes` — one\ncommand for secrets → deploy → registration, refusing by name when the\nengine account or the compose token key is missing (#298); creating the\n`culture-\u003Cengine>` account stays a root hand-turn typed on the host. For\nanything else, register with `deploy\u002Fprod\u002Fregister-actor.sh` directly. Either\nway, then extend the actor table in `scripts\u002Fnodes-op.sh` (one case line)\nwith a checkout under that bridge's account.\n\n**Harness-comparison lanes (#294).** Four actors run the same served model\n(`unsloth\u002FQwen3.8-27B-NVFP4` at `http:\u002F\u002Fthor:8000\u002Fv1`) through two harnesses\non the two prod hosts, so a run's harness is a property to compare rather than\na fixed backend:\n\n| Actor | Harness | Host | Account | Port |\n|---|---|---|---|---|\n| `qwen-thor` | Qwen Code (ACP) | thor | `culture-qwen` | 8092 |\n| `qwen-orin` | Qwen Code (ACP) | orin | `culture-qwen` | 8092 |\n| `pi-thor` | pi (`--mode json`) | thor | `culture-pi` | 8093 |\n| `pi-orin` | pi (`--mode json`) | orin | `culture-pi` | 8093 |\n\nThe qwen actors require `--mode` (`yolo` is admitted since #294 t1 — the\nengine account is the confinement); the pi actors take no mode. Dispatch the\nsame instruction to more than one and read the runs side by side, or run the\n`examples\u002Fharness-compare` workflow to fan and join in one graph.\n\n## `grade` — record an opinion on a run's actor\n\n```bash\nbash .claude\u002Fskills\u002Fnodes-operator\u002Fscripts\u002Fnodes-op.sh grade run_01J... \\\n  --rating 4 --notes \"read the files it was asked to, correct diagnosis, one stale detail\" \\\n  --actor codex-thor-actor-id\n```\n\nAppends a `grade` ledger record (`POST \u002Fv1alpha1\u002Fruns\u002F{id}\u002Fgrades`) evaluating\n`--actor` on the named run. `--as` (the grading actor) defaults to the first\nregistered `kind=human` actor; `--actor` defaults to the run's most recently\nattempted actor when it can be read cheaply off the run itself — both can be\npassed explicitly, and the verb refuses rather than guessing when neither a\ndefault nor an explicit value is available. The API looks up `--as`'s\nregistered kind and decides origin\u002Fauthority from it: a human actor's grade\nlands `confirmed` immediately; an agent actor's grade lands `proposed` and\nreaches `confirmed` only through the ordinary review surface. No actor may\ngrade its own work.\n\nThis is the mechanism behind CLAUDE.md's \"nodes dogfooding reflex\" —\ngrade every assigned run against its actor so the comparative record of\nwhich actor is better at what accrues as first-class ledger evidence, not\nonly as an eidetic `\u002Fremember` note.\n\n## What every operator must know\n\n- **Billable + guarded.** `assign`\u002F`create` dispatch real agent sessions\n  (ChatGPT quota today). They refuse without `--yes` \u002F `NODES_OP_YES=1`.\n- **Sandbox reality (issues #18 \u002F #63) and the account model.** codex\n  sessions on thor\u002Forin **can exec shell commands**, including in a\n  `read-only` sandbox. The blocker was the host AppArmor userns restriction,\n  not codex: with `kernel.apparmor_restrict_unprivileged_userns=0` applied\n  and persisted on all three hosts, run `01M00AM5NME6TZ1PXDG4A454HE` executed\n  `git log`, `git status`, `pwd` and `ls` and returned real output. Every\n  bridge now runs as its own dedicated, unprivileged Unix account\n  (`culture-codex` on thor\u002Forin, `culture-claude` and `culture-qwen` on\n  spark — `deploy\u002Fprod\u002Flanes\u002Funix-user.sh`) rather than the operator's login\n  user, so a `--sandbox workspace-write` dispatch is confined by account\n  ownership, not by a sandbox flag: the account cannot write anything it\n  does not own, and it cannot read the operator's own checkout at all. The\n  `read-only` probe above was pre-account. The account model was proven\n  live on 2026-08-29\u002F30 (#243 t10): as `culture-codex`, runs\n  `01M17E36Z7G8A60WP6TA9QB0AP` (orin) and `01M17E3ZC1MBQ6DZRKY93T8PWE`\n  (thor) fetched from github, ran black\u002Fisort\u002Fflake8 through `uvx`, passed\n  29 loopback tests and were denied on the login user's home, `sudo` and\n  the docker socket; runs `01M17NJ8W7B6NQ2RKT6B89SF94` \u002F `01M17NK19NY09G55J7AJWYW7XT`\n  did the same under `workspace-write` with network from the account's own\n  codex config. As `culture-claude`, run `01M17P15BJ28XN57N7P7Q77Y48` did\n  all of that AND handed its change over as\n  `refs\u002Fculture-nodes\u002F01M17P15BJ28XN57N7P7Q77Y48\u002F...` authored by the\n  account, fetched by the operator as `culture-claude@localhost`. Assign\n  reads, analysis and writes freely; a `--handover` dispatch is how a write\n  reaches you (see \"Harvesting a dispatched checkout\").\n- **Results are claims, not evidence.** A session's report lands as a\n  `proposed` ledger claim attributed to its registered actor. Confirming it\n  is a human's job; treat the summary exactly as you'd treat a colleague's\n  \"done\" — worth reading, not worth asserting onward unverified.\n- **Retry semantics.** The engine parks a node as `failed` after 3 dispatch\n  attempts per work item; workflow-declared `--retries` compose on top.\n  `cancel` reaps immediately and SIGTERMs in-flight sessions (~30ms\n  observed).\n- Everything is inspectable afterward: web UI at the API origin, this\n  skill's `run`\u002F`ledger` verbs, or the Python `nodes` CLI\n  (`uv run nodes run list`) which speaks the same API.\n\n## Harvesting a dispatched checkout\n\nA dispatch writes into the *bridge's* account checkout, not the operator's.\nTo read or copy what an actor left behind, log in as that account rather\nthan sudo-ing into its home: `ssh culture-\u003Cengine>@\u003Chost>` (`culture-codex`\non thor\u002Forin, `culture-claude` or `culture-qwen` on spark — for spark use\n`ssh culture-\u003Cengine>@localhost` since the operator is already on that\nhost). Never `sudo -u` into the account or read its files as the operator's\nlogin user — the account's checkout is deliberately unreadable to any other\naccount, the harvest path goes through the account's own login, the same\nway a dispatch does.\n\n## Pre-check lanes before fan-out (issue #308)\n\nBefore any `assign` fan-out or split plan, read the lanes' liveness. Both\ncodex lanes answered `\u002Fhealthz` 200 and `codex login status` said \"Logged in\"\non 2026-09-07, minutes before every dispatch failed with \"refresh token was\nrevoked\" — a healthy bridge process in front of a dead session, discovered\nby paying for the sessions. The bridge's `liveness` fact is what tells the\ntwo apart, and two surfaces read it off the control plane:\n\n```bash\nbash .claude\u002Fskills\u002Fnodes-operator\u002Fscripts\u002Fnodes-op.sh actors\n# company\u002Fcodex-orin|2|http:\u002F\u002F...:8086|session_ok=false reason=refresh_token_spent mode=LOCK locked=true\n# company\u002Fcodex-thor|1|http:\u002F\u002F...:8086|session_ok=true reason=ok mode=CHECK locked=false\nuv run nodes doctor            # [FAIL] lane_liveness: 1 dead lane(s): company\u002Fcodex-orin (...)\n```\n\nThe rule: **a lane reading `session_ok=false` or `locked=true` is not in the\nsplit plan.** Route its packages to its registered `fallback_actor`\n(`register-actor.sh --metadata fallback_actor=\u003Cactor_key>`; codex-thor and\ncodex-orin point at each other) or another live actor, and note the\nsubstitution in the wave's session declaration below. `unmeasured`\n(`session_ok=null`, no `liveness` field yet, or an unreachable API) is not a\nverdict — dispatch as usual, knowing the first failure is what will measure\nit (LOCK mode latches on it).\n\nRestoring a dead lane is an operator hand-turn — and the check itself is one\ntoo. It takes **two** clears, because there are two latches: the bridge's\nper-process one (`liveness_mode: LOCK`, reset by a restart) and the control\nplane's `locked=true` lock, which a restart does not touch and only the\nresume endpoint clears (decision c43).\n\n```bash\n# 1. re-login as the LOGIN user on the bridge host — bootstrap copies the\n#    credential out of the login user's home, not the engine account's, so a\n#    login as culture-\u003Cengine> is not what it will pick up\nssh \u003Chost>          # then, interactively on the host: codex login\n# 2. copy it into the engine account. bootstrap is the lane's ONE root step\n#    and refuses any non-root caller\nssh \u003Chost> 'sudo bash culture-nodes-prod\u002Fdeploy\u002Fprod\u002Flanes\u002Funix-user.sh bootstrap codex'\n# 3. restart the bridge: its latch is per-process, so this returns the\n#    bridge's own fact to `unmeasured`\nssh culture-codex@\u003Chost> \\\n  'export XDG_RUNTIME_DIR=\u002Frun\u002Fuser\u002F$(id -u); systemctl --user restart codex-bridge'\n# 4. clear the control-plane lock. Nothing else clears it — not a restart,\n#    not a fresh credential. Needs the registration bearer, and the actor\n#    ID (act_...), not the key\ncurl -fsS -X POST \"$NODES_API_URL\u002Fv1alpha1\u002Factors\u002F\u003Cactor-id>\u002Fresume\" \\\n  -H \"authorization: Bearer $NODES_ACTOR_REGISTRATION_TOKEN_SECRET\"\n```\n\nThen **re-read the surface rather than assuming step 4 finished it**: resume\nclears the lock and nothing else, so a lane whose last stored fact is still\n`session_ok=false` in LOCK mode stays un-leasable until a later collector\nwrite replaces that fact. `nodes-op.sh actors` showing `session_ok` no\nlonger `false` and `locked=false` is the recovery; a green `curl` from step 4\nis not.\n\nRecord the repair and the check with the CLI so they count (CLAUDE.md,\n\"Every piece of operator work opens or updates an issue\"):\n\n```bash\n# the ledger-native hand-turn record (t16): stage from the confirmed\n# hand_turn_definition, the work item the turn served, one line of what\nuv run nodes hand-turn --stage dispatch --work-item SCRUM-9 \\\n  \"read lane liveness before the wave-1 fan-out; codex-orin dead, routed to codex-thor\"\n```\n\n`codex-preflight.sh`'s `login status` check is advisory for the same reason:\nit reads the stored credential, not the session.\n\n## Split-plan lane guidance and session accounting (issue #48)\n\nWhen building an implementation split plan (via `\u002Fspec-to-plan` and\n`\u002Fassign-to-workforce`), account for session economics across the dispatch\nlandscape. The operator's interactive Claude, local subagents, and all bridge\nsessions share ONE subscription window — not independent capacity pools.\n\n### One meter, many lanes\n\n- **Operator main loop** (lowest cost): prompt cache warm, marginal session\n  cost lowest; right place for small\u002Fmechanical steps and merge gates.\n- **Local subagents**: cold-ish start but same-process context handoff, no\n  HTTP overhead.\n- **Bridge sessions** (full cold tax): each codex exec \u002F claude -p \u002F colleague\n  work invocation pays a complete cold-session cost (repo discovery, plan\n  reading, zero conversational history) plus engine dispatch overhead. Worth\n  it only when ledger attribution, isolation, or cross-machine execution\n  justifies it.\n\n### Node granularity and routing\n\n- **Work-package model nodes**: amortize bootstrap into one persistent warm\n  session with many ledgered sub-actions, never one cold session per small\n  plan task. This cycle's wave-0 averaged ~25k output tokens per task on top\n  of repeated cold bootstrap — a shared workstream session would have paid\n  that bootstrap once.\n- **Deterministic\u002Fcode nodes**: stay microscopic — these belong in the\n  operator lane or as part of a larger model workstream.\n- **Codex-first routing** for big analysis and build packages: the cold-session\n  tax is large enough to amortize over significant work; reserve the operator's\n  Claude window for operator-lane work and human merge gates.\n\n### Split-plan template\n\nBefore any fan-out, declare expected model-session count per wave against the\nremaining subscription window (windows reset on a fixed clock; the operator should\nknow the reset time and remaining capacity before planning), and only over lanes\nthe pre-check above read as live. Copy this template into the plan's waves\nsection and fill it in:\n\n```yaml\n# Wave W: \u003Cdescription>\n# - Tasks: t1, t2, t3, ...\n# - Model sessions (remaining window): N (justify per lane: operator X sessions,\n#   codex-bridge Y sessions for big packages P1, P2, ...)\n# - Non-billable: deterministic nodes, human tasks\n```\n\nExample:\n\n```yaml\n# Wave 0: Core design pass and scope exploration\n# - Tasks: t1 (scope), t2 (think), t3 (challenge), t4 (spec-to-plan)\n# - Model sessions (remaining window: 4h): 1 (operator lane, local design refinement)\n# - Non-billable: challenge pass findings, spec review\n#\n# Wave 1: Phase-0 vertical slice implementation\n# - Tasks: t5–t11 (usage telemetry, session stickiness, breaker, pacing, budget)\n# - Model sessions (remaining window: 3.5h): 3 (codex-thor for usage + stickiness,\n#   codex-orin for breaker logic + pacing; operator: PR review gates only)\n# - Non-billable: tests, documentation\n```\n\nRecord deviations (issue #48 comment item 5): if a wave exhausts budget mid-execution\nor stays significantly under-budget, emit a deviation record with the observed session\ncount and reason (longer node output, unforeseen complexity, faster execution). These\nrecords feed the next build's planning accuracy and the economics analysis (issue #28\nper-actor analytics).\n\n## Provenance\n\nFirst-party to **culture-nodes** — authored here (2026-08-12 cycle), not\nvendored; steward may broadcast it to the mesh later. Cite, don't import:\ndownstream repos copy it. See `docs\u002Fskill-sources.md`.\n",{"name":5,"type":24,"description":7},"command","main","a2056e6191a4e106faf886773efed2f44ff120b2",".claude\u002Fskills\u002Fnodes-operator",0,"https:\u002F\u002Fgithub.com\u002Fagentculture\u002Fculture-nodes","https:\u002F\u002Fgithub.com\u002Fagentculture","https:\u002F\u002Fagentculture.org","Agent first OSS software","2026-09-29 08:50:58",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add agentculture\u002Fculture-nodes --skill nodes-operator",{"tool":40,"command":41},"bunx","bunx skills add agentculture\u002Fculture-nodes --skill nodes-operator",{"tool":43,"command":44},"pnpm","pnpm dlx skills add agentculture\u002Fculture-nodes --skill nodes-operator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fagentculture\u002Fculture-nodes\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fnodes-operator\u002FSKILL.md",true,[48,54],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"scripts\u002Fnodes-op.sh","SCRIPT","脚本",28089,"https:\u002F\u002Fgithub.com\u002Fagentculture\u002Fculture-nodes\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fnodes-operator\u002Fscripts\u002Fnodes-op.sh",{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"templates\u002Fassign.workflow.yaml","REFERENCE","参考文档",3690,"https:\u002F\u002Fgithub.com\u002Fagentculture\u002Fculture-nodes\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fnodes-operator\u002Ftemplates\u002Fassign.workflow.yaml",[61,68,73,78,85,92],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7AB6FGWR0P3SPYFX2W801D5","sample","Fixture skill proving the .qwen\u002Fskills leg carries at least one skill.","https:\u002F\u002Fgithub.com\u002Fagentculture\u002Fculture-nodes\u002Fblob\u002Fmain\u002Fadapters\u002Fqwen\u002Ftests\u002Ffixtures\u002Fconfig-repo-no-culture-yaml\u002F.qwen\u002Fskills\u002Fsample\u002FSKILL.md",[],[],{"skillNo":69,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7AB6E9PFCDZE193CGPM0K35","https:\u002F\u002Fgithub.com\u002Fagentculture\u002Fculture-nodes\u002Fblob\u002Fmain\u002Fadapters\u002Fqwen\u002Ftests\u002Ffixtures\u002Fconfig-repo-no-agents-md\u002F.qwen\u002Fskills\u002Fsample\u002FSKILL.md",[],[],{"skillNo":74,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7AB6CJ3G1ZZJD63NEZZK1JH","https:\u002F\u002Fgithub.com\u002Fagentculture\u002Fculture-nodes\u002Fblob\u002Fmain\u002Fadapters\u002Fqwen\u002Ftests\u002Ffixtures\u002Fconfig-repo-complete\u002F.qwen\u002Fskills\u002Fsample\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7AB64WWKV9H2J7JDV5KXGPA","think","Think a vague feature idea into a buildable spec by working backwards (the idea→spec leg; drives the `devague` CLI). Start from the announcement (\"pretend it shipped\"), capture and classify claims, interrogate them with honesty conditions and hard questions, park open vagueness as a first-class object, and export a spec only once the frame *converges*. Use when the user says \"think this through\", \"spec this\", \"work backwards\", \"turn this idea into a spec\", \"announcement frame\", or \"devague\", or when a feature request is too vague to build yet. Explore scope first when the idea touches an existing codebase — the sibling `scope` skill is the optional opening leg ahead of `think`. Once a spec exports, hand off to the sibling `spec-to-plan` skill to turn it into a plan. Authored and maintained in agentculture\u002Fdevague (origin = devague); guildmaster pulls this skill from here and broadcasts it to the AgentCulture mesh — it is NOT vendored from guildmaster like the other skills here.","https:\u002F\u002Fgithub.com\u002Fagentculture\u002Fculture-nodes\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fthink\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7AB5X0FTZ081AFH3BTGQKVA","summarize-delivery","Close the loop after an `assign-to-workforce` run by turning what actually happened into an accountability artifact — planned versus actual delivery, mid-work decisions, plan drift, evidence-backed delivery claims, and remaining work. The plan the user confirmed is the contract; this skill records where execution obeyed it, where it changed, and what is genuinely safe to claim as delivered. Runs on complete, partial, AND failed runs — failure is reported faithfully, never smoothed over. Use when the user says \"summarize delivery\", \"delivery summary\", \"wrap up\", \"close the loop\", \"what did we actually ship\", or \"plan versus actual\", or after `assign-to-workforce` merges (or fails to merge) a plan's waves. Authored and maintained in agentculture\u002Fdevague (origin = devague); guildmaster pulls this skill from here and broadcasts it to the AgentCulture mesh — it is NOT vendored from guildmaster like the inbound skills here.","https:\u002F\u002Fgithub.com\u002Fagentculture\u002Fculture-nodes\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fsummarize-delivery\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7AB5NA0QY9NN076N24NJPJQ","spec-to-plan","Turn a converged devague spec into a buildable plan by working forwards (the spec→plan leg; drives the `devague plan` CLI group). Seed a plan from a converged frame, add tasks that collectively cover every coverage target (the frame's confirmed claims + honesty conditions), give each task acceptance criteria and an honest dependency order, park genuine unknowns as first-class risks, and export a plan only once it *converges*. Use when the user says \"spec to plan\", \"stp\", \"turn this spec into a plan\", \"plan this spec\", \"make a build plan\", or after the `think` skill exports a spec. Authored and maintained in agentculture\u002Fdevague (origin = devague); guildmaster pulls this skill from here and broadcasts it to the AgentCulture mesh — it is NOT vendored from guildmaster like the other skills here.","https:\u002F\u002Fgithub.com\u002Fagentculture\u002Fculture-nodes\u002Fblob\u002Fmain\u002F.qwen\u002Fskills\u002Fspec-to-plan\u002FSKILL.md",[],[]]