THE AGENT SIGNAL LAB

Try Planning with Files v3.29.3: test a bounded Stop gate

Exercise the shell checker against a synthetic plan with one active and one pending phase. Observe when it requests another turn, allows stopping, or renews the block budget.

20–30 minutes (reader-controlled)Hands-on guideChecked 30 November 2026
Download the Markdown guide

30 November 2026 · Agent Signal · SOURCE-REVIEWED / NOT EXECUTED

What you will test

The November 28 release uses changes in phase counts, progress log lines and worker ledger lines to decide whether an active plan should receive another turn. A block is a request for continuation, not proof that a task is safe or done. This lab isolates the deterministic shell script from any coding agent. No model or real task is involved.

Prerequisites and cost

Use a disposable Linux shell with Git, Bash, awk, sed, grep, mktemp and core utilities. No API keys, agent account, paid services or model downloads. The public MIT-licensed checkout is the only network download. Allow 20–30 minutes; stop if setup requires new paid infrastructure. Review the tagged source before running it. The examples have not been executed by Agent Signal.

1. Obtain the pinned source

sh
work=$(mktemp -d)
git clone --depth 1 --branch v3.29.3 https://github.com/OthmanAdi/planning-with-files.git "$work/source"
git -C "$work/source" rev-parse --short HEAD
script="$work/source/skills/planning-with-files/scripts/check-complete.sh"
cat "$work/source/LICENSE"
sed -n '1,260p' "$script"
sed -n '261,520p' "$script"
mkdir "$work/trial"
cd "$work/trial"
unset PLANNING_DISABLED PLAN_ID PWF_PLAN_ROOT
export PWF_GATE_CAP=2

Expected short SHA starts with fcd8e8c. If different, stop and inspect the tag. Do not install hooks or execute other repository scripts.

2. Build a synthetic fixture

sh
cat > task_plan.md <<'EOF'
# Task Plan: Synthetic fixture
### Phase 1: Inspect
- **Status:** in_progress
### Phase 2: Verify
- **Status:** pending
EOF
printf '%s\n' 'Started' > progress.md
bash "$script" --validate task_plan.md
bash "$script" --gate task_plan.md </dev/null

Expected: format valid with two phases; advisory message with zero complete, no block JSON. There is no .mode opt-in yet. Default/advisory return codes are not a completion verdict.

3. Test progress and stall behavior

sh
printf '%s\n' gate > .mode
bash "$script" --gate task_plan.md </dev/null | tee case1.txt
bash "$script" --gate task_plan.md </dev/null | tee case2.txt
printf '%s\n' 'Inspected fixture' >> progress.md
bash "$script" --gate task_plan.md </dev/null | tee case3.txt
printf '%s\n' 'Another observation' >> progress.md
bash "$script" --gate task_plan.md </dev/null | tee case4.txt
cat .stop_blocks .gate_last_progress .gate_last_complete

Expected: case 1 block 1/2; case 2 advisory and no-progress message, no block; case 3 block 2/2; case 4 cap reached, no block despite an additional line. Capture stdout, not exit status: the gate exits zero for both block and allow.

4. Complete a phase, test renewal and recursion guard

sh
cat > task_plan.md <<'EOF'
# Task Plan: Synthetic fixture
### Phase 1: Inspect
- **Status:** complete
### Phase 2: Verify
- **Status:** in_progress
EOF
bash "$script" --gate task_plan.md </dev/null | tee case5.txt
printf '%s\n' '{"stop_hook_active":true}' | bash "$script" --gate task_plan.md | tee case6.txt
cat .stop_blocks

Expected: case 5 block 1/2 (budget renewed); case 6 advisory, no block, counter remains 1. To finish the plan, change Phase 2 to complete and rerun. Expected no block. Run a separate acceptance test for the actual task in real use; this checker trusts the plan's status tokens.

5. Score and retain evidence

CaseExpected decisionObserved
No modeNo blockRecord
Initial gateBlock 1/2Record
No progressNo blockRecord
Appended lineBlock 2/2Record
Cap reachedNo blockRecord
Phase completionBlock 1/2Record
Active Stop hookNo blockRecord

Award one point per exact expected decision (7 total). Count a crash or malformed output as failure, a skipped case as untested, never as pass. Record version, OS and all case files. A passing result demonstrates only this fixture and adapter, not semantic progress, task correctness or all agent integrations. A meaningless appended line can also count as progress; the policy is deliberately a proxy.

Troubleshooting

If validation fails, check the exact phase headings and one native status per phase. If all checks are advisory, confirm .mode contains gate, an in_progress phase exists, the environment has no PLANNING_DISABLED flag, and stdin is closed or contains the intended JSON. If results differ, inspect sidecar files and repeat in a fresh trial directory rather than silently deleting state mid-trial. If the cap differs, check PWF_GATE_CAP. If dependencies are missing, record setup failure. Keep synthetic data only; do not enable hooks on real projects based on this lab alone.

Sources and validation

The upstream release, template, checker and license were reviewed on 30 November. The expected output is derived from source, not observed execution. No installation, Actions lab, model call or measured results are claimed.

Get Agent Signal in your inbox

A short daily briefing on AI models, coding agents and research, with a link to the full report and one practical experiment.

Subscribe free →

Confirm your email to subscribe. Unsubscribe at any time.