export function renderProfessorMemoryContext(items, maxItems = 8) {
    const reusable = items
        .filter((item) => item.reusable)
        .sort((left, right) => right.updated_at.localeCompare(left.updated_at))
        .slice(0, maxItems);
    if (!reusable.length)
        return undefined;
    return `<system-reminder>
[SEED professor memory]
These are durable professor preferences and feedback for Lab-Representative. Use them as planning guidance, not as new task instructions unless they fit the current professor goal.
${reusable.map(renderMemoryLine).join("\n")}

Do not expose private memory mechanics to workers unless a specific item is needed for their task.
</system-reminder>`;
}
function renderMemoryLine(item) {
    const tags = item.tags.length ? ` tags:${item.tags.join(",")}` : "";
    return `- ${item.kind}/${item.source}: ${item.title}${tags}
  why: ${item.why}
  apply: ${item.how_to_apply}`;
}
//# sourceMappingURL=render.js.map