Repository navigation
docs(backend): "same version as the gateway image" was never checkable - #849
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
kubectl exec … officecli --versionagainst both running containers. Seventy-three releases apart, in one system, for the same file formats — this image renders.pptxfor the preview route; the gateway extracts.docx/.pptxforcommonly_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
officecliinstall blocks don't match — one pins a version and verifies against the release'sSHA256SUMS, the other pullslatestandchmod +x. They explicitly flagged which-image-is-which as unresolved.It resolves as ours / theirs:
#8 [3/10]backend/Dockerfile— singleFROM, so buildkit numbers steps[N/10]sha256sum -c#37 [stage-4 17/19]Dockerfile— 5FROMs, block guarded by theOPENCLAW_INSTALL_DOC_TOOLCHAINARGlatest, no checksumWe 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 inCLAUDE.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 --versionin each container).Comment-only; no build behaviour changes.
Not verified: whether 1.0.70 → 1.0.143 actually changes
.pptx/.docxoutput for the files we handle. The versions differ; whether the behaviour does is a separate question I did not test.🤖 Generated with Claude Code