Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

PAI-Install hardcodes Algorithm v1.4.0 but that version file doesn't exist

Open catchingknives opened this issue 9 months ago • 1 comments

Bug

The PAI installer writes v1.4.0 to Components/Algorithm/LATEST and displays Algo v1.4.0 in the startup banner, but no v1.4.0.md Algorithm file exists. The highest shipped version is v1.2.0.md.

Impact

  • RebuildPAI.ts crashes with ENOENT: no such file or directory, open '.../Algorithm/v1.4.0.md' when attempting to rebuild SKILL.md
  • Startup banner displays a version that doesn't correspond to any real Algorithm content
  • Users see conflicting version info: banner says v1.4.0, but the Algorithm header in SKILL.md says v1.2.0

Root Cause

Two hardcoded references in PAI-Install/:

  1. engine/actions.ts:464 — writes v1.4.0 to the LATEST pointer file:

    try { writeFileSync(latestPath, "v1.4.0\n"); } catch {}
    
  2. cli/display.ts:79 — hardcodes v1.4.0 in the startup banner:

    print(`...⚙  Algo      v1.4.0`);
    

Existing Algorithm versions

Only three versions exist in Components/Algorithm/:

  • v1.0.0.md
  • v1.1.0.md
  • v1.2.0.md

No v1.3.x or v1.4.x files have ever been created.

Suggested Fix

Option A (if v1.4.0 is aspirational): Create the actual v1.4.0.md Algorithm file with the intended changes, or update the version references to point to a real version file.

Option B (if v1.4.0 was premature): Update both hardcoded references to v1.2.0 (the actual latest) and make the banner read LATEST dynamically instead of hardcoding.

Either way, the installer should not reference a version that doesn't exist — it breaks the rebuild pipeline.

catchingknives avatar Feb 15 '26 18:02 catchingknives

Fixed in a9c0d3f! 🎉

Updated both hardcoded references from v1.4.0 to v1.5.0:

  • engine/actions.ts line 464: LATEST pointer file now writes v1.5.0
  • cli/display.ts line 79: banner now shows Algo v1.5.0

The Algorithm v1.3.0, v1.4.0, and v1.5.0 spec files were added in an earlier commit (e9fa62f), so all referenced versions now exist. LATEST correctly points to v1.5.0.

Thanks for the sharp eye!

kaimagnus avatar Feb 15 '26 18:02 kaimagnus