Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MandoCode
Submodule MandoCode updated 32 files
+3 −0 src/MandoCode/Components/App.razor
+7 −1 src/MandoCode/Models/ConfigKeySetter.cs
+4 −0 src/MandoCode/Models/MandoCodeConfig.cs
+6 −2 src/MandoCode/Models/PlanStepEvidence.cs
+4 −0 src/MandoCode/Models/TaskPlan.cs
+2 −2 src/MandoCode/Plugins/FileSystemPlugin.cs
+10 −3 src/MandoCode/Plugins/PlanningPlugin.cs
+76 −14 src/MandoCode/Services/Ai/AIService.cs
+8 −2 src/MandoCode/Services/Ai/AgentFunctionMiddleware.cs
+30 −0 src/MandoCode/Services/Ai/AmbiguousEditGuidance.cs
+4 −0 src/MandoCode/Services/Ai/InvocationScope.cs
+1 −0 src/MandoCode/Services/Ai/PlanHandoff.cs
+17 −0 src/MandoCode/Services/Ai/Planning/PlanAcceptance.cs
+3 −0 src/MandoCode/Services/Ai/Planning/PlanCheckpointStore.cs
+30 −0 src/MandoCode/Services/Ai/Planning/PlanEvidenceFollowup.cs
+68 −0 src/MandoCode/Services/Ai/Planning/PlanFinalQuality.cs
+47 −0 src/MandoCode/Services/Ai/Planning/PlanQualityOutcome.cs
+62 −0 src/MandoCode/Services/Ai/Planning/PlanQualityReview.cs
+31 −10 src/MandoCode/Services/Ai/Planning/PlanRepositoryContext.cs
+7 −4 src/MandoCode/Services/Ai/Planning/PlanRevision.cs
+6 −0 src/MandoCode/Services/Ai/Planning/PlanRunState.cs
+65 −7 src/MandoCode/Services/Ai/Planning/PlanStepRecovery.cs
+91 −27 src/MandoCode/Services/Ai/Planning/PlanStepVerifier.cs
+1 −0 src/MandoCode/Services/Ai/TaskPlannerService.cs
+32 −0 src/MandoCode/docs/PlannerExecution.md
+42 −384 src/MandoCode/docs/TaskPlanner.md
+141 −0 tests/MandoCode.Tests/PlanAcceptanceTests.cs
+102 −0 tests/MandoCode.Tests/PlanFinalQualityTests.cs
+102 −0 tests/MandoCode.Tests/PlanQualityOutcomeTests.cs
+106 −0 tests/MandoCode.Tests/PlanQualityTests.cs
+80 −2 tests/MandoCode.Tests/PlanVerificationRecoveryTests.cs
+78 −0 tests/MandoCode.Tests/StraightforwardPlanTests.cs
11 changes: 10 additions & 1 deletion src/MandoCode.Desktop/Services/PlanCardHtml.cs
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,8 +15,17 @@ public static string Build(TaskPlan plan)
sb.Append("<div class=\"panel\"><div class=\"panel-header sky\">Proposed plan</div><table class=\"plan\">");
sb.Append("<tr><th>Step</th><th>Description</th><th>What it will do</th></tr>");
foreach (var step in plan.Steps)
{
sb.Append($"<tr><td class=\"sky\">{step.StepNumber}</td><td>{Escape(step.Description)}</td>" +
$"<td class=\"dim\">{Escape(step.Instruction)}</td></tr>");
$"<td class=\"dim\">{Escape(step.Instruction)}");
if (step.AcceptanceCriteria.Count > 0)
{
sb.Append("<p>Acceptance checks</p><ol>");
foreach (var criterion in step.AcceptanceCriteria) sb.Append($"<li>{Escape(criterion)}</li>");
sb.Append("</ol>");
}
sb.Append("</td></tr>");
}
sb.Append("</table></div>");
return sb.ToString();
}
Expand Down
2 changes: 2 additions & 0 deletions src/MandoCode.Desktop/ViewModels/PlanInstructionEditor.cs
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,6 +12,8 @@ public static bool Apply(TaskStep step, string? revisedInstruction)

var revised = revisedInstruction.Trim();
step.Instruction = revised;
step.AcceptanceCriteria = [revised];
step.EvidenceFollowupUsed = false;
// The description is a UI label, but a stale label makes the review card misleading.
// Always derive it from the instruction the user actually approved.
step.Description = revised.Length > 60 ? revised[..57] + "..." : revised;
Expand Down
Loading