Files
pipelines/internal/author/skill/references/delivery.md
T
alan 87016ef5dc Engine: check stages, harness-agnostic delivery, read-only enforcement, complete captures
- New `type=check` stage: the server runs a `commands` block (sh -c, per
  command_timeout, workspace env) and routes on pass/fail; per-command status,
  exit code, duration and bounded output are recorded and the failing output is
  the handoff. With delivery=true it is the landing gate (commit leftovers,
  merge moved main, checks in a fresh candidate worktree, fast-forward main).
  Parser/registry, lint (silent guards), format docs, CLI inspect, app graph and
  run detail rendering.
- delivery=true is accepted on every harness (and on check stages).
- permissions.shell on claude stages maps to Bash(cmd) / Bash(prefix:*) rules
  instead of a bare Bash allow; stages without edit that change the workspace
  fail the visit with the changed files listed (allow_workspace_changes=true
  opts out; artifacts, public and harness state dirs are ignored).
- File-change capture: symlinks compared by target, untouched protected files no
  longer make captures partial, untracked caches/dependency/build output left
  out, lockfiles listed without patch, huge files compared by metadata, raised
  patch/line limits. Outcome repair follow-ups are logged and counted on the
  step (control.outcome_repairs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 12:52:16 +00:00

33 lines
1.8 KiB
Markdown

# Delivery
The manager may build, verify, merge, deploy and install within the user's request.
Do not repeatedly ask for steps already authorized. A draft-only or read-only
request does not authorize publication, execution or deployment.
## Source and evidence
Inspect actual source and diffs, run relevant tests and record exact results.
A model summary, committed branch or successful merge is not proof of runtime
behavior. Missing or partial diff capture must be reported as incomplete.
With delivery=true (a model land stage on any harness, or a check stage), the
server checks and lands the candidate, first merging a moved main and
re-checking the merged tree; only a real conflict fails. Direct recovery can complete a reviewed merge without another pipeline.
Keep artifacts under the supplied run/stage artifact directory. Mark unverified
builds as WIP. Verify any download URL serves the real bytes before reporting it.
Do not imply that mocked fixtures or resized-device captures prove live-provider
behavior or a real foldable's posture behavior.
## Runtime and devices
Wait for shared work to quiesce before restarting its service. Back up durable
state, preserve endpoint/configuration, verify the new runtime identity and keep
a rollback path. Do not wipe data or remove credentials to repair deployment.
Respect device ownership and shared-work boundaries. A test-device
authorization does not authorize installation on a personal device. Delivery to a
personal device needs the user's explicit request; preserve app data and verify the
exact artifact. Use the project's supported capture helper for rendered evidence,
not a raw redirect. Verify the fixture connection before capturing, keep its owned
process alive until the required interactions finish, then stop it and await cleanup.