Implementation guide
Producer
Start from examples/minimal/bag. Use stable IDs; express
measurable behavior and explicit non-goals. Select the generic catalogs
or a declared custom profile. Every MUST requirement needs acceptance,
one owner, one release partition and trace edges. Add permissions, data
models, UI states, recovery behavior, brand assets and external
dependencies when relevant. Publish a declared coverage checklist so
absent catalogs are intentional.
Keep authoritative resources structured. Attach native API/event/schema files using exact dispatch declarations and a supported adapter. Generate human documents from canonical records. Projection source paths and output digests protect against stale views. Seal last; any byte edit requires resealing. Do not mutate a sealed input during import.
Importer
Preflight ZIP names, sizes and collisions before writing. Verify BagIt and complete resource registration. Parse JSON without duplicate keys or non-finite values. Validate the core with a trusted copy of its schema; then negotiate features and declared catalog/native schemas. Resolve IDs and trace edges; check requirement coverage, release partitions, workflow dependencies and bindings. Keep provider calls and packaged code inert. Emit acceptance/refusal outside the input.
Factory implementation
Accepted import starts planning. Resolve implementation choices using explicit defaults and log decisions. Generate code, migrations, reproducible builds, application tests and operational evidence. Independently verify sensitive rules rather than treating fixture inputs as implementation outputs. Mark each capability software_complete only with passing evidence; enable production only when credentials, contracts, policy and physical observation requirements are satisfied. Continue independent work when one capability is blocked.
Extensions
Add a required feature ID when new semantics are mandatory. Ship a strict schema and a documented semantic adapter; never rely on arbitrary code inside a package being trusted. Unknown optional resources may be preserved unchanged; they are not automatically implemented. Version the product and include a migration record for changed/retired stable IDs. IDs must not be recycled.
Reference limitations
The packer supports the JSON example layout. The core validator uses the trusted standard schemas, supports fragment-only JSON Schema references and fails closed on external schema refs, dynamic references, native required formats and custom business validators. It statically checks binding paths but validates resolved values at execution time; it does not prove arbitrary schema subtyping. It does not run application tests, evaluate policy prose, prove market claims, verify provider credentials or sanitize visual content. Native vector checks are separate and are not a full native adapter implementation.