Repository navigation
feat(skills): standardize campaign worktrees, roles, parameters, and a scripted PEW - #1138
Open
sbalabanov wants to merge 1 commit into
Open
sbalabanov wants to merge 1 commit into
sbalabanov wants to merge 1 commit into
Conversation
sbalabanov
force-pushed
the
skill/orchestrate-sdlc-update
branch
3 times, most recently
from
November 25, 2026 18:18
3d48570 to
b9e382f
Compare
sbalabanov
force-pushed
the
skill/orchestrate-sdlc-update
branch
from
November 25, 2026 18:26
b9e382f to
cc4a0ba
Compare
sbalabanov
force-pushed
the
skill/orchestrate-sdlc-update
branch
4 times, most recently
from
November 25, 2026 22:50
20991c3 to
340b22a
Compare
sbalabanov
force-pushed
the
skill/orchestrate-sdlc-update
branch
4 times, most recently
from
November 25, 2026 23:11
5ecb07a to
9707541
Compare
…ripted PEW All orchestration state lives under .sdlc in the main checkout: per-agent worktrees at .sdlc/worktree/<agent-name>, created and removed through a stateless helper, the campaign ledger at .sdlc/campaign.json, and reports and specs in .sdlc/artifact. The skill defines investigator, implementer, and reviewer roles shown by icon in PEW, binds each reviewer to one implementer for its lifetime, takes tz and per-role model parameters, and defaults the display timezone to the machine's zone. PEW is rendered by a script from the campaign ledger and GitHub as a Markdown table that the orchestrator prints unchanged, so no field is dropped or hand-formatted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sbalabanov
force-pushed
the
skill/orchestrate-sdlc-update
branch
from
November 25, 2026 23:17
9707541 to
74203b8
Compare
sbalabanov
marked this pull request as ready for review
November 25, 2026 23:17
This branch has not been deployed
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.
TLDR: all orchestration state moves under
.sdlc/in the main checkout. Each agent gets one worktree at.sdlc/worktree/<agent-name>, managed by a small helper; the ledger is.sdlc/campaign.jsonand reports and specs go in.sdlc/artifact/. The skill defines investigator, implementer and reviewer roles and takestz=and per-role model parameters.PEWis now rendered by a script from the campaign ledger and GitHub, and the orchestrator prints the output unchanged.Summary
PEW.scripts/pew.py(Bazelpew/pew-test) reads the ledger, by default<main checkout>/.sdlc/campaign.json(resolved with the worktree helper's resolver), and reads each listed PR's state, review decision and checks throughgh. It prints a header line (PEW · <date time zone> · watch <off|on until …|stopping>), a Markdown table with one row per non-archived agent, and footnotes.unknown, and a missing model renders asmodel?.[kind](file:///abs/path).passonly when every required check on the current head passed. A mix of skipped and passed shows as ⚪skipped.license/cla, GitHub fetch failures, and the archived-agent count.Merged, with no strikethrough, because Claude Code shows~~as literal tildes.ghis injected, so the tests need no network. A non-zero exit fromgh pr checksis tolerated when it still printed JSON.SKILL.mdPEW section.PEWmeans running the script and printing its output unchanged. If the script fails, the orchestrator reports the error and does not improvise a table. Fields are never dropped for width; only the next-step and last-action phrases are kept short, and a stacked rendering of a wide table is accepted. The section keeps the semantic rules (🙋, the two worker states,Readyis not approval, archival) and states the orchestrator's duty to keep the ledger fields current. Formatting detail now lives in the script.watch.md).agentsis keyed by agent name. The renderer readsrole,model,issue,prs,artifacts(kind to{path, at}),state(working/idle),archived,next_step,last_action,last_updateandauthor_action, plusparameters.display_timezoneandwatch. Legacy field names are not supported.scripts/worktree_control.py(Bazelworktree-control/worktree-control-test) has two commands.CREATE <agent> [--base REF] [--branch NAME]fetches a remote base and adds a worktree at<main checkout>/.sdlc/worktree/<agent>, detached atorigin/mainby default. It refuses a path or branch that already exists.REMOVE <agent>refuses when the caller is inside the worktree, or when the worktree has uncommitted, untracked or ignored files (Bazel'sbazel-*symlinks andMODULE.bazel.lockare exempt). Aftergit fetch --prune originit also requires HEAD to be on anoriginref or its patches to have landed (git cherry). It then runstool/bazel clean --expungein the worktree, removes the worktree, and deletes the local branch withgit branch -d. There is no force flag..sdlcis ignored as a whole by Git, Bazel (.bazelignore),make fmt(the goimports file list and.yamlfmt), and the message-ID linter walker.workflow.mddefines the layout and warns thatgit clean -xin the main checkout deletes the ledger and artifacts.workflow.md). Adds the role definitions and a Worktrees section. Each reviewer is bound to one implementer's work item (reviewsin the ledger). The same reviewer is resumed for every later round and rebinds to a successor implementer. It stays dormant between rounds and is archived together with its implementer, not after each report. The section also bans harness-managed worktree features for campaign work. Reports and specs are saved in.sdlc/artifact/so they outlive worktree removal.SKILL.md).tz=<IANA name or unambiguous abbreviation>setsdisplay_timezone. The default is the machine's zone, withUTCas a disclosed fallback. Durable state stays in UTC.investigator=,implementer=andreviewer=pass a model to the harness's spawn-time model selection. Each agent's concrete model is resolved at spawn and replaced by the agent's self-report.watch-control-sourceis renamedcontrol-sourcebecause it packages all three scripts.Open for the owner
workflow.mdstates this boundary; confirm or strike it.Unknown · ⚪ unknown, and the error appears in a footnote.Test Plan
./tool/bazel test //.agents/skills/orchestrate-sdlc/...passespew-test,watch-control-testandworktree-control-test. Thepewtests cover sort order, Draft with skipped checks, a merged row with no~, an artifact-only agent, multiple PRs, the archived count, missing values, the header time zone (PST, PDT, UTC, JST) and watch states, row times, footnotes, invalid ledgers, and four non-empty cells in every row.make lint,make check-gazelleandmake check-tidypass on a staged tree.PEWlocally from a checkout with an active campaign ledger:./tool/bazel run //.agents/skills/orchestrate-sdlc/scripts:pew(add-- --state /abs/path/campaign.jsonto pick another ledger). I ran it read-only against a live ledger, and checked that the default resolves to the main checkout's.sdlc/campaign.jsonfrom a linked worktree. It needsghauthenticated../tool/bazel run //.agents/skills/orchestrate-sdlc/scripts:worktree-control -- CREATE my-agent --branch my/topic, then... -- REMOVE my-agentafter pushing the branch.🤖 Generated with Claude Code