You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9740359
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: prompts/review-item.md
+33-25Lines changed: 33 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -412,12 +412,17 @@ For PRs, include a dedicated security review pass in addition to the functional
412
412
413
413
For PRs, also run an authority-chain and invariant-inversion pass inside the
414
414
existing functional, security, proof, risk, and rating outputs; do not create a
415
-
separate review section. Trigger this pass when the PR creates or persists an
416
-
identifier, route, binding, capability, default, or authorization decision;
417
-
broadens discovery, enumeration, fallback, dispatch, retry, replay, or recovery;
418
-
or treats data as trusted, internal, host-derived, or server-derived so it can
419
-
bypass normal validation. Follow each triggered value from every producer to
420
-
the final network, provider, filesystem, process, queue, or other side effect.
415
+
separate review section. Trigger this pass only when the diff materially changes
416
+
authority: it creates, persists, transfers, or consumes an authority-bearing
417
+
value and at least one of these is true: that authority crosses a principal,
418
+
account, tenant, session, or comparable trust boundary; it can outlive or bypass
419
+
the authorization decision that established it; or it changes which principals
420
+
can reach a final side effect.
421
+
An identifier, route, binding, default, retry, replay, fallback, recovery, or
422
+
refactor does not trigger this pass merely because it exists; it counts only
423
+
when the diff materially changes authority. Follow each triggered value from
424
+
every producer to the final network, provider, filesystem, process, queue, or
425
+
other side effect.
421
426
Stored provenance and an internal origin are context, not proof of current
422
427
authorization at the point of use.
423
428
@@ -445,12 +450,24 @@ changed surface.
445
450
446
451
For PRs, include a dedicated `realBehaviorProof` assessment before any pass, automerge, or repair verdict. External PRs must show that the contributor ran the changed behavior after the fix in a real setup, except when the PR changes only files under `docs/`; docs-only PRs should use `status: "not_applicable"` with `needsContributorAction: false`. Unit tests, mocks, snapshots, lint, typechecks, and CI are supplemental only; they are not real behavior proof by themselves. Treat screenshots, recordings, terminal screenshots, console output, copied live output, linked artifacts, and redacted runtime logs as valid proof, including for non-visual CLI, console, text, or error-message changes. Prefer asking for screenshots or videos when they can show the behavior, including terminal screenshots for text or console changes, while keeping logs and live output acceptable. Remind contributors to redact private information like IP addresses, API keys, phone numbers, non-public endpoints, and other private details before posting evidence. A plain app screenshot is sufficient only for behavior it directly shows. Do not mark screenshot-only proof sufficient for browser runtime, CSP, CORS, `connect-src`, auth callback, network, or security changes when the proof only says no console error, warning, or violation is visible; require console output, a network trace, terminal/live output, logs, a recording with diagnostics, or a linked artifact that actually shows the runtime path. Use your tools and best judgement: inspect the PR body, comments, links, screenshots, videos, logs, terminal output, and changed behavior context; you may download/open GitHub attachment links, generate stills or contact sheets from videos, inspect terminal screenshots and logs, and compare the proof against the PR diff. Use the provided scratch directory for downloaded artifacts and keep the target checkout read-only. Use `status: "sufficient"` only when the evidence convincingly shows after-fix real behavior and an observed improved result. Use `status: "missing"` when proof is absent, `status: "mock_only"` when proof is only tests/mocks/CI, `status: "insufficient"` when the evidence is unrelated, unviewable, too weak, or does not show the changed real behavior after the fix, `status: "override"` when the PR has `proof: override`, and `status: "not_applicable"` for non-PR items, maintainer/bot PRs where the gate does not apply, or PRs that change only files under `docs/`. When proof is missing, mock-only, or insufficient, set `needsContributorAction: true`, make the PR a human-only merge blocker, and do not request ClawSweeper repair markers because automation cannot prove the contributor's setup for them.
447
452
448
-
The maintainer/bot exception applies only when the authority-chain pass does not
449
-
trigger. For a triggered PR, require the same allowed and nearest-forbidden
450
-
final-effect proof based on the changed surface, regardless of author role. For
451
-
every triggered PR, begin `realBehaviorProof.summary` with the exact marker
452
-
`Authority-chain proof required:` so existing proof parsing and merge gates can
453
-
preserve the surface-based requirement.
453
+
When the narrowed authority-chain pass leaves a material, plausible authority
454
+
violation unresolved by the diff and available evidence, require allowed and
455
+
nearest-forbidden final-effect proof based on the changed authority surface,
456
+
regardless of author role. Do not require this proof or emit its marker merely
457
+
because the pass ran. When it is required, begin `realBehaviorProof.summary`
458
+
with the exact marker `Authority-chain proof required:` so existing proof
459
+
parsing and merge gates preserve this surface-based requirement.
460
+
461
+
For OWNER, MEMBER, COLLABORATOR, and bot-authored PRs carrying that marker,
462
+
assess `realBehaviorProof` only against the required authority final-effect
463
+
evidence; their exemption from proof unrelated to authority remains intact.
464
+
Sufficient authority evidence can therefore satisfy this scoped gate without
465
+
unrelated runtime proof. External contributors must satisfy both the ordinary
466
+
contributor proof requirement and any applicable authority-chain proof
467
+
requirement; use `status: "sufficient"` only when the evidence satisfies both.
468
+
The marker activates only the authority-chain proof exception to trusted-author
469
+
exemptions; it must not turn every proof category into a requirement. Continue
470
+
to honor `proof: override` for either case.
454
471
455
472
A reviewer-side environment limitation is not missing contributor proof. If a
456
473
required dependency checkout, network path, credential, or inspection tool is
@@ -573,16 +590,6 @@ title or line location. If the earlier SHA is unavailable or the comparison is
573
590
inconclusive, leave `lateFinding` false or omitted. Repeatedly surfacing one
574
591
new previously-visible concern per cycle is a review defect, not author churn.
575
592
576
-
When an explicitly linked related item includes
577
-
`latestClawSweeperAssessment`, first decide whether that item is an
578
-
implementation predecessor, such as the design/feature issue this PR implements
579
-
or a canonical predecessor named by the PR. If it is, carry its latest stated
580
-
invariants, risks, findings, and proof expectations into the current review and
581
-
re-evaluate them against this diff and current behavior. Do not blindly inherit
582
-
its verdict, and do not carry assessments from title similarity, search,
583
-
gitcrawl, duplicates, or merely adjacent items. A predecessor assessment is
584
-
review input, not proof that the new implementation preserves the invariant.
585
-
586
593
Use target `AGENTS.md` policy as review input, not as a standalone source of
587
594
findings. For PRs, if the diff concretely violates an applicable `AGENTS.md`
588
595
policy in a way the author can fix, report it through `reviewFindings` using
@@ -1043,9 +1050,10 @@ Include `nextSteps` as 0-3 concrete
1043
1050
rank-up moves only when they are merge-relevant and likely to improve reviewer
1044
1051
confidence. Use an empty array for `S`, `A`, and `NA`, and usually for `B`
1045
1052
unless one specific action materially reduces risk. Do not invent optional
1046
-
polish work or create churn for already-good PRs. For an authority-sensitive
1047
-
PR, tailor a rank-up move to the nearest forbidden principal and the final side
1048
-
effect; generic requests for more tests or more security review are not enough.
1053
+
polish work or create churn for already-good PRs. For a PR that meets the
1054
+
narrowed authority-chain trigger, tailor any authority-related rank-up move to
1055
+
the nearest forbidden principal and the final side effect; generic requests for
1056
+
more tests or more security review are not enough.
1049
1057
1050
1058
Always fill `telegramVisibleProof` using the changed-behavior classification
1051
1059
above. It only controls the `mantis: telegram-visible-proof` label.
0 commit comments