Skip to main content

Module prompts

Module prompts 

Source
Expand description

The platform prompt section library (PSP-10 systems 23 and 25).

The five formerly inline actor prompts live here as base sections, compiled at build time from prompts/ by perspt-prompt-macros. There is exactly one composer: the SDK’s StageComposition compiler, which fits the dialect budget deterministically and digests the program. Under a single-slot dialect the compiled system text of each migrated stage is byte-identical to the pre-move literal (tests/prompt_matrix.rs proves it). Construction is lazy: nothing composes until an actor asks, so simple-chat links this crate without ever building a program.

Modules§

adjudicate
Generated by perspt-prompt-macros; do not edit.
evidence_summarize
Generated by perspt-prompt-macros; do not edit.
graph_plan
Generated by perspt-prompt-macros; do not edit.
repository_explore
Generated by perspt-prompt-macros; do not edit.
session_bootstrap
Generated by perspt-prompt-macros; do not edit.

Structs§

PlatformPromptLibrary
The compiled platform envelope, one stage builder per actor.
PlatformStage
One platform stage’s rendered sections, ready to compile for any route.
SectionOverrides
Experimental live section overrides loaded from validated [prompts].bundles (system 25). A replacement body substitutes only for a known compiled platform section, only under exactly that section’s schema, and only when the operator opted in with --allow-experimental-prompts; the composition root ledgers every active override at session start. Gate AE keeps divergent templates experimental until a PromptChangeRecord passes the paired evaluation.

Functions§

compile_invocation
Compile one call’s two programs — the platform stage and the domain’s same-stage sections (possibly none) — into the invocation the ledger records (spec: “Each model call compiles two programs”).
compiled_platform_templates
Every compiled platform base template with its stage, in manifest order.