ProjectTemplate exists for agent enablement across a fleet of related projects. It exists so an agent works over all of them autonomously and productively, at repeatable quality, inside guardrails that keep the autonomy from doing harm. It holds the portable rules those projects follow, a machine-readable ground-truth spec (spec/), a registry of the projects (registry/repos.json), and an audit-agent instruction set (AUDIT.md). It ships no sample application code.
This file is the entry point every coding agent reads first. It holds the bootstrap that says where the canonical rules live and which procedure to follow for the state this repository is actually in. It also holds the rules for managing context and delegation, which apply to every task, and a map of where every other rule lives. It holds nothing else. The rule text itself is in GOVERNANCE.md, one section per topic. Code style lives in CODESTYLE.md, and the CI/CD workflow contract in WORKFLOW.md. CODESTYLE.md holds a General section plus per-language sections for .NET, Python, Shell, and PowerShell. The .NET, Python, and Shell sections are packaged as the dotnet-codestyle, python-codestyle, and shell-codestyle Skills.
Treat this file and GOVERNANCE.md as authoritative for cross-cutting rules, and do not restate their rules elsewhere. Per the skill-lifecycle Skill, a Skill that needs a rule's full text to work in isolation carries it as a generated include, never a copy. The include comes from the rule's home, so the text cannot drift undetected. A project's project-specific conventions and public-API/behavioral contracts live in that project's own topical docs. They do not go in .github/copilot-instructions.md, which targets GitHub Copilot and VS Code specifically. A rule a reviewer must honor therefore has to sit in an agent-agnostic file to be provider-independent. A section of its own in this file is not the alternative. An undeclared section here is drift to reconcile rather than a local liberty.
This repository is governed by a shared template. The canonical rules, machine-readable spec, and procedures live in github.com/ptr727/ProjectTemplate, the repository these rules call the hub. Fetch that repository before acting on anything about conformance, carried content, repository settings, or standing a repository up. This matters because a carried copy here can be stale or absent, and the hub is the only authority on what this repository should hold. This section is byte-locked across every repository in the fleet, so it reads identically wherever it is found. It is the entry point whenever nothing else present says where the rules are.
Route by what this repository currently holds, not by what it is expected to hold, since the two differ exactly when this section matters most.
flowchart TD
state["what does this repository currently hold?"]
state -->|"no repo, or a local tree with no remote"| standup["hub STANDUP.md, from section 0"]
state -->|"no carried instruction set, or a partial one"| standup2["hub STANDUP.md sections 1A, 2"]
state -->|"instruction set present, current or stale"| resync["hub RESYNC.md"]
state -->|"believes it is conformant"| resync2["hub RESYNC.md, run the audit anyway"]
- No repository yet, or a local tree with no remote. Follow the hub's
STANDUP.mdfrom section 0. That file is hub-only and deliberately not carried, because a repository needing it cannot be relied on to hold a current copy. Note that nothing in it creates the GitHub repository, which is an outward-facing write requiring explicit permission. So section 0A is the list handed to the maintainer before anything else starts. - A repository with no carried instruction set, or a partial one. Carry the baseline per the hub's
STANDUP.mdsections 1A and 2, which resolve what this repository is owed from its declared types and workflow model. Absent files are not drift to re-vendor, they are a baseline that never arrived, and the two are fixed differently. - A repository with the instruction set, current or stale. Follow the hub's
RESYNC.md, which runsAUDIT.mdend to end for the findings and then applies each one in an order that matters. The order matters because the rules govern what comes after them, and a deletion must precede the re-vendor that would otherwise refresh the file. It also matters because only some findings are mechanically detectable at all. An audit that reports drift and stops is half the procedure. - A repository that believes it is conformant. Run the audit anyway, because conformance asserted without a report is conformance nobody can check. The hub commits that report under its own
reports/, since a report written by the repository it measures is a claim rather than evidence. So a session in the repository being audited fixes its own drift in its own repository and files its findings about the hub as issues. So it also leaves the report to a hub-side audit rather than opening a hub pull request to write its own. This is the same procedure as the case above and is listed separately only because it is the one most often skipped.
The rules below bound every path above. Read the hub's main branch as ground truth, since that is the promoted and gated state, and read develop only to detect divergence. Reach the hub as a checkout of your own and fetch it immediately before reading it. The reason is that a clone is whatever it last fetched rather than the branch it names. Work only in that checkout rather than in one that another task is using. Both of these follow GOVERNANCE.md "Repository Boundaries and Write Safety" and "Hub-Hosted Tooling". And the audit is read-only: it produces a report and never edits the repository it measures, so a fix is a separate, reviewable change.
An agent session is billed on the context it carries, not the work it does. Every request re-reads the whole accumulated context, so a token added early is paid for again on every request after it. A long session therefore bills its last task for every earlier one. Most of these are cost rules. None of these rules licenses doing less work, skipping verification, or shipping something unreviewed.
- One deliverable, one session. A session covers one branch and one deliverable, and ends when that work merges. A multi-step task is one deliverable and stays in one session. Two unrelated tasks are two sessions even when they run back to back.
- End a session at any of these, without being asked: the branch changes, the pull request merges, or an unrelated task comes next. A review round is none of them. A loop still producing findings is the deliverable in progress, and a round count is not a reason to leave one open.
- A session orchestrating dispatched work is an exception, and a narrow one. Its deliverable is the run rather than any branch, so it spans many branches and many merges by construction. Ending it at the first dispatched merge would end the run. The triggers above land on each dispatched task instead, one branch and one deliverable each, which is this rule applied rather than waived. What keeps the exception narrow is that such a session holds no branch of its own and authors none of the work it dispatches. So the file context every other session accumulates is context it never takes on. It also re-derives each round's state from live sources rather than holding it, per "Re-derive state, do not carry it" below. A session that starts editing the files a dispatched task would have edited is an ordinary one again and ends on the triggers above.
- Hand off in an issue, never in a scratch file and never in context. Close a session by writing the handoff into the repository holding the work the next session resumes. A session that spanned several names the others in the handoff's state section. A track is a lane of work named by a short slug,
defaultwhere a session names none. A track in use holds exactly one open issue carrying thehandofflabel. It is created when the track starts and closed when its work is complete, with the outcome as its closing comment. It is never closed and replaced per session. The issue body is the current handoff and records the track and a round number, so a retitled issue still reads. Each session close first appends the outgoing body to the same issue as a comment headed with its round and close date. It then replaces the body in place and advances the round, so the track's history stays on one issue, in order. Each of those is an outward-facing write, bound byGOVERNANCE.md"Repository Boundaries and Write Safety" exactly as any other write is. The identifier rule binds most of all, since the issue an edit targets is read live in the same run rather than remembered. A repository not carrying thehandofflabel cannot host a track until the label exists there. On a fleet repository, creating the label is a change to that repository's configuration rather than anything a handoff writes. A session that cannot write the handoff, whatever stops it, reports that it could not hand off and leaves the issue as it stands. That report is the one alternative this rule allows, because a report says the round's record is missing while a file claims to be it. A scratch file fails in ways the issue closes. It is not found where the next session looks. More than one candidate is found and nothing says which is current. And it holds no history, so a later round re-runs a path an earlier round already tried and already wrote down. That re-run is the one thing a handoff exists to prevent. The handoff carries the next steps in priority order, and the external blockers and internal dependencies among them. It carries the state a resume re-reads rather than trusts, listed so the resume knows what to re-read. It carries the account of parked decisions thatGOVERNANCE.md"Communicating with the User" requires. And it carries what the last round did, what not to repeat, and what was learned. ThatGOVERNANCE.mdsection states the account whole, and it requires the session to present those decisions as well as record them. The size rule is stated per section. An entry earns its place by being specific enough to change a later session's behavior. A section ranks what it keeps and drops whatever does not meet that bar. What belongs somewhere durable goes there and appears here as one line and a pointer. A defect goes there as an issue, a rule as rule text, and a lesson as governance prose. The parked-decision account keeps the count and the ranked questions one round can carry, and names every issue past those by number alone. That is what keeps a queue larger than one round inside this rule. A summary held in context is re-billed until the session ends, and a scratch file is read only on the machine holding it. The issue stays readable from any machine to every session after it. - Re-derive state, do not carry it. "This session already has the context" is the signal to split, not to continue. Context that has gone stale is worse than absent, because a file read hundreds of requests ago no longer describes the file.
- Compaction is a fallback, not the strategy. It restarts context from a floor and climbs again, where a fresh session starts from zero.
- Map a large file, then read one range. For anything over about 200 lines, list the headings with
grep -nE '^#+ 'first and read only the range the task needs. Read the section, not the file that contains it. - Prefer an in-place edit to a whole-file rewrite. Rewriting a file bills its full content again on top of what the read already cost.
- Bound output at the source. Write every command so its output is the answer, not the haystack. A
--jqprojection on aghAPI call does that. So do a count or files-only flag on a search, a summary flag on a diff, and an explicit cap on anything unbounded. A command whose output you then skim is a command that should have been narrower. - Keep a long query in a file, not in the command. A heredoc re-typed on every call costs its own length in context each time, often more than the answer it retrieves.
- Keep generated caches outside the checkout when the executor restricts writes. Give each task a cache directory under a writable temporary root. Point tools such as uv and ruff there through their own cache variables. Never repurpose
HOMEor an agent's configuration directory to make a tool run. - Report an execution boundary separately from a check finding. A denied path, network request, or Docker socket says the check did not run. Preserve that failure, then use the executor's approval mechanism for the required rerun. Request the narrowest reusable command prefix the executor supports. Report the rerun's result as the verification evidence.
- Bound every probe, and prove it ended. A throwaway probe or test harness runs under
timeout, and one that can recurse or fan out also runs under a task and memory cap. Start it in a process group of its own, assetsid --wait timeout "<n>" "<probe>"on Linux.<probe>stands for the probe's command and its own arguments, which replace its quotes so each stays a word of its own. End it by that group withkill -- "-<pgid>". Without--wait,setsidreturns at once when its caller leads a process group, and the probe runs on detached. Apkill -fpattern that matches nothing exits 1 and kills nothing. Then confirm withpgrepthat nothing from any earlier run survives, since a later clean run proves nothing about an earlier one. Never suppress a cleanup command's output or exit status. A command the harness moved to the background, where no background job was intended, is stopped and confirmed gone before work continues.
A rule, a Skill, or a brief names a model tier, never a model. A model release is then an edit to the table below and to the hub's spec/model-tiers.json. That file states the same mapping as data, and the hub's spec gate holds the two equal. Reasoning effort is a separate axis stated beside the tier, such as bulk at low effort.
frontieris the fleet's default reasoning tier, for orchestrating, rule text, design, spec logic, and adversarial review. It is not the most capable model available, which ishighest.standardis ordinary implementation and driving a pull request. Judging a review finding is never mechanical, however often it repeats, so it runs atstandardor above. Astandarddriver's evidence-backed decline of a finding raised on its pull request stands, since that pull request's reviewers and its merge gate check it.bulkis the cheapest model that does the work correctly. It is for high fan-out mechanical work, such as an extraction or a status check.highestis the most capable model available, and only the maintainer selects it. The maintainer chooses it for the session itself, or allows it for the session's subagents at launch. The host's agent-safety kit reads that launch setting,FLEET_ALLOW_HIGHEST=1on Claude Code. Naming the tier in a prompt does not set it. A maintainer naming it partway through a session restarts the session with it allowed, and an agent never sets it. Without that setting, the kit refuses a dispatch that names it. A dispatch naming no model runs at its agent definition's model where one is set. Otherwise it runs at the default the host's agent-safety kit sets, which is thefrontiermodel. On a host without the kit it runs at the session's own. That default does not reach every agent type a tool builds in. On Claude Code theExploreandPlantypes still take the session's model, so the kit refuses a dispatch of either that names no model. A fork always runs at the session's model, whatever it names. So a session launched onhighestnames a tier on every dispatch meant to run below it, and uses no fork for such work. The kit's default is a backstop for a dispatch that forgot its tier, never a reason to leave one out. A session never reaches for it because a task looks hard.
| Tool | highest |
frontier |
standard |
bulk |
|---|---|---|---|---|
| Claude Code | fable |
opus |
sonnet |
haiku |
Each cell is the name that tool's subagent dispatch takes, which follows the latest model of its family. A dispatch on a tool with no row here, or on one that cannot name a model per subagent, names no model.
- A tier resolves only through this table. A word such as "frontier", "strongest", or "most capable" never resolves to
highest. The industry's "frontier model" is the opposite of what this tier means here. A session that cannot see this table names no model rather than guessing one. - An orchestrating seat runs at
frontier, or athighestwhere the maintainer chose that for the session, and names a tier on every dispatch. It defaults a subagent tofrontier, and picksstandardorbulkdeliberately for execution or mechanical work.
- Delegate exploration, keep judgment. A subagent starts from an empty context and returns only its conclusion. So a wide search, a multi-file audit, or a "which of these is affected" question costs a fraction of the same work inline. Delegate when the finding compresses to a short answer, and stay inline when the intermediate detail drives the next edit.
- Match the model tier to the judgment, not to the diff size. Mechanical work (a known-shape edit repeated across files, an extraction, a status check, a lint fix) runs at
bulk, at the lowest effort that holds. State the tier in the delegation itself rather than accepting the default. A change to a gate, a ruleset, a release condition, or a carried governance section is a design change however small it looks. - Never tier down the seat holding the judgment. Governance wording, spec logic, rulesets, and repository visibility are fleet-wide and durable when wrong. Tier the subagents, not the main thread.
- A session above the tier its work calls for keeps the judgment and dispatches the execution. A session the maintainer launched on
highestis the ordinary case, and so is afrontiersession handed implementation. Such a session spends its own turns on what its tier is for. It decides the design, the seams, and the rulings, and it solves what a cheaper seat could not. It writes those decisions into the brief, so the worker executes a decision rather than making one. Everything else it dispatches at the tier "Model Tiers" names for that work, a Skill's own procedure included. So ahighestsession asked to drive one pull request dispatches the drive atstandard, and does not sit in the review loop itself. Asking the maintainer stays with the session, since a dispatched seat can prompt no one. The brief tells the worker to hand a problem back once its own attempts stop converging, with what it tried. Solving it one seat up costs less than another round of the worker looping. Work that costs less to do than to brief stays inline. None of this dispatches judgment downward, which the bullet above still forbids. - Brief a subagent so it never needs a governance file. A subagent inherits no context, so anything it must honor has to be in its prompt. Reading
GOVERNANCE.mdto find out costs it the same tokens the main thread would have paid. Brief on this shape:
Task: <the one question or edit, stated so the answer compresses>
Paths: <exact files or globs>
Rules that bind this task: <the specific rules, quoted, not a pointer to a doc>
Return: <the shape of the answer - a list, a diff, a yes/no with evidence>
Bounds: <what not to touch, and what to do when a rule looks incomplete>
If your own attempts at a problem stop converging, stop and hand it back with what you tried.
If a rule you were given does not cover what you find, stop and report it. Do not guess, and do not read a governance file to resolve it.
- Wait in a background process, not in a poll loop. A review or CI wait is a sequence of near-identical requests, each billed for whatever context it happens to carry. Run the wait as one backgrounded command rather than as a sequence of turns.
- A wait separates its outcomes, and says which one it reached. The condition was met, it has not been met yet, and the wait cannot reach it at all are different results. A backgrounded wait that emits nothing renders them identically. Run the command once in the foreground and read its output before backgrounding it. That is because a wait is only as good as the command inside it. It is also because an unsupported flag on the installed tool version exits non-zero with an empty stdout that every naive test reads as "nothing yet". Never let a fallback stand in for a failed command, since
|| echo '[]'and|| trueconvert an error into that same reading. That conversion is the suppressionGOVERNANCE.md"Repository Boundaries and Write Safety" already forbids on a mutation. Make the wait emit on failure as loudly as on success. Bound it too, so a condition that is never coming ends in a report rather than in another wait. - Never write a wait as an unbounded shell loop. This is a prohibition rather than a preference. A loop that waits for something, with no bound anywhere in the command that runs it, is forbidden. That holds in a tool call, in a script, and in a brief handed to a subagent. The bound goes inside that command. The wait then says which of these it found: the condition met, the bound reached, or the check itself failing. Prefer the mechanism that already signals. Where the dispatch mechanism reports a subagent's completion itself, polling that subagent's output file is a second channel. The answer is already on its way. The agent that starts a wait owns the process it leaves. A process a tool call leaves running survives the turn, the subagent, and the run that dispatched it. So a run that dispatched workers does not report itself done while it cannot say what it left running.
Every rule below is a level-two section of GOVERNANCE.md unless its row says otherwise. Read the section the task needs.
| Working on | Section |
|---|---|
| Why the rules are shaped this way | Foundational Principles |
| Recording a durable lesson, updating governance, or work here waiting on a fix in another repository | Durable Knowledge and Self-Improvement, surfaced at its decision moments by the agent-conduct Skill, and the section keeps the full rules |
| Any push, API mutation, comment, label, or merge, or which checkout the work happens in | Repository Boundaries and Write Safety, its task-isolation rule surfaced at the task-start moment by the repo-worktree Skill, and the section keeps the full rules. Who takes a merge or another irreversible step is Communicating with the User |
| Quoting data into a comment, commit, test, or doc | Representative Data in Agent-Authored Text |
| Committing, signing, rebasing, force-pushing | Git and Commit Rules, packaged as the git-commit-conventions Skill |
| Branch choice, promotion, keeping branches in sync | Branching Model, packaged as the branching-and-release-model Skill |
| Releasing, version bumps, publishing | Release Model, packaged as the branching-and-release-model Skill |
| A live config repo rather than a code repo | Operational Repositories, packaged as the branching-and-release-model Skill |
| Onboarding a repo or running a conformance sweep | Repository Onboarding and Conformance (hub only, not carried). Standing up a new repo from a hub checkout is packaged as the standup-a-repo Skill. Resyncing one already stood up is resync-a-repo, which also runs from a hub checkout. Measuring a named repo against the fleet ground truth per AUDIT.md is audit-a-repo. Each is hub-context only |
| Running a fleet gate, the review digest, or the config script | Hub-Hosted Tooling |
Running a lint or format check locally, or a lint tool missing from command -v |
Running the Linters Locally (Known-Working Invocations) (hub only, not carried) |
| Running a test locally, or a test runner missing or failing to spawn | Verification Discipline |
| Writing a commit message or pull request title | Pull Request Title and Commit Message Conventions, packaged as the comment-and-doc-style Skill |
| Any prose, comment, doc, or line-ending change | Documentation Style Conventions, packaged as the comment-and-doc-style Skill |
| Proving work actually happened | Verification Discipline, surfaced at its decision moment by the agent-conduct Skill, and the section keeps the full rules |
| Designing a change or starting to implement one, or reviewing one for reuse | Design Before Code, surfaced at its decision moment by the agent-conduct Skill and wherever a change is reviewed by the fleet-code-review Skill. The section keeps the full rules |
| Hardening code against an input or a failure, or triaging a finding that asks for it | Trust Boundaries and Hardening Effort, surfaced wherever a change is reviewed by the fleet-code-review Skill, and the section keeps the full rules |
| Editing rule text, a Skill, or any other content other repos carry | Verification Discipline's carried-content rule, which asks nothing of the change itself. Its passes are run by the local-strict-review Skill against the units a periodic sweep names. The hub-hosted scripts/canonical_review.py records those passes |
| Opening a pull request, or requesting, monitoring, answering, or closing a review | PR Review Etiquette, packaged as the pr-review-conduct Skill |
| Reviewing a pull request, patch, or change set | No section of its own: the fleet-code-review Skill, which routes to the applicable general, language, documentation, and workflow skills |
| Reporting progress or asking the user something | Communicating with the User, surfaced at its decision moments by the agent-conduct and session-handoff Skills, and the section keeps the full rules |
| Editing a workflow YAML file | Workflow YAML Conventions, surfaced with the full WORKFLOW.md contract by the workflow-ci-contract Skill, with that section keeping the style rules and WORKFLOW.md the contract |
| Choosing an OS, runtime, or toolchain target | Supported Development Platforms |
| The devcontainer | Devcontainer |
| Editor settings and tasks | Editor and Tasks |
| The About panel, description, or repo toggles | Repository Details |
| Where a file belongs in the tree | Repository Layout |
| A repository named by its short name | Not a GOVERNANCE.md section: resolve the name through shortName in the hub's registry/repos.json rather than guessing |
A row above naming no Skill, or naming one only for part of its section, is doc-only by decision rather than by omission. The reason differs by row. Foundational Principles is rationale read once rather than a procedure. Repository Boundaries and Write Safety and Representative Data in Agent-Authored Text are always-on law that binds whether or not a Skill fires. Hence the boundaries row names repo-worktree only for the one moment in it narrow enough to surface, isolating into a worktree at task start. The row names it on top of that law rather than instead of it. The gh-write-guard hook and the host-wide instruction blocks maintained by the hub's own agent-safety installer, hub-local at host-setup/agent-safety/, are the boundaries section's mechanical layer. The data section has none, since no pattern decides it. Running the Linters Locally (Known-Working Invocations) is hub-only, so a carrier reaches it in a hub checkout rather than surfacing it. Verification Discipline carries its Skills on its other rows. And Hub-Hosted Tooling, Supported Development Platforms, Devcontainer, Editor and Tasks, Repository Details, and Repository Layout are short reference sections a task reads at the moment it touches their subject. Each is already routed to by the procedures and Skills that need it. The short-name row points at a registry field rather than at rule text, so it holds nothing to package.
Some of the rules above are also packaged as Claude Code / opencode / Codex Skills, hand-authored at .agents/skills/ in the hub. That path is not a repo-relative link here, since it is hub-local and not carried into every fleet repo. Packaging them means they surface automatically instead of needing to be re-read every session. scripts/ is hub-hosted and reached rather than carried, per "Hub-Hosted Tooling", so run the installer from a hub checkout. python3 scripts/skills_install.py (or the .sh/.ps1 wrapper), run once per machine from github.com/ptr727/ProjectTemplate, installs them for every repo touched from that machine. python3 scripts/skills_install.py --report, also from a hub checkout, says whether this machine is current. A rule that keeps needing to be restated is a sign the install is missing or stale, not that the rule does not exist. Keeping a repo's own carried .github/copilot-instructions.md in sync with the hub, without losing that repo's own "Disproved Claims" ledger entries in the process, is copilot-instructions-keeper. It is a skill about maintaining that file rather than a rule extracted from it. That is because the file itself is read directly by the Copilot bot and stays fully intact everywhere it is carried. Checking, from inside this repo's own session with no operator watching, whether this repo and this machine are actually current against the hub is check-this-repo. It is new content rather than a rule extracted from a section. It is the counterpart to resync-a-repo that needs no standing hub checkout or named target beyond the repo the session is already in. That holds even though its own check fetches a hub checkout to reach scripts/skills_install.py. Opening a pull request against a repository outside this fleet, one the maintainer does not control, follows a different workflow entirely. That workflow is new content rather than a rule extracted from a section, packaged as upstream-contribution-workflow. It is independent of the target repo's own type or workflow model. Isolating a task into its own worktree before its first file edit, with the base-branch choice, the layout convention, and the cleanup mechanics, is repo-worktree. It is the task-start surface of the Repository Boundaries and Write Safety law, which keeps the rule. Writing the handoff that "Session Scope" above requires, and resuming from one, is session-handoff, new content rather than a rule extracted from a section. It is new content because deciding what actually earns a place in each of the sections that rule names is judgment rather than a shape. It carries GOVERNANCE.md "Communicating with the User" whole as a generated include, that being the parked-decision account the rule owes. It also names the hub's scripts/handoff.py for the chain's mechanics. Its widest trigger is the one that earns it, about to re-attempt something a previous round may already have tried. That trigger earns it because a session that does not know a chain exists never goes looking for one. Creating, changing, or retiring one of these skills is itself packaged as skill-lifecycle. It is hub-context only, since .agents/skills/ exists only in the hub and the generated plugin tree is never hand-edited.
Adding or changing a managed host tool is packaged as add-host-tool. It keeps the cross-platform contract, installer, documentation, test, and native-verification surfaces together. It is hub-context only, since the installers and spec/host-tools.json it edits exist only in the hub.
Bringing a machine's coding agents fully current is packaged as update-host, new content rather than a rule extracted from a section. It runs the hub's bootstrap --agent-setup action from any session and reports each step with --agent-status. The steps are the agent tools, the fleet skills, the Claude Code safety kit, and the host-wide rules for Codex and opencode. It changes the machine, where check-this-repo reads one repository and resync-a-repo converges one.
Driving a pull request through its review loop is packaged as drive-pr, new content rather than a rule extracted from a section. The drive runs from a feature branch into develop and, when asked, on to a mergeable develop -> main promotion PR. It disposes of every reviewer finding along the way per pr-review-conduct. Merging a ready promotion PR and dispatching the release it unblocks is merge-and-release, its own new-content package. It refreshes this machine's installed Skills first when the repo is this hub. It is invoked separately from drive-pr so the promotion merge and the release dispatch each keep their own explicit go-ahead. Working a whole open-issue backlog down by rounds is backlog-burndown, also new content rather than a rule extracted from a section. It ranks the issues and groups them so no two groups touch the same file. It dispatches one subagent per group to drive its own pull request into develop. It opens at most one develop -> main promotion pull request per round. Afterwards it re-ranks from scratch, because each round's reviews can file new issues. It orchestrates drive-pr rather than replacing it, and it scopes to the repository the session is in. A fleet-wide issue sweep is a different request. Its away mode runs the same rounds with no maintainer present. There a lean orchestrator holds only what its planner and worker subagents return. A group meeting a question parks behind a decision issue rather than asking, and merges go only as far as the scope named at invocation. Finding every open question beforehand, researching a recommended answer to each, and asking the maintainer all of them at once is decision-triage, also new content. It owns the test for what needs the maintainer, which backlog-burndown carries as a generated include.
Running one read-only, adversarial review pass is packaged as local-strict-review, new content rather than a rule extracted from a section. The pass runs against a branch's current diff against its target branch, full file context included, at the frontier tier. It runs before a unit of PR-bound work is pushed toward a pull request or claimed done. drive-pr, pr-review-conduct, and agent-conduct each reference it at the moment they already govern, rather than restating what it does. The rule itself lives in GOVERNANCE.md "Verification Discipline". The hub-hosted scripts/local_review.py is the engine that records a pass so a capture point can check one. A repository carrying a .husky/pre-push hook enforces it at the push itself. The skill stays the primary and agent-agnostic layer, with the hook a bypassable backstop under it. That skill carries a second pass under the same rule, over canonical content this repository authors and others carry. That content is read one whole unit at a time rather than as a diff. The reason is that a diff-scoped read leaves the first real review of a rule to whichever repository carries it next. That is the one repository that cannot act on what it finds. That second pass is swept on a schedule rather than owed by a push. That is because owing it at every change cost more than the fleet chose to keep spending there. So a change that edits such content pushes and merges like any other. scripts/canonical_review.py is that pass's engine. The units the pass has yet to reach are listed in the burn-down that engine's report renders from the hub's reports/canonical-review.json. That path is not a repo-relative link here, since it is hub-local like the Skills tree above.