Skip to content

tests: seal-engine tests use codeaf's own engine and run in the gate - #2178

Merged
santoshkumarradha merged 7 commits into
app/v3from
c34/seal-engine
Nov 2, 2026
Merged

santoshkumarradha merged 7 commits into
app/v3from
c34/seal-engine

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

What changes

Tests that seal through codeaf's own furrow engine now look for it the same way the product does: the configured engine (CODEAF_FURROW) or the one embedded in the build, never one found on PATH.

  • Shared helper: celltest.Engine does this in one place. It replaces 15 copied checks in the session, cellstore, cellsync, cellindex, syncsetup and cmd/codeaf suites.
  • Skip only without an engine: a test skips only when no engine exists. The skip message names the missing engine and says to run make furrow or set CODEAF_FURROW.
  • The gate builds the engine: make test and make test-focus now run make furrow first. test-touched, pr-ready and the touched CI legs therefore build with the pinned engine and run these tests instead of skipping them.

Cause: the tests checked for an engine with furrow.ResolveBinary, which falls back to PATH (internal/furrow/furrow.go:332). On a machine with an older furrow on PATH, the check passed and the tests ran. The seal itself accepts only the configured or embedded engine (internal/furrow/furrow.go:350) and refused, so the tests failed. No test target embedded the pinned engine.

Evidence

  • Before: three session seal tests failed. TestSealedTreeCarriesTheSessionTruthC1bModelChoice and TestSealedTreeCarriesTaskHistory failed with "engine unavailable". TestUserBashChangesReachTheTurnEndSnapshot failed with "no engine to seal with … no engine of codeaf's own".
  • No engine staged, plain go test: all four seal tests skip with the message above.
  • Through make test-focus, starting with no engine staged: the target staged the engine, and all four ran and passed, EXIT=0:
    • TestSealedTreeCarriesTheSessionTruthC1bModelChoice (0.59s)
    • TestSealedTreeCarriesTaskHistory (0.28s)
    • TestUserBashChangesReachTheTurnEndSnapshot (0.28s)
    • TestOwnershipSealedTasklessChatCarriesIdentity (0.50s)
  • make vet and make fmt-check pass.

Limits

  • Known reds now visible. With the engine present, 8 engine tests that the PATH-fallback skip used to hide now run. All 8 also fail on app/v3 when an engine is present. They are listed here as known reds, and a separate lane is fixing them:
    • internal/syncsetup:
      • TestAReturnAfterTheWriterReopensIsNotALostRace
      • TestWatchDisplacementRetiresTheDriveHoldImmediately
      • TestOwnershipCheckThatFindsAnotherHolderKeepsUnsentTurns
      • TestContinuingAChatKeepsItsLeaseDespiteDamagedTeamsAndLaterHeals
    • cmd/codeaf:
      • TestAppChatRowsR2SavedTurnTime
      • TestAppChatStartupR3QuietRelease
      • TestC1AppViewerAcceptsRealPendingConsent
      • TestC1C2AppViewerRefusesWorkBeforeSubmission
  • Network needed. make test now needs network access or a FURROW_ARTIFACT path to stage the engine, the same as make build.
  • Session skip message. Inside internal/session, the skip message says to set CODEAF_FURROW, but that suite reads CODEAF_TEST_FURROW. The main instruction, make furrow, is correct everywhere.

🤖 Generated with Claude Code

santoshkumarradha and others added 7 commits November 2, 2026 03:26
Three internal/session seal tests resolved furrow with ResolveBinary, which
falls back to PATH. On a machine whose PATH furrow is older than the pinned
engine, the skip check passed and the product's own seal path, which accepts
only the configured or embedded engine, then failed with 'engine unavailable'
or 'no engine of codeaf's own'. No make test target staged the embedded engine,
so the gate could not run these proofs at all.

celltest.Engine is now the one door for a test that needs the real engine: it
asks the same owned-engine question as the product and skips, naming the
missing engine and how to provide it, only when none exists. The resolve-and-
skip copies in session, cellstore, cellsync, cellindex, syncsetup and
cmd/codeaf use it. make test and make test-focus depend on make furrow, so
test-touched, pr-ready and the touched CI legs (which run make test through
touched-verdict.py) build with the pinned engine and the proofs run there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
internal/furrow imports internal/config through exec, and config's own tests
import celltest, so celltest importing furrow made an import cycle that go vet
./... refuses. furrowbin already held the owned-engine choice for the cells
probe; exporting it as OwnedBinary lets celltest ask the same question from
below every package furrow imports.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@santoshkumarradha
santoshkumarradha marked this pull request as ready for review November 2, 2026 17:50
@santoshkumarradha
santoshkumarradha merged commit f39d0f9 into app/v3 Nov 2, 2026
@santoshkumarradha
santoshkumarradha deleted the c34/seal-engine branch November 2, 2026 17:50
AbirAbbas added a commit that referenced this pull request Nov 2, 2026
…for branch publication

Rebased onto app/v3, where #2178 and #2183 already cover most of this
branch: the engine-backed fixtures and the hosted take-back's resumed-hold
proof. What is left:

- the hosted move rig and the drive rig's default daemon keep their homes
  under /tmp on Unix, because macOS's temporary folder leaves a workspace
  socket only a few bytes under the address limit;
- the L12 death-branches test waits for A's branch row to hold its three
  orphan turns before it reads them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
AbirAbbas added a commit that referenced this pull request Nov 3, 2026
…for branch publication (#2032)

Rebased onto app/v3, where #2178 and #2183 already cover most of this
branch: the engine-backed fixtures and the hosted take-back's resumed-hold
proof. What is left:

- the hosted move rig and the drive rig's default daemon keep their homes
  under /tmp on Unix, because macOS's temporary folder leaves a workspace
  socket only a few bytes under the address limit;
- the L12 death-branches test waits for A's branch row to hold its three
  orphan turns before it reads them.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant