···7172- **New Repositories:** When creating a new bundle repository, implementations **must** set the `origin` field to the base URL of the PLC directory being archived.
73- **Origin Validation:** Before adding bundles to an existing repository, implementations **must** verify that the source PLC directory matches the index's `origin` field.
74-- **Origin Mismatch:** If the configured PLC directory URL does not match the index's `origin`, the implementation **must** reject the operation with a clear error message indicating the mismatch.
75-- **Legacy Compatibility:** When loading an index without an `origin` field (created before this specification version), implementations **should**:
76- 1. Log a warning that the origin is unknown
77- 2. If a PLC client is configured, automatically populate the `origin` field
78- 3. Save the updated index to persist the origin for future use
79- 4. On subsequent operations, enforce origin matching as normal
8081### 5.2. BundleMetadata Object
82
···7172- **New Repositories:** When creating a new bundle repository, implementations **must** set the `origin` field to the base URL of the PLC directory being archived.
73- **Origin Validation:** Before adding bundles to an existing repository, implementations **must** verify that the source PLC directory matches the index's `origin` field.
0000007475### 5.2. BundleMetadata Object
76