docs: define task-scoped Gitea MCP execution profile model (#12) #21
Reference in New Issue
Block a user
Delete Branch "feature/12-gitea-execution-profile-model"
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?
Closes #12
Roadmap parent: #10
Summary
Adds
docs/gitea-execution-profiles.mddefining the task-scoped execution profile model forgitea-mcp. Documentation/model only — no runtime behavior.The doc covers:
profile_name,authenticated_username,allowed_operations,forbidden_operations,token_source_name,audit_label, and capability booleans (can_approve_prs,can_merge_prs,can_push_branches,can_mutate_issues,can_author_impl_prs).gitea-issue-manager,gitea-author,gitea-reviewer,gitea-merger,gitea-owner, each with allowed/forbidden ops and booleans.gitea_whoami, #11) must be known before any mutation; ambiguity = denial.gitea_whoamilogin vs PR author).token_source_nameis a name only; values never logged/returned/committed.Files changed
docs/gitea-execution-profiles.md(new, +215 lines) — only file changed.Validation
git diff --check→ clean (no whitespace errors).python3 -m py_compile mcp_server.py tests/test_mcp_server.py→ OK (code untouched, sanity check).pytest tests/test_mcp_server.py→ 30 passed.git diff master --stat→ 1 file, additions only.Explicit statements
token_source_namerefers to a variable/key name only; no token values appear anywhere.Scoped to #12 only. Does not touch #13–#19. Do not merge — awaiting independent review.
Independent review for issue #12 is held due reviewer eligibility.
Validation performed:
master.jcwalker3, which matches the PR author, so I cannot approve this PR from this account.5aad2e6.docs/gitea-execution-profiles.md.git fetch --all --prunecompleted.git diff --check prgs/master...5aad2e6passed.git diff --name-only prgs/master...5aad2e6returned onlydocs/gitea-execution-profiles.md.python3 -m py_compile mcp_server.py tests/test_mcp_server.pypassed.pytest tests/test_mcp_server.pypassed: 30 passed.Manual review notes:
gitea-issue-manager,gitea-author,gitea-reviewer,gitea-merger, andgitea-owner.Blocker: reviewer is ineligible from the current authenticated Gitea account (
jcwalker3). A different reviewer account is required to approve.Approved for merge based on documentation validation.