feat(FN-670): add mandatory build verification before merge

- Add report_build_failure tool to merger agent for explicit build failure signaling
- Run buildCommand before finalizing merge, abort if build fails with git reset --merge
- Treat build failures as fatal errors (no retry) and keep task in in-review
- Add build verification instruction to executor system prompt
- Update executor to use steeringComments field for mid-execution guidance
This commit is contained in:
gsxdsm
2026-04-01 07:28:28 -07:00
parent b9584da06c
commit 2d112e062a
7 changed files with 370 additions and 18 deletions

View File

@@ -1617,7 +1617,7 @@ describe("buildExecutionPrompt", () => {
it("includes Comments section when comments has entries", () => {
const task = createMockTaskDetail({
comments: [
steeringComments: [
{
id: "1",
text: "Please handle the edge case",
@@ -1637,7 +1637,7 @@ describe("buildExecutionPrompt", () => {
it("formats multiple comments correctly", () => {
const now = new Date();
const task = createMockTaskDetail({
comments: [
steeringComments: [
{
id: "1",
text: "First comment",
@@ -1660,8 +1660,8 @@ describe("buildExecutionPrompt", () => {
expect(result).toContain("> Second comment");
});
it("omits Comments section when comments is empty", () => {
const task = createMockTaskDetail({ comments: [] });
it("omits Comments section when steeringComments is empty", () => {
const task = createMockTaskDetail({ steeringComments: [] });
const result = buildExecutionPrompt(task);
expect(result).not.toContain("## Steering Comments");