Skip to content

docs(backend): "same version as the gateway image" was never checkable - #849

Merged
lilyshen0722 merged 1 commit into
mainfrom
fix/officecli-version-claim
Aug 5, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
fix/officecli-version-claim

Conversation

@lilyshen0722

@lilyshen0722 lilyshen0722 commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Implements item 2 of #846. The finding — floating latest in the gateway, the false "same version" claim, and the 73-release gap — was established by @sprint-review in the pod (52725, 52728) and filed as #846 at 20:06:55Z, before I re-derived it independently at 20:22. I did not know that when I opened this; my framing of it as my discovery was wrong. What this PR adds is the code change #846 deferred as "a diversion from the finish line" — item 1 (upstream pinning) is still open there.


The comment on our pinned OfficeCLI block claimed "Same upstream + version as the gateway image." Same upstream holds. Same version does not — and structurally could not, because the gateway doesn't pin.

Measured, not inferred

backend  (this file, pinned)     1.0.70
gateway  (openclaw, `latest`)    1.0.143     ← upstream latest, published 2026-07-28

kubectl exec … officecli --version against both running containers. Seventy-three releases apart, in one system, for the same file formats — this image renders .pptx for the preview route; the gateway extracts .docx/.pptx for commonly_read_attachment.

openclaw's Dockerfile pulls releases/latest/download/${asset} with no version and no checksum, so "same version" was true at most on the day it was written and drifts every time upstream publishes.

Provenance

@sprint-review noticed, reading a single deploy log, that the two officecli install blocks don't match — one pins a version and verifies against the release's SHA256SUMS, the other pulls latest and chmod +x. They explicitly flagged which-image-is-which as unresolved.

It resolves as ours / theirs:

build log file shape
#8 [3/10] backend/Dockerfile — single FROM, so buildkit numbers steps [N/10] pinned + sha256sum -c
#37 [stage-4 17/19] openclaw's Dockerfile — 5 FROMs, block guarded by the OPENCLAW_INSTALL_DOC_TOOLCHAIN ARG latest, no checksum

We hardened ours in #306 ("so a future upstream artifact swap fails the build instead of silently shipping") and the hardening was never carried upstream — which is also why the comment could assert sameness without anyone noticing it had stopped being true.

What this PR does not do

Not bumping to 1.0.143. The pin is doing its job; matching a floating target once just restarts the drift. The real fix is pinning + checksum in openclaw's Dockerfile, which needs a PR there plus a submodule bump, so it inherits the lineage problem documented in CLAUDE.md. Worth an upstream issue once tonight's chain lands — @sprint-review's call, and I agree it shouldn't divert now.

Until then the divergence is recorded as a measured fact rather than a claim of sameness, with the check named (officecli --version in each container).

Comment-only; no build behaviour changes.

Not verified: whether 1.0.70 → 1.0.143 actually changes .pptx/.docx output for the files we handle. The versions differ; whether the behaviour does is a separate question I did not test.

🤖 Generated with Claude Code

The comment on the pinned OfficeCLI block claimed "Same upstream + version as
the gateway image." Same upstream holds. Same version does not, and could not:
the gateway does not pin. openclaw's Dockerfile pulls
`releases/latest/download/${asset}` with no version and no checksum, so
"same version" was true at most on the day it was written.

Measured against both running containers rather than inferred:

  backend  (pinned)             1.0.70
  gateway  (openclaw, latest)   1.0.143    ← upstream latest, published 07-28

Seventy-three releases apart, in one system, for the same file formats — this
image renders .pptx for the preview route, the gateway extracts .docx/.pptx
for commonly_read_attachment.

Found by chasing @sprint-review's observation that the two officecli install
blocks in one deploy log differ: one pins and verifies a SHA256, the other
does not. They flagged which-image-is-which as unresolved. It resolves as
ours/theirs: `#8 [3/10]` is this file (single FROM), `#37 [stage-4 17/19]` is
openclaw's (5 FROMs, guarded by the DOC_TOOLCHAIN ARG). We hardened ours in
#306 and the hardening was never carried upstream.

Not bumping to 1.0.143. The pin is doing its job, and matching a floating
target once just restarts the drift. The real fix is pinning + checksum in
openclaw's Dockerfile, which needs a PR there plus a submodule bump and so
inherits the lineage problem. Until then the divergence is recorded as a
measured fact instead of a claim of sameness, and `officecli --version` in
each container is the check.

Comment-only; no build behaviour changes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@lilyshen0722
lilyshen0722 merged commit 1e7be85 into main Aug 5, 2026
12 checks passed
@lilyshen0722
lilyshen0722 deleted the fix/officecli-version-claim branch August 5, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant