Skip to content

Commit da8f930

Browse files
committed
docs: Purge stale blob/main + RepoMan footer references
clawgenti leftovers on #136 (comments/docs only, no behavior): the unresolved footer is linkless now, so update the comments, WARN, test headers, and the self-contradicting spec bullet that still described a blob/main fallback or old RepoMan casing. Left the scanners' own issue/PR-body signatures (a separate attribution string, not the skill_attribution footer). Assisted-By: Claude Code (Anthropic AI) <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
1 parent 72a8c90 commit da8f930

5 files changed

Lines changed: 11 additions & 9 deletions

File tree

‎docs/specs/2026-11-06-attribution-footer-source-and-format-design.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ Generated by repoman [<skill>@<sha>](https://github.com/<repo>/blob/<sha>/skills
6868
- The `<skill>@<sha>` text + blob URL become a single markdown link.
6969
- The link target is unchanged: the skill's `SKILL.md` **blob at the pinned SHA** (not a
7070
commit URL).
71-
- The no-SHA fallback branch (unresolved provenance) keeps its `blob/main` form, updated
72-
to the same `repoman` casing + markdown-link shape.
71+
- The no-SHA fallback branch (unresolved provenance) is **linkless** — see the
72+
"Unresolved-provenance footer is LINKLESS" section below. (It does not emit a `blob/main`
73+
link.)
7374

7475
## Out of scope
7576

‎scripts/github-api.sh‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ SKILL_SOURCE_REPO="${SKILL_SOURCE_REPO:-rossoctl/repoman}"
217217
# canonical source repo's commit history for that skill's path. On success the
218218
# meta file is written and the SHA echoed; on failure (offline, unauthorized,
219219
# rate limited) NOTHING is written -- the function warns to stderr and echoes
220-
# empty, so the caller falls back to the blob/main attribution and the next run
220+
# empty, so the caller falls back to the linkless attribution and the next run
221221
# retries. It must never write a sentinel such as {"version":"unknown"}: a
222222
# present-but-bogus file would stop the retry and pin a wrong version forever.
223223
#
@@ -237,7 +237,7 @@ resolve_skill_meta() {
237237
# authoritative, never overwritten (refreshing on skill update is the deploy
238238
# layer's job). But a present-yet-corrupt file (truncated write, hand-edit,
239239
# not JSON) yields no .version -- treating that as authoritative would pin the
240-
# skill to the blob/main fallback forever with no self-heal. So we only short-
240+
# skill to the linkless fallback forever with no self-heal. So we only short-
241241
# circuit on a readable version; a corrupt file falls through to re-resolution,
242242
# which overwrites it on success, honoring the spec's self-heal invariant.
243243
if [ -f "$meta_file" ]; then
@@ -268,7 +268,7 @@ resolve_skill_meta() {
268268
--jq '.[0].sha' 2>/dev/null)
269269

270270
if [ -z "$sha" ] || [ "$sha" = "null" ]; then
271-
echo "WARN: could not resolve provenance SHA for skill '$skill_name'; using blob/main attribution (will retry next run)." >&2
271+
echo "WARN: could not resolve provenance SHA for skill '$skill_name'; using linkless attribution (will retry next run)." >&2
272272
printf ''
273273
return 0
274274
fi
@@ -307,7 +307,8 @@ resolve_skill_meta() {
307307
# Usage: footer=$(skill_attribution "link-health-scanner")
308308
# Args:
309309
# $1 - skill name (also the path segment under skills/)
310-
# Prints: a one-line "Generated by RepoMan ..." attribution footer.
310+
# Prints: a one-line "Generated by repoman ..." attribution footer (markdown link
311+
# when a SHA resolves, linkless otherwise).
311312
skill_attribution() {
312313
local skill_name="$1"
313314
# REPOMAN_SKILL_DIR lets tests pin _meta outside the shared scripts dir.

‎scripts/link-health-scanner.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ REPORT_TARGET_PATH="automation-health/link-health.md"
4949

5050
# Provenance footer for the report-PR body. Resolved once at startup: the
5151
# helper lazily writes _meta.<skill>.json beside this skill and returns the pinned-SHA
52-
# RepoMan attribution (blob/main fallback when the SHA cannot be resolved).
52+
# RepoMan attribution (linkless footer when the SHA cannot be resolved).
5353
SKILL_FOOTER=$(skill_attribution "link-health-scanner")
5454

5555
# Clone dir for the report target: honor an explicit MAIN_REPO_DIR override,

‎tests/test-attribution-consumers.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Pinned-SHA footer for pr-review (pr-review-fixer.sh footer) and
44
# weekly-report (appended to the posted report).
55
# The rules are: write _meta only after the SHA resolves, never overwrite a valid
6-
# file, and fall back to blob/main when resolution fails.
6+
# file, and fall back to a linkless footer when resolution fails.
77
set -uo pipefail
88
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
99
SCRIPTS="$ROOT/scripts"

‎tests/test-skill-meta.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ case "$foot_def" in
5959
esac
6060

6161
# =============================================================================
62-
# Branch 2: gh fails -> nothing is written and the blob/main fallback emitted.
62+
# Branch 2: gh fails -> nothing is written and the linkless fallback emitted.
6363
# =============================================================================
6464
dir2="$TEST_TMPDIR/case2"
6565
mkdir -p "$dir2"

0 commit comments

Comments
 (0)