TypeScript
import type { OrchestratorFixtureInput } from "../shared.ts";
export const PI_COMPACTION_MARKER = "compaction-marker-4Z7Q";
const PI_COMPACTION_INSTRUCTED = `/compact keep the opaque marker ${PI_COMPACTION_MARKER}`;
const PI_COMPACTION_RECALL_PROMPT =
"Return the opaque marker I asked you to remember. Respond with only the marker.";
/** Tiny keepRecentTokens makes the short recording compactable. */
export function piCompactionInput(): OrchestratorFixtureInput {
return {
steps: [
{
type: "message",
text: `Remember the opaque marker ${PI_COMPACTION_MARKER} for later. Respond with exactly: compaction marker stored`,
},
{ type: "message", text: PI_COMPACTION_INSTRUCTED },
{ type: "message", text: "Respond with exactly: second compaction fixture turn" },
{ type: "message", text: "Respond with exactly: third compaction fixture turn" },
{ type: "message", text: "/compact" },
{ type: "message", text: PI_COMPACTION_RECALL_PROMPT },
],
};
}