From ed5ffe4f03fb50b0bfbd93ca84cbdfbf00316a1d Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Sun, 1 Nov 2026 23:42:17 +0000 Subject: [PATCH] Keep guest publication fixtures on the private file seam Implement the exclusive temporary-descriptor seam on the monitoring metadata filesystem and assert its interface at compile time. The existing WriteFile barrier still proves metadata is persisted before new guest coordinates are published. This repairs the containing CI compilation failure without changing runtime code or weakening the barrier. Contract-Neutral: Adapt the guest publication test double to the reviewed FileSystem interface; no production behaviour or subsystem contract changes. Change-source: pulse-maintainer --- internal/monitoring/guest_poll_ownership_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/monitoring/guest_poll_ownership_test.go b/internal/monitoring/guest_poll_ownership_test.go index c5e4716aaa..8cfcc6ccec 100644 --- a/internal/monitoring/guest_poll_ownership_test.go +++ b/internal/monitoring/guest_poll_ownership_test.go @@ -23,9 +23,14 @@ type guestPublicationMetadataFS struct { once sync.Once } +var _ config.FileSystem = (*guestPublicationMetadataFS)(nil) + func (fs *guestPublicationMetadataFS) ReadFile(path string) ([]byte, error) { return os.ReadFile(path) } +func (fs *guestPublicationMetadataFS) CreateTemp(dir, pattern string) (config.TemporaryFile, error) { + return os.CreateTemp(dir, pattern) +} func (fs *guestPublicationMetadataFS) WriteFile(path string, data []byte, mode os.FileMode) error { if fs.blocked.Load() { fs.once.Do(func() { close(fs.entered) })