Kairo-Jinkendo/backend/prompt_registrations/platform.py
Lars 53047b6c16
All checks were successful
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
AP0.4: Feature-, Prompt- und Config-Registry mit Single-Render und Entitlements-Features.
Migration 005, Registry-Sync, Placeholder-Validation, capability-geschuetzte API, Tests und Abschlussbericht v0.1.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 23:29:02 +02:00

81 lines
2.5 KiB
Python

"""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",
),
),
)
)