An illustrative scenario, not a recorded incident: a React Native app re-downloads a speech model after backgrounding and overwrites the prior copy, so rollback is unavailable.
Before the first PR, record three decisions: required manifest fields, who approves a manifest change, and where the previous artifact remains. Proposed required fields are model_id, version, sha256, bytes, and rollback_to. The approver should require rollback_to to point at a version still in storage.
This is governance work. The NIST AI RMF is voluntary; Govern 2.1 addresses responsibility and communication, and Manage 4.1 covers recovery and change management (NIST AI RMF Core). The playbook lets teams select practices that fit context, with no required order (NIST AI RMF Playbook).
Steps
- In the object schema, list model_id, version, sha256, bytes, and rollback_to in required. JSON Schema documents that declaring a property does not require its presence; only names in required must appear (JSON Schema object reference).
- Set additionalProperties to false so a misspelled field such as sha265 is rejected; the same reference documents that unmatched properties are accepted by default and that this keyword closes the object for the named properties and patternProperties.
- Make CI validation a review gate: use a JSON Schema validator, record the validator and schema version in the PR, and require the named owner's approval.
Test
Proposed check, not a recorded test: copy the manifest, remove sha256, and validate it. Expected observation: validation fails and names the missing required field. If validation passes, the property is declared but not required; fix the schema before changing device code.
For the update path, use a test build and staging model. Start a download, interrupt connectivity, background, and resume. Expected observation: the app keeps the last verified artifact and surfaces the failure. If it deletes the old copy first, change the update order before the PR description. Also require the runtime to compare the downloaded artifact's digest with sha256 before activation; treat schema validation and digest verification as separate checks.
Limits
Storage and backup are outside the manifest schema; if rollback relies on either, document a separate control and evidence. This article was created with AI assistance.
Top comments (0)