Skip to content

fix(ci): tag sdk under its Go-module scheme v0.<YYYYDDD>.<HHMMZ> - #148

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/sdk-tag-scheme-guard
Aug 20, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/sdk-tag-scheme-guard

Conversation

@atrawog

@atrawog atrawog commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

fix(ci): tag sdk under its Go-module scheme

The org-wide auto-merge engine mints its release tag as v<YYYY.DDD.HHMM>
at merge. For the sdk contract repo that form is not a valid Go module
version
:

  • the major YYYY (e.g. 2026) is ≥ 2 → valid semver would force the module
    path github.com/opencharly/sdk/v2026, which does not exist → every
    import github.com/opencharly/sdk breaks;
  • the DDD/HHMM segments carry leading zeros → semver forbids a leading-zero
    segment.

All 371 tags on this repo today are v2026.* — unusable for Go module
resolution. This PR adds the guard so every future merge tag is valid.

The change

tag_ver() converts the merge stamp to v0.<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 (the
REPO = opencharly/sdk branch never fires), so the single byte-identical
engine 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 the
already-closed path and on the merged-HEAD path, and the already-exists path is
unchanged.

Bootstrap note

sdk main still runs the pre-guard engine (it cannot mint its own correct
tag), so this PR lands through the standing bootstrap ceremony: gate green,
the operator merges, and the operator backfills the merged-HEAD tag
v0.2026232.1949 add-only. allow_auto_merge is enabled on sdk only after
this 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 the
pre-landing gate.

Project-rulebook rule-compliance

  • R0 — N/A: no skill-owned surface; the conversion was validated against a
    stub gh (RDD), not a skill lookup.
  • R1 — the tag-scheme defect was RCA'd from the Go-module requirement and
    the pre-guard engine's plain-tag mints on this repo.
  • R2 — the guard is the complete fix; nothing deferred.
  • R3 — one engine, the guard is a single tag_ver() shared by both tag
    sites.
  • R4 — no workarounds; the conversion is deterministic string logic.
  • R5 — the old scheme is fully removed from the engine; the historic
    v2026.* tags are immutable history, not re-mintable.
  • R6 — no force-push, no direct push to main; PR-only landing.
  • R7/R8/R9 — N/A: no runtime artifacts, no emitted Containerfiles, no binary.
  • R10 — the live run of the workflow is the gate (post-landing); the
    stub-gh proof of the guard is the pre-landing gate.
  • RDD — the sdk conversion was proven against the stub harness before
    authoring (scenarios s21–s23).
  • ADE/SDD — N/A.

Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)

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)
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 1b76e6dea976 (branch: fix/ci-sdk-tag-scheme)

Security screen: PASS — no scope mismatch (diff matches description exactly: tag_ver() added and wired into both tag sites), no secrets/exfiltration, no weakened guardrails, no new deps. No embedded directives aimed at the validator.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3 — Body complete, change-class (ci/config) matches gate; self-install proof situation (the change IS the auto-merge engine it gates, live run unobservable pre-landing) handled via the standing bootstrap ceremony + static verification of the mechanism. Attribution tier analysed on a live system is not inflated.
  • B19 — CHANGELOG/2026.232.1949.md present; filename matches ^\d{4}\.\d{3}\.\d{4}\.md$; H1 # 2026.232.1949 — the sdk tag-scheme guard byte-matches the CalVer. Placeholder rename is non-blocking per rule.
  • Mechanism verified statically — tag_ver() correctly converts 2026.232.1949 → v0.2026232.1949 and 2026.232.0733 → v0.2026232.733; the YYYYDDD concatenation absorbs the %j leading zero, and the 4×#0 strip handles 0000→0, so the output is always valid semver (major 0, no leading-zero segments). Inert on non-sdk repos. R3 (single shared function), R5 (old scheme removed), R2 (complete fix, nothing deferred) all satisfied.
  • B16 — placement correct: tag minting belongs in the auto-merge workflow; no core/sdk/candy surface touched.

Verdict: PASS


openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action.

View action run

@github-actions
github-actions Bot merged commit b2da101 into main Aug 20, 2026
1 check passed
@aitrawog
aitrawog deleted the feat/sdk-tag-scheme-guard branch September 25, 2026 19:08
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