feat: register work-issue task routing for role-aware MCP (Closes #139) #385

Merged
sysadmin merged 5 commits from feat/issue-139-role-aware-work-issue-routing into master 2026-07-07 10:24:05 -05:00
Owner

Summary

Completes the remaining #139 gap: the canonical work-issue author workflow now resolves through the same role-aware MCP routing layer as other tasks.

Changes

  • task_capability_map.pywork_issue / work-issuegitea.pr.create / author role
  • role_session_router.py — author routing for work-issue task aliases (no more ambiguous_task_stop)
  • gitea_mcp_server.pywork_issue in runtime context task capabilities (can_work_issues)
  • work-issue.md — §2A pre-task routing via gitea_route_task_session + gitea_resolve_task_capability
  • review_proofs.py — work-issue workflow source and mode-isolation verifiers
  • Tests for resolver, router, workflow contract, and final-report verifier

Context

Most #139 acceptance criteria already landed (resolver, runtime context, dual-namespace docs, permission boundaries). This PR closes the loop for the default author prompt path (work-issue mode).

Validation

pytest tests/test_resolve_task_capability.py tests/test_role_session_router.py \
  tests/test_review_proofs.py::TestWorkIssueFinalReport \
  tests/test_llm_workflow_split.py -k work_issue -q

37 passed

Closes #139

## Summary Completes the remaining #139 gap: the canonical `work-issue` author workflow now resolves through the same role-aware MCP routing layer as other tasks. ## Changes - `task_capability_map.py` — `work_issue` / `work-issue` → `gitea.pr.create` / author role - `role_session_router.py` — author routing for work-issue task aliases (no more `ambiguous_task_stop`) - `gitea_mcp_server.py` — `work_issue` in runtime context task capabilities (`can_work_issues`) - `work-issue.md` — §2A pre-task routing via `gitea_route_task_session` + `gitea_resolve_task_capability` - `review_proofs.py` — work-issue workflow source and mode-isolation verifiers - Tests for resolver, router, workflow contract, and final-report verifier ## Context Most #139 acceptance criteria already landed (resolver, runtime context, dual-namespace docs, permission boundaries). This PR closes the loop for the default author prompt path (`work-issue` mode). ## Validation ``` pytest tests/test_resolve_task_capability.py tests/test_role_session_router.py \ tests/test_review_proofs.py::TestWorkIssueFinalReport \ tests/test_llm_workflow_split.py -k work_issue -q ``` 37 passed Closes #139
jcwalker3 added 1 commit 2026-07-07 08:31:23 -05:00
- Map work_issue/work-issue to author role and gitea.pr.create in resolver
- Route work-issue sessions through role_session_router before mutations
- Expose work_issue in runtime context task capabilities
- Add work-issue workflow source verifier and canonical routing docs
- Tests for resolver, router, and final-report verifier

Closes #139

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
jcwalker3 added 1 commit 2026-07-07 08:38:40 -05:00
jcwalker3 added 1 commit 2026-07-07 08:58:50 -05:00
Merge prgs/master and keep work-issue author routing (#139) alongside
reconciler close task routing (#309).
jcwalker3 added 1 commit 2026-07-07 09:34:28 -05:00
Merge prgs/master; keep work-issue author routing (#139) alongside
reconciler task entries from master (#309/#310).
jcwalker3 added 1 commit 2026-07-07 10:19:31 -05:00
Merge prgs/master into feat/issue-139-role-aware-work-issue-routing and
keep both work-issue task routing entries and reconcile-landed-pr entries
in task_capability_map.py.
sysadmin approved these changes 2026-07-07 10:23:52 -05:00
sysadmin left a comment
Owner

Manual review of changed files and test suite validation passed. The new task routing for work-issue correctly integrates with the role-aware MCP capability resolver, resolving issue #139. All tests pass cleanly. Approved.

Manual review of changed files and test suite validation passed. The new task routing for work-issue correctly integrates with the role-aware MCP capability resolver, resolving issue #139. All tests pass cleanly. Approved.
sysadmin merged commit 027a3cb92c into master 2026-07-07 10:24:05 -05:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Scaled-Tech-Consulting/Gitea-Tools#385