Repository navigation
feat(org): Phase 3 in-host Governance UI - #60
Merged
Merged
Conversation
Surface pending approvals, host audit, and resolve actions as a shell-agnostic org-ui page at /organization/governance. Wire to the existing PEP/PDP; add GET /governance/pauses so the list is not sidecar-only. Co-authored-by: XYAI Labs <haoboy8@gmail.com>
XYAIStudio
marked this pull request as ready for review
September 19, 2026 03:26
This was referenced Sep 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 3 vertical slice: Governance UI as an in-host Organization sub-UI, using the same org-ui dual-delivery seam as Announcements (#57), Org chart (#58), and Employees (#59).
dashboard/src/org-ui/pages/governance(GovernancePage)/organization/governance(workbench path tab + entry card)POST /api/org-module/governance/check|resolveandGET /audit; this slice addsGET /api/org-module/governance/pausesso the pending list is not sidecar-onlyrequire_permission("plugins")(admin bypass); the page hides approve/reject for non-adminsfreeos org export-standalonenow listsgovernanceand imports the sameGovernancePageNo sidecar, no iframe, no second login wall. The PEP/PDP engine is not rewritten.
Data model (host SoT)
{FREEOS_HOME}/governance/pauses/<id>.jsonGET /api/org-module/governance/pauses·POST …/resolve{FREEOS_HOME}/governance/audit.jsonlGET /api/org-module/governance/auditPOST /api/org-module/governance/check(unchanged)openXYOS sidecar
/api/governance(permission matrix, comm rules, process templates) is reference-only. Default path does not start or call:3780.Deferrals (out of this PR)
/approvewiringexport-standaloneVite/Node packaging (Phase 5)Test plan
uv run pytest tests/unit/test_org_governance.py tests/unit/cli/test_org_export_standalone.py tests/unit/test_org_chart.py tests/unit/test_org_announcements.py(23 passed)uv run ruff check+uv run mypy --stricton changed org/governance modulescd dashboard && npx tsc --noEmitcd dashboard && npx vitest run src/org-ui src/pages/Organization src/routes/controlAdminPath.test.ts(64 passed)make all(full ship bar; run in CI)Live browser walkthrough of
/organization/governancewas not run here (no signed-in FreeOS host in this environment). Component tests cover list/approve without iframe.