feat(workflow): add native author workflow loading for work-issue mode #873

Open
opened 2026-07-24 02:00:23 -05:00 by jcwalker3 · 0 comments
Owner

Problem

An authenticated prgs-author session cannot establish canonical author workflow-load proof for issue work or conflict remediation. The available loader returned the reviewer workflow even when the requested task was work-issue.

Reproduction

  1. Start a fresh gitea-author / prgs-author session.
  2. Complete identity and runtime-parity preflight.
  3. Request the canonical author workflow for work-issue.
  4. Observe that the returned workflow is review-merge-pr.md with task mode review-merge-pr.

Expected behavior

An author session must have a sanctioned native capability that returns:

  • workflow source:
    skills/llm-project-workflow/workflows/work-issue.md
  • task mode:
    work-issue
  • valid workflow-load proof scoped to the author role and current session.

Reviewer sessions must continue receiving review-merge-pr.md.

Acceptance criteria

  1. A native MCP loader supports the author work-issue workflow.
  2. Routing is role-aware and fail-closed.
  3. Author sessions receive work-issue.md.
  4. Reviewer sessions continue receiving review-merge-pr.md.
  5. Unsupported task modes and role/task mismatches are rejected clearly.
  6. Workflow-load proof records the selected source, task mode, role, profile, and session.
  7. MCP tool registration and schemas expose the supported author path.
  8. Focused tests cover author loading, reviewer loading, invalid modes, role mismatches, proof generation, and MCP registration.
  9. Runtime/restart documentation identifies whether namespaces must be restarted after deployment.
  10. A fresh standalone author session verifies the corrected behavior after the fix reaches live master.

Investigation note

The exact implementation cause is intentionally unasserted. Determine it through the sanctioned author workflow during implementation. Do not rely on the earlier controller session’s direct filesystem inspection as proof.

### Problem An authenticated `prgs-author` session cannot establish canonical author workflow-load proof for issue work or conflict remediation. The available loader returned the reviewer workflow even when the requested task was `work-issue`. ### Reproduction 1. Start a fresh `gitea-author / prgs-author` session. 2. Complete identity and runtime-parity preflight. 3. Request the canonical author workflow for `work-issue`. 4. Observe that the returned workflow is `review-merge-pr.md` with task mode `review-merge-pr`. ### Expected behavior An author session must have a sanctioned native capability that returns: * workflow source: `skills/llm-project-workflow/workflows/work-issue.md` * task mode: `work-issue` * valid workflow-load proof scoped to the author role and current session. Reviewer sessions must continue receiving `review-merge-pr.md`. ### Acceptance criteria 1. A native MCP loader supports the author `work-issue` workflow. 2. Routing is role-aware and fail-closed. 3. Author sessions receive `work-issue.md`. 4. Reviewer sessions continue receiving `review-merge-pr.md`. 5. Unsupported task modes and role/task mismatches are rejected clearly. 6. Workflow-load proof records the selected source, task mode, role, profile, and session. 7. MCP tool registration and schemas expose the supported author path. 8. Focused tests cover author loading, reviewer loading, invalid modes, role mismatches, proof generation, and MCP registration. 9. Runtime/restart documentation identifies whether namespaces must be restarted after deployment. 10. A fresh standalone author session verifies the corrected behavior after the fix reaches live master. ### Investigation note The exact implementation cause is intentionally unasserted. Determine it through the sanctioned author workflow during implementation. Do not rely on the earlier controller session’s direct filesystem inspection as proof.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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