Skip to content

fix: Attribution footer source and format (repoman, markdown link) - #136

Merged
rubambiza merged 14 commits into
rossoctl:mainfrom
rubambiza:worktree-fix-footer-attribution
Nov 10, 2026
Merged

rubambiza merged 14 commits into
rossoctl:mainfrom
rubambiza:worktree-fix-footer-attribution

Conversation

@rubambiza

@rubambiza rubambiza commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The attribution footer every RepoMan program emits via skill_attribution() read
Generated by RepoMan <skill>@<sha> (<agent-skills-url>) — wrong casing, plain text, and an
rossoctl/agent-skills link that 404s for repoman-native skills (#131). This fixes all three:

  • Resolved footer now reads Generated by repoman [<skill>@<sha>](<blob-url-at-sha>). —
    lowercase repoman, a single markdown link to the skill's SKILL.md blob at the pinned SHA.
  • When no SHA resolves, the fallback is linkless (Generated by repoman <skill>) rather than
    an unverified blob/main URL 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_REPO default flips rossoctl/agent-skills → rossoctl/repoman, the one repo
    every skill is vendored into at release time, so the links resolve. The env var stays an
    overridable default.
  • Stale-source _meta reconciliation: resolve_skill_meta now treats a _meta.<skill>.json
    whose .source differs from SKILL_SOURCE_REPO as stale and re-resolves it, so existing
    installs pinned to an agent-skills SHA self-heal on the next run instead of 404ing — the exact
    regression the default flip would otherwise cause.
  • Fixes the dep-bump-fixer comment dedup, which the footer-format change surfaced: the signature
    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 malformed
    gh pr view --jq --arg call 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 _meta lifecycle (refresh-on-skill-update beyond the
stale-source case handled here) stays with #10.

Testing

  • tests/test-skill-meta.sh and tests/test-attribution-consumers.sh updated to the new
    format, including a stale-source-repair case and the linkless-unresolved case. A default-source
    case asserts the unset default hosts at rossoctl/repoman and never names agent-skills.
  • tests/test-dep-bump-fixer-dedup.sh drives the real fixer_comment_count helper against a
    stubbed gh_with_backoff: asserts the three footer forms count, bare mentions don't, and a
    fetch failure returns -1 (unknown) so a transient error never re-posts a duplicate.
  • tests/test-lib-inventory.sh updated for the new public helper (28 → 29).
  • shellcheck --severity=warning clean 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

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]>
@rubambiza rubambiza added the ready-for-ai-review Request automated AI code review from clawgenti label Nov 6, 2026

@clawgenti clawgenti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.sh still asserts the old fallback footer string via exact equality; both test jobs fail on it. Update its FALLBACK to the new format.
  • suggestion spec deliverables (line 87) — add tests/test-weekly-report.sh to the list of footer-asserting tests to update.

Reviewed by clawgenti using the github-pr-review skill

Comment thread scripts/github-api.sh Outdated
"$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).' \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 clawgenti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 omits tests/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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@rubambiza

Copy link
Copy Markdown
Contributor Author

Fixed the must-fix in ccdc61b — tests/test-weekly-report.sh asserted the old fallback footer by exact equality, so CI went red. Updated its FALLBACK to the new form (Generated by repoman [github-weekly-report](…/rossoctl/repoman/blob/main/…)). Good catch; my earlier sweep matched the inline footer literal but missed this file's FALLBACK variable. I re-swept all of tests/ — no other stale Generated by RepoMan footer assertion remains. All three footer-affected tests pass and shellcheck is clean.

Took the suggestion too: the spec's test list should include test-weekly-report.sh.

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]>
@rubambiza

Copy link
Copy Markdown
Contributor Author

Took the nit in 5bdf101 — the spec's deliverables now list tests/test-weekly-report.sh (its exact-match FALLBACK) alongside the other two footer-asserting tests. Docs-only; no code/test change since the green ccdc61b.

@clawgenti clawgenti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@rubambiza rubambiza added ready-for-human-review AI review passed, ready for human reviewer and removed ready-for-ai-review Request automated AI code review from clawgenti labels Nov 9, 2026

@jimcadden jimcadden left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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 unverified blob/main link (#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-125 still states the attribution target is rossoctl/agent-skills and 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:297 comment still reads Generated by RepoMan ...; the output is now a lowercase markdown link.
  • The PR body defers re-vendoring; spec deliverable 3 (vendor-engine.sh run + stamp into rossoctl/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.

Comment thread scripts/github-api.sh Resolved
Comment thread tests/test-skill-meta.sh Resolved
Comment thread scripts/github-api.sh Resolved
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]>
@rubambiza

Copy link
Copy Markdown
Contributor Author

Thanks Jim — the must-fix was a real gap I'd wrongly scoped out. All addressed in 72a8c90:

  • must-fix (stale _meta → 404): resolve_skill_meta now re-resolves when stored .source ≠ current SKILL_SOURCE_REPO, rewriting both .version and .source (the mv-on-success path). A matching source stays authoritative, so there's no needless re-resolve. This makes the default flip safe for existing installs, so skill_attribution hard-codes rossoctl/agent-skills, so footers for skills born elsewhere link to a 404 #131's 'never 404' holds — it's in scope here now, not deferred to feat: PR review bot with scanner/fixer pattern #10.
  • suggestion (test:52): added a dedicated stale-source-repair case — seeds {version:<old sha>, source:rossoctl/agent-skills}, calls with the repoman default, and asserts the SHA re-resolves and .source is rewritten. (The old default-source case couldn't catch it, as you noted.)
  • suggestion (309, fallback): the unresolved branch now emits a linkless Generated by repoman <skill> — no unverified blob/main link (skill_attribution hard-codes rossoctl/agent-skills, so footers for skills born elsewhere link to a 404 #131 item 4). Updated the three suites' fallback assertions to match.
  • suggestion (spec:79) + phase-6 spec: named 2026-10-05-repoman-phase6-provenance-attribution-design.md as superseded, and added a 'superseded by 2026-11-06' pointer in that spec's header (it still described the agent-skills target + old format).
  • minor (github-api.sh:297 comment): updated to describe the lowercase markdown footer + linkless fallback.
  • re-vendor: still tracked as spec deliverable 5 (separate PR into rossoctl/repoman after merge), not dropped.

All three footer suites pass and shellcheck --severity=warning is clean locally.

@rubambiza rubambiza added ready-for-ai-review Request automated AI code review from clawgenti and removed ready-for-human-review AI review passed, ready for human reviewer labels Nov 9, 2026

@clawgenti clawgenti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 removed blob/main fallback or the old casing.

Reviewed by clawgenti using the github-pr-review skill

Comment thread tests/test-skill-meta.sh Resolved
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]>
@rubambiza

Copy link
Copy Markdown
Contributor Author

Cleaned up the doc/comment leftovers in da8f930 — the must-fix and all behavior were already resolved at 72a8c90; these are comments/docs only:

  • spec:71 — fixed the self-contradiction: the fallback bullet now says linkless, pointing at the LINKLESS section (no more 'blob/main markdown link').
  • test-skill-meta.sh:62 + test-attribution-consumers.sh:6 — headers reworded from 'blob/main fallback' to 'linkless fallback'.
  • github-api.sh:220/240/271 — comments + WARN now say 'linkless attribution', and the :310 doc comment is lowercase 'Generated by repoman'.
  • link-health-scanner.sh:52 — the attribution comment now says 'linkless footer'.

Left untouched (deliberately, out of scope for #131): the scanners' own issue/PR-body signatures (link-health-scanner.sh:281/531/577, the TODO(RepoMan Phase 2) at :44, and the real issue-content URL at :270) — those are a separate attribution string, not the skill_attribution footer. The RepoMan Phase 6 section title at github-api.sh:198 is a phase reference, not footer output.

All three footer suites pass and shellcheck --severity=warning is clean.

@clawgenti clawgenti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 jq contains over PR comment bodies, :264-265), but neither new footer form contains that substring: resolved is Generated by repoman [dep-bump-fixer@<sha>](…), linkless is Generated 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-81 comment anticipates (inline at scripts/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:18 still describe the removed blob/main fallback or old casing.

Reviewed by clawgenti using the github-pr-review skill

Comment thread scripts/github-api.sh Resolved
Comment thread tests/test-weekly-report.sh Resolved
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]>
@rubambiza

Copy link
Copy Markdown
Contributor Author

Addressed in a39c931:

  • must-fix dep-bump-fixer.sh:82 — narrowed FIXER_SIGNATURE to the bare skill name dep-bump-fixer, the maximal substring both new footer forms share (repoman [dep-bump-fixer@<sha>](…) and linkless repoman dep-bump-fixer.). Added tests/test-dep-bump-fixer-dedup.sh asserting the key is containsed in each form (RED with the old key, GREEN now), registered in both CI groups. Rewrote the now doubly-wrong dedup rationale at :73-78.
  • nit test-weekly-report.sh:7 — header now says the fallback is the linkless footer.
  • nit same-class stale comments — pr-review-fixer.sh:76, dep-bump-scanner.sh:77, link-health-fixer.sh:18 all refreshed from blob/main to linkless fallback.

The remaining RepoMan/blob/main strings (link-health scanner/fixer PR-body signatures, automation-health-dashboard body, link-extract test fixtures) are each program's own human-readable signature text, not the skill_attribution footer, so left out of scope per the PR's scope discipline.

@clawgenti clawgenti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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).

Comment thread scripts/dep-bump-fixer.sh Resolved
Comment thread scripts/dep-bump-fixer.sh Resolved
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]>
@rubambiza rubambiza self-assigned this Nov 10, 2026

@clawgenti clawgenti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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, because gh --jq takes a single expression and has no --arg (inline). already_commented is always 0, so the fixer re-comments on every run whatever the key is. The new test re-implements the match with standalone jq, 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).

Comment thread scripts/dep-bump-fixer.sh Resolved
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 clawgenti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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).

Comment thread scripts/github-api.sh Resolved
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 jimcadden left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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.

Comment thread scripts/github-api.sh Resolved
@rubambiza rubambiza added the ready-for-human-review AI review passed, ready for human reviewer label Nov 10, 2026
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]>
@rubambiza

Copy link
Copy Markdown
Contributor Author

By-passing without passing checks because they were passing recently, and the most recent merge commits bring in passing tests from other PRs.

@rubambiza
rubambiza merged commit c138e5f into rossoctl:main Nov 10, 2026
2 checks passed
@rubambiza
rubambiza deleted the worktree-fix-footer-attribution branch November 10, 2026 18:14
@clawgenti clawgenti mentioned this pull request Nov 16, 2026
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-ai-review Request automated AI code review from clawgenti ready-for-human-review AI review passed, ready for human reviewer

Projects

None yet

3 participants