Repository navigation
Share PluginSummary JSON below CLI and HTTP - #9840
Merged
Merged
Conversation
Implemented the shared PluginSummary JSON projection at starting HEAD be184be (clean baseline). Changes remain uncommitted for pipeline delivery. Orbit-Task: ORB-25367
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task
ORB-25367 — Share PluginSummary JSON below CLI and HTTP
Description
Outcome
One PluginSummary JSON projection in orbit-core, beside
PluginSummary(
crates/orbit-core/src/application/plugin/inspect/summary.rs:55), with namedCLI and HTTP profiles. The CLI (
plugin list/showand every plugin mutationreceipt that embeds
plugin_record) and the HTTP API (GET /api/plugins,enable/disable responses) both call it and hold no second field list. This is
the PluginSummary same-record lead deferred by the previous two surface-parity
passes, re-verified at this pin with the whole plugin family read.
Evidence
Pinned at be184be (agent-main tip). Matrix row
plugin.list(surface-paritysweep ORB-25365, Pass A same-record group PluginSummary). CLI hand-builds the
record at
crates/orbit-cli/src/command/plugin/support.rs:56-124(
plugin_record, used by list/show/add/enable/disable/upgrade); HTTPhand-builds a second copy at
crates/orbit-web/src/api/plugins.rs:266-326(
plugin_to_json). The two copies share roughly fifty lines of field mapping(name, version, status, permissions, tools, panels, links, grants, toggles).
Difference table
build(consented build record)programs[](name/path/granted/problem/resolves_to)tools[].agent_callableenabled(derivedstatus == Active)statusfor the dashboard's badge and the CLI record has consumers matching onstatushost_orbit_version--versionpanels[].refresh_mssource/install_path~-abbreviatedcapabilities(enable/disable)Scope and non-goals
In scope: the PluginSummary JSON projection only. Not in scope: plugin
enable/disable grant authority differences (HTTP cannot record grants; CLI
--grantcan), text tables, panel execution, or PluginSummary computation.Stable tier
No public API change to orbit-types, orbit-common or orbit-store is expected.
If one becomes necessary it must be additive (existing callers, persisted
bytes and wire shapes unchanged).
Conventions
rendering for the operations in scope; the logic moves to the named shared
operation.
MCP, HTTP API, plugin protocol and goldens otherwise stay identical.
ARCHITECTURE.mdandscripts/check-dependency-direction.shin the same change.behaviour or output changes.
Acceptance Criteria
GET /api/pluginsplus enable/disable responses all obtain the PluginSummary JSON from one shared orbit-core projection with named CLI/HTTP profiles, and neither surface keeps a second field list.make goldenspasses (the required PR checks gate the full suite; AGENTS.md Gates), with golden changes limited to the rows the table names.Execution Summary
Click to expand
Implemented the shared PluginSummary JSON projection at starting HEAD be184be (clean baseline). Changes remain uncommitted for pipeline delivery.
Acceptance criteria:
Validation commands:
scripts/build-budget.py -- cargo test -p orbit-web -p orbit-cli --test http_api plugins::(2 cases); evidence validation/http-plugins.log.scripts/build-budget.py -- cargo test -p orbit-cli --test mcp mcp_roundtrip::plugins; evidence validation/mcp-plugins.log.scripts/build-budget.py -- cargo test -p orbit-cli --test tool plugin_cli_group::; evidence validation/cli-plugins-final.log.make goldens; evidence validation/goldens.log.cargo fmt --all -- --check; evidence validation/fmt.log.scripts/build-budget.py -- cargo clippy -p orbit-core --lib --bins -- -D warnings -A clippy::disallowed_methods; evidence validation/orbit-core-clippy-production.log.scripts/build-budget.py -- cargo clippy -p orbit-core --all-targets -- -D warnings -A clippy::disallowed_methods; evidence validation/orbit-core-clippy-all.log.RUSTDOCFLAGS="-D warnings" scripts/with-test-build-lint.sh scripts/build-budget.py -- cargo doc --no-deps -p orbit-core; evidence validation/orbit-core-doc.log.scripts/build-budget.py -- cargo clippy -p orbit-web --lib --bins -- -D warnings -A clippy::disallowed_methods; evidence validation/orbit-web-clippy-production.log.scripts/build-budget.py -- cargo clippy -p orbit-web --all-targets -- -D warnings -A clippy::disallowed_methods; evidence validation/orbit-web-clippy-all.log.RUSTDOCFLAGS="-D warnings" scripts/with-test-build-lint.sh scripts/build-budget.py -- cargo doc --no-deps -p orbit-web; evidence validation/orbit-web-doc.log.scripts/build-budget.py -- cargo clippy -p orbit-cli --bins -- -D warnings -A clippy::disallowed_methods; evidence validation/orbit-cli-clippy-production.log.scripts/build-budget.py -- cargo clippy -p orbit-cli --all-targets -- -D warnings -A clippy::disallowed_methods; evidence validation/orbit-cli-clippy-all.log.RUSTDOCFLAGS="-D warnings" scripts/with-test-build-lint.sh scripts/build-budget.py -- cargo doc --no-deps -p orbit-cli; evidence validation/orbit-cli-doc.log.make ci-guards; evidence validation/ci-guards-final.log.git diff --check; evidence validation/diff-check.log.python3 .orbit/tmp/manual-plugin-qa.py— diagnostic harness failure: Python Request.method missing; harness corrected to get_method(); corrected, final QA passes; evidence validation/manual-qa-attempt1.log.python3 .orbit/tmp/manual-plugin-qa.py— diagnostic harness failure: Expected fixture retained None fields omitted by existing PluginBuildRecord serde; corrected, final QA passes; evidence validation/manual-qa-attempt2.log.python3 .orbit/tmp/manual-plugin-qa.py— diagnostic harness failure: Expected fixture treated PATH drift as invalid recorded path; existing behavior reports resolves_to while retained path remains granted; corrected, final QA passes; evidence validation/manual-qa-attempt3.log.python3 .orbit/tmp/manual-plugin-qa.py(29 manual checks); evidence validation/manual-qa.log.Preserved differences outside the table: CLI show still adds state_and_secrets_visible; enable/add receipts retain seeded/skills/warnings; upgrade retains its existing permission metadata. HTTP mutations still wrap their record under plugin and do not add list-only capabilities. Grant authority, plugin computation, text tables, MCP/plugin protocols and panel execution were unchanged. No new regression tests were admitted for this refactor per AGENTS.md.
Reconciliation and scope: original five context selectors retained; eight companion selectors added by deduplicated union and re-read. Beyond the original three implementation targets, four core re-export modules expose the shared operation to adapters; web workspaces/mod.rs drops its now-unused abbreviate_home re-export; docs/design/plugins/1_scope.md and canonical/shipped orbit-setup plugin documentation describe the additive fields and profiles. All 11 modified tracked paths are deliverable and declared. No pre-existing edits, staged entries, deletions, renames or untracked deliverable paths. Scratch, QA repositories and logs are confined to ignored .orbit/tmp; no cleanup was necessary or denied, no non-deliverable leftovers outside scratch, and every manual server child was stopped and reaped within its launching command. Final HEAD is unchanged. final-reconciliation.txt records the inventory; projection-evidence.json maps criteria and every difference-table row to evidence; validation/results.json records command outcomes and referenced attached logs.
Risks/deviations: no new crate edge or stable-tier/persisted-format changes; no breaking change. The only initial QA failures were three harness assumptions (Python request accessor, serde omission of optional null build members, and the existing distinction between PATH drift and invalid recorded program paths); each is disclosed with its failed log and corrected final evidence. Product code required no repair for those assumptions. No known remaining implementation or validation issue.
Validation
Branch Freshness
refs/remotes/origin/agent-mainorbit/ORB-25367-187d66d3