chore(dev): install rtk-oss from dev-setup.sh #228

Open
opened 2026-11-16 14:56:07 +00:00 by Claude · 5 comments
Owner

Spec: Committed skills as agent instructions: ownership, updates and required tools, resolution comment, point 7.

Blocked by docs(contributing): split the contributor docs into CONTRIBUTING.md and docs/contributing/: that issue creates docs/contributing/setup.md, where this issue writes the rtk line (the body of #189 says that line is written here).

What

rtk (as rtk-oss, Apache-2.0 only) is a mandatory contributor tool. The repository installs it from the setup script and documents it:

  1. scripts/dev-setup.sh checks for rtk at a tested minimum version. If it is missing or older, the script installs the pinned rtk-oss into ~/.local/bin (on PATH outside the virtualenv, because the hook calls it from every shell). It downloads a tagged release binary and verifies it against a pinned checksum; if rtk-oss publishes no checksummed release, it falls back to building from source at the pinned version. Never curl | sh. The version and checksum pins live in the script. No crate named rtk-oss exists on crates.io (checked 2026-11-17), so first confirm on the pinned release whether a checksummed binary exists and how the edition is built from source; if neither works, stop and report.
  2. Contributor setup docs say rtk is required, installed by dev-setup.sh, and held as aspirational (no control sees a contributor's machine).

The rtk hook is not part of this issue. It ships as an apm hook primitive and is taken through apm.yml in the scope of Re-check Shared agent primitives once the skills source is public. Until it ships, rtk is installed and no tracked hook calls it; that gap is accepted. Nothing is written to the tracked .claude/settings.json here.

Acceptance

  • dev-setup.sh on a machine without rtk installs the pinned version and verifies it; on a machine with a new enough rtk it leaves it alone.
  • dev-setup.sh warns when it finds a global rtk hook (rtk init --show), since a global rtk init -g hook can double-wrap a command with the apm-deployed one. (Whichever of this issue and #194 lands second tests the double-wrap; if this one lands second, keep the warning.)
  • shellcheck passes; the PR says what was verified and what was not.

Notes

  • .claude/ is under CODEOWNERS (all of it).
  • Do not run a project-level rtk init: it writes a CLAUDE.md, and this repository has none.
Spec: [Committed skills as agent instructions: ownership, updates and required tools](https://git.rkdr.net/Mortis/Kamino/issues/208), resolution comment, point 7. Blocked by [docs(contributing): split the contributor docs into CONTRIBUTING.md and docs/contributing/](https://git.rkdr.net/Mortis/Kamino/issues/189): that issue creates `docs/contributing/setup.md`, where this issue writes the `rtk` line (the body of #189 says that line is written here). ## What `rtk` (as `rtk-oss`, Apache-2.0 only) is a mandatory contributor tool. The repository installs it from the setup script and documents it: 1. `scripts/dev-setup.sh` checks for `rtk` at a tested minimum version. If it is missing or older, the script installs the pinned `rtk-oss` into `~/.local/bin` (on `PATH` outside the virtualenv, because the hook calls it from every shell). It downloads a tagged release binary and verifies it against a pinned checksum; if `rtk-oss` publishes no checksummed release, it falls back to building from source at the pinned version. Never `curl | sh`. The version and checksum pins live in the script. No crate named `rtk-oss` exists on crates.io (checked 2026-11-17), so first confirm on the pinned release whether a checksummed binary exists and how the edition is built from source; if neither works, stop and report. 2. Contributor setup docs say `rtk` is required, installed by `dev-setup.sh`, and held as aspirational (no control sees a contributor's machine). The `rtk` hook is not part of this issue. It ships as an apm hook primitive and is taken through `apm.yml` in the scope of [Re-check Shared agent primitives once the skills source is public](https://git.rkdr.net/Mortis/Kamino/issues/194). Until it ships, `rtk` is installed and no tracked hook calls it; that gap is accepted. Nothing is written to the tracked `.claude/settings.json` here. ## Acceptance - `dev-setup.sh` on a machine without `rtk` installs the pinned version and verifies it; on a machine with a new enough `rtk` it leaves it alone. - `dev-setup.sh` warns when it finds a global `rtk` hook (`rtk init --show`), since a global `rtk init -g` hook can double-wrap a command with the apm-deployed one. (Whichever of this issue and #194 lands second tests the double-wrap; if this one lands second, keep the warning.) - `shellcheck` passes; the PR says what was verified and what was not. ## Notes - `.claude/` is under CODEOWNERS (all of it). - Do not run a project-level `rtk init`: it writes a `CLAUDE.md`, and this repository has none.
Claude added this to the Open to contributors milestone 2026-11-16 14:56:07 +00:00
Claude added the
Status
Ready for Agent
label 2026-11-16 14:56:07 +00:00
Author
Owner

Review of the map (2026-11-17).

  • Step 2 puts a hand-written hook into the tracked .claude/settings.json. Making sure an agent actually loads the guidance, decision 8, found that apm audit --ci fails on entries apm did not deploy, and its fallback names two keys, not this hook. Where the hook lives in that case is open in The rtk hook if apm's audit keeps comparing the whole settings file. Do step 2 after that ticket and after the retest in the local-settings issue.
  • Step 1 names the fallback cargo install rtk-oss --version <pin>. No crate named rtk-oss exists on crates.io (checked 2026-11-17). The decision says only "falls back to cargo install at the pinned version". First confirm on the pinned release whether a checksummed binary exists and how the edition is built from source; if neither works, stop and report.
  • rtk hook claude exists (seen in rtk 0.42.4).

Changed: this issue is now blocked by the ticket on the rtk hook.

Review of the map (2026-11-17). - **Step 2** puts a hand-written hook into the tracked `.claude/settings.json`. [Making sure an agent actually loads the guidance](https://git.rkdr.net/Mortis/Kamino/issues/213), decision 8, found that `apm audit --ci` fails on entries apm did not deploy, and its fallback names two keys, not this hook. Where the hook lives in that case is open in [The rtk hook if apm's audit keeps comparing the whole settings file](https://git.rkdr.net/Mortis/Kamino/issues/252). Do step 2 after that ticket and after the retest in the local-settings issue. - **Step 1** names the fallback `cargo install rtk-oss --version <pin>`. No crate named `rtk-oss` exists on crates.io (checked 2026-11-17). The decision says only "falls back to `cargo install` at the pinned version". First confirm on the pinned release whether a checksummed binary exists and how the edition is built from source; if neither works, stop and report. - `rtk hook claude` exists (seen in `rtk` 0.42.4). Changed: this issue is now blocked by the ticket on the `rtk` hook.
Author
Owner

Scope changed by The rtk hook if apm's audit keeps comparing the whole settings file (resolution, points 1, 4 and 5):

  • Step 2 is removed from this issue. The guarded hook is not hand-written into the tracked .claude/settings.json. It ships as an apm hook primitive in a new rtk plugin in the skills source, and Kamino takes it through apm.yml in the scope of Re-check Shared agent primitives once the skills source is public. Rule: every hook in the tracked settings file arrives through apm.
  • Steps 1 and 3 stand and are unblocked: install the pinned rtk from dev-setup.sh (the rtk-oss crate correction above still applies) and the setup docs. Until the plugin ships, rtk is installed and no tracked hook calls it; that gap is accepted.
  • Acceptance: drop the two hook bullets (rewrite by the tracked hook; double-wrap with a global rtk init -g hook). The double-wrap check goes with whichever of this issue and the re-check lands second; if this one lands second, keep the rtk init --show warning in dev-setup.sh.
  • No longer blocked by #196 for the hook; it still edits nothing that #196 creates.
Scope changed by [The rtk hook if apm's audit keeps comparing the whole settings file](https://git.rkdr.net/Mortis/Kamino/issues/252) (resolution, points 1, 4 and 5): - **Step 2 is removed from this issue.** The guarded hook is not hand-written into the tracked `.claude/settings.json`. It ships as an apm hook primitive in a new `rtk` plugin in the skills source, and Kamino takes it through `apm.yml` in the scope of [Re-check Shared agent primitives once the skills source is public](https://git.rkdr.net/Mortis/Kamino/issues/194). Rule: every hook in the tracked settings file arrives through apm. - **Steps 1 and 3 stand** and are unblocked: install the pinned `rtk` from `dev-setup.sh` (the `rtk-oss` crate correction above still applies) and the setup docs. Until the plugin ships, `rtk` is installed and no tracked hook calls it; that gap is accepted. - **Acceptance:** drop the two hook bullets (rewrite by the tracked hook; double-wrap with a global `rtk init -g` hook). The double-wrap check goes with whichever of this issue and the re-check lands second; if this one lands second, keep the `rtk init --show` warning in `dev-setup.sh`. - No longer blocked by #196 for the hook; it still edits nothing that #196 creates.
Claude modified the milestone from Open to contributors to Continuous delivery 2026-11-20 21:25:58 +00:00
Author
Owner

Moved to Continuous delivery by Which issues must land before the first friend (question 5): with the hook gone to #194, what remains (install from dev-setup.sh, docs) is aspirational and not a precondition for the first contributor.

Moved to *Continuous delivery* by [Which issues must land before the first friend](https://git.rkdr.net/Mortis/Kamino/issues/259) (question 5): with the hook gone to #194, what remains (install from `dev-setup.sh`, docs) is aspirational and not a precondition for the first contributor.
Author
Owner

Body rewritten on 2026-11-20 to the final state of the comments above (final validation round of the map, #87 (comment)). The body is the spec; the earlier comments are history.

  • The hand-written PreToolUse hook step is gone: every hook in the tracked settings arrives through apm, and the hook step lives in #194.
  • Only the dev-setup.sh install of rtk-oss, the setup docs and the rtk init --show warning remain; no "Blocked by #196" line.
Body rewritten on 2026-11-20 to the final state of the comments above (final validation round of the map, https://git.rkdr.net/Mortis/Kamino/issues/87#issuecomment-12281). The body is the spec; the earlier comments are history. - The hand-written PreToolUse hook step is gone: every hook in the tracked settings arrives through apm, and the hook step lives in #194. - Only the `dev-setup.sh` install of `rtk-oss`, the setup docs and the `rtk init --show` warning remain; no "Blocked by #196" line.
Claude changed title from chore(dev): install rtk-oss from dev-setup.sh and track its guarded Claude Code hook to chore(dev): install rtk-oss from dev-setup.sh 2026-11-20 21:52:58 +00:00
Author
Owner

Final validation round, second pass (2026-11-20): body edited.

  • Added dependency: blocked by #189, which creates docs/contributing/setup.md where this issue writes its rtk line; one line saying so is in the body.
Final validation round, second pass (2026-11-20): body edited. - Added dependency: blocked by #189, which creates `docs/contributing/setup.md` where this issue writes its `rtk` line; one line saying so is in the body.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#228