Retire the mutable design schema

Make Rust records and fixed codec tests the implementation-shape owner, remove the Mermaid category registry, and state the ownership boundary in the authoritative specification.
This commit is contained in:
ms2k 2026-07-19 02:45:32 +09:00
commit 03bfe92ca0

View file

@ -31,18 +31,14 @@ pub trait SchemaType {
}
macro_rules! schema_types {
($($name:literal => $record:ty),+; $($declared:literal),* $(,)?) => {
($($name:literal => $record:ty),+ $(,)?) => {
$(
impl SchemaType for $record {
const NAME: &'static str = $name;
}
)+
pub const IMPLEMENTED_SERIALIZED_SCHEMA_TYPE_NAMES: &[&str] = &[$($name),+];
pub const DECLARED_SERIALIZED_SCHEMA_TYPE_NAMES: &[&str] = &[
$($name),+,
$($declared),*
];
pub const SERIALIZED_RECORD_TYPE_NAMES: &[&str] = &[$($name),+];
};
}
@ -149,13 +145,5 @@ schema_types!(
"ResolvedNetworkReadinessV1" => ResolvedNetworkReadinessV1,
"DomainStore" => DomainStore,
"StorageCatalog" => StorageCatalog,
"PrepareStageState" => PrepareStageState;
"StateResetIntentV1",
"StateResetScopeV1",
"PrepareStageState" => PrepareStageState,
);
pub const DECLARED_RUNTIME_SCHEMA_TYPE_NAMES: &[&str] = &[
"ResolvedDomainConfiguration",
"SandboxLayoutV1",
"ConfinedPathPlan",
];