story-kit: merge 165_bug_pipeline_log_message_says_archived_instead_of_done
This commit is contained in:
@@ -996,10 +996,10 @@ impl AgentPool {
|
|||||||
|
|
||||||
if passed {
|
if passed {
|
||||||
slog!(
|
slog!(
|
||||||
"[pipeline] Post-merge tests passed for '{story_id}'. Archiving."
|
"[pipeline] Post-merge tests passed for '{story_id}'. Moving to done."
|
||||||
);
|
);
|
||||||
if let Err(e) = move_story_to_archived(&project_root, story_id) {
|
if let Err(e) = move_story_to_archived(&project_root, story_id) {
|
||||||
slog_error!("[pipeline] Failed to archive '{story_id}': {e}");
|
slog_error!("[pipeline] Failed to move '{story_id}' to done: {e}");
|
||||||
}
|
}
|
||||||
self.remove_agents_for_story(story_id);
|
self.remove_agents_for_story(story_id);
|
||||||
// Mergemaster slot is now free — pick up any other items in 4_merge/.
|
// Mergemaster slot is now free — pick up any other items in 4_merge/.
|
||||||
@@ -1017,7 +1017,7 @@ impl AgentPool {
|
|||||||
// );
|
// );
|
||||||
// }
|
// }
|
||||||
slog!(
|
slog!(
|
||||||
"[pipeline] Story '{story_id}' archived. Worktree preserved for inspection."
|
"[pipeline] Story '{story_id}' done. Worktree preserved for inspection."
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
slog!(
|
slog!(
|
||||||
|
|||||||
@@ -1417,9 +1417,9 @@ async fn tool_merge_agent_work(args: &Value, ctx: &AppContext) -> Result<String,
|
|||||||
let report = ctx.agents.merge_agent_work(&project_root, story_id).await?;
|
let report = ctx.agents.merge_agent_work(&project_root, story_id).await?;
|
||||||
|
|
||||||
let status_msg = if report.success && report.gates_passed && report.conflicts_resolved {
|
let status_msg = if report.success && report.gates_passed && report.conflicts_resolved {
|
||||||
"Merge complete: conflicts were auto-resolved and all quality gates passed. Story archived and worktree cleaned up."
|
"Merge complete: conflicts were auto-resolved and all quality gates passed. Story moved to done and worktree cleaned up."
|
||||||
} else if report.success && report.gates_passed {
|
} else if report.success && report.gates_passed {
|
||||||
"Merge complete: all quality gates passed. Story archived and worktree cleaned up."
|
"Merge complete: all quality gates passed. Story moved to done and worktree cleaned up."
|
||||||
} else if report.had_conflicts && !report.conflicts_resolved {
|
} else if report.had_conflicts && !report.conflicts_resolved {
|
||||||
"Merge failed: conflicts detected that could not be auto-resolved. Merge was aborted — master is untouched. Report the conflict details so the human can resolve them."
|
"Merge failed: conflicts detected that could not be auto-resolved. Merge was aborted — master is untouched. Report the conflict details so the human can resolve them."
|
||||||
} else if report.success && !report.gates_passed {
|
} else if report.success && !report.gates_passed {
|
||||||
|
|||||||
Reference in New Issue
Block a user