Repository navigation
fix: Attribution footer source and format (repoman, markdown link) - #136
Conversation
Flip SKILL_SOURCE_REPO default to rossoctl/repoman (the one place all skills are vendored at release time), render the footer as 'Generated by repoman [skill@sha](blob-url)', closing rossoctl#131. Assisted-By: Claude Code (Anthropic AI) <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
skill_attribution now emits 'Generated by repoman [skill@sha](blob-url).' instead of 'Generated by RepoMan skill@sha (blob-url).' — lowercase and a single markdown link. Both branches (pinned-SHA and blob/main fallback) updated; footer-asserting tests updated to the new shape. Assisted-By: Claude Code (Anthropic AI) <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
Flip SKILL_SOURCE_REPO default from rossoctl/agent-skills to rossoctl/repoman — the one repo every skill is vendored into at release time — so footer links resolve instead of 404ing for repoman-native skills. The env var stays an overridable default. Adds a test asserting the unset default hosts at rossoctl/repoman. Fixes rossoctl#131 Assisted-By: Claude Code (Anthropic AI) <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
clawgenti
left a comment
There was a problem hiding this comment.
The footer format and SKILL_SOURCE_REPO default changes match the approved spec; both updated test files pass locally and the repoman blob links resolve at the pinned SHAs. However, CI is red on ubuntu and macos — a third footer-asserting test was missed.
- must-fix
scripts/github-api.sh:309—tests/test-weekly-report.shstill asserts the old fallback footer string via exact equality; bothtestjobs fail on it. Update itsFALLBACKto the new format. - suggestion spec deliverables (line 87) — add
tests/test-weekly-report.shto the list of footer-asserting tests to update.
Reviewed by clawgenti using the github-pr-review skill
| "$skill_name" "${sha:0:7}" "$SKILL_SOURCE_REPO" "$sha" "$skill_name" | ||
| else | ||
| printf 'Generated by RepoMan %s (https://github.com/%s/blob/main/skills/%s/SKILL.md).' \ | ||
| printf 'Generated by repoman [%s](https://github.com/%s/blob/main/skills/%s/SKILL.md).' \ |
There was a problem hiding this comment.
must-fix: This change (together with the default flip at line 204) breaks tests/test-weekly-report.sh, which this PR doesn't update. Its FALLBACK constant (line 44) still expects Generated by RepoMan github-weekly-report (https://github.com/rossoctl/agent-skills/blob/main/skills/github-weekly-report/SKILL.md). via exact string equality (lines 53 and 64), so both test CI jobs fail. Update FALLBACK to what this branch now emits — Generated by repoman [github-weekly-report](https://github.com/rossoctl/repoman/blob/main/skills/github-weekly-report/SKILL.md). (reproduced locally on this head).
|
|
||
| 1. `scripts/github-api.sh`: `SKILL_SOURCE_REPO` default → `rossoctl/repoman`; both | ||
| `skill_attribution` `printf` branches → `repoman` + markdown-link format. | ||
| 2. Update the unit tests that assert the footer string — `tests/test-skill-meta.sh` and |
There was a problem hiding this comment.
suggestion: This deliverable lists only tests/test-skill-meta.sh and tests/test-attribution-consumers.sh, but tests/test-weekly-report.sh also asserts the footer string (exact-equality on the blob/main fallback form) — that's the miss that turned CI red. Worth adding it here so the spec records the full blast radius.
test-weekly-report.sh asserted the old 'Generated by RepoMan ... (url)' FALLBACK by exact equality, so CI went red after the footer change. Update it to 'Generated by repoman [github-weekly-report](repoman blob/main)'. Swept all tests: no other stale footer literal remains. Assisted-By: Claude Code (Anthropic AI) <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
clawgenti
left a comment
There was a problem hiding this comment.
Follow-up verified at ccdc61b: tests/test-weekly-report.sh's FALLBACK now matches the emitted footer exactly, both CI legs are green, and the new rossoctl/repoman default resolves live for the bundled skills (spot-checked github-pr-review → a0b39d3). One optional doc nit remains from the last round.
- nit
docs/specs/2026-11-06-attribution-footer-source-and-format-design.md:87— deliverables list still omitstests/test-weekly-report.sh(the third footer-asserting test).
Reviewed by clawgenti using the github-pr-review skill
|
|
||
| 1. `scripts/github-api.sh`: `SKILL_SOURCE_REPO` default → `rossoctl/repoman`; both | ||
| `skill_attribution` `printf` branches → `repoman` + markdown-link format. | ||
| 2. Update the unit tests that assert the footer string — `tests/test-skill-meta.sh` and |
There was a problem hiding this comment.
nit (optional, non-blocking): deliverable 2 lists the two footer-asserting tests planned at design time, but tests/test-weekly-report.sh is the third — it was the miss that turned CI red last round (fixed in ccdc61b). Adding it here would record the full blast radius for future readers of the spec.
|
Fixed the must-fix in ccdc61b — Took the suggestion too: the spec's test list should include |
clawgenti nit on rossoctl#136: the deliverables omitted the third footer-asserting test (its exact-match FALLBACK). Add it. Assisted-By: Claude Code (Anthropic AI) <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
|
Took the nit in 5bdf101 — the spec's deliverables now list |
clawgenti
left a comment
There was a problem hiding this comment.
Follow-up at 5bdf101: the spec's deliverables now list all three footer-asserting tests (including test-weekly-report.sh's exact-match FALLBACK), closing the last nit from the previous round. The docs-only delta since ccdc61b introduces no new issues; CI is green on both legs and DCO passes.
All checks pass. Ready for human review.
Reviewed by clawgenti using the github-pr-review skill
jimcadden
left a comment
There was a problem hiding this comment.
Reviewed end to end at 5bdf101. The change itself is right: the footer format matches the approved spec, SKILL_SOURCE_REPO now points where the skills actually live, and a fresh resolution produces valid links. I confirmed all 8 bundled skills resolve under rossoctl/repoman and that the emitted URLs return 200 for 8/8. CI is green on all four checks, DCO is 5/5, and the three footer-asserting suites plus shellcheck --severity=warning are clean locally.
One must-fix stands between this and approval: flipping the default without reconciling existing _meta.<skill>.json files turns six previously-working footers into 404s.
- must-fix
scripts/github-api.sh:204— see inline. - suggestion
tests/test-skill-meta.sh:52— the new "default source" case cannot catch the must-fix. - suggestion
scripts/github-api.sh:309— the fallback branch still emits an unverifiedblob/mainlink (#131 proposal item 4). - suggestion
docs/specs/2026-11-06-attribution-footer-source-and-format-design.md:79— name the phase-6 spec this supersedes.
Minor notes on files/lines outside the diff:
docs/specs/2026-10-05-repoman-phase6-provenance-attribution-design.md:20,116,122-125still states the attribution target isrossoctl/agent-skillsand shows the old footer format. This PR reverses that; add a "superseded by 2026-11-06" pointer so the two specs don't contradict each other.scripts/github-api.sh:297comment still readsGenerated by RepoMan ...; the output is now a lowercase markdown link.- The PR body defers re-vendoring; spec deliverable 3 (
vendor-engine.shrun + stamp intorossoctl/repoman) must not be dropped after merge.
Author: rubambiza (MEMBER — maintainer)
Areas reviewed: Shell, tests, docs/spec
Agent/IDE config (.claude/.vscode): none
Commits: 5 commits, all signed-off: yes
CI status: passing (DCO, test ubuntu, test macos, pr-title)
Generated by repoman github-pr-review@a0b39d3.
Address Jim's review on rossoctl#136 (closes the real rossoctl#131 regression): - resolve_skill_meta: re-resolve when stored .source != current SKILL_SOURCE_REPO, so flipping the default to rossoctl/repoman does not strand existing installs on a dead agent-skills-pinned SHA (404). - skill_attribution: unresolved provenance now emits a LINKLESS footer instead of an unverified blob/main link (rossoctl#131 item 4). - Tests: add stale-source-repair + linkless-unresolved cases; update the three footer suites' fallback assertions. - Docs: mark the Phase 6 spec superseded here; update the stale skill_attribution header comment; widen this spec's scope/deliverables. Assisted-By: Claude Code (Anthropic AI) <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
|
Thanks Jim — the must-fix was a real gap I'd wrongly scoped out. All addressed in 72a8c90:
All three footer suites pass and |
clawgenti
left a comment
There was a problem hiding this comment.
The stale-source reconciliation properly resolves the previous round's must-fix: a _meta pinned to the old source now re-resolves and rewrites both .version and .source (branch 6 covers repair and matching-source authority), and the unresolved fallback is linkless per #131 item 4. All four checks are green, DCO is 6/6, and every prior review point is addressed — the findings below are doc/comment leftovers only.
- suggestion
docs/specs/2026-11-06-attribution-footer-source-and-format-design.md:71— spec bullet contradicts its own LINKLESS section (inline). - nit
tests/test-skill-meta.sh:62— stale branch-2 header still says "blob/main fallback" (inline). - nit out-of-diff leftovers of the same sweep:
scripts/github-api.sh:220,240(comments),:271(WARN says "using blob/main attribution"),:310("Generated by RepoMan …" doc comment),tests/test-attribution-consumers.sh:6,tests/test-weekly-report.sh:7,scripts/link-health-scanner.sh:52— all still describe the removedblob/mainfallback or the old casing.
Reviewed by clawgenti using the github-pr-review skill
clawgenti leftovers on rossoctl#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]>
|
Cleaned up the doc/comment leftovers in da8f930 — the must-fix and all behavior were already resolved at 72a8c90; these are comments/docs only:
Left untouched (deliberately, out of scope for #131): the scanners' own issue/PR-body signatures ( All three footer suites pass and |
clawgenti
left a comment
There was a problem hiding this comment.
The docs-only sweep correctly purges the flagged references in github-api.sh, the consumers test, and the scanner comment, and the spec bullet now matches the linkless design; all three footer-asserting suites pass locally at da8f930 (DCO green, CI pending on this head). However, the footer format flip breaks dep-bump-fixer's comment dedup — its signature matches no footer this PR emits — and one previously-flagged leftover plus a few same-class stale comments survive the sweep.
- must-fix
scripts/dep-bump-fixer.sh:82—FIXER_SIGNATURE="RepoMan dep-bump-fixer"is the already-commented dedup key (case-sensitive jqcontainsover PR comment bodies,:264-265), but neither new footer form contains that substring: resolved isGenerated by repoman [dep-bump-fixer@<sha>](…), linkless isGenerated by repoman dep-bump-fixer.. Old-format comments still match, so this only bites going forward: every PR the fixer comments on after this merges is invisible to its own dedup and gets re-commented on every subsequent run — unbounded, not the one-time duplicate the:75-81comment anticipates (inline atscripts/github-api.sh:320). - nit
tests/test-weekly-report.sh:7— repeat from the last round: the header still says provenance "falls back to blob/main without network"; the fallback is the linkless footer this line defines. - nit same-class stale comments, comment-only and out-of-diff:
scripts/pr-review-fixer.sh:76,scripts/dep-bump-scanner.sh:77,scripts/dep-bump-fixer.sh:73(plus the now doubly wrong dedup rationale at:76-78),scripts/link-health-fixer.sh:18still describe the removedblob/mainfallback or old casing.
Reviewed by clawgenti using the github-pr-review skill
The fixer dedups its own PR comments by searching comment bodies for FIXER_SIGNATURE. The attribution-footer change (automation#131) dropped the 'RepoMan <skill>@<sha>' form, so the old 'RepoMan dep-bump-fixer' key no longer appears in either new footer (resolved 'repoman [dep-bump-fixer@<sha>](...)' or linkless 'repoman dep-bump-fixer.'). Left as-is, the fixer would stop recognizing its own comments and re-comment on every run. Narrow the key to the bare skill name 'dep-bump-fixer' — the maximal substring both footer forms share — and add a regression test asserting the key is contained in each form. Also refresh the now-stale 'blob/main fallback' comments on the other skill_attribution consumers to say 'linkless fallback'. Assisted-By: Claude Code (Anthropic AI) <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
|
Addressed in a39c931:
The remaining |
clawgenti
left a comment
There was a problem hiding this comment.
Follow-up at a39c931: the last round's must-fix is resolved. FIXER_SIGNATURE is now the bare dep-bump-fixer, which is a substring of both footers skill_attribution can emit (resolved markdown link and linkless). The new tests/test-dep-bump-fixer-dedup.sh reads the signature straight from the script and asserts both forms, and it is wired into the CI shellcheck and test lists. The stale blob/main / RepoMan comments flagged last round are also gone. All four checks are green, and DCO passes on 8/8 commits.
- suggestion
scripts/dep-bump-fixer.sh:82: the bare skill name is a looser dedup key than before (inline). - nit
scripts/dep-bump-fixer.sh:79-81: the "one duplicate comment" caveat no longer holds (inline).
Author: rubambiza (CONTRIBUTOR, returning external)
Areas reviewed: Shell, CI/GitHub Actions, Docs, Tests
Agent/IDE config (.claude/.vscode): none
Commits: 8 commits, all signed-off: yes
CI status: passing
Generated by RepoMan github-pr-review@235a7f7 (https://github.com/rossoctl/agent-skills/blob/235a7f7620139ee3e4ab0872b8439591fe52e8c1/skills/github-pr-review/SKILL.md).
The bare 'dep-bump-fixer' dedup key was too loose: the jq contains ran over every PR comment body, so any comment merely mentioning the tool (a maintainer note, or a link to skills/dep-bump-fixer/) counted as already-commented and silently suppressed analysis. Switch the dedup from contains to a jq test regex anchored to the footer: 'by (repoman \[?|RepoMan )dep-bump-fixer'. It matches all three footer forms — resolved markdown link, linkless, and the legacy RepoMan@sha form (so pre-flip comments keep deduping) — but not an unanchored mention. Extend the regression test to assert both the footer matches and the false-positive rejections. Assisted-By: Claude Code (Anthropic AI) <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
clawgenti
left a comment
There was a problem hiding this comment.
Follow-up at eb9d3ab: last round's suggestion and nit are both addressed. FIXER_SIGNATURE is now a regex anchored to the footer, by (repoman \[?|RepoMan )dep-bump-fixer. It matches the resolved, linkless and legacy footers and rejects bare mentions, and tests/test-dep-bump-fixer-dedup.sh asserts the three matches and the two non-matches. It passes locally at this head, as do all four checks and DCO (9/9). One problem predates this PR, but this PR's dedup work can't take effect until it's fixed.
- must-fix
scripts/dep-bump-fixer.sh:267: the dedup query can never succeed, becausegh --jqtakes a single expression and has no--arg(inline).already_commentedis always0, so the fixer re-comments on every run whatever the key is. The new test re-implements the match with standalonejq, so it doesn't exercise this call.
Author: rubambiza (CONTRIBUTOR, returning external)
Areas reviewed: Shell, Tests
Agent/IDE config (.claude/.vscode): none
Commits: 9 commits, all signed-off: yes
CI status: passing (DCO, test ubuntu, test macos, pr-title)
Generated by RepoMan github-pr-review@235a7f7 (https://github.com/rossoctl/agent-skills/blob/235a7f7620139ee3e4ab0872b8439591fe52e8c1/skills/github-pr-review/SKILL.md).
The dedup check passed '--jq --arg sig <val> <expr>' to gh pr view, but gh's --jq takes a single expression and has no --arg, so the call was malformed, errored, and fell through to '|| echo 0'. The count was always 0 and the fixer re-commented on every run regardless of the key. Extract the check into fixer_comment_count() in github-api.sh: fetch the comments JSON with gh (no --jq) and pipe to a real 'jq --arg sig' so the signature regex is bound correctly. Rewrite the regression test to drive the helper against a stubbed gh_with_backoff instead of re-implementing the match, so it exercises the actual invocation. Assisted-By: Claude Code (Anthropic AI) <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
clawgenti
left a comment
There was a problem hiding this comment.
Follow-up at b56ee82: the dedup query fix from the last round is correct. fixer_comment_count() now fetches --json comments without --jq and pipes the result to a real jq --arg sig … test($sig), so the signature regex is actually bound. The rewritten tests/test-dep-bump-fixer-dedup.sh drives the real helper against a stubbed gh_with_backoff, and it passes locally, along with test-skill-meta, test-attribution-consumers and test-weekly-report. DCO passes on 10/10 commits. However, both test CI legs are red at this head, and they were green at eb9d3ab.
- must-fix
scripts/github-api.sh:69: the new public function trips the lib inventory guard (inline).
Author: rubambiza (CONTRIBUTOR, returning external)
Areas reviewed: Shell, CI/GitHub Actions, Docs, Tests
Agent/IDE config (.claude/.vscode): none
Commits: 10 commits, all signed-off: yes
CI status: failing (test ubuntu-latest / macos-latest: "Run test suite"); DCO and title check pass
Generated by RepoMan github-pr-review@235a7f7 (https://github.com/rossoctl/agent-skills/blob/235a7f7620139ee3e4ab0872b8439591fe52e8c1/skills/github-pr-review/SKILL.md).
The new public helper in github-api.sh added a function to program-lib.sh's surface, which the inventory equivalence guard (rossoctl#35) asserts is unchanged — so both test legs went red. Add fixer_comment_count to the expected set and bump the count. Assisted-By: Claude Code (Anthropic AI) <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
jimcadden
left a comment
There was a problem hiding this comment.
Re-review at 0b7a96e
My round-1 must-fix is resolved, and I reproduced the fix rather than trusting the test:
seed _meta.github-pr-review.json {"version":"235a7f76…","source":"rossoctl/agent-skills"}
→ WARN: … source 'rossoctl/agent-skills' != 'rossoctl/repoman'; re-resolving provenance.
→ meta rewritten {version: a0b39d3…, source: rossoctl/repoman}
→ Generated by repoman [github-pr-review@a0b39d3](…/blob/a0b39d3…/skills/github-pr-review/SKILL.md) → HTTP 200
(The same seed produced a 404 on 5bdf101.) resolve_skill_meta only treats a meta as
authoritative when .source matches SKILL_SOURCE_REPO, so existing installs self-heal on the
next program run instead of staying pinned to an agent-skills SHA that does not exist in repoman.
The unresolved branch is now linkless, which closes the last unverified-URL path.
Verified locally at 0b7a96e: test-skill-meta, test-attribution-consumers,
test-lib-inventory, test-lib-modules, test-dep-bump-fixer-dedup, test-weekly-report all
PASS. CI: test (ubuntu-latest), DCO and pr-title pass; test (macos-latest) was still running
when I wrote this.
The dedup work is also sound: the signature is now a footer-anchored regex
(by (repoman \[?|RepoMan )dep-bump-fixer), so a human comment mentioning the tool no longer
suppresses analysis while legacy by RepoMan dep-bump-fixer@… comments still dedupe;
fixer_comment_count() replaces the malformed gh pr view --jq --arg call (which silently
returned 0), and the lib inventory guard was updated 28 → 29 rather than relaxed.
The phase-6 spec now carries a "partially superseded by" pointer, and the 2026-11-06 spec moves
stale-source reconciliation and the linkless fallback into scope with deliverables.
One body-only note (outside the diff)
The PR Summary no longer matches the code: it says the new format applies "in both the
pinned-SHA and blob/main fallback branches" and that the create-only _meta migration is
"Out of scope (stays in #10)". After 72a8c90 the fallback is linkless and stale-source
reconciliation happens in this PR — and the spec now lists both as deliverables. Worth editing
the Summary so the merged record matches what shipped (and so repoman#10 stops owning a bullet
it no longer has). Spec deliverable 5 (re-vendor into rossoctl/repoman) still has to happen
after merge.
Verdict: approve.
Generated by repoman github-pr-review@a0b39d3.
fixer_comment_count returned 0 both when a PR had no matching comment and when the gh fetch failed, so a transient error read as 'not commented yet' and the fixer re-posted a duplicate. Return -1 (unknown) on fetch/parse failure, and have the caller skip on anything but a hard 0 — only a confirmed zero proves it is safe to comment. Assisted-By: Claude Code (Anthropic AI) <[email protected]> Signed-off-by: Gloire Rubambiza <[email protected]>
Signed-off-by: Gloire Rubambiza <[email protected]>
Signed-off-by: Gloire Rubambiza <[email protected]>
|
By-passing without passing checks because they were passing recently, and the most recent merge commits bring in passing tests from other PRs. |
Summary
The attribution footer every RepoMan program emits via
skill_attribution()readGenerated by RepoMan <skill>@<sha> (<agent-skills-url>)— wrong casing, plain text, and anrossoctl/agent-skillslink that 404s for repoman-native skills (#131). This fixes all three:Generated by repoman [<skill>@<sha>](<blob-url-at-sha>).—lowercase
repoman, a single markdown link to the skill'sSKILL.mdblob at the pinned SHA.Generated by repoman <skill>) rather thanan unverified
blob/mainURL that may 404 (skill_attribution hard-codes rossoctl/agent-skills, so footers for skills born elsewhere link to a 404 #131 item 4).SKILL_SOURCE_REPOdefault flipsrossoctl/agent-skills→rossoctl/repoman, the one repoevery skill is vendored into at release time, so the links resolve. The env var stays an
overridable default.
_metareconciliation:resolve_skill_metanow treats a_meta.<skill>.jsonwhose
.sourcediffers fromSKILL_SOURCE_REPOas stale and re-resolves it, so existinginstalls pinned to an agent-skills SHA self-heal on the next run instead of 404ing — the exact
regression the default flip would otherwise cause.
is now a footer-anchored regex that matches all footer forms (resolved, linkless, legacy) but
not a bare mention of the tool, and
fixer_comment_count()replaces a malformedgh pr view --jq --argcall that silently returned 0.Resolves rossoctl/repoman#10's "attribution source is per skill" bullet (uniform repoman, no
per-skill map). The broader deploy-layer
_metalifecycle (refresh-on-skill-update beyond thestale-source case handled here) stays with #10.
Testing
tests/test-skill-meta.shandtests/test-attribution-consumers.shupdated to the newformat, including a stale-source-repair case and the linkless-unresolved case. A default-source
case asserts the unset default hosts at
rossoctl/repomanand never names agent-skills.tests/test-dep-bump-fixer-dedup.shdrives the realfixer_comment_counthelper against astubbed
gh_with_backoff: asserts the three footer forms count, bare mentions don't, and afetch failure returns
-1(unknown) so a transient error never re-posts a duplicate.tests/test-lib-inventory.shupdated for the new public helper (28 → 29).shellcheck --severity=warningclean on all touched files.Not in this PR
Re-vendoring the change into
rossoctl/repoman(spec deliverable 5) is a separate follow-on.Fixes #131
Assisted-By: Claude Code