@rulemetric/local 0.14.1 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
-- Invalid catalog templates free their slot without recording an effect verdict.
|
|
2
|
+
ALTER TABLE instruction_experiments
|
|
3
|
+
DROP CONSTRAINT instruction_experiments_stopped_reason_check;
|
|
4
|
+
ALTER TABLE instruction_experiments
|
|
5
|
+
ADD CONSTRAINT instruction_experiments_stopped_reason_check
|
|
6
|
+
CHECK (stopped_reason IN ('graduated', 'trial_neutral', 'trial_inconclusive', 'content_changed', 'inactive_project', 'invalid_template', 'delivery_refused'));
|
|
7
|
+
|
|
8
|
+
-- The old renderer delivered only the first 2,000 raw characters. Do not pool
|
|
9
|
+
-- those assignments with sessions receiving the full extracted body now.
|
|
10
|
+
-- Conservative for envelopes: restart rather than transfer uncertain evidence.
|
|
11
|
+
UPDATE instruction_experiments e
|
|
12
|
+
SET status = 'stopped', stopped_reason = 'content_changed'
|
|
13
|
+
FROM instructions i
|
|
14
|
+
WHERE e.instruction_id = i.id AND e.status = 'running'
|
|
15
|
+
AND length(i.content) > 2000;
|