Tests: the directory store names its refused manifest and keeps the entry that publishes a compatible id

The two paths the previous batch left unpinned. Replication routing comments in cultnet-py and cultnet-ts say what the payload-based
and binding-based resolution is and is not.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-30 07:45:31 +02:00
commit 2d2fad1f45
3 changed files with 43 additions and 0 deletions

View file

@ -167,6 +167,7 @@ def resolve_document_for_raw_record(
return resolve_document_and_schema_id_for_raw_record(documents_by_schema_id, schema_id, record)[0]
# routes a replicated raw record to a local binding; the store always persists the local schema id; this is not store-reader recovery.
def resolve_document_and_schema_id_for_raw_record(
documents_by_schema_id: dict[str, DocumentDefinition[Any]],
schema_id: str,

View file

@ -300,6 +300,7 @@ export class CultNetDocumentRegistry {
return binding;
}
// routes a replicated raw record to a local binding; the store always persists the local schema id; this is not store-reader recovery.
#resolveRawDocumentBinding(document: CultNetRawDocumentRecord): CultNetDocumentBinding {
const exact = this.getBySchemaId(document.schemaId);
if (exact) {