Review committed formal task content when invoked by the workflow or requested as a formal stage result, plus bounded base continuity and completed-archive review. Retain each profile's prerequisites and scope. 审核分支, 审核 PR or code review alone does not select formal Branch Review; independent read-only review belongs to guru-review-change even when a Task/Delivery exists.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Guru Review Branch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/castbox-guru-review-branch)
---
name: guru-review-branch
description: Review committed formal task content when invoked by the workflow or requested as a formal stage result, plus bounded base continuity and completed-archive review. Retain each profile's prerequisites and scope. 审核分支, 审核 PR or code review alone does not select formal Branch Review; independent read-only review belongs to guru-review-change even when a Task/Delivery exists.
---
# Guru Review Branch
## Common review sufficiency
Before reviewing this owner's object, read `review-sufficiency.md` in full from
the complete Guru provider that supplies this Skill. Its workflow-spec root is
`trellis/presets/guru-team/spec/workflow` in source, or `.trellis/spec/workflow`
after installation. Resolve target-project authority separately; the target
need not install Trellis to receive review from another provider. Apply the
common rules within this owner's original scope, order and stage conditions.
Before substantive output, read `.trellis/spec/workflow/clear-technical-writing.md`
in full and apply it within this entry's existing scope. Until that read succeeds,
use only short progress messages or concrete missing-dependency diagnostics.
State the current action or missing item; make no unverified claim. If the file
cannot be read, pause substantive output, then read it and resume the same
request when available. No additional approval is needed for that recovery.
## Qualification Applicability
At this Skill's candidate boundary, first read the original owners' short
[normal](../guru-qualify-normal-scenario/references/applicability.md),
[solution](../guru-qualify-solution-mechanism/references/applicability.md), and
[root](../guru-qualify-root-cause/references/applicability.md) conditions before
loading any qualifier in full. This owner judges each condition independently
from current authority, actual candidates and material changes; it does not
copy a qualifier's complete verdict. Adopt a still-applicable conclusion. Only
when an owner's conditions require a current invocation, explicitly load that
stable Skill and invoke it with its real applicable nonempty set and the
profile below. If it does not trigger, load no qualifier body, assemble no
input and emit no empty, classified or skipped result for it. The complete
current-stage judgment and all applicable non-passing routes remain required.
Enter this Skill for its declared stage/profile purpose under the workflow's
review entry. An independent read-only request retains its selected range even
with a bound Task/Delivery and enters `guru-review-change` in standalone mode.
Read `.trellis/guru-team/skills/packages/guru-review-change/references/review-method.md`
within this owner's existing independent read order. Apply the shared semantic
method to the complete selected range, preserving each profile's qualification,
Architecture, formal result and consumer requirements. Reading that method does
not invoke the standalone Skill or convert its report into Branch Review pass.
Apply `.trellis/spec/workflow/quality-guidelines.md#specialist-review-standards`
within this Skill's existing independent read order and complete selected
range. Load applicable specialist methods and same-source standards; assess
current evidence and affected consumers yourself. A specialist report does
not replace full-range coverage, current Architecture, qualification or this
owner's formal result. Retain all profile entry conditions.
Read and apply `.trellis/spec/workflow/workflow-contract.md#candidate-applicability-and-coverage`
for shared candidate coverage, engineering facts and recovery. This package
retains its own current judgment, formal result and action boundary.
Read the current Delivery integration contract in [references/contract.md](references/contract.md) first.
Read `.trellis/spec/workflow/causal-completion-semantics.md` alongside this
package contract before the stage judgment; the contract owns its local routes.
## Single post-commit independent review
The current `delivery_branch_review` input2.0 carries mode, task_ref,
delivery_key, base_ref, branch_review_commit and review_intent. It contains no
prior check_result_id. Delivery aggregate4.0 and legacy index4.0 select this
contract; old schemas remain pinned validation assets, never runtime fallback.
Both check and full_review owners must be guru-review-branch in the matching
complete workflow. Follow MIGRATION-794 before switching an existing installation.
Enter after TaskCommit pre_review_committed and the original implementation
constructor/begin_check. Freeze the complete fixed B..H Candidate. The first
reviewer must be newly opened and must not have authored or implemented it.
Before large reads, apply [Review execution conditions](references/contract.md#review-execution-conditions)
using the exact fixed object, actual prelude and required minimum metadata scope.
A capability receipt is not a quality pass. Before Task narratives or
implementer pass claims, read the fixed B Architecture
Baseline, constitution and change contract in full. The executing reviewer
then applies the installed workflow's `Explicit receiving-session continuation`
for this Task and Delivery. Verify the matching selection and fixed committed
candidate before the first Architecture, Delivery qualification, or Branch
Review call that depends on current session state. Original session owners
perform any necessary binding or selection writes. Preserve the frozen
candidate during recovery. Read H, the full diff and necessary unchanged
consumers next, then read exact selected Delivery plans, root accepted scope,
current source authority, acceptance and contributions.
Perform the authority-first committed Architecture assessment first, then this
complete current review, in the same independent invocation. Planning
Architecture remains separate. Material later changes refresh affected judgments.
Original document owners integrate/read back before commit; pending integration
is not reviewed promotion. Committed review covers actual before/after and all
integration files. Do not modify frozen H while reviewing it.
Read Author's references/planning-body.md, applicable Delivery PRD/design/implement
templates and all necessary source references with their associated conditions.
Complete nine adequacy responsibilities: requirements, design, implementation,
tests, docs_ssot, cross_layer, compatibility, deployment_and_operations and
verification_completeness. Judge behavior, applicability, sufficiency, document
ownership, exact publication impacts and test effectiveness. Nine filled fields,
prior Planning approval or green commands do not establish pass.
Semantic authoring contains candidate_classifications, semantic_review,
delivery_review, verification_evidence={evidence}, adequacy_review (each dimension
has status/summary/evidence), gate_judgments (check and full_review each have the
actual outcome/summary), and planning_revision (null except planning_stale).
Use examples/authoring-delivery-passed-2.0.json for structure, never as a pass.
No reviewer transcript, metadata or authorization enters this result.
The recorder supplies objective identity, scope/plan/Planning/candidate binding and original rollback binding only.
The ordinary private schema is delivery-review-gate-2.0 (schema_version8.0);
alignment uses alignment-2.0. Archive retains its separate archived-1.0 contract.
After the actual AI Gate, invoke review-branch, check-review-gate and invoke.
Recorder/checker return non-formal receipts. Invoke records actual check with
Planning predecessor, then actual full_review with that check predecessor.
Both outcomes are authored by the semantic owner; neither is inferred from the
other. These required slots project one review, not two semantic rounds. Only
both exact current results permit passed2.0. No standalone development Check
or second checkpoint is produced. Failed projection retains this one checkpoint;
same-candidate retry verifies it and records only the missing step. After
checkpoint retirement, matching actually recorded public results recover lost
stdout. Missing necessary semantic coverage requires actual review, never empty pass.
Implementation-only findings use implementation_required2.0. Original owners
repair, integrate/read back, validate and commit a successor; rework clears
check/full_review/readiness while preserving legitimate Planning and fixed B.
A retained checkpoint recovers the original handoff without another rework.
Actual original public results/invocation objects and Git can locate prior
coverage. Judge applicability, all successor delta, conflicts and combined
semantics and affected unchanged consumers. Missing coverage or unbounded impact
requires the corresponding complete review. Never review only added lines or
repair points. Determine the current full check set before inspecting original
engineering facts; adopt only applicable inputs/dependencies/tools/environment/
parameters/definitions/expectations and state sources. Execute new, changed,
missing or uncertain checks only. HEAD or reviewer changes alone require no rerun.
Planning omissions use planning_stale2.0. Current-scope repair uses
planning_route=reapprove_plan with concrete revision_actions and no proposal_refs.
Real scope change uses clarify_requirements and actual proposal_refs. Recorder
binds original Planning, candidate, scope and plan before rollback. Invoke
validates authorities, then clears planning/check/full_review/readiness. The
unique guru-task-check-planning-router reaches earliest affected Author/Clarify,
Author/Architecture/Approval. Do not broaden scope or rewrite the frozen candidate.
After rollback, delivery_planning_stale_recovery takes the original_review_input
and reads this same retained checkpoint. Verify same key/B/H/candidate/scope/plans
and cleared slots, then return the same handoff without rework/pass creation.
Original #775 Check rollback recovery remains Check's explicit standalone entry.
Continuity2.0 binds exact prior review, actual committed integration pair/tree
and original resume target. It reviews bounded integration, never writes a new
check or full_review and does not author full-review dimensions or two passing
judgments. Its existing semantic result carries the bounded conclusion. Alignment2.0 requires real prior passed2.0, fixed base, current
descendant commit and all actual Git delta. It is limited to verifiable promotion
references/status, with no changed obligations or new claims. Original coverage
plus delta and affected consumers must cover all B..H. For alignment use current nine-dimensional coverage
and two actual conclusions for result projection; no prior Check input
or repeat independent round is added. Changed obligations return to their owner;
missing original coverage requires full review. Never reconstruct retired state.
Scope revision and withdrawal keep their independent semantic inputs and actual
same-Delivery rework/stop duties. Both roles belong to this Skill. During checking
use its declared check role; during reviewing use its declared full_review role,
with the exact public phase as precondition. Do not accept arbitrary caller roles.
Archive remains read-only with its original historical stop consumer.
Current development Check and early Draft analysis are retired. No push or new
PR precedes current independent review and original readiness. Old operations
use the matching complete pinned provider or original migration owner; preserve
real already-executed facts and do not convert old passes or repeat actions.
## Actual Candidate Set
Complete the selected profile's semantic review before forming the actual
candidate set. When that complete review finds no real candidate, record
`candidate_classifications=[]` and invoke none of the three nonempty-only
qualification owners. Do not invent a no-defect candidate from a reviewed file,
feature, or a passing check. An empty set does not establish `passed`,
`continuity_passed`, or `archived_review_passed`: every applicable entry,
Architecture, Docs, range, dimension, evidence, freshness and route condition
still applies. Bounded continuity remains bounded and archived review read-only.
When real candidates exist, apply Qualification Applicability independently
for each owner, using `branch_review_candidate_set` only when its conditions
require a current invocation. Root accepts this owner's current scenario and
authority-placement judgments plus actual outcomes of upstream owners that
triggered; no result is demanded from a correctly untriggered owner. Keep every actual terminal classification,
witness and semantic disposition. Nonempty all-rejected candidates are distinct
from no candidates. Every finding, proposal, observation, follow-up and rejected
candidate still binds a classified ref; an empty set cannot carry such a row.
## Archived Read-Only Review
Use the independent `delivery_archived_review` input with exact archive
Task locator, public Delivery key, content HEAD and live PR payload snapshot.
It requires actual current-generation Completion/Closure and committed archive
summary/Delivery plans. It consumes no current Check and writes no active gate.
Resolve the selected Delivery's actual fixed content base B before reviewing;
for a legacy/stopped candidate without that anchor, the original range owner
selects the unique merge base once and pins it in this owner's checkpoint.
Live GitHub target identity is separate. Do not fetch, synchronize, or update refs.
The global workflow owns the fresh Architecture
`delivery_task_impact_sync(stage=branch_review)` invocation with
`source_exit=review_refresh_required` over exact B..A. Consume only its
read-only accepted result; missing evidence, blocked, or a result requiring
promotion/repair stops, never enters a writable consumer.
Independently review the full current B..A diff, live requirement authority,
archived planning and current test evidence. Neither the prior review nor a
PR snapshot is a semantic pass. This profile overrides ordinary finding-fix
and scope routes: content findings, scope insufficiency and missing authority
return only `blocked`, retaining truthful current findings in the private
semantic result. Do not restore tasks, fix content, rewrite archive history,
promote Architecture, update PRs, or mutate Issues.
After fresh AI review, use the same review-branch/check-review-gate/invoke
commands. The dedicated closed `archived-1.0` gate admits only
`archived_review_passed|blocked`; it is never synthesized from an ordinary
checkpoint. Both exits retire the owner checkpoint after validated projection.
The success output carries only task_ref, A, the exact title/body snapshot,
delivery_key and reviewed_base_head B. In the current graph this archived-review result
stops for pinned-old or manual disposition; it does not feed current Publication preparation/readiness.
Changed A/content-B/PR payload, non-Ready
state, dirty archive or mismatched archive Task/summary identity fail closed without repair.
## Ordinary Reviews
Before searching the range, Docs, tests, fixtures, consumers, or relevant
history, read `.trellis/spec/workflow/semantic-retrieval.md` and apply it in
candidate qualification. A negative finding or impact conclusion cannot rely
on a single-language zero result, and no query process enters the gate or DTO.
Validate all eight entry preconditions in workflow or standalone mode. Perform one
independent semantic review of the complete current range. When real candidates
exist, apply Qualification Applicability. If normal requires a current
invocation, form only its applicable candidate refs and live locators, then
invoke `guru-qualify-normal-scenario` with `branch_review_candidate_set` before
assigning that candidate severity.
For delete, replace, merge, or compatibility-impacting ranges, apply
`.trellis/spec/workflow/subtraction-first-compatibility.md`: independently
recompute `code_subtraction` and `docs_ssot_subtraction`, verify deprecated-asset
exit and direct evolution, and treat unsupported compatibility or redundant
growth as a finding. Do not use Phase 2 evidence or a generic continuation as
compatibility approval.
Independently review long-term maintainability as well: consume the contract's
Current constitution consumption and Architecture's adopted-mechanism review
through the existing qualification and revision owners.
Excluded threat, concurrency, crash, or formal idempotency concerns do not
justify additions. Every touched non-generated code file at or above 3000
lines requires a mechanical-split or small-decoupling conclusion; untouched
historical large files are not imported into scope.
Immediately before dispatch, tell the user in the current dialogue the
independent reviewer identity, the exact committed `base_oid..head_oid`
range, and the review target. Immediately after return, show the final finding
summary and the semantic owner's conclusion. Keep the reviewer transcript and
these lifecycle notices dialogue-local; do not persist them in a gate, DTO,
checkpoint, or tracked report.
Scripts never decide scope, scenario class, qualification, severity,
review sufficiency, pass, or route.
Rejected candidates remain `rejected_candidate` without severity or
finding-only fields and cannot become scope confirmation, tests,
implementation, follow-up, or publication blockers. Mechanism revision returns
to task work for remove/replace and fresh qualification; blocked stops. The
review gate records only this owner's final classifications and direct-consumer
witness, never a qualification artifact.
For a real candidate, before a proposed review mechanism participates in severity, findings, scope,
or blocker judgment, apply solution's conditions. When they require a current
invocation, invoke `guru-qualify-solution-mechanism` with
`branch_review_candidate_set`. A `mechanism_revision_required` result removes
or replaces only that mechanism and returns to task work for fresh
qualification; it never enters scope confirmation.
Before this review can pass, execute or consume this same independent reviewer’s fresh
`guru-maintain-architecture-baseline:delivery_task_impact_sync(stage=branch_review)`
result. The Architecture owner independently recomputes project checks and
before/after satisfaction from the complete committed base-to-HEAD diff. This
Skill then rereads the current Architecture Baseline, design constitution, and
task-local change contract as part of its own complete-range semantic review.
Neither owner may reuse the Phase 2 Architecture result as Branch Review proof.
For engineering commands, follow the contract's Engineering validation in the
complete review: determine the current complete check set first, judge accessible
original facts independently, document execution/adoption and sources, and
execute affected or new checks. This never substitutes for current semantic
review or exact-range result binding.
A single extra blank line, or multiple blank lines, at the end of a text file
is formatting noise when it is the only observed issue and the file's
meaningful bytes are otherwise unchanged. Keep EOF-only whitespace as a
non-blocking observation; it must not become a qualified P0-P3 finding or an
`implementation_required` route. This narrow rule does not suppress trailing
spaces on non-blank lines, indentation changes, changes inside
strings/configuration values, invalid encoding, or whitespace that changes a
parser/linter/formatter contract.
A stale identity, incomplete contract, authority conflict, fitness regression,
unreviewed contribution, or missing project check prevents `passed` and follows
the Architecture result's unique global route.
Every official independent-review worker invocation prompt authorizes
approved-plan work only. A planning-external observation must stop before any
edit, added test, self-fix, severity, classification, or route and return only
`candidate_ref`, `observed_behavior`, `locators`, and
`minimal_reproduction_hint`. This owner rereads the live range and authority
and applies Qualification Applicability, refreshing affected judgments before
continuing the review or dispatching another worker for that candidate. Upstream-owned `trellis-*` agent files stay
unchanged.
Current-scope qualified findings return `implementation_required`; fixes require applicable engineering checks, a successor local commit and this Skill again. An
unconfirmed nonstandard proposal returns `scope_confirmation_required` and
cannot become a finding. After a fix commit, the finding owner or a real
unfinished-agent replacement performs closure as an internal transient
judgment. It retains `introduced_head`, binds the fixing `fix_head`, and
produces a later `closure_head` plus concrete closure evidence. The AI workflow
then reviews the complete current `base_oid..head_oid` coverage under the
shared candidate contract. The same compliant independent reviewer may continue;
review closure, the entire fix delta and affected dependencies, supplementing
missing coverage or performing the complete review when impact is unbounded.
Closure emits no public exit and writes no artifact. After resolved findings, only the actual current final judgment with
`review_intent=fresh_final_review` may reach the recorder and pass. An initial
review with no resolved findings retains initial_review. MIGRATION-637 defines this wire value's successor meaning; closure
alone is not passed. After its AI Review Gate
exists, the recorder writes the compact `review-gate.json` to the exact
task-owned ignored-runtime checkpoint and returns only a minimal receipt; it
does not create assignment, liveness, rollup, or raw per-round reports. Only
after `check-review-gate` resolves and validates that exact checkpoint
may the public wrapper emit exactly one of `passed`,
`continuity_passed`, `implementation_required`,
`scope_confirmation_required`, or `blocked`.
The checker is not a public pass: it returns
`status=owner_checkpoint_validated` with `formal_exit=false`. Only the public
wrapper's DTO is a formal Branch Review exit.
The semantic owner's passing conclusion is provisional. Do not tell the user
that Branch Review has formally passed until both `check-review-gate` and the
public wrapper return `passed` for the same current task, range, commit, and
reviewed-content identity.
`continuity_passed` is only a bounded continuity judgment over a previously
reviewed task plus one committed reconciliation pair. It must never be
described as a full Branch Review.
`passed` targets `guru-publication-entry-router`. It retains the exact Review result while the original Architecture owner verifies publication eligibility. Publication then reads the current Delivery policy and live PR facts.
This package is not self-contained or portable.
The public wrapper accepts only current public input, reruns the objective
checker internally, and never accepts caller-authored gate or checker output.
Successful `passed`, `continuity_passed`, and zero-payload stop `blocked`
projection retires the checkpoint. The two active re-entry routes retain the
one checkpoint for deterministic
same-owner re-entry; a repeated invocation returns the same DTO without writing
another checkpoint. Failed check or projection preserves the current regular
checkpoint. A retired, mismatched, stale, unsafe, or symlink-backed checkpoint
fails closed.
Required Architecture/RDT integration and readback happen before local commit; their contents remain pending independent review. The committed
Architecture review and this independent complete-range Branch Review cover
actual promotion files and before/after responsibilities. A later change
returns to the earliest affected owner according to its actual obligations.
For the bounded exception after an actual complete Review, use
`delivery_promotion_reference_alignment` exactly as defined in the contract's
Promotion reference alignment section. It emits the existing `passed` only
after the original owner reviews all Git delta and affected dependencies.
Publication consumes the new current full_review; it never substitutes a
Phase 2 result or relabels the old pass.
The current Delivery aggregate dispatches independent full Review, continuity,
archived Review and promotion reference alignment profiles. Full Review and continuity bind the exact committed candidate and fixed base without prior Check input. The full Review gate writes only after independent
review. Continuity separates prior full-review HEAD from current committed
integration HEAD/tree and never creates a new full Review result. Checkpoints
are scoped by public Delivery UUID. Their legacy schemas serve historical
inventory only, never a current development fallback.
At this candidate boundary, apply the original
[root conditions](../guru-qualify-root-cause/references/applicability.md).
When they require a current invocation, explicitly load `guru-qualify-root-cause`
with `branch_review_candidate_set` and supply only actual eligible refs. This caller uses its
current scenario and authority-placement judgments and consumes actual normal
or solution outcomes when those owners triggered. It never requires an outcome
from an owner that correctly did not trigger. Adopt a still-applicable
same-mechanism conclusion and independently review this stage's current
work/evidence; stage or caller change alone does not repeat qualification.
Material changes refresh only affected judgments; a lost necessary conclusion
returns to its original owner for recovery or fresh judgment. Root `classified`
continues this stage, retaining diagnosis or mitigation disposition without
claiming repair. `mechanism_revision_required` removes/replaces that mechanism
and reenters; `diagnosis_required` pauses only the unsupported repair and
continues bounded investigation of the returned gaps through this owner, then
resubmits. A concrete `blocked` stops. Do not turn symptom suppression into
unrelated scope confirmation, cache qualifications, or use qualification as
completion. Actual scope changes use existing routes.
Read `.trellis/spec/workflow/companion-scripts.md#intermediate-command-stdout-10` for receipts and `result` projection.
Only the declared public invocation emits a formal exit; follow its consumer and positive-exit conditions.
## Current-stage scope revision
`delivery_scope_revision` is this existing owner's semantic re-entry after original
Clarify has published the changed whole-Task scope. Read actual accepted scope,
selected Delivery and obligations; review the retained slice anchors and original
source_selection/revision_refs. Complete the AI gate before invoking this profile.
Do not require stale Planning/Check/Review/Readiness evidence to revise scope.
Project only the reviewed current scope_ref through upstream rework to planning;
invalidate planning/check/full_review/readiness and retain identity, candidate and
historical publication/delivery facts. No new acceptance or approval is inferred.
`delivery_scope_revised` goes only to guru-delivery-scope-revised-router and the
same Delivery Author active_task_scope_change. A retry after lost output reads
matching public scope, planning phase and cleared results; it returns the same
minimal handoff, without replaying rework or installing an approval token.
A new change receives fresh original Clarify and this owner judgment.
For selected legacy control inspection/retirement, load `references/legacy-maintenance.md` and use its separate `scripts/legacy-maintenance.sh` entry. Normal current profiles are unchanged.
## Qualification target identity
For a required `branch_review_candidate_set` invocation, use input 2.0 and
load the original qualifier's
[explicit-target contract](../guru-qualify-normal-scenario/references/contract.md#explicit-taskdelivery-target).
Supply this invocation's actual complete DeliveryKey as `target.delivery_key`,
after the original Identity/Ensure/Bind/selection checks. Retain this caller's
TaskRef/key/profile and purpose in memory while consuming the original result;
resume this same stage and its remaining obligations. Do not infer identity
from inventory or create qualification state. A present official context must
match; only a truly absent key uses explicit-task validation.
Files in this skill
SKILL.md10.9 KB
commands.json5.8 KB
consumers/workflow/production/review-branch-continuity-passed-2.0.schema.json224 B
consumers/workflow/production/review-branch-continuity-passed.schema.json220 B
evals/evals.json11.3 KB
evals/files/archived-review-blocked-post-owner-facts.json379 B
evals/files/archived-review-input.json289 B
evals/files/archived-review-passed-post-owner-facts.json378 B
evals/files/base-continuity-passed-facts.json529 B
evals/files/base-continuity-passed-input.json522 B
evals/files/blocked-stale-facts.json534 B
evals/files/blocked-stale-input.json210 B
evals/files/finding-fix-passed-facts.json502 B
evals/files/finding-fix-passed-input.json210 B
evals/files/fresh-final-passed-facts.json375 B
evals/files/fresh-final-passed-input.json210 B
evals/files/implementation-required-facts.json398 B
evals/files/implementation-required-input.json206 B
evals/files/scope-confirmation-required-facts.json403 B
evals/files/scope-confirmation-required-input.json206 B