Knowledge Consistency Plan 5
Plan 5 — Forge Root Knowledge File Content Corrections
Scope: Correct content in Forge root knowledge files: update forge-discovery tool names, remove agent-sync terminology, remove JWT Auth Manager references, remove Forge_Chat_Prompt.md references, add eager/deferred tool guidance, update API names and terminology, replace hardcoded model names with use-case names, remove inline model quirks, fix filesystem paths, and add Bot prompt inspectability documentation.
Spec sections covered: S1.3 (Forge_Agent_Orchestration.md only), S1.5 (Forge_Setup.md only), S1.6, S1.7, S4.1, S4.2 (Forge_Infrastructure.md and Forge_Agents_User_Guide.md), S4.3, S4.4, S7.2 (Forge_Infrastructure.md only), S7.3 (Forge_Infrastructure.md only), S8.2.
Prerequisite: Plan 1 (use-case names from Choose_AI_Model skill needed for S7.2 replacements; model reference files needed for S7.3 quirk removal).
Task 1 — Update Forge_Agent_Orchestration.md
Spec S1.3: “
Forge_Agent_Orchestration.md: The reference toForge_Chat_Prompt.md -> ## PROJECT ROUTINGis removed or updated to reference the Bot database prompt.” Spec S1.6: “TheForge_Agent_Orchestration.mddiscovery MCP tools table matches actual tool names.” The correct tool names are:forge-discovery__list_departments,forge-discovery__list_dept_projects,forge-discovery__get_project,forge-discovery__list_skills,forge-discovery__get_skill,forge-discovery__find. Spec S1.7: “Documentation does not assert which specific MCP tools are eager or deferred, as this classification can change. Documentation states that a tool may need to be loaded if it is deferred, and agents should usetoolSearch/loadToolas needed. SeeReferences/Eager_Deferred_Guidance.md.” Spec S4.3: “The term ‘agent-sync’ is not used in documentation. The concept it described (syncing prompt files to the runtime) is no longer relevant — Bots and Prompts are modified in-place in the Bot database.” Spec S4.4: “Forge/Forge_Agent_Orchestration.mddoes not reference ‘JWT Auth Manager for session auth.’ The Orchestrator Service section describes ‘API-key authentication (service account)’ consistently.”
Steps
- Edit
Forge/Forge_Agent_Orchestration.md. - S1.3: Remove or update the reference to
Forge_Chat_Prompt.md -> ## PROJECT ROUTING. Replace with a reference to the Bot database prompt. - S1.6: Update the discovery MCP tools table to match the actual tool names:
forge-discovery__list_departments(notlist_departmentsif different),forge-discovery__list_dept_projects(notlist_projects),forge-discovery__get_project(consolidates former tools),forge-discovery__list_skills,forge-discovery__get_skill(notget_skill_details),forge-discovery__find. - S1.7: Update the eager vs deferred tool guidance to state that a tool may need to be loaded if it is deferred, and agents should use
toolSearch/loadToolas needed. Do not assert which specific tools are eager or deferred. ReferenceReferences/Eager_Deferred_Guidance.md. - S4.3: Remove all uses of the term “agent-sync.” Update the Include Directive section to describe prompt composition without referencing “agent-sync.”
- S4.4: Remove the reference to “JWT Auth Manager for session auth.” Update the Orchestrator Service section to describe “API-key authentication (service account)” consistently.
Verify
grep -r 'Forge_Chat_Prompt' Forge/Forge_Agent_Orchestration.mdreturns no matchesgrep -r 'list_projects\|get_skill_details' Forge/Forge_Agent_Orchestration.mdreturns no matches (old tool names removed)- The discovery tools table lists:
forge-discovery__list_departments,forge-discovery__list_dept_projects,forge-discovery__get_project,forge-discovery__list_skills,forge-discovery__get_skill,forge-discovery__find grep -ri 'agent-sync' Forge/Forge_Agent_Orchestration.mdreturns no matchesgrep -ri 'JWT Auth Manager' Forge/Forge_Agent_Orchestration.mdreturns no matches- The Orchestrator Service section describes “API-key authentication (service account)“
Task 2 — Update Forge_Infrastructure.md
Spec S1.7: “Documentation states that a tool may need to be loaded if it is deferred, and agents should use
toolSearch/loadToolas needed.” Spec S4.2: “Documentation uses context-appropriate terminology: uvilo-mono — the monorepo (codebase, repository); forgentic — the app within uvilo-mono deployed on Railway (runtime environment). Where both names appeared together, they are simplified to the context-appropriate single term. SeeReferences/Terminology_Context.md.” Spec S7.2: “Knowledge files and skills refer to use-case names (e.g., ‘the indexing use case’), not specific model names (e.g., ‘gpt-5.4-nano’).” Spec S7.3: “Model-specific quirk documentation is moved from inline skill procedures into the Choose_AI_Model skill’s model reference files.” Affected file:Forge/Forge_Infrastructure.md(gpt-5.4-nano quirks).
Steps
- Edit
Forge/Forge_Infrastructure.md. - S1.7: Update eager vs deferred tool guidance consistent with
References/Eager_Deferred_Guidance.md. - S4.2: Replace context-inappropriate uses of “uvilo-mono” and “forgentic” with the context-appropriate single term. Where both names appeared together, simplify to the correct single term. Reference
References/Terminology_Context.md. - S7.2: Replace hardcoded model names (e.g.,
gpt-5.4-nano) with use-case names (e.g., “the indexing use case”) from the Choose_AI_Model skill’s Use Case Table. - S7.3: Remove inline gpt-5.4-nano quirk documentation. Replace with a reference to
Forge/Skills/Choose_AI_Model/Models/gpt-5.4-nano.md.
Verify
grep -ri 'agent-sync' Forge/Forge_Infrastructure.mdreturns no matches (if any existed)- The file uses context-appropriate terminology (uvilo-mono for codebase, forgentic for runtime)
grep -r 'gpt-5\.4-nano' Forge/Forge_Infrastructure.mdreturns no matches (replaced with use-case names)grep -r 'max_completion_tokens' Forge/Forge_Infrastructure.mdreturns no matches (inline quirks removed)- The file references
Forge/Skills/Choose_AI_Model/Models/gpt-5.4-nano.mdfor model quirks
Task 3 — Update Forge_Agents_User_Guide.md
Spec S4.1: “
Forge/Forge_Agents_User_Guide.mduses current API names and patterns.” The old references (spawn_agent,agent_id/task_prompt,SCHEDULE_CONFIG,createTodoItem({ group, title, body }),/spawncommand,/project-createcommand,gpt-4omodel) are replaced with current references (spawnAgent,message/botIdorbotGroup+botHandle/mode,schedules.ts,createTodoItem({ todoListId, name, body }), removed slash commands, current model name or use-case reference). Spec S4.2: “Documentation uses context-appropriate terminology: uvilo-mono — the monorepo; forgentic — the app within uvilo-mono deployed on Railway.”
Steps
- Edit
Forge/Forge_Agents_User_Guide.md. - S4.1: Replace
spawn_agentwithspawnAgent. - Replace
agent_id/task_promptparameters withmessage,botIdorbotGroup+botHandle,mode. - Replace
SCHEDULE_CONFIGwithschedules.ts. - Replace
createTodoItem({ group, title, body })withcreateTodoItem({ todoListId, name, body }). - Remove references to
/spawncommand and/project-createcommand (no such slash commands exist). - Replace
gpt-4omodel reference with the current model name or a use-case reference. - Update curl examples to use current
spawnAgentparameters. - S4.2: Apply context-appropriate terminology (uvilo-mono vs forgentic) per
References/Terminology_Context.md.
Verify
grep -r 'spawn_agent\|agent_id\|task_prompt\|SCHEDULE_CONFIG\|/spawn\|/project-create\|gpt-4o' Forge/Forge_Agents_User_Guide.mdreturns no matches- Curl examples use
spawnAgentwith current parameters - The file uses context-appropriate terminology
Task 4 — Fix Filesystem Paths in Forge_Setup.md
Spec S1.5: “No file references the incorrect path
/workspace/erik/uvilo-os/. All hardcoded paths are replaced with either the correct/workspace/erik@uvilo.com/uvilo-os/or the[[orgRepoRoot]]template variable where appropriate. Affected files:Forge/Forge_Setup.md.”
Steps
- Edit
Forge/Forge_Setup.md. - Replace
/workspace/erik/uvilo-os/with/workspace/erik@uvilo.com/uvilo-os/or[[orgRepoRoot]]as appropriate.
Verify
grep -r '/workspace/erik/uvilo-os/' Forge/Forge_Setup.mdreturns no matches
Task 5 — Add Bot Prompt Inspectability Documentation to Forge_Agent_Architecture.md
Spec S8.2: “
Forge/Forge_Agent_Architecture.md(or an appropriate knowledge file) includes a section on how humans can inspect Bot prompts using theapplication/vnd.prompt-versionartifact type.” See also S8.1 andReferences/Bot_Prompt_Inspectability.mdfor the exact specification.
Steps
- Edit
Forge/Forge_Agent_Architecture.md. - Add a section describing how
application/vnd.prompt-versionis used to inspect Bot prompts — the same wayapplication/vnd.markdown-fileinspects files andapplication/vnd.git-changesinspects multi-file changes. - Describe that when opened, the UI loads version N and N-1 from the database and displays a unified text diff.
- Reference
References/Bot_Prompt_Inspectability.mdfor the exact specification.
Verify
grep -r 'application/vnd.prompt-version' Forge/Forge_Agent_Architecture.mdreturns a match- The section describes the unified text diff between version N and N-1
Task 6 — Build, Commit, and Push
Spec S1.3, S1.5, S1.6, S1.7, S4.1–S4.4, S7.2, S7.3, S8.2: This Plan implements Forge root knowledge file content corrections. After all tasks are complete, commit and push the changes. Per Known Infrastructure Context,
npm run buildis expected to fail; proceed with git operations regardless.
Steps
- Run
npm run buildfrom the repo root. This is known to fail. Proceed regardless. git addall modified files:Forge/Forge_Agent_Orchestration.md,Forge/Forge_Infrastructure.md,Forge/Forge_Agents_User_Guide.md,Forge/Forge_Setup.md,Forge/Forge_Agent_Architecture.md.git commit -m "Plan 5: Forge root knowledge file content corrections (S1.3, S1.5-S1.7, S4.1-S4.4, S7.2, S7.3, S8.2)"git push origin dev
Verify
- All modified files are committed and pushed to
dev git log --oneline -1shows the commit
Plan 5 Completion Criteria
Forge_Agent_Orchestration.mdhas no Forge_Chat_Prompt.md references, no agent-sync terminology, no JWT Auth Manager references, correct forge-discovery tool names, and eager/deferred guidance referencing toolSearch/loadToolForge_Infrastructure.mduses context-appropriate terminology, use-case names instead of hardcoded model names, and references Choose_AI_Model model reference files instead of inline quirksForge_Agents_User_Guide.mduses current API names and patterns, no deprecated slash commands, and context-appropriate terminologyForge_Setup.mdhas no incorrect/workspace/erik/uvilo-os/pathsForge_Agent_Architecture.mdincludes a section on Bot prompt inspectability viaapplication/vnd.prompt-version- Changes committed and pushed to
dev
Dependencies
- Requires: Plan 1 (use-case names from Choose_AI_Model skill for S7.2; model reference files for S7.3 quirk removal)
- Blocks: None