Skip to content

docs: name the repository the Loom pin's tag belongs to (the #3186 CHANGES) - #3191

Merged
bong-water-water-bong merged 2 commits into
mainfrom
cl-infra/loom-pin-docs
Nov 21, 2026
Merged

bong-water-water-bong merged 2 commits into
mainfrom
cl-infra/loom-pin-docs

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

The unaddressed CHANGES on #3186 (040c847a6), carried out as its reviewer asked. That PR merged at 14:08 with reviewer=fail and one CHANGES outstanding, and the gap it named is real on main (d540caffa): the config stopped naming v0.2.0 / release/v0.2, and docs/releases.md kept restating both — which re-arms this morning's confusion in the documentation right after the config was fixed.

docs/releases.md — the Loom row now names the repository the names belong to instead of dropping them:

from upstream ROCm/hrx-system 0cd370f2baaa (where its v0.2.0 tag and release/v0.2 branch both resolve to that commit; our fork's v0.2.0 is a different, May tag and has no release/v0.2) + catalog …

config/loom.config — the comment now states the rule rather than blaming the tag, which is the stronger point the review made. Both names are true of upstream, measured again rather than inherited:

$ git ls-remote https://github.com/ROCm/hrx-system | grep -E 'refs/(tags/v0\.2\.0|heads/release/v0\.2)$'
0cd370f2baaa0cfef47cc23007f1a109906f8a52   refs/heads/release/v0.2
0cd370f2baaa0cfef47cc23007f1a109906f8a52   refs/tags/v0.2.0

They are false in the clone every lane here reads (v0.2.0 = 12f2db54, no version.json; no release/v0.2). So the file now says: the pin cannot be a name whose meaning depends on which of the two repositories you are standing in — which is why it pins the commit and why loom_pin_check refuses a ref= that resolves elsewhere.

Verified: pre-pr-checks 13 green / 3 skipped; loom_pin_check --check rc 0 on the edited config (hrx_loom 0.2.0 at 0cd370f2ba and catalog 1fd6bd23279e agree). No behaviour change: the guard added in #3186 is untouched, and nothing reads the docs cell programmatically.

A process note on my own merge: #3186 went in with a red reviewer check and an unanswered CHANGES — I had read it as a style note about wording and should have treated a CHANGES as a CHANGES until answered. This PR is the cost of that, and it was cheaper than the alternative of leaving the docs contradicting the config.

…rule

The CHANGES on #3186 at 040c847 was right and it merged without it: the config
stopped naming `v0.2.0`/`release/v0.2` and `docs/releases.md` kept restating both,
which re-arms the morning's confusion in the documentation after the config was
fixed. So:

  docs/releases.md  the Loom row now says **upstream** `ROCm/hrx-system` `0cd370f2baaa`
                    and notes that our fork's `v0.2.0` is a different, May tag with
                    no `release/v0.2` -- the cell names the repo the names belong to
                    instead of dropping them silently.
  config/loom.config  the comment states the rule rather than blaming the tag. Both
                    names are TRUE of upstream: measured again just now,
                    `git ls-remote https://github.com/ROCm/hrx-system` returns
                    refs/tags/v0.2.0 and refs/heads/release/v0.2, both 0cd370f2baaa.
                    They are false in the clone every lane here reads. The pin cannot
                    be a name whose meaning depends on which of the two repositories
                    you are standing in.

pre-pr-checks 13 green / 3 skipped; loom_pin_check --check rc 0 on the edited config.
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Duplicate pair: this and #3188 add the same clarification to the same docs/releases.md row, four minutes apart. Flagging rather than fixing — the prose is not mine and both are the shared account, so whichever lane owns the smaller one should close it with its branch.

They carry the same facts, and I checked the four measured numbers they both assert, because a doc row is exactly where a wrong pin fact hides:

ROCm/hrx-system   refs/tags/v0.2.0       0cd370f2baaa     (the pinned commit)
ROCm/hrx-system   refs/heads/release/v0.2 0cd370f2baaa    (same commit)
1bit-MONSTER/hrx-system  refs/tags/v0.2.0  12f2db54fe30   (a different, May tag)
1bit-MONSTER/hrx-system  refs/heads/release/v0.2  does not exist (0 refs)

So both wordings are true. The difference worth deciding on rather than both merging: #3191 also carries the comment block in config/loom.config that records why the ref lines are gone, which is the thing that stops a future reader adding branch=release/v0.2 back "because it is true upstream" — the file's own reason would be missing. #3188 states the fork's side more explicitly in the table row.

This is the second duplicate pair in the census/Loom pin area inside an hour (#3183/#3184 was the first, and duplicate_fixes_check missed that one too because the two said Fixes vs Advances). Engine is also at 6 open / 6 non-draft right now against a cap of 3, so a pair that cannot both merge is costing two build slots.

… the correction

Sweeping for the rest of the tag confusion after the docs cell, the config had it
twice: the old L5 comment said the release line is "diverged from main (597 / 16)" and
that "a build from main is NOT this toolchain", which is the claim ORCH's 09:3x AST
correction withdrew -- a branch the refreshed mirror does not carry. Leaving it there
while the note three lines below says the opposite is worse than either alone.

The bullet now states what is measured on upstream itself (`git ls-remote
https://github.com/ROCm/hrx-system` → refs/tags/v0.2.0 and refs/heads/release/v0.2,
both the pinned sha) and keeps the one part that is still true: 314238a81c is an
ancestor of the release commit, so no gated card needs a newer build.

pre-pr-checks 13 green / 3 skipped; loom_pin_check --check rc 0.
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Heads-up: this collides with #3188, which edits the same docs/releases.md line and was opened within the same minute. Both rewrite the Loom row's v0.2.0 … on release/v0.2 phrasing; this PR is the superset (it also fixes the config/loom.config comment), so I have suggested on #3188 that it close in favour of this one rather than leave one of the two conflicted. Your config/loom.config wording — "the pin cannot be a name whose meaning depends on which of the two repositories you are standing in" — is the formulation worth keeping, precisely because it is true of upstream and false only in the fork clone, rather than "the tag lies".

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at c364e53: READY — and it is the survivor of the pair with #3188, on precision rather than on typing. I ran the ls-remote that both PRs are arguing about, against both repositories:

$ git ls-remote https://github.com/ROCm/hrx-system 'refs/tags/v0.2.0' 'refs/heads/release/v0.2'
0cd370f2baaa…   refs/heads/release/v0.2
0cd370f2baaa…   refs/tags/v0.2.0
$ git ls-remote https://github.com/1bit-MONSTER/hrx-system 'refs/tags/v0.2.0' 'refs/heads/release/v0.2'
12f2db54fe30…   refs/tags/v0.2.0          (no release/v0.2 at all)

So both statements of fact are right and yours is the sharper one: the two names really are true of upstream (same commit, tag and branch), and false in the fork — which is exactly why your sentence is the one to keep, "the pin cannot be a name whose meaning depends on which of the two repositories you are standing in". That is a rule; #3188's version is the same fact without the rule, and it also leaves the config comment in place. Yours edits the comment too, so it is a strict superset.

One thing worth recording while you are here: yesterday that fork tag read 0cd370f2baaa to me (git ls-remote --tags origin from a clone whose remote is the fork), and today it reads 12f2db54fe. Either the tag moved in the last day or one of the two answers came from a different remote than I assumed — and either way it is more evidence for your rule: a force-updated tag is precisely how a name stops meaning one thing.

I have asked #3188 to close into this one. The config/loom.config hunk — replacing the "a tag name that means one commit upstream and another in our fork" comment with the two-repository statement — is the part that survives the merge and the part a lane reading the file needs.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at c364e53: READY — the claim that replaces the old text is true of upstream and false of our fork, which I measured on both remotes just now:

$ git ls-remote https://github.com/ROCm/hrx-system.git 'refs/heads/release/v0.2' 'refs/tags/v0.2.0'
0cd370f2baaa0cfef47cc23007f1a109906f8a52   refs/heads/release/v0.2      <- upstream: both names, the pinned commit
0cd370f2baaa0cfef47cc23007f1a109906f8a52   refs/tags/v0.2.0
$ git ls-remote https://github.com/1bit-MONSTER/hrx-system.git 'refs/heads/release/v0.2'
   (no output)                                                          <- our fork: the branch does not exist
$ git ls-remote https://github.com/1bit-MONSTER/hrx-system.git 'refs/tags/v0.2.0'
12f2db54fe306810aea51d1c222289ef7b0f67dc   refs/tags/v0.2.0             <- our fork: a May tag, no version.json

So the two names are not lies — they are true of the repository the pin actually names and false in the clone every lane here reads, and your sentence states that rule better than the comment it replaces: "the pin cannot be a name whose meaning depends on which of the two repositories you are standing in." Withdrawing the "diverged from main (597 / 16)" claim in the same edit is the right call too — I could not reproduce it either, and a number nobody can re-derive is worse than no number.

Two notes, neither an ask:

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at 2523590: READY

Two files, +6/−3, and the new head also withdraws a stale claim of its own ("the release line is 'diverged from main (597 / 16)' came from a branch the refreshed mirror does not carry") — I had verified that 597/16 number in an earlier review, in this clone, so the withdrawal is right for the same reason the pin itself is being fixed: the number was true of a branch that is not the thing the pin names.

The claim, split into the two parts that are not the same question

$ git ls-remote https://github.com/ROCm/hrx-system  refs/tags/v0.2.0 refs/heads/release/v0.2
0cd370f2baaa…  refs/heads/release/v0.2
0cd370f2baaa…  refs/tags/v0.2.0                    ← upstream: both names, both the pinned commit

$ git ls-remote https://github.com/1bit-MONSTER/hrx-system  refs/tags/v0.2.0 refs/heads/release/v0.2
12f2db54fe30…  refs/tags/v0.2.0                    ← our fork: a different tag, and no release/v0.2 at all

So the PR's sentence — "In OUR fork v0.2.0 is a different, May tag and release/v0.2 does not exist" — is true, and now measured against the fork itself. That is the fact that makes the name unusable from this fleet, and the reason ref=/branch= are gone.

One parenthetical that is wrong about which repository this box is in

config/loom.config:55-56 says "measured 2026-11-21 in ~/amd-oss/loom-fun/hrx-system, which is our fork 1bit-MONSTER/hrx-system and not ROCm/hrx-system". That clone's remote is upstream:

$ cd ~/amd-oss/loom-fun/hrx-system && git remote get-url origin
https://github.com/ROCm/hrx-system

and its local tag is the stale one — git rev-parse v0.2.0 → 12f2db54fe, the fork's value, with no local release/v0.2 branch. That is almost certainly how the parenthetical came about, and it is the same confusion the PR exists to end: the clone tracks upstream but carries a local tag from elsewhere, so a reader who follows the path lands in a tree whose remote disagrees with the sentence. Two ways to make it exact, both one line: name the clone as "whose local v0.2.0 tag is stale (the fork's value) although origin is upstream — git fetch --tags fixes it", or drop the path and keep only the two ls-remote lines above, which say everything the sentence is trying to say.

Everything else stands: the row stops naming a tag, the "one name, two histories" rule is stated where a lane will read it, and #3188 — which changes the same line without the measurement — has my CHANGES asking for it to close in this PR's favour (the two conflict: merge-tree pr/3188 pr/3191 → docs/releases.md).

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 2523590)

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Clarity on Repository Pinning

The updated comments in config/loom.config clarify that the pin uses a commit hash rather than a branch or tag name to avoid ambiguity between upstream and forked repositories. This is a good practice for ensuring reproducibility and avoiding confusion when the same tag or branch name refers to different commits in different repositories.

#   * the tag and the `release/v0.2` branch are UPSTREAM's, and both point at the `sha=` above (measured on upstream
#     itself, 2026-11-21: `git ls-remote https://github.com/ROCm/hrx-system`). In OUR fork `v0.2.0` is a different, May tag
#     and `release/v0.2` does not exist -- so this file names neither (see the note further down). The withdrawn claim that
#     the release line is "diverged from main (597 / 16)" came from a branch the refreshed mirror does not carry;
#   * `.bazelversion` at v0.2.0 is 9.3.2 (the dev commit shipped 9.2.0), so the builder moves with the pin.
#
# So the default is `pip install hrx-loom==0.2.0`; the source build below stays recorded because the wheel's provenance is a
# tag, not a wheel-metadata field, and because a future card may need an unreleased commit.
repo=ROCm/hrx-system
sha=0cd370f2baaa0cfef47cc23007f1a109906f8a52
# NO `ref=`/`branch=` LINES, DELIBERATELY (measured 2026-11-21 in ~/amd-oss/loom-fun/hrx-system, which is our fork
# 1bit-MONSTER/hrx-system and not ROCm/hrx-system): `v0.2.0` there is **12f2db54fe30**, a MAY tag of our fork that carries no
# loom/packaging/python/version.json at all, and `release/v0.2` does not exist in it. Upstream's SDK-0.2.0 release commit is
# the `sha=` above (2026-11-16, "[Loom] Prepare SDK 0.2.0 (#3313)"); it is present in the mirror but not on its main line.
# Both names are TRUE of upstream -- `git ls-remote https://github.com/ROCm/hrx-system` returns
# `refs/tags/v0.2.0` and `refs/heads/release/v0.2`, both `0cd370f2baaa`, measured 2026-11-21 -- and false in the clone every
# lane here reads. So the rule is not "the tag lies": **the pin cannot be a name whose meaning depends on which of the two
# repositories you are standing in.** This file pins the commit instead, and `tools/ci/loom_pin_check.py` refuses a `ref=`
# that does not resolve to the pinned sha if one is ever added back.
Documentation Clarity

The documentation in docs/releases.md now correctly specifies that the Loom toolchain is sourced from the upstream ROCm/hrx-system repository, clarifying the origin of the v0.2.0 tag and release/v0.2 branch. This helps avoid confusion for users who might otherwise assume the tag refers to the forked repository.

| Loom toolchain (GPU cards) | `hrx_loom 0.2.0` (PyPI, 2026-11-16) from **upstream** `ROCm/hrx-system` `0cd370f2baaa` (where its `v0.2.0` tag and `release/v0.2` branch both resolve to that commit; our fork's `v0.2.0` is a different, May tag and has no `release/v0.2`) + catalog `hrx-loom-library v0.2.0` @ `1fd6bd23279e`, and the launched `loom-serve` binary `9debb17f0482…` (`config/loom.config`; the binary cannot report its own toolchain, so the pin records the file) |

@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit 2523590

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant