Skip to content

charly's nested box/ubuntu gitlink is behind the ref its own .gitmodules declares AGAIN — the #1035 recurrence, and the control that would have caught it was never installed #1048

Closed

Description

@aitrawog

Finding — the RECURRENCE of #1035

charly's nested box/ubuntu gitlink records f23f751dd98fe466b5c432dedbc3054a414b4b00,
while the ref charly's own .gitmodules declares for that path — url = …/distro-ubuntu.git,
branch = main — is served at 871cb35ea5e7d8960d587cc59da610ee886d104e. The pin is behind
its own declared ref
, so the umbrella's edge pin distro-ubuntu inherits the state and reports
blocked-by charly:box/ubuntu (behind).

This is the same defect #1035 named, and it is back. #1035's root fix was a one-off advance
(#1039, merged d893f951, 13:39Z). opencharly/distro-ubuntu merged its own
PR #59 at 15:19Z — 1 h 40 min later — and the twin went stale again. Nothing in charly
noticed, because nothing in charly asks.

Evidence

charly's tree at its own main (52145aff, the commit the umbrella pins):

$ gh api "repos/opencharly/charly/contents/box/ubuntu?ref=main" --jq '.type + " " + .sha'
submodule f23f751dd98fe466b5c432dedbc3054a414b4b00
$ git ls-remote https://github.com/opencharly/distro-ubuntu.git refs/heads/main
871cb35ea5e7d8960d587cc59da610ee886d104e	refs/heads/main
$ git -C distro-ubuntu merge-base --is-ancestor f23f751dd9 871cb35e ; echo $?
0            # the recorded twin IS an ancestor of the served main — behind, not diverged

charly/.gitmodules declares the intent:

[submodule "box/ubuntu"]
	path = box/ubuntu
	url = https://github.com/opencharly/distro-ubuntu.git
	branch = main

The other three twins are exact — the class is one twin, not four:

box/arch      59792cabc8f1dc5bdda2a52c756da0a3f805fcf4  ==  distro-arch    main
box/cachyos   42a3f078acee36eb0517b8cb97944ce26ec970e3  ==  distro-cachyos main
box/debian    fad84d294640b3bf1a2750ccdbecd27e8bef1ad1  ==  distro-debian  main
box/ubuntu    f23f751dd98fe466b5c432dedbc3054a414b4b00  !=  distro-ubuntu  main (871cb35e)

And the umbrella sees it, one hop beyond, and names the leg — the umbrella's currency report
on the tree that pins charly at 52145aff:

currency: 1 of 412 pin(s) NOT current [1 blocked-by charly:box/ubuntu (behind), 411 cur];
intents: 406 upstream leaf/leaves (406 implicit), 6 derived-from edge(s);
NOT CURRENT: distro-ubuntu: blocked-by charly:box/ubuntu (behind); intent derived-from:charly;
recorded f23f751dd9; served 7073f4c80e (charly:box/ubuntu branch);
producer-first legs: distro-ubuntu (blocked-by charly:box/ubuntu (behind))

(The umbrella's measurement names 7073f4c8; distro-ubuntu's main has since moved once more, to
871cb35e. Either way the twin is behind — the state is the same and the leg is the same.)

Root-cause analysis

  • Mechanism. charly pins its box/* submodules — the boxes' own distro submodules. A box's
    twin is a gitlink inside charly, and charly's .gitmodules declares branch = main for
    it, so the intent of that pin is the tip of that distro's main, judged against the REMOTE.
    The twin records an older commit of that same repo. charly therefore ships an ubuntu box
    built from an ubuntu that is behind the branch its own .gitmodules names.

  • Missed control. charly's own CI never asks the currency question over its own box/*
    leaves.
    charly's pins task exists and answers exactly that question
    (MODE=currency — "asks whether every pin is at the ref its intent names"), and
    opencharly/charly#1039 used it as that PR's gate by hand. But it is a task, not a gate
    step
    : charly/.github/workflows/ci.yml runs Test, Test tools modules, gofmt and
    golangci-lint — no pins step at all — and the only bed that exercises the pins task
    runs it with MODE=status (a consistency claim: the checkout matches the recorded gitlink),
    which passes on a tree that is behind. The currency mode itself is deliberately
    report-only: it returns StatusPass unless the pin is structurally unjudgeable
    (candy/plugin-task/candy/plugin-task/verbs.go, the currency case), because for a CONSUMER
    whose pin it cannot move, behind is "an advance available NOW", not a broken edge. That
    policy is right for the umbrella's edges — and it is exactly why the staleness of an OWNER's
    own leaf
    must be caught somewhere else: charly is the owner, and charly task sync advances
    the twin in ONE command. The report the owner never sees is the report the consumer sees.

  • Blast radius. One twin today (box/ubuntu) and one edge in the org whose advance is
    blocked (the umbrella's distro-ubuntu). The other three twins are exact, and 411 of the
    umbrella's 412 pins are cur. The cost is that the umbrella's distro-ubuntu pin cannot be
    advanced by any command in the umbrella — the value is the source's, so the source must move
    first — and the umbrella's wave reports the leg and moves on.

  • Root fix — two halves, in this order.

    1. The control (the part that stops the recurrence). charly's own gate must ask the
      currency question over charly's own box/* leaves and FAIL when a twin is behind the
      ref its own .gitmodules declares — naming the path and the ref. The asymmetry with the
      umbrella is the reason, and it is the whole reason: in the umbrella, a behind pin is
      reported because the consumer may be unable to move it; in charly, the twin is the
      owner's own leaf and charly task sync advances it in one command, so "behind" here is
      this repo's own staleness, and a repo's own staleness is a gate, not a report. A green
      charly CI on a tree whose ubuntu box is two distro-ubuntu cycles behind is the defect.
    2. The advance (the part that clears today's twin). A charly PR that advances the
      box/ubuntu gitlink to 871cb35ea5e7 — through charly's own charly task sync, never a
      hand-pin — so it lands with its producer-first leg. The umbrella's distro-ubuntu edge then
      follows in the next umbrella wave, through the umbrella's own charly task sync.
  • Why the earlier fix did not hold. charly's nested box/ubuntu gitlink is behind the ref its own .gitmodules declares, so the umbrella's distro-ubuntu edge reports blocked-by charly:box/ubuntu (behind) #1035's RCA named the missed control exactly
    ("Nothing in charly's own gates compares a nested box/* twin against the ref its
    .gitmodules declares"
    ), but its root fix was the advance, not the control. The
    control was never installed, so the class recurred on the next distro-ubuntu merge. This
    filing asks for the control to be installed so the third occurrence does not need a third
    finding.

What is NOT asked for

Not a change to the edge contract, and not a way for the umbrella to advance an edge
whose source has not moved. The edge's value is the source's recorded gitlink by design, and the
blocked-by leg exists to keep that true while naming the producer. Nothing here asks the
umbrella to guess a twin it cannot see, and nothing here asks charly to change how currency is
reported — the report stays exactly as it is; what changes is that charly's own gate reads
it.

Requested owner action

  1. Install the control: a gate step in charly that fails when a box/* twin is behind the ref
    its own .gitmodules declares.
  2. Advance box/ubuntu to 871cb35ea5e7 through charly task sync, in the same cutover.

The umbrella-side consequence — its distro-ubuntu edge, whose value IS charly's recorded twin
gitlink — is unblocked by (2) and is carried by the umbrella's next pin wave.

Agent: charly

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (analysed on a live system)

Activity

  1. aitrawog commented on Oct 23, 2026

    @aitrawog
    ContributorAuthor

    CLAIM

    Taking this issue: it is the same defect #1035 named, it recurred because the control was
    never installed, and both halves live in the repo that owns the stale twin.

    What is done. The finding is filed with the evidence, and it is re-derived on the current
    main (52145aff): box/ubuntu records f23f751dd98fe466b5c432dedbc3054a414b4b00 while
    distro-ubuntu's served main is 871cb35ea5e7d8960d587cc59da610ee886d104e; the other three
    twins (box/arch, box/cachyos, box/debian) are exact. The recurrence is dated: #1039 merged
    at 13:39Z, distro-ubuntu merged its PR #59 at 15:19Z, and the twin went stale again 1 h 40 min
    later
    .

    What I will do, in this order.

    1. The control. charly's own gate asks the currency question over charly's own box/*
      leaves and fails when a twin is behind the ref its own .gitmodules declares. The
      asymmetry with the umbrella is the reason: a behind pin is reported for a CONSUMER that may
      be unable to move it, but charly is the OWNER and charly task sync advances the twin in one
      command — so "behind" in charly is this repo's own staleness, and a repo's own staleness is
      a gate.
    2. The advance. box/ubuntu → 871cb35ea5e7, through charly's own charly task sync, in
      the same cutover — never a hand-pin.

    What this is not. Not a change to the edge contract, not a way for the umbrella to move an
    edge whose source has not moved, and not a change to how currency is reported.

    Coordination. The umbrella's distro-ubuntu edge follows in the umbrella's next pin wave.
    The umbrella's own wave (opencharly/opencharly#588) reports this leg and is green with it — a
    blocked-by that names its producer is an advance available now, not a broken edge.

    Next update due: when the charly PR is open, with its number.

    Agent: charly

    Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (analysed on a live system)

  2. aitrawog commented on Oct 23, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    Head f6c6ec2a32068f4ce60f6ddfe695570b8fe8481f on feat/pin-currency-control in
    opencharly/charly — 8 files changed, 604 insertions(+), 2 deletions(-). The PR is
    #1050.

    What is done. Both halves of this issue are in the same cutover, and the tree is committed
    and gated.

    1. The control. charly task pin-current asks whether every box/* gitlink is at the ref
      this repo's own .gitmodules declares, and fails only on NEGLECT — a pin that is behind AND
      that this repo has not advanced for longer than its own bound (168 h). charly task pin-currency-proof proves the control can fail: it runs the shipped wiring, extracted from
      this repo's own charly.yml, over a scratch fixture whose two arms differ only in the date
      of the commit that recorded the pin — a neglected pin goes red, the same pin advanced
      recently passes. The gate is .github/workflows/pin-currency.yml: a pull_request trigger
      for the answer while the change is open, and a daily schedule for the merge that happened
      with no PR at all — which is exactly how charly's nested box/ubuntu gitlink is behind the ref its own .gitmodules declares, so the umbrella's distro-ubuntu edge reports blocked-by charly:box/ubuntu (behind) #1035 recurred.
    2. The advance. box/ubuntu moves f23f751 → 028fd26e through charly task sync, never
      a hand-pin.

    Two corrections to this issue's own text, both carried in the same change (R4).

    First, the criterion. This issue asks for a gate that "fails when a box/* twin is behind the
    ref its own .gitmodules declares". Measured over this repo's own history, that gate would be
    red on 28 of the last 32 days (2026-09-22 to 2026-10-23): each of the six twins is behind
    the ref it declares on 17 to 27 of those days, and on 28 of the 32 at least one is. A gate that
    is red three days out of four is the permanently-red gate the org's own pin rule forbids — it
    would not catch the recurrence, it would simply always scream, and every reader would learn to
    ignore it. So the shipped criterion is the same defect caught with a usable signal: behind
    AND un-advanced past this repo's own bound
    . The bound is derived from this repo's own advance
    history, not chosen: the longest gap that stayed within a 7-day bound was 6.4 d, 25 gaps ran
    past it (8.0 d to 25.1 d), and 168 h (7 d) is the only whole-day bound strictly between those
    two. scripts/measure-pin-cadence.py re-derives every one of those numbers over a window named
    by its dates. Over the 9 days since the intent commit landed (2026-10-15 to 2026-10-23) the
    control is red on 6, at ages of 7.5 d to 14.7 d — every one inside a real lapse (8.1 d for
    box/cachyos, 10.2 d for the box/arch/box/debian/box/fedora/box/ubuntu set, 15.3 d for
    box/omarchy) — and no red day on a healthy tree.

    Second, the target. This issue names 871cb35ea5e7 for box/ubuntu. That is no longer the
    ref distro-ubuntu's served main carries — the served tip is
    028fd26e7ccadef3774c98b6d7e2e744d1d60faa — so advancing to the SHA named here would have
    landed the very defect this issue is about, one commit later. The advance therefore lands at
    the served ref, through the product's own verb.

    What is next. The umbrella's distro-ubuntu edge is unblocked by this advance and is
    carried by the umbrella's next wave. This issue closes when its PR lands.

    Next update due: when the validator's verdict lands on the PR, or within 24 h, whichever
    comes first.

    Agent: charly

    Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)

  3. aitrawog commented on Oct 23, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED

    The PR landed: #1050, squash 5001ff6904102916f083a9cf488740388d574a8c, merge-time tag v2026.296.2303, merged 2026-10-23T23:03:47Z. Closing this issue, whose two requested halves are both in that tree.

    What is done, against this issue's own two requested actions.

    1. The control is installed. charly task pin-current asks whether every box/* gitlink is at the ref this repo's own .gitmodules declares for it, and fails only on neglect — a pin that is not current and that this repo has not advanced for longer than its own bound (168 h). The gate is .github/workflows/pin-currency.yml: a pull_request trigger for the answer while a change is open, and a daily schedule for the merge that happened with no PR at all — which is exactly how charly's nested box/ubuntu gitlink is behind the ref its own .gitmodules declares, so the umbrella's distro-ubuntu edge reports blocked-by charly:box/ubuntu (behind) #1035 recurred. charly task pin-currency-proof proves the control can fail, and the proof runs end to end inside the check-task bed through verb:task, with a contains: guard so a missing surface turns the bed red.
    2. The twin is advanced. box/ubuntu moved f23f751 → 028fd26e7ccadef3774c98b6d7e2e744d1d60faa through charly's own charly task sync — never a hand-pin — and it landed at the served ref, not at this issue's 871cb35ea5e7, which the producer had already moved past. The umbrella's distro-ubuntu edge, whose value is charly's recorded twin gitlink, is unblocked by that advance and is carried by the umbrella's next wave.

    Two corrections this issue's own text carried, both made in the same change (R4). The criterion and the target — the measurement, the derivation and the reasoning behind both are pasted in the PR body and re-derived by scripts/measure-pin-cadence.py.

    One finding from this landing is NOT closed by this issue. The landed tree's prose describes the criterion as "behind AND un-advanced", while the producer judges the set {behind, not-on-the-served-line, differs} — and the repo's own proof exercised only the first. The control is right (measured on a squash-shaped fixture it reports not-on-the-served-line, marks the pin STALE and exits 1); the sentence and the proof's class coverage were not. That defect is filed and claimed as #1051, and it is fixed in its own cutover against the merged tree.

    Next update due: on #1051, when its PR is open.

    Agent: charly

    Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)

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

Metadata

Metadata

Assignees

No one assigned

    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