Skip to content

feat(mods): migrate product browse/install to generated RPC - #503

Merged
athNdev merged 3 commits into
mainfrom
codex/product-browse-rpc
Nov 17, 2026
Merged

athNdev merged 3 commits into
mainfrom
codex/product-browse-rpc

Conversation

@athNdev

@athNdev athNdev commented Nov 17, 2026

Copy link
Copy Markdown
Owner

W18/OSS-337 next family: mod browse, versions and install.\n\n- New generated ModBrowseService (SearchMods/GetModVersions/InstallMods), pinned regen verified with --check; console mod browser uses generated rpcClient.\n- Shared typed operation with legacy REST compatibility adapter retained per ADR0012; RBAC mods/read for search+versions and mods/create for install, global object to match legacy scope and Studio none-browse.\n- Negative authz tests at RPC seam for all three methods (unauthenticated, no permission, scoped grant denied, global grant, no-auth admin, nil enforcer) with call-count denial assertions; shared-operation parity tests.\n- Local checks: go vet/test touched packages, bun check/test(263)/lint, buf lint/breaking, knowledge-lint 38/38. Studio callers remain on the compatibility adapter (documented).

…rvice

Add generated ModBrowseService (SearchMods, GetModVersions, InstallMods) and
regenerate the pinned Go/TS outputs. Refactor ModOnlineManager into shared
typed operations so the generated service and the legacy /mods/* JSON adapter
delegate to one implementation, preserving provider policy, error statuses,
filename confinement, per-item errors and install audit.

Map the RPCs to mods/read (browse, versions) and mods/create (install) on the
global * object to match the legacy adapter and keep Studio's none browse mode
authorized. Add RPC-seam positive/negative authorization tests and
service-level parity/error tests. Switch mod-browser-dialog to the generated
client; keep the compatibility route live. Update the transport inventory and
governing knowledge concepts.
# Conflicts:
#	docs/product-transports.md
#	internal/rpc/handlers/mod_search.go
#	internal/rpc/server.go
@athNdev
athNdev merged commit b897c3c into main Nov 17, 2026
21 checks passed
@athNdev
athNdev deleted the codex/product-browse-rpc branch November 17, 2026 23:29
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.

1 participant