Skip to content

v4.15.0 — Autopilot acceptance commands and worker rules

Latest

Choose a tag to compare

@kenspc kenspc released this 30 Oct 08:38
· 1 commit to main since this release

The autopilot reads its acceptance commands more carefully, gains release checks, and passes each worker its prompt on stdin; the worker rules gain four sentences that batches had asked for.

An Acceptance: entry that opens with a code span and has words after it was extracted as a description with no warning, and batches then stopped to ask how to run it; the start now asks about such an entry, and S4 runs a description case as its text describes. A new Release checks: field holds checks S6 runs after its last commit. A Zero diff: path written with a leading ! is left out of the comparison. A prompt passed as an argument showed in ps and pgrep -f, whose patterns then matched the workers; it now arrives on stdin. The rails hook denied redirections after cd <literal> && …, reading the relative target against the call's working directory; it now follows a literal cd.

Compatibility: no CONTEXT key, command, or skill argument changed. A spec without Release checks: or ! paths runs as before. extract-acceptance.sh keeps its first output line and exit codes and adds a second line; zero-diff.sh's count line now reads compared: <n> paths, <m> excluded. run.ps1 now requires PowerShell 7.4 (was 7.3). An older plugin reading a spec with Release checks: ignores the field and names it after the settings line.

What changed

Acceptance and release checks

  • Release checks: in the ## Autopilot section, in Acceptance:'s grammar: extracted at the start in either mode, re-extracted and compared by S6 after its last commit, each run from the repository root; the user report lists each with its exit code, or not run — <why>.
  • extract-acceptance.sh <spec> <out dir> [<field>], with a second output line span-led: ….
  • Phase 0 asks about a span-led Acceptance: entry before any worker launches; a session that cannot ask stops before the first launch, naming each entry.
  • S4 runs a <nn>.case as its text describes and replies with each command it ran and its exit code.
  • "Writing a check": a command is one code span alone before — PASS:; a check over the batch's added lines excludes docs/plans/ and docs/tasks/; a check finds a commit by its subject, never by its position. generate-plan's pre-print check covers both fields.
  • Zero diff: takes ! exclusions (:(exclude,literal) pathspecs, git 1.9 or later) and ignores the GIT_*_PATHSPECS variables that made it compare nothing.

Drivers

  • run.sh and run.ps1 pass the prompt on the worker's stdin, byte for byte, and in no argument. run.ps1 pipes the file's raw bytes, since Start-Process -RedirectStandardInput adds a line end; hence PowerShell 7.4.

Worker rules

  • A question's first line carries the worker's own tag, and the answer repeats it as written.
  • A package the lockfile or the spec names, or a tool the work needs, is fetched by the main session and answered with a path in the workspace.
  • The rails written into a subagent prompt are the full text; a summary with a path does not meet the rule.
  • S4w names each screenshot <batch>-walk-… and moves it by its exact name.

Rails hook

  • A redirection's relative target is resolved against the directory a top-level literal cd moved to, where the hook can be sure the cd ran; a symlinked target is tracked by its physical path. Where it cannot be sure — a failed or uncertain cd, a cd in a subshell, a pipeline, or a compound body — the reading is the one before this release. Known gaps that are no looser than before (a cd around ||, a cd inside a compound body, an exported CDPATH) are roadmap item 42.

Upgrading

claude plugin marketplace update kenspc-claude-plugin
claude plugin update kenspc@kenspc-claude-plugin

Restart the session afterwards. On Windows, check pwsh --version is 7.4 or later before the next autopilot run.

Verification

  • Pre-flight on the release tree: the effort-override diff, claude plugin validate --strict on the marketplace and the plugin, and check-all.sh --self-test (guards run: 17, self-tests run: 16), each exit 0.
  • The release smoke was the batch's acceptance, cases A1–A5 (docs/dry-runs/autopilot-acceptance-and-worker-rules-acceptance.md): the guards and both drivers' self-tests, a nested batch that stopped on a span-led entry, a nested batch that ran a description case and a release check, the process list holding no prompt text, and the rails hook live in a worker.
  • Not exercised: run.ps1 on Windows (verified with pwsh 7.6.7 on macOS only), the network-fetch route, and S4w screenshot naming.