Skip to content

docs(cloud capture): describe a bucket as one artifact, empty or not - #567

Merged
gsavage merged 2 commits into
mainfrom
cloud-capture-s3-bucket-is-the-artifact
Nov 26, 2026
Merged

gsavage merged 2 commits into
mainfrom
cloud-capture-s3-bucket-is-the-artifact

Conversation

@gsavage

@gsavage gsavage commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

When to merge

This describes behaviour from kosli-dev/cli#1410, which is not released. However S3 snapshots are not enabled for any customers, so it is safe to merge this now.

What

Updates the "What to expect" list under Capturing S3 buckets in
administration/cloud_capture/getting_started.md:

  • New: each bucket reports exactly one artifact, named after the bucket, including a bucket that
    holds a single object (previously named after the object).
  • New: an empty bucket is captured rather than failing, and reports the fingerprint of an empty
    directory (e3b0c442…b855).
  • Changed: a bucket where no object carries a SHA256 checksum is reported as an empty bucket, where
    the page said it "is reported as holding no artifact".

Why

Cloud Capture snapshots buckets with kosli snapshot s3, and kosli-dev/cli#1410 changes that
command's default behaviour as agreed in kosli-dev/cloud-capture#216.

Not included

client_reference/kosli_snapshot_s3.md still carries the old wording. That page is generated from
the CLI help text at release, so it is left for the release to regenerate.

🤖 Generated with Claude Code

The Kosli CLI is changing how `kosli snapshot s3` reports a bucket, and
Cloud Capture snapshots buckets through that command. An S3 snapshot
will always report exactly one artifact named after the bucket, where a
single-object bucket used to be named after the object. A bucket with
nothing to fingerprint, whether it is empty or none of its objects
carries a SHA256 checksum, will be reported with the fingerprint of an
empty directory instead of failing or reporting no artifact.

Update the "What to expect" list for S3 buckets to say so. This must
not be published before the CLI release that carries the change.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@mintlify

mintlify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
kosli 🟢 Ready View Preview Nov 26, 2026, 10:30 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@claude

claude Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @gsavage's task in 1m 7s —— View job


Follow-up review

  • Fetch previous review comments
  • Diff the new commits (BEFORE..AFTER)
  • Assess status of each previous finding
  • Check new commits for introduced bugs/regressions
  • Post summary comment

Previous findings — both resolved:

  1. Single-object bucket fingerprint/attest type (line 232) — Resolved. The bullet now reads "...so attest that file with --artifact-type file for the fingerprints to match," matching the suggested wording. Verified --artifact-type file is a real, documented option (client_reference/kosli_allow_artifact.md).
  2. Empty-bucket fingerprint also matches an empty file (line 233) — Resolved. The bullet now ends "It is also the fingerprint of an empty file, so an empty bucket matches any artifact attested from one," matching the suggested addition.

New issues in the touched lines: none. No new inline comments posted.

Review of the new S3 bullets raised two ways a reader could be
surprised by a match, or by the lack of one.

A single-object bucket now carries the bucket's name, which suggests it
is fingerprinted as a directory. It is still fingerprinted as the file,
so it only matches an artifact attested with `--artifact-type file`.
Say so where the naming is described.

The empty-bucket fingerprint is the SHA256 of no input, which is also
the fingerprint of any empty file. An empty bucket therefore matches an
artifact attested from an empty file, possibly in an unrelated flow.
State that so the match is expected rather than puzzling.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@gsavage
gsavage marked this pull request as ready for review November 26, 2026 10:33
@gsavage
gsavage requested a review from a team as a code owner November 26, 2026 10:33
@gsavage
gsavage merged commit 91f032f into main Nov 26, 2026
8 checks passed
@gsavage
gsavage deleted the cloud-capture-s3-bucket-is-the-artifact branch November 26, 2026 10:38

This branch was successfully deployed

1 active deployment
staging — b83024fc Deployed Nov 26, 2026 by mintlify[bot]
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.

2 participants