From 68f9c7dd94282db5d50d9c5db5cb0c50f0a7fbac Mon Sep 17 00:00:00 2001 From: cryppadotta <34892728+cryppadotta@users.noreply.github.com> Date: Tue, 17 Nov 2026 07:39:05 +0000 Subject: [PATCH] test(server): retire a duplicated forward-reconciliation row Delete 'keeps forward reconciliation fail-closed for an unrelated task branch' from workspace-runtime.test.ts. It repeats 'keeps forward reconciliation fail-closed for same-content rewritten history' through the identical git topology, helper, and assertion union; the differing fixture bytes are never read by inspectGitWorktreeBranchIncoherence. The retained rows keep the diverged-verdict fail-closed contract, proven by an intended-failure control on the production guard. --- .../src/__tests__/workspace-runtime.test.ts | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/server/src/__tests__/workspace-runtime.test.ts b/server/src/__tests__/workspace-runtime.test.ts index d47d65ec667..56ceedc2309 100644 --- a/server/src/__tests__/workspace-runtime.test.ts +++ b/server/src/__tests__/workspace-runtime.test.ts @@ -3536,36 +3536,6 @@ process.stderr.write(${JSON.stringify(stderr)}, () => { process.exitCode = ${cod }); }, 15_000); - it("keeps forward reconciliation fail-closed for an unrelated task branch", async () => { - const repoRoot = await createTempRepo(); - const expectedBranch = "PAP-459-recorded-task"; - const actualBranch = "PAP-999-unrelated-task"; - const worktreePath = path.join(repoRoot, ".paperclip", "worktrees", expectedBranch); - - await runGit(repoRoot, ["checkout", "-b", expectedBranch]); - await fs.writeFile(path.join(repoRoot, "recorded-task.txt"), "recorded task work\n", "utf8"); - await runGit(repoRoot, ["add", "recorded-task.txt"]); - await runGit(repoRoot, ["commit", "-m", "Add recorded task work"]); - await runGit(repoRoot, ["checkout", "main"]); - - await fs.mkdir(path.dirname(worktreePath), { recursive: true }); - await runGit(repoRoot, ["worktree", "add", "-b", actualBranch, worktreePath, "main"]); - await fs.writeFile(path.join(worktreePath, "unrelated-task.txt"), "unrelated task work\n", "utf8"); - await runGit(worktreePath, ["add", "unrelated-task.txt"]); - await runGit(worktreePath, ["commit", "-m", "Add unrelated task work"]); - - await expectPersistedBranchMismatchRejected({ - repoRoot, - worktreePath, - expectedBranch, - actualBranch, - issueId: "issue-unrelated-task", - executionWorkspaceId: "execution-workspace-unrelated-task", - expectedAncestryVerdict: "diverged", - expectedReason: "expected branch and current HEAD differ", - }); - }, 15_000); - it("keeps forward reconciliation fail-closed when the live branch is behind the recorded branch", async () => { const repoRoot = await createTempRepo(); const expectedBranch = "PAP-459-recorded-ahead";