Menu

Schema-Required or Kill Switch: Rolling Back Agent SQL
📰

Schema-Required or Kill Switch: Rolling Back Agent SQL

DEV Community: sql·Morgan Li·3 days ago
#aBYTvLGg
#devtosql#devto#dev#required#schema
Long article (335 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.