feat(FN-1269): add Routine Engine Integration and fix PROMPT_KEY_CATALOG

- Add Routine Engine Integration documentation to project memory
- Fix PROMPT_KEY_CATALOG by adding missing executor role to agent-generation-system and workflow-step-refine entries
- Update test to expect 6 executor keys instead of 4
This commit is contained in:
gsxdsm
2026-04-10 13:22:29 -07:00
parent 40676e657c
commit df1ff16519
3 changed files with 36 additions and 3 deletions

View File

@@ -82,11 +82,13 @@ describe("prompt-overrides", () => {
describe("getPromptKeysForRole", () => {
it("should return all keys for executor role", () => {
const keys = getPromptKeysForRole("executor");
expect(keys).toHaveLength(4);
expect(keys).toHaveLength(6);
expect(keys.map((k) => k.key)).toContain("executor-welcome");
expect(keys.map((k) => k.key)).toContain("executor-guardrails");
expect(keys.map((k) => k.key)).toContain("executor-spawning");
expect(keys.map((k) => k.key)).toContain("executor-completion");
expect(keys.map((k) => k.key)).toContain("agent-generation-system");
expect(keys.map((k) => k.key)).toContain("workflow-step-refine");
});
it("should return all keys for triage role", () => {

View File

@@ -177,7 +177,7 @@ If there are merge conflicts:
"agent-generation-system": {
key: "agent-generation-system",
name: "Agent Generation System",
roles: [],
roles: ["executor"],
description: "System prompt for the AI agent that generates agent specifications from role descriptions",
defaultContent: `You are an agent specification generator for the fn task board system.
@@ -234,7 +234,7 @@ You MUST respond with ONLY valid JSON (no markdown, no explanation):
"workflow-step-refine": {
key: "workflow-step-refine",
name: "Workflow Step Refine",
roles: [],
roles: ["executor"],
description: "System prompt for refining workflow step descriptions into detailed agent prompts",
defaultContent: `You are an expert at creating detailed agent prompts for workflow steps.