Skip to content

Document delta mode with tags in the README - #3

Merged
davemoore- merged 1 commit into
elastic:mainfrom
simianhacker:readme-delta-tag-docs
Aug 26, 2026
Merged

Document delta mode with tags in the README#3
davemoore- merged 1 commit into
elastic:mainfrom
simianhacker:readme-delta-tag-docs

Conversation

@simianhacker

@simianhacker simianhacker commented Aug 26, 2026

Copy link
Copy Markdown
Member

What

Documents how mode: delta behaves for tags, and corrects stale prose in the same README
section.

New "Delta mode with tags" subsection explains that a delta tag source is a moving stream whose identity is the match pattern (not a single tag name): each run resolves the newest matching tag by tag-creation date and keeps only that latest tag queryable. Worked examples cover a force-updated promotion tag (deploy@*), the multi-release-line pitfall where "newest by date" flips between trains (Kibana 9.5/9.4/8.19), pinning to one line with a glob (v9.5.*), and the snapshot + retain alternative for keeping every release.

For Kibana style repos, you need to be aware when creating a matcher for tags while using delta. Do not use v{major}.{minor}.{patch}.

Also fixes three stale claims left in the section by the delta feature's later design changes:

  • content tools expose git_commit / git_ref / git_ref_type (not a single git_commit_ish)
  • delta content docs carry git.ref_pattern (not git.ref)
  • removes the obsolete "pre-ref_key backfill" paragraph — --no-backfill and the backfill
    path no longer exist in the code

How to Verify

  1. Read the new subsection under Snapshot vs. delta indexing in README.md.
  2. Every YAML match pattern shown compiles under src/sourcerer/version.py
    (deploy@*, v9.5.*, v{major}.{minor}.{patch}); the invalid placeholder-only forms
    (v9.5.{patch}, deploy@{build}) are intentionally avoided.
  3. grep -rn "git_commit_ish\|no-backfill\|backfill" README.md src/ returns nothing.

Notes

  • Docs-only change; no code touched.
  • The stale git_commit_ish wording also survives in
    src/sourcerer/skills/ref-resolution/SKILL.md — out of scope here, worth a follow-up.

Add a 'Delta mode with tags' subsection explaining that a delta tag
source is a moving stream keyed on the match pattern, resolves the
newest matching tag by tag-creation date, and keeps only the latest
tag queryable. Includes worked examples: a force-updated promotion
tag, the multi-release-line pitfall where 'newest by date' flips
between trains, pinning to a single line with a glob, and the snapshot
+ retain alternative for keeping every release.

Also correct stale prose in the same section: the content tools expose
git_commit / git_ref / git_ref_type (not a single git_commit_ish);
delta content docs carry git.ref_pattern (not git.ref); and remove the
obsolete pre-ref_key backfill paragraph (--no-backfill no longer
exists).
@simianhacker
simianhacker marked this pull request as ready for review August 26, 2026 00:26

@davemoore- davemoore- left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find, this was definitely worth calling out explicitly

@davemoore-
davemoore- merged commit 1f12be3 into elastic:main Aug 26, 2026
2 checks passed
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