From 44bb3fe07ab191abd8260af6975bc175c223878e Mon Sep 17 00:00:00 2001 From: soryu Date: Sat, 31 Jan 2026 22:53:28 +0000 Subject: feat: Add contract management system improvements (Phase 1) - Add docs/contract-management-spec.md with full system design - Add docs/plans/implementation-plan.md with 5-phase rollout plan - Add validate_deliverable() function and use in mark_deliverable_complete - Add PhaseChangeResult enum and change_contract_phase_with_version() with FOR UPDATE locking - Enforce phase_guard at API level for all callers This addresses critical issues in contract management: - Deliverable validation to prevent marking non-existent deliverables complete - Version conflict detection for phase changes with row locking - Phase guard enforcement at API level (applies to all callers including supervisors) - Comprehensive specification and implementation plan for future phases --- makima/src/llm/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'makima/src/llm') diff --git a/makima/src/llm/mod.rs b/makima/src/llm/mod.rs index 212876a..a3a3daf 100644 --- a/makima/src/llm/mod.rs +++ b/makima/src/llm/mod.rs @@ -21,9 +21,9 @@ pub use mesh_tools::{parse_mesh_tool_call, MeshToolExecutionResult, MeshToolRequ pub use phase_guidance::{ check_deliverables_met, format_checklist_markdown, generate_deliverable_prompt_guidance, get_next_phase_for_contract, get_phase_checklist_for_type, get_phase_deliverables, - get_phase_deliverables_for_type, should_auto_progress, AutoProgressAction, AutoProgressDecision, - Deliverable, DeliverableCheckResult, DeliverableItem, DeliverablePriority, DeliverableStatus, - PhaseChecklist, PhaseDeliverables, TaskInfo, TaskStats, + get_phase_deliverables_for_type, get_phase_deliverables_with_config, should_auto_progress, + AutoProgressAction, AutoProgressDecision, Deliverable, DeliverableCheckResult, DeliverableItem, + DeliverablePriority, DeliverableStatus, PhaseChecklist, PhaseDeliverables, TaskInfo, TaskStats, }; pub use task_output::{ analyze_task_output, format_parsed_tasks, parse_tasks_from_breakdown, ParsedTask, -- cgit v1.2.3