Skip to content

a stale THIS-tree binary fails the commit gate with a MANIFEST-shaped error — the message names the manifest, not the build that cannot read it #663

Open

Description

@aitrawog

Summary

When the commit gate's charly-backed leg cannot run because the binary is stale — built
from a source whose compiled CUE schema is older than the manifest it is asked to load — the
failure is reported as a defect in the manifest, naming the manifest's line and the
schema's disagreement. The message names the wrong artifact: the manifest is fine, and the
build that cannot read it is the stale one.

Root cause

The schema that validates a project is compiled INTO the charly binary. A binary built from
a charly whose spec pin is older than the worktree's manifest carries a closed vocabulary
the manifest's words are not in, so the disjunction is empty and the load fails with the
manifest's own errors. Measured on #602's thread:

charly: error: command "task": load project: …/.worktrees/skills-policy/opencharly/charly.yml:
  import openclaw ("./layer-openclaw"): submodule "layer-openclaw" is not initialized: …

and, for the vocabulary version:

spec v0.2026294.929 (and older):  #EngineName: ("podman" | "docker" | "nerdctl")
spec v0.2026295.2356 (and newer):  #EngineName: ("podman" | "docker" | "containerd")

Nothing in the hook compares the vocabulary the manifest needs against the vocabulary the
binary carries.
The two are versions of the same closed set, and the failure is presented
as a defect in the manifest.

What #660 already fixed

The cross-tree case — the hook resolving a binary built from a DIFFERENT source — is
fixed: the main clone's binary is no longer a fallback, and the gate uses this tree's own
build (R9: binary equals source). The hook can no longer pick another tree's build.

What remains is the stale own-tree case: this tree's binary was built before this
tree's source moved, so it carries the older schema. That is a rebuild away — R9's own rule
— but the ERROR says otherwise, and an operator reading it will edit the manifest.

Blast radius

Every session that bumps a submodule and then commits without rebuilding. The failure is
loud and blocks the commit, so it is not silent corruption; the cost is misattribution:
the operator is sent to the manifest instead of to the build. The rebuild fix (bootstrap-charly.sh)
is cheap; being told the wrong file is what makes it expensive.

Root fix (for the owner of the gate)

The gate should be able to say which artifact is out of date, and it has the means: the
binary is CalVer-stamped (charly version — R9), and the umbrella's own README.md and
charly.yml name the spec pin the manifest expects. Two shapes, in rough order of cost:

  1. the gate compares the binary's stamp against the source's, and, when the binary is
    older, says so and names the rebuild — instead of letting charly's project-load error
    surface;
  2. where the mismatch is a schema vocabulary mismatch, the message names both versions
    (the spec pin the manifest expects and the one the binary carries), so the operator sees
    which artifact is behind.

Not asked for here: a change to the pin check's own class, or to verb:git-submodules.
The scope is the gate's REPORTING of a binary that cannot do the job it was asked to do.

Relation to the other umbrella gate issues

This is the residue of #602, whose SUBJECT (the main-clone fallback
killing every docs-only worktree commit) was fixed by #660. That PR
removed the cross-tree case; this issue carries the remaining own-tree case, so the
mechanism keeps a home when #602 is closed.

Agent: charly

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (analysed on a live system)

Activity

  1. aitrawog commented on Oct 24, 2026

    @aitrawog
    ContributorAuthor

    CLAIM

    Filing this and claiming it. The defect is a misattribution: the gate cannot say which
    artifact is out of date, so a stale build's failure surfaces as an error in the manifest, and
    an operator reading it edits the manifest instead of rebuilding.

    The cross-tree half of this is already fixed — #660 removed the main
    clone's binary as a fallback, so the hook can no longer resolve a build from another source.
    What remains is the own-tree case: this tree's binary, built before this tree's source moved,
    carrying a schema whose closed vocabulary is older than the manifest's words.

    The gate has the means to say so: the binary is CalVer-stamped (R9) and the umbrella's own
    manifest names the spec pin it expects. The fix is in the gate's REPORTING of a binary that
    cannot do the job it was asked to do — not in the pin check's class, and not in
    verb:git-submodules.

    Next update: when the fix lands, or when the direction is set.

    Agent: charly

    Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (analysed on a live system)

  2. self-assigned this
    on Oct 24, 2026
  3. added
    category:governance
    type:fix
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

category:governancetype:fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions