Skip to content

feat(link-health): stdlib Python link checker as default (was lychee) - #24

Merged
rubambiza merged 11 commits into
rossoctl:mainfrom
jimcadden:feat/stdlib-link-checker
Nov 24, 2026
Merged

rubambiza merged 11 commits into
rossoctl:mainfrom
jimcadden:feat/stdlib-link-checker

Conversation

@jimcadden

@jimcadden jimcadden commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #3. Closes #27. Vendored side of the lychee → stdlib Python link checker switch, built from rossoctl/automation's feat/stdlib-link-checker branch (rossoctl/automation#123).

  • link-check.py joins the vendored engine set (scripts/vendor-engine.sh extras, with regression-test coverage: copy, stamp listing, missing-source failure).
  • Engine updates land with it: link-health-scanner.sh (LINK_CHECKER toggle, unchecked split/reporting, no auto-close of unchecked previously-broken links, shadow mode), extract-broken-links.sh (unchecked status token), automation-health-dashboard.sh (unchecked count + top-hosts rows), plus doc-drift-precheck/pr-review-fixer updates from automation main.
  • skills/link-health-scanner/SKILL.md rewritten for the python-default contract: prerequisites (python3 >= 3.8, lychee opt-in), LINK_CHECKER, the unchecked egress-refusal bucket (never opens or auto-closes issues), LINK_HEALTH_SHADOW_OUT shadow mode, and the .lychee.toml subset (exclude, exclude_path, accept).
  • skills/automation-health-dashboard/SKILL.md notes the new unchecked rows; CHANGELOG gets an Unreleased entry.
  • The post-merge stamp refresh (d8308c4, vendored from automation main @ 4f284d0 with bytes verified identical) also brings the plugin dir fully current with automation main, resolving Re-vendor the plugin engine dir to current automation main #27 (re-vendor the plugin engine dir).

Re-vendor and agent-skills sync

  • chore(vendor): Re-vendor engine from automation ef8a26f — one --dest + one --skills pass picks up automation#142 (github-api.sh stderr/error classification, WARN: to stderr) and automation#143 (link-check.py plain-http egress refusals as unchecked, private-redirect exclusion).
  • github-pr-review SKILL.md synced to rossoctl/agent-skills main @ 9672454 (agent-skills#53: §3.11 claims check, §3.12 head-vs-base probes, auditable Not checked: list). The only divergence from upstream is the repoman-specific Phase 5 footer sentence, retained deliberately.

Why the vendored repoman-setup.sh header changed back

The doc-drift fixer's #22 edit documented set-requirements in the vendored copy's header — but vendored bytes must track the engine source, so this vendoring reverts it. The fix lands at the source in rossoctl/automation#141 (wording matches, so the next vendoring converges the copies byte-for-byte).

Validation

  • bash tests/test-vendor-engine.sh: all 41 checks pass (plugin-dir and --skills modes: stamp shas, file sets, idempotency, dirty/non-git source rejection, prune safety).
  • python3 skills/repoman/scripts/link-check.py --help plus a functional smoke run (good/bad URL classification, JSON output) from both vendored locations.
  • Vendored bytes verified identical to automation@ef8a26f per file (diff -r, both plugin dir and standalone dirs). The earlier github-api.sh usage-comment divergence converged when automation#142 landed.
  • shellcheck --severity=warning clean on the CI-checked tooling; bash -n clean on changed scripts.
  • Automation-side: 52 unit tests + link-health-unchecked e2e green on the source branch (feat(link-health): stdlib Python link checker as default (was lychee) automation#123).

Review follow-ups (post-review commits)

  • Applied @rubambiza's SKILL.md wording suggestions: the description line (enrolled set or whole org) and the Unchecked bullet now says "when running under an egress proxy".
  • Aligned the four standalone skills/*/scripts/ stamps with the plugin dir (4f284d0, bytes already identical), so the repo ships one engine version — the two-versions problem Re-vendor the plugin engine dir to current automation main #27 describes.
  • The github-api.sh usage-comment nit is applied in the vendored copy here; the source-side fix rides fix: Address review nits from rossoctl/repoman#24 automation#142 (byte-identical line, so the next re-vendor converges source and copy). #142 also carries the flagged 2>/dev/null error-class fix, the WARN: header → stderr change in link-health-scanner.sh, and the error-handling policy encoded in automation's CLAUDE.md.
  • clawgenti's link-check.py edge cases (plain-http egress refusals classified unchecked, redirect-to-private excluded under --exclude-all-private) are fixed at the source in fix(link-check): classify plain-http egress refusals and private redirects automation#143 — not editable here per repo topology.
  • The pr-review-fixer.sh:153 concern was checked and is a false alarm for repoman main (the diff-map hunk is new here; it came from the automation repo this PR vendors — replied inline).
  • Re-signed the three web-UI commits that lacked Signed-off-by (history rewritten with identical trees; git diff between old and new heads is empty).

Before merging (follow-ups)

Before merging

Assisted-By: Claude Code

Vendor the engine from rossoctl/automation (feat/stdlib-link-checker,
PR rossoctl/automation#123): link-check.py joins the vendored set
(scripts/vendor-engine.sh extras + regression-test coverage), and the
scanner, extractor, and automation-health dashboard updates land with
it. LINK_CHECKER=python is the default, so link-health needs only
python3/gh/jq/bash and runs on a basic agent image; egress-proxy
refusals are classified as unchecked and never open or auto-close
issues.

Rewrite the link-health-scanner SKILL.md for the python-default
contract (link checker selection, unchecked bucket, shadow mode,
.lychee.toml subset) and note the dashboard's unchecked rows.

The vendored repoman-setup.sh header reverts the doc-drift fixer's rossoctl#22
edit: vendored bytes must track the engine source, and the set-requirements
header fix lands at the source in rossoctl/automation#141 instead.

Closes rossoctl#3

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>
Re-run scripts/vendor-engine.sh against automation@main now that
rossoctl/automation#123 and #141 are merged, replacing the pre-merge
branch-tip stamp (e1ebdcb) with main's tip.

Convergence changes beyond the stamp: repoman-setup.sh header now lists
set-requirements (automation#141), plus engine updates to dep-bump,
github-api (throttling), link-health, and pr-review scripts that landed
on main after the original vendoring branch point.

Validation: bash tests/test-vendor-engine.sh (19/19 PASS); vendored
bytes verified identical to automation@main.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>
@jimcadden jimcadden added the ready-for-ai-review Request automated AI code review from clawgenti label Nov 11, 2026
@jimcadden
jimcadden marked this pull request as ready for review November 11, 2026 19:18

@clawgenti clawgenti 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.

Summary

This PR vendors the stdlib Python link checker (link-check.py) and makes it the link-health default, and brings in the related engine updates from automation main: the unchecked/egress-refusal split, re-injection of prior findings for failed repos, the dep-bump dedup regex, the linkless attribution footer, and file-based diff_map handling in the PR-review fixer. The changes hang together. I found no blocking issues, so there are no must-fix items. There are two suggestions about how egress refusals and private-host redirects get classified in link-check.py, plus one nit.

Author: jimcadden (CONTRIBUTOR — returning external)
Areas reviewed: Python, Shell, Docs, Tests
Agent/IDE config (.claude/.vscode): none
Commits: 2 commits, all signed-off: yes
CI status: passing (DCO, shellcheck, pr-title-check)

Generated by RepoMan github-pr-review@235a7f7 (https://github.com/rossoctl/agent-skills/blob/235a7f7620139ee3e4ab0872b8439591fe52e8c1/skills/github-pr-review/SKILL.md).

Comment thread skills/repoman/scripts/link-check.py Resolved
Comment thread skills/repoman/scripts/link-check.py Resolved
@jimcadden jimcadden 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 12, 2026

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

A few suggested changes. Some should probably be encoded in the CLAUDE.md of the project.

AI-assisted review will come next.

Comment thread skills/link-health-scanner/SKILL.md Resolved
Comment thread skills/link-health-scanner/SKILL.md Resolved
Comment thread skills/link-health-scanner/SKILL.md Outdated
- Opt-in fallback: `LINK_CHECKER=lychee` (requires `lychee` >= 0.23.0 on PATH;
do not pass `--include-verbatim` — the scanner relies on excluding URLs
inside code blocks, which the python checker does by default too).
- **Unchecked (egress refusals):** links the egress proxy refused to fetch are

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.

Makes it specific so that it's clear the program can run under a host with no proxy involved.

Suggested change
- **Unchecked (egress refusals):** links the egress proxy refused to fetch are
- **Unchecked (egress refusals):** When running under an egress proxy, links that the proxy refused to fetch are

Comment thread skills/repoman/scripts/github-api.sh Resolved
Comment thread skills/repoman/scripts/github-api.sh Outdated
# [ "$n" = "0" ] || echo "skip (already commented, or status unknown)"
#
# Args:
# $1 - full repo name (e.g., "kagenti/adk")

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.

Suggested change
# $1 - full repo name (e.g., "kagenti/adk")
# $1 - full repo name (e.g., "rossoctl/repoman")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a change for automations, i think

sha=$(jq -r '.version // empty' "$meta_file" 2>/dev/null)
if [ -n "$sha" ]; then
local stored_source
stored_source=$(jq -r '.source // empty' "$meta_file" 2>/dev/null)

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: I've noticed a lot of assignments like this that redirect to 2>/dev/null. As a matter of preference in building repoman (based on some pain experienced earlier), I make it a policy to Claude Code to capture the return codes of such statements so that they don't get swallowed, especially in cases where another script called this one and needs to know any errors that could have happened downstream.

A vague example I recall from memory: a PAT token check should distinguish for the caller whether there's a transient GitHub error vs the user simply does not have the right permissions.

# SKILL_SOURCE_REPO is STALE (the default flipped underneath it): the pinned
# SHA belongs to the old source and would 404 under the new one. Treat it like
# a corrupt file -- fall through to re-resolution, which rewrites both version
# and source on success (automation#131 — the default flip must not strand

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.

Since this is fresh in my mind, I encountered the same pattern in llm-d-benchmark PRs. See llm-d/llm-d-benchmark#2157 (comment) for a concrete example + suggestion.

DIFF_MAP=$("$SCRIPT_DIR/parse-diff-map.sh" "$TMPDIR/pr-${number}.diff")
line_count=$(echo "$DIFF_MAP" | jq '[.[].hunks[].lines[]] | length')
[ "$VERBOSE" = true ] && echo " Parsed diff_map: $line_count lines across $(echo "$DIFF_MAP" | jq 'length') files" >&2
"$SCRIPT_DIR/parse-diff-map.sh" "$TMPDIR/pr-${number}.diff" > "$diff_map_file"

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.

I think this already landed in one of the recent PRs, no? Just flagging in case it may bite as a conflict to be resolved.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Checked — false alarm for repoman main: a grep for MAX_ARG_STRLEN at fbd0c4b (current main tip) has no hits, so the diff-map-to-file hunk is new here. What you're remembering is likely the automation-repo PR it came from — this PR vendors it in (the hunk is byte-identical to automation@4f284d0). #26 didn't touch skills/repoman/scripts/, so there's nothing to conflict with.

@@ -0,0 +1,1017 @@
#!/usr/bin/env python3

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.

Leaving this one for the AI-assisted pass.

@clawgenti clawgenti 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.

AI Review — vendored Python link checker (rebase needed)

Verdict: No blocking issues on the vendored content — ready to rebase + land. Base is stale (main@fbd0c4b after #26), so this needs a rebase before merge.

Checked:

  • _vendor.json stamps rossoctl/automation@4f284d0 (post-#123 + #136 + #141) with link-check.py in files — matches main HEAD, and PR body claims byte-identical (verified via automation side; not re-diffed here but stamp is correct).
  • scripts/vendor-engine.sh change (+link-check.py to EXTRA_FILES) is the only plugin-side logic change — minimal, reviewed, matches automation's vendor manifest.
  • Engine updates (scanner/shadow mode, extractor unchecked token, dashboard rows, fixer dedup) are engine-vendored — per repo topology, not to be edited here (jimcadden IGNORE comments correct).
  • CHANGELOG.md Unreleased entry and SKILL.md docs correctly describe python-default, unchecked bucket, and shadow mode.
  • Commits signed + DCO pass, shellcheck + pr-title pass, bash -n claimed clean.

Notes / nits (non-blocking):

  • Clawgenti flagged upstream link-check.py edge cases (http egress-refusal path, redirect-to-private classification, WARN header stream). Since file lives in rossoctl/automation, fixes belong there and will re-vendor — no action here.
  • After rebase, re-run tests/test-vendor-engine.sh once to confirm 28-file stamp still passes (pre-merge CI did, post-rebase may need re-run).

Closes #3, Closes #27 once rebased on current main.

jimcadden added a commit to jimcadden/repoman that referenced this pull request Nov 12, 2026
Apply rubambiza's review suggestion on PR rossoctl#24: make the Unchecked
(egress refusals) bullet specific about running under an egress proxy,
so it's clear the program can also run on a host with no proxy.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>
@jimcadden
jimcadden requested a review from rubambiza November 12, 2026 21:35
jimcadden added a commit to rossoctl/automation that referenced this pull request Nov 12, 2026
…rects

Reviewer suggestions from rossoctl/repoman#24 (clawgenti), fixed at the
source per the vendoring topology:

1. Plain-http egress refusals were reported broken. Egress-refusal
   detection only matched the CONNECT-tunnel failure text, which fires
   for https:// URLs only. For http:// links urllib sends an
   absolute-URI request to the proxy, and the gateway's refusal arrives
   as an ordinary 403 in the HTTPError branch: reported broken 403 (or
   silently accepted when 403 is in the accept list), breaking the
   contract that egress refusals never open issues. A 403 now
   classifies as unchecked when a proxy is configured for the URL's
   scheme and the response carries a gateway signature
   (GATEWAY_403_MARKERS, extendable via LINK_CHECK_GATEWAY_MARKERS),
   before the GET fallback and the accept list. no_proxy hosts are
   honored via urllib's own env bypass check.

2. A public URL redirecting to a private host under
   --exclude-all-private raised URLError('redirect to private host'),
   which _classify_exception mapped to Network error: retried, then
   reported broken. lychee excludes such links. The redirect handler
   now raises a dedicated _RedirectToPrivateError that the check paths
   turn into a success status (excluded, no finding, not retried).

Tests: http 403 with gateway signature is unchecked (with and without
403 in the accept list); a markerless 403 through a proxy stays broken;
LINK_CHECK_GATEWAY_MARKERS extension; _proxy_for_url scheme and
no_proxy resolution; an http refusal lands in the unchecked bucket,
not errors; a private redirect is excluded and served exactly once
even with retries available.

Signed-off-by: Jim Cadden <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]>
jimcadden added a commit to jimcadden/repoman that referenced this pull request Nov 12, 2026
Apply rubambiza's review suggestion on PR rossoctl#24: make the Unchecked
(egress refusals) bullet specific about running under an egress proxy,
so it's clear the program can also run on a host with no proxy.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>
@jimcadden
jimcadden force-pushed the feat/stdlib-link-checker branch from 53aba31 to a98ee00 Compare November 12, 2026 21:45
@jimcadden

Copy link
Copy Markdown
Contributor Author

Thanks @rubambiza — all addressed in a98ee00 (plus the inline reply on pr-review-fixer.sh:153; that hunk is new to repoman main, it's the automation-repo change you likely remember, so nothing conflicts).

Applied in this PR:

  • Both SKILL.md wording suggestions (description line + "when running under an egress proxy" on the Unchecked bullet).
  • Your github-api.sh usage-comment nit in the vendored copy.
  • Aligned the four standalone skills/*/scripts/ stamps with the plugin dir (4f284d0), so the repo ships one engine version — the two-versions problem Re-vendor the plugin engine dir to current automation main #27 describes.

Routed to the engine source (these files are vendored output here, so per repo topology the fixes land in automation and re-vendor):

  • fix: Address review nits from rossoctl/repoman#24 automation#142 — the github-api.sh comment fix at the source (byte-identical line, so the next re-vendor converges), the flagged 2>/dev/null site now captures stderr and distinguishes permission failures from transient ones (with tests), the three WARN: headers moved to stderr, and the error-handling policy encoded in automation's CLAUDE.md per your suggestion.
  • fix(link-check): classify plain-http egress refusals and private redirects automation#143 — clawgenti's link-check.py edge cases: plain-http egress refusals now classify as unchecked (gateway-signature matched, extendable via env), and public→private redirects under --exclude-all-private are excluded like lychee instead of reported broken. Both with new tests.

Once those two merge, one re-vendor pass (--dest + --skills) picks everything up — tracked in the PR body's follow-ups checklist. Also re-signed the three web-UI commits that were failing DCO (trees unchanged, only the trailer added).

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

LGTM. The rest is being addressed in rossoctl/automation#142 and rossoctl/automation#143

jimcadden and others added 5 commits November 13, 2026 14:09
Co-authored-by: Gloire Rubambiza  <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>
Co-authored-by: Gloire Rubambiza  <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>
Apply rubambiza's review suggestion on PR rossoctl#24: make the Unchecked
(egress refusals) bullet specific about running under an egress proxy,
so it's clear the program can also run on a host with no proxy.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>
…84d0)

The standalone dirs were resynced by rossoctl#26 at c138e5f while the plugin
dir moved to 4f284d0 in this PR, leaving the repo shipping two engine
versions — the exact problem rossoctl#27 describes. Re-run
vendor-engine.sh --skills to converge the stamps; the vendored bytes
were already identical (the c138e5f..4f284d0 delta touches
repoman-setup.sh, which is not in the standalone sets), so only the
_vendor.json sha/timestamp fields change.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>
@jimcadden
jimcadden force-pushed the feat/stdlib-link-checker branch from a98ee00 to fcbcfe4 Compare November 13, 2026 19:10
jimcadden added a commit to rossoctl/automation that referenced this pull request Nov 13, 2026
Encode in CLAUDE.md that citations of issues/PRs from other repos (e.g.
repoman while working in automation) must use the full URL rather than
bare shorthand like repoman#24, so references stay traceable outside
GitHub's auto-linking (raised in
rossoctl/repoman#24 (comment)).
Linkify the bare cross-repo refs this PR itself introduced: the
repoman#10 citations in the attribution-footer spec and the repoman#24
comment in tests/test-skill-meta.sh.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>
jimcadden added a commit to rossoctl/automation that referenced this pull request Nov 16, 2026
…rects (#143)

* fix(link-check): classify plain-http egress refusals and private redirects

Reviewer suggestions from rossoctl/repoman#24 (clawgenti), fixed at the
source per the vendoring topology:

1. Plain-http egress refusals were reported broken. Egress-refusal
   detection only matched the CONNECT-tunnel failure text, which fires
   for https:// URLs only. For http:// links urllib sends an
   absolute-URI request to the proxy, and the gateway's refusal arrives
   as an ordinary 403 in the HTTPError branch: reported broken 403 (or
   silently accepted when 403 is in the accept list), breaking the
   contract that egress refusals never open issues. A 403 now
   classifies as unchecked when a proxy is configured for the URL's
   scheme and the response carries a gateway signature
   (GATEWAY_403_MARKERS, extendable via LINK_CHECK_GATEWAY_MARKERS),
   before the GET fallback and the accept list. no_proxy hosts are
   honored via urllib's own env bypass check.

2. A public URL redirecting to a private host under
   --exclude-all-private raised URLError('redirect to private host'),
   which _classify_exception mapped to Network error: retried, then
   reported broken. lychee excludes such links. The redirect handler
   now raises a dedicated _RedirectToPrivateError that the check paths
   turn into a success status (excluded, no finding, not retried).

Tests: http 403 with gateway signature is unchecked (with and without
403 in the accept list); a markerless 403 through a proxy stays broken;
LINK_CHECK_GATEWAY_MARKERS extension; _proxy_for_url scheme and
no_proxy resolution; an http refusal lands in the unchecked bucket,
not errors; a private redirect is excluded and served exactly once
even with retries available.

Signed-off-by: Jim Cadden <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]>

* fix(link-check): narrow gateway-403 marker defaults to gateway-specific signatures

Review feedback on #143 (clawgenti): the 'access denied' and 'egress'
default markers are broad enough that a CDN origin 403 relayed through
the gateway (Akamai's standard 403 body says 'Access Denied') would
classify as unchecked, silently hiding a real result on an allowlisted
plain-http host. Remove both from GATEWAY_403_MARKERS, keeping only the
gateway-specific defaults (X-Squid-Error header, 'blocked by your
network/organization/policy' wording, allowlist phrases); deployments
opt broader phrases in via LINK_CHECK_GATEWAY_MARKERS as before.

Also note per rubambiza's review that the 4 KB body cap in
_egress_refusal_403 is intentional (gateway denial pages are small;
headers are searched in full), so a future reader doesn't widen it
expecting unbounded matching.

Tests: add a regression test that a markerless CDN-style 'Access
Denied' 403 through a proxy stays a real broken result, and that the
phrase still classifies as a refusal when opted in via
LINK_CHECK_GATEWAY_MARKERS. standing-orders/link-health.md updated to
match the narrowed defaults.

Signed-off-by: Jim Cadden <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>

---------

Signed-off-by: Jim Cadden <[email protected]>
jimcadden added a commit to rossoctl/automation that referenced this pull request Nov 16, 2026
* fix: Address review nits from rossoctl/repoman#24

Applies the engine-script review feedback from
rossoctl/repoman#24:

- github-api.sh: bring the fixer_comment_count usage/Args doc examples
  to the rossoctl era (rossoctl/repoman), matching the vendored copy in
  repoman#24 byte-for-byte so the next vendoring converges.
- github-api.sh: resolve_skill_meta no longer discards gh's stderr and
  exit code behind 2>/dev/null -- the gh api provenance lookup now
  captures both and distinguishes an auth/permission failure (HTTP
  401/403/404 that is not a rate limit) from a transient one, so a wrong
  PAT no longer reads as a GitHub hiccup. Both classes stay non-fatal.
- link-health-scanner.sh: the three WARN: headers paired with a stderr
  excerpt now go to stderr themselves, so header and excerpt land in the
  same place when streams are captured separately (cron logs).
- CLAUDE.md: encode the error-handling policy (no silently swallowed
  exit codes behind 2>/dev/null; keep transient vs. permission error
  classes distinguishable) per reviewer request.
- test-skill-meta.sh: Branch 7 regression coverage for the new failure
  classification (bare 403 = permission, 403 rate limit and network
  errors = transient).

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>

* docs: Require full URLs for cross-repo references

Encode in CLAUDE.md that citations of issues/PRs from other repos (e.g.
repoman while working in automation) must use the full URL rather than
bare shorthand like repoman#24, so references stay traceable outside
GitHub's auto-linking (raised in
rossoctl/repoman#24 (comment)).
Linkify the bare cross-repo refs this PR itself introduced: the
repoman#10 citations in the attribution-footer spec and the repoman#24
comment in tests/test-skill-meta.sh.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>

* fix: Pin the gh stderr shapes used to class provenance failures

resolve_skill_meta still classifies permission vs transient failures
from gh's human stderr, because gh has no stable machine-readable error
code (GH_ERROR_FORMAT is an open design). Note that next to the grep,
and pin gh 2.89's "gh: <message> (HTTP 403)" shape in Branch 7 so a
reword fails the test instead of classing a permission refusal as
transient.

Drop the leftover bare repoman#24 in that test header; cross-repo
citations use the full URL.

Assisted-by: Cursor <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>
Co-authored-by: Cursor <[email protected]>

---------

Signed-off-by: Jim Cadden <[email protected]>
Co-authored-by: Cursor <[email protected]>
jimcadden and others added 4 commits November 16, 2026 17:10
…b-pr-review

Mirror of rossoctl/agent-skills#53 for the deployed pr-review program,
which is what missed the two must-fix bugs on rossoctl/cortex#1658 and
#1659 that motivated the change:

- §3.11 Claims Check: verify every fix a PR claims in its exact target
  case and sibling variants; the new test must assert what the user sees.
- §3.12 Behavioral Probes: concrete-case rule (no case, no finding) and
  opportunistic head-vs-base probes that run only with tooling already
  on PATH — never installed mid-review. The recipe is self-cleaning
  (worktree trap) and states its $LOG_DIR precondition.
- must-fix is defined positively: the user-visible behavior is wrong.
  'Not a regression vs main' does not downgrade it.
- The review summary carries an auditable 'Not checked:' list naming
  what was skipped and why.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>
Picks up the two follow-ups this PR was waiting on, both now merged to
rossoctl/automation main:

- automation#142: github-api.sh captures gh stderr and distinguishes
  refused (permanent) from transient provenance lookups; link-health
  WARN headers go to stderr.
- automation#143: link-check.py classifies plain-http egress refusals as
  unchecked and excludes public-to-private redirects under
  --exclude-all-private.

One --dest pass and one --skills pass, so the plugin dir and the four
standalone skill dirs ship the same engine version. Vendored bytes are
identical to automation@ef8a26f per file; tests/test-vendor-engine.sh
passes.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Clawgenti <[email protected]>
a01ed11 mirrored an earlier revision of rossoctl/agent-skills#53. The
merged version reorders the worktree trap before the first `add` and
adds the documented-intent exception to the stricter-rejection rule.

This brings the deployed copy to agent-skills main (9672454), keeping
only the repoman-specific Phase 5 footer sentence as a divergence.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Clawgenti <[email protected]>
…ecks

Expands [Unreleased] so the next release notes cover everything this PR
lands:

- Added: the stdlib Python link checker default (existing entry) and the
  github-pr-review claims check / head-vs-base probes mirrored from
  agent-skills#53.
- Changed: the engine is vendored from automation ef8a26f (automation#123
  plus #141-#143), and provenance lookups now separate refused tokens
  from transient failures.
- Fixed: plain-http egress refusals are unchecked, private redirects are
  excluded under --exclude-all-private, and link-health WARN diagnostics
  go to stderr.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Clawgenti <[email protected]>
@rubambiza

Copy link
Copy Markdown
Contributor

This is in good enough shape to by-pass and merge so that the changes can be consumed in clawgenti/repoman.

@rubambiza
rubambiza merged commit af425c8 into rossoctl:main Nov 24, 2026
4 checks passed
@rubambiza rubambiza mentioned this pull request Nov 24, 2026
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human-review AI review passed, ready for human reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-vendor the plugin engine dir to current automation main link-health: replace lychee with a stdlib Python link checker

3 participants