Illustrative scenario, not a real incident. A team ships JSON policy gating agent SQL, then loosens a row limit in review. Later nobody can reconstruct which version approved it.
Position A: require rollback fields
Declaring a property does not make it mandatory; the required list does. additionalProperties: false rejects extra names in that subschema. JSON Schema object reference
Require version, rollback owner, approver and row limit. The first three are strings. The limit must be an integer with a positive bound; integer-only does not enforce positivity. Close the object to other names.
Position B: loose schema, runtime kill switch
A runtime switch separately stops the job. The voluntary NIST AI RMF calls for deployed-AI monitoring under Manage 4.1, including incident response, recovery and change management. Choosing a switch is our proposal.
Decision rule
Check the policy before merge when it is the change under review. Test the stop when a bad policy could affect live work. An approval-field name identifies the claimed approver; merge permissions and records determine who may approve.
Steps to test
Proposed checks; no results claimed.
- Start with a valid test document. Define owner but omit it from required. Leave owner absent: it should pass; if not, check required and schema. Add owner to required and validate: it should fail; if not, check loaded schema/document.
- Restore required fields, then add a misspelled extra field. The closed schema should reject it. If accepted, confirm additionalProperties: false is on correct subschema; if still accepted, object is not closed.
- In a disposable job, record stop latency for new work and outcome for accepted work. Compare both to recovery target. If new work continues past target or accepted work is lost without a named owner, treat stop as unverified and fix switch or target.
Failure modes and limits
A present string can still say TBD. This sample checks policy fields but never runs the SQL or checks data effects. Review those separately and name who can restart the job.
This article was created with AI assistance.
Top comments (0)