The skill defines how an orchestrator routes work to workflows and specialist agents, coordinates lanes, and handles tracker state, review, CI, merge gates, and post-merge verification. It also sets operational constraints for host usage, permissions, communication, and release publication.
Problems with a kendex-owned skill go through kendex report; check ownership in the file first.
Before changing this skill's scripts, runtime or tests, read DEVELOPMENT.md.
A change only to lane or overseer settings in kendex.settings.toml, kendex-local.toml or kendex.toml takes directed-change.md § Who makes it's quick-change route only after Jarvis or the owner says "quick change". Without those words it takes the normal item route. Executable behavior, test commands and permissions keep their required checks.
This checkout's refresh record belongs to the lock-record Actions workflow, which lands it on main or through its rolling kendex/lock pull request. The hosted overseer receives committed outputs through sync-base.
references/merge-contracts.md re-arms the same head on reach: outside. Where ci-fix leaves the head unchanged, for a flake or a fault ci-fix § 4 places in another pull request, the lane hands back to the overseer with the failing run.skills/communication/references/messages.md § Times.skills/orch/references/communication-modes.md § Owner asks, is 11 pm to 8 am Pacific.Proposal: comment, per skills/orch/references/skill-rules.md § Coordination, Tracked issue creation, carries a Symptom: line (where, when and what broke) or an Owner: line (the owner's note or ask) beside Reached by:, at every source and priority. audit-issues § 6 declines one with neither, per the project-management skill's § Intake.At each development round boundary, run the owner-scoped worktree cleanup policy for Cargo output. Use ORCH_ROUND_PRUNE_DISK_PCT as the configured disk threshold. Prune only the owned worktree target directory. If CARGO_TARGET_DIR is elsewhere, report the separate cleanup need and do not delete another owner's output. Between the round-id and delegation-time stamps, write the request {"op": "prune-round", "field": "dev"} to a file and run .agents/skills/orch/scripts/orch-runtime op --item [ISSUE_ID] --request [FILE]; at or past the mark it exits 1 recording target-elsewhere where CARGO_TARGET_DIR is not the worktree's own target directory.
When a kendex item's diff changes consumer-facing files under pi-extensions/<dir>, the launch read gives the item two Done-when boxes. The branch box requires its PR to raise pi-extensions/<dir>/package.json by skills/commit-guards/CHECKS.md § Release versions and replace its changelog heading ### Unreleased with ### <version>. A diff that only touches what .agents/skills/npm-deploy/SKILL.md § Skip publish for lists takes neither box.
After merge, the item's lane runs .agents/skills/npm-deploy/SKILL.md § Publish, tag, refresh, verify steps 1-4 for that package only. Fetch main, use the item's merge commit as <release> and the fetched main head as <head>, tag <unscoped-name>-v<version> at <release>, and push that tag alone. Find and watch the publish-npm workflow_dispatch run. Retry the same tag only when the failure needs no new version, following step 4. Keep the item in Verifying until its Post-merge box passes. Run this action in the lane, never on the control VM. The orch verification pass reads the workflow run rather than npm view: tools/publish-npm exits 0 with published= or served= only after npm serves the version. Use this exact Post-merge box:
Load github, worktree and linear before their first use.
MODE SWITCH: you are the orchestrator. Delegate every implementation, review and QA task to a specialist sub-agent. Never edit code, unless the user explicitly asks or the item runs the
microtier, whose runner makes the edit itself.
Get the issue → dev implements → publication, review and fixes in the order orch-runtime pr order answers → required CI and review gate → merge.
fix suggestion (review-pr § 4).ORCH_DECISION_MODE does not change that ask set.ORCH_MERGE_AUTONOMY=auto; under auto, merge without asking only when every merge gate is green.lane-mail, never the harness question tool: skill-rules § Coordination.ORCH_DECISION_MODE=auto-recommended takes and logs the continuing option while a bounded wait, retry or triage round remains. ask presents the listed choice.orch-runtime state head-budget take spends one automatic retry. --kind review-wait restarts its count on a new head; --kind ci-fix counts across heads. head-budget reset starts the count over.orch-runtime state post-pr-stop record persists the named stop with its rendered Markdown comment. The workflow posts that file to the PR and returns the stored stop.post-pr-stop record-if-empty, so a precise upstream stop stands.post-pr-stop clear.ORCH_MERGE_AUTONOMY controls merge consent only.orch-runtime host resolve prints anything but local. Its overseers share the control VM for coordination.
directive-[ID] (directed-change.md § Who makes it).git log -S or -G, no --all -p, no command that reads every blob. It searches through gh search code, the GitHub API or a lane./dev/zero, /dev/urandom, spin polls) on the shared host. It waits with one bounded background command and its completion notice, or on watch events.tmp/<run>/<agent-topic>/.--refresh-only exception.record-push request, worktree create --reuse, a restack), bind git -C [WT_PATH] rev-parse --verify HEAD as [BOUND_HEAD].git -C [WT_PATH] diff --no-renames --name-only [BOUND_HEAD] HEAD -- <each loaded file's repo path>.[WT_PATH]/<path>, under the deleted-path rule of dev's Round Contract.ORCH_LANE_OUTPUT decides what a lane prints and where a filled <output_format> block goes: skill-rules § Lane Output.Route <command> [args] to its workflow and follow Workflow Execution.
| Command | Arguments | Workflow | Purpose |
|---|---|---|---|
start | [ISSUE_ID] | github OWNER/REPO#N | workflows/start.md / workflows/start-worktree.md | Prepare one work item; from a worktree, run the full session |
start new | linear|github ... | workflows/start-new.md | Create one issue, then start it |
micro | [ISSUE_ID] | github OWNER/REPO#N | workflows/micro.md | Few-line tier: edit, commit, PR, arm and merge, with no dev agent and no review cycle |
small | [ISSUE_ID] | github OWNER/REPO#N | workflows/small.md | One-subsystem tier: the full session under thin review bounds |
handoff | linear|github ... | workflows/handoff.md | Launch independent sessions |
plan-issues | PLAN_PATH linear|github | workflows/plan-issues.md | Convert plan items into issues |
dev-start | [ISSUE_ID] | workflows/dev-start.md | Delegate implementation |
dev-fix | [ISSUE_ID] | workflows/dev-fix.md | Delegate fix items |
ci-fix | [PR_NUMBER] | workflows/ci-fix.md | Analyze and fix a PR's CI failures, a merge-group run's included |
review | [all] | [last N] | [HASH] | workflows/review.md | On-demand review of local changes |
review-codebase | [PATH] | workflows/review-codebase.md | Whole-codebase fan-out, findings only |
review-pr | [PR_NUMBER] | workflows/review-pr.md | Review cycle with fixes and QA |
review-pr-comments | PR_NUMBER | BRANCH | workflows/review-pr-comments.md | Triage PR review comments |
submit-pr | [PR_NUMBER] | workflows/submit-pr.md | Push, create the PR, gates, merge |
merge-pr | PR_NUMBER | all | workflows/merge-pr.md | Verify the conditions and merge |
post-summary | [ISSUE_ID] | workflows/post-summary.md | Post the summary and handoff comments |
verify | none | workflows/verify.md | Read and complete due verification checks |
oversee | none | workflows/oversee.md | Fleet mode: one session per unblocked item, every PR shepherded to merge |
start routing.
github OWNER/REPO#N sets TRACKER=github and ISSUE_ID=issue-N, and keeps OWNER/REPO for the API.issue-..git is a worktree: route it to workflows/start-worktree.md.workflows/start.md..agents/skills/orch/scripts/<script> [args]| Script | Use |
|---|---|
orch-runtime | The orch runtime: workflow records, their operations and the fleet watch |
setup | Build agent-runtime, then orch-runtime, into the user cache |
orch-env | Print the effective value of a setting: orch-env NAME DEFAULT, read in the order of settings.md § Where a setting is set, then the default |
git-context | Print a git-derived value: branch, head, issue id, repository or common root, timestamp |
resolve-base-branch | Print a worktree's base branch |
sync-base | Resolve, fetch and fast-forward the checkout that owns the base branch, and print the branch name |
base-freshness | Fetch the base branch and report the worktree's ahead and behind counts as JSON, so the review cycle gates on a current base |
post-merge | Run the repository's post-merge steps in its base checkout, stopping at the first failed step |
lane-host-ssh | The static SSH lane-host provider; protocol: lane-host.md |
lane-marker | Write a lane's launch record before anything writes to the lane |
copilot-statusline | The statusLine command a Copilot CLI lane runs: it records the session JSON the CLI hands it on stdin and prints one footer line |
orch-runtime verb's --help is its contract.setup keys its builds on both crates' sources, then prints each duty's readiness on stderr. setup --detach starts the builds in the background.post-merge ends with setup, and a lane's launch runs setup for the lane's tree.The mailbox skill's lane-mail is the lane-to-overseer mailbox and the owner channel.
ask, notice, wait, inbox and its mailbox monitor watch.send, drain, pending and events, adding --root and --host for a lane on another host.--to owner, and closes an owner ask once with resolve.Every script and every verb takes --help. The exceptions are resolve-base-branch, whose one argument is a path, and copilot-statusline, which reads the CLI's JSON on stdin.
verify-review, verify-pr and queue-watch: gates.md.schemas/workflow-state.md (the state file), schemas/dev-return.md (the dev completion artifact), schemas/dev-round.md (the fix round's item set), review-finding.md (review and QA findings).Settings covers precedence, key meanings and default lookups. See Gates for review-gate keys.
setup and the scripts need: README.md § Setup. orch-runtime ready names any a duty lacks.systemd-run contains the runtime's detached jobs. Where the manager does not run a unit, the job runs as a setsid group (job-units).If you are running in Codex:
approval required by policy, but AskForApproval is set to Nevermeans an execpolicy rule matched the command, not its shell form. Never retry it and never wait for approval; act per codex-runtime.- Run long waiters, and the repeated
verify-prcalls that verify a pull request's CI, through Waiter launch.- Spawn generated agents with the parameters
.agents/skills/agent-runtime/scripts/agent-runtime subagent spawn --harness codex [CANONICAL_NAME]prints, without a full-history fork, with aDELEGATION:-prefixed<delegation_format>. codex-runtime § Spawning Codex collaboration agents states this for each surface.
If you are running in Pi with
pi-agents-tmux:
- A delegation is one
subagentcall whosetaskargument is the filled<delegation_format>alone. Never prepend role text.- Store the returned
taskIdin workflow state. pi-runtime.
Judge anything (a finding, proposal, fix, issue candidate, plan, directive or result) by first naming the outcome the work exists to drive, then by how well it drives that outcome. Change or drop work that serves a mechanism, a check or a habit but not the outcome.
For each observed miss of a rule, standard or directive, state why it was missed and fix that cause at its existing owner. Correcting only the instance is not enough.
Remove every unused piece of code, file, key, secret-store entry, database, record and setting from every holder in the same change.
Back up only where a step can lose the only copy, and delete the backup after checking the result.
Delegation, planner launch, lifecycle, round closure, coordination and lane output: skill-rules.
Step: line of its lane status file. The records the runtime keeps are its resume point.⤵-marked workflow through the harness mechanism, never inlined.refresh, apply without --plan, and updates --apply, unless the refresh lane passes --lane-refresh.ISSUE_ID differs from the branch, ask: reuse, abort or switch.--items-file, append-file, jq --slurpfile): a hook that reads the command line reads the finding's text as a command.ISSUE_ID starting with issue- is GitHub: TRACKER=github, the issue number ${ISSUE_ID#issue-}, and the repository from the caller's context, else gh repo view --json nameWithOwner.ISSUE_ID keyed directive-[ID] has no tracker: TRACKER=none, no ISSUE_REF and no Closes line. Skip every Linear only and GitHub only step. The work input is the owner note's text (directed-change.md § Who makes it).tracker wins.Then:
TRACKER and ISSUE_REF: #N for GitHub, the Linear identifier otherwise.Closes line renders only that form.Refs [ISSUE_REF] in place of Closes where linear.sh done-when parse --description-file [BODY_FILE] on its live body answers an open post-merge box, a boxes row with post_merge true and checked false, or any errors. With neither, it takes Closes. Refs is no GitHub closing keyword, so the issue stays open at merge. The watch closes an issue the fleet wrote at its last post-merge box (oversee-events.md § Verification), and reports one an outside author wrote once, for a reading by hand (oversee-events.md § verifying-unjudged).Closes, with its post-merge classification reported unavailable; it is no unread item, and no step refuses it, since refusing would hold every GitHub delivery on a consumer without that package.done-when parse exit is a failed read.linear.sh tracker read or write against a GitHub item. linear.sh done-when parse reads no tracker, credential or network, so it classifies a GitHub body too.Durable data lives in workflow state, <state-dir>/items/[ID]/workflow-state-[ID].json (schemas/workflow-state.md). Read and write it through the orch-runtime state verbs or the typed op request a step names, never by inline substitution.
tmp/.tmp/ in every consumer.docs/ holds tracked repository content and never takes a kendex ignore rule.agents/planner.md § Plan Artifacts. For a research report path, follow the selected research workflow.After compaction:
The finding schema, routing, disposition and the issue audit pipeline: reviewer's Review pipeline.
vanillagreencom/kendex
73c7d8e
agent-runtimeagent-runtime subagentagent-runtime subagent spawnghgh apigh repogh repo viewgh searchgh search codegitgit diffgit fetchgit loggit pushgit rev-parsegit tagjqkendexkendex reportlane-maillane-mail asklane-mail drainlane-mail eventslane-mail inboxlane-mail noticelane-mail pendinglane-mail resolvelane-mail sendlane-mail waitlane-mail watchlinear.shlinear.sh done-whenlinear.sh done-when parseorch-envorch-runtimeorch-runtime hostorch-runtime host resolveorch-runtime oporch-runtime prorch-runtime pr orderorch-runtime readyorch-runtime stateorch-runtime state head-budgetorch-runtime state head-budget resetorch-runtime state head-budget takeorch-runtime state post-pr-stoporch-runtime state post-pr-stop clearorch-runtime state post-pr-stop recordorch-runtime state post-pr-stop record-if-emptypublish-npmsetsidsetupsync-basesystemd-runworktreeworktree createbase-freshnesscopilot-statuslinegit-contextlane-host-sshlane-markerpost-mergeresolve-base-branchagent-runtimeCodex CLIGitGitHub CLI (gh)GitHub integrationharness file-write tooljqlane-maillinear integrationorch-runtimePiworktree integrationIf you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.