t3code
t3code copied to clipboard
fix(playbook,ship-queue): wire live LLM challenge runner in playbook CLI and ship-queue, add --help/--ship flags, and fix post-merge ref
Problem
When marscode PR #59 ran its post-merge hook (install-marscode-tools.sh), /home/logan/.local/bin/playbook switched from the legacy Python CLI to the new TypeScript bundle (packages/playbook). That broke playbook workflows on this host:
- No live LLM runner in
playbook challengeCLI:packages/playbook/src/cli.tspassesmodel: nullunless--response FILEis supplied, soplaybook challengecan never execute a real LLM review. Live execution only existed insideapps/server'sPlaybookChallengeService. - Missing CLI flags:
playbook challenge --help(and other subcommands'--help) exits2(Unknown option '--help'), causing legacyship-queue'shouse_declaration_challengeprobe to fail and fall back to a nonexistent path (PLAYBOOK REVIEW: NOT RUN / playbook is not installed on this host).playbook check --shipalso exits2(Unknown option '--ship'). - TypeScript
ship-queuemissing declaration challenge:packages/ship-queue/src/worker.tsdoes not invokedeclaration-challenge, postPLAYBOOK REVIEWcomments on PRs, or print the review block inwatcher.ts. - Stale commit in
scripts/ship/ship-steps.shpost_merge:post_mergechecks outSHIP_QUEUE_BASE_SHA, which under legacyship-queueis the pre-merge base SHA rather than the newly mergedmaincommit.
(intent-audit and map are intentionally retired from playbook per PLAYBOOK.md §5 and §12; those responsibilities moved to individual repos.)
Checklist
- [ ] Implement standalone read-only LLM runner (
packages/playbook/src/challengeRunner.ts) supportinghost-config.json(playbook_challengedefault + fallbacks,challenge_timeout_s,auto:astraCodex resolution,codex/claudeAgent/antigravity/grokread-only CLI execution with bounded total/idle timeouts and process-group cleanup). - [ ] Wire
createCliChallengeModelintopackages/playbook/src/cli.ts(cmdChallenge), add-h/--helpsupport on all subcommands, and accept--shiponcmdCheck. - [ ] Wire advisory
declaration-challengeexecution, idempotent PR review comment posting, andwatcher.tsREVIEWoutput intopackages/ship-queue. - [ ] Fix
scripts/ship/ship-steps.shpost_mergeto fetch and build the newly merged base branch tip rather than a stale pre-mergeSHIP_QUEUE_BASE_SHA. - [ ] Add unit tests and run real end-to-end
playbook challengeverification before shipping.
Filed in the wrong repository by mistake; moved to mellowmarshall/marscode#66. Closing.