Skip to content
Back to skills

Using Wollipog

ASecurity

Operate Wollipog sessions from inside an agent session through the injected CLI or the general Wollipog MCP server.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 5, 2026
ai-agentsrustgoshellbashrailstestinggitapidatabasesecurity

Works with

  • claude code
  • cursor
  • terminal
  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add picoduck/wollipog --skill using-wollipog --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Using Wollipog?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Using Wollipog
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/picoduck-using-wollipog/badge)](https://www.skillsdirectory.com/skills/picoduck-using-wollipog)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: using-wollipog
description: Operate Wollipog sessions from inside an agent session through the injected CLI or the general Wollipog MCP server.
---

# Using Wollipog

For campaign authority, read [Campaign Authority Preflight](references/campaign-authority.md).
It covers effective mode/boundary, exact decision owners, unresolved human gates, and evidence
upload/provider disclosure; it does not authorize a campaign or change installed policies.

Use the `wollipog` command when it is on `PATH`. A Wollipog-hosted session supplies
`WOLLIPOG_CONTROL_PLANE_URL`, `WOLLIPOG_SESSION_ID`, and a protected token file automatically; do
not print, copy, or pass that token on the command line.

Core commands:

```text
wollipog session list --json
wollipog session get <session-id> --json
wollipog session events <session-id> [--after <seq> [--event-epoch <n>]] [--limit <n>] --json
wollipog session capabilities --runner <id> --agent <id> [--offset <n>] [--limit <n>] [--include-hidden] --json
wollipog session capabilities --runner <id> --agent <id> --model <id> --json
wollipog session create --runner <id> --agent <id> --workspace <id> --prompt <task> [--model <id>] [--effort <level>] [--provider-account <account-ref>] --json
wollipog session accounts --runner <id> --agent <id> [--workspace <id>] [--model <id>] --json
wollipog session prompt <session-id> <message> --json
wollipog session wait <session-id> --for input_required,completed,failed,stopped --json
wollipog session stop <session-id> --json
wollipog session unarchive <session-id> --json
wollipog session stop-job <session-id> <job-id> --json
wollipog session release-hold <session-id> <hold-id> --json
wollipog pr wait <number|owner/name#number|host/group/project!iid|url> [--head <sha>] [--timeout <ms>] --json
wollipog pr closures <number|owner/name#number|host/group/project!iid|url> [--intended <issue>]... --json
wollipog pr closures --file <description.md> [--repo <owner/name|gitlab-host/group/project>] [--intended <issue>]... --json
wollipog review session run --repo <owner/name|gitlab-host/group/project> --pr <number> --head <sha> --brief-file <path> [--full-reason <text>] --json
wollipog review session get <review-session-id> --json
wollipog artifact attach --file <absolute-path> [--name <display-name>] --json
wollipog automation request --proposal '<json>' --json
wollipog automation get <occurrence-id> --json
wollipog automation execute <occurrence-id> --digest <resource-digest> --json
wollipog location-switch request --request '<json>' --json
wollipog location-switch get <occurrence-id> --json
wollipog location-switch execute <occurrence-id> --digest <resource-digest> --json
wollipog worktree create --branch <name> [--base <ref>] --json
wollipog worktree attach --path <absolute-path> --json
wollipog worktree select --path <absolute-path> --json
wollipog worktree discard --path <absolute-path> --json
wollipog worktree delete-refs [--path <absolute-path>] --ref <ref>=<object-id> [--ref ...] --json
wollipog branch create-temporary --request-id <id> --branch <name> --head <sha> --json
wollipog decision request --request-id <id> --resource-key <key> --snapshot '<json>' --json
wollipog decision get <occurrence-id> [--session <descendant-id>] --json
wollipog decision list [--session <descendant-id>] [--limit <1-100>] [--cursor <occurrence-id>] --json
wollipog decision consume <occurrence-id> --snapshot '<json>' [--action '<json>'] --json
wollipog decision reconcile <occurrence-id> --snapshot '<json>' --json
wollipog decision withdraw <occurrence-id> --reason <text> [--session <child-id>] --json
```

For a verified, fully archived campaign child's refused dirty worktree, only its controlling Orchestrator may use `session unarchive`
(protocol 266+ on control plane and runner). This restores visibility without restarting or deleting
files. Then restart the child and ask it to preserve and clean its work, verify its new final report,
and archive again. Retirement still refuses dirty, unpushed or undelivered work; an older runner
refuses recovery explicitly. Keep scratch reports outside managed worktrees.

Without `--after`, `session events` returns the newest `--limit` events (default 30, maximum 100).
To read a long range, such as everything a child did since a known point, page forward: start with
`--after 0`, or with a seq you already read together with the `eventEpoch` it came from, then repeat
with `--after <lastSeq> --event-epoch <eventEpoch>` from the previous page until `hasMore` is false.
`historyIncomplete` means the control plane has not yet loaded the whole log, so later events may
exist: keep the returned `lastSeq` and retry later instead of treating the page as the end. If the
call fails because the event history was replaced, restart from `--after 0` without the old epoch.
Each event is one summary line capped at 400 characters, so a long message is truncated. The MCP
`get_session_events` tool takes the same `after`, `limit`, and `eventEpoch`.

Every event read stays paged while history hydrates; a short or empty incomplete page is not the
end of the log. Without `--after`, an incomplete result is the newest cached window, so retry
without `--after` for the true newest window once hydration catches up. Direct HTTP reads of
`GET /api/sessions/:id/events` default to 200 events when `limit` is omitted; use `nextAfter` and
`eventEpoch` to continue rather than treating one response as the whole log.
Protocol-222 runners use the bounded reader throughout hydration. Update older CLI/MCP
installations before upgrading a control plane that serves default pages: an old reader's
whole-log fallback can mistake a bounded first page for the newest window. Identifiable old
agent-session fallbacks fail with runner-upgrade guidance; paired-device CLI calls need the
same upgrade-first migration because their human credentials do not identify the reader version.

`session stop-job` (MCP `stop_background_job`) ends one unfinished background job of a child
session by its id, which `session get` lists as `unfinishedBackgroundJobs`. Use it when a job that
never ends, such as a monitor whose condition never fires, keeps a finished sibling's result or a
queued handoff waiting. Only that job ends and is recorded as killed; the child's conversation, its
other jobs, and its queued prompts are kept. If the provider does not confirm the stop in time, the
job is left running; should it end later, it is still recorded as your stop, so do not repeat the
request just to be named. `session stop` and `session restart` end every job
instead: a stop discards the queued prompts, while a restart keeps them and runs them after it.
Current runners resume established Claude Code, Codex App Server and Pi conversations; a never-run
session starts fresh. The session capability `agentCapabilities.restartResumesConversation` reports
whether its next Restart resumes. Older runners omit it and may start fresh, so absence provides no
continuity guarantee. Only the session's owner and its controlling Orchestrator may
use `stop-job`. When a child's queued handoff hold reports `canRelease`, `session release-hold`
(MCP `release_queue_hold`) with the hold's id from `session get` ends every unfinished job at once,
records each as killed by you, and runs the handoff and queued prompts in order without a restart;
it takes the same authority as `stop-job` and is refused if the hold changed since you read it.

An Orchestrator campaign must use the management tools as the policy boundary, not infer authority
from its prompt. Call `get_campaign` at campaign start and after a human changes policy. It returns
the effective behavior, typed decision owners, revision, admission and guardrail limits, child and
follow-up counts, UI-review compatibility, and one of `waiting_human`, `active`,
`complete_needs_cleanup`, `verified_complete`, or `stuck` (older hosts report `blocked` and
`complete_with_handoffs`), without returning credentials. `active` means work is actually running
(listed in `activity.live`); an idle campaign with owed housekeeping is `complete_needs_cleanup`
and lists each item's action in `cleanup`; an idle, unfinished campaign with nothing scheduled is
`stuck` and names what is unfinished in `stuck`. Before either shows, Wollipog tries once to
settle the leftovers itself and may wake the root with one `campaign_idle` continuation naming
them. Its `behavior` holds the Child Harness, Child
Model, Child Effort, Follow-Ups and Completion the next child creation enforces. A person can change
them while the campaign runs; changed values carry the `active_campaign` source and a higher
`behavior.revision`. They apply to children created afterwards, existing children keep their own
configuration, and no agent, the Orchestrator included, can change them.

The Orchestrator role defaults to **Delegate Implementation**: plan, delegate, monitor, and review.
An ordinary request covering several issues does not authorize a campaign or child creation unless
the human explicitly asks for orchestration or delegation. A parent may maintain permitted planning
artifacts directly. If the human explicitly asks the parent to implement, first inspect open child
assignments and pull requests for overlap, then create and select a dedicated Wollipog worktree for
the parent and follow the repository's normal testing, review, UI evidence, merge, and
cleanup workflow. Provider permissions and governance still apply throughout.

**Strict Project Isolation** is a separate human-controlled execution setting. New sessions default
to it being disabled. When enabled, project locations are OS-enforced read-only, the parent works
only in session-private scratch, and parent implementation and self-worktree operations are refused.
The required `bwrap`, Seatbelt, or audited provider boundary is checked before launch. Existing
Orchestrator sessions without an execution-policy field are treated as strict and cannot relax
themselves.

Every child creation receives a server-derived campaign-policy block in its initial assignment.
For Automatic model or effort, use `get_agent_capabilities` and send the selected pair in the same
`create_session` call; fixed values are server-enforced. The block is not blanket approval. Children
must use `request_workflow_decision`, `get_workflow_decision`, and `consume_workflow_decision` for
action approvals: PR merge, merged-branch deletion, follow-up publication, and UI evidence.
For a child's clarification, preference or design choice, use `request_workflow_decision` with
`category: "implementation_question"` and `kind: "question"` (protocol v332). Supply the question,
0–12 suggested options and an optional recommended option. It appears as a normal question, accepts
free text and follows the existing decision owner. Read its answer with `get_workflow_decision`
or the Question Answer prompt; never consume it as an approval. An answer grants no action authority.
Omitting `kind` preserves legacy fixed-choice approval semantics; never omit it to work around an
older peer's refusal. Update the unsupported peers instead.
When those MCP tools are unavailable, use the equivalent self-scoped `wollipog decision request`,
`get`, and `consume` commands above; the exact resource snapshot and optional PR-merge action are
JSON objects. The CLI refuses `--session` for request, consume, and reconcile and exposes no resolution operation.
Read-only `get_workflow_decision` accepts an optional `sessionId`; `list_workflow_decisions`
enumerates pending and approved decisions with optional `sessionId`, `limit`, and `cursor`.
Omitting the target reads self. An Orchestrator can target an accessible descendant, with access
to both sessions required. Exact reads include terminal states; a 404 never proves consumption.
Follow `nextCursor` until absent. Pages reflect current state, so decisions settled during paging
may disappear; read a known occurrence exactly when its outcome matters.
Descendant reads and lists require control plane protocol v214. Older runners without the tool
can use an updated CLI or the read-only HTTP endpoints
`GET /api/sessions/:id/workflow-decisions/:occurrenceId` and
`GET /api/sessions/:id/workflow-decisions?limit=50&cursor=<occurrence-id>` with their existing
session credential where a token is provisioned. Provider-isolated sessions hold only a runner
relay key, which cannot authenticate direct HTTP calls; upgrade the runner/CLI for the tools rather
than seeking a bearer token. Older control planes expose only pending requests through
`list_descendant_requests`; update them for authoritative descendant state inspection.
Only the current owner may resolve the exact pending occurrence.

For an unnecessary pending human-owned `review_round_extension`, the controlling Orchestrator
may instead call `withdraw_descendant_workflow_decision` with the child's `sessionId`, the exact
`occurrenceId`, and a nonempty `reason` explaining the withdrawal and giving the child's next
instructions (control plane v265+). It removes only that request, audits the Orchestrator's
withdrawal, and delivers the reason through the durable resume path without stopping or restarting
the child. The decision reads `revoked` with `withdrawal` provenance; it grants no approval and
cannot be consumed. Approved decisions and categories not designated for withdrawal are refused.
Use `get_workflow_decision` for the exact outcome; a request that still needs a person stays theirs.

When a pending or approved decision is no longer needed and was never consumed or armed, retire it
with `withdraw_workflow_decision` (`decision withdraw`) and a nonempty `reason` (control plane
v269+); never consume it with a stale snapshot to have it revoked. Omit `sessionId` to withdraw your
own. A controlling Orchestrator may pass its child's `sessionId` to withdraw one the Orchestrator
owns; a decision a person owns stays the requester's to withdraw. Withdrawal approves and consumes
nothing: the decision reads `revoked` with `withdrawal` naming the withdrawing session and its
reason, it can never be consumed afterwards, and it no longer blocks `verify_campaign_child`. A
child still waiting on a pending decision is resumed with the reason; one already holding an
approval is not woken. Consumed decisions, an armed `pr_merge` (reconcile it instead), and
person-owned issue closure, follow-up admission and automation requests are refused. The requesting
root may withdraw its own pending campaign issue-scope request before a person acts; other scope
requests remain protected. Older control planes may refuse this exception.

Authentication, secrets,
persistent grants, governance changes, budget increases, and tool guardrails remain human-only.
Separate human-established budget authority may permit bounded managed-worker reservations and
allocations; never infer it from a campaign name or use an unmetered worker to evade accounting.
A stop or restart revokes every decision the session has not consumed. After a restart the session
receives a `[Wollipog Session Restart]` message naming each revoked occurrence: do not act on an
earlier approval of it, and request again what you still need.
A Codex App Server child must arm a `pr_merge` with the `consume_workflow_decision` tool or a
standalone literal `"$WOLLIPOG_CLI" decision consume` command, never inside a script, heredoc,
pipe, or other wrapper: only those two forms can be proven during reconciliation.
The `--snapshot` value must be inline literal JSON in single quotes, not command substitution,
a file, a variable, or a heredoc.
If an exact armed PR merge command already succeeded but its approved occurrence remained
unconsumed, use `reconcile_workflow_decision` (or `wollipog decision reconcile`) with that
occurrence's unchanged resource snapshot.
It never reruns the command. For a Codex App Server child it proves the exact completed admission,
provider command, and merged forge head; resume the same App Server session first. A Claude Code
child's enqueue produces no permission receipt in auto or Full Access mode, so call it once the
forge reports the PR merged; its proof is that merged approved head. Treat any unavailable or
mismatched proof as a blocker rather than requesting a replacement approval or replaying the action.
Once the PR reads `MERGED`, report a failed reconciliation as a blocker and never call
`execute_workflow_decision` for that `pr_merge`.
After a same-head re-enqueue, reconcile the occurrence whose admission preceded the enqueue
that landed. If a replacement request superseded the original and stayed unarmed, reconcile the
original with its unchanged snapshot. Wollipog settles the unused replacement when it records
the original merge. When a later occurrence was also armed, reconcile that later occurrence.

If a person enqueued the PR outside the session and the forge reports it merged, use
`reconcile_workflow_decision` with `externalMerge: true` or `wollipog decision reconcile` with
`--external-merge` (control plane v390). Pass the original approved snapshot. The forge must prove
that exact head merged after approval. The tool records the completed merge without arming or
executing any command. Use ordinary reconciliation for commands the child or Wollipog ran.

When a Claude Code child stops with an armed merge, Wollipog revokes the approval and can keep
observing that exact head for up to 24 hours. A merge that lands can be recorded without restarting
the child.

Your provider's own permission check can refuse an approved command (Claude Code's auto-mode
classifier decides inline, for example). Never retry such a command through another shell, a
wrapper, or a permission-mode change. Call `execute_workflow_decision` (or `wollipog decision
execute <occurrence-id> --resource-digest <sha256>`) with the occurrence's `resourceDigest` instead,
and Wollipog performs the one approved forge action itself through your session's forge login
(control plane protocol v284). For a `merged_branch_deletion`, include the merged `pullRequest` and
its `headSha` in the snapshot you request. Wollipog then deletes that exact branch only while its
remote tip is still that head and no open pull request targets it. You can execute the deletion
instead of consuming it, or after a consumed command was refused. For an armed GitHub `pr_merge`,
it runs the canonical pinned enqueue. Read `forgeAction` in the result. A success consumes the
approval once. A refusal that changed nothing leaves it approved for a retry. A stale snapshot
(the tip moved, a dependent pull request opened, or the head or closures changed) revokes it. An
uncertain enqueue is never replayed: reconcile it once the PR reads MERGED.

For a temporary GitHub branch in a live Full Control campaign, protocol 377 adds
`create_temporary_branch` (the `branch create-temporary` CLI command). It creates only a new remote
ref at a commit already contained in the default branch and returns a server-recorded receipt
bound to your campaign, session, repository, branch and created tip. Existing refs are refused.
Reuse a request ID only with identical coordinates; an uncertain creation is never replayed or
claimed as owned. Historical provenance cannot be established from shell output or local Git
metadata, so branches without receipts keep person-owned decisions.
Request temporary deletion with `category:"merged_branch_deletion"`, `merged:false`, repository,
branch, `headSha`, `temporaryReceiptId`, and fresh `dependentPullRequests:{checkedAt,open:[]}`.
Omit merged-PR fields. Clients cannot assert the server-returned `creation` display facts.
Only a receipt belonging to your exact campaign member permits delegation;
the root still approves the typed occurrence. Execute it through `execute_workflow_decision`.
Direct consume is refused for temporary deletion: only managed execution may record the known
external effect and retire its receipt together. Wollipog rechecks that the tip still matches, remains default-contained, and has no open head or
base PR, then compares and deletes that exact tip. A proven deletion retires the receipt.

Keep the campaign work ledger current (control plane protocol v196+; `wollipog campaign …` from the
CLI). Every record lands in the root campaign, including from a nested Orchestrator:

- `record_campaign_plan` upserts work items by a stable key (issue or planned slice) with dispatch
  state, queue position, and dependencies; set `planComplete` once the original scope is listed.
- Pass `campaignWorkItemId` to `create_session` (`session create --work-item`, protocol v220+) so the
  child's attempt is recorded before its first prompt; if the attempt cannot be recorded, no child is
  created.
  Verify the actual client schema. On a Custom host lacking that input, a read-only bootstrap may
  verify configuration before the supported assignment operation binds the original work item;
  select the dedicated worktree before releasing implementation. This fallback is not atomic
  creation and cannot bypass required protected admission. Missing assignment support is a blocker,
  not permission to update the hosting stack or invent an input.
- `assign_campaign_work_item` records which descendant works on an item. Reusing a child for another
  item or moving an item to another child opens a new attempt; earlier attempts keep their
  verification and accounting.
- `update_campaign_work_item` records reported stages, blockers, next actions, cancellations, and
  scope removals, and closes a failed or abandoned attempt with `endAttempt` so the item waits for
  dispatch again. A reported stage is a claim: `merged` does not mark the item delivered. Name the
  item's pull requests in the stage (`pullRequests`); Wollipog observes their GitHub review,
  checks, and merge-queue state separately, through the runner's `gh` login, beside your claim.
  For GitLab merge requests it observes approvals, the head pipeline, and merge-train state
  through the runner's `glab` login, so do not poll `glab` from your own turns to watch them.
- Issue and pull request refs are `{repository, number}`. A GitHub repository is `owner/repo`. A
  GitLab project names its host and full namespace (`gitlab.example.com/group/subgroup/project`),
  never a bare path; `number` is the issue or merge request IID. Older control planes refuse
  GitLab refs, and older runners leave them unobserved.
- `adjudicate_campaign_recommendation` records accepted, rejected, deferred, or duplicate for a
  recorded follow-up; pass `originWorkItemIds` when recording it.
- `get_campaign_work_items` reads the summary and a page or one item. Restart from the first page
  when a cursor is refused because the ledger changed.

These records grant no authority: they never dispatch, publish, merge, or resolve a decision.

Record each proposed follow-up with `record_campaign_follow_up` before starting it. Server-side
repository/title normalization deduplicates recommendations across children. `Recommend Only`
returns `recommend_only_stop` and ends at reporting. `Execute Approved` returns
`requires_typed_gates` only for a unique recommendation; that disposition is not approval, and
publication, UI evidence, merge, and deletion still require their separate
typed decisions plus sanitization, dependency checks, cross-model review, and exact-head CI. An
enqueued pull request remains unfinished until merge-group CI passes and the forge reports actual
`MERGED` state; continue supervising unrelated children while any one child waits for a human gate.

Supervised children watch their own queued pull requests (see Waiting for Pull Request Checks).
Do not watch a child's pull request yourself, run a watcher for it, or hold a turn open for it:
the child wakes on the outcome, and its next turn end reaches you as usual. A child parked with
`park_on_pull_request` shows its watch in `get_campaign` (`parkedChildren`) and `get_session`
(`pullRequestWatch`); its parking turn end sends you no continuation, and the turn end after its
wake does. A lost watch wakes the child with the reason, so it is never left silently. Only when a child
reports that it has no way to wait on its pull request, watch that one with a single model-free
wait (`wait_pull_request`, or a background `wollipog pr wait` that wakes you when it exits) and
prompt the child on `merged`, `queue_ejected`, or `queue_failed`. A prompt queued to a running child
waits for its turn to end; do not rely on mid-turn steering to stop a child already polling.

Once a child is Idle or Completed, use its exact completed report event sequence with
`verify_campaign_child` and attest that follow-ups were recorded. Pass `workItem` (`delivered` or
`incomplete`) to record delivery of the child's assigned work item; idleness, a closed issue, or an
enqueued merge never does. When that cannot record it, such as for a child reused on another item
before it was verified, `record_campaign_work_item_delivery` records delivery from merged pull
requests the forge confirms, or from the child's exact report inside its attempt on the item. When
an unfinished item's next step belongs to a person or an outside party, record a `handoff` with
`update_campaign_work_item` (who, why, and the next action) instead of cancelling it: once every
unfinished item is handed to `human` or `external` and nothing else is pending, the campaign ends
as `complete_needs_cleanup` (`complete_with_handoffs` on older hosts), which is terminal and lists
those items for the owner. `Retain` keeps
it visible.
`Stop and Archive` starts the durable stop/archive operation and automatically requests managed
retirement of each clean, fully delivered runner-owned child worktree when the runner supports it.
Check `get_campaign.cleanupWorktrees`: pending, provider-deferred, and safety-refused paths all
block Verified Complete. Safety-refused paths stay on disk with a per-child reason and are not
retried automatically; resolve their safety condition and explicitly discard them.
An older runner leaves cleanup pending and requires the explicit recovery shown in that reason.

Worktree commands default to `WOLLIPOG_SESSION_ID`; paired-device callers add `--session <id>`.
Creation without `--base` fetches the repository's remote default branch. Use the returned path
for file and Git commands in the current turn; a later provider launch resumes in the selection.
Under a platform sandbox the result's `isolation.writableNow` may be `false`: the live sandbox
cannot write or commit there until the session relaunches in it when the current turn ends. Do not
work around it. Follow `isolation.nextStep`. When `isolation.continuesAfterRelaunch` is `true`, end
the turn with a short note and do not ask the user to send a message: Wollipog relaunches the
session in that worktree and continues the task with one automatic turn.
Discard permanently removes only a runner-owned worktree that is not used by a live provider, is
clean, and has no commits ahead of its upstream. A forge-verified merged head may replace an
upstream deleted with the remote branch when it exactly matches the local head, whatever the pull
request branch is named. On GitHub, a merged pull request in the remote's repository also qualifies
when the local head is an ancestor of that pull request's head, which the runner fetches from the
forge itself: an earlier push of a pull request that later moved on and merged is retirable, while
any local commit outside its history is kept. An unchanged recorded branch may instead prove its stable head is
contained by the current remote-tracking default branch. Discard refuses attached, dirty, other
upstream-less, or unpushed trees. Push a worktree branch with upstream tracking, for example
`git push -u origin HEAD:<branch>`, so the tree stays retirable without forge recovery. In an isolated
session Git cannot record the upstream (see Git in an Isolated Session), so retirement relies on the
forge-verified head above.

Child creation may select a supported model and reasoning effort in the same request. Explicit
values apply before the initial prompt and override saved harness defaults; read the effective pair
back from the creation result or `session get`. Omit `--effort` to retain default resolution. An
explicit effort requires protocol v138, and a current client fails closed against older components
instead of retrying without it.

Use `session capabilities` (the MCP equivalent is `get_agent_capabilities`) before selecting a
child model or effort. It returns paginated installation-specific models, labels per-model versus
harness fallback efforts, distinguishes unavailable discovery from no configurable effort, and
excludes hidden models unless explicitly requested. Follow `page.nextOffset` until `truncated` is
false; creation still revalidates the chosen pair against current discovery.

A Machine's policy picks the provider account for a new session. To choose one yourself, read
`session accounts` (MCP `get_provider_account_selection`, protocol v337) and pass an `accountRef`
whose `canName` is true as `session create --provider-account` (MCP `create_session`
`providerAccountId`). Accounts appear only as these opaque references: an account's id contains its
label, which is personal data, so don't look for it elsewhere or repeat it. `session get` names a
session's account the same way, as `providerAccountRef`. A named account overrides
the policy for that session and is checked again at creation. An account that needs sign-in, can't
run in this agent's environment, or would spend API credits is refused for an agent; ask a person.
A usage limit is what naming overrides, so `reason` reports it even when `canName` is true.

A `PROVIDER_ACCOUNT_CHOICE_REQUIRED` refusal started nothing. Act on its `actions`: name an account
as above, wait until `retryAt`, or relay a sign-in or review to a person.

### Comparing Agents on the Same Task

Call `create_session` once per candidate with the same task as `prompt`. Choose each child's
`agentId`, `model`, `effort` and optional `providerAccountId` independently. Use the default
worktree isolation so each child can make edits without overwriting another's files. Record the
child session IDs, then use `wait_session` and `get_session_events` to read their results. Compare
their reasoning, verification and worktree diffs before choosing which result to use.

Whether an account's plan offers a model isn't known; when you name a model under a
policy the result says so, and if the provider refuses it, name another account.

## Waiting for Pull Request Checks

Wait for a pull request's required checks or merge-queue outcome with one blocking call, not a
polling loop: `wollipog pr wait <pr> --head <reviewed-sha> --timeout <ms> --json`, or the MCP tool
`wait_pull_request`. The runner polls GitHub through this machine's `gh` login, read-only, so no
model request happens while it waits. It returns once with an `outcome` (`checks_passed`,
`checks_failed`, `no_required_checks`, `merged`, `closed`, `queue_failed`, `queue_ejected`,
`head_changed`, or `timeout`) and a bounded summary: head SHA, each required check, merge-queue
position and state, failed jobs with run links, and whether it merged.

- Required checks come from the base branch's rules. One that has not been reported yet is
  `pending`, never passing, so the wait does not end early the way `gh pr checks --required --watch`
  does while an aggregator check is unreported. A base with no required checks returns at once.
- A GitLab merge request works the same way: pass its URL, `<gitlab-host>/group/project!<iid>`, or
  the IID with the project including its host as the repository. The runner reads it through this
  machine's `glab` login and returns when its head pipeline or merge-train pipeline finishes, it
  leaves the train, merges, closes, or its head moves. Only a successful pipeline passes; a skipped
  pipeline, or one waiting for a manual action, returns `checks_blocked`.
- Use the longest timeout one call can survive in your harness (up to 3 hours) and call again on
  `timeout`. A background shell command that wakes you on exit can use the maximum; an MCP call or
  foreground command must finish inside the harness's tool-call limit.
- In Codex, use the `wait_pull_request` MCP tool rather than a shell `pr wait`, which Codex checks on
  through the model. Its per-call limit is 3 hours 1 minute, so any `timeoutMs` up to the 3-hour
  maximum fits. Without the `wollipog` MCP server (an older runner, or your own server under that
  name), Codex's default limit is 5 minutes: keep `timeoutMs` at or below the 4-minute default.
- In Claude Code, the per-call limit of the runner's `wollipog` MCP server is also 3 hours 1 minute.
  It replaces Claude Code's 30-minute limit on a call that sends nothing back, for this server only,
  so any `wait_pull_request` `timeoutMs` up to 3 hours and any `wait_session` `timeoutMs` up to its
  1-hour maximum return the tool's own result. On an older runner, Claude Code aborts any call that
  stays silent for 30 minutes: keep `timeoutMs` at or below 25 minutes (1,500,000).
- Under Codex code mode, where an `exec` tool runs scripts that call other tools, the wait is
  model-free only as a direct tool call. When Codex accepts it, the runner keeps the `wollipog`
  tools outside `exec`, so call `wait_pull_request` as its own tool call, never from a script.
  An `exec` cell that is still running is handed back to you. Each `wait` on the cell, sleep, or
  status message then re-sends the whole conversation as a model request, so polling a long wait
  costs about as much as active work. The tool can still be reachable only from `exec`: with a
  Codex too old for the setting, when your Codex configuration already has its own
  `direct_only_tool_namespaces` list (add `"mcp__wollipog"` to it), or in an Orchestrator that
  starts from a scratch directory (Strict Project Isolation) or runs inside WSL. Then
  make one call from one cell, followed by one `wait` on that cell with `yield_time_ms` as long as
  the wait's own timeout. Do not alternate short waits with sleeps.
- Park during long waits (branch checks, a review, the merge queue): end your turn instead of
  holding it open, whenever something will wake you on the outcome. A finished review session
  delivers its own continuation. For the merge queue, prefer `park_on_pull_request` (below). For
  checks, or the queue where that tool is refused, a harness that wakes you when a
  background command exits can run one background `wollipog pr wait` at the longest timeout it
  allows for background commands; re-arm it once on `timeout`. Where nothing can wake you, make one
  blocking call at the longest timeout your harness survives. Never poll with repeated short waits,
  sleeps, or status reads: every check re-reads the whole conversation.
- The wait grants nothing. Enqueueing, retrying, and merging keep their existing gates. After
  enqueueing, wait again: only `merged` means landed; `queue_failed` means GitHub marked the entry
  unmergeable and `queue_ejected` that it left the queue without merging. A failed merge-group
  check alone keeps the wait going, because GitHub may rebuild the group and still merge it.
- After successful enqueueing and a confirmed queue entry, report it and park on your own entry
  until `merged`, `queue_ejected`, `queue_failed`, `closed`, or `head_changed`. Queues can take
  hours. Where the MCP tool `park_on_pull_request` exists, call it with the pull request and the
  enqueued head, then end your turn: the runner watches the entry through its read-only `gh` login
  with no model requests, and Wollipog prompts you once with the outcome and the same bounded summary
  `wait_pull_request` returns. A runner restart resumes the watch, or the prompt says it was lost.
  Parking again replaces the watch. It covers GitHub only; an older runner or control plane refuses
  it, and then the background or blocking wait above applies. A supervising Orchestrator does not
  watch the entry for you; if you have no way to wait on it, say so in your report and end your turn
  so the parent can. The wake grants nothing. On `merged`, reconcile the armed `pr_merge` if its
  occurrence is still unconsumed, and finish cleanup.
- `queue_ejected` also covers an entry GitHub removed before the call started, for example on a
  merge-group check timeout between two waits: when the latest merge-queue event removed the current
  head and the pull request is still open, `mergeQueueRemoval` gives GitHub's `reason` (such as
  `checks_timed_out`, `failed_checks`, or `manual`) and `removedAt`. Re-enqueueing is your decision,
  under the same gates as the first enqueue. A pull request never enqueued, or one whose head moved
  since the removal, still reports its own checks.
- CLI exit status: 0 for `checks_passed`, `merged`, or `no_required_checks`; 3 for other outcomes;
  124 for `timeout`; 1 when GitHub could not be read.
- Where the command or tool is missing (an older runner) or `gh` cannot read the repository, fall
  back to one long blocking shell loop that sleeps minutes between checks.

## Issue References in Pull Requests

GitHub closes an issue when a merged pull request's description puts a closing keyword (close, fix
or resolve, in any tense or case) directly before the issue's reference, whatever the sentence says:
"does not close #12", "must not auto-close #12" and "doesn't resolve #12's cause" all close #12. An
issue linked in the pull request's Development section closes too.

The same rule covers GitLab merge requests, with a wider pattern. GitLab closes an issue when a merge
request reaches the default branch and its title, description or a commit message puts close, fix,
resolve or implement, in any form ("closing", "fixing", "implements"), before the reference, even
negated, and in code too. One keyword closes every reference in a list: "Closes #1, #2 and
group/project#3" closes all three. An instance may configure its own pattern; GitLab's own list of
the issues a merge request closes then decides.

- Write "Refs #N" for every issue that must stay open, in the description, the title and commit
  messages. Never put a closing verb before such a reference, not even in an example that
  describes this rule; paraphrase it instead.
- Check a draft description before publishing it with `wollipog pr closures --file <draft> --json`,
  and an open pull request with `wollipog pr closures <pr> --json`. A GitLab merge request works the
  same way: name it by URL or `<host>/group/project!<iid>`, or pass `--repo <host>/group/project` with
  `--file`. Pass each issue the merge should close with `--intended`. Exit status 3 lists
  `undeclared` closures and `unmade` declarations; 0 means the merge closes exactly the intended issues.
- A `pr_merge` snapshot names the issues the merge should close in `intendedClosures` (`#N`,
  `owner/repo#N`, or an issue URL; for GitLab `#N`, `group/project#N`, `<host>/group/project#N`, or an
  issue URL on that instance); omit it when the merge must close none. A current runner (GitLab from
  v295) reads the pull or merge request before the decision is created and again before it is armed.
  If the forge would close anything else, or not close a declared issue, the request is refused with
  each reference and its line, and a changed description revokes an approval at consume. Fix the text
  or the declaration and request again. The decision's `closingReferenceCheck` shows its reviewer what
  the merge closes; it is absent ("Not checked") when the child's runner predates the check.
- After the decision is consumed, a current runner keeps reading what the merge would close until it
  lands. Don't edit the description, title or commits of a queued pull or merge request: if what it
  would close changes, Wollipog takes it out of the merge queue or train, the decision stops covering
  it, and you are told why. Fix the text and request a new `pr_merge` for that head. A merge that
  lands closing an issue nobody approved is reported to the campaign's owner.

## Review Sessions

For an explicitly requested contributor review, protocol 363+ supports `mode: "contributor"`
on `request_review_session` (CLI `--mode contributor`). The open PR must target the session's
registered repository, but its head may belong to a fork or another author's branch. The runner
reads authenticated forge metadata and fetches the base repository's PR/MR ref, verifying the
exact requested head; it never fetches a contributor-supplied URL or changes the contributor's
branch. Older machines refuse this mode explicitly.

Contributor mode also accepts `reviewer: {harness: "codex" | "claude-code", model, effort}`
(CLI `--reviewer`, `--model`, `--effort`, supplied together). This selects only the reviewer,
preserving the implementation worker's profile. The selected installation/model/effort must
be available, and existing same-family consent, account policy, budgets and review limits still
apply. Missing profiles are refused without substitution. Omitting selection uses configured
review defaults. Explicit selection must match any captured campaign policy or current
owner-configured review settings; conflicting harness/model/effort requests are refused.
Reviewers retain the managed read-only preset and never execute project code
or load project settings, hooks, skills or MCP configuration. Read the managed session's model,
effort and usage alongside the exact head, validity and findings. Re-read the forge head before
using a result: a moved head needs a new review. Review completion grants no publication,
branch-write or merge authority; those require their own authorization.

Reviewer availability depends on static executable/interpreter trust, required tools and the
native agent catalog. Running sessions, Agent TUIs, stale statuses, worktree leases and old
writer records do not block admission. Every native bubblewrap/Seatbelt launch must protect
reviewer installations read-only or fail with the affected path. A trust refusal still requires
an installation outside session-writable locations (apart from the protected conventional Codex
standalone package). Group-writable paths require a proven user-private group from the system
identity databases; configured remote or unknown membership sources refuse that exception.
The optional `review-writers` state doctor now cleans up diagnostics only, not admission blockers.

Use a review session for the required cross-model review of your own pull request, including from
an isolated campaign child. Push first, then request it through MCP `request_review_session`
(`repository`, `number`, `headSha`, `brief`) or the CLI:

```text
wollipog review session run --repo <owner/name|gitlab-host/group/project> --pr <number> --head <sha> --brief-file <path> --json
```

The runner launches the other model family as its own read-only Wollipog session against a private
checkout of exactly that pushed head. It never writes to your worktree or loads the repository's
settings, hooks, skills or MCP servers. The pull request must be open, from your project's
repository, on one of your own linked managed worktrees' branches, with `headSha` equal to its current pushed head.
On protocol 335+, every owned worktree can be reviewed without selecting it; review requests never
change the selection or the live provider's working directory. Attached worktrees do not qualify
(the existing verified Location-reuse exception still applies).
For a GitLab merge request, `repository` is the project's `<host>/group[/subgroup…]/project` and
`number` its IID; the runner reads it with its own trusted `glab`.
The brief supplies intent, acceptance criteria, applicable invariants and verification already run;
reuse it for later requests. Preserve your workflow's reviewer, isolation and admission requirements.

- Automatic launch worktrees keep their existing identity. If an older session lacks launch proof,
  resume it once so the runner can verify its worktree before requesting a review.
- The request returns `reviewSessionId` at once. Continue independent work, or end your turn and
  wait: a finished review delivers a `[Wollipog Cross-Model Review — …]` continuation once you are
  idle. There is no need to poll mid-turn. On continuation, read `get_review_session` or
  `wollipog review session get <id> --json` for the full `verdict`, `output` report and `findings`.
  Use that read to recover a missing continuation; where continuations are unavailable, poll every
  minute or two until `terminal` is true. `get_session_events` exposes the reviewer's transcript.
- Only a validated, valid report's vote and findings count. After an invalid attempt, request the
  same head again to retry that round within its attempt limit; `verdict.consumed: false` does not
  use an attempt. Preserve invalid attempts and costs. Older runners that return no verdict have
  not supplied a validated
  review. Prove every finding yourself, record its adjudication as your workflow requires, fix only
  verified defects, then commit and push before requesting the next round. Check the actual head:
  `stale` flags a newer review of another head, not every intervening push.
- Reviews of one pull request form a run. The first round reviews it in full; later rounds review
  the changes since the last valid head with its open findings. Add `--full-reason <text>` (MCP
  `fullReason`) only when a full re-review is needed. A rebased or force-pushed head that no longer
  descends from the reviewed head starts a new epoch, reviewing the range-diff with carried
  findings (in full if the earlier commits are unavailable). Each epoch starts with 4 valid rounds,
  each round with 2 counted attempts. Stop after an upvote on the current head; an upvoted or
  unchanged reviewed head is refused. A changed head needs review under the applicable workflow.
- Integrate the base branch with one plain merge commit directly on the reviewed head, with
  nothing else in it (protocol 277). Its round reviews only the merge's effect and does not use
  the epoch's rounds; if the reviewed head was upvoted and the merge leaves the pull request's own
  diff unchanged, the review records an equivalence instead of running a reviewer, and you cite
  that review session for the merge decision. Commit any fix separately, after that review: a fix
  inside the merge, or any commit before its review, makes it an ordinary counted round.
- If an epoch exhausts its rounds, including after an upvote followed by a verified fix at a changed
  head, stop and request a typed
  `review_round_extension` decision, once, using `request_workflow_decision` or `decision request`.
  Use resource key `review_round_extension:<owner/name>#<number>:epoch-<epoch>:rounds-<roundsUsed>`
  and snapshot fields `category`, `repository`, `pullRequest`, `epoch`, `headSha`, `roundsUsed`,
  `blockingFindings` (the last valid report's open blocking count), `extraRounds` (1–4) and `reason`.
  After an upvote, also bind `upvotedHeadSha` to the last valid upvoted head (protocol 237+);
  `headSha` must differ. The granted round and its retries review only that delta, even with
  `fullReason`. An unchanged upvoted head remains refused. A merge still needs a valid review of
  the current head. Stale or superseded grants cannot admit a round; attempts and costs retain
  their normal limits and accounting.
  Read the exact decision's owner and outcome; it is human-owned by default and requires an
  explicit grant to delegate, except that a Full Control Orchestrator owns it within a
  server-enforced cap of extra rounds per pull request. Consume an approval with the unchanged snapshot immediately before
  the matching review request; the next review request also consumes an approved extension.
  An extension adds rounds to that epoch; it does not raise the per-round attempt or cost limits.
  Missing typed support or an exhausted attempt limit is a blocker, not a reason to switch routes.
- Campaign members request their own review sessions through the same interface. Campaign
  charging requires a compatible runner (protocol 232 or later): the server reserves allowance
  before launch and records actual Session usage against the campaign allowance when one exists.
  Exhausted, stopped or unavailable allowances refuse admission with a reason. Original human
  cost ceilings still apply across review attempts. Reviews take no session or child slot.
  Report admission or budget refusals; never use a native subprocess or the bridge to bypass them.
- On protocol 335+, reviews of different pull requests may run concurrently, with one active review
  per pull request. Each review reserves half the unreserved remaining original human requester
  ceiling, when set; campaign reviews also retain their per-review allowance reservation. Older runners require
  selecting the worktree and serializing requests. `review session list` lists them and
  `review session cancel` stops one. A review session takes no messages; request a new one after
  pushing a new head. An upvote grants no merge authority or exemption from exact-head CI.

## Review Session Compatibility and Merge Evidence

The older review bridge and controlled campaign review jobs are retired. Their old tool names
and CLI spellings refuse with review-session guidance. Upgrade unsupported peers; do not launch
a native reviewer to bypass trust, admission, budget or review-limit refusals.

Protocol 254 requires the retirement-aware control plane for new runners. Before upgrading,
finish or cancel legacy jobs using their prior runner and preserve their final receipts and usage.
Upgrade the control plane first, then the runner. New runners refuse unfinished or unverified
legacy execution without changing records or starting a controller. Drained terminal unpriced
receipts permit upgrade and replay unchanged, retaining unknown cost and reservations. Older
runners may not re-send a lost finished result on cancellation; upgrading delivers the historical
receipt without redispatch. Reconnect never redispatches those
jobs. Missing usage remains unknown, with campaign reservations retained. A human must replace
an obsolete controlled-review boundary; this migration never grants new authority or budget.

A `pr_merge` snapshot may optionally cite `reviewSessionId`, the immutable attempt that
upvoted its exact head (protocol 243+). The server checks the requester's own run, repository,
PR, head and valid UPVOTE. A newer valid UPVOTE or DOWNVOTE supersedes it; invalid, cancelled,
failed and unfinished attempts do not. Read the exact decision's server-derived `reviewEvidence`
with `get_workflow_decision` before relying on it. A refusal names the mismatch or superseding
session and head. Citation is optional and grants no merge authority, human approval or passing CI.
Authorization rechecks it immediately before action. Record-only reconciliation of a proven
completed merge preserves the original action without authorizing another one.

## Creating an Automation With Human Approval

The approving session owner must also have the existing automation administration
permissions: owner or admin of the personal control-plane organization. Session
ownership alone does not grant permission to create global automations.

Normal and Orchestrator sessions can propose persistent scheduled work with
`request_automation_creation` (`automation request --proposal '<json>'`). Supply
`requestId`, a stable `resourceKey` for the intended automation, and the complete
AutomationSpec as `spec`: name, five-field cron, IANA timezone, enabled state,
action, missed-run and runner policies, concurrency, finite cost/tool limits and
notification settings. Inspect machines, workspaces and agent capabilities first.

The server prepares the effective configuration and returns a human-owned typed
decision. It creates no automation yet. This approval is never delegated to an
agent, including a Full Control Orchestrator. The human must be able to inspect
the exact prompt, schedule, targets, installation/configuration, policies and
limits before approving. Do not approve your own request or borrow a human's
credential to bypass this gate.

Explicit configuration stays fixed; omitted model, effort and permission settings
are inherited at each normal run. The approval card previews current defaults per
target without persisting them as overrides. In particular, a prompt automation
does not restore a target session's former permission mode after its owner changes
it. Workflow roles and alternate targets keep their independent defaults.

Read the outcome with `get_automation_creation` (`automation get <occurrence-id>`).
After human approval, call `execute_automation_creation` with that occurrence and
its exact `resourceDigest` (`automation execute <id> --digest <digest>`). Proposals
expire after 24 hours and approvals after 30 minutes. Target/configuration drift
or changes to the proposal require fresh human approval; execution accepts no
configuration override. A new request ID with the same resource key replaces an
older unconsumed proposal.

Retry an uncertain proposal with the same request ID and unchanged contents.
Retry uncertain execution with the same occurrence and digest. Creation and its
receipt are atomic: `automationCreationResult` gives the original automation ID,
navigation path, saved spec and time, even after later human edits or deletion.
Never create a replacement merely because the response was lost. Scheduled runs
retain their own permissions, budgets and approval gates. This capability does
not grant general automation administration. If the command/tool is missing or
reports unsupported components, report the limitation; do not invent a command,
broaden credentials or restart the stack hosting you.

## When the Task Belongs to Another Repository

A regular session can be asked to work on an issue or pull request that belongs to another
repository than the one it runs in. Notice it before implementing: compare the repository
the task names with your session's own. When they differ, call `request_location_switch`
(`location-switch request --request '<json>'`) with `requestId`, the task's `repository`
(`owner/name`, or `host/group/project` for GitLab), a one-sentence `reason`, and a `handoff`
that states the task, what is done, any branches or pull requests, and what remains. Use
`trigger` `worktree_attach` or `review` when attaching a worktree or requesting a review is
refused because the repository differs; those refusals say so. When the target repository
already has a branch with this task's work (for example an open pull request's head branch),
name it as `recoverBranch` so the work continues there instead of starting over. If a worktree
of that repository already has the branch checked out and no session uses it, the switch
continues in that worktree as it is, uncommitted changes included; a worktree another session
holds is refused with that session's name, so continue there instead.

The control plane inspects every Location of your Project and shows your person a card with
the verified Locations of that repository, your current Location, and the reasons any
Location could not be used. Only your person chooses: **Switch and Continue** moves this
session to a Location on the same machine, keeping its conversation; **Start a New Session**
continues the task in the chosen Location with your handoff, on this machine or another one;
and **Stay Here** keeps you where you are with your repository and permissions unchanged.
Agent text never approves it. End your turn after requesting; the outcome resumes you. After
approval, call `execute_location_switch` with the occurrence and its `resourceDigest`
(`location-switch execute <id> --digest <digest>`): the Location is verified again, then the
choice is carried out.

- After **Start a New Session**, tell your person where the task continues and stop working on
  it here.
- After **Switch and Continue**, end your turn. When it ends, this session moves into a
  worktree of the target repository (on the branch you named, or a new one), reloads that
  repository's instructions and permissions, and continues the task on its own. Your work in
  the earlier Location stays there. If the switch fails, you stay where you were, and the
  session shows why.

Orchestrators never switch: they stay in their Location and dispatch a child to a Location of
that repository. A child session keeps the repository it was assigned and reports the
mismatch to the session that started it instead. Both are refused by the tool.

Under Full Control a child must run in a Location of a repository in the campaign's
boundary: every verified Location of the campaign's Project, grouped by repository. Any other
machine, folder or ad-hoc path is refused with "Full Control children must use a Location of a
repository in the campaign's boundary". Each child, and every session it starts, works in
exactly one repository: tool approvals are checked against its own worktree, and an effect on
another Location's path is declined. Its pull request gates (merge, extra review rounds, merged
branch deletion) must name a pull request of its own repository and follow that repository's
own checks, merge queue and instructions.

An Orchestrator plans cross-repository work as one work item per repository, with the dependency
recorded in `dependsOnKeys`, dispatches prerequisites first, and never asks one child to change two
repositories. A dependency on an item in another repository is a merge dependency: a merge of any
pull request a work item names, by any campaign session (the Orchestrator included), is refused
with "Merge held until prerequisite pull request … is observed MERGED" until every pull request of
the prerequisite is freshly observed MERGED on its forge, read through a Location of that
repository. `delivered` and enqueued don't count, and neither does a pull request in a repository
outside the campaign's. The approval stays valid and nothing is armed. The refusal parks the session
on that pull request, so it ends its turn; Wollipog wakes it on the merge, and it consumes the same
approval again. If a permission request for an armed merge command is rejected, the merge gained a
hold after arming: end the turn and wait for the wake the same way. A prerequisite closed without
merging, cancelled or removed holds the merge: the work item is blocked, and the child reports that
to its Orchestrator. An armed merge held that way can't be withdrawn and keeps your command tools
blocked; request a new `pr_merge` for the same pull request with the `request_workflow_decision`
tool (not the CLI, which needs the shell), which replaces it. Never merge any pull request except
through its armed `pr_merge`.

## Private Session Artifacts

Session artifacts let authorized users view screenshots and short videos remotely, including when
connected from another device. The runner uploads the file directly to private control-plane
storage; the bytes do not pass through the model context. Attaching does not assign this skill or
change any hosting preference.

Supported managed harnesses receive capability and preference guidance with ordinary tasks after launch or resume.
Native slash-command turns preserve provider input; guidance arrives with the next ordinary task.
Native TUI sessions have no reliable additive mechanism for updating mutable upload preferences;
use explicit task instructions or this opt-in skill there. Awareness alone grants no transfer authority.

Honor the session's **Artifact Uploads** preference and explicit task/project instructions:

- **Manual** is the default. Upload only when the user requests it or applicable project
  instructions authorize it. Discovering the capability grants no upload authority.
- **Use Wollipog Automatically** authorizes relevant task evidence, such as a screenshot documenting
  a UI fix, never arbitrary filesystem files. Explicit hosting requirements still take precedence.
- **Use External Hosting** follows the user's configured external workflow. Do not fall back to
  Wollipog, invent a destination, or provision credentials when that workflow is missing.

Where the session's capability guidance lists the MCP tool, attach a completed file with
`attach_session_artifact` and an **absolute** `path`, optionally a `name`. Otherwise use the injected
CLI (the path must be readable in the session's execution context):

```sh
"$WOLLIPOG_CLI" artifact attach --file /absolute/path/after-desktop.png --name "Desktop After" --json
"$WOLLIPOG_CLI" artifact attach --file /absolute/path/interaction.webm --json
```

On native Windows use the PowerShell launcher form from the section below, followed by
`artifact attach --file <absolute-path> --json`. Never put base64 media into a tool argument.
PNG, JPEG, GIF, and WebP images are limited to **8 MiB** each; MP4 and WebM videos to **32 MiB** each.
Content is validated independently of the filename. Screenshots require a protocol-v169 control
plane; videos require v186. Unsupported contexts and older peers must be updated or use the user's
explicit external workflow; do not invent a working upload command.

A successful attachment returns metadata only: `artifactId`, `mediaType`, `sizeBytes`, and `sha256`.
Cite the returned values exactly, for example in a UI-evidence item with `evidenceId`, `artifactId`,
`mediaType`, and `sha256`. Refer to the Session artifact in your report; it is available in the
Session's artifact panel to authorized users. An artifact id is not a public URL, and attaching a
file does not approve evidence or a merge. External evidence URLs and review rules remain valid.
Attach the exact completed capture you intend to cite. Re-attaching an unchanged identical file
returns the existing artifact; a changed file needs new metadata and any applicable new review.
Keep files within the authorized task scope and respect privacy, retention, and approval policies.

## Git in an Isolated Session

On a native Linux managed worktree, Git can write this worktree, its admin directory and the shared
objects, refs and logs, but not the repository's shared `config`, `packed-refs` or `rr-cache`. Use
ordinary Git, with these exceptions:

- **Pushing:** `git push -u` lands the push and exits 0, but prints `could not lock config file` and
  records no upstream. Prefer `git push origin HEAD:refs/heads/<branch>`.
- **Upstream and config:** `git branch --set-upstream-to` and `git config` writes fail. There is no
  way to set them from inside the session.
- **Branches:** do not leave a selected worktree on another branch. `git switch` works, but the next
  turn is held for worktree recovery until the branch is restored. For new work, use
  `create_worktree` and end the turn.
- **A worktree created this turn:** it cannot be committed in until the session relaunches there.
  Follow `isolation.nextStep`; do not work around it.
- **Fetching:** `git fetch origin main` moves `origin/main` as usual. `git fetch --prune` cannot
  delete refs.
- **Rerere** is turned off in the session, because its shared cache stays read-only. Conflicts are
  resolved by hand each time.
- **Stalled SSH:** this is the network, not the sandbox. Use HTTPS, for example
  `git -c credential.helper= -c 'credential.helper=!gh auth git-credential' fetch https://github.com/<owner>/<repo>.git <ref>`.

## Deleting Refs From an Isolated Session

In a sandboxed session, Git may be unable to delete any ref, because it cannot take
`packed-refs.lock` in the read-only shared Git directory. A `git rebase` or `git cherry-pick` then
prints that lock error yet finishes, but leaves `CHERRY_PICK_HEAD` or `AUTO_MERGE` behind, so
`git status` still reports a cherry-pick in progress; `git cherry-pick --quit`, `git branch -d` and
`git update-ref -d` fail the same way. Do not delete those files by hand. Ask the runner instead,
with `wollipog worktree delete-refs` or the `delete_worktree_refs` MCP tool, giving each ref with
the object id it holds now (`git rev-parse <ref>`):

```text
wollipog worktree delete-refs --ref CHERRY_PICK_HEAD=<object-id> --ref AUTO_MERGE=<object-id> --json
```

It deletes only this session's refs: a worktree's `CHERRY_PICK_HEAD`, `REVERT_HEAD` and
`AUTO_MERGE` (not while a rebase or merge is in progress; after an interrupted cherry-pick
sequence, run `git cherry-pick --quit` first), and `refs/heads/<branch>` or
`refs/remotes/<remote>/<branch>` for a branch Wollipog recorded for this session's worktrees, once
no worktree has it checked out. A changed value deletes nothing; refs already gone are reported as
absent. `--path` names another of this session's worktrees; the default is the selected one. Only
Linux runners with bubblewrap support it; other runners refuse, and then the leftovers stay until a
person removes them. While it deletes a branch, a checkout or commit in another worktree of the
repository can fail briefly on `HEAD.lock` or `index.lock`; retry it. The result lists every
deleted ref with the object id it held.

## Retiring a Worktree

Remove a Wollipog-created worktree only with `wollipog worktree discard` (or the `discard_worktree`
MCP tool). Never run `git worktree remove` against a session-linked path, and never offer it as the
cleanup command in a report: raw Git deletes the directory without telling the control plane, so the
session keeps selecting a path that no longer exists and its next launch refuses to start there.

Discard is deliberately conservative. When the tree is still in use — including the one this
session is running in — it records a durable deferred retirement and reports what provider boundary
it is waiting for. That is not a failure: report the deferred path and reason in the cleanup summary
and leave it alone. The runner resumes retirement after provider exit and removes the worktree only
when its ownership, cleanliness, publication, and pull-request safety checks pass.

A squash-merged branch whose upstream is missing or already deleted still retires when the forge
reports a merged change request whose head is exactly the worktree's tip: a GitHub pull request, or
a GitLab merge request on gitlab.com or on a self-managed host that `glab` is configured for in the
session's context. So deleting the remote branch before or after retirement both work.

If `wollipog` is not on `PATH`, use the injected executable directly on POSIX
hosts and WSL:

```sh
"$WOLLIPOG_CLI" session list --json
```

The POSIX and WSL launcher includes its own re-entry arguments, so
`WOLLIPOG_CLI_ARGS` is empty there: do not parse it, and appending it adds
nothing. On native Windows, including Git Bash sessions, run
this PowerShell form so the runner receives its mode argument. It reads the
injected JSON argument array without copying a launcher path into a prompt:

```powershell
$launcherArgs = @($env:WOLLIPOG_CLI_ARGS | ConvertFrom-Json)
& $env:WOLLIPOG_CLI @launcherArgs session list --json
```

Claude Code and Codex sessions also receive a general `wollipog` MCP server with the same manager
tool schemas. Prefer MCP tools when attached; use the CLI for scripts, CI, ACP, or when a session has
no `wollipog` MCP server. A provider sandbox without network access, such as Codex's default
sandbox, refuses the CLI's loopback connection; there the CLI works only when
`WOLLIPOG_AGENT_CONTROL_RELAY_FIFO` is set, so otherwise use the MCP tools.

The credential is scoped to the current live session and its ownership audience. It may manage
only that session's worktrees. A command may
receive `404` for an out-of-scope resource or `403` for a route outside the fixed agent allowlist.
Never attempt to approve the current session's own permission or governance cards.

## Closing a GitHub Issue

A root Orchestrator (within its human-authorized campaign scope) or a standalone Normal session
(within its verified Project Location repository, control plane and runner protocol v412+) can
propose closing an issue with
`request_github_issue_closure` (`requestId`, `issue`, `reason`: `completed` or `not_planned`,
`explanation`, `evidence`, and an optional exact `comment`). In a campaign with several repositories,
also pass `repository` for an issue outside the launch repository: the root still asks, and the
issue is inspected and closed through a Location of that repository, with that runner's own forge
login. A repository that is not one of the campaign's is refused; ask its owner to add it with
`request_campaign_repository_addition`. The runner derives the repository,
current issue, and related open pull requests; the server includes the assignments of active
children whose work can bear on the issue. A child is left out only when its launch prompt is
recorded, it has an open attempt (from `create_session` or `assign_campaign_work_item`), and every
attempt it has ever had is on a work item that has never tracked the issue and has no follow-up
links. Pass each child's work item at creation so unrelated activity does not revoke the approval;
a prompt that mentions the issue does not bind an unassigned child by itself.
Custom campaigns require a human-owned typed decision. Full Control delegates only when the server
confirms a human-established issue boundary, verified delivered report and actual default-branch
merges, or a supported recorded not-planned disposition. Never infer this authority from a prompt.
The closure is created `pending`, and `close_github_issue` refuses a pending closure. The exact
sequence is:

1. `request_github_issue_closure`.
2. Read the exact decision and its effective owner (`authority`) with `get_workflow_decision`.
3. Approve it. When `authority` is `orchestrator` (Full Control's standing authorization), the
   root approves it itself: call `resolve_descendant_workflow_decision` with `sessionId` set to
   its own session ID, the `occurrenceId`, and `outcome: "approve"`. No person will approve it,
   so do not ask one. When `authority` is `human`, a person approves it in Wollipog; wait
   for that, and never approve it yourself.
4. Execute it with `close_github_issue` with its exact `occurrenceId` and `resourceDigest`.

The CLI equivalents of steps 1, 2 and 4 are:

```text
wollipog issue-closure request --proposal '<json>' --json
wollipog decision get <occurrence-id> --json
wollipog issue-closure execute <occurrence-id> --digest <resource-digest> --json
```

An approved closure does not expire on age alone. The payload, scope, policy revision, authority,
issue-bound child work and freshly read forge evidence must still match; a changed binding is
named in the refusal. A bound child moving to unrelated recorded work does not invalidate unchanged
issue work on protocol 360+. A new child joining the issue or a new unconsumed issue-bound decision
still does; incomplete history retains the stricter binding. Human-owned closures stay human-owned.
On compatible runners an approval received mid-turn uses the existing durable steering lane at a
safe tool boundary; rejected steering retains its queued continuation, and uncertain delivery is
never replayed. Older runners keep queued delivery.

On protocol 360+, an open PR is a closure gap when it closes the issue or belongs to this campaign.
A mere mention by an outside PR is not a gap. Unreadable closing references or campaign history
count the PR as related. Execution repeats these reads before writing; older runners retain the
conservative mention and timeline rule.

For a completed epic proven by in-scope members closed as completed, the server exempts only epic
tracking items: no open attempts, delivered attempts, verification records, delivery records, PRs
or recorded delivery-stage activity. An ended tracking attempt alone does not disqualify an item.
Titles never establish this fact, and incomplete migrated history retains ordinary delivery proof.
After the epic closes through this proof, Campaign Status uses the same test to finish those items.
Never substitute a shell command or generic approval, and never
approve a human-owned request. A root may resolve an eligible Full Control occurrence only from
its server-recorded standing authorization; the server rechecks it when the root resolves. Under
Full Control nobody sees the root's own questions: the server dismisses them unanswered and tells
the root to decide with these typed tools. Read `issueClosureResult`: `closed` and `already_closed`
are verified outcomes. `refused` wrote nothing and used up the approval: its `refusal.reason` and
`refusal.summary` say why and name any pull request that changed, so address that and request a
new closure. `uncertain` means GitHub may have accepted the action. Inspect uncertain outcomes without replaying the comment or closure.
Issue closure does not attest implementation or campaign completion. Unsupported peers, nonlocal
execution targets, or incomplete bounded conflict evidence refuse the operation clearly.


## Decisions the Owner Kept

Root Orchestrators and standalone Normal sessions can ask their human owner structured questions or
request generic Owner Approvals directly through Wollipog:

- Standalone Normal sessions (protocol v412+) route their own dedicated typed approvals (`pr_merge`,
  `merged_branch_deletion`, `follow_up_issue_publication`, `ui_evidence_approval`, `issue_closure`)
  and `request_owner_decision` directly to their authenticated human owner in Inbox and the Session
  Request Dock. Every standalone action approval is strictly human-owned and stays bound to the
  session's verified Project Location repository (or session-owned artifacts for `ui_evidence_approval`).
  Custom campaign roots with Strict Project Isolation disabled use the same owner-routed approach for
  their own work.
- Under Full Control the server dismisses a root Orchestrator's own questions, so asking in chat or
  with a question tool never reaches the person. When the campaign's owner kept a decision for
  themselves (for example a credential design, risk consent to merge a pull request, publishing
  follow-ups, or closing an epic), a root on control plane and runner protocol v281 hands it to them
  as a typed request instead:

- `request_owner_decision` (CLI `wollipog decision ask-owner --request-id <id> --resource-key <key>
  --question <text> [--kind question|approval] --options '<json-array>' [--recommended <option-id>]
  [--material <text>]`) asks the owner. Choose the kind by what the answer does:
  - **Owner Question** (`kind: "question"`, protocol v303): design choices, clarifications and
    preferences. This is the default for anything that does not authorize an exact action. The owner
    sees a normal question with your 0 to 12 suggested options (mark one with `recommendedOptionId`),
    an Other choice and a free-text answer, so they can add nuance, combine options or say "do X,
    but also Y". Their answer (the option chosen, their own words, or both) comes back to you as a
    Wollipog Owner Answer prompt. It grants nothing, and scope, boundary or policy changes never
    revoke it: it ends only when the owner answers or dismisses it, you withdraw it, or a newer
    question under the same `resourceKey` replaces it.
  - **Owner Approval** (`kind: "approval"`, the default when `kind` is omitted): an exact action the
    owner kept that has no typed category, with 2 to 12 explicit options. The chosen option, or Do
    Not Proceed, comes back to you as a Workflow Decision prompt. For a gate that has a typed
    category (a child's `pr_merge`, an issue closure, a publication), file that typed decision or
    hand it over with `hand_workflow_decision_to_owner` instead.

  Put the background in `material`, as Markdown: links, the exact head SHA, check state and what
  each option does. Either kind waits in the owner's Inbox and Campaign Status without stopping your
  turn or other work, and only the owner can answer it. `get_workflow_decision` reads it at any time,
  and you may withdraw your own pending one with `withdraw_workflow_decision`. Full Control asks
  nobody for credentials or sign-in, so a question asking for a value is refused.
- `hand_workflow_decision_to_owner` (CLI `wollipog decision hand-to-owner <occurrence-id> --reason
  <text> [--session <child-id>]`) gives the owner one pending decision you own, such as a child's
  `pr_merge` or your own issue closure. It is one way: you and every child are refused if you try
  to resolve it, and every later request for the same resource in the campaign, under any key or
  after a withdrawal, is the owner's too. A child keeps waiting on it; your own stops holding you.

Neither tool exists for a child or under Custom, where a person already sees the campaign's
requests, and an older runner or control plane refuses them by name. Never decide an owner-kept
decision yourself, and never ask the owner to approve one in chat.

When an installed skill or user-authored instruction keeps a typed gate for a person (for example, consent to a disputed scope change), any requester, child or root and in any mode, files the exact typed decision
anyway and names the rule in `ownerRule` on `request_workflow_decision`: `source` is the file and
`quote` the requirement, on one line (CLI `wollipog decision request ... --owner-rule-source <path>
--owner-rule-quote <text>`; control plane v296). The occurrence is created owner-kept and reaches
the owner's Inbox and Campaign Status with the rule; later requests for the same resource stay the
owner's unless an authenticated campaign-scoped personal-rule approval applies. See
[references/campaign-authority.md](references/campaign-authority.md). Never end a turn with such a
gate only in prose.

## Adding a Repository to a Campaign

A campaign covers the verified repositories of its Project's Locations; `get_campaign` lists them
under `repositoryBoundary`. When recorded work needs a Project repository the campaign does not
cover (most often a follow-up in another repository), a root Orchestrator on protocol v317, in Full
Control or Custom, asks the campaign's owner to add it:

- `request_campaign_repository_addition` (CLI `wollipog campaign repository-addition request --input
  '<json>'`) names one Project Location by id, a one-line reason, and the recorded follow-up or work
  item that needs it. The control plane inspects that Location first; a Location outside the Project
  or one that fails inspection is refused before the owner sees it. The decision is always the
  owner's: nobody acting for the campaign can approve it, and your reason is shown as your words.
  A pending request for the same repository is reused; a declined one is not asked again for the
  same work.
- When the owner approves, call `execute_campaign_repository_addition` (CLI `wollipog campaign
  repository-addition execute <occurrence-id> --digest <digest>`) with the occurrence and its digest.
  It inspects the exact approved Location again and adds its repository at a new boundary revision.
- When the owner declines, record the dependent work as blocked on the owner, never as delivered.

When the owner's first message limited the campaign to other repositories, its launch repository stays
listed but gets no work. To bring it back, request an addition naming one of its Locations, even one
already listed. Its approval adds the repository to the limit and changes no Location.

You cannot create a Location. When no Location of the repository exists in the Project, report that
the work needs one; once the owner adds it, it joins the campaign on its own.

A Location on a runner too old to perform the campaign's gates doesn't join: `repositoryBoundary` lists
it under `excludedLocations` with a reason naming the version it needs, and asking to add its repository
is refused with that reason. A merge, branch deletion, closure or follow-up naming that repository is
refused the same way, with no other login standing in, so don't look for one: report that its runner
needs updating. The refusal holds until a Location of that repository joins, without a new launch: the
owner's own Location joins once its runner updates, and someone else's then waits for the owner's Include
in Campaign. A join revokes what was approved in that repository meanwhile, so request again afterward.
While such a Location's repository hasn't been read yet, every repository the campaign holds no entry
for is refused the same way, naming that Location: report that its runner needs updating so it can be
read, or that the owner can remove the Location from the Project. Removing it revokes what was approved
in those repositories, so request again afterward. The refusal's own text says which way in applies.

## Inspecting and Changing Campaign Issue Scope

Before delegating an epic, use `get_campaign_issue_scope` (CLI: `wollipog issue-scope get --epic <number>`,
with `--repository <owner/name>` for an epic outside the launch repository).
It returns authorized repository-qualified issues grouped by repository under `repositories` (one entry
per campaign repository, the launch repository first, with whether one of its Locations is online), a
revision, recorded work outside scope, and reviewable umbrella/member candidates. Native GitHub sub-issues and leading checklist entries under Units, Members,
Child Issues, Sub-Issues, or Implementation Issues are candidates; dependencies and incidental references
are not members and never grant authority. Inspect candidates and select the intended members.

To recover or extend an existing campaign, use `request_campaign_issue_scope_change` (CLI:
`wollipog issue-scope request --proposal '<json>'`) with `requestId`, `expectedRevision`, `explanation`,
and exact `additions` and `removals`, each an array of `{ "repository": "owner/repo", "number": 123 }`
in any of the campaign's repositories. The same number in two repositories is two separate issues. Each
repository's part is verified through one of its own online Locations; a repository with none online
refuses the whole request by name. A repository outside the campaign is refused with
`repository_outside_boundary` before any runner call: if the campaign's Project has a Location of it,
ask the owner with `request_campaign_repository_addition`, then retry once it is carried out. Custom requires an authenticated human to approve the exact change. In Full Control with a separate
human-established issue boundary, use `lineage: {kind: "epic", epic: <number>}` for verified intended
members (adding `repository` for an epic outside the launch repository; its members must all be in it) or `{kind: "follow_up", publicationOccurrenceId: <id>}` for an exact authorized publication.
A publication the boundary's author or a campaign owner approved as a person under the current
objective also qualifies.

When the owner's first message started a Full Control campaign, you read that message and propose
its scope; the server reads nothing from it. The campaign starts with an empty scope and dispatches
nothing until your initial proposal is admitted, so proposing it is your first campaign action, after
`get_campaign` and the preflight report. Send the issues as `additions` with `proposal`: for each
issue its `origin`, `owner_named` when its number is in the owner's message or `orchestrator_chosen`,
and a one-line `rationale`; `requestedCount`, the number the owner asked for or `null`;
`constraints`, each checkable limit you read ("open", "UI only", "skip anything labeled security");
and `withheldOperations`, operations the message rules out ("fix but don't merge" withholds
`pr_merge`). A proposal may add issues in any of the campaign's repositories. A bare `#12` means the
launch repository, so an issue in another repository counts as `owner_named` only when the message
writes `owner/repo#12` or its URL. When the message limits the work to some of the campaign's
repositories, send its own words for each as `repositoryNames` (["the api repo", "web"]): the server
resolves each by full name, name without the owner, or Location name, and refuses an issue outside
them, now or in a later addition. Admission removes every other repository from the campaign; one comes
back only through `request_campaign_repository_addition`, which its owner decides. If the message names
only other repositories, the launch repository gets no campaign work: place every child in a named one.
The constraint check
judges whether the message really limits the work to them, so never send a repository the message only
mentions or excludes, and never leave out one it limits the work to. Any name that matches none or
several decides nothing for the whole list, so the proposal becomes the owner's one approval. Ranking criteria such as "highest priority" are your call: explain them in each
rationale and in `explanation`, never as constraints. A task that needs no issues proposes no
additions. Deterministic checks run first and refuse, naming the issue and condition: an owner-named
number the message doesn't write, an issue outside the campaign's repositories, a pull request, a
closed issue, one already in scope, one another active campaign holds, one past an explicit Maximum
Issues, and one with a label a Human Required rule names; revise and propose again rather than asking.
A proposal of only owner-named issues that the message writes as issue references (`#12`,
`owner/repo#12` or the issue's URL), with no constraint, withheld operation or other count, returns
an Orchestrator-owned scope change that you resolve and apply yourself. Anything else goes to the
Decision Model's constraint check, which checks only what the owner's words allow (the count, which
issues were asked for rather than mentioned, each stated constraint, omissions and withheld
operations), never priority. Its admit also returns an Orchestrator-owned change. Its refusal names
the question and issue: revise and propose again, since the same issues with another rationale get
the same answer. When it is uncertain or fails, the proposal becomes the owner's one approval, asked
as an Owner Question with your proposal and rationale; proposing the same issues again returns that
same request, and an answer in the owner's own words declines it and reaches you as a prompt. A
stated count must be one the message writes, your chosen issues stay within it (3 when none is
stated), and later additions take the same route within the admitted count.
For the initial proposal, a literal issue range of at most 100 members (hyphen, en dash, em dash,
`..`, "to", "through" or "thru") spends no choice slots: the server normalizes its members to `owner_named` even if you
propose interiors as `orchestrator_chosen`. Both endpoints must be written together for the same
repository; a bare last endpoint inherits the first one's repository. Every proposed range member
still needs the per-issue intent check, or one owner approval if the check cannot decide. Never
include withheld or context-only members. Explicit Maximum Issues and every other floor still apply.

A Custom campaign's first message gets the same propose-then-check treatment, with the authority it
always had and no new person step. When the first message writes an issue number, `create_session`
refuses with `seed_proposal_required` until you propose: call `request_campaign_issue_scope_change`
with exactly the issues the person's message asks the campaign to work on as `additions`, and a
`proposal` in which every issue is `owner_named` with a one-line `rationale`, plus the count,
constraints and withheld operations you read. Never add an issue the message only mentions (as
background, context, an example or something to avoid), and never one you chose: those go through the
person's ordinary scope approval. Propose no additions when the message asks for no issue work. The
server checks every such proposal against the person's own words, the empty one included. When it is
admitted, one issue with sub-issues or checklist members seeds the epic, which the person still
approves (or they choose Continue Without an Epic); otherwise the issues become the campaign's issue
numbers and you delegate. A refusal names the issue and question: revise and propose again. When the
result says the person now decides, wait for their scope approval without proposing again.

A campaign whose stored Scope Grant predates this keeps it. When that grant failed or was uncertain,
propose the issues you chose without lineage: the proposal goes to the owner as one typed approval,
so put your rationale in `explanation`. When it asked the campaign to select issues, propose the open
issues you chose with `lineage: {kind: "selection"}`, additions only, with your ranking in
`explanation`: the same deterministic checks run (and one past the selection count), then the Decision
Model checks the proposal against the owner's stated constraints, never your ranking; an uncertain or
failed check becomes the owner's one typed approval, and proposing the same issues again returns that
same request. For any other addition,
such as an issue the owner asks for mid-run, propose it without lineage: it becomes the owner's one
typed approval, stating any Maximum Issues increase it needs, and the returned occurrence tells you
what to ask the owner to approve in their Inbox or Campaign Status; proposing the same issues again
returns that same request. Lineage that needs a person becomes the same single, person-owned Scope Approval: epic_not_authorized,
follow_ups_not_authorized, publication_unapproved, publication_authority_changed,
publication_approved_under_earlier_boundary, publication_approver_not_owner and selection_not_granted.
The server derives the cause, explains it in plain words and states any Maximum Issues increase.
Keep published follow-up lineage: only server-verified consumed payloads settle their reserved slots
on approval, so Maximum Issues counts the issue once. Denial changes nothing. Fixable errors
(for example follow_up_not_single, publication_not_consumed, publication_already_admitted,
payload_title_mismatch, payload_body_mismatch, payload_labels_mismatch and epic_members_unverified) remain refusals; correct them and retry. payload_read_failed means the published issue could not be read and verified; retry the read. Only trailing body whitespace is ignored; titles and labels stay exact. Older peers may report the generic payload_mismatch refusal.
Never supply an owner-review cause or a settled publication yourself.
Resolution applies and consumes scope atomically; do not separately consume it. A root can resolve
only an eligible occurrence backed by its standing human authorization: when the effective owner is
`orchestrator`, resolve it with `resolve_descendant_workflow_decision` and its own session ID as
`sessionId`; nobody else will.
Pending, denied, stale and replayed proposals leave scope unchanged. After approval, re-read the scope.
Humans can inspect, resolve epic candidates, and request changes in Campaign Status's Authorized Issue Scope.

Scope changes preserve conversation and work history. Removals display affected assignments and revoke
outstanding action decisions; issue closure retains its separate exact decision. Every active
Orchestrator participant must run in a Location of one of the campaign's repositories, and stores only
its own repository's issues; one outside the launch repository needs protocol v313. Updates require protocol v208
on the control plane and participating runners; unsupported peers must be updated and reconnected.
The authoritative revision is persisted on both sides, delivered on reconnect and restart, and checked
again by closure execution. An offline or unsynchronized runner cannot execute a revised closure.
Ledger recording, assignments, ordinary prompts, and epic links never modify authority.

Bounded Full Control issue writes require protocol v217 on every participant. The authorizing human
remains distinct from agent scope dispositions. Related follow-up publication requires a deduplicated,
accepted recommendation with authorized origin work items and exact sanitized repository, title, body
and labels; include `recommendationId` in the workflow request. Review the exact public payload before
resolving. Duplicate/sanitation and lineage checks repeat before one-shot consumption. Read the
published issue back and record it on that recommendation before proposing its scope addition.
Missing issue-boundary authority never turns ledger acceptance or ordinary prose into a grant.
On control plane v373+, an approved publication in your own campaign repository may also use
`execute_workflow_decision`. It consumes the exact approval, creates the issue through that
repository's runner, and reads the approved title, body and labels back from the forge.
While a managed attempt is in progress, uncertain, or has a creation receipt, do not consume it
manually or create the issue yourself, even if readback fails. Retry its managed execution to
observe the existing issue without creating another. Only an idle attempt explicitly recorded as
`refused`, with no `publicationCreatedIssue`, proves nothing was published and may fall back to
ordinary manual consumption in your own repository. Other-repository routing still applies.
Wait for `decision.forgeAction.publicationVerified: true`, with `publicationCreatedIssue` equal to its
`publishedIssue`, before recording that issue
on the accepted recommendation. Linking this verified publication result to the same admitted
follow-up needs no additional admission. Another issue, a title change or unlinking still does.
An older or manual publication without this server proof retains the ordinary admission gate;
never claim the exemption from an agent-written issue number alone.
A follow-up may target any repository of the campaign's boundary, not only its origin's: under Full
Control it is reviewed under the same floors, its duplicate search runs in the target repository
through one of its Locations, and its lineage names both repositories. When that repository isn't the
one you work in, don't consume the approval or create the issue yourself: call
`execute_workflow_decision`, and a Location of that repository creates it with that runner's own login
and records the issue in `decision.forgeAction`. With no capable Location online nothing is published;
retry once one is. After an uncertain answer, calling it again only looks for the issue. Once published and recorded,
propose it as one repository-qualified addition with its follow-up lineage, as for any follow-up; its
payload is read back through that repository's Location. A target outside the boundary
is a person's (`target_outside_boundary`); if it is a repository of the campaign's Project, ask the
owner to add it with `request_campaign_repository_addition` naming the follow-up, then request the
publication again once the addition is carried out.


### Personal Instructions in Full Control

For the authenticated, campaign-scoped personal-rule Owner Approval alternative (v364), follow
[Personal Instructions in Full Control](references/campaign-authority.md#personal-instructions-in-full-control).
Never infer authorship from a path. Repository rules, installed skills, Human Required rules,
Custom and unverifiable sources retain their human gates. The root first reports every exact
rule set aside, its source/quote, categories and approval occurrence; report later confirmations
before relying on them. Each action still requires its own exact typed approval and consumption.

Files in this skill

  • SKILL.md62.5 KB
  • references/campaign-authority.md8.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.