Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Promote organization transport shared ownership

rcourtman4833f6f6ee42
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index d3aa5b3a0a..eb7d37b06b 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -80,48 +80,54 @@ Own canonical runtime payload shapes between backend and frontend.
2. `frontend-modern/src/api/ai.ts` shared with `ai-runtime`: the AI frontend client is both an AI runtime control surface and a canonical API payload contract boundary.
3. `frontend-modern/src/api/nodes.ts` shared with `agent-lifecycle`: the shared Proxmox node client is both an agent lifecycle setup/install control surface and a canonical API payload contract boundary.
4. `frontend-modern/src/api/notifications.ts` shared with `notifications`: the notifications frontend client is both a notification delivery control surface and a canonical API payload contract boundary.
-5. `frontend-modern/src/api/patrol.ts` shared with `ai-runtime`: the Patrol frontend client is both an AI runtime control surface and a canonical API payload contract boundary.
-6. `frontend-modern/src/api/security.ts` shared with `security-privacy`: the security frontend client is both a security/privacy control surface and a canonical API payload contract boundary.
-7. `frontend-modern/src/api/updates.ts` shared with `deployment-installability`: the updates frontend client is both a deployment-installability control surface and a canonical API payload contract boundary.
-8. `frontend-modern/src/components/Settings/APITokenManager.tsx` shared with `security-privacy`: the API token settings surface is both a security/privacy control surface and a canonical API payload contract boundary.
-9. `frontend-modern/src/components/Settings/apiTokenManagerModel.ts` shared with `security-privacy`: the pure API token settings model is both a security/privacy control surface and a canonical API payload contract boundary.
-10. `frontend-modern/src/components/Settings/InfrastructureOperationsController.tsx` shared with `agent-lifecycle`: the infrastructure operations controller is both an agent fleet lifecycle control surface and an API token, lookup, assignment, and reporting/install contract boundary.
-11. `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx` shared with `agent-lifecycle`: the pure infrastructure operations inventory/install model is both an agent fleet lifecycle control surface and an API token, lookup, assignment, and reporting/install contract boundary.
-12. `frontend-modern/src/components/Settings/NodeModal.tsx` shared with `agent-lifecycle`: the node setup modal render shell is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
-13. `frontend-modern/src/components/Settings/NodeModalAuthenticationSection.tsx` shared with `agent-lifecycle`: the node setup authentication section is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
-14. `frontend-modern/src/components/Settings/NodeModalBasicInfoSection.tsx` shared with `agent-lifecycle`: the node setup basic-info section is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
-15. `frontend-modern/src/components/Settings/nodeModalModel.ts` shared with `agent-lifecycle`: the pure node setup modal model is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
-16. `frontend-modern/src/components/Settings/NodeModalMonitoringSection.tsx` shared with `agent-lifecycle`: the node setup monitoring section is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
-17. `frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx` shared with `agent-lifecycle`: the node setup guide section is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
-18. `frontend-modern/src/components/Settings/NodeModalStatusFooter.tsx` shared with `agent-lifecycle`: the node setup status/footer section is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
-19. `frontend-modern/src/components/Settings/useAPITokenManagerState.ts` shared with `security-privacy`: the API token settings state hook is both a security/privacy control surface and a canonical API payload contract boundary.
-20. `frontend-modern/src/components/Settings/useInfrastructureConfiguredNodesState.ts` shared with `agent-lifecycle`: the direct-node infrastructure settings state hook is both an agent lifecycle control surface and a shared Proxmox node API contract boundary.
-21. `frontend-modern/src/components/Settings/useInfrastructureDiscoveryRuntimeState.ts` shared with `agent-lifecycle`: the infrastructure discovery runtime state hook is both an agent lifecycle control surface and a shared discovery/settings API contract boundary.
-22. `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx` shared with `agent-lifecycle`: the infrastructure install state hook is both an agent fleet lifecycle control surface and an API token, lookup, and install transport contract boundary.
-23. `frontend-modern/src/components/Settings/useInfrastructureOperationsState.tsx` shared with `agent-lifecycle`: the shared infrastructure operations state hook is both an agent fleet lifecycle control surface and an API token, lookup, assignment, and reporting/install contract boundary.
-24. `frontend-modern/src/components/Settings/useInfrastructureReportingState.tsx` shared with `agent-lifecycle`: the infrastructure reporting state hook is both an agent fleet lifecycle control surface and an API-backed assignment, reporting, and reconnect contract boundary.
-25. `frontend-modern/src/components/Settings/useNodeModalState.ts` shared with `agent-lifecycle`: the node setup modal state hook is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
-24. `frontend-modern/src/utils/agentInstallCommand.ts` shared with `agent-lifecycle`: the shared frontend install-command helper is both an agent lifecycle control surface and a canonical API/install transport contract boundary.
-25. `frontend-modern/src/utils/apiTokenPresentation.ts` shared with `security-privacy`: the API token presentation helper is both a security/privacy control surface and a canonical API token management boundary.
-26. `frontend-modern/src/utils/infrastructureSettingsPresentation.ts` shared with `agent-lifecycle`: the infrastructure settings presentation helper is both an agent lifecycle control surface and an API-backed direct-node/discovery settings boundary.
-25. `internal/api/agent_install_command_shared.go` shared with `agent-lifecycle`: agent install command assembly is both an agent lifecycle control surface and a canonical API payload contract boundary.
-26. `internal/api/ai_handler.go` shared with `ai-runtime`: Pulse Assistant handlers are both an AI runtime control surface and a canonical API payload contract boundary.
-27. `internal/api/ai_handlers.go` shared with `ai-runtime`: AI settings and remediation handlers are both an AI runtime control surface and a canonical API payload contract boundary.
-28. `internal/api/ai_intelligence_handlers.go` shared with `ai-runtime`: AI intelligence handlers are both an AI runtime control surface and a canonical API payload contract boundary.
-29. `internal/api/config_setup_handlers.go` shared with `agent-lifecycle`: auto-register and setup handlers are both an agent lifecycle control surface and a canonical API payload contract boundary.
-30. `internal/api/licensing_bridge.go` shared with `cloud-paid`: commercial licensing bridge handlers carry both API payload contract and cloud-paid entitlement boundary ownership.
-31. `internal/api/licensing_handlers.go` shared with `cloud-paid`: commercial licensing handlers carry both API payload contract and cloud-paid entitlement boundary ownership.
-26. `internal/api/notifications.go` shared with `notifications`: notification handlers are both a notification delivery control surface and a canonical API payload contract boundary.
-27. `internal/api/payments_webhook_handlers.go` shared with `cloud-paid`: commercial payment webhook handlers carry both API payload contract and cloud-paid billing boundary ownership.
-28. `internal/api/public_signup_handlers.go` shared with `cloud-paid`: hosted signup handlers carry both API payload contract and cloud-paid hosted provisioning boundary ownership.
-29. `internal/api/relay_mobile_capability.go` shared with `relay-runtime`: the backend-owned Pulse Mobile relay capability inventory is both a relay runtime boundary and a canonical API payload contract surface.
-30. `internal/api/resources.go` shared with `unified-resources`: the unified resource endpoint is both a backend payload contract surface and a unified-resource runtime boundary.
-31. `internal/api/security.go` shared with `security-privacy`: the security handlers are both a security/privacy control surface and a canonical API payload contract boundary.
-32. `internal/api/security_tokens.go` shared with `security-privacy`: the security token handlers are both a security/privacy control surface and a canonical API payload contract boundary.
-33. `internal/api/slo.go` shared with `performance-and-scalability`: the SLO endpoint is both an API contract surface and a protected performance hot-path boundary.
-33. `internal/api/system_settings.go` shared with `security-privacy`: the system settings telemetry and auth controls are both a security/privacy control surface and a canonical API payload contract boundary.
-34. `internal/api/unified_agent.go` shared with `agent-lifecycle`: unified agent download and installer handlers are both an agent lifecycle control surface and a canonical API payload contract boundary.
-35. `internal/api/updates.go` shared with `deployment-installability`: update handlers are both a deployment-installability control surface and a canonical API payload contract boundary.
+5. `frontend-modern/src/api/orgs.ts` shared with `organization-settings`: the organization frontend client is both an organization settings control surface and a canonical API payload contract boundary.
+6. `frontend-modern/src/api/patrol.ts` shared with `ai-runtime`: the Patrol frontend client is both an AI runtime control surface and a canonical API payload contract boundary.
+7. `frontend-modern/src/api/rbac.ts` shared with `organization-settings`: the RBAC frontend client is both an organization settings control surface and a canonical API payload contract boundary.
+8. `frontend-modern/src/api/security.ts` shared with `security-privacy`: the security frontend client is both a security/privacy control surface and a canonical API payload contract boundary.
+9. `frontend-modern/src/api/updates.ts` shared with `deployment-installability`: the updates frontend client is both a deployment-installability control surface and a canonical API payload contract boundary.
+10. `frontend-modern/src/components/Settings/APITokenManager.tsx` shared with `security-privacy`: the API token settings surface is both a security/privacy control surface and a canonical API payload contract boundary.
+11. `frontend-modern/src/components/Settings/apiTokenManagerModel.ts` shared with `security-privacy`: the pure API token settings model is both a security/privacy control surface and a canonical API payload contract boundary.
+12. `frontend-modern/src/components/Settings/InfrastructureOperationsController.tsx` shared with `agent-lifecycle`: the infrastructure operations controller is both an agent fleet lifecycle control surface and an API token, lookup, assignment, and reporting/install contract boundary.
+13. `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx` shared with `agent-lifecycle`: the pure infrastructure operations inventory/install model is both an agent fleet lifecycle control surface and an API token, lookup, assignment, and reporting/install contract boundary.
+14. `frontend-modern/src/components/Settings/NodeModal.tsx` shared with `agent-lifecycle`: the node setup modal render shell is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
+15. `frontend-modern/src/components/Settings/NodeModalAuthenticationSection.tsx` shared with `agent-lifecycle`: the node setup authentication section is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
+16. `frontend-modern/src/components/Settings/NodeModalBasicInfoSection.tsx` shared with `agent-lifecycle`: the node setup basic-info section is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
+17. `frontend-modern/src/components/Settings/nodeModalModel.ts` shared with `agent-lifecycle`: the pure node setup modal model is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
+18. `frontend-modern/src/components/Settings/NodeModalMonitoringSection.tsx` shared with `agent-lifecycle`: the node setup monitoring section is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
+19. `frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx` shared with `agent-lifecycle`: the node setup guide section is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
+20. `frontend-modern/src/components/Settings/NodeModalStatusFooter.tsx` shared with `agent-lifecycle`: the node setup status/footer section is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
+21. `frontend-modern/src/components/Settings/useAPITokenManagerState.ts` shared with `security-privacy`: the API token settings state hook is both a security/privacy control surface and a canonical API payload contract boundary.
+22. `frontend-modern/src/components/Settings/useInfrastructureConfiguredNodesState.ts` shared with `agent-lifecycle`: the direct-node infrastructure settings state hook is both an agent lifecycle control surface and a shared Proxmox node API contract boundary.
+23. `frontend-modern/src/components/Settings/useInfrastructureDiscoveryRuntimeState.ts` shared with `agent-lifecycle`: the infrastructure discovery runtime state hook is both an agent lifecycle control surface and a shared discovery/settings API contract boundary.
+24. `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx` shared with `agent-lifecycle`: the infrastructure install state hook is both an agent fleet lifecycle control surface and an API token, lookup, and install transport contract boundary.
+25. `frontend-modern/src/components/Settings/useInfrastructureOperationsState.tsx` shared with `agent-lifecycle`: the shared infrastructure operations state hook is both an agent fleet lifecycle control surface and an API token, lookup, assignment, and reporting/install contract boundary.
+26. `frontend-modern/src/components/Settings/useInfrastructureReportingState.tsx` shared with `agent-lifecycle`: the infrastructure reporting state hook is both an agent fleet lifecycle control surface and an API-backed assignment, reporting, and reconnect contract boundary.
+27. `frontend-modern/src/components/Settings/useNodeModalState.ts` shared with `agent-lifecycle`: the node setup modal state hook is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.
+28. `frontend-modern/src/utils/agentInstallCommand.ts` shared with `agent-lifecycle`: the shared frontend install-command helper is both an agent lifecycle control surface and a canonical API/install transport contract boundary.
+29. `frontend-modern/src/utils/apiTokenPresentation.ts` shared with `security-privacy`: the API token presentation helper is both a security/privacy control surface and a canonical API token management boundary.
+30. `frontend-modern/src/utils/infrastructureSettingsPresentation.ts` shared with `agent-lifecycle`: the infrastructure settings presentation helper is both an agent lifecycle control surface and an API-backed direct-node/discovery settings boundary.
+31. `internal/api/access_control_handlers.go` shared with `organization-settings`: RBAC role and user-assignment handlers are both an organization settings control surface and a canonical API payload contract boundary.
+32. `internal/api/agent_install_command_shared.go` shared with `agent-lifecycle`: agent install command assembly is both an agent lifecycle control surface and a canonical API payload contract boundary.
+33. `internal/api/ai_handler.go` shared with `ai-runtime`: Pulse Assistant handlers are both an AI runtime control surface and a canonical API payload contract boundary.
+34. `internal/api/ai_handlers.go` shared with `ai-runtime`: AI settings and remediation handlers are both an AI runtime control surface and a canonical API payload contract boundary.
+35. `internal/api/ai_intelligence_handlers.go` shared with `ai-runtime`: AI intelligence handlers are both an AI runtime control surface and a canonical API payload contract boundary.
+36. `internal/api/config_setup_handlers.go` shared with `agent-lifecycle`: auto-register and setup handlers are both an agent lifecycle control surface and a canonical API payload contract boundary.
+37. `internal/api/enterprise_extension_rbac_admin.go` shared with `organization-settings`: RBAC admin extension endpoints are both an organization settings control surface and a canonical API payload contract boundary.
+38. `internal/api/licensing_bridge.go` shared with `cloud-paid`: commercial licensing bridge handlers carry both API payload contract and cloud-paid entitlement boundary ownership.
+39. `internal/api/licensing_handlers.go` shared with `cloud-paid`: commercial licensing handlers carry both API payload contract and cloud-paid entitlement boundary ownership.
+40. `internal/api/notifications.go` shared with `notifications`: notification handlers are both a notification delivery control surface and a canonical API payload contract boundary.
+41. `internal/api/org_handlers.go` shared with `organization-settings`: organization management handlers are both an organization settings control surface and a canonical API payload contract boundary.
+42. `internal/api/org_lifecycle_handlers.go` shared with `organization-settings`: organization lifecycle handlers are both an organization settings control surface and a canonical API payload contract boundary.
+43. `internal/api/payments_webhook_handlers.go` shared with `cloud-paid`: commercial payment webhook handlers carry both API payload contract and cloud-paid billing boundary ownership.
+44. `internal/api/public_signup_handlers.go` shared with `cloud-paid`: hosted signup handlers carry both API payload contract and cloud-paid hosted provisioning boundary ownership.
+45. `internal/api/relay_mobile_capability.go` shared with `relay-runtime`: the backend-owned Pulse Mobile relay capability inventory is both a relay runtime boundary and a canonical API payload contract surface.
+46. `internal/api/resources.go` shared with `unified-resources`: the unified resource endpoint is both a backend payload contract surface and a unified-resource runtime boundary.
+47. `internal/api/security.go` shared with `security-privacy`: the security handlers are both a security/privacy control surface and a canonical API payload contract boundary.
+48. `internal/api/security_tokens.go` shared with `security-privacy`: the security token handlers are both a security/privacy control surface and a canonical API payload contract boundary.
+49. `internal/api/slo.go` shared with `performance-and-scalability`: the SLO endpoint is both an API contract surface and a protected performance hot-path boundary.
+50. `internal/api/system_settings.go` shared with `security-privacy`: the system settings telemetry and auth controls are both a security/privacy control surface and a canonical API payload contract boundary.
+51. `internal/api/unified_agent.go` shared with `agent-lifecycle`: unified agent download and installer handlers are both an agent lifecycle control surface and a canonical API payload contract boundary.
+52. `internal/api/updates.go` shared with `deployment-installability`: update handlers are both a deployment-installability control surface and a canonical API payload contract boundary.
## Extension Points
1. Add or change payload fields through handler + contract tests together
diff --git a/docs/release-control/v6/internal/subsystems/organization-settings.md b/docs/release-control/v6/internal/subsystems/organization-settings.md
index 86af31e23a..c29c50c5d6 100644
--- a/docs/release-control/v6/internal/subsystems/organization-settings.md
+++ b/docs/release-control/v6/internal/subsystems/organization-settings.md
@@ -9,9 +9,7 @@
"contract_file": "docs/release-control/v6/internal/subsystems/organization-settings.md",
"status_file": "docs/release-control/v6/internal/status.json",
"registry_file": "docs/release-control/v6/internal/subsystems/registry.json",
- "dependency_subsystem_ids": [
- "api-contracts"
- ]
+ "dependency_subsystem_ids": []
}
```
@@ -23,45 +21,57 @@ create cross-organization shares.
## Canonical Files
-1. `internal/models/organization.go`
-2. `frontend-modern/src/components/Settings/OrganizationAccessPanel.tsx`
+1. `frontend-modern/src/api/orgs.ts`
+2. `frontend-modern/src/api/rbac.ts`
3. `frontend-modern/src/components/Settings/OrganizationAccessLoadingState.tsx`
4. `frontend-modern/src/components/Settings/OrganizationAccessManagementSection.tsx`
5. `frontend-modern/src/components/Settings/OrganizationAccessMembersSection.tsx`
-6. `frontend-modern/src/components/Settings/OrganizationOverviewPanel.tsx`
-7. `frontend-modern/src/components/Settings/OrganizationOverviewLoadingState.tsx`
-8. `frontend-modern/src/components/Settings/OrganizationOverviewDetailsSection.tsx`
-9. `frontend-modern/src/components/Settings/OrganizationOverviewMembersSection.tsx`
-10. `frontend-modern/src/components/Settings/OrganizationSharingPanel.tsx`
-11. `frontend-modern/src/components/Settings/OrganizationSharingCreateSection.tsx`
-12. `frontend-modern/src/components/Settings/OrganizationSharingLoadingState.tsx`
-13. `frontend-modern/src/components/Settings/OrganizationOutgoingSharesSection.tsx`
-14. `frontend-modern/src/components/Settings/OrganizationIncomingSharesSection.tsx`
-15. `frontend-modern/src/components/Settings/useOrganizationAccessPanelState.ts`
-16. `frontend-modern/src/components/Settings/useOrganizationOverviewPanelState.ts`
-17. `frontend-modern/src/components/Settings/useOrganizationSharingPanelState.ts`
+6. `frontend-modern/src/components/Settings/OrganizationAccessPanel.tsx`
+7. `frontend-modern/src/components/Settings/OrganizationIncomingSharesSection.tsx`
+8. `frontend-modern/src/components/Settings/OrganizationOutgoingSharesSection.tsx`
+9. `frontend-modern/src/components/Settings/OrganizationOverviewDetailsSection.tsx`
+10. `frontend-modern/src/components/Settings/OrganizationOverviewLoadingState.tsx`
+11. `frontend-modern/src/components/Settings/OrganizationOverviewMembersSection.tsx`
+12. `frontend-modern/src/components/Settings/OrganizationOverviewPanel.tsx`
+13. `frontend-modern/src/components/Settings/OrganizationSharingCreateSection.tsx`
+14. `frontend-modern/src/components/Settings/OrganizationSharingLoadingState.tsx`
+15. `frontend-modern/src/components/Settings/OrganizationSharingPanel.tsx`
+16. `frontend-modern/src/components/Settings/RBACFeatureGateSection.tsx`
+17. `frontend-modern/src/components/Settings/RolesEditorDialog.tsx`
18. `frontend-modern/src/components/Settings/RolesPanel.tsx`
-19. `frontend-modern/src/components/Settings/RBACFeatureGateSection.tsx`
-20. `frontend-modern/src/components/Settings/RolesEditorDialog.tsx`
-21. `frontend-modern/src/components/Settings/useRBACFeatureGateState.ts`
-22. `frontend-modern/src/components/Settings/useRolesPanelState.ts`
+19. `frontend-modern/src/components/Settings/useOrganizationAccessPanelState.ts`
+20. `frontend-modern/src/components/Settings/useOrganizationOverviewPanelState.ts`
+21. `frontend-modern/src/components/Settings/useOrganizationSharingPanelState.ts`
+22. `frontend-modern/src/components/Settings/UserAssignmentsDialog.tsx`
23. `frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx`
-24. `frontend-modern/src/components/Settings/UserAssignmentsDialog.tsx`
-25. `frontend-modern/src/components/Settings/useUserAssignmentsPanelState.ts`
-26. `frontend-modern/src/utils/orgUtils.ts`
+24. `frontend-modern/src/components/Settings/useRBACFeatureGateState.ts`
+25. `frontend-modern/src/components/Settings/useRolesPanelState.ts`
+26. `frontend-modern/src/components/Settings/useUserAssignmentsPanelState.ts`
27. `frontend-modern/src/utils/organizationRolePresentation.ts`
28. `frontend-modern/src/utils/organizationSettingsPresentation.ts`
+29. `frontend-modern/src/utils/orgUtils.ts`
+30. `internal/api/access_control_handlers.go`
+31. `internal/api/enterprise_extension_rbac_admin.go`
+32. `internal/api/org_handlers.go`
+33. `internal/api/org_lifecycle_handlers.go`
+34. `internal/models/organization.go`
## Shared Boundaries
-1. None.
+1. `frontend-modern/src/api/orgs.ts` shared with `api-contracts`: the organization frontend client is both an organization settings control surface and a canonical API payload contract boundary.
+2. `frontend-modern/src/api/rbac.ts` shared with `api-contracts`: the RBAC frontend client is both an organization settings control surface and a canonical API payload contract boundary.
+3. `internal/api/access_control_handlers.go` shared with `api-contracts`: RBAC role and user-assignment handlers are both an organization settings control surface and a canonical API payload contract boundary.
+4. `internal/api/enterprise_extension_rbac_admin.go` shared with `api-contracts`: RBAC admin extension endpoints are both an organization settings control surface and a canonical API payload contract boundary.
+5. `internal/api/org_handlers.go` shared with `api-contracts`: organization management handlers are both an organization settings control surface and a canonical API payload contract boundary.
+6. `internal/api/org_lifecycle_handlers.go` shared with `api-contracts`: organization lifecycle handlers are both an organization settings control surface and a canonical API payload contract boundary.
## Extension Points
1. Add or change organization role and share semantics through `internal/models/organization.go`
2. Add or change organization access, overview, sharing, RBAC feature-gating, role-management, or user-assignment presentation through `frontend-modern/src/components/Settings/OrganizationAccessPanel.tsx`, `frontend-modern/src/components/Settings/OrganizationAccessLoadingState.tsx`, `frontend-modern/src/components/Settings/OrganizationAccessManagementSection.tsx`, `frontend-modern/src/components/Settings/OrganizationAccessMembersSection.tsx`, `frontend-modern/src/components/Settings/OrganizationOverviewPanel.tsx`, `frontend-modern/src/components/Settings/OrganizationOverviewLoadingState.tsx`, `frontend-modern/src/components/Settings/OrganizationOverviewDetailsSection.tsx`, `frontend-modern/src/components/Settings/OrganizationOverviewMembersSection.tsx`, `frontend-modern/src/components/Settings/OrganizationSharingPanel.tsx`, `frontend-modern/src/components/Settings/OrganizationSharingCreateSection.tsx`, `frontend-modern/src/components/Settings/OrganizationSharingLoadingState.tsx`, `frontend-modern/src/components/Settings/OrganizationOutgoingSharesSection.tsx`, `frontend-modern/src/components/Settings/OrganizationIncomingSharesSection.tsx`, `frontend-modern/src/components/Settings/useOrganizationAccessPanelState.ts`, `frontend-modern/src/components/Settings/useOrganizationOverviewPanelState.ts`, `frontend-modern/src/components/Settings/useOrganizationSharingPanelState.ts`, `frontend-modern/src/components/Settings/RBACFeatureGateSection.tsx`, `frontend-modern/src/components/Settings/RolesPanel.tsx`, `frontend-modern/src/components/Settings/RolesEditorDialog.tsx`, `frontend-modern/src/components/Settings/useRBACFeatureGateState.ts`, `frontend-modern/src/components/Settings/useRolesPanelState.ts`, `frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx`, `frontend-modern/src/components/Settings/UserAssignmentsDialog.tsx`, and `frontend-modern/src/components/Settings/useUserAssignmentsPanelState.ts`
-3. Route organization transport changes through `frontend-modern/src/api/orgs.ts` and `frontend-modern/src/api/rbac.ts`
-4. Keep backend organization and RBAC handler changes aligned through `internal/api/org_handlers.go`, `internal/api/org_lifecycle_handlers.go`, and `internal/api/enterprise_extension_rbac_admin.go`
+3. Route organization and RBAC frontend transport changes through `frontend-modern/src/api/orgs.ts` and `frontend-modern/src/api/rbac.ts`
+4. Keep backend organization management and lifecycle handlers aligned through `internal/api/org_handlers.go` and `internal/api/org_lifecycle_handlers.go`
+5. Keep RBAC role, assignment, and admin recovery transport aligned through `internal/api/access_control_handlers.go` and `internal/api/enterprise_extension_rbac_admin.go`
## Forbidden Paths
@@ -73,7 +83,8 @@ create cross-organization shares.
1. Update the organization model, settings surfaces, and proof files together when role/share semantics move
2. Keep organization settings copy and validation inside the canonical organization presentation helpers
-3. Update this contract whenever a new organization settings, role-management, or organization-domain helper entry point becomes canonical runtime surface area
+3. Keep the shared organization and RBAC transport proof routes explicit in `registry.json`; default fallback proof routing is not allowed for this subsystem
+4. Update this contract whenever a new organization settings, role-management, or organization-domain helper entry point becomes canonical runtime surface area
## Current State
@@ -85,8 +96,9 @@ Organization overview, access, sharing, roles, and user-assignment surfaces had
been sitting outside the governed subsystem map even though they define real
runtime expectations around membership management, least-privilege role
assignment, and cross-organization resource sharing. This contract now makes
-that boundary explicit while leaving transport payload ownership in
-`api-contracts`.
+that boundary explicit across both the settings surfaces and the shared
+organization/RBAC transport files, instead of leaving those runtime paths as
+`api-contracts`-only ownership.
Canonical organization role ordering is now part of that owned model as well:
`owner` outranks `admin`, which outranks `editor`, which outranks `viewer`, and
runtime checks must resolve that ordering through shared organization-role
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index 3f29e838f2..379b233c26 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -33,6 +33,14 @@
"notifications"
]
},
+ {
+ "path": "frontend-modern/src/api/orgs.ts",
+ "rationale": "the organization frontend client is both an organization settings control surface and a canonical API payload contract boundary",
+ "subsystems": [
+ "api-contracts",
+ "organization-settings"
+ ]
+ },
{
"path": "frontend-modern/src/api/patrol.ts",
"rationale": "the Patrol frontend client is both an AI runtime control surface and a canonical API payload contract boundary",
@@ -41,6 +49,14 @@
"api-contracts"
]
},
+ {
+ "path": "frontend-modern/src/api/rbac.ts",
+ "rationale": "the RBAC frontend client is both an organization settings control surface and a canonical API payload contract boundary",
+ "subsystems": [
+ "api-contracts",
+ "organization-settings"
+ ]
+ },
{
"path": "frontend-modern/src/api/security.ts",
"rationale": "the security frontend client is both a security/privacy control surface and a canonical API payload contract boundary",
@@ -361,6 +377,14 @@
"api-contracts"
]
},
+ {
+ "path": "internal/api/access_control_handlers.go",
+ "rationale": "RBAC role and user-assignment handlers are both an organization settings control surface and a canonical API payload contract boundary",
+ "subsystems": [
+ "api-contracts",
+ "organization-settings"
+ ]
+ },
{
"path": "internal/api/agent_install_command_shared.go",
"rationale": "agent install command assembly is both an agent lifecycle control surface and a canonical API payload contract boundary",
@@ -401,6 +425,14 @@
"api-contracts"
]
},
+ {
+ "path": "internal/api/enterprise_extension_rbac_admin.go",
+ "rationale": "RBAC admin extension endpoints are both an organization settings control surface and a canonical API payload contract boundary",
+ "subsystems": [
+ "api-contracts",
+ "organization-settings"
+ ]
+ },
{
"path": "internal/api/licensing_bridge.go",
"rationale": "commercial licensing bridge handlers carry both API payload contract and cloud-paid entitlement boundary ownership",
@@ -425,6 +457,22 @@
"notifications"
]
},
+ {
+ "path": "internal/api/org_handlers.go",
+ "rationale": "organization management handlers are both an organization settings control surface and a canonical API payload contract boundary",
+ "subsystems": [
+ "api-contracts",
+ "organization-settings"
+ ]
+ },
+ {
+ "path": "internal/api/org_lifecycle_handlers.go",
+ "rationale": "organization lifecycle handlers are both an organization settings control surface and a canonical API payload contract boundary",
+ "subsystems": [
+ "api-contracts",
+ "organization-settings"
+ ]
+ },
{
"path": "internal/api/payments_webhook_handlers.go",
"rationale": "commercial payment webhook handlers carry both API payload contract and cloud-paid billing boundary ownership",
@@ -3056,6 +3104,8 @@
"contract": "docs/release-control/v6/internal/subsystems/organization-settings.md",
"owned_prefixes": [],
"owned_files": [
+ "frontend-modern/src/api/orgs.ts",
+ "frontend-modern/src/api/rbac.ts",
"frontend-modern/src/components/Settings/OrganizationAccessLoadingState.tsx",
"frontend-modern/src/components/Settings/OrganizationAccessManagementSection.tsx",
"frontend-modern/src/components/Settings/OrganizationAccessMembersSection.tsx",
@@ -3083,6 +3133,10 @@
"frontend-modern/src/utils/organizationRolePresentation.ts",
"frontend-modern/src/utils/organizationSettingsPresentation.ts",
"frontend-modern/src/utils/orgUtils.ts",
+ "internal/api/access_control_handlers.go",
+ "internal/api/enterprise_extension_rbac_admin.go",
+ "internal/api/org_handlers.go",
+ "internal/api/org_lifecycle_handlers.go",
"internal/models/organization.go"
],
"verification": {
@@ -3097,6 +3151,21 @@
],
"require_explicit_path_policy_coverage": true,
"path_policies": [
+ {
+ "id": "organization-api-clients",
+ "label": "organization and RBAC API client proof",
+ "match_prefixes": [],
+ "match_files": [
+ "frontend-modern/src/api/orgs.ts",
+ "frontend-modern/src/api/rbac.ts"
+ ],
+ "allow_same_subsystem_tests": false,
+ "test_prefixes": [],
+ "exact_files": [
+ "frontend-modern/src/api/__tests__/orgs.test.ts",
+ "frontend-modern/src/api/__tests__/rbac.test.ts"
+ ]
+ },
{
"id": "organization-domain-model",
"label": "organization domain model proof",
@@ -3113,6 +3182,24 @@
"internal/models/organization_additional_test.go"
]
},
+ {
+ "id": "organization-rbac-transport",
+ "label": "organization RBAC backend transport proof",
+ "match_prefixes": [],
+ "match_files": [
+ "internal/api/access_control_handlers.go",
+ "internal/api/enterprise_extension_rbac_admin.go"
+ ],
+ "allow_same_subsystem_tests": false,
+ "test_prefixes": [],
+ "exact_files": [
+ "internal/api/enterprise_extension_rbac_admin_test.go",
+ "internal/api/rbac_admin_handlers_test.go",
+ "internal/api/rbac_handlers_additional_test.go",
+ "internal/api/rbac_handlers_more_test.go",
+ "internal/api/rbac_handlers_test.go"
+ ]
+ },
{
"id": "organization-settings-surface",
"label": "organization settings surface proof",
@@ -3160,6 +3247,22 @@
"frontend-modern/src/utils/__tests__/organizationSettingsPresentation.test.ts",
"frontend-modern/src/utils/__tests__/orgUtils.test.ts"
]
+ },
+ {
+ "id": "organization-transport-backend",
+ "label": "organization backend transport proof",
+ "match_prefixes": [],
+ "match_files": [
+ "internal/api/org_handlers.go",
+ "internal/api/org_lifecycle_handlers.go"
+ ],
+ "allow_same_subsystem_tests": false,
+ "test_prefixes": [],
+ "exact_files": [
+ "internal/api/org_handlers_test.go",
+ "internal/api/org_lifecycle_handlers_test.go",
+ "internal/api/org_validation_test.go"
+ ]
}
]
}
diff --git a/scripts/release_control/canonical_completion_guard_test.py b/scripts/release_control/canonical_completion_guard_test.py
index 0916a741e9..a41ef812e0 100644
--- a/scripts/release_control/canonical_completion_guard_test.py
+++ b/scripts/release_control/canonical_completion_guard_test.py
@@ -838,6 +838,118 @@ class CanonicalCompletionGuardTest(unittest.TestCase):
],
)
+ def test_organization_client_change_requires_organization_settings_and_api_contracts(self):
+ required = infer_impacted_subsystems(["frontend-modern/src/api/orgs.ts"])
+ self.assertEqual(set(required), {"api-contracts", "organization-settings"})
+
+ api_contracts = required["api-contracts"]
+ self.assertEqual(
+ api_contracts["contract"],
+ "docs/release-control/v6/internal/subsystems/api-contracts.md",
+ )
+ self.assertEqual(
+ api_contracts["touched_runtime_files"],
+ ["frontend-modern/src/api/orgs.ts"],
+ )
+ self.assertEqual(
+ api_contracts["verification_requirements"],
+ [
+ {
+ "id": "frontend-api-clients",
+ "label": "frontend API client proof",
+ "touched_runtime_files": ["frontend-modern/src/api/orgs.ts"],
+ "allow_same_subsystem_tests": False,
+ "test_prefixes": ["frontend-modern/src/api/__tests__/"],
+ "exact_files": ["frontend-modern/src/types/api.ts"],
+ }
+ ],
+ )
+
+ organization_settings = required["organization-settings"]
+ self.assertEqual(
+ organization_settings["contract"],
+ "docs/release-control/v6/internal/subsystems/organization-settings.md",
+ )
+ self.assertEqual(
+ organization_settings["touched_runtime_files"],
+ ["frontend-modern/src/api/orgs.ts"],
+ )
+ self.assertEqual(
+ organization_settings["verification_requirements"],
+ [
+ {
+ "id": "organization-api-clients",
+ "label": "organization and RBAC API client proof",
+ "touched_runtime_files": ["frontend-modern/src/api/orgs.ts"],
+ "allow_same_subsystem_tests": False,
+ "test_prefixes": [],
+ "exact_files": [
+ "frontend-modern/src/api/__tests__/orgs.test.ts",
+ "frontend-modern/src/api/__tests__/rbac.test.ts",
+ ],
+ }
+ ],
+ )
+
+ def test_organization_rbac_backend_change_requires_organization_settings_and_api_contracts(self):
+ required = infer_impacted_subsystems(["internal/api/access_control_handlers.go"])
+ self.assertEqual(set(required), {"api-contracts", "organization-settings"})
+
+ api_contracts = required["api-contracts"]
+ self.assertEqual(
+ api_contracts["contract"],
+ "docs/release-control/v6/internal/subsystems/api-contracts.md",
+ )
+ self.assertEqual(
+ api_contracts["touched_runtime_files"],
+ ["internal/api/access_control_handlers.go"],
+ )
+ self.assertEqual(
+ api_contracts["verification_requirements"],
+ [
+ {
+ "id": "backend-payload-contracts",
+ "label": "backend API payload proof",
+ "touched_runtime_files": ["internal/api/access_control_handlers.go"],
+ "allow_same_subsystem_tests": False,
+ "test_prefixes": ["frontend-modern/src/api/__tests__/"],
+ "exact_files": [
+ "frontend-modern/src/types/api.ts",
+ "internal/api/contract_test.go",
+ ],
+ }
+ ],
+ )
+
+ organization_settings = required["organization-settings"]
+ self.assertEqual(
+ organization_settings["contract"],
+ "docs/release-control/v6/internal/subsystems/organization-settings.md",
+ )
+ self.assertEqual(
+ organization_settings["touched_runtime_files"],
+ ["internal/api/access_control_handlers.go"],
+ )
+ self.assertEqual(
+ organization_settings["verification_requirements"],
+ [
+ {
+ "id": "organization-rbac-transport",
+ "label": "organization RBAC backend transport proof",
+ "touched_runtime_files": ["internal/api/access_control_handlers.go"],
+ "allow_same_subsystem_tests": False,
+ "test_prefixes": [],
+ "exact_files": [
+ "internal/api/enterprise_extension_rbac_admin_test.go",
+ "internal/api/rbac_admin_handlers_test.go",
+ "internal/api/rbac_handlers_additional_test.go",
+ "internal/api/rbac_handlers_more_test.go",
+ "internal/api/rbac_handlers_test.go",
+ ],
+ }
+ ],
+ )
+
def test_recovery_route_change_requires_storage_recovery_contract(self):
required = infer_impacted_subsystems(["frontend-modern/src/pages/RecoveryRoute.tsx"])
self.assertEqual(set(required), {"storage-recovery"})
diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.py
index 41b2a22e7b..486c27323b 100644
--- a/scripts/release_control/subsystem_lookup_test.py
+++ b/scripts/release_control/subsystem_lookup_test.py
@@ -3560,6 +3560,157 @@ class SubsystemLookupTest(unittest.TestCase):
],
)
+ def test_lookup_paths_assigns_orgs_api_to_shared_organization_settings_and_api_contracts(
+ self,
+ ) -> None:
+ result = lookup_paths(["frontend-modern/src/api/orgs.ts"])
+ self.assertEqual(result["unowned_runtime_files"], [])
+ self.assertEqual(
+ {item["subsystem"] for item in result["impacted_subsystems"]},
+ {"api-contracts", "organization-settings"},
+ )
+
+ file_entry = result["files"][0]
+ self.assertEqual(file_entry["classification"], "runtime")
+ self.assertEqual(
+ file_entry["shared_ownership"]["subsystems"],
+ ["api-contracts", "organization-settings"],
+ )
+
+ by_subsystem = {match["subsystem"]: match for match in file_entry["matches"]}
+ self.assertEqual(set(by_subsystem), {"api-contracts", "organization-settings"})
+
+ api_match = by_subsystem["api-contracts"]
+ self.assertEqual(
+ api_match["contract"],
+ "docs/release-control/v6/internal/subsystems/api-contracts.md",
+ )
+ self.assertEqual(
+ api_match["verification_requirement"]["id"],
+ "frontend-api-clients",
+ )
+ self.assertEqual(
+ api_match["verification_requirement"]["exact_files"],
+ ["frontend-modern/src/types/api.ts"],
+ )
+
+ organization_match = by_subsystem["organization-settings"]
+ self.assertEqual(
+ organization_match["contract"],
+ "docs/release-control/v6/internal/subsystems/organization-settings.md",
+ )
+ self.assertEqual(organization_match["lane_context"]["lane_id"], "L14")
+ self.assertEqual(
+ organization_match["verification_requirement"]["id"],
+ "organization-api-clients",
+ )
+ self.assertEqual(
+ organization_match["verification_requirement"]["exact_files"],
+ [
+ "frontend-modern/src/api/__tests__/orgs.test.ts",
+ "frontend-modern/src/api/__tests__/rbac.test.ts",
+ ],
+ )
+ self.assertEqual(
+ organization_match["matched_contract_references"],
+ [
+ {
+ "heading": "## Canonical Files",
+ "path": "frontend-modern/src/api/orgs.ts",
+ "line": 24,
+ "heading_line": 22,
+ },
+ {
+ "heading": "## Shared Boundaries",
+ "path": "frontend-modern/src/api/orgs.ts",
+ "line": 61,
+ "heading_line": 59,
+ },
+ {
+ "heading": "## Extension Points",
+ "path": "frontend-modern/src/api/orgs.ts",
+ "line": 72,
+ "heading_line": 68,
+ },
+ ],
+ )
+
+ def test_lookup_paths_assigns_rbac_backend_to_shared_organization_settings_and_api_contracts(
+ self,
+ ) -> None:
+ result = lookup_paths(["internal/api/access_control_handlers.go"])
+ self.assertEqual(result["unowned_runtime_files"], [])
+ self.assertEqual(
+ {item["subsystem"] for item in result["impacted_subsystems"]},
+ {"api-contracts", "organization-settings"},
+ )
+
+ file_entry = result["files"][0]
+ self.assertEqual(file_entry["classification"], "runtime")
+ self.assertEqual(
+ file_entry["shared_ownership"]["subsystems"],
+ ["api-contracts", "organization-settings"],
+ )
+
+ by_subsystem = {match["subsystem"]: match for match in file_entry["matches"]}
+ self.assertEqual(set(by_subsystem), {"api-contracts", "organization-settings"})
+
+ api_match = by_subsystem["api-contracts"]
+ self.assertEqual(
+ api_match["verification_requirement"]["id"],
+ "backend-payload-contracts",
+ )
+ self.assertEqual(
+ api_match["matched_contract_references"],
+ [
+ {
+ "heading": "## Shared Boundaries",
+ "path": "internal/api/access_control_handlers.go",
+ "line": 109,
+ "heading_line": 77,
+ }
+ ],
+ )
+
+ organization_match = by_subsystem["organization-settings"]
+ self.assertEqual(
+ organization_match["verification_requirement"]["id"],
+ "organization-rbac-transport",
+ )
+ self.assertEqual(
+ organization_match["verification_requirement"]["exact_files"],
+ [
+ "internal/api/enterprise_extension_rbac_admin_test.go",
+ "internal/api/rbac_admin_handlers_test.go",
+ "internal/api/rbac_handlers_additional_test.go",
+ "internal/api/rbac_handlers_more_test.go",
+ "internal/api/rbac_handlers_test.go",
+ ],
+ )
+ self.assertEqual(
+ organization_match["matched_contract_references"],
+ [
+ {
+ "heading": "## Canonical Files",
+ "path": "internal/api/access_control_handlers.go",
+ "line": 53,
+ "heading_line": 22,
+ },
+ {
+ "heading": "## Shared Boundaries",
+ "path": "internal/api/access_control_handlers.go",
+ "line": 63,
+ "heading_line": 59,
+ },
+ {
+ "heading": "## Extension Points",
+ "path": "internal/api/access_control_handlers.go",
+ "line": 74,
+ "heading_line": 68,
+ },
+ ],
+ )
+
def test_lookup_paths_assigns_ai_intelligence_page_to_patrol_intelligence(self) -> None:
result = lookup_paths(["frontend-modern/src/pages/AIIntelligence.tsx"])
self.assertEqual(result["unowned_runtime_files"], [])
@@ -4504,20 +4655,20 @@ class SubsystemLookupTest(unittest.TestCase):
{
"heading": "## Shared Boundaries",
"path": "internal/api/ai_handler.go",
- "line": 108,
+ "line": 111,
"heading_line": 77,
},
{
"heading": "## Extension Points",
"path": "internal/api/ai_handler.go",
- "line": 167,
- "heading_line": 125,
+ "line": 173,
+ "heading_line": 131,
},
{
"heading": "## Extension Points",
"path": "internal/api/ai_handler.go",
- "line": 168,
- "heading_line": 125,
+ "line": 174,
+ "heading_line": 131,
},
],
)
@@ -4539,12 +4690,12 @@ class SubsystemLookupTest(unittest.TestCase):
self.assertIn("paid-feature-entitlement-gating", api_match["lane_context"]["release_gate_ids"])
self.assertEqual(
[reference["line"] for reference in api_match["matched_contract_references"]],
- [108, 167, 168],
+ [111, 173, 174],
)
def test_render_pretty_shows_contract_focus_for_lean_lookup(self) -> None:
rendered = render_pretty(lookup_paths(["internal/api/ai_handler.go"], lean=True))
- self.assertIn("contract focus: ## Shared Boundaries @L108: internal/api/ai_handler.go", rendered)
+ self.assertIn("contract focus: ## Shared Boundaries @L111: internal/api/ai_handler.go", rendered)
self.assertIn("contract focus: ## Canonical Files @L24: internal/api/ai_handler.go", rendered)
def test_lookup_paths_maps_unified_agent_runtime_to_agent_lifecycle(self) -> None: