Commits
Marek Vsechovsky committed 1147cf5a6ec
Session 199, Step 1: Instruction template versioning and mandatory update enforcement - AIM-3708 Instruction template versioning and mandatory update enforcement - AIM-3709 Server-side instruction template version metadata - AIM-3710 Register template revisions changed outside the Settings editor - AIM-3711 Settings UI for publishing template revisions - AIM-3712 Per-project client-side version.json - AIM-3713 Store instruction template texts in IndexedDB instead of localStorage - AIM-3714 Automatic update of user-altered decomposed instruction files - AIM-3715 Browser tab coordination for instruction updates - AIM-3716 Cross-computer project-specific update lease in SQL Server - AIM-3717 Send instruction revision header from the centralized api object - AIM-3718 Global ASP.NET Core instruction revision enforcement middleware - AIM-3719 FileUpdateManager automatic update flow for unmodified templates - AIM-3720 FileUpdateManager manual update flow for user-edited templates - AIM-3721 Reliability and performance requirements for instruction updates - AIM-3722 Reuse existing infrastructure and preserve decomposition behavior Outcome: All 15 free-text issues implemented as one cohesive feature. - **Server** (issues -4358, -4359, -4365, -4367): template version metadata table + service with SHA-256 revision registration, startup re-registration of agent edits, SQL Server per-project update leases and the global `428 INSTRUCTION_UPDATE_REQUIRED` enforcement middleware with cached mandatory revision. - **Client data layer** (issues -4361, -4362, -4363): per-project `version.json` with recoverable update metadata, IndexedDB template caching (with localStorage migration) and the added-rows automatic merge. - **Coordination** (issue -4364): BroadcastChannel + Web Locks tab cooperation. - **API + UI** (issues -4360, -4366, -4368, -4369): revision header on the centralized `api` object, Settings template version display with mandatory publish prompt/checkbox, and the central `FileUpdateManager` with automatic and forced-manual flows (red badge, tab locking, Info & to-do sync request). - **Hardening** (issues -4370, -4371): caching, startup/visibility/reconnect checks, failure recovery, unchanged decomposition semantics and updated node tests. Validated with `dotnet build` (0 errors), `node --check` on all touched JS and the dashboard node suites (only two pre-existing unrelated failures remain: a moved SQL test fixture and a stale jQuery mock).