Skip to content

fix(factory): clear app/v3's go vet error; fix two furrow-only test fixtures - #1988

Merged
AbirAbbas merged 3 commits into
app/v3from
fix/app-v3-vet-and-furrow-fixtures
Oct 27, 2026
Merged

AbirAbbas merged 3 commits into
app/v3from
fix/app-v3-vet-and-furrow-fixtures

Conversation

@AbirAbbas

Copy link
Copy Markdown
Collaborator

Summary

Three small fixes found while verifying the relay merges. None of them changes product behaviour.

  1. go vet ./... is red on app/v3 (CI's Vet step, which every PR gate runs). It reports lostcancel at internal/factory/run/chatstage.go:402. The report window's cancel was reassigned inside the loop and released by a deferred closure, which vet can't follow. It wasn't a leak. The window is set at most once (reportDone guards it), so a plain defer reportCancel() where it's made releases it at return, as before.
  2. TestAChatBeingTakenIsNotOpened (needs a real furrow, so it skips on CI) failed intermittently. Its fake opener's refusal left a warm capture writing into the chat while TempDir cleanup removed it (unlinkat …/.cell: directory not empty). The fixture now switches cells off; the handoff guard it asserts is unchanged. With -race it failed 3 of 15 runs before and passes 15 of 15 after; it also passes 20 of 20 without -race.
  3. TestSealedTreeCarriesTheSessionTruth (also furrow-only) failed every time. RunLandedTasks opens its own default-config agent in the chat, and closing it stamps that agent's effort and approval over the seeded meta. The round trip then compared empty fields. The test now puts the seed back after setting up its landed task, and passes 2 of 2 with the pinned furrow v0.2.0.

Verification

  • go vet ./internal/factory/run is clean.
  • go test ./internal/factory/run has one failure, TestARefusedReportLeavesTheEarlierOneStanding. It fails 10 of 10 on the unchanged file too, and it's on the app/v3 baseline Full check's failure list, so it predates this change.

🤖 Generated with Claude Code

AbirAbbas and others added 3 commits October 26, 2026 21:38
…t window

`go vet ./...` (CI's Vet step) failed on app/v3 with lostcancel at
chatstage.go:402: the report window's cancel was reassigned inside the loop
and released by a deferred closure, which vet cannot follow. It was not a
leak, but it kept every PR gate red. The window is set at most once
(reportDone guards it), so a plain `defer reportCancel()` where it is made
releases it at return, as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
TestAChatBeingTakenIsNotOpened tests the door, but with a real furrow
its fake opener's refusal left a warm capture writing into the chat
while TempDir cleanup removed it ("unlinkat …/.cell: directory not
empty"): 3 of 15 -race runs failed. Cells are switched off for this
fixture; the handoff guard it asserts is unchanged. 15/15 -race, 20/20
plain.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
TestSealedTreeCarriesTheSessionTruth failed every time with a real furrow
(it skips on CI): RunLandedTasks opens its own default-config agent in the
chat, and closing it stamps that agent's effort and approval over the
seeded meta, so the round trip compared empty fields. The test now puts
the seed back after setting up its landed task. 2/2 with the pinned furrow.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@AbirAbbas AbirAbbas added the no-changelog This pull request is exempt from the docs/changes entry label Oct 27, 2026
@AbirAbbas

Copy link
Copy Markdown
Collaborator Author

Gate (run 40434763814): Vet is clean now. 30 test failures: 29 are on the app/v3 baseline Full check's failure list (the packed-manual corpora checks, the git-land and prompt-budget tests in internal/session). The 30th, TestProgramUntrackedInputsTheRunChangedAreItsWork/finished, is a TempDir cleanup race (unlinkat …/.git/objects: directory not empty) in a test this PR doesn't touch, and it passes in the Full runs. No new failures from this change.

@AbirAbbas
AbirAbbas merged commit 21dd937 into app/v3 Oct 27, 2026
2 of 6 checks passed
@AbirAbbas
AbirAbbas deleted the fix/app-v3-vet-and-furrow-fixtures branch October 27, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This pull request is exempt from the docs/changes entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant