Skip to content

R1: the org engine pin predates the retired version stamp — 'charly box validate' fails under the pin, while CI validates with an unpinned engine #162

Closed

Description

@aitrawog

Problem

The org engine pin CHARLY_VERSION=v2026.271.0950 predates the retirement of the charly.yml
version stamp
(charly#754, umbrella opencharly/opencharly#340 @ 305caa2, CHANGELOG
2026.275.2112). Consequences:

  1. Under the pinned engine, charly box validate on opencharly/action-review's contract
    fails — the pin still demands a stamp the current schema era has retired. The pinned
    engine's own migration path is closed for exactly this case.
  2. opencharly/action-review/.github/workflows/ci.yml installs charly with
    gh release download --repo opencharly/charly without --tag, i.e. the latest
    release, and its charly box validate is therefore green for an engine no gate ever runs.
    The config gate cannot see the divergence (R7: prove the gate, not the plan).

Neither the repo contract nor the org contract declares a version stamp, so nothing in either
copy is wrong for the current era; the pin is simply older than the era.

Evidence (measured 2026-10-04, engine pin v2026.271.0950, latest v2026.277.1742)

Same tree, same command, both engines (CHARLY_PLUGIN_DIR=<release>/plugins <release>/bin/charly box validate):

-- pinned v2026.271.0950:
charly: error: command "validate": validation error: …/charly.yml: schema 2026.261.1747 is required (found ""). Run: charly migrate
  rc=1
-- latest v2026.277.1742:
charly box validate: OK — checked 5 candies, 7 distros, 7 builders; 0 warnings, 0 errors
  rc=0

Pre-existing, not a regression — the pristine HEAD contract fails identically:

-- pinned, pristine HEAD tree:    schema 2026.261.1747 is required (found "").   rc=1
-- latest, pristine HEAD tree:    OK — checked 5 candies, 7 distros, 7 builders  rc=0

The pinned engine's own migrate cannot repair it:

charly: error: command "migrate": …/charly.yml: schema "" predates the supported floor 2026.174.1100
and cannot be migrated — the historical migration chain was removed at the 2026.261.1747 baseline
reset. Re-author this config against the current schema (a current config carries `version: 2026.261.1747`)
  rc=1

The latest engine migrates it the other way — the stamp is retired, so it is stripped:

backup: …/charly.yml.1791137274687698848
applied strip-version-stamp
migrated
  rc=0

Both facts are in the binaries' own strings — the message exists only in the pin:

$ strings <pin>/bin/charly    | grep -m1 'predates the supported floor'
%s: schema %q predates the supported floor %s and cannot be migrated
$ strings <latest>/bin/charly | grep -m1 'predates the supported floor'   # no match

No stamp is declared anywhere in either copy of the contract:

$ grep -nE '^version:|^schema:' action-review/charly.yml        # no match
$ gh api repos/opencharly/.github/contents/charly.yml | base64 -d | grep -nE '^version:|^schema:'   # no match

The org pin itself (read 2026-10-04), and the retirement commit:

$ gh variable list --org opencharly --json name,value --jq '.[] | select(.name=="CHARLY_VERSION") | "\(.name)=\(.value)"'
CHARLY_VERSION=v2026.271.0950

$ git -C <umbrella> log --oneline -1 305caa2
305caa2 fix(umbrella)!: strip the retired version: stamp (charly#754 P0) (#340)

Fix options (operator decision — the pin is an org variable, an agent cannot set it)

  1. Advance the pin to ≥ v2026.275.2112 (the era that retired the stamp). Then the pinned
    engine validates the contract, and the config gate can be pinned to it.
  2. Pin the config gate, i.e. make action-review/.github/workflows/ci.yml install
    vars.CHARLY_VERSION instead of the latest release — correct only after option 1, or the
    job goes red on every PR.
  3. Leave the config gate unpinned and accept that it proves nothing about the pin — which is the
    status quo this issue reports.

Scope

Org variable CHARLY_VERSION (option 1) and opencharly/action-review .github/workflows/ci.yml
(option 2). No repo contract content changes: a stamp must not be re-added, since the current era
retires it.

Found while aligning the per-repo ai-review check with the org gate (opencharly/.github#126).

Agent: review-effort · session 2e90ca1f-55b3-4792-b6a5-e37d6ed1a1a8
Assisted-by: Claude Code 2.1.289 deepseek-v4.1-flash:cloud (analysed on a live system)

Activity

  1. self-assigned this
    on Oct 4, 2026
  2. aitrawog commented on Oct 9, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the pin advanced past the retirement; the in-tree prose that says it did not is now the live defect, and the consequence itself is not measurable from here.

    What was measured

    Live org variable and both in-tree copies, 2026-10-09:

    $ gh variable list --org opencharly --json name,value --jq '.[]|select(.name=="CHARLY_VERSION")|.value'
    v2026.278.0912                     # the issue measured v2026.271.0950
    
    $ gh api orgs/opencharly/actions/variables/CHARLY_VERSION --jq '.updated_at'
    2026-10-05T14:04:41Z
    $ gh release view v2026.278.0912 --repo opencharly/charly --json publishedAt
    2026-10-05T09:23:31Z
    

    opencharly/action-review@main, .github/workflows/ci.yml:44-47 — the paragraph the issue's fix must have moved:

    # `charly box validate` below stays on the LATEST release ON PURPOSE: the pin's
    # engine predates the retired config stamp and REJECTS this stamp-less contract
    # (`schema 2026.261.1747 is required (found "")` — measured, and identical on
    # the pristine tree). Moving `box validate` onto the pin is therefore a single
    # org-variable change (advance the pin past the retirement), held by the
    # operator on opencharly/.github#162; the moment the pin accepts the contract,
    # it moves here.
    

    Root cause

    Mechanism — the issue's consequence (1) was "under the pinned engine, box validate on action-review's contract fails", caused by the pin (v2026.271.0950) being older than the stamp retirement 2026.275.2112 (charly#754 / umbrella #340 @ 305caa2). The operator took fix option 1: the pin is now v2026.278.0912, which is past 2026.275. So the named precondition of the defect is discharged. Missed control — the pin was an org variable with no in-tree assertion, which is why the divergence was invisible; that was closed by the new ci.yml step "Verify the org pin the review gate runs (#162)", which asserts the pin is set, visible, published, and reports the version it names. Blast radius — one repo contract + one org variable. Root fix — done in substance; the remaining arm is prose. Deps — none.

    Correction to this issue's framing

    Two things the row's "remediated" reading misses, and one it overstates:

    1. Stale prose, live now. action-review/.github/workflows/ci.yml:44-47 still asserts that the pin predates the retirement and rejects the contract, and that moving box validate onto the pin is "held by the operator on R1: the org engine pin predates the retired version stamp — 'charly box validate' fails under the pin, while CI validates with an unpinned engine #162". Both statements were about v2026.271.0950; the pin has since moved. That is an R1 doc-vs-reality divergence on the surface this row is about.
    2. Fix option 2 was deliberately NOT taken — box validate still runs on the latest release. The divergence the issue's consequence (2) describes is now documented and pin-verified rather than accidental, which is a defensible end state, but it is not the "gate is pinned" outcome option 2 named.
    3. Not measured: whether v2026.278.0912's engine now accepts the stamp-less contract. That needs the pinned release binary executed (CHARLY_PLUGIN_DIR=<release>/plugins <release>/bin/charly box validate) and it cannot be fetched onto this host from inside this read-only validation scope. The threshold argument says it should pass; that is an argument, not the measurement the issue asked for.

    Agent: org-triage-2026-10-09
    Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

  3. aitrawog commented on Oct 13, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — opencharly/.github#162, slug dsh-opencharly. The fix lands in opencharly/action-review (.github/workflows/ci.yml + AGENTS.md) — the row is filed in .github, but the live defect is the in-tree prose and the unpinned config gate; the PR follows within the hour.

    What I re-measured (2026-07-14), because the row's premise has moved twice

    The issue measured the pin at v2026.271.0950; the 2026-10-09 STATUS showed it at v2026.278.0912 and identified the remaining defect as the in-tree prose. I verified both halves myself, on a session worktree off fresh action-review@main (fb93502):

    $ gh variable list --org opencharly --json name,value --jq '.[]|select(.name=="CHARLY_VERSION")|.value'
    v2026.278.0912
    
    $ CHARLY_PLUGIN_DIR=/tmp/pin278/plugins /tmp/pin278/bin/charly box validate
    charly box validate: OK — checked 5 candies, 7 distros, 7 builders; 0 warnings, 0 errors
    rc=0

    So the pinned engine accepts this stamp-less contract — the divergence the issue was opened for is gone, and the paragraph that says otherwise (in two places: .github/workflows/ci.yml:40-47 and AGENTS.md:38-51) is now the defect. Note the issue's second half is not stale: the job really did install the latest release (gh release download with no --tag) for charly box validate while only verifying the pin, so the config gate was green for an engine no gate ever runs — the opencharly/.github#126 class.

    What lands

    1. One engine in the job: the pin. The step now downloads the pinned release's binary and plugins, puts them on PATH and exports CHARLY_PLUGIN_DIR, keeps the pin-version assertion (a pin that does not name the engine it publishes still fails), and the config gate therefore runs charly box validate with the engine the review gate runs.
    2. The latest-release install step is deleted — its only consumer was box validate (R2: one path, one engine).
    3. Both stale paragraphs are replaced with the measured truth (R5: the retired workaround is stated as retired, and the claim-keyed grep over both files is clean).

    Live proof of the changed step (executed as the job runs it, temp HOME, real gh, real release):

    $ org pin v2026.278.0912 -> engine 2026.278.0912 (a4dda6a1d8de)      exit=0
    # exported: …/charly-pin/bin  and  CHARLY_PLUGIN_DIR=…/charly-pin/plugins
    
    $ config gate engine: 2026.278.0912
    $ charly box validate
    charly box validate: OK — checked 5 candies, 7 distros, 7 builders; 0 warnings, 0 errors   rc=0

    The PR body carries the diff, the static checks (YAML parse + every run: block through bash -n) and the change class. No operator action is needed: the org variable already sits past the retirement.

    Agent: dsh-opencharly
    Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

  4. aitrawog commented on Oct 13, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — the row's live defect is fixed and landed: opencharly/action-review#21 merged (26bc02b), tag v2026.286.0642.

    Both consequences of this row are now discharged, and I re-measured each rather than inheriting them:

    1. Consequence (1) — the pin rejecting the stamp-less contract: already discharged before this PR (the pin moved from v2026.271.0950 to v2026.278.0912). Verified again today, on a session worktree off fresh action-review@main: charly box validate: OK — checked 5 candies, 7 distros, 7 builders; 0 warnings, 0 errors (rc=0) under the pinned release.
    2. Consequence (2) — the config gate green for an engine no gate runs: fixed. .github/workflows/ci.yml installed the latest release for box validate while only verifying the pin. It now installs one engine — the release vars.CHARLY_VERSION names (binary + plugins, PATH + CHARLY_PLUGIN_DIR) — keeps the assertion that the release's binary reports the version the pin names, and runs charly box validate with that same binary. The latest-release install step is deleted.
    3. The stale prose that this row's STATUS identified as the then-live defect — ci.yml:40-47 and AGENTS.md:38-51 both asserting the pin still rejects the contract and that the move was "held by the operator on R1: the org engine pin predates the retired version stamp — 'charly box validate' fails under the pin, while CI validates with an unpinned engine #162" — is replaced with the measured truth in the same change.

    Closing as completed. Two blocks on that PR were mine (an inconsistent grep/sed pair and a measurement date impossible for the pinned CalVer); both were corrected, with the RCA on the PR thread.

    Agent: dsh-opencharly
    Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions