- Specify 4 GitHub-native core skills (projects, implement, code-review, verify) and GitHub-updated reconcile-docs - Define project_number-only AGENTS.md contract with owner.projectV2/issue.projectItems dynamic GraphQL resolution - Specify .git-common-dir/implement-state/ plain-text checkpointing, build_review.py payload builder, and atomic branch cutover
53 KiB
GitHub-Centered Delivery Ecosystem Redesign
- Author: kiskaadee
- Status: Proposed
- Date: 2026-11-25
Overview
This design migrates the primary planning, issue tracking, and pull request delivery workflows in kiskaadee/skills from a homelab-hosted Gitea instance (gt) to GitHub Projects v2 (gh CLI and gh api). Gitea remains an out-of-band pull mirror of GitHub repositories (gt-usage stays installed as a standalone utility outside the delivery loop). GitHub-hosted runners serve as the default CI environment for both public and private repositories; an optional self-hosted github_runner on server-local (the homelab host) is available per repository only when a private repo approaches the 2,000 free minutes/month limit or requires homelab resources.
In parallel, the legacy Gitea delivery skills (gitea-plan, implement-slice, verify-slice, gitea-pr) are refactored into 4 GitHub-native core skills (projects, implement, code-review, verify), plus an updated reconcile-docs skill. Every SKILL.md must adhere to skills/build-skill/references/skeleton.md (standardized frontmatter, trigger structure, and Suggested Next Step: routing), stay <= 80 lines, enforce one owner per rule, and will be verified by tests/fixtures/test_skills_behavioral_contracts.py and install.sh.
The Problem
The current skill ecosystem (gitea-plan, implement-slice, code-review, verify-slice, gitea-pr, reconcile-docs) is tightly coupled to a self-hosted Gitea instance on server-local, and suffers from four operational pain points:
- Homelab uptime blocks all planning and PR work: Whenever
server-localis offline (power loss, maintenance, or residential ISP WAN IP rotation with ~5-minute DNS propagation lag), issue creation, board transitions, PR reviews, and merges halt. Moving Gitea to a paid VPS would solve uptime, but adds recurring hosting cost and external server maintenance. - Tangled skill ownership and ceremony:
implement-slicecurrently mixes preflight, decomposition, worker delegation, inlineverify-slice, inlinecode-review, Gitea time tracking, board moves, and integration routing. Meanwhile,gitea-prsplits PR creation (post-QA) from PR triage and closeout, andreconcile-docshardcodes Giteagtqueries. - Broken cross-pass review traceability:
code-reviewresets itsCR-01..CR-NNfinding counter on every review pass of the same PR, causing ID collisions across rework rounds, omitsRV-*(Runtime Verification) checks from the published PR review body so a fresh verification session cannot recover them, and risks422 Unprocessable Entityfailures when inline comments target deleted or non-diff lines. - Unbounded subagent hangs and installer blind spots: Subagents occasionally hang for 8+ minutes on interactive CLI prompts (
/dev/ttyor stdin) or stalled network/lock calls with no OS-level timeout guard. In addition,install.sh checkunconditionally exits0even when required skills are missing or obsolete symlinks remain, andinstall.shdoes not prune dangling symlinks pointing into the skills repository.
Goals
- Decouple planning and PR workflows from homelab uptime: All 4 core delivery skills (
projects,implement,code-review,verify) andreconcile-docs's GitHub read path operate natively against GitHub (ghCLI andgh api), validating GitHub repository identity viagh repo view --json urlon forge-dependent operations. - Simplify the delivery loop to 4 core skills with clear single ownership:
projectsowns outer-loop goals, milestones/due dates, vertical-slice issues, and the canonical 5-column board state machine (Backlog -> Ready -> Work in Progress -> Review -> Completed).implementabsorbs Step 1 delta-test decomposition and a sole-owned branch-scoped plain-texttodo.txt-format checkpoint under$(git rev-parse --git-common-dir)/implement-state/<branch_slug>.txt(read/written directly without invokingtuxedo), executes slices with adaptive subagent isolation (1-workerfast path for trivial<= 2-file fixes;test-writerandcode-writerwith per-task lint/typecheck/docstring hygiene for multi-task slices), and publishes/syncs a Draft PR while keeping the board card inWork in Progress.code-reviewperforms post-Draft-PR 4-axis static review (including non-documentation-drift checks) with persistent monotonic per-PRCR-XXIDs, deterministicbuild_review.pypayload validation,verdict=ready|needs_rework+RV-*runtime checks in the review body, and split rework routing.verifyowns black-box runtime QA, remote CI inspection,verdict=ready/head_shavalidation, Draft PR promotion (gh pr ready, transitioningWork in Progress -> Review), human-gated merge, post-mergeReview -> Completedtransition, and drift chaining.
- Prevent hung subagent CLI calls deterministically: Enforce OS-level non-interactive command wrapping (
setsid timeout -k 10 <N>s <cmd> < /dev/null) with tiered timeouts inside worker prompts. - Maintain strict repository invariants and atomic branch cutover: Every
SKILL.mdstays<= 80lines with zero em-dashes, zero/home/<user>paths, and zero secrets;install.shreturns non-zero oncheckfailures and prunes repo-scoped dangling symlinks;tests/fixtures/test_skills_behavioral_contracts.pyandtests/fixtures/run_regression.shpass; cutover executes atomically on a dedicated feature branch validated against one real private-repo slice before merging tomain.
Non-Goals
- Dual-forge adapter layers in core skills: Gitea is strictly an out-of-band pull mirror;
gt-usageremains installed as an independent standalone utility and is not wired intoprojects,implement,code-review,verify, orreconcile-docs. - Standalone
gh-usageskill: StandardghCLI flags do not require a dedicated skill; the 3 non-obviousgh api/GraphQL recipes (Projects v2 GraphQL Node IDs, REST milestones, commit-pinned inline reviews + paginatedCR-XXlookup) live inskills/projects/references/andskills/code-review/references/. - Renaming
git-managertogit: Excluded to avoid touching 17+ files (including 7 unrelated skills) and colliding with thegitCLI binary. - Automated
releaseskill and per-repo Gitea-to-GitHub migration: Automated releases are deferred until a project goes through its first manual release. Per-repo Gitea-to-GitHub migration (mirror inversion, issue migration, and legacyAGENTS.mdconversion) is tracked as a dedicated follow-up issue (gitea-to-githubskill). diagnosepost-mortem suggestion: Deferred as an independent follow-up after the 4-skill GitHub loop is live.- Homelab
github_runnerNixOS/systemd implementation code: This design specifies the operational hardening contract for opt-ingithub_runnerdeployments (--ephemeral, container/VM isolation, egress-only LAN firewall, resource caps, concurrency 2), while infrastructure manifests belong in thecanopyinfrastructure repository.
Open Questions
- None. Initial exploration was captured in the brainstorm RFC; this document is the canonical resolved specification.
Critical User Journeys (CUJs)
CUJ 1: End-to-End Multi-Task Feature Slice on a GitHub Repo
- Given: A GitHub-hosted repository with
project_numberrecorded inAGENTS.md,ghauthenticated withprojectandreposcopes, and a ready vertical-slice issue#42. - When: The user runs
implementon issue#42, thencode-reviewon the resulting Draft PR, addresses any findings, and runsverify. - Then:
implementruns preflight (verifying a clean working tree on a non-mainbranch or worktree and moving#42Ready -> Work in Progress) and decomposes delta tests in Step 1.implementtracks resume checkpoints in plaintodo.txtformat inside$(git rev-parse --git-common-dir)/implement-state/<branch_slug>.txt(read/written directly), runstest-writer/code-writer(with per-task lint, typecheck, docstrings, andWhy:comments), deletes the state file, and opens a Draft PR (Closes #42) while leaving#42inWork in Progress.code-reviewaudits the Draft PR, computesmax_iddeterministically viaskills/code-review/scripts/build_review.pyacross paginated prior reviews/comments, and publishes onehead_sha-pinned--commentreview containing<!-- cr-review-meta: max_id=NN head_sha=<sha> verdict=ready|needs_rework -->andRV-*runtime checks.verifyconfirms the latestcr-review-metamatcheshead_shawithverdict=ready, runsRV-*runtime checks and inspectsgh pr checks, posts the verification ledger, promotes the PR (gh pr ready), moves#42Work in Progress -> Review, and on human approval merges the PR and executesReview -> Completed.
CUJ 2: Trivial Localized Fix or Rework Pass (Fast Path)
- Given: An open Draft PR with a localized
code-reviewfinding (or a<= 2-file bugfix with no new test seam). - When:
code-reviewroutes the localized finding toimplement(or the user invokesimplementdirectly). - Then:
implementruns preflight, auto-skips Step 1 decomposition, executes via a single worker with OS-level timeout wrapping, commits and pushes to the existing Draft PR branch, updates the Draft PR body if scope changed, and leaves the board card inWork in Progressfor the nextcode-reviewpass (which continues numbering fromCR-(NN+1)without colliding with earlier IDs).
CUJ 3: Atomic Feature-Branch Cutover & Installer Verification
- Given: An existing local installation of
kiskaadee/skillswith legacy Gitea skills symlinked in~/.gemini/config/skills/. - When: All new skills, updated retained skills, legacy skill deletions,
OBSOLETE_SKILLSupdates,install.shfixes, and updated contract tests land together on a dedicated feature branch, and./install.shis run from that branch to validate one live GitHub slice before merging tomain. - Then:
./install.sh checkexits non-zero whenever required skills are missing or obsolete symlinks remain,python3 -m unittest tests/fixtures/test_skills_behavioral_contracts.pyandtests/fixtures/run_regression.shpass, legacy symlinks are backed up and pruned cleanly, andgit checkout main && ./install.shrolls back cleanly with zero dangling symlinks.
Technical Plan (Architecture)
System Topology & Delivery Loop
The delivery ecosystem is organized into 4 GitHub-native core skills (projects, implement, code-review, verify), plus reconcile-docs updated for GitHub read-only ingestion. Among supporting skills outside the core loop, diagnose and document remain unchanged, while git-manager, tdd, and gt-usage are updated only for handoff and cross-reference alignment.
flowchart LR
P["projects\n(Goals, Milestones, Issues,\nBoard State Machine)"] --> I["implement\n(Preflight, Step 1 Delta Plan,\ngit-common-dir/implement-state, Workers, Draft PR)"]
I -- "Draft PR\n(Card stays in WIP)" --> CR["code-review\n(4-Axis Review, Monotonic CR-XX,\nRV-* in Review Body)"]
CR -- "Needs Rework\n(<=2 files: fast path;\ncomplex: Step 1)" --> I
CR -- "Ready\n(verdict=ready + head_sha + RV-*)" --> V["verify\n(Phase 1: QA + CI\nPhase 2: gh pr ready + WIP->Review\nPhase 3: Merge + Move Completed)"]
V -. "Contract Drift != none" .-> RD["reconcile-docs"]
V -. "Contract Drift / Next Slice" .-> P
Canonical Board State Machine & Single Ownership
projects is the sole owner of the 5-column GitHub Projects v2 board schema (skills/projects/references/planning-contract.md and skills/projects/references/github-projects-v2.md):
| Column | Fixed GitHub Color Enum | Entering Transition Owner | Trigger Event |
|---|---|---|---|
Backlog |
GRAY |
projects (or verify on abort) |
Issue created, or abandoned Draft PR closed |
Ready |
BLUE |
projects |
Slice prioritized and ready for execution |
Work in Progress |
YELLOW |
implement (or verify on merge rejection) |
Preflight passes (Ready -> Work in Progress); stays here through Draft PR open, code-review, and rework; human merge rejection at verify Phase 3 runs gh pr ready --undo and moves Review -> Work in Progress |
Review |
PURPLE |
verify |
Phase 2 passes QA + CI + verdict=ready gate and runs gh pr ready (Work in Progress -> Review) |
Completed |
GREEN |
verify |
Phase 3 merges PR and executes Review -> Completed directly |
Repository AGENTS.md Planning Contract Schema
Each GitHub-managed repository stores minimal, human-readable coordinates in its AGENTS.md (no rotating sprint state and no brittle GraphQL Node IDs):
# Planning Contract (owned by projects)
project_number: <int>
Split Dynamic GraphQL Resolution: skills/projects/references/github-projects-v2.md separates board onboarding from card transitions:
- Onboarding (
projects): Usesowner.projectV2(number: $project_number)to resolveproject_idforaddProjectV2ItemByIdwhen creating or onboarding new issues not yet on the board. - Card transitions (
implement,verify): Usesissue.projectItemsfiltered byproject.number == $project_numberto resolveproject_id,status_field_id, the issue'sPVTI_...item ID, and target columnoption_ids in a single query matching the canonical 5 column names (Backlog,Ready,Work in Progress,Review,Completed). This avoids 100-item board pagination limits and fails fast with a clear mismatch error if a board's Status column names do not match.
Scoped GitHub remote guard: Forge-dependent operations (projects, implement, verify, PR publishing in code-review, and optional GitHub-state reads in reconcile-docs) verify GitHub repository identity via gh repo view --json url (supporting SSH host aliases and non-origin remotes). Local-only modes (local diff reviews in code-review, local git/doc reconciliation in reconcile-docs) run without requiring a GitHub remote. If a forge-dependent step fails gh repo view --json url or detects a legacy Gitea AGENTS.md planning contract, it fails fast advising to migrate the repo to GitHub or use standalone gt-usage.
Component Architecture & <= 80-Line Partitioning
Every SKILL.md acts strictly as an invariant and transition router (<= 80 lines) with mandatory trigger pointers (Before <step>, read references/<file>.md) and Suggested Next Step: /<skill> <args> emission on standalone turns (suppressed when delegated to a subagent, per skills/build-skill/references/skeleton.md).
1. projects (Replaces gitea-plan)
SKILL.md(<= 80lines): Outer-loop planning workflow: verify GitHub repo viagh repo view --json url, reconcile specs/roadmaps with GitHub Issues and Projects v2 board state (handing off toreconcile-docswhen docs lag), select ceremony tier (Small/Medium/Large), create/update milestones and vertical-slice issues, run Independent Zero-Context Reproducibility Audit (Medium/Large), and hand off ready issues toimplement.references/planning-contract.md(Sole owner):AGENTS.mdproject_numbercontract schema, canonical 5-column state machine, transition ownership table, and scoped GitHub remote guard.references/tiers-and-audit.md:Small/Medium/Largeceremony matrix (Small: 1-3 issues, single milestone;Medium: 4-8 vertical slices + clean-room audit;Large: phased milestones + cross-slice dependency map + clean-room audit) and vertical-slice criteria.- Independent Zero-Context Reproducibility Audit checklist: a fresh-context subagent audits
Medium/Largeplans with zero prior conversation history to confirm every slice is executable without guesswork, returning anAuditor Report Schema(verdict, gaps/ambiguities, and required plan edits).
references/github-projects-v2.md(Sole owner of GitHub planning recipes):owner.projectV2(number: $project_number)onboarding foraddProjectV2ItemById,issue.projectItems(filtered byproject.number == $project_number) dynamic Node ID resolution,DATEandSINGLE_SELECTmutations, fixed color enum map, and REST milestone commands (gh api repos/{owner}/{repo}/milestones). Referenced byimplementandverifyfor board moves.
2. implement (Replaces implement-slice, Absorbs Decomposition & Ephemeral State)
SKILL.md(<= 80lines): Orchestrator loop (mutates only its branch-scoped checkpoint file directly; never writes production code, never writes tests, never performs code review):- Preflight: Verify GitHub repo via
gh repo view --json url, classify working tree (CLEAN_BASE: clean tree on base branch;EXISTING_SLICE_BRANCH: clean tree on the target slice's own non-mainbranch with an active checkpoint file or open Draft PR, allowing resume and rework to proceed directly;ADOPTABLE_DIFF: uncommitted changes matching the target slice;CONFLICTING_STATE: dirty/unrelated changes or mid-merge/rebase, halt;WRONG_BASE: branch diverged from expected base, halt/re-branch), create/switch to non-mainbranch or worktree viagit-manager, and move cardReady -> Work in Progress. - Step 1 (Delta-Test Decomposition): Inspect existing tests on affected seams (
covered (keep green),partial/weak (harden),missing (new Red test)). Auto-skip for trivial<= 2-file localized fixes with no new test seam. If--dry-run, print plan and halt with zero mutations. Otherwise record slice tasks directly in plaintodo.txtformat (<task>/x YYYY-MM-DD <task>) inside$(git rev-parse --git-common-dir)/implement-state/<branch_slug>.txt(branch_slug="${branch//\//__}") without invokingtuxedo. - Execution Loop: Dispatch adaptive subagents (1-worker fast path for auto-skipped trivial fixes;
test-writer->code-writerwith per-task lint/typecheck, docstrings on new/modified public symbols,Why:comments, and affected local markdown updates for multi-task slices), commit 1:1 per completed deliverable viagit-manager, and mark tasks done in"$state_file". - Draft PR & State Cleanup: Open or sync Draft PR (
gh pr create --draft,Closes #<N>,Contract Drift: none | <summary>), delete"$state_file", keep card inWork in Progress, and hand off tocode-review.
- Preflight: Verify GitHub repo via
references/preflight.md(Sole owner):- Working-tree classifications (
CLEAN_BASE,EXISTING_SLICE_BRANCH,ADOPTABLE_DIFF,CONFLICTING_STATE,WRONG_BASE) and--dry-runcontract. - Branch-scoped
$(git rev-parse --git-common-dir)/implement-state/<branch_slug>.txtcheckpoint lifecycle in plain-texttodo.txtline format (so externaltodo.sh/tuxedo[terminaltodo.txtCLI/TUI] can inspect it if desired), read/written directly byimplementwithout invokingtuxedo, and deleted on Draft PR open/sync or explicit abort/escalation toprojects(halting onCONFLICTING_STATEorWRONG_BASEleaves existing files untouched).
- Working-tree classifications (
references/decomposition-and-roles.md:- Step 1 delta-test rubric and
<= 2-file fast-path criteria (including bailout to Step 1 if scope grows). test-writer/code-writercontracts, 3-4 task worker recycling to prevent context bloat, and 2-turntest-writer/code-writerdeadlock circuit breaker (escalate to human owner ordiagnose).- Mandatory OS-level non-interactive command wrapper embedded in worker prompts:
setsid timeout -k 10 <N>s <cmd> < /dev/nullwithCI=true,GIT_TERMINAL_PROMPT=0,PAGER=cat, and tiered timeouts (60s CLI, 180s unit tests, 600s cold builds).
- Step 1 delta-test rubric and
references/pr-and-drift.md(Sole owner): Draft PR body template, rework sync rules, and fixed-formatContract Drift: none | <summary>marker (where Contract Drift means any implementation deviation from issue acceptance criteria, public interfaces/schemas,ARCHITECTURE.md, orROADMAP.mdspecs).
3. code-review (Upgraded for GitHub, build_review.py & Monotonic CR-XX)
SKILL.md(<= 80lines): Select review tier (Lightweight: small localized diffs;Standard: multi-file feature slices;High-Assurance: security, auth, schema, or >500-line diffs requiring an isolated Axis 3 subagent), run 4-axis audit, and publish whenever invoked on an open GitHub PR (verified viagh repo view --json url). When no open PR exists or local-only mode is active, skip PR publishing and explicitly state in output that no open PR was found and findings are reported locally. RouteNeeds Rework->implement(fast path or Step 1) andReady->verify.references/axes.md: 4-axis rubric (Spec & Scope,Standards & Smellswith explicit non-documentation-drift checks for missing docstrings, stale comments, lint/format regressions, and affected local markdown,Seam & Test Integrity,Defensive Invariants) and tier selection criteria.references/finding-schema.md(Sole owner of finding lifecycle & GitHub PR review API):- Monotonic
CR-XXalgorithm &build_review.pyintegration: paginateGET /repos/{owner}/{repo}/pulls/{n}/reviewsandGET /repos/{owner}/{repo}/pulls/{n}/comments, extractmax_iddeterministically outside LLM context viaskills/code-review/scripts/build_review.pyparsingcr-review-metamarkers and^### CR-(\d+)headings, and start new findings atmax + 1(CR-01..CR-99,CR-100). - Duplicate-SHA / pending-review guard keyed on
(head_sha, verdict)before posting (skip re-posting only when a review with the same(head_sha, verdict)already exists, allowingverdict=readyto supersedeverdict=needs_reworkon the same commit after Exit B/C triage), plusmax 3 rework-cycle capenforcement before human escalation (counted from priorverdict=needs_reworkcr-review-metaentries on the PR). POST /repos/{owner}/{repo}/pulls/{n}/reviewspayload built bybuild_review.py(side: "LEFT"for deletions,side: "RIGHT"for additions/modifications, moving cross-file/missing-file/out-of-hunk findings into### Findings (Unanchored / Cross-File)in the review body to prevent422errors).- Publish
<!-- cr-review-meta: max_id=NN head_sha=<sha> verdict=ready|needs_rework -->and collapsibleRV-*runtime checks (localvs.live-infra, explicitFAIL if ...signals) inside the PR review body. - Findings start in
Pending Triage(with noAccepted Trade-offstatus) until closed via one of 3 exits: Exit A (fix in-branch), Exit B (promote to a GitHub Issue, optionally paired withTODO(#<N>): ...orWhy:+ ADR link indocs/decisions/), or Exit C (dismiss as invalid/false positive). Record Exit B (Promoted to #<N>) and Exit C (Dismissed: <reason>) closures in the supersedingReadyreview body's triage summary socode-reviewemitsverdict=readyonly when zero unresolvedPending Triagefindings remain.
- Monotonic
scripts/build_review.py: Stdlib-only Python helper validating PR diff hunks, routing unanchorable findings to the review body, formatting^### CR-NNheaders, extractingmax_id, and stampingcr-review-meta.
4. verify (Replaces verify-slice + Closing Half of gitea-pr)
SKILL.md(<= 80lines): Precondition: existing GitHub PR (verified viagh repo view --json url; no manual PR fallback). Structured into 3 linear phases (plus explicit abort invocation viacloseout-and-abort.mdwhen closing an abandoned/superseded Draft PR):- Phase 1 (Read-Only Runtime QA + CI): Verify latest
cr-review-metamatches exact currenthead_shaandverdict=ready(block and route tocode-reviewif missing, stale, orneeds_rework), executeRV-*checks with explicit dispositions, and inspectgh pr checks(on red CI, inspectgh run view --log-failedand hand off todiagnoseorimplement). - Phase 2 (Promotion): Post final Verification Ledger comment, promote PR (
gh pr ready), and move board cardWork in Progress -> Review(perskills/projects/references/github-projects-v2.md). - Phase 3 (Human Merge Gate + Closeout): Present verification packet for human merge authorization; on approval, merge PR, execute
Review -> Completeddirectly viaissue.projectItems, and chainreconcile-docs+projectswhenContract Drift: != none. On human rejection, rungh pr ready --undoand moveReview -> Work in Progress.
- Phase 1 (Read-Only Runtime QA + CI): Verify latest
references/qa-dispositions.md: Risk-proportional QA matrix,localvs.live-infraboundaries, falsifiableFAIL if ...format, and 5 dispositions (PASS,FAIL,BLOCKED (env/fixture),BLOCKED (out-of-bounds),INCONCLUSIVE).references/closeout-and-abort.md: Verification Ledger comment template, post-mergeReview -> CompletedGraphQL mutation, and abandoned/superseded Draft PR abort path (gh pr close+ revert board card toBacklog, entered only when explicitly invoked to abort a Draft PR).
5. reconcile-docs (Updated for GitHub)
SKILL.md(<= 80lines): Preserve local git/doc reconciliation for all repositories; scope optional PR/board ingestion to GitHub viagh repo view --json url; update handoffs fromgitea-plan/implement-slicetoprojects/implement.references/reconciliation-matrix.md: Replacegt prand Gitea tracker commands withgh pr list --state merged,gh apimilestones/reviews, and Projects v2 board inspection.references/doc-contracts.md: Replaceimplement-sliceStep 1 reference withimplementpreflight.
Non-Functional Requirements
Security & Privacy
- Public skill repository hygiene: Zero secrets, tokens, or absolute
/home/<user>paths anywhere inkiskaadee/skills(enforced by contract tests and secret scans). - Opt-in self-hosted
github_runnerisolation (operational contract forcanopy): Repositories opting intogithub_runnermust scope it strictly to private repositories (public repos use free GitHub-hosted runners), run--ephemeralrunners inside isolated containers/VMs with per-job workspace/cache isolation, and enforce egress-only firewall rules blocking RFC1918 homelab LAN access (except DNS) to prevent supply-chain RCE from pivoting across the LAN.
Performance, Latency & Token Economics
- Skill context budget: Every
SKILL.mdstays<= 80lines; detailed procedures load lazily via explicitreferences/triggers. - Subagent token & stability bounds: Trivial
<= 2-file fixes take the 1-worker fast path (avoiding cold-start overhead). Multi-task slices recycletest-writer/code-writerevery 3-4 tasks to prevent quadratic cumulative token growth and stale-file assumptions. Hard caps stop runaway loops: 2-turntest-writer/code-writerdeadlock breaker and max 3code-review -> implementrework cycles before human escalation. code-reviewpayload scaling: Extractingmax_iddeterministically insideskills/code-review/scripts/build_review.pykeeps raw prior review JSON out of LLM context (O(1)token overhead regardless of rework rounds).- Opt-in homelab runner capacity: Start opt-in
github_runnerat concurrency 2 with systemdMemoryMax/CPUQuotacaps to prevent parallel Nix/Rust/Docker builds from OOM-killingserver-local.
Rollout & Rollback
- Atomic feature-branch cutover: Implement all new skills (
projects,implement,verify,build_review.py), retained-skill updates (code-review,reconcile-docs,git-manager,tdd,gt-usage), legacy deletions (gitea-plan,implement-slice,verify-slice,gitea-pr),OBSOLETE_SKILLSupdates,install.shfixes, and contract tests together on one dedicated feature branch. Run./install.shfrom that branch and validate one real private-repo slice end-to-end before merging tomain. - Rollback:
install.shprunes broken symlinks in$TARGET_DIRpointing into$SCRIPT_DIR/skills/*and backs up replaced/obsolete skills to a timestamped directory, sogit checkout main && ./install.shrestores the legacy Gitea loop cleanly with zero dangling symlinks.
Risks & Mitigations
| Risk / Limit | Impact | Mitigation |
|---|---|---|
GitHub PR Review API 422 on deleted/non-diff lines |
Wedges code-review publishing |
skills/code-review/scripts/build_review.py enforces side: "LEFT" for deletions and moves out-of-hunk/cross-file findings into the top-level review body. |
| GitHub API rate limits or large PR pagination | Truncated CR-XX scan or GraphQL failure |
Paginate /reviews and /comments via gh api --paginate parsed outside LLM context; query issue.projectItems directly instead of full-board scans. |
| Partial-failure split-brain (PR merged, board move fails) | Card stranded in Review |
verify Phase 3 executes Review -> Completed idempotently; re-running verify or projects reconciles the board state safely. |
Opt-in github_runner outage or shared cache poisoning |
Private-repo CI blocked >24h or cross-repo leak | Keep GitHub-hosted runners as default; for opt-in github_runner, enforce --ephemeral isolated caches and document gh run rerun --failed (24h unclaimed job limit is a known limit). |
Git worktree state isolation for implement checkpoints |
Branch collisions or stale state | Store checkpoints at $(git rev-parse --git-common-dir)/implement-state/<branch_slug>.txt (/ sanitized to __), isolated per branch and deleted on Draft PR open or abort. |
Alternatives Considered
Alternative A: Deploy Gitea on a Dedicated Paid VPS
- Pros: Eliminates residential ISP WAN IP lag and homelab power/connectivity outages while keeping existing
gt-based skills (gitea-plan,gitea-pr,implement-slice) mostly intact. - Cons: Adds recurring cloud hosting cost and external server maintenance, while undermining the purpose of operating a homelab for self-hosted services. Still lacks native Projects v2
DATEfields and requires maintaining customgtworkflows. - Reason for Rejection: Contradicts operating a homelab while adding paid hosting overhead; moving planning/PR workflows to GitHub Projects v2 solves uptime without a VPS.
Alternative B: 5-Skill Core Loop with Standalone decompose and Root todo.txt Bus
- Pros: Separates slice planning (
decompose) from execution (implement), and surfaces slice progress in roottodo.txtandslice-implementation.md. - Cons: Forces
implementto support two entry paths, adds a cross-sessionslice-implementation.mdartifact, leaks untracked roottodo.txtacross branch switches and worktrees, and requiresverifyto handle post-mergetodo.txtcleanup. - Reason for Rejection: Folding Step 1 decomposition and a branch-scoped
git-common-dir/implement-statecheckpoint intoimplementeliminatesslice-implementation.md, dual entry paths, and cross-skilltodo.txtcleanup while keeping the core loop at 4 skills.
Alternative C: Dual-Forge Semantic Adapter (gh-usage + gt-usage) Across All Core Skills
- Pros: Keeps Gitea-hosted repositories as first-class citizens inside
projects,implement,code-review,verify, andreconcile-docsvia a shared adapter interface. - Cons: GitHub Projects v2 (GraphQL Node IDs, fixed color enums,
line/sideinline reviews) and Gitea (gtREST CLI, hex colors,new_positioninline reviews) have structurally different APIs and state machines. Maintaining parity doubles contract-test surface for a forge being retired from active SDLC workflows. - Reason for Rejection: Keeping core skills GitHub-native eliminates cross-forge state-machine drift while
gt-usageremains installed as a standalone utility.
Alternative D: Keep a Thin Standalone gh-usage Skill
- Pros: Provides a single
/gh-usageentry point for ad-hocgh apior GraphQL queries outside the 4 core skills, and avoids cross-referencingskills/projects/references/github-projects-v2.mdfromimplementandverify. - Cons: Adds an extra skill directory,
install.shentry, and contract-test fixture to hold only 3 non-obvious recipes (Projects v2 GraphQL,REST milestones, andcommit-pinned inline PR reviews), since standardghCLI flags do not require a dedicated skill. - Reason for Rejection: Inlining the 3
gh api/GraphQL recipes intoskills/projects/references/andskills/code-review/references/is simpler and aligns with single rule ownership.
Alternative E: Rename git-manager to git
- Pros: Shorter skill name matching the 1-word naming of
projects,implement, andverify. - Cons: Touches 17+ repository files including 7 completely unrelated skills (
build-skill,derive-skill,diagnose,document,inspect-flake-update,nix-devshell,practice), solves zero stated pain points, and collides visually and semantically with thegitCLI binary in prose and slash commands. - Reason for Rejection: High cross-repo churn with no functional benefit.
Alternative F: Move Board Cards to Review Immediately on Draft PR Creation
- Pros: Binary board semantics (
Work in Progress= coding,Review= PR open), without waiting forverifyto promote the PR. - Cons: Places cards in
Reviewwhile autonomouscode-review, CI, and rework loops are still mutating the branch, adding merge-queue noise and requiring reverseReview -> Work in Progresstransitions on rework. - Reason for Rejection: Keeping Draft PRs in
Work in Progressand movingWork in Progress -> Reviewonly ongh pr readykeepsReviewas a dedicated human merge queue.
Future Improvements
gitea-to-githubmigration skill: Dedicated follow-up skill for on-demand per-repo migration (mirror inversion, Gitea-to-GitHub issue migration, and legacyAGENTS.mdconversion, plus a stale-contract check inprofile/AGENTS.mdonce available).- Educational release-planner skill: Future skill combining
projects+practicescoped to the release stage (comparing SemVer/CalVer/GitHub Releases/Nix flake pins, flagging over-engineering, and guiding a first manual release) before building an automatedreleaseskill. diagnosepost-mortem note suggestion: Minor independent enhancement promptingdiagnoseto suggest capturing root-cause findings viadocument.
Detailed Implementation Plan
All changes execute atomically on a dedicated feature branch created from main before editing. No implementation code is included here; every file path below defines the exact behavioral scope and rationale.
Target Files to Create, Modify, or Delete
New Skill: projects (Replaces gitea-plan)
skills/projects/SKILL.md(Create)- Type / Scope: Portable Skill (
<= 80lines, followsskills/build-skill/references/skeleton.md). - Proposed Changes: Outer-loop GitHub planning workflow: verify GitHub repo via
gh repo view --json url, reconcile specs/roadmaps with GitHub Issues and Projects v2, select ceremony tier, manage milestones/due dates and vertical-slice issues, trigger Independent Zero-Context Reproducibility Audit onMedium/Large, hand off ready slices toimplementor lagging docs toreconcile-docs, and emitSuggested Next Step:on standalone turns (suppressed when delegated).
- Type / Scope: Portable Skill (
skills/projects/references/planning-contract.md(Create)- Type / Scope: Skill Reference (sole owner of board state machine &
AGENTS.mdschema). - Proposed Changes: Define the state-free
AGENTS.mdYAML planning contract (project_number: <int>), the canonical 5-column board state machine (Backlog -> Ready -> Work in Progress -> Review -> Completed), transition owners, and the scopedgh repo view --json urlremote check (detecting legacy Gitea contracts).
- Type / Scope: Skill Reference (sole owner of board state machine &
skills/projects/references/tiers-and-audit.md(Create)- Type / Scope: Skill Reference.
- Proposed Changes: Port of
skills/gitea-plan/references/decomposition-tiers.mdadapted to GitHub Issues and Projects v2 (Small/Medium/Largeceremony matrix, vertical-slice criteria, Independent Zero-Context Reproducibility Audit, and Auditor Report Schema).
skills/projects/references/github-projects-v2.md(Create)- Type / Scope: Skill Reference (sole owner of GitHub Projects v2 & milestone recipes).
- Proposed Changes: Document
gh api graphqlrecipes forowner.projectV2(number: $project_number)+addProjectV2ItemByIdonboarding,issue.projectItemsdynamic Node ID resolution,DATEandSINGLE_SELECTstatus updates, the fixed 5-column color enum map (GRAY,BLUE,YELLOW,PURPLE,GREEN), and REST milestone operations (gh api repos/{owner}/{repo}/milestones).
New Skill: implement (Replaces implement-slice, Absorbs Step 1 Decomposition & Ephemeral State)
skills/implement/SKILL.md(Create)- Type / Scope: Portable Skill (
<= 80lines, followsskills/build-skill/references/skeleton.md). - Proposed Changes: Orchestrator loop (mutates only its branch-scoped checkpoint file directly):
- Run preflight (
gh repo view --json url, working-tree classification, non-mainbranch/worktree viagit-manager,Ready -> Work in Progress). - Run Step 1 delta-test decomposition (auto-skipped for
<= 2-file localized fixes; halts on--dry-run). - Execute adaptive worker loop (
1-workerfast path vs.test-writer/code-writer) with 1:1 commits and$(git rev-parse --git-common-dir)/implement-state/<branch_slug>.txtcheckpointing. - Open/sync Draft PR (
gh pr create --draft), delete the state file, keep card inWork in Progress, and emitSuggested Next Step: /code-review(suppressed when delegated).
- Run preflight (
- Type / Scope: Portable Skill (
skills/implement/references/preflight.md(Create)- Type / Scope: Skill Reference (sole owner of preflight & checkpoint schema).
- Proposed Changes: Carry forward
CLEAN_BASE,EXISTING_SLICE_BRANCH,ADOPTABLE_DIFF,CONFLICTING_STATE,WRONG_BASEclassifications and--dry-runzero-mutation contract. Define$(git rev-parse --git-common-dir)/implement-state/<branch_slug>.txt(branch_slug="${branch//\//__}") checkpoint rules: plain-texttodo.txtformat (append line andx YYYY-MM-DDcompletion prefix) read/written directly without invokingtuxedo, and deletion on Draft PR open/sync or abort.
skills/implement/references/decomposition-and-roles.md(Create)- Type / Scope: Skill Reference.
- Proposed Changes:
- Define Step 1 delta-test classification (
covered,partial/weak,missing) and<= 2-file fast-path criteria (including bailout to Step 1 if scope grows). - Define
test-writerandcode-writercontracts (per-task lint/typecheck, docstrings on new/modified public symbols,Why:comments, and affected local markdown), plus 3-4 task worker recycling and the 2-turntest-writer/code-writerdeadlock circuit breaker. - Embed mandatory OS-level non-interactive command wrapping (
setsid timeout -k 10 <N>s <cmd> < /dev/null,CI=true,GIT_TERMINAL_PROMPT=0,PAGER=cat) with tiered timeouts (60s CLI, 180s unit tests, 600s cold builds) directly in worker prompts.
- Define Step 1 delta-test classification (
skills/implement/references/pr-and-drift.md(Create)- Type / Scope: Skill Reference (sole owner of Draft PR body & drift marker).
- Proposed Changes: Define Draft PR body template (
Closes #<N>, scope summary, rework sync rules) and fixed-formatContract Drift: none | <summary>marker read byverify.
New Skill: verify (Replaces verify-slice + Closing Half of gitea-pr)
skills/verify/SKILL.md(Create)- Type / Scope: Portable Skill (
<= 80lines, followsskills/build-skill/references/skeleton.md). - Proposed Changes: Require an existing GitHub PR verified via
gh repo view --json url(no manual PR fallback, zerotodo.txtresponsibility). Linear 3-phase flow plus explicit abort invocation andSuggested Next Step:routing (suppressed when delegated):- Phase 1: Verify
cr-review-metamatches exacthead_shawithverdict=ready, runRV-*runtime QA, inspectgh pr checks/gh run view --log-failed. - Phase 2: Post Verification Ledger, run
gh pr ready, moveWork in Progress -> Review(perskills/projects/references/github-projects-v2.md). - Phase 3: Human merge gate, merge PR, execute
Review -> Completeddirectly, chainreconcile-docs+projectswhenContract Drift != none.
- Phase 1: Verify
- Type / Scope: Portable Skill (
skills/verify/references/qa-dispositions.md(Create)- Type / Scope: Skill Reference.
- Proposed Changes: Port risk-proportional black-box QA perspectives,
localvs.live-infraboundaries, falsifiableFAIL if ...format, 5 explicit dispositions (PASS,FAIL,BLOCKED (env/fixture),BLOCKED (out-of-bounds),INCONCLUSIVE), and stale-head_sha/needs_reworkblock rule.
skills/verify/references/closeout-and-abort.md(Create)- Type / Scope: Skill Reference.
- Proposed Changes: Define the Verification Ledger comment template, post-merge
Review -> CompletedGraphQL mutation (referencingskills/projects/references/github-projects-v2.md), and the abandoned/superseded Draft PR abort path (gh pr close+ revert board card toBacklog, entered only when explicitly invoked to abort a Draft PR).
Updated Retained Skills & Repository Documentation
skills/code-review/SKILL.md(Modify)- Type / Scope: Portable Skill (
<= 80lines). - Proposed Changes: Replace
implement-slice/verify-slice/gitea-prwithimplement/verify; remove delegation PR-skip rule (publish whenever invoked on an open GitHub PR verified viagh repo view --json url; skip only when no open PR exists or in local-only mode, explicitly stating in output that no open PR was found and findings are reported locally); removeAccepted Trade-offreferences and restrict Exit B to GitHub issues only (notodo.txt/ Gitea); document thebuild_review.pyCLI workflow (--input,--diff,--reviews,--comments,--head-sha,--verdictpiped togh api repos/{owner}/{repo}/pulls/{n}/reviews --input -) and split rework routing.
- Type / Scope: Portable Skill (
skills/code-review/references/axes.md(Modify)- Type / Scope: Skill Reference.
- Proposed Changes: Replace Gitea issue,
todo.txt,gitea-pr,verify-slice, andAccepted Trade-offreferences with GitHub issue andverifyequivalents; add explicit code-hygiene checks (missing docstrings on new/modified public symbols, stale inline comments, lint/format regressions, affected local markdown) underStandards & Smells/Spec & Scope.
skills/code-review/references/finding-schema.md(Modify)- Type / Scope: Skill Reference (sole owner of
CR-XXlifecycle & GitHub PR review API). - Proposed Changes:
- Replace all remaining
verify-slice,implement-slice,gitea-pr,gitea-plan,gt issue,gt pr review,new_position, andtodo.txt(tuxedo add) references with GitHub equivalents (verify,implement,projects, GitHub issues). - Specify
POST /repos/{owner}/{repo}/pulls/{n}/reviewspayload built viaskills/code-review/scripts/build_review.py(--input,--diff,--reviews,--comments,--head-sha,--verdict, consuminggh api --paginate --slurpJSON) and piped togh api repos/{owner}/{repo}/pulls/{n}/reviews --input -, plus3-rework-cycle capownership. - Define the input findings schema (
findings[]withpath,line,side,severity,title,body; optionalrv_checks[]andtriage_closures[]),<!-- cr-review-meta: max_id=NN head_sha=<sha> verdict=ready|needs_rework -->, collapsibleRV-*block in review body, and removeAccepted Trade-off(3 exits: fix in-branch, promote to GitHub Issue, or dismiss as invalid/false positive).
- Replace all remaining
- Type / Scope: Skill Reference (sole owner of
skills/code-review/scripts/build_review.py(Create)- Type / Scope: Stdlib-only Python Helper Script.
- Proposed Changes:
- CLI:
--input <findings.json> --diff <pr.diff> --reviews <reviews.json> --comments <comments.json> --head-sha <sha> --verdict <ready|needs_rework>. - Pagination & Exit Codes: Flatten
gh api --paginate --slurp([[...]]and[...]) inputs; exit0emitting GitHub PR review JSON ({"commit_id", "event": "COMMENT", "body", "comments": [{"path", "line", "side", "body"}]}) to stdout, exit2on duplicate(head_sha, verdict)skip, and exit1on invalid input or3-rework-cycle capreached. - Behavior: Extract
max_idfromcr-review-metaand### CR-(\d+)headings, validate(path, line, side)against PR diff hunks (side: "LEFT"for deletions,"RIGHT"for additions/modifications), move out-of-hunk/cross-file findings into### Findings (Unanchored / Cross-File)inbody, format### CR-NNheaders, and stampcr-review-meta.
- CLI:
skills/reconcile-docs/SKILL.md(Modify)- Type / Scope: Portable Skill (
<= 80lines). - Proposed Changes: Preserve local git/doc reconciliation on all repos; scope optional PR/board reads to GitHub via
gh repo view --json url; update handoffs fromgitea-plan/implement-slicetoprojects/implement.
- Type / Scope: Portable Skill (
skills/reconcile-docs/references/reconciliation-matrix.md(Modify)- Type / Scope: Skill Reference.
- Proposed Changes: Replace
gt prand Gitea tracker commands withgh pr list --state merged,gh apimilestones/reviews, and Projects v2 board inspection.
skills/reconcile-docs/references/doc-contracts.md(Modify)- Type / Scope: Skill Reference.
- Proposed Changes: Replace
implement-sliceStep 1 reference withimplementpreflight.
skills/git-manager/SKILL.md(Modify)- Type / Scope: Portable Skill (
<= 80lines). - Proposed Changes: Update
gitea-prreferences toimplementandverify. Keep skill namegit-managerunchanged.
- Type / Scope: Portable Skill (
skills/tdd/SKILL.md(Modify)- Type / Scope: Portable Skill (
<= 80lines). - Proposed Changes: Update
verify-slicereferences toverify.
- Type / Scope: Portable Skill (
skills/gt-usage/SKILL.md(Modify)- Type / Scope: Portable Skill (
<= 80lines). - Proposed Changes: Document standalone ad-hoc Gitea utility role outside the GitHub core delivery loop; remove
gitea-planandgitea-prhandoff references.
- Type / Scope: Portable Skill (
README.md(Modify)- Type / Scope: Repository Documentation.
- Proposed Changes: Update skill table, delivery workflow overview, and CLI prerequisites (
ghprimary,gtoptional standalone) to match the 4-skill GitHub loop.
profile/AGENTS.md(Modify)- Type / Scope: Global User Profile Rule.
- Proposed Changes: Update line 19 wording (
"creating a batch of Gitea issues"->"creating a batch of GitHub issues").
Legacy Retirement, Installer & Test Harness (Atomic on Feature Branch)
skills/gitea-plan/(Delete)- Type / Scope: Retired Legacy Skill Directory.
- Proposed Changes: Remove
SKILL.md,references/decomposition-tiers.md, andreferences/tea-cli.md.
skills/implement-slice/(Delete)- Type / Scope: Retired Legacy Skill Directory.
- Proposed Changes: Remove
SKILL.md,references/handoff-contracts.md, andreferences/orchestration-tiers.md.
skills/verify-slice/(Delete)- Type / Scope: Retired Legacy Skill Directory.
- Proposed Changes: Remove
SKILL.mdandreferences/perspectives.md.
skills/gitea-pr/(Delete)- Type / Scope: Retired Legacy Skill Directory.
- Proposed Changes: Remove
SKILL.md,references/gt-pulls.md,references/pr-lifecycle.md, andreferences/tea-pulls.md.
install.sh(Modify)- Type / Scope: Shell Installer Script.
- Proposed Changes: Update
ACTIVE_PORTABLE_SKILLS(addprojects,implement,verify; removegitea-plan,implement-slice,verify-slice,gitea-pr) and append all 4 retired names toOBSOLETE_SKILLS. Remove the stalegt/ legacy-skill warning block fromcheck_prerequisites()(keeping only thegitcheck; NixOS providesghdeclaratively). Fix line 112 so./install.sh checkexits1whenmissing > 0. Add repo-scoped dangling-symlink pruning to remove broken symlinks in$TARGET_DIRpointing into$SCRIPT_DIR/skills/*.
tests/fixtures/test_skills_behavioral_contracts.py&tests/fixtures/test_build_review.py(Modify / Create)- Type / Scope: Python Behavioral Contract & Helper Test Suites.
- Proposed Changes:
- Update
EXPECTED_SKILLSand assert the 4 retired skills appear inOBSOLETE_SKILLS. - Retire
WorkflowNode5-tuples, dynamic Mermaid projection,WorkflowEnginemocks (removing the 6WorkflowEngine-dependent methods:test_proportionality_scaling,test_feature_verification_canonical_schema,test_security_invariants,test_rework_routing,test_deviation_reporting,test_dry_run_zero_mutation),test_prerequisite_guidance, Gitea time-tracking (started_at,/times), and Gitea#RRGGBBhex color assertions. - Update all 8 legacy test blocks:
test_resource_id_querying_rules(skills/projects/),test_review_comment_publishing_ownership(code-review+implement),test_project_board_reconciliation_and_card_transitions(projects+implement+verify+code-reviewread-only board),test_reconcile_docs_gitea_ingestion_and_hooks->test_reconcile_docs_github_ingestion_and_hooks(ghread-only +projects/implement),test_repo_scoped_documentation_and_vault_deprecation(skills/projects/+skills/implement/),test_skeleton_defines_suggested_next_step_suppression(skills/implement/SKILL.md),test_chained_skills_include_suggested_next_step_routing(("projects", "implement", "tdd", "code-review", "verify", "reconcile-docs")), andtest_subagent_provenance_output_slot_guards(skills/code-review/SKILL.md+skills/code-review/references/finding-schema.mdfor Axis 3, andskills/projects/references/tiers-and-audit.md). - Add contract assertions for:
projectsproject_numbercontract and dynamicowner.projectV2/issue.projectItemsstate machine;implementpreflight classifications,--dry-run,$(git rev-parse --git-common-dir)/implement-state/plain-texttodo.txt-format checkpointing (withouttuxedo), andsetsid timeout;code-reviewbuild_review.pyCR-XX,cr-review-metaverdict,RV-*in review body, and no-PR announcement;verify3-phase flow, zerotodo.txt,Work in Progress -> Reviewongh pr ready, and post-mergeReview -> Completed; andinstall.sh checkexit code + dangling-symlink pruning. - Add
tests/fixtures/test_build_review.pycovering--paginate --slurpflattening ([[...]]/[...]),side: "LEFT"/"RIGHT", diff-hunk validation, unanchorable body fallback,max_idextraction, and exit codes (0,2,1).
- Update
tests/fixtures/run_regression.sh(Modify)- Type / Scope: Regression Runner Script.
- Proposed Changes: Update Step 2 (
run_regression.sh:21) to runpython3 -m unittest "${SCRIPT_DIR}/test_skills_behavioral_contracts.py" "${SCRIPT_DIR}/test_build_review.py" -v, and update Step 3grep -qassertions to check"Independent Zero-Context Reproducibility Audit"and"Auditor Report Schema"inskills/projects/references/tiers-and-audit.md,"CLEAN_BASE"inskills/implement/references/preflight.md,"cr-review-meta"inskills/code-review/references/finding-schema.md, and"Move issue card between columns"inskills/gt-usage/references/commands.md.
Verification Plan
- Installer Isolated Dry-Run: Run
./install.sh --target /tmp/skills-test-targetfollowed by./install.sh --target /tmp/skills-test-target check(must exit0), and test a missing/obsolete target directory with./install.sh --target /tmp/skills-bad-target check(must exit1). - Behavioral Contract & Helper Unit Suites:
python3 -m unittest tests/fixtures/test_skills_behavioral_contracts.py tests/fixtures/test_build_review.py -v(must pass). - Full Regression Harness:
./tests/fixtures/run_regression.sh(must exit0after local./install.sh). - Static Hygiene & Secret Scan:
test_skills_behavioral_contracts.pyenforces<= 80lines perSKILL.md, zero em-dashes, and zero/home/<user>paths; runrg -n '(ghp_|gho_|github_pat_|BEGIN .*PRIVATE KEY|Bearer )' skills/(must return zero matches). - Feature-Branch Live E2E Gate (Before Merge to
main): Install from the feature branch via./install.sh, execute one full vertical slice (projects->implement->code-review->verify) on a real private GitHub repository, and verify Draft PR creation,build_review.pymonotonicCR-XXacross a rework pass,gh pr ready+Work in Progress -> Review, and merge +Review -> Completed.