The contract package lacks a discoverable release manifest or deterministic version metadata, making it hard to correlate deployed WASM artifacts with source code and contract schemas.
Affected areas: app/contract/contracts/Cargo.toml, app/contract/contracts//src/lib.rs, app/contract/contracts/src/metadata.rs, CI workflows, backend contract registry.
Implementation scope:
- Add contract version metadata and build-time manifest generation.
- Embed version, build timestamp, source hash, and schema version in the WASM artifact.
- Make the backend registry consume the manifest for deployment and compatibility checks.
- Add tests to verify manifest contents and contract version invariants.
Acceptance criteria:
- Every built contract artifact includes deterministic metadata.
- Backend and CI can verify the deployed artifact against source metadata.
- Version drift is detectable by automated checks.
The contract package lacks a discoverable release manifest or deterministic version metadata, making it hard to correlate deployed WASM artifacts with source code and contract schemas.
Affected areas:
app/contract/contracts/Cargo.toml,app/contract/contracts//src/lib.rs,app/contract/contracts/src/metadata.rs, CI workflows, backend contract registry.Implementation scope:
Acceptance criteria: