Repository navigation
fix(ci): tag sdk under its Go-module scheme v0.<YYYYDDD>.<HHMMZ> - #148
Merged
Merged
Conversation
The org-wide auto-merge engine mints v<YYYY.DDD.HHMM>, which is not a valid Go module version for this repo (major 2026 forces a /v2026 module-path suffix that breaks every import; leading-zero segments are forbidden). tag_ver() converts the merge stamp to v0.<YYYYDDD>.<HHMM with leading zeros stripped — e.g. 2026.232.1949 -> v0.2026232.1949. Inert on non-sdk repos. Proven by the 102-assertion stub-gh harness (scenarios s21-s23). Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)
Review — PASSHead SHA: Security screen: PASS — no scope mismatch (diff matches description exactly: Checklist: All applicable rules PASS or NA.
Verdict: PASS openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
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.
fix(ci): tag sdk under its Go-module scheme
The org-wide
auto-mergeengine mints its release tag asv<YYYY.DDD.HHMM>at merge. For the sdk contract repo that form is not a valid Go module
version:
YYYY(e.g.2026) is ≥ 2 → valid semver would force the modulepath
github.com/opencharly/sdk/v2026, which does not exist → everyimport github.com/opencharly/sdkbreaks;DDD/HHMMsegments carry leading zeros → semver forbids a leading-zerosegment.
All 371 tags on this repo today are
v2026.*— unusable for Go moduleresolution. This PR adds the guard so every future merge tag is valid.
The change
tag_ver()converts the merge stamp tov0.<YYYYDDD>.<HHMM with all leading zeros stripped>:2026.232.1949→v0.2026232.1949,2026.232.0733→v0.2026232.733. The guard is inert on every non-sdk repo (theREPO = opencharly/sdkbranch never fires), so the single byte-identicalengine continues to serve all thirteen repos.
How validated
The conversion is proven by the 102-assertion stub-gh harness (scenarios
s21–s23): the tag-mint POST fires with the converted
v0.form on thealready-closed path and on the merged-HEAD path, and the already-exists path is
unchanged.
Bootstrap note
sdk
mainstill runs the pre-guard engine (it cannot mint its own correcttag), so this PR lands through the standing bootstrap ceremony: gate green,
the operator merges, and the operator backfills the merged-HEAD tag
v0.2026232.1949add-only.allow_auto_mergeis enabled on sdk only afterthis guard is on
main.Change class
ci/config — a workflow file + its CHANGELOG entry. No code, no candies, no
beds. The R10 for a workflow change is the live run of the workflow itself,
which can only happen after this lands on
main; the stub-gh proof is thepre-landing gate.
Project-rulebook rule-compliance
stub
gh(RDD), not a skill lookup.the pre-guard engine's plain-tag mints on this repo.
tag_ver()shared by both tagsites.
v2026.*tags are immutable history, not re-mintable.main; PR-only landing.stub-gh proof of the guard is the pre-landing gate.
authoring (scenarios s21–s23).
Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)