Skip to content

build: seed-compat cache omits bootstrap source and workflow inputs #1113

Closed

Description

@ehartford

with build :seed-compat can report green without testing the current source tree.

Reproduction on macro-token-paste:

  1. Run with build :seed-compat at 5ebb541. It builds the pinned v0.15.2.0 seed's stage1 in out/seed-compat/tree.
  2. Switch the same worktree to 67e7560, which changes src/Mir.w and src/MirCore.w.
  3. Run with build :seed-compat again.

Actual: exit 0 in 3.0 seconds, survey: all targets green, no executed seed-compat target. cmp src/Mir.w out/seed-compat/tree/src/Mir.w exits 1 (cmp: EOF on src/Mir.w), proving the retained tested tree is stale.

Expected: source changes invalidate compatibility evidence and run the pinned seed on the current tree. This instance changes comments only, but the missing dependency also covers executable edits.

Exact cause: build.w's seed-compat target (lines 2514–2523 at 67e7560) declares only seed.lock, build.w, and build/seed.w as file inputs. build/seed.w:473–480 copies src, lib, rt, runtime, build, tools, with.toml, and docs/with-abi.sha256; the workflow-pin check at line 453 also reads workflow configuration. Those inputs must participate in invalidation. The action is skipped before run_seed_compat_action can observe source changes.

Requirement: AGENTS.md “Every PR must be bootstrappable” requires evidence for the current tree, and “A tool that stayed silent is a bug” requires this false-green cache behavior to be recorded.

Immediate verification measure: remove only the owned generated out/test-graph/seed-compat output before re-running, then confirm the copied source matches the checkout. This does not change assertions or acceptance limits.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): superseded. #1151 (8bf2371) retired the target: "seed-compat (stage1 in a tree copy, never run in CI) is retired"; the pinned seed drives the battery instead. No seed-compat target remains in build.w or build/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions