Skip to content

docs: List set-requirements in repoman-setup.sh header subcommands - #141

Merged
jimcadden merged 2 commits into
rossoctl:mainfrom
jimcadden:docs/repoman-setup-header
Nov 11, 2026
Merged

jimcadden merged 2 commits into
rossoctl:mainfrom
jimcadden:docs/repoman-setup-header

Conversation

@jimcadden

Copy link
Copy Markdown
Collaborator

Summary

The repoman-setup.sh header comment lists four subcommands but the script implements five — set-requirements (usage at line 480) is missing from the list.

The doc-drift fixer already corrected the vendored copy of this header in rossoctl/repoman (#22), but vendored files must track the engine source byte-for-byte, so that edit gets overwritten on the next vendor-engine.sh run. This fixes the drift at the source so the copies converge instead of re-diverging.

The wording matches the #22 vendored edit exactly, so the next vendoring produces a byte-identical repoman-setup.sh in repoman.

Assisted-By: Claude Code

The header comment predates the set-requirements subcommand (implemented
at line 480). The doc-drift fixer corrected the VENDORED copy in
rossoctl/repoman (rossoctl#22) instead of this source — fixing it here so the
next engine vendoring converges the copies instead of reintroducing
drift.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>
jimcadden added a commit to jimcadden/repoman that referenced this pull request Nov 10, 2026
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]>

@jimcadden jimcadden left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Summary

The header list is indeed one subcommand short: cmd_set_requirements exists (:484) and usage() documents it (:61), but the top-of-file Subcommands: line stopped at set-output. Verified against the head:

  • header list now matches the dispatcher, usage(), and KNOWN_PROGRAMS (:35, 7 programs);
  • bash -n and shellcheck clean on scripts/repoman-setup.sh;
  • tests/test-repoman-setup.sh passes (it is the LAST line of the script's own PASS message that enumerates all five);
  • CI 3/3 (DCO, pr-title, add-to-project); 1 commit, signed off.

Author: jimcadden (MEMBER — maintainer)
Areas reviewed: Shell, Docs, CI
Agent/IDE config (.claude/.vscode): none
Commits: 1, all signed-off: yes
CI status: passing

One inline suggestion: the promised byte-identical vendoring needs a different line wrap. Two body notes below (same-class drift still in the file; branch is 2 commits behind main).

Body notes

  1. Same-class drift left in this file (not in the diff). enable-program --help (scripts/repoman-setup.sh:324) still lists six known programs — missing doc-drift — while KNOWN_PROGRAMS (:35) and usage() (:54) list seven. That text is upstream-owned, so it recurs on every re-vendor; folding it into this commit would retire the whole class rather than one instance.
  2. Branch base. Head f9d8375 sits on 2e12731, two commits behind main (22cc910 #123, c138e5f). mergeable: true and nothing in this file conflicts, so it is informational only.

Verdict

APPROVE — one-line, correct, and it moves the source of truth in the right direction. The inline suggestion is optional but makes the PR body's claim literally true.

Generated by RepoMan github-pr-review@9672454 (https://github.com/rossoctl/agent-skills/blob/96724547c162978f58d845b9a8331a679bf39444/skills/github-pr-review/SKILL.md).

Comment thread scripts/repoman-setup.sh
#
# Subcommands: init-config, add-repo, enable-program, set-output. Each writes
# Subcommands: init-config, add-repo, enable-program, set-output,
# set-requirements. Each writes

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

suggestion: The PR body says this produces a byte-identical vendored copy, but the wrap does not match. rossoctl/repoman@main skills/repoman/scripts/repoman-setup.sh (as edited in #22) has:

# Subcommands: init-config, add-repo, enable-program, set-output,
# set-requirements. Each writes exactly one thing, validates it, and persists
# atomically (temp file in the target directory, then `mv` into place, so a
# crash mid-write never leaves a half-written JSON file).

Diffing this head's file against that vendored copy yields exactly one hunk (16 lines) — this 4-line reflow, nothing else. Adopting the vendored wrapping here makes the next vendor-engine.sh --dest a true no-op for this file; keeping the current wrap means the next vendoring reflows the header again (harmless, but the description would then be wrong on both counts).

@mrsabath mrsabath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Summary

One-line docs fix, verified correct: cmd_set_requirements exists (scripts/repoman-setup.sh:484), the dispatcher routes it (:598), and usage() documents it (:61) — the header list was the only place still missing it. CI 3/3 (DCO, pr-title, add-to-project); 1 commit, signed off, imperative subject under 72 chars; bash -n clean (shellcheck not available in my review environment). No secrets, no CI/action changes.

One inline suggestion: the line wrap differs from the vendored copy in rossoctl/repoman, so the PR body's "byte-identical on next vendoring" claim doesn't hold as written — adopting the vendored wrap fixes that.

Not inline (line untouched by this diff)

scripts/repoman-setup.sh:324 — enable-program --help lists six known programs (missing doc-drift) while KNOWN_PROGRAMS (:35) and usage() (:54) list seven. Same class of drift this PR fixes, in upstream-owned text that recurs on every re-vendor — folding it in here (or a quick follow-up) would retire the whole class rather than one instance.

Areas reviewed: Shell, Docs, CI
Commits: 1, all signed-off: yes
CI status: passing

Comment thread scripts/repoman-setup.sh
Comment on lines +5 to 6
# set-requirements. Each writes
# exactly one thing, validates it, and persists atomically (temp file in the

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

suggestion: The wording matches the vendored copy, but the wrap doesn't — and vendor-engine.sh copies bytes, not words. Diffing this head against skills/repoman/scripts/repoman-setup.sh at rossoctl/repoman main shows the header wrap is the only remaining difference between the two files:

# Subcommands: init-config, add-repo, enable-program, set-output,
# set-requirements. Each writes exactly one thing, validates it, and persists
# atomically (temp file in the target directory, then `mv` into place, so a
# crash mid-write never leaves a half-written JSON file).

Adopting the vendored wrap makes the PR body's "byte-identical" claim literally true; as written, the next vendoring still produces a re-wrap diff in repoman (content converges, bytes don't).

@jimcadden
jimcadden merged commit 4f284d0 into rossoctl:main Nov 11, 2026
2 checks passed
@clawgenti clawgenti mentioned this pull request Nov 16, 2026
10 tasks
rubambiza added a commit to rossoctl/repoman that referenced this pull request Nov 24, 2026
…#24)

* feat(link-health): vendor stdlib Python link checker as default

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 #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 #3

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

* chore(vendor): Refresh engine stamp from automation main (4f284d0)

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

* Update skills/link-health-scanner/SKILL.md

Co-authored-by: Gloire Rubambiza  <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>

* Update skills/repoman/scripts/github-api.sh

Co-authored-by: Gloire Rubambiza  <[email protected]>
Signed-off-by: Jim Cadden <[email protected]>

* docs: Clarify egress-proxy wording in link-health-scanner SKILL.md

Apply rubambiza's review suggestion on PR #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]>

* chore(vendor): Align standalone skill stamps with the plugin dir (4f284d0)

The standalone dirs were resynced by #26 at c138e5f while the plugin
dir moved to 4f284d0 in this PR, leaving the repo shipping two engine
versions — the exact problem #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]>

* feat: Add claims check and opportunistic head-vs-base probes to github-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]>

* chore(vendor): Re-vendor engine from automation ef8a26f

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

* fix: Finish the github-pr-review mirror at agent-skills #53 head

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

* docs: Draft next-release changelog for the link checker and review checks

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

---------

Signed-off-by: Jim Cadden <[email protected]>
Signed-off-by: Clawgenti <[email protected]>
Co-authored-by: Gloire Rubambiza <[email protected]>
Co-authored-by: Clawgenti <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants