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
@@ -0,0 +1,3 @@
|
||||
"""Side-effect imports for prompt registrations."""
|
||||
|
||||
from prompt_registrations import debug, platform # noqa: F401
|
||||
@@ -0,0 +1,23 @@
|
||||
"""Debug prompts for actor context kind."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from prompt_registry import PromptRegistration, PromptVersionRegistration, register_prompt
|
||||
|
||||
register_prompt(
|
||||
PromptRegistration(
|
||||
prompt_key="kairo.actor.debug_summary",
|
||||
name="Actor Context Debug",
|
||||
purpose="Minimaler Prompt für kairo.actor_context",
|
||||
context_kind="kairo.actor_context",
|
||||
execution_mode="single",
|
||||
active_version="1.0.0",
|
||||
versions=(
|
||||
PromptVersionRegistration(
|
||||
version="1.0.0",
|
||||
body="Actor {{actor_id}} ({{actor_type}}) in tenant {{tenant_id}}.",
|
||||
changelog="Actor context smoke",
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
@@ -0,0 +1,80 @@
|
||||
"""Technical smoke-test prompts — no product logic."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from prompt_registry import (
|
||||
PromptRegistration,
|
||||
PromptStepRegistration,
|
||||
PromptVersionRegistration,
|
||||
register_prompt,
|
||||
)
|
||||
|
||||
register_prompt(
|
||||
PromptRegistration(
|
||||
prompt_key="kairo.system.health_summary",
|
||||
name="System Health Summary",
|
||||
purpose="Smoke-Test für Registry, Versionierung und Rendering",
|
||||
context_kind="kairo.debug_context",
|
||||
execution_mode="single",
|
||||
active_version="1.0.0",
|
||||
versions=(
|
||||
PromptVersionRegistration(
|
||||
version="1.0.0",
|
||||
body="",
|
||||
changelog="Initial smoke prompt",
|
||||
steps=(
|
||||
PromptStepRegistration(
|
||||
step_key="summary",
|
||||
step_order=0,
|
||||
step_type="template",
|
||||
template_body=(
|
||||
"Kairo Systemstatus: {{debug_message}} "
|
||||
"(Level: {{debug_level}})"
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
|
||||
register_prompt(
|
||||
PromptRegistration(
|
||||
prompt_key="kairo.context.debug_summary",
|
||||
name="Tenant Context Debug Summary",
|
||||
purpose="Smoke-Test für TenantContext-Placeholder",
|
||||
context_kind="kairo.tenant_context",
|
||||
execution_mode="single",
|
||||
active_version="1.0.0",
|
||||
versions=(
|
||||
PromptVersionRegistration(
|
||||
version="1.0.0",
|
||||
body=(
|
||||
"Tenant {{tenant_name}} ({{tenant_id}}): "
|
||||
"Portal={{portal_role}}, Tenant-Rolle={{tenant_role}}, "
|
||||
"Actor={{actor_id}} ({{actor_type}})."
|
||||
),
|
||||
changelog="Initial tenant context prompt",
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
|
||||
# Pipeline/workflow structural sample — not executed in AP0.4
|
||||
register_prompt(
|
||||
PromptRegistration(
|
||||
prompt_key="kairo.pipeline.placeholder",
|
||||
name="Pipeline Placeholder",
|
||||
purpose="Strukturelle Vorbereitung für pipeline execution_mode",
|
||||
context_kind="kairo.debug_context",
|
||||
execution_mode="pipeline",
|
||||
active_version="0.1.0",
|
||||
versions=(
|
||||
PromptVersionRegistration(
|
||||
version="0.1.0",
|
||||
body="Pipeline placeholder: {{debug_message}}",
|
||||
changelog="Not executed in AP0.4",
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
Reference in new issue
Block a user