Skip to content

docs: document current Policy Workbench architecture - #186

Open
matheusa1 wants to merge 1 commit into
LibreSign:mainfrom
matheusa1:docs/112-policy-workbench-architecture
Open

matheusa1 wants to merge 1 commit into
LibreSign:mainfrom
matheusa1:docs/112-policy-workbench-architecture

Conversation

@matheusa1

Copy link
Copy Markdown
Contributor

Resolves / related issue

Resolves #112

Summary and validation

Adds developer_manual/architecture/policy-workbench.rst, a developer-facing description of the current Policy Workbench architecture. It follows the 11 sections requested in the issue: purpose, scopes, effective resolution, delegation, backend enforcement, frontend representation, compound policies, personal preferences, adding a new policy, testing expectations and related architecture.

Also links the page from "Where to go next" in developer_manual/architecture.rst and adds it to the developer manual toctree in developer_manual/index.rst (required so the page is not orphaned under -W). Nothing was moved or renamed.

Scope and evidence:

  • Describes only behavior confirmed in LibreSign/libresign main at 5e1609de2 (backend lib/Service/Policy/, frontend src/views/Settings/PolicyWorkbench/, and the PHPUnit, Vitest and Playwright tests).
  • Points that could not be confirmed from code or tests (order between several group layers, default of groups_request_sign when unset) are intentionally left out.
  • No code and test disagreement was found.
  • Circles are documented as not applied, matching PolicySource and its test.

Checks run:

  • sphinx-build -W --keep-going developer_manual: 0 warnings.
  • The 11 headings render in the order of the issue, and architecture.html links to the new page.
  • Every file path and class named in the page exists in the referenced libresign commit.
  • git diff --stat: 3 files, no rename.

Navigable preview

Preview link:

Changed page: developer_manual/architecture/policy-workbench.html, plus the link in developer_manual/architecture.html. Screenshots of the rendered page (title, intro and navigation, and the full page) are attached below, as requested in the issue.

01-top
01-top
02-architecture-link
02-architecture-link
03-mobile
03-mobile

Checklist

  • I checked the affected release-specific source and OpenAPI contracts.
  • I built the relevant docs or verified the CI result.
  • I reviewed the navigable preview: navigation, links, code blocks and layout.
  • I did not include secrets, private documents or real personal data.
  • I kept the change focused on one documentation concern.
  • My commits include DCO sign-off.

Explain policy scopes, effective resolution, delegation, backend
enforcement, frontend representation, compound policies, personal
preferences, the extension path and the test layers.

Refs LibreSign#112

Signed-off-by: Matheus Andrade <2002matheus@gmail.com>

This branch has not been deployed

No deployments
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.

Document the current Policy Workbench architecture

1 participant