go-cms-runtime-integrity

Guides changes to Go CMS site runtime construction, publication, and cache coherence.

Updated Jun 15, 2026
One-click install
npx skills add https://github.com/vernal96/go-cms --skill go-cms-runtime-integrity-vernal96
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: go-cms-runtime-integrity
Source: https://github.com/vernal96/go-cms/tree/main/.codex/skills/go-cms-runtime-integrity
Command: npx skills add https://github.com/vernal96/go-cms --skill go-cms-runtime-integrity-vernal96

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Changes to the Go CMS runtime model (SiteRuntime, ProfileBlueprint, ModuleContext, runtime-scoped bindings) can silently break atomic publication, cache coherence, or per-site isolation. This Skill encodes the invariants and review checklist needed to modify runtime code without corrupting published state. ## Core Features & Use Cases - Runtime model guardrails: Preserves the Profile declaration to immutable ProfileBlueprint to per-site SiteRuntime chain, forbidding per-request rebuilds or external-cached runtime objects. - Atomic publication rules: Enforces prepare-then-publish semantics so failed candidate builds leave the previous runtime and HTTP artifacts active. - Deactivation transitions and cache coherence: Defines deterministic prepare/abort ordering for runtime draining and traces read-to-mutation-to-invalidation paths for cached entities. - Use Case: When adding a module that contributes bindings during Build, follow the Skill to keep the registry site-scoped, run RuntimeBuildFinalizer in profile order, and add focused tests proving two sites receive distinct runtimes. ## Quick Start Ask the assistant to review your changes to the site runtime builder and cache invalidation paths using the go-cms-runtime-integrity guidelines before committing.

Frequently Asked Questions about go-cms-runtime-integrity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely rebuild a SiteRuntime in a Go CMS?▼

Prepare and validate the complete candidate runtime before publishing it, so readers keep using the previous snapshot if preparation fails. Never mutate already-published runtime objects during a candidate build, and switch the runtime and its HTTP artifact coherently.

How do I keep site caches coherent after admin mutations?▼

Trace the full path from cached read through the real mutation to invalidation and back to a fresh read. A cached reader with an uncached writer is a bug unless a centralized invalidation bridge covers the writer, and invalidation belongs to domain or persistence policy, not HTTP callers.

Can runtime state be stored in Redis or an external cache?▼

No. Site runtimes are built on boot, create, update, or reload and kept in process memory. Storing runtime objects in Redis or an external cache as a substitute for process state violates the runtime model.

When is a Site update a runtime deactivation transition?▼

Site deletion and profile-code changes are deactivation transitions that invoke runtime participants, while an ordinary same-profile settings update is not. Profile changes invoke participants even when both profiles contain the same optional module.

What happens if a runtime transition participant fails during prepare?▼

A participant that fails during its own prepare must undo its partial temporary state before returning the error. Later participant or repository failures abort all earlier preparations in reverse order and restore the old published runtime's temporary state.