[Task] Wire core auth compatibility through access capabilities #1

Closed
opened 2026-07-06 11:06:23 +02:00 by zemion · 2 comments
Owner

Objective

Route core auth compatibility dependencies through the kernel access capability contracts so govoplan-access can replace the compatibility implementation behind the same interface.

Scope

  • Owning repository: govoplan-core
  • Related repository: govoplan-access
  • In scope: principal resolver capability, permission evaluator capability, compatibility hydration to legacy ApiPrincipal, focused tests.
  • Out of scope: moving live access ORM models/routes into govoplan-access.

Acceptance Criteria

  • Kernel access DTO/protocol capability names exist.
  • Built-in access compatibility manifest provides principal/evaluator capabilities.
  • get_api_principal resolves through access.principalResolver when available.
  • Existing session/API-key behavior keeps working.
  • Focused backend and module permutation checks pass.

Verification Target

./scripts/check-focused.sh

## Objective Route core auth compatibility dependencies through the kernel access capability contracts so `govoplan-access` can replace the compatibility implementation behind the same interface. ## Scope - Owning repository: govoplan-core - Related repository: govoplan-access - In scope: principal resolver capability, permission evaluator capability, compatibility hydration to legacy `ApiPrincipal`, focused tests. - Out of scope: moving live access ORM models/routes into `govoplan-access`. ## Acceptance Criteria - [x] Kernel access DTO/protocol capability names exist. - [x] Built-in access compatibility manifest provides principal/evaluator capabilities. - [x] `get_api_principal` resolves through `access.principalResolver` when available. - [x] Existing session/API-key behavior keeps working. - [x] Focused backend and module permutation checks pass. ## Verification Target `./scripts/check-focused.sh`
Author
Owner

Codex State: progress

Summary

  • Added access principal/evaluator capability bridge for core auth compatibility.
  • Registered legacy access capability factories in the built-in access manifest until govoplan-access owns the implementation.

Changed Files

  • src/govoplan_core/auth/dependencies.py
  • src/govoplan_core/access/manifest.py
  • tests/test_access_contracts.py
  • docs/ACCESS_EXTRACTION_PLAN.md

Verification

  • ./.venv/bin/python -m unittest tests.test_access_contracts
  • ./.venv/bin/python -m unittest tests.test_module_system
  • ./.venv/bin/python -m unittest tests.test_api_smoke.ApiSmokeTests.test_mailbox_message_listing_reports_total_count
  • ./scripts/check-focused.sh

Next / Blocked

  • Next: create the govoplan-access package skeleton and move the access seed package behind compatibility imports.

Suggested status label: status/in-progress

## Codex State: progress ### Summary - Added access principal/evaluator capability bridge for core auth compatibility. - Registered legacy access capability factories in the built-in access manifest until govoplan-access owns the implementation. ### Changed Files - `src/govoplan_core/auth/dependencies.py` - `src/govoplan_core/access/manifest.py` - `tests/test_access_contracts.py` - `docs/ACCESS_EXTRACTION_PLAN.md` ### Verification - `./.venv/bin/python -m unittest tests.test_access_contracts` - `./.venv/bin/python -m unittest tests.test_module_system` - `./.venv/bin/python -m unittest tests.test_api_smoke.ApiSmokeTests.test_mailbox_message_listing_reports_total_count` - `./scripts/check-focused.sh` ### Next / Blocked - Next: create the govoplan-access package skeleton and move the access seed package behind compatibility imports. Suggested status label: `status/in-progress`
Author
Owner

Codex State: done

Summary

  • Completed the core auth compatibility bridge through access capabilities.

Verification

  • ./scripts/check-focused.sh

Next / Blocked

  • Follow-up: create the govoplan-access package skeleton and move the access seed package behind compatibility imports.
## Codex State: done ### Summary - Completed the core auth compatibility bridge through access capabilities. ### Verification - `./scripts/check-focused.sh` ### Next / Blocked - Follow-up: create the govoplan-access package skeleton and move the access seed package behind compatibility imports.
zemion added the
status
in-progress
label 2026-07-08 03:03:35 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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