Knowledge Consistency Plan 1
Plan 1 — Choose_AI_Model Skill Creation
Project: Forge/Knowledge_Consistency
Phase: Plan (7 Plans)
Spec: Knowledge_Consistency_Spec.md
Overview
This Plan set breaks the approved Spec into seven executable Plans. Each Plan targets a cohesive artifact type and can be executed and evaluated independently. The partition was revised during Plan_Eval Round 1 auto-fix to resolve findings E1–E8: coverage gaps (E1, E7), inaccurate coverage claims (E2), ambiguous paths (E3, E8), checkbox usage (E4), missing context quotes (E5), and task ordering conflicts (E6).
- Plan 1 — Choose_AI_Model skill creation (S7.1, S7.3 reference file creation). No prerequisites.
- Plan 2 — Skill file content corrections (S1.1, S1.2, S1.3 skills, S1.4, S1.5 skills, S1.8, S7.2 skills, S7.3 skill quirk removal). Requires Plan 1.
- Plan 3 — Manage_Pages to Page Manager routing in 14 skill files (S1.10 skills). No prerequisites.
- Plan 4 — Knowledge file frontmatter corrections (S2.1, S2.2, S2.3, S2.4, S10.2). No prerequisites.
- Plan 5 — Forge root knowledge file content corrections (S1.3/S1.6/S1.7/S4.3/S4.4 in Forge_Agent_Orchestration.md, S1.7/S4.2/S7.2/S7.3 in Forge_Infrastructure.md, S4.1/S4.2 in Forge_Agents_User_Guide.md, S1.5 in Forge_Setup.md, S8.2 in Forge_Agent_Architecture.md). Requires Plan 1.
- Plan 6 — Forge_Project and documentation content corrections (S6.3, S3.1, S12 in Forge_Project docs, S12.3 in Project_Flow/SKILL.md, S1.10 doc edits, S10.1 README/AGENTS consolidation). No prerequisites.
- Plan 7 — Bot prompts, Available Skills, and follow-ups (S3.1, S3.2, S3.3, S3.4, S5, S9.1, S9.2, S11.1, S11.2, S1.9, S1.10 bot prompts). Requires Plan 2.
Dependency Graph
- Plans 1, 3, 4, and 6 have no prerequisites and can start in parallel.
- Plan 2 requires Plan 1 (model reference files must exist before extracting quirks from skills).
- Plan 5 requires Plan 1 (use-case names from Choose_AI_Model skill needed for S7.2 replacements in knowledge files).
- Plan 7 requires Plan 2 (skill rename must complete before updating Available Skills list).
- Plans 4 and 5 both edit Forge root knowledge files but in different regions (frontmatter vs body content); git merges these without conflict if run in parallel.
Known Infrastructure Context
npm run build fails because package.json has no build script (it contains only dependencies, no scripts section). This is a known infrastructure issue, not a Plan content defect. Build/commit/push tasks in each Plan proceed with git add, git commit, and git push regardless of build failure.
Reference Documents (already exist)
The following Reference documents in Forge/Projects/Knowledge_Consistency/References/ provide specifications cited by the Spec. Plans reference them as context — they are not tasks to create.
References/Choose_AI_Model_Skill.md— exact specification for the Choose_AI_Model skill (S7.1)References/Eager_Deferred_Guidance.md— standard for tool loading guidance (S1.7)References/Terminology_Context.md— uvilo-mono vs forgentic usage rules (S4.2)References/Changelog_Format.md— changelog format specification (S6.2)References/Bot_Prompt_Inspectability.md— prompt inspection specification (S8.1)
Spec Coverage Matrix
Every Spec section is mapped to a Plan and Task. Sections S6.2 and S8.1 are covered by existing Reference documents (no implementation task required). Section S10.2 is implemented by the same task as S2.2.
| Spec Section | Description | Plan | Task(s) |
|---|---|---|---|
| S1.1 | Orchestration to Agentic_Prompts rename | Plan 2 | Task 1 |
| S1.2 | Update_Infrastructure skill update | Plan 2 | Task 2 |
| S1.3 | Forge_Chat_Prompt.md refs removed (skills: Forge_Optimizer, Create_Skill) | Plan 2 | Task 3 |
| S1.3 | Forge_Chat_Prompt.md refs removed (Forge_Agent_Orchestration.md) | Plan 5 | Task 1 |
| S1.4 | LibreChat refs eliminated (Linear_MCP, Suprsend_MCP, Vercel_MCP, MCP_Development) | Plan 2 | Task 4 |
| S1.5 | Path fixes (Git_Dashboard, Home_Page, Markdown_To_PDF, Reindex_Typesense) | Plan 2 | Task 5 |
| S1.5 | Path fixes (Forge_Setup.md) | Plan 5 | Task 4 |
| S1.6 | forge-discovery tool names (Forge_Agent_Orchestration.md) | Plan 5 | Task 1 |
| S1.7 | Eager vs Deferred guidance (Forge_Agent_Orchestration.md) | Plan 5 | Task 1 |
| S1.7 | Eager vs Deferred guidance (Forge_Infrastructure.md) | Plan 5 | Task 2 |
| S1.8 | MongoDB removal (Forge_Optimizer skill) | Plan 2 | Task 6 |
| S1.9 | MCP refs removed from documentation | Plan 7 | Task 6 |
| S1.10 | Page Manager routing (14 skill files) | Plan 3 | Task 1 |
| S1.10 | Page Manager routing (Forge/README.md, Admin_Panel_Plan.md) | Plan 6 | Task 4 |
| S1.10 | Page Manager routing (Project Evaluator, Project Worker prompts) | Plan 7 | Tasks 2, 3 |
| S2.1 | Status approved to published (6 files) | Plan 4 | Task 1 |
| S2.2 | Remove created/updated/lastUpdated (16 files) | Plan 4 | Task 2 |
| S2.3 | Add approver field (5 files) | Plan 4 | Task 3 |
| S2.4 | Forge_Project AGENTS.md frontmatter | Plan 4 | Task 4 |
| S3.1 | Default gates (Forge_Project_User_Guide.md, Forge_Project_Workflow.md) | Plan 6 | Tasks 1, 2 |
| S3.1 | Default gates (Project Runner prompt) | Plan 7 | Task 1 |
| S3.2 | Project Worker prompt typo | Plan 7 | Task 2 |
| S3.3 | Page Manager prompt tool name | Plan 7 | Task 4 |
| S3.4 | Project Worker prompt published | Plan 7 | Task 2 |
| S4.1 | API names (Forge_Agents_User_Guide.md) | Plan 5 | Task 3 |
| S4.2 | Terminology (Forge_Agents_User_Guide.md) | Plan 5 | Task 3 |
| S4.2 | Terminology (Forge_Infrastructure.md) | Plan 5 | Task 2 |
| S4.3 | agent-sync removed (Forge_Agent_Orchestration.md) | Plan 5 | Task 1 |
| S4.4 | JWT Auth Manager removed (Forge_Agent_Orchestration.md) | Plan 5 | Task 1 |
| S5 | Available Skills list | Plan 7 | Task 5 |
| S6.1 | Changelog replaces Summary | Plan 6 | Task 1 (via S6.3) |
| S6.2 | Changelog content format | Reference doc (no task) | |
| S6.3 | User Guide references Changelog | Plan 6 | Task 1 |
| S7.1 | Choose_AI_Model skill creation | Plan 1 | Task 1 |
| S7.2 | Use-case names in skills | Plan 2 | Task 7 |
| S7.2 | Use-case names in Forge_Infrastructure.md | Plan 5 | Task 2 |
| S7.3 | Model reference files creation | Plan 1 | Task 2 |
| S7.3 | Model quirks removed from skills | Plan 2 | Task 8 |
| S7.3 | Model quirks removed from Forge_Infrastructure.md | Plan 5 | Task 2 |
| S8.1 | Prompt inspection specification | Reference doc (no task) | |
| S8.2 | Documentation updated (Forge_Agent_Architecture.md) | Plan 5 | Task 5 |
| S9.1 | Run/Cost evidence in handoff packets | Plan 7 | Task 7 |
| S9.2 | Runs document during Verify | Plan 7 | Task 7 |
| S10.1 | README/AGENTS consolidation | Plan 6 | Task 5 |
| S10.2 | Frontmatter date fields | Plan 4 | Task 2 (same as S2.2) |
| S11.1 | git-changes artifact follow-up todo | Plan 7 | Task 8 |
| S11.2 | Convo tools usage fields follow-up todo | Plan 7 | Task 8 |
| S12.1 | Valid phase states (Forge_Project_User_Guide.md, Forge_Project_Workflow.md) | Plan 6 | Tasks 1, 2 |
| S12.1 | Valid phase states (Project Runner prompt) | Plan 7 | Task 1 |
| S12.2 | Phase ownership (Project Runner prompt) | Plan 7 | Task 1 |
| S12.3 | Pending removed (Forge_Project_User_Guide.md, Forge_Project_Workflow.md) | Plan 6 | Tasks 1, 2 |
| S12.3 | Pending removed (Project_Flow/SKILL.md) | Plan 6 | Task 3 |
| S12.3 | Pending removed (Project Runner prompt) | Plan 7 | Task 1 |
Scope: Create the Choose_AI_Model skill with a use-case table and model reference files. This skill is the single source of truth for model selection and model-specific quirk documentation.
Spec sections covered: S7.1 (Choose_AI_Model skill creation), S7.3 (model reference file creation only — quirk removal from source files is in Plan 2 Task 8 and Plan 5 Task 2).
Prerequisite: None.
Task 1 — Create the Choose_AI_Model Skill
Spec S7.1: “A new skill
Choose_AI_Modelis created inForge/Skills/. It contains: 1. Use Case Table — pithy use case names, recommended model for each, and brief notes. 2. Model Reference Files — per-model quirk documentation.” See alsoReferences/Choose_AI_Model_Skill.mdfor the exact specification.
Steps
-
Create
Forge/Skills/Choose_AI_Model/SKILL.mdwith frontmatter: -
The SKILL.md body must contain a Use Case Table with three columns: Use Case (pithy, memorable name), Recommended Model (current model), and Notes (brief rationale and quirks). Include at minimum the following use cases:
Use Case Recommended Model Notes forge-router glm-5.2 Lightweight routing/classification; cost-efficient forge-thinker gpt-5.4 Deep reasoning/planning; large context forge-executor gpt-5.4 Code generation/execution forge-evaluator gpt-5.5 Evaluation/review; highest capability forge-indexing gpt-5.4-nano Indexing/embedding generation; fast, cheap -
Include a Decision Procedure section: identify use case, check constraints (cost, latency, context window, reasoning depth), select model from table, verify availability.
-
Include a Convention section stating: “In 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’). When a model is swapped, only this skill’s table needs updating.” This implements S7.2’s convention for the skill itself.
-
Spawn the Page Manager bot via
spawnAgentwith{ botGroup: "forge", botHandle: "page-manager" }to add a sidebar entry forForge/Skills/Choose_AI_Model/SKILL.mdin the Skills section of the Forge sidebar. The sidebar is a live filesystem index — when a file is created, the sidebar is updated immediately in the same task.
Verify
Forge/Skills/Choose_AI_Model/SKILL.mdexists withname: Choose_AI_Modelin frontmatter- The SKILL.md contains a use-case table with at least 5 use cases
- The SKILL.md contains a decision procedure section
- The SKILL.md contains the use-case-name convention section
- Sidebar contains an entry for
Choose_AI_Modelpointing toForge/Skills/Choose_AI_Model/SKILL.md
Task 2 — Create Model Reference Files
Spec S7.3: “Model-specific quirk documentation is moved from inline skill procedures into the Choose_AI_Model skill’s model reference files.” This task creates the reference files. The removal of inline quirks from the source files is in Plan 2 Task 8 (skills) and Plan 5 Task 2 (Forge_Infrastructure.md). Affected source files:
Forge/Skills/Forge_Optimizer/SKILL.md,Forge/Forge_Infrastructure.md,Forge/Skills/Reindex_Typesense/SKILL.md,Forge/Skills/Typesense_MCP/SKILL.md.
Steps
-
Create
Forge/Skills/Choose_AI_Model/Models/subfolder. -
Create
Forge/Skills/Choose_AI_Model/Models/gpt-5.4-nano.mdwith: model name, provider, context window, cost per 1M tokens (use available documentation). Document the following quirks (sourced from inline documentation in the affected files): requiresmax_completion_tokens >= 300; does NOT accepttemperatureparameter. List recommended use cases:forge-indexing, lightweight classification,forge-router(light). -
Create
Forge/Skills/Choose_AI_Model/Models/gpt-4o-mini.mdwith: model name, provider, context window, cost per 1M tokens. Document the quirk: used for AI-generated file summaries at index time (fromTypesense_MCP/SKILL.md). List recommended use cases:forge-indexing(legacy/alternative). -
Create
Forge/Skills/Choose_AI_Model/Models/glm-5.2.mdwith: model name, provider, context window, cost per 1M tokens. Document strengths: cost-efficient for routing/classification. List recommended use cases:forge-router. -
Create
Forge/Skills/Choose_AI_Model/Models/gpt-5.4.mdwith: model name, provider, context window, cost per 1M tokens. Document strengths: deep reasoning, large context. List recommended use cases:forge-thinker,forge-executor. -
Create
Forge/Skills/Choose_AI_Model/Models/gpt-5.5.mdwith: model name, provider, context window, cost per 1M tokens. Document strengths: highest capability for evaluation/review. List recommended use cases:forge-evaluator.
Verify
Forge/Skills/Choose_AI_Model/Models/contains at least 5 model reference filesgpt-5.4-nano.mddocuments themax_completion_tokens >= 300quirk and thetemperatureparameter rejection- Each model file documents recommended use cases
Task 3 — Build, Commit, and Push
Spec S7.1, S7.3: This Plan creates the Choose_AI_Model skill and model reference files. 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 (/workspace/erik@uvilo.com/uvilo-os). This is known to fail becausepackage.jsonhas nobuildscript. Proceed regardless. git addall new files:Forge/Skills/Choose_AI_Model/SKILL.md,Forge/Skills/Choose_AI_Model/Models/gpt-5.4-nano.md,Forge/Skills/Choose_AI_Model/Models/gpt-4o-mini.md,Forge/Skills/Choose_AI_Model/Models/glm-5.2.md,Forge/Skills/Choose_AI_Model/Models/gpt-5.4.md,Forge/Skills/Choose_AI_Model/Models/gpt-5.5.md, and any sidebar changes.git commit -m "Plan 1: Create Choose_AI_Model skill with use-case table and model reference files"git push origin dev
Verify
- All new files are committed and pushed to
dev git log --oneline -1shows the commit
Plan 1 Completion Criteria
Forge/Skills/Choose_AI_Model/SKILL.mdexists withname: Choose_AI_Modelfrontmatter, a use-case table with at least 5 entries, a decision procedure, and the use-case-name conventionForge/Skills/Choose_AI_Model/Models/contains at least 5 model reference files, includinggpt-5.4-nano.mdwith themax_completion_tokensandtemperaturequirks- Sidebar entry exists for the Choose_AI_Model skill (added in Task 1)
- Changes committed and pushed to
dev
Dependencies
- Requires: None
- Blocks: Plan 2 (model reference files needed for S7.3 quirk extraction), Plan 5 (use-case names needed for S7.2 replacements in knowledge files)