AP0.4: Feature-, Prompt- und Config-Registry mit Single-Render und Entitlements-Features.
Deploy Development / deploy (push) Successful in 38s
Test Suite / pytest-backend (push) Successful in 18s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 24s
Deploy Development / deploy (push) Successful in 38s
Test Suite / pytest-backend (push) Successful in 18s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 24s
Migration 005, Registry-Sync, Placeholder-Validation, capability-geschuetzte API, Tests und Abschlussbericht v0.1. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
f8af47d1d5
commit
53047b6c16
39 files changed
+2404
-34
No files matched your search
@@ -1,5 +1,5 @@
|
||||
"""Import all module registrations — side effect registers capabilities."""
|
||||
|
||||
from . import platform, tenant_ops # noqa: F401
|
||||
from . import platform, registry_ops, tenant_ops # noqa: F401
|
||||
|
||||
__all__ = ["platform", "tenant_ops"]
|
||||
__all__ = ["platform", "registry_ops", "tenant_ops"]
|
||||
@@ -0,0 +1,82 @@
|
||||
"""AP0.4 registry and prompt capabilities."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from rights_registry import CapabilityRegistration, register_capability
|
||||
|
||||
_TENANT_READ = (
|
||||
("portal", "admin"),
|
||||
("portal", "user"),
|
||||
("tenant", "owner"),
|
||||
("tenant", "admin"),
|
||||
("tenant", "member"),
|
||||
)
|
||||
|
||||
_TENANT_ADMIN = (
|
||||
("portal", "admin"),
|
||||
("tenant", "owner"),
|
||||
("tenant", "admin"),
|
||||
)
|
||||
|
||||
register_capability(
|
||||
CapabilityRegistration(
|
||||
key="kairo.feature.registry.read",
|
||||
module="feature",
|
||||
description="Feature Registry lesen",
|
||||
default_grants=_TENANT_READ,
|
||||
)
|
||||
)
|
||||
|
||||
register_capability(
|
||||
CapabilityRegistration(
|
||||
key="kairo.feature.registry.manage",
|
||||
module="feature",
|
||||
description="Feature Registry verwalten (Sync/Metadaten)",
|
||||
default_grants=(("portal", "admin"),),
|
||||
)
|
||||
)
|
||||
|
||||
register_capability(
|
||||
CapabilityRegistration(
|
||||
key="kairo.prompt.registry.read",
|
||||
module="prompt",
|
||||
description="Prompt Registry lesen",
|
||||
default_grants=_TENANT_READ,
|
||||
)
|
||||
)
|
||||
|
||||
register_capability(
|
||||
CapabilityRegistration(
|
||||
key="kairo.prompt.registry.manage",
|
||||
module="prompt",
|
||||
description="Prompt Registry verwalten",
|
||||
default_grants=(("portal", "admin"),),
|
||||
)
|
||||
)
|
||||
|
||||
register_capability(
|
||||
CapabilityRegistration(
|
||||
key="kairo.config.registry.read",
|
||||
module="config",
|
||||
description="Configuration Registry lesen",
|
||||
default_grants=_TENANT_ADMIN,
|
||||
)
|
||||
)
|
||||
|
||||
register_capability(
|
||||
CapabilityRegistration(
|
||||
key="kairo.config.registry.manage",
|
||||
module="config",
|
||||
description="Configuration Registry schreiben",
|
||||
default_grants=_TENANT_ADMIN,
|
||||
)
|
||||
)
|
||||
|
||||
register_capability(
|
||||
CapabilityRegistration(
|
||||
key="kairo.prompt.render",
|
||||
module="prompt",
|
||||
description="Prompts rendern (ohne LLM)",
|
||||
default_grants=_TENANT_READ,
|
||||
)
|
||||
)
|
||||
Reference in new issue
Block a user