WIP Banzai Codes: add handoff, candidate-summary and PRD actions#205
Draft
madsbf wants to merge 3 commits into
Draft
WIP Banzai Codes: add handoff, candidate-summary and PRD actions#205madsbf wants to merge 3 commits into
madsbf wants to merge 3 commits into
Conversation
Three composite actions supporting the Banzai Codes refinement loop: - banzai/handoff-work-orders: idempotent board scan that creates a linked harness sub-issue for every work order entering "In Progress" - banzai/post-candidate-summary: Codex-generated, PM-facing completion summary (with PR images as proof of work) posted unmarked on the parent work-order issue when a harness issue reaches "Human Review" - banzai/generate-prd: manually dispatched Codex pass that generates or incrementally updates a markdown PRD folder and opens a PR, grounding the define flow in current app behavior Both scanners are one-shot idempotent scans meant for cron wiring, since Projects v2 status changes cannot trigger workflows. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
An issue can sit on multiple Projects v2 boards at once — and the banzai-codes contracts already model a Product board and a Development board for the same work-order issue. Drop the duplicate harness issue and sub-issue linking: - handoff-work-orders now just adds the In Progress work order to the harness board at Todo (membership = idempotency marker; missing status healed, existing status never overwritten) - post-candidate-summary posts the summary on the same issue, with the idempotency marker embedded in the summary comment (a separate marker comment would shadow the candidate in banzai-codes' parser, which keys on its own chat markers only), and then opens the acceptance gate by moving the Product-board status to Acceptance so agent chatter is never surfaced as a premature candidate Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a new
banzai-codes/folder with three composite actions supporting the Banzai Codes refinement loop. A work order is one GitHub issue on two Projects v2 boards (matching the banzai-codes contracts): the Product board tracks the user-facing lifecycle (Define → In Progress → Acceptance → Done) and the Development (harness) board tracks the build pipeline (Ready / Todo / In Progress / Human Review / Merging / Rework / Done). No issues are duplicated; the actions only move board memberships, statuses and comments.banzai-codes/handoff-work-orders(no LLM): one idempotent scan of the Product board. Every open work order in In Progress that isn't on the harness board yet is added there at Todo, where banzai-codes-worker dispatches the coding agent. Board membership is the idempotency marker; a missing initial status is healed, and an existing status is never overwritten.banzai-codes/post-candidate-summary(Codex): scans the harness board for Human Review items, picks the oldest unsummarized one, gathers the issue conversation + linked PR (closing-reference lookup, cross-reference fallback) + all image URLs, and has Codex write a non-technical, PM-facing completion summary with the images embedded as proof of work. The summary is posted on the issue with the idempotency marker (<!-- banzai:summary:done -->) embedded inside the summary comment — banzai-codes treats the most recent comment without one of its own chat markers as the candidate summary, so a separate marker comment would shadow it. After posting, the action opens the acceptance gate by moving the Product-board status to Acceptance, which also guarantees the build agent's intermediate comments are never surfaced as a premature candidate. One item per invocation;remaining-countreports the backlog.banzai-codes/generate-prd(Codex, manual dispatch): explores the checked-out app and generates/incrementally updates a PRD as a folder of markdown files (docs/prd/:index.mdoverview + one file per feature area, no file paths or code snippets so it survives refactors). A scope guard fails the run if anything outside the PRD folder changed; the result is force-pushed to a fixedbanzai/prd-updatebranch and opened/updated as a single PR. Used to ground Banzai Codes' define flow in current app behavior.Since GitHub Actions cannot trigger on Projects v2 status changes, the two scanners are one-shot idempotent scans meant for
schedule:cron +workflow_dispatch:wiring —banzai-codes/README.mdincludes a complete consumer pipeline workflow, token requirements (GitHub App installation token with org Projects RW + Issues RW; defaultgithub.tokenwon't work for board scans) and the status-name contract shared with banzai-codes and banzai-codes-worker.Codex invocation mirrors doright's reusable workflows (
openai/codex-action@v1,gpt-5.4, prompt built via github-script, output fromfinal-message).Motivation and Context
Closes the loop between the Banzai Codes Refinement Studio and the harness execution pipeline: published work orders flow onto the harness board automatically, completed builds flow back as PM-readable candidate summaries at the review gate, and the define flow can be grounded in a maintained PRD of the existing app.
Screenshots (if appropriate):
Types of changes
🤖 Generated with Claude Code