Skip to content

fix(governance): Promote-to-Public is platform-admin only + CR-09 docs refresh - #23

Merged
ObaidulKabir merged 2 commits into
ci/run-testsfrom
fix/public-approval-platform-only
Oct 27, 2026
Merged

ObaidulKabir merged 2 commits into
ci/run-testsfrom
fix/public-approval-platform-only

Conversation

@ObaidulKabir

Copy link
Copy Markdown
Owner

What

  • Security fix: POST /api/workflow-classes/{id}/approve (Promote-to-Public) now requires an Admin of the platform tenant. Before, the Admin of any tenant could make a class visible to every tenant.
  • CR-09 docs refresh: docs/15-known-limitations-and-gaps.md gets a Resolved section. The State Machine gap is narrowed to legacy instances without a workflow class (class-backed instances already fail closed). Stale links and text in chapters 08, 09 and 16 are fixed.

Tests

  • New E2E tests/FlowOS.EndToEndTests/Governance/WorkflowClass_PublicApproval_Tests.cs: tenant Admin → 403, class stays Shared; platform Admin → 200, class becomes Public.

Merge order

Base is ci/run-tests (#9). Can be merged independently of #20–#22.


Generated by Claude Code

…known-limitations docs

- Approving a WorkflowClass as Public now requires an Admin of the platform
  tenant. A Public class is visible to every tenant, so a tenant Admin must
  not be able to publish one.
- E2E test: tenant Admin gets 403 and the class stays Shared; platform Admin
  gets 200 and the class becomes Public.
- docs/15: add a Resolved section (AdminController, Public approval, compose
  port, ports, MCP schema examples). Narrow the State Machine gap to legacy
  instances without a workflow class.
- docs/08, 09, 16: fix links and text that described the old gaps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Db5nX38Equ6fWErg3oD32F
…lic unit test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Db5nX38Equ6fWErg3oD32F
@ObaidulKabir
ObaidulKabir merged commit 16efe7d into ci/run-tests Oct 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants