Skip to content

fix(ci): stamp the release binary with the release tag's CalVer - #283

Merged
atrawog merged 5 commits into
mainfrom
feat/release-binary-tag-calver
Aug 15, 2026
Merged

atrawog merged 5 commits into
mainfrom
feat/release-binary-tag-calver

Conversation

@atrawog

@atrawog atrawog commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes

The release-binary workflow stamped the binary with the HEAD commit's date (calver.sh). The pr-validator computes the tag name just before the squash merge, so a merge that crosses a minute boundary leaves the commit dated tag+1min — and every binary built from it reports a version that matches no release (observed: v2026.227.1256's binary reports 2026.227.1257). The distro repos' install-test asserts charly version == the packaged version, so a binary from release v must report X.

  • .github/workflows/release-binary.yml: on a tag push, stamp from the tag name (CALVER=${GITHUB_REF_NAME#v}); on workflow_dispatch, keep the calver.sh (HEAD commit date) fallback. The three inline CALVER=$(bash scripts/calver.sh) invocations (build amd64, build arm64, verify) are consolidated into one Compute the CalVer step that sets the CALVER env var once. Header comment updated to explain the rationale.
  • CHANGELOG/2026.227.1300.md: staged (placeholder CalVer — the pr-validator finalizes it at merge).

Change class

hook/workflow (CI workflow script)

How R10-tested — exact gate, commands, and pasted output

  • The gate for this change class: the workflow-scripts gate — the changed shell logic executed live locally and re-run by the fresh pr-validator; the full tag-push run is exercised on the next release (the changed branch cannot run live until a v* tag push fires the workflow).
  • Eval beds run: N/A — no disposable bed applies to a CI workflow-script change; the gate is the live local execution of the changed shell logic.
  • Fresh rebuild: N/A — no binary is rebuilt by this change; the workflow's own build steps are unchanged (only the CalVer source changes).
  • Did the CHANGED code path execute live? The workflow_dispatch path (calver.sh fallback) is unchanged behavior. The tag path (GITHUB_REF_TYPE=tag → CALVER=${GITHUB_REF_NAME#v}) was executed locally with the observed tag values; it runs live on the next release. This caps the tier at analysed on a live system.
  • Concurrency: N/A — no shared-state path touched.
# Both paths verified locally (the exact branch logic):
$ GITHUB_REF_TYPE=tag GITHUB_REF_NAME=v2026.227.1256 bash -c 'echo "CALVER=${GITHUB_REF_NAME#v}"'
CALVER=2026.227.1256
$ GITHUB_REF_TYPE=branch bash -c 'echo "CALVER=$(bash scripts/calver.sh)"'
CALVER=2026.227.1257   # the HEAD commit date — the unchanged workflow_dispatch fallback

# The observed skew this fixes (v2026.227.1256's binary reports 1257):
#   tag object 2026.227.1256, merged commit 28cc0898 dated 12:57:19Z (1257)

Attribution tier

analysed on a live system — the changed shell logic executed live locally and was re-run by the fresh pr-validator; the tag-push path runs live on the next release (the honest ceiling for a workflow change whose trigger is a future tag).

Harness rulebook compliance — state HOW each is satisfied (or N/A — <reason>)

  • R0 skills: /charly-internals:git-workflow (PR-only landing, CalVer-at-merge) + /charly-check:check (R10 gate by change class) loaded before the change.
  • R1 RCA + zero warnings: the skew was root-caused (pr-validator computes the tag name just before the squash merge; a minute-boundary crossing leaves the commit dated tag+1min — verified via the GitHub API: tag object 2026.227.1256, commit 28cc089 dated 12:57:19Z). No warnings in the gate output.
  • R2 no out-of-scope: the fix is minimal and focused on the CalVer source; no other issue surfaced during this cutover.
  • R3 no duplication: consolidates 3 identical CALVER=$(bash scripts/calver.sh) invocations into 1 Compute the CalVer step.
  • R4 no workaround: no sleep/retry/magic-number; the fix addresses the root cause (stamp from the tag, not the commit date).
  • R5 hard cutover + grep: no transitional/dual-mode path — the tag path is the new behavior, the dispatch path is the unchanged fallback.
  • R6 git safety: N/A — no destructive git action.
  • R7 runtime gate: N/A — no runtime-affecting code change; the workflow's build steps are unchanged.
  • R8 artifact invariants: N/A — no generation change.
  • R9 binary == source + deps: N/A — no binary rebuilt by this change.
  • R10 disposable + coverage: the workflow-scripts gate (shell logic executed live locally, re-run by the validator); no disposable bed applies to a CI workflow-script change.
  • RDD / ADE / SDD: N/A — no candies/schemas/Go.
  • Hard cutover: one atomic commit on the branch (plus the CHANGELOG staging commit).
  • Kernel/plugin boundary law: N/A — no core/sdk change.
  • Disposable-only autonomy: N/A — no destroy/rebuild.
  • Clean architecture + Go gates: N/A — no Go changes.
  • CHANGELOG: CHANGELOG/2026.227.1300.md staged (placeholder CalVer — the pr-validator finalizes it).

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

The release-binary workflow stamped the binary with the HEAD commit's date
(calver.sh). The pr-validator computes the tag name just before the squash
merge, so a merge that crosses a minute boundary leaves the commit dated
tag+1min — and every binary built from it reports a version that matches no
release (observed: v2026.227.1256's binary reports 2026.227.1257).

The distro repos' install-test asserts `charly version` == the packaged
version, so a binary from release v<X> must report X. On a tag push the
workflow now stamps from the tag name; workflow_dispatch keeps the calver.sh
fallback.

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

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Change class: hook/workflow (CI workflow script — .github/workflows/release-binary.yml)

Head SHA validated: 49c5ffec842e294a929b63dc3650a56386b697a1

The change itself is correct and minimal — I verified it independently. The FAIL is on the PR's evidence discipline, not the code.

What I verified (and confirmed correct)

  • YAML validity: the workflow parses cleanly; the on: triggers (push: tags: 'v*' + workflow_dispatch) and the new "Compute the CalVer" step are structurally sound.
  • Shell logic (re-run myself):
    • tag path: GITHUB_REF_TYPE=tag GITHUB_REF_NAME=v2026.227.1256 → CALVER=2026.227.1256 ✅
    • dispatch path: GITHUB_REF_TYPE=branch → CALVER=2026.227.1340 (calver.sh HEAD-commit date) ✅ — matches bash scripts/calver.sh directly.
    • GITHUB_REF_TYPE is tag only on a tag push (the sole push trigger is tags: 'v*'), so ${GITHUB_REF_NAME#v} is always safe; workflow_dispatch takes the else branch. The $GITHUB_ENV value is available to all subsequent steps, including the verify step.
  • Minimality: 1 file, 15 insertions / 3 deletions; the three duplicated CALVER=$(bash scripts/calver.sh) invocations are consolidated into one step (R3-positive). No unrelated edits, no secrets, no supply-chain or guardrail changes (T3 clean).
  • Attribution ceiling: the changed tag-push branch has not run live in the actual workflow, so the ceiling is analysed on a live system — the author claimed exactly that, not inflated. The trailer identity (Claude Code deepseek-v4-flash:0731-cloud) matches the authoring runtime.
  • Cross-PR sweep: open PRs fix(sdk): namespace-aware box collectors — every imported box had no EXPOSE and no baked plan #282, chore(spec): bump spec to the temp-sweep $TMPDIR fix #281, fix(cli): make charly box feature run reachable — it never once dispatched #280, fix(check): the build-scope verdict verbs certify the artifact you built #278 touch CHANGELOG/gitlinks/Go code — none touch .github/workflows/release-binary.yml. No interaction.

Checklist

# Item Verdict
0 security & anti-tampering (T1–T4) PASS — no exfiltration / scope-mismatch / weakened-gate / supply-chain finding; no attempt to manipulate
1 description complete (template filled, pasted evidence, Assisted-by: footer) FAIL — see below
2 change-class gate matches evidence PASS (at the capped tier) — workflow-scripts gate; shell logic executed live locally; full tag-push run pending a release
3 attribution tier justified PASS — analysed on a live system is the honest ceiling, not inflated
4 R0 skills honored PASS — git-workflow + check (R10 gate) loaded; no Go/candy/schema surface touched
5 R1 RCA / zero warnings PASS — no failures/warnings in evidence; the change is a fix with a clear RCA (minute-boundary)
6 R2 no out-of-scope split PASS — minimal and focused
7 R3 no duplication PASS — consolidates 3 calver.sh invocations into 1
8 R4 no workaround PASS
9 R5 hard cutover + grep PASS — no transitional/dual-mode path
10 R6/R8/R9 artifact integrity N/A — no destructive git action, no generation change, no binary rebuild in this change
11 R10 disposable/fresh/coverage PASS (at the capped tier) — shell logic executed live locally and re-run by me; tier honestly capped
12 RDD / ADE / SDD N/A — no candies/schemas/Go
13 concurrency mandate + anti-cheat N/A — no shared-state path touched
14 hard cutover — one atomic commit PASS — single commit on the branch
15 ARCHITECTURE GATE N/A — no charly/*.go changes; placement N/A; per-item trace: no staged charly/*.go
16 disposable-only autonomy N/A
17 clean architecture + Go gates N/A — no Go changes
18 CHANGELOG present FAIL — see below

Blocking findings

1. PR body is incomplete per the org-wide template (item 1). The body does not follow opencharly/.github/.github/PULL_REQUEST_TEMPLATE.md. Missing:

  • a Change class section (the class is never named);
  • a How R10-tested block — the exact change-class gate is not named, no output is pasted, no fresh-rebuild/R9 confirmation, and the "did the changed code path execute live?" answer is only implied;
  • an Attribution tier section justifying the tier;
  • the per-rule compliance section (R0–R10 + pillars) with a one-line HOW per applicable rule.

The Verification section's third bullet — "The tag path is exercised on the next release" — is a promise of future work, which the template explicitly forbids in place of pasted evidence. The local shell-verification output should be pasted verbatim (it is real — I re-ran it and it holds), not described.

2. CHANGELOG entry absent (item 18). A runtime-tier (workflow) change must stage a CHANGELOG/<CalVer>.md entry (placeholder CalVer is fine — the validator finalizes it at merge). Precedent in this repo: the release-binary workflow addition (58483b51) staged CHANGELOG/2026.225.1521.md, and the release-packages.yml removal (29c5140e) staged CHANGELOG/2026.226.1608.md. PR #283 stages none.

Comments considered

None — the PR carries no comments or reviews.

Cross-PR interactions considered

Decision

FAIL — not merged. The change is technically sound (YAML valid, shell logic correct on both paths, minimal, honest tier), but the PR does not meet the evidence bar:

  1. Fill the PR template: name the change class, paste the local shell-verification output, state explicitly that the changed tag-push path did not run live (which caps the tier at analysed on a live system), and answer the applicable rules with a one-line HOW.
  2. Stage a placeholder CHANGELOG/<CalVer>.md entry describing the fix.

Re-push and the validator re-runs.

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

Placeholder CalVer — the pr-validator finalizes it at merge.

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

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Change class: hook/workflow (CI workflow script — .github/workflows/release-binary.yml)

Head SHA validated: 47f99ae25872a6ef63d2d738b8b850f99340d256

The change itself is correct and minimal — I verified it independently. The FAIL is on the CHANGELOG staging, which collides with an existing release on main and makes the PR unmergeable.

What I verified (and confirmed correct)

  • YAML validity: the workflow parses cleanly; the on: triggers (push: tags: 'v*' + workflow_dispatch) and the new "Compute the CalVer" step are structurally sound. bash -n on the step's run block passes.
  • Shell logic (re-run myself, both paths):
    • tag path: GITHUB_REF_TYPE=tag GITHUB_REF_NAME=v2026.227.1256 → CALVER=2026.227.1256 ✅
    • dispatch path: GITHUB_REF_TYPE=branch → CALVER=2026.227.1348 (calver.sh HEAD-commit date) ✅
    • GITHUB_REF_TYPE is tag only on a tag push (the sole push trigger is tags: 'v*'), so ${GITHUB_REF_NAME#v} is always safe; workflow_dispatch from a branch takes the else branch. The $GITHUB_ENV value is available to all subsequent steps, including the verify step.
  • Minimality: 2 files, 22 insertions / 3 deletions; the three duplicated CALVER=$(bash scripts/calver.sh) invocations are consolidated into one step (R3-positive). No unrelated edits, no secrets, no supply-chain or guardrail changes (T3 clean).
  • PR body: follows the org-wide template — Summary of changes, Change class, How R10-tested with pasted output, Attribution tier, per-rule compliance section, and the Assisted-by: footer in the exact required form. The two findings from the previous FAIL round (body incomplete, CHANGELOG absent) are both addressed.
  • Attribution ceiling: the changed tag-push branch has not run live in the actual workflow, so the ceiling is analysed on a live system — the author claimed exactly that, not inflated. The trailer identity (Claude Code deepseek-v4-flash:0731-cloud) matches the authoring runtime.
  • Cross-PR sweep: open PRs fix(sdk): namespace-aware box collectors — every imported box had no EXPOSE and no baked plan #282, chore(spec): bump spec to the temp-sweep $TMPDIR fix #281, fix(cli): make charly box feature run reachable — it never once dispatched #280, fix(check): the build-scope verdict verbs certify the artifact you built #278 touch sdk/spec/CHANGELOG/Go — none touch .github/workflows/release-binary.yml or this CHANGELOG filename. No interaction.

Checklist

# Item Verdict
0 security & anti-tampering (T1–T4) PASS — no exfiltration / scope-mismatch / weakened-gate / supply-chain finding; no attempt to manipulate
1 description complete (template filled, pasted evidence, Assisted-by: footer) PASS — all template sections filled with evidence; footer present in exact form
2 change-class gate matches evidence PASS (at the capped tier) — workflow-scripts gate; shell logic executed live locally and re-run by me; full tag-push run pending a release
3 attribution tier justified PASS — analysed on a live system is the honest ceiling, not inflated
4 R0 skills honored PASS — git-workflow + check (R10 gate) loaded; no Go/candy/schema surface touched
5 R1 RCA / zero warnings PASS — the skew was root-caused (minute-boundary crossing); no warnings in evidence
6 R2 no out-of-scope split PASS — minimal and focused
7 R3 no duplication PASS — consolidates 3 calver.sh invocations into 1
8 R4 no workaround PASS
9 R5 hard cutover + grep PASS — no transitional/dual-mode path
10 R6/R8/R9 artifact integrity N/A — no destructive git action, no generation change, no binary rebuild in this change
11 R10 disposable/fresh/coverage PASS (at the capped tier) — shell logic executed live locally and re-run by me; tier honestly capped
12 RDD / ADE / SDD N/A — no candies/schemas/Go
13 concurrency mandate + anti-cheat N/A — no shared-state path touched
14 hard cutover — one atomic commit PASS — squash lands one commit on main; the feat branch's fix + CHANGELOG-staging commits are normal review-round accumulation
15 ARCHITECTURE GATE N/A — no charly/*.go changes; placement N/A; per-item trace: no staged charly/*.go
16 disposable-only autonomy N/A
17 clean architecture + Go gates N/A — no Go changes
18 CHANGELOG present FAIL — see below

Blocking finding

1. CHANGELOG placeholder CalVer collides with an existing release on main (item 18 strict CalVer check). The staged CHANGELOG/2026.227.1256.md uses the placeholder CalVer 2026.227.1256, which already exists on main as BOTH:

  • CHANGELOG/2026.227.1256.md — the landed entry for the v2026.227.1256 release ("codify the candy-prose docs coupling", merged at 28cc0898), and
  • tag v2026.227.1256 — pointing at 28cc0898, the current main HEAD.

The strict CalVer check requires the placeholder CalVer to NOT already exist as a CHANGELOG/*.md or v* tag on main. This is a hard FAIL.

2. The PR is CONFLICTING (unmergeable). mergeStateStatus: DIRTY, mergeable: CONFLICTING. The PR's merge base (565e504f) predates the v2026.227.1256 release, so the PR adds CHANGELOG/2026.227.1256.md as a new file while main already has a file of that name with different content — an add/add conflict. The squash merge cannot proceed, and gh pr update-branch would also conflict on the same file.

Comments considered

  • Previous validator FAIL verdict (atrawog, prior validator run) — raised two findings: (1) PR body incomplete per the org-wide template, (2) CHANGELOG entry absent. Both are now addressed by the author. Disposition: verified-non-blocking (addressed). The new CHANGELOG introduces a NEW issue (placeholder collision) found independently by this run.

Cross-PR interactions considered

Decision

FAIL — not merged. The change is technically sound (YAML valid, shell logic correct on both paths, minimal, honest tier, complete PR body), but the CHANGELOG staging is defective:

  1. Rename the placeholder CHANGELOG/2026.227.1256.md to a CalVer that does NOT exist on main (e.g. a future placeholder such as CHANGELOG/2026.227.1300.md), and rewrite the H1 inside the file to match (# 2026.227.1300 — stamp the release binary with the release tag's CalVer). This resolves the add/add conflict and satisfies the strict CalVer check.
  2. Re-push; the validator re-runs.

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

The placeholder 2026.227.1256 collides with the existing v2026.227.1256
release on main (both a CHANGELOG file and a tag), making the PR an
add/add conflict. Rename to 2026.227.1300, a future CalVer that does not
exist on main.

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

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Change class: hook/workflow (CI workflow script — .github/workflows/release-binary.yml)

Head SHA validated: 7f726907d1ee3cfae3bdcb9be4cba0137e0b5ca4

The change itself is correct and minimal — I verified it independently. The FAIL is on the PR body, which still names the OLD CHANGELOG placeholder that the rename commit removed.

What I verified (and confirmed correct)

  • YAML validity: the workflow parses cleanly; the on: triggers (push: tags: 'v*' + workflow_dispatch) and the new "Compute the CalVer" step are structurally sound. bash -n on the step's run block passes.
  • Shell logic (re-run myself, both paths, with the $GITHUB_ENV mechanism):
    • tag path: GITHUB_REF_TYPE=tag GITHUB_REF_NAME=v2026.227.1256 → CALVER=2026.227.1256 ✅
    • dispatch path: GITHUB_REF_TYPE=branch → CALVER=2026.227.1355 (calver.sh HEAD-commit date) ✅
    • GITHUB_REF_TYPE is tag only on a tag push (the sole push trigger is tags: 'v*'), so ${GITHUB_REF_NAME#v} is always safe; workflow_dispatch takes the else branch. The $GITHUB_ENV value is available to all subsequent steps, including the verify step.
  • CHANGELOG strict checks (item 18): CHANGELOG/2026.227.1300.md exists on the branch, H1 is # 2026.227.1300 — stamp the release binary with the release tag's CalVer (byte-equal to the filename), and the placeholder 2026.227.1300 does NOT exist on main as a CHANGELOG/*.md or v* tag. The add/add conflict from round 2 is resolved — the PR is now MERGEABLE (only BEHIND).
  • Mergeability: merge base 565e504f; main did NOT touch .github/workflows/release-binary.yml since the merge base, so gh pr update-branch will merge cleanly.
  • Minimality: 2 files, 22 insertions / 3 deletions; the three duplicated CALVER=$(bash scripts/calver.sh) invocations are consolidated into one step (R3-positive). No unrelated edits, no secrets, no supply-chain or guardrail changes (T3 clean).
  • Attribution ceiling: the changed tag-push branch has not run live in the actual workflow, so the ceiling is analysed on a live system — the author claimed exactly that, not inflated. The trailer identity (Claude Code deepseek-v4-flash:0731-cloud) matches the authoring runtime.
  • Cross-PR sweep: open PRs docs(internals): the evidence-discipline reference — source, both pins, DOCS_REF #284, fix(sdk): namespace-aware box collectors — every imported box had no EXPOSE and no baked plan #282, chore(spec): bump spec to the temp-sweep $TMPDIR fix #281, fix(cli): make charly box feature run reachable — it never once dispatched #280, fix(check): the build-scope verdict verbs certify the artifact you built #278 touch docs/sdk/spec/CHANGELOG/Go — none touch .github/workflows/release-binary.yml or this CHANGELOG filename. No interaction.

Checklist

# Item Verdict
0 security & anti-tampering (T1–T4) PASS — no exfiltration / weakened-gate / supply-chain finding; no attempt to manipulate
1 description complete (template filled, pasted evidence, Assisted-by: footer) FAIL — see below
2 change-class gate matches evidence PASS (at the capped tier) — workflow-scripts gate; shell logic executed live locally and re-run by me; full tag-push run pending a release
3 attribution tier justified PASS — analysed on a live system is the honest ceiling, not inflated
4 R0 skills honored PASS — git-workflow + check (R10 gate) loaded; no Go/candy/schema surface touched
5 R1 RCA / zero warnings PASS — the skew was root-caused (minute-boundary crossing); no warnings in evidence
6 R2 no out-of-scope split PASS — minimal and focused
7 R3 no duplication PASS — consolidates 3 calver.sh invocations into 1
8 R4 no workaround PASS
9 R5 hard cutover + grep PASS — no transitional/dual-mode path
10 R6/R8/R9 artifact integrity N/A — no destructive git action, no generation change, no binary rebuild in this change
11 R10 disposable/fresh/coverage PASS (at the capped tier) — shell logic executed live locally and re-run by me; tier honestly capped
12 RDD / ADE / SDD N/A — no candies/schemas/Go
13 concurrency mandate + anti-cheat N/A — no shared-state path touched
14 hard cutover — one atomic commit PASS — squash lands one commit on main; the feat branch's fix + CHANGELOG-staging + rename commits are normal review-round accumulation
15 ARCHITECTURE GATE N/A — no charly/*.go changes; placement N/A; per-item trace: no staged charly/*.go
16 disposable-only autonomy N/A
17 clean architecture + Go gates N/A — no Go changes
18 CHANGELOG present PASS — file present, H1 matches filename, placeholder not on main

Blocking finding

1. PR body names the OLD CHANGELOG placeholder (item 1 — description↔code mismatch). The rename commit 7f726907 moved the CHANGELOG to CHANGELOG/2026.227.1300.md, but the PR body was not updated. Two places still claim CHANGELOG/2026.227.1256.md is staged:

  • the Summary of changes bullet: "CHANGELOG/2026.227.1256.md: staged (placeholder CalVer — the pr-validator finalizes it at merge)."
  • the CHANGELOG compliance line: "CHANGELOG/2026.227.1256.md staged (placeholder CalVer — the pr-validator finalizes it)."

The actual diff (verified against the merge base 565e504f) contains CHANGELOG/2026.227.1300.md — 2026.227.1256.md does not exist on the branch. The org-wide template requires "Every file/behavior in the diff must be accounted for here (a description↔code mismatch is a security FAIL)", and the R1 claim-keyed sweep binds the PR's own new prose. The body must name the file that actually exists.

Comments considered

  • Previous validator FAIL verdicts (atrawog, prior validator runs) — round 1 raised body-incomplete + CHANGELOG-absent (both addressed); round 2 raised the 2026.227.1256 placeholder collision + CONFLICTING state (addressed by the rename — the PR is now MERGEABLE). Disposition: verified-non-blocking (addressed). The stale-body finding is new to this run.

Cross-PR interactions considered

Decision

FAIL — not merged. The change is technically sound (YAML valid, shell logic correct on both paths, minimal, honest tier, CHANGELOG collision resolved), but the PR body is stale:

  1. Update the PR body's two CHANGELOG/2026.227.1256.md references to CHANGELOG/2026.227.1300.md (the Summary of changes bullet and the CHANGELOG compliance line).
  2. Re-push (or edit the body — the head SHA need not move for a body-only fix, but the validator re-runs on the same head); the validator re-runs.

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

@atrawog

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: hook/workflow (CI workflow script — .github/workflows/release-binary.yml)

Head SHA validated: 7f726907d1ee3cfae3bdcb9be4cba0137e0b5ca4

This is the fourth validation round. The three prior rounds' findings are all independently re-verified as addressed: (1) body completeness + CHANGELOG staging, (2) the 2026.227.1256 placeholder collision + CONFLICTING state, (3) the stale body naming the old placeholder. I re-derived everything from the PR, the repo, and the rulebook — no author claim taken on faith.

What I verified (re-run myself)

  • PR body (current, after the body-only edit): both CHANGELOG references name CHANGELOG/2026.227.1300.md — the Summary of changes bullet and the CHANGELOG compliance line. Grep for CHANGELOG/2026.227.1256 returns zero hits. The 2026.227.1256 occurrences that remain are the observed-skew example (the bug being fixed), not CHANGELOG references.
  • Head 7f726907: CHANGELOG/2026.227.1300.md exists; H1 is # 2026.227.1300 — stamp the release binary with the release tag's CalVer (byte-equal to the filename); no CHANGELOG/2026.227.1256.md anywhere on the branch.
  • Placeholder collision: 2026.227.1300 does NOT exist on main as a CHANGELOG/*.md (grep count 0) or a v* tag (git ls-remote --tags count 0). Main HEAD is 28cc0898 tagged v2026.227.1256.
  • Mergeability: mergeable: MERGEABLE, mergeStateStatus: BEHIND. Merge base 565e504f; main did NOT touch .github/workflows/release-binary.yml since the merge base, so gh pr update-branch merges cleanly (no add/add conflict — the round-2 conflict is resolved).
  • YAML validity: the workflow parses cleanly (yaml.safe_load); the on: triggers (push: tags: 'v*' + workflow_dispatch) and the new Compute the CalVer step are structurally sound. bash -n on the step's run block passes.
  • Shell logic (executed live, both paths, with the $GITHUB_ENV mechanism):
    • tag path: GITHUB_REF_TYPE=tag GITHUB_REF_NAME=v2026.227.1256 → CALVER=2026.227.1256 (writes to $GITHUB_ENV) ✅
    • dispatch path: GITHUB_REF_TYPE=branch → CALVER=2026.227.1355 (calver.sh HEAD-commit date) ✅
    • GITHUB_REF_TYPE is tag only on a tag push (the sole push trigger is tags: 'v*'), so ${GITHUB_REF_NAME#v} is always safe; workflow_dispatch takes the else branch. The $GITHUB_ENV value is available to all subsequent steps, including the verify step (test "$(./bin/charly-linux-amd64 version)" = "$CALVER").
  • Minimality: 2 files, 22 insertions / 3 deletions; the three duplicated CALVER=$(bash scripts/calver.sh) invocations are consolidated into one step (R3-positive). No unrelated edits, no secrets, no supply-chain or guardrail changes (T3 clean).
  • Attribution ceiling: the changed tag-push branch has not run live in the actual workflow (it fires on the next v* tag push), so the ceiling is analysed on a live system — the author claimed exactly that, not inflated. The trailer identity (Claude Code deepseek-v4-flash:0731-cloud) matches the authoring runtime.

Checklist

# Item Verdict
0 security & anti-tampering (T1–T4) PASS — no exfiltration / scope-mismatch / weakened-gate / supply-chain finding; no attempt to manipulate
1 description complete (template filled, pasted evidence, Assisted-by: footer) PASS — body names the correct CHANGELOG file in every reference
2 change-class gate matches evidence PASS (at the capped tier) — workflow-scripts gate; shell logic executed live locally and re-run by me; full tag-push run pending a release
3 attribution tier justified PASS — analysed on a live system is the honest ceiling, not inflated
4 R0 skills honored PASS — git-workflow + check (R10 gate) loaded; no Go/candy/schema surface touched
5 R1 RCA / zero warnings PASS — the skew was root-caused (minute-boundary crossing); no warnings in evidence
6 R2 no out-of-scope split PASS — minimal and focused
7 R3 no duplication PASS — consolidates 3 calver.sh invocations into 1
8 R4 no workaround PASS
9 R5 hard cutover + grep PASS — no transitional/dual-mode path
10 R6/R8/R9 artifact integrity N/A — no destructive git action, no generation change, no binary rebuild in this change
11 R10 disposable/fresh/coverage PASS (at the capped tier) — shell logic executed live locally and re-run by me; tier honestly capped
12 RDD / ADE / SDD N/A — no candies/schemas/Go
13 concurrency mandate + anti-cheat N/A — no shared-state path touched
14 hard cutover — one atomic commit PASS — squash lands one commit on main; the feat branch's fix + CHANGELOG-staging + rename commits are normal review-round accumulation
15 ARCHITECTURE GATE N/A — no charly/*.go changes; placement N/A; per-item trace: no staged charly/*.go
16 disposable-only autonomy N/A
17 clean architecture + Go gates N/A — no Go changes
18 CHANGELOG present PASS — file present, H1 matches filename, placeholder not on main

Comments considered

  • Round 1 validator FAIL (atrawog) — body incomplete per template + CHANGELOG absent. Disposition: verified-non-blocking (addressed — body now complete, CHANGELOG staged).
  • Round 2 validator FAIL (atrawog) — 2026.227.1256 placeholder collision + CONFLICTING state. Disposition: verified-non-blocking (addressed — renamed to 2026.227.1300, PR now MERGEABLE).
  • Round 3 validator FAIL (atrawog) — body named the old placeholder in two places. Disposition: verified-non-blocking (addressed — body-only edit; both references now name 2026.227.1300.md; head SHA unchanged at 7f726907).

Cross-PR interactions considered

Decision

PASS. The change is correct, minimal, honestly attributed, and fully compliant. The round-3 stale-body finding is resolved by the body-only edit (verified: both CHANGELOG references now name CHANGELOG/2026.227.1300.md). Proceeding to finalize the merge-time CalVer, squash-merge, and tag.

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

atrawog and others added 2 commits August 15, 2026 16:09
Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
@atrawog
atrawog merged commit f968abb into main Aug 15, 2026
@atrawog
atrawog deleted the feat/release-binary-tag-calver branch August 15, 2026 14:17
@atrawog

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — merged ✅

Merged: f968abbb6040b487c965f8aa4ea4fb221e79eda7 (squash) — fix(ci): stamp the release binary with the release tag's CalVer
Tagged: v2026.227.1410 (points at the merged commit)

Finalization performed:

  • Branch brought up to date (gh pr update-branch → d989f2b9, clean merge — main did not touch the workflow or this CHANGELOG filename since the merge base).
  • Merge-time CalVer generated: 2026.227.1410 (strictly above main's v2026.227.1256; no tag or CHANGELOG/*.md collision).
  • CHANGELOG/2026.227.1300.md → CHANGELOG/2026.227.1410.md (git mv), H1 rewritten to # 2026.227.1410 — stamp the release binary with the release tag's CalVer, placeholder line removed (matches the most recent finalized convention, 2026.227.1256). Committed as 2674aeae with the validated trailer, pushed.
  • success status re-posted on the new head 2674aeae; PR went CLEAN / MERGEABLE.
  • Squash body constructed via squash_body.py; pre-merge trailer parse = Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system); merged-object trailer parse = identical (verified against the fetched merge object).

Post-merge verification: CHANGELOG/2026.227.1410.md on main has the matching H1; no 2026.227.1300.md remains; the Compute the CalVer step is in the merged workflow; tag v2026.227.1410 resolves to the merged commit.

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

aitrawog pushed a commit that referenced this pull request Sep 25, 2026
…6268.616

Hermetic build: no replace, all producers tagged (plugin-check #55/#56, spec #154/#155,
sdk #281/#283, plugin-vm v0.2026266.1235). Take main's newer plugin-task pin.

Assisted-by: opencode ollama-cloud deepseek-v4.1-flash (fully tested and validated)
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.

1 participant