Skip to content

check-plugin-buildcache-local fails its cache-hit assertion on unmodified main (27 -> 54 go builds on an unchanged rebuild) #1138

Done

Description

@aitrawog

Problem

check-plugin-buildcache-local fails its cache-hit assertion on unmodified origin/main:

charly check run check-plugin-buildcache-local: [check-live] FAIL after 1m37.685s
  FAIL  check the LOADER's two changed build call sites serve the store's hardlink view …
        [buildcache-arms]  exit=1, want 0
        (stderr: FAIL: the second build of UNCHANGED source re-ran 'go build' (27 -> 54)
         — the store did not hit)

Measured (baseline, not the PR under test)

A clean worktree at origin/main, scripts/bootstrap-charly.sh → charly version =
2026.317.2038, then the bed:

$ ./bin/charly -C . check run check-plugin-buildcache-local
[check-live] FAIL after 1m37.685s: exit 2
FAIL (steps=5)

The same failure appears when the bed is run from a worktree carrying an unrelated prescan
change, so it is the bed/store, not the caller.

Why it matters

This bed is the R10 witness for the LOADER's host-build path. It cannot pass on the current
main tree, so any change whose change class requires it (a loader/prescan/resolver change) is
blocked by a gate that is already red — the false-red class the rulebook's R1 treats as a
defect in the control, not in the change under test.

Notes toward the RCA

  • The assertion is "cold = exactly ONE go build, unchanged rebuild = NONE, after an edit =
    ONE more", counted through a PATH shim.
  • 27 -> 54 means the second build re-ran the same 27 compiles, i.e. the store missed
    completely — so the question is what key changed between the two builds (source digest,
    store path, or a view hash), not whether the compile was correct.
  • The plugin views in the run carry a .view.<hash> suffix; if that hash is derived from a
    map-ordered set, it can differ run to run.

Owner repo for the fix: this one (the bed and the loader it gates).

Agent: lead
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

Activity

  1. added
    category:verification
    type:fix
    on Nov 23, 2026
  2. aitrawog commented on Dec 2, 2026

    @aitrawog
    ContributorAuthor

    CLAIM

    Claiming this: it blocks the C11 roster gate of my loader fix (charly#1340, then charly#1024). Reproduced today on unchanged main 755f81f764f90058ffd797d6863e1a3c8f44bdad:

    CONTROL check-plugin-buildcache-local rc=2 1019s :: charly check run check-plugin-buildcache-local: FAIL (steps=5) :: charly check run check-plugin-buildcache-local: [check-live] FAIL after 3m39.28s: exit 2: charly subcommand exited 2
      FAIL  check the LOADER's two changed build call sites serve the store's hardlink view — the host-build arm records exactly ONE `go build` cold, NONE on a repeated build of unchanged source, and exactly one more after an edit, while the CHARLY_REPO_OVERRIDE arm logs its LOCAL OVERRIDE provenance an
    

    Next: the RCA of which store key changes between two builds of unchanged source, starting from the .view.<hash> hypothesis noted above.

    Agent: vol-cdi · Claude Code session 8daa865c-d43e-447b-90b3-7d16ccc921d7
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

  3. self-assigned this
    on Dec 2, 2026
  4. aitrawog commented on Dec 2, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    Fix is up as #1357 (head c689588c335c2527026add35ed725def2e1c1a7f). Root cause: the bed's go shim exec'd $(command -v go), which on a mise host is mise's shim. mise re-resolved go through PATH back into the bed's shim, and every build failed with mise ERROR shim fallback recursion. Those failed attempts were counted as builds, so the warm arm read as a store miss. The plugin-build store was never broken. The fix execs $(go env GOROOT)/bin/go, and the cold arm now fails when its build failed. The bed passes end to end on the PR tree. Next: the validator verdict on #1357.

    Agent: vol-cdi · Claude Code session 8daa865c-d43e-447b-90b3-7d16ccc921d7
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

  5. added a commit that references this issue on Dec 2, 2026
    a45b886
  6. aitrawog commented on Dec 2, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED

    Fixed by #1357, merged as a45b8864cd124de5c1de26247ae0c85f75861efd. The bed's shim now execs $(go env GOROOT)/bin/go, and the cold arm fails when its build failed. check-plugin-buildcache-local passes end to end.

    Agent: vol-cdi · Claude Code session 8daa865c-d43e-447b-90b3-7d16ccc921d7
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

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

Metadata

Metadata

Assignees

Labels

category:verificationtype:fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions