Skip to content

deploy.yml builds /tmp/charly/bin/charly and nothing consumes it — dead step, or an unstated "the pinned charly compiles" gate? #145

Closed

Description

@aitrawog

Problem

.github/workflows/deploy.yml builds /tmp/charly/bin/charly from the pinned checkout, and no
later step reads it
. Either it is dead weight in every deploy, or it is an implicit gate
("the pinned charly must compile") that is nowhere stated as such. R1 wants the question settled
before anyone touches it.

Evidence (from deploy.yml on main, read this session)

The steps, in order:

Step Produces Consumed by
:61-67 clone charly at the CI-time pin /tmp/charly :74, :89, :95
:69-72 setup-node — :130
:74-77 setup-go — (reads /tmp/charly/charly/go.mod + go.sum for the toolchain/cache key)
:79-82 build the charly binary /tmp/charly/bin/charly nothing
:84-87 build the plugin-docs CLI /tmp/plugin-docs-bin :95
:89-93 write the corpus wiring candy /tmp/charly/candy/docs-corpus/charly.yml :95
:95-105 regenerate src/content/docs :107
:107-118 drift gate — :130

grep -n 'bin/charly' .github/workflows/deploy.yml matches only the mkdir+-o of the build step
itself; the generate step invokes /tmp/plugin-docs-bin generate — not the charly binary.

The docs skill documents this as deliberate, which is what makes the leftover look like a leftover:

The deploy invokes generation DIRECTLY — /tmp/plugin-docs-bin generate --root <charly> --plugins <marketplace> --out <docs>/src/content/docs with the CLI binary built at the pinned
plugin tag — so the drift gate never depends on a local charly install or its
out-of-process word resolution.
(/charly-build:docs, "Deployment: the drift-proof recipe")

And the workflow's own header comment enumerates what it does (:6-19) without mentioning a charly
binary as an artifact or a gate.

The two readings, and why it matters

  1. Dead step. The direct-plugin-docs-bin invocation replaced an earlier charly docs generate
    call that did need the binary, and the build step was left behind. Then it costs a full charly
    go build on every docs deploy and PR for nothing.
  2. Implicit "the pinned charly compiles" gate. go build exits non-zero if the pinned commit
    does not compile, so the step would fail the job. That is a real assertion — but it is
    unstated, and a future reader removing it as obviously-unused would silently drop it.

Scope

Decide which reading is true, then act in one of two ways:

  • Dead: delete the step, and note in the header comment that generation runs the pinned
    plugin-docs CLI against the pinned charly source tree only (so the tree need not compile).
  • A gate: keep the build, rename the step to say what it asserts
    (Assert the pinned charly checkout compiles), and say so in the header comment.

Not this issue: the three pin bumps and the regeneration in flight (#136).

Filed from the session landing that cutover. Not claimed — reported, and it does not block #136.

Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)

Activity

  1. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    Fixed by #146 (head 9d9437a).

    This issue asked which reading was true — dead step, or an unstated "the pinned charly compiles"
    gate. The answer is dead: the step's output /tmp/charly/bin/charly has no consumer. Generation
    runs /tmp/plugin-docs-bin against the pinned charly source tree, and the docs skill states the
    drift gate "never depends on a local charly install". Nothing reads the binary.

    So R5 (delete legacy completely) applies, and the deletion lands in the PR that is already editing
    this file — not as a follow-up. That commit also corrects the workflow's own header comment, which
    had claimed the workflow builds a charly binary; it now says what it actually does.

    $ git show 9d9437a -- .github/workflows/deploy.yml | grep -E '^[-+].*(bin/charly|charly binary)'
    -#   2. builds the charly binary from that checkout and the standalone plugin-docs CLI
    +-#   2. builds the standalone plugin-docs CLI binary at the pinned plugin tag (generation
    -#      binary at the pinned plugin tag,
    +#      reads the pinned charly SOURCE TREE, so that checkout never has to compile),
    -      - name: Build the charly binary from the pinned checkout
    -          mkdir -p /tmp/charly/bin
    -          cd /tmp/charly/charly && go build -buildvcs=false -ldflags "-X main.BuildCalVer=docs-ci" -o /tmp/charly/bin/charly .
    

    grep -n 'bin/charly' .github/workflows/deploy.yml → no matches after the change. #146 carries
    Closes #145, so this closes when it merges.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)

  2. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED

    #146 is MERGED — merge commit 15bc0dfa3a4017e4189c14fe35ce9e648900fa83, tagged
    v2026.275.2224.

    This issue asked which reading was true. The answer is dead, and it was deleted in the PR that
    was already editing that file:

    $ gh api repos/opencharly/docs/contents/.github/workflows/deploy.yml?ref=15bc0df
      build-the-charly-binary step present? False
    

    The workflow's header comment was corrected in the same commit, so it no longer claims to build a
    charly binary it does not use (R5). And it is proven, not assumed: the reproduction that validated
    the cutover never built that binary and generation still returned GENERATE_EXIT=0 with
    DRIFT_GATE=PASS.

    The Closes #145 keyword did not auto-fire on the squash merge, so this is closed explicitly, with
    the merge linked.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)

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