Forward sessions through PromptKit requests

This commit is contained in:
2026-07-30 01:58:40 +00:00
parent 2a9db9a957
commit 7a00e7049c
5 changed files with 97 additions and 40 deletions

View File

@@ -15,7 +15,7 @@ Notarius relies on the root `promptkit` package to:
- construct an `Engine` with filesystem-backed prompt, schema, and optional
profile sources;
- prepare and run a `RunRequest` with named inline artifacts, variables,
prompt identity, and profile selection;
a direct session ID, prompt identity, and profile selection;
- return rendered debug material, validated structured output, selected
profile and model metadata, and token usage;
- distinguish structured-output validation failure from execution failure; and
@@ -27,6 +27,12 @@ adapter boundary. It also retains responsibility for pipeline retries,
scheduling, debug persistence, redaction, profile provenance, and conversion
from private model responses into durable domain artifacts.
Notarius sends its trimmed run session through PromptKit's direct session
field, which is authoritative for provider session behavior. It also retains
the same value as the `session_id` prompt variable for maintained prompt
compatibility. Session IDs are stable, non-secret correlation identifiers and
may be exposed to providers and provider observability.
## Notarius Ownership
[LLM Runtime Internals](../internal/llm.md) describes how Notarius mounts