[Task] Access extraction Stage 1: Contract Definitions #41

Closed
opened 2026-07-06 11:32:50 +02:00 by zemion · 1 comment
Owner

Imported from the GovOPlaN access extraction plan.

  • Source: /mnt/DATA/git/govoplan-core/docs/ACCESS_EXTRACTION_PLAN.md
  • Line: 193
  • Section: Stage 1: Contract Definitions

Plan excerpt:

### Stage 1: Contract Definitions

Add kernel-owned protocols and DTOs for access-related interaction.

Tasks:

- Add protocol definitions under a kernel contract package.
- Add registry/capability names for access services.
- Keep existing core dependency functions as compatibility wrappers.
- Make wrappers resolve through capabilities when `govoplan-access` is present.
- Add tests for missing-capability behavior and clear error messages.

Acceptance criteria:

- Feature modules can receive principal/tenant/group/user references without
  importing access ORM models.
- Existing routes continue to work through compatibility wrappers.

<!-- codex-backlog-fingerprint:63623a976639246c2b8c5c47 --> Imported from the GovOPlaN access extraction plan. - Source: `/mnt/DATA/git/govoplan-core/docs/ACCESS_EXTRACTION_PLAN.md` - Line: `193` - Section: `Stage 1: Contract Definitions` Plan excerpt: ```markdown ### Stage 1: Contract Definitions Add kernel-owned protocols and DTOs for access-related interaction. Tasks: - Add protocol definitions under a kernel contract package. - Add registry/capability names for access services. - Keep existing core dependency functions as compatibility wrappers. - Make wrappers resolve through capabilities when `govoplan-access` is present. - Add tests for missing-capability behavior and clear error messages. Acceptance criteria: - Feature modules can receive principal/tenant/group/user references without importing access ORM models. - Existing routes continue to work through compatibility wrappers. ```
zemion added this to the Access Extraction milestone 2026-07-06 12:53:45 +02:00
Author
Owner

Codex status: done.

Completed evidence:

  • Kernel-owned access DTOs/protocols and capability names live in src/govoplan_core/core/access.py.
  • Access capabilities include principal resolution, directory, permission evaluation, resource access, tenant provisioning, administration, and governance materialization.
  • Compatibility wrappers still resolve to access implementations where required during transition.

Verification:

  • ./.venv/bin/python -m unittest tests.test_access_contracts tests.test_module_system -> 66 tests OK
  • ./.venv/bin/python scripts/check_dependency_boundaries.py -> passed, 0 transitional exceptions

Closing because the contract-definition acceptance criteria are met.

Codex status: done. Completed evidence: - Kernel-owned access DTOs/protocols and capability names live in `src/govoplan_core/core/access.py`. - Access capabilities include principal resolution, directory, permission evaluation, resource access, tenant provisioning, administration, and governance materialization. - Compatibility wrappers still resolve to access implementations where required during transition. Verification: - `./.venv/bin/python -m unittest tests.test_access_contracts tests.test_module_system` -> 66 tests OK - `./.venv/bin/python scripts/check_dependency_boundaries.py` -> passed, 0 transitional exceptions Closing because the contract-definition acceptance criteria are met.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: add-ideas/govoplan-core#41
No description provided.