Require Face acknowledgement of human corrections

This commit is contained in:
Meta Vens 2026-05-22 00:05:43 +01:00
commit f3144789df
4 changed files with 19 additions and 1 deletions

View file

@ -610,7 +610,7 @@ async function interpretRepoFaceTurnOutput(
): Promise<RepoFaceParentInterpretation> {
const interpreterPrompt = loadPromptTemplate("repo-face-turn-interpreter.prompt.md", {
attempt: input.attempt,
facePrompt: job.contextBundle.prompt.slice(0, 8000),
facePrompt: renderRepoFaceInterpreterPromptContext(job.contextBundle.prompt),
faceOutput: outputText.slice(0, 8000),
});
const interpreterContext = {
@ -629,6 +629,18 @@ function normalizeModelText(content: string): string {
return content.trim();
}
function renderRepoFaceInterpreterPromptContext(prompt: string): string {
if (prompt.length <= 28000) {
return prompt;
}
return [
prompt.slice(0, 6000),
"\n\n[... middle of Face prompt omitted for Interpreter context budget ...]\n\n",
prompt.slice(-22000),
].join("");
}
function parseRepoFaceParentInterpretation(
interpretationText: string,
attempt: 1 | 2,