Skip to content
This repository was archived by the owner on Nov 30, 2026. It is now read-only.

Cold-cache parse and import seed the class registry (#188) - #190

Merged
cdowin merged 1 commit into
mainfrom
188-cold-cache-import
Nov 14, 2026
Merged

cdowin merged 1 commit into
mainfrom
188-cold-cache-import

Conversation

@cdowin

@cdowin cdowin commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Closes #188

On a cold .godot/ the engine has no class registry, so plugin resource loaders are not registered when the first import parses resources. gdk_rebuild_import_cache now runs two import passes on a cold registry (one on a warm one), via the new gdk_cold_class_registry predicate. parse.sh first runs a bounded, leased seed import (log not graded) on a cold registry.

Files: gdk_runners.sh, parse.sh, import_cache.sh (comment), tests/test_runners_installable.py.
Proof: make precommit PASS (227 passed). Not verified: no real engine boot, so the mechanism is proven only against stubs; a consuming game must confirm on a fresh clone.

🤖 Generated with Claude Code

A cold .godot/ has no global_script_class_cache.cfg, so the engine boots
with no class_name scripts registered, and a plugin's custom
ResourceFormatLoader is missing when the first import parses that
plugin's resources. parse.sh now runs a seed import first when the
registry is missing, logs it on its own and fails if the seed writes no
registry. gdk_rebuild_import_cache (make import) runs two passes on a
cold registry.

Refs #188

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0177RxMb4U6YGaGVPmUNstnQ
@cdowin
cdowin merged commit 0245163 into main Nov 14, 2026
3 checks passed
@cdowin
cdowin deleted the 188-cold-cache-import branch November 14, 2026 02:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cold-cache import: seed the class registry so games can drop their own import_cache.sh

2 participants