|
Some checks failed
CI / verify (push) Failing after 4m17s
DRAFT mode shipped in code (ProspectorMode/PROSPECTOR_MODES, the
UpdateSettingsDto guard, advanceDraft's pending_review staging, the review
endpoints) but two DB CHECK constraints were never widened to match, so the
feature was unreachable on a live DB:
- 0017: prospector_settings_mode_check (inline in 0001) only allowed
GO/PAUSE/AWAY, so PUT /prospector/settings {mode:DRAFT} 500'd
(violates prospector_settings_mode_check) — DRAFT could not be entered.
- 0018: prospector_tasks_status_check (inline in 0007) lacked
'pending_review', so advanceDraft's markStatus(processing->pending_review)
threw and the task aborted before any reply could be reviewed. 0015's
header wrongly claimed task status had "no check constraint".
Both are additive, idempotent (drop-by-name then re-add the widened
predicate). Verified live end-to-end after applying: inbound -> draft_review
-> pending_review (body staged, no send child) -> approve -> send child
(actor=human) + structured correction; and a wrong-price draft body is HELD
spec_conflict by the alignment gate. Gates green: 353 tests, typecheck,
backend+web+ai-harness build, web smoke.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| 0001_prospector.sql | ||
| 0002_drafts.sql | ||
| 0003_corrections.sql | ||
| 0004_booking.sql | ||
| 0005_campaigns.sql | ||
| 0006_bilingual.sql | ||
| 0007_tasks.sql | ||
| 0008_peers.sql | ||
| 0009_provider_attestations.sql | ||
| 0010_warm_intros.sql | ||
| 0011_marketplace_routings.sql | ||
| 0012_gpu_droplet.sql | ||
| 0013_gpu_idle_config.sql | ||
| 0014_specs.sql | ||
| 0015_draft_actor.sql | ||
| 0016_correction_feedback.sql | ||
| 0017_draft_mode_constraint.sql | ||
| 0018_pending_review_status.sql | ||