Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion personal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ network hosts, `github.com` and `registry.npmjs.org`, for that command.

```text
~/.agents/skills/
paseo-first-mate/ the author's own skill (version 1.5.0), its references, and two helper scripts
paseo-first-mate/ the author's own skill (version 1.6.0), its references, and two helper scripts
SKILL.md
references/*.md longer procedures the skill links to (delegation, status doc,
handoff, host commands, stacking, cross-PR checks)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,11 @@ agent watch by the caller's `paseo.parent-agent-id` label instead of the agent's
name, and agent/permission watching is opt-in and off by default (`agents on` /
`permits on`). The kit's shape is unchanged: still files only, no commands, no
egress.

## Update 2026-11-26: skill 1.6.0

The snapshot moved to skill version 1.6.0. `SKILL.md` gains section 12: a compact
state checkpoint (active owner, next blocking decision, CI and dependency state,
next action) before delegating or relaying a significant follow-up, and a
repeated-action stop rule. Text only; the scripts and the kit's shape are
unchanged, and `scripts/verify` now checks that the checkpoint fields remain.
53 changes: 50 additions & 3 deletions personal/files/home/.agents/skills/paseo-first-mate/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: paseo-first-mate
id: paseo-first-mate
version: "1.5.0"
version: "1.6.0"
title: "Paseo First Mate"
description: "Coordinate a multi-issue engineering effort through isolated Paseo workspaces, structured GitHub metadata, dependency-aware delivery, change-detecting follow-up, and a durable handoff."
type: skill
Expand Down Expand Up @@ -71,6 +71,8 @@ portability:
chatgpt: false
generic_llm: false
changelog:
- version: "1.6.0"
changes: "Add a compact state checkpoint (active owner, next blocking decision, CI and dependency state, next action) required before delegating or relaying a significant follow-up, and a repeated-action stop rule: pause, read the checkpoint, and say why the next action differs before repeating a discretionary status check or delegation. Observed coordination sessions grew costly through repeated handoffs, status narration, and repeated actions. No authority or safety rule changes."
- version: "1.5.0"
changes: "Wait loop made hard to lose: a first-command-every-turn rule, an hourly heartbeat backstop as part of the default procedure, `status` shows the age of the last detector run and warns when it is stale, and a cap expiry prints one line (default cap now 8 hours). Detector assets: two-phase save (`--peek`/`--commit`) so a killed loop reports a change again instead of losing it, flock-serialized local state, optional own-login filter (off by default), merge-state collapse with UNKNOWN retry, auto-prune of merged and closed items, current head and stale-review marker, absolute `FIRST_MATE_DIR`; offline tests in the kit. SKILL.md: Secrets section, reporting rules and a status doc, credential-limit and host-command pattern, permission-prompt handling, coordinator successor procedure, delegation prompt rules, gh-stack stacking, and a cross-PR checklist, the long ones in `references/`."
- version: "1.4.0"
Expand Down Expand Up @@ -656,6 +658,7 @@ Updated: YYYY-MM-DD HH:MM UTC
## Operating Rules
## Controls
## Current Coordination State
(first lines: the checkpoint, section 12)
## Completed Work
## Critical Path
## Parallel Work
Expand All @@ -676,8 +679,8 @@ Updated: YYYY-MM-DD HH:MM UTC
loop command with its absolute path, interval and cap, the heartbeat ID and cron,
schedule status (or "not visible"),
agent cap, coordinator and delegated models, permission setup per workspace.
- **Current Coordination State:** the first section read after each wake-up. Keep the
whole file near 200 lines.
- **Current Coordination State:** the first section read after each wake-up; it
starts with the checkpoint (section 12). Keep the whole file near 200 lines.
- **Wait Log:** short dated entries only. Clear it periodically: fold
durable facts into the state sections, save a gitignored backup under
`tmp/archive/`, then empty the log.
Expand Down Expand Up @@ -752,6 +755,47 @@ After upstream merges:
Do not declare the milestone complete until production wiring, downstream
consumers, current-head CI, review, and live evidence agree.

### 12. Checkpoint Before Delegating, and Stop on Repetition

Long coordination sessions grow costly when the coordinator re-narrates status and
repeats the same check or hand-off. Two rules keep each step tied to current state.
Neither grants authority: delivery levels, invariants (including invariant 12: a
non-coordinator neither writes the checkpoint nor delegates), and user approvals
apply as written. Neither delays a direct answer to the user.

**Compact state checkpoint.** Before you delegate, or relay a significant
follow-up to an agent or the user, write or refresh this block as the first lines of
`Current Coordination State` in the handoff:

```text
Checkpoint (UTC time, evidence: verified | hypothesis | unverified)
- Active owner: agent or person holding the work, workspace, delivery level
- Next blocking decision: who must decide what, or "none"
- CI / dependency state: exact-head checks, merge guards, upstream items
- Next action: per active owner, the one action, who takes it, and the trigger
```

Keep it to these four fields, a few lines, replaced in place and not appended. Base
it on state you read this turn, and label what you did not read. A follow-up that
is not in the checkpoint's next action needs the checkpoint updated first. Put the
checkpoint's relevant lines, not a history, in the delegation prompt.

**Repeated-action stop rule.** Before you repeat a status check, a wait, a
delegation, or a relay of the same content, stop and reread the checkpoint, then
state in one sentence what changed or why this action differs from the last one. Do
the action only if that sentence names new evidence (a notice, a changed head, a
new decision, a different target, or an agent that went idle or finished without
reporting). Otherwise do not repeat it: end the turn, ask the user for the missing
decision, or escalate the blocker. Do not send the same task again to an agent that
is still running its prior prompt; read its status first (section 5). An idle agent
that has not reported is new evidence, and the section 5 nudge is allowed. A
repeated action with no stated difference is a stall, not progress.

The rule covers discretionary re-checks, re-delegations, and re-relays. It does not
cover the Loop Rule's first-command `status` and restart, the scheduled check on a
wake-up, the heartbeat, or the quiet wake-up end-turn (section 8). A quiet wake-up
does not read the checkpoint.

## Reporting

Keep chat short and put the state in a file the user can leave open.
Expand Down Expand Up @@ -871,6 +915,8 @@ Before declaring coordination complete, verify:
this turn before any statement about the loop.
- The wait loop and its heartbeat are stopped, and the state file cleared, when
coordination ends.
- The checkpoint was current before each delegation and significant relay, and no
discretionary action was repeated without a stated difference (section 12).

## Troubleshooting

Expand All @@ -889,6 +935,7 @@ Before declaring coordination complete, verify:
| A forked session inherits "wait loop running" from the handoff | Treat it as unverified. The fork is a non-coordinator: no loop, read-only `--show`, and ask the user before taking over. |
| Start exits 5 (another owner holds the loop) | Do not force it. Ask the user who the coordinator is; use `take-over` only on their word. |
| A quiet turn fills with empty tool calls | Stop. Run the check once and end the turn (section 8). |
| Repeated status checks, hand-offs, or the same delegation with no new evidence | Stop. Reread the checkpoint, state what differs, or end the turn or ask the user (section 12). |
| Host-run script stalls with processes in state `T` | Job control froze the child. Use `timeout --foreground` and show live output. |
| Reviewer's change request remains after the fix | Reply with the commits and wait for re-review; a push does not clear it. |
| Release PR has no checks | Workflow-token PRs may not trigger them. Ask the user: exempt or trigger manually. |
Expand Down
7 changes: 7 additions & 0 deletions personal/scripts/verify
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ for asset in first-mate-check.py first-mate-wait.sh; do
fi
done

# The compact checkpoint and repeated-action stop rule must stay in section 12 of the skill.
cp_bad=0
for needle in 'Active owner' 'Next blocking decision' 'CI / dependency state' 'Next action' 'Repeated-action stop rule'; do
sed -n '/^### 12\. Checkpoint Before Delegating/,/^## Reporting/p' "$SKILL_MD" | grep -qF -- "$needle" || { bad "SKILL.md lost checkpoint element: $needle"; cp_bad=1; }
done
[ "$cp_bad" -eq 0 ] && ok "SKILL.md keeps the state checkpoint fields and the repeated-action stop rule"

info "3b. Vendored Pocock skills match their lock file"
# vendor/mattpocock-skills.json pins the upstream commit and a sha256 per shipped
# file. The set of vendored files must equal the lock's, byte for byte, so a
Expand Down
Loading