[P1][workflow] Allow private Forgejo MCP reads in independent PR review #207
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
P1
P2
P3
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Creatidy/scarcity-router#207
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
.kilo/agents/pr-reviewer.mdrequires anonymous canonicalgit ls-remote, preventing independent review when Git transport is private or unavailable to the reviewer.Authorized behavior and scope
Use read-only Forgejo MCP metadata to verify canonical repository identity, current open PR, head/base refs and exact commit identities. Verify independently against the primary-prepared clean local checkout, exact SHA objects, merge base and complete whole-PR diff. Anonymous
git ls-remoteis optional corroboration only. Reviewer credentials remain unavailable to model/shell; MCP must not disclose tokens. Keep normal Git for implementation fetch/branch/commit/push; reviewer MCP stays read-only with no file writes or repository mutations. Preserve fresh context, frozen HEAD/base, ordinals, existing provider/model policy, required CI/validation, merge authority, and all additional restricted/security reviewer rules.Affected:
.kilo/agents/pr-reviewer.md, applicable command/rule references and workflow contract tests only as needed.Acceptance
A private/no-anonymous-Git case reviews successfully only when canonical MCP metadata and prepared exact local Git evidence agree; missing/mismatched evidence refuses approval. Regression tests preserve security restrictions and full review gates.
Non-goals
No credential access, MCP writes, implementation/integration, security-policy relaxation or weakened independent review.
Implemented in PR #208: BioMedical-IT/scarcity-router#208
READY_TO_MERGE. Reviewer now uses canonical read-only Forgejo metadata plus exact local Git evidence, without requiring anonymous Git access. Security/read-only gates preserved; shared rule and focused regression test updated.
Final validation PASS:
make check, focused contract test,uv run basedpyright, whitespace checks. Fresh independent whole-PR review ordinal 4 APPROVE with no findings; authorized fresh-context fallback used because startup-loaded pr-reviewer instructions were stale. Final canonical refs match and checkout is clean.Base
edd31326d4abe5cc282adb419cb54c78d4677ec4; heada7a8108160d7bf8c31cca157a2e1b3ee42e12a66. PR and issue remain open; no merge or deployment. Already-loaded Kilo agent configuration may require a workspace reload.