core: an architecture plugin can decline imported checkpoints

An imported quantisation names its tool, which no plugin claims, so the family's one quantised
plugin serves it and two are refused. rad_arch_serves_imports(), optional and absent = yes, lets a
second quantised plugin that reads only its own containers return 0: the import pick then leaves
it out of the family, neither counted nor picked as the only plugin. Its own descriptor still
selects it. Additive export; RAD_ABI_VERSION does not move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
eddie168168andClaude Opus 5.5 authored and StillDeadcode committed 2026-10-19 10:42:13 +02:00
1 parent f706caecec
commit 0b0403603b
10 files changed
+55 -5

No files matched your search

+4
View File
@@ -623,6 +623,10 @@ const RadPluginInfo* rad_plugin_info(void) { return &kInfo; }
const char* rad_arch_id(void) { return RADTEST_ARCH_ID; }
/* The other half of the selection key (spec §2.4); "" is an unquantised container. */
const char* rad_arch_quant(void) { return RADTEST_ARCH_QUANT; }
#if defined(RADTEST_ARCHQ_NO_IMPORTS)
/* Quantised, but never the plugin an imported checkpoint is handed to. */
int rad_arch_serves_imports(void) { return 0; }
#endif
/* The core loads and identifies architecture plugins; the build component drives them. Neither
* hook is called by anything this test exercises, and declare refuses rather than pretending. */
int rad_arch_declare(RadBuilder* b, const RadModelMeta* meta, const RadBuildCtx* ctx) {