feat(sidecar): POST /permissions/inventory forwards the plugin's store read #20

Merged
whitlocktech merged 1 commits from feat/perm-inventory into edge 2026-09-28 16:38:45 +00:00
Member

What & why

The permission manager (docs/modules/rust/PLAN_REDESIGNS.md §1) reads the plugin's whole permission store. This adds one opaque forward: POST /permissions/inventory → perm.inventory. The body is {snapshotId?, page?}; paging is the plugin's and the website's, and no page is kept here. Spec: PROTOCOL.md §19.9. Tracking: Module-Rust#21.

How it was tested

  • cargo fmt --check and cargo clippy -- -D warnings are clean. cargo test is 66/66, including a new test that an inventory request keeps its paging fields and cannot choose its own command.
  • A static musl build is deployed to both rigs (the old binary is kept as rust-link-sidecar.p13step2). The walk core read both rigs' inventories through it.

Checklist

  • I have read CONTRIBUTING.md.
  • The change builds and existing tests/checks pass locally.
  • I have added or updated tests/docs where it makes sense.
  • My commits are reasonably scoped with clear messages.

AI-assisted contributions (required)

  • No AI tools were used to produce this contribution.
  • AI tools were used. Tool(s): Claude Code (Claude Opus 5.5). I have reviewed and understand
    every change, and take responsibility for it. AI-authored commits are
    marked with a Co-Authored-By / Assisted-By trailer.

License

  • I agree that my contribution is licensed under this project's license
    (GNU GPL v3.0 or later), and I have the right to contribute it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY

## What & why The permission manager (`docs/modules/rust/PLAN_REDESIGNS.md` §1) reads the plugin's whole permission store. This adds one opaque forward: `POST /permissions/inventory` → `perm.inventory`. The body is `{snapshotId?, page?}`; paging is the plugin's and the website's, and no page is kept here. Spec: PROTOCOL.md §19.9. Tracking: Module-Rust#21. ## How it was tested - `cargo fmt --check` and `cargo clippy -- -D warnings` are clean. `cargo test` is **66/66**, including a new test that an inventory request keeps its paging fields and cannot choose its own command. - A static musl build is deployed to both rigs (the old binary is kept as `rust-link-sidecar.p13step2`). The walk core read both rigs' inventories through it. ## Checklist - [x] I have read [CONTRIBUTING.md](CONTRIBUTING.md). - [x] The change builds and existing tests/checks pass locally. - [x] I have added or updated tests/docs where it makes sense. - [x] My commits are reasonably scoped with clear messages. ## AI-assisted contributions (required) - [ ] No AI tools were used to produce this contribution. - [x] AI tools were used. Tool(s): `Claude Code (Claude Opus 5.5)`. I have reviewed and understand every change, and take responsibility for it. AI-authored commits are marked with a `Co-Authored-By` / `Assisted-By` trailer. ## License - [x] I agree that my contribution is licensed under this project's license (**GNU GPL v3.0 or later**), and I have the right to contribute it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
wtclaude added 1 commit 2026-09-28 16:27:07 +00:00
feat(sidecar): POST /permissions/inventory forwards the plugin's store read
All checks were successful
PR Checks / rust-gates (pull_request) Successful in 1m40s
3662363caf
Protocol 13, the permission manager (PLAN_REDESIGNS section 1): one more
opaque forward. The body is {snapshotId?, page?}; paging is the plugin's
and the website's, and no page is kept here.

Refs RunicGateway/Module-Rust#21

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
whitlocktech merged commit 6cfb236125 into edge 2026-09-28 16:38:45 +00:00
whitlocktech deleted branch feat/perm-inventory 2026-09-28 16:38:46 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: RunicGateway/Rust-Link#20
No description provided.