Skip to content

Build & Test is red on main: the VSA module was deleted but two build targets still reference it #737

Description

@gHashTag

Build & Test has been failing on main since the refactor. The cause is not CI configuration — three source files cannot be loaded:

src/hybrid.zig:1:1: error: unable to load 'hybrid.zig': FileNotFound
src/vsa.zig:1:1:    error: unable to load 'vsa.zig':    FileNotFound
src/vsa_jit.zig:1:1: error: unable to load 'vsa_jit.zig': FileNotFound

What was measured

42490a222 "refactor: remove 4425 lines of migrated duplicates (#517)" deleted src/vsa.zig — a 130-line facade re-exporting vsa/common.zig, vsa/core.zig, vsa/encoding.zig, vsa/agent.zig, vsa/concurrency.zig, vsa/hrr.zig, vsa/storage.zig, vsa/tests.zig.

The whole src/vsa/ tree went with it — all eight targets are gone, and src/vsa.zig exists nowhere else in the tree, including the zig-golden-float submodule. build.zig:2377 already carries the note "VSA module … REMOVED", so the removal was intended.

Two references were left behind.

The two references are not equivalent

build.zig:188vsa_tests. Tests for a module that no longer exists. Nothing consumes it. Removing it is unambiguous.

build.zig:1150vsa_tri. This one has live consumers. Its own comment says:

// VSA module for TRI (moved up: needed by tvc_corpus_mod and fluent CLI)

So tvc_corpus_mod and the fluent CLI currently depend on a module whose source is gone. This is not a leftover — it is a live dependency that the refactor broke.

The decision this needs

Where should vsa_tri now come from? Deleting it removes whatever tvc_corpus and the fluent CLI use it for; pointing it at some other implementation risks linking a different VSA than the one those call sites were written against. external/zig-golden-float/src/ has vsa_jit.zig and src/ternary/hybrid.zig, but no vsa.zig.

That is a call for whoever performed the migration. I have deliberately not guessed it.

Separately fixed

The goto-bus/setup-zig 404 in two workflows — #736. Unrelated to this.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions