feat(rtk): add an rtk plugin that routes Bash calls through rtk #284

Merged
Defame1297 merged 8 commits from feat/179-rtk-plugin into main 2026-12-06 15:31:00 +00:00
Showing only changes of commit 27f08af9b3 - Show all commits
@@ -2,6 +2,22 @@
**Status:** Accepted (2026-09-20)
*Amended 2026-12-06 ([rtk routing hook](https://git.rkdr.net/Mortis/Holocron/issues/179)): "the root
manifest is never waived" below now holds for `lockfile-exists` only. The root has one narrow
waiver: `ref-consistency` for a plugin not yet on `origin/main`. Root `apm.yml`'s first-party
dependencies resolve from the remote's `main` (ADR-0019), so the lock cannot record a plugin before it
lands. `check-executables-allow-sync` meanwhile requires a hook- or bin-shipping plugin's git+path
entry before it can be pushed, so without the waiver such a plugin could never land. The waiver applies
only when all of these hold: the output reads `1 of 3 check(s) failed` and its one failing row is
`ref-consistency`; the details block appears exactly once and every line in it is `<identity>/plugins/<name>: not found
in lockfile`, for root `apm.yml`'s own entry and a name that starts alphanumeric and holds no `..`;
`plugins/<name>/apm.yml` is in the working tree and absent from the local `origin/main`, which must
resolve. On apm 0.39.3 a failing `ref-consistency` stops the root run after three checks, so the hook then
re-runs `apm audit --ci` on a scratch copy of the tree with those plugins' `dependencies.apm` entries
removed, and the push passes only if that run reports `All 15 check(s) passed`. The working tree is
never written. The waiver lapses for each plugin once it is on `origin/main`, when the follow-up PR that
records it in the lock is required.*
*Amended 2026-12-02 (holocron#272): re-verified on apm 0.39.3 in a scratch copy of
`plugins/mattpocock`. Without a package lock, the same line and `1 of 1 check(s) failed` appear, so
the waiver is unchanged. With one from `apm lock`, the rest of the root set arms (fourteen more