Repository navigation
Description
What
bootstrap-repo-main.yml's own comment says the workflow installs the tag-on-merge.yml caller on the freshly created main so that "A new repo's first landing is therefore tagged". Measured twice on two new repos: the first landing is not tagged, because creating refs/heads/main through the git-data refs API produces no push event and no workflow run — so the caller has nothing to fire on.
Measured
Two repos bootstrapped with gh workflow run bootstrap-repo-main.yml -f repos=<name> after pushing a non-main branch:
bootstrap-repo-main: created=1 absent_or_seeded=0 failed=0 needs_operator_settings=1
Both ended with main containing the branch's commit plus the installed caller:
$ git ls-tree -r --name-only origin/main | grep .github
.github/workflows/tag-on-merge.yml
$ git tag --list 'v2026*'
← empty on both
The caller's triggers are workflow_run (of charly/pr-validator) and push to main. A bootstrapped ref creation is neither: there is no charly/pr-validator run (no PR) and no push event (the ref is created by the API). So the CalVer tag the workflow promises does not exist until some later PR merges — and tag-on-merge then tags that later merge, not the first landing.
Why it matters
A new repo whose first landing is untagged cannot be consumed by a ref. Measured consequence: a candy ref to such a repo fails to resolve —
charly box validate
error: kind:local "…-app": remote candy "@github.com/opencharly/<repo>" not found
(candy "…" doesn't exist in github.com/opencharly/<repo>)
— because the resolver has no ref to fetch the remote content at. So the bootstrap's own promise ("the first landing is tagged") is load-bearing for consumer legs, and its absence blocks them until an unrelated PR happens to merge.
Options (whichever is judged best)
- After creating the ref, fire the caller explicitly for that repo (a
workflow_dispatchon the reusabletag-on-merge.yml, or a second workflow run that mints the tag at the bootstrap commit) — turning the comment into the measured behaviour. - Mint the tag in
bootstrap-repo-main.shitself with the App token (the capability it already holds — it writes files withcontents: write, and tags are the same permission). - If neither is wanted, correct the workflow's comment to say the first landing is tagged only when a later PR merges, and have consumer docs state that a bootstrapped repo needs one merge before it can be referenced.
Evidence
Both bootstraps' run logs are in opencharly/.github Actions history; the second was run today for a repo whose first landing is on main with the caller present and no tag.
Assisted-by: DSH deepseek-v4.1-flash (fully tested and validated)
Activity
aitrawog commentedon Oct 14, 2026
Additional evidence for the "first landing is not tagged" mechanism, measured on a repo bootstrapped after this issue was filed.
The caller the bootstrap installs does fire for the bootstrapped ref, and skips:
d2b481dis the commit the bootstrap itself created onmain(the caller install, on top of the new repo's first landing). So the trigger the workflow's comment relies on is not simply absent — it arrives, and its condition does not hold for a bootstrapped ref: there is nocharly/pr-validatorrun to key off (no PR was ever opened) and nopushtomainin the ordinary sense (the ref was created through the git-data API).That sharpens the three options in the issue body: (1) fire the reusable explicitly for the new repo after creating the ref, (2) mint the tag inside
bootstrap-repo-main.shwith the App token it already holds, or (3) correct the comment and document that a bootstrapped repo needs one merged PR before it can be referenced by a candy ref.Measured consequence, from the consuming side:
charly box validateon a bed that references such a repo fails withremote candy "@github.com/opencharly/<repo>" not found, because there is no ref to fetch the remote content at.Assisted-by: DSH deepseek-v4.1-flash (fully tested and validated)
aitrawog commentedon Oct 14, 2026
Correction to my own earlier comment on this thread — the consumer consequence I stated there was misattributed, and the measurement that disproves it also removes this issue as a blocker for that consumer.
What I claimed: that a candy ref to a bootstrapped repo "fails to resolve because there is no ref to fetch the remote content at".
What is actually true, measured on a repo that now has a tag:
So the resolver resolves a bare repo ref to a candy in that repo's root — which is why the org's own
@github.com/opencharly/layer-check-substrate-layer:<tag>works (its entitycheck-substrate-layersits in the rootcharly.yml). A candy undercandy/<name>/must be addressed by its path:@github.com/opencharly/<repo>/candy/<name>[:ref]. The missing tag was real but not the cause: the bare ref fails with the tag present, and the path ref succeeds without one.What this leaves of the finding. The core measurement stands and is unchanged:
tag-on-mergeruns and skips for a bootstrapped first landing (head=d2b481d completed/skipped), so such a repo has no CalVer tag until a real PR merges. That is still worth fixing for the reasons in the issue body (consumers should pin immutable refs, and the workflow's comment promises a tag). What it is not is a blocker for a candy ref, and I have corrected the umbrella ledger accordingly.Apologies for the misattribution — the wrong cause was recorded as a law before it was measured in the other direction.
Assisted-by: DSH deepseek-v4.1-flash (fully tested and validated)
feat: the Firecracker substrate slice — the check verb served, dispat…