Repository navigation
feat(*): load portable Agent Plugins 1.0 packages and their MCP servers - #1110
Conversation
gloryfromca
left a comment
There was a problem hiding this comment.
Blocking: preserve package containment, installed-skill ownership, and both host and sandboxed MCP behavior before merge.
I reviewed github/main...HEAD plus the affected callers and history. I covered the repository rules and canonical terminology, the full diff, CLI/runtime/MCP callers, live-reload and generation assembly behavior, backward compatibility for existing MCP servers, test-strength changes, and the documented package-boundary architecture. I found five concrete failures, marked inline.
Verification:
PYTHONPATH=plugins-dist/everos-memory uv run pytest tests/test_agent_plugins_manifest.py tests/test_agent_plugins_package.py tests/test_agent_plugins_ledger.py tests/test_agent_plugins_skills.py tests/test_agent_plugins_mcp.py tests/test_cli_agent_plugin_commands.py tests/integration/test_agent_plugins_e2e.py tests/integration/test_agent_plugins_mcp_e2e.py -q- 189 passed.PYTHONPATH=plugins-dist/everos-memory uv run pytest tests/test_agent_loop_mcp_sync.py tests/test_mcp_client.py tests/test_mcp_client_transport.py tests/test_core_runtime_swap.py -q- 80 passed.scripts/check_source_language.py github/main...HEADandscripts/check_large_files.py github/main...HEADboth passed when run directly throughuv(makeis unavailable in this environment).- The first test attempt could not collect because the plain dev environment omitted
raven_everos; rerunning with its workspace source onPYTHONPATHproduced the results above.
|
@d:/tmp/pr-note.md |
gloryfromca
left a comment
There was a problem hiding this comment.
Blocking: finish sandbox path translation and preserve ledger ownership when stale-skill deletion fails.
I reviewed the complete 82712ca..c79a119 delta and rechecked its surrounding MCP, sandbox, package import, CLI, and generation-assembly callers. I also checked the repository rules and canonical terms, backward compatibility for host MCP configurations, the new tests for weakening or gaps, and the package-containment/runtime architecture.
Three prior blockers are resolved and their threads are closed: the live no-answer sentinel, package descendant containment, and host/package MCP name collisions. Two threads remain open because the original failures are only partially fixed:
- Boxlite translates the package cwd but still receives host-absolute package commands, placeholder-expanded arguments, and environment paths.
- Stale cleanup ignores deletion errors, reports success, and lets the next ledger write forget a directory that remains on disk.
Verification:
PYTHONPATH=plugins-dist/everos-memory uv run pytest tests/test_agent_loop_mcp_sync.py tests/test_agent_plugins_manifest.py tests/test_agent_plugins_package.py tests/test_agent_plugins_ledger.py tests/test_agent_plugins_skills.py tests/test_agent_plugins_mcp.py tests/test_cli_agent_plugin_commands.py tests/test_mcp_client.py tests/test_mcp_client_transport.py tests/test_sandbox_unit.py tests/test_core_runtime_swap.py tests/integration/test_agent_plugins_e2e.py tests/integration/test_agent_plugins_mcp_e2e.py -q- 390 passed.git diff --check github/main...HEADpassed.- Source-language and large-file gates passed when run directly through
uv. - Both remaining failures were reproduced directly and documented in their existing threads.
c79a119 to
3043207
Compare
gloryfromca
left a comment
There was a problem hiding this comment.
No blockers; this can merge as far as I am concerned.
I reviewed the current github/main...HEAD change, the two final fix commits and their callers, repository rules and canonical terminology, backward compatibility, test strength, and the package/MCP/sandbox architecture. Both remaining blockers are fixed: package paths are consistently translated into sandbox mounts, and failed stale-skill deletion retains ledger ownership and surfaces a command failure. I found no new blocker meeting the fourth-round bar.
All five threads I opened are now resolved.
Verification:
PYTHONPATH=plugins-dist/everos-memory uv run pytest tests/test_agent_loop_mcp_sync.py tests/test_agent_loop_workdir.py tests/test_agent_plugins_manifest.py tests/test_agent_plugins_package.py tests/test_agent_plugins_ledger.py tests/test_agent_plugins_skills.py tests/test_agent_plugins_mcp.py tests/test_cli_agent_plugin_commands.py tests/test_mcp_client.py tests/test_mcp_client_transport.py tests/test_mcp_endpoint.py tests/test_sandbox_unit.py tests/test_core_runtime_swap.py tests/integration/test_agent_plugins_e2e.py tests/integration/test_agent_plugins_mcp_e2e.py -q- 442 passed.git diff --check github/main...HEADpassed.- Source-language and large-file gates passed through
uv.
3043207 to
d459ddc
Compare
|
The Because the rewrite replayed every later commit, the two fix commits named in the resolved threads now have new ids: the sandbox path translation is |
gloryfromca
left a comment
There was a problem hiding this comment.
No blockers; this can merge as far as I am concerned.
The force-push changed commit history only: 30432078a0bd and d459ddce9b38 have the same tree object, and their tree diff is empty. The rewritten fix(agent): ... subject passes the repository's commitlint configuration. Because the code is byte-identical, the prior 442-test and repository-gate evidence applies unchanged. I also confirmed that all five review threads I opened remain resolved.
|
Merge conflict: @LivXue this PR no longer merges cleanly into Measured just now with After a rebase onto current main I re-check what moved before the grade comes back. |
|
Blocking: rebase onto current main and resolve the raven/mcp/client.py conflict. I independently confirmed the report against |
d459ddc to
23333a4
Compare
|
Rebased onto Main's |
|
No blockers; this can merge as far as I am concerned. Verified the rebase onto |
gloryfromca
left a comment
There was a problem hiding this comment.
No blockers; this can merge as far as I am concerned.
Reviewed the rebase delta, conflict resolution, affected callers, history/range-diff, backward compatibility, test assertions, and the repository rules in AGENTS.md and CONTEXT.md; no new architecture issue or weakened test remains. The resolution composes main's mirror launch selection with the package cwd, current main is an ancestor, and the merge simulation is clean. Verification: 414 focused tests passed; commit-message, source-language, large-file, and Ruff checks passed. All five review threads I opened remain resolved.
gloryfromca
left a comment
There was a problem hiding this comment.
No blockers; this can merge as far as I am concerned.
Reviewed the delta from the previously clean revision, including the mirror helper contract, callers, process-launch behavior, regression assertions, history, backward compatibility, and repository rules. Passing the configured server cwd into registry resolution aligns the mirror probe with the directory used for launch, and the new test verifies both values without weakening prior coverage. Current main remains an ancestor and the merge simulation is clean. Verification: 415 focused tests passed; commit-message, source-language, large-file, and Ruff checks passed. All five review threads I opened remain resolved.
|
A background security review flagged the cwd alignment in The regression now asserts the probe gets |
gloryfromca
left a comment
There was a problem hiding this comment.
No blockers; this can merge as far as I am concerned.
Reviewed the security delta against the mirror helper, PlugHub vetting path, portable-package trust model, callers, history, backward compatibility, and test assertions. Registry resolution no longer reads third-party package-root configuration, while the actual server process still receives its configured cwd; catalogue entries now independently reject a working directory, alongside the existing registry-changing environment and argument restrictions. The tests preserve both sides of that boundary without weakening prior coverage. Current main remains an ancestor and the merge simulation is clean. Verification: 544 focused tests passed; commit-message, source-language, large-file, and Ruff checks passed. All five review threads I opened remain resolved.
|
Not a blocker (non-blocking points and nits from the same acceptance pass on head b573278 onto main 9efb879; the three blocking points are in their own threads. This pass was read-only, so the test record is this PR's CI.) Severity of this one finding, not a verdict on the pull request. Any blocking findings from this pass are review threads on the changed files; GitHub renders those collapsed, as a file name with no text. Non-blocking:
Nits:
|
|
Blocking: resolve the three new review threads on always-skill isolation, malformed-package containment, and layer seating. These unresolved threads make my previous clean stance stale. I independently measured that the one-line JSON |
The portable Agent Plugins 1.0 package format is published and read by several hosts, and Raven has no reader for it. The design states what a package is, how its skills are discovered and validated against the Agent Skills rules, why an import copies into the workspace skill tree rather than mounting the package in place, and what the trust boundary around a third-party package is. Co-authored-by: Claude (claude-fable-5) <noreply@anthropic.com>
Raven now reads a package directory whose root holds a plugin.json that validates against the official Agent Plugins 1.0.0 manifest schema. The manifest is validated with the specification's own failure boundaries: an unknown top-level field is reported and ignored, a version this build does not implement is refused, and any other violation rejects the package. The package's skills are discovered the way the specification defines them -- the fixed skills/ location, its immediate children only -- validated against the Agent Skills rules, and imported into the workspace skill tree under <workspace>/skills/<package name>/. One directory per package mints one source label per package in the skill pool, so two packages may ship the same skill name without either shadowing the other. The copy is recorded in a ledger, so remove deletes only what the ledger claims and check reports a package that changed since the import. A package cannot put text into every turn: the always flag is dropped from the imported copy. A blocked skill, a skill pointing at another product's home directory, and a target directory the ledger does not own are all refused. raven agent-plugins list | inspect | import | remove | check is the operator surface; agentPlugins.packages says where the packages live. The MCP configuration of a package is not started yet. Co-authored-by: Claude (claude-fable-5) <noreply@anthropic.com>
gloryfromca
left a comment
There was a problem hiding this comment.
Blocking: the remaining always-skill thread still requires its author or a maintainer to settle it.
I reviewed the new delta and found no additional defect. split_frontmatter now uses the registry's ----only boundary, so the decision and rewrite include the same block; the copy is then re-read through the registry parser, and any surviving always flag fails the import and removes the copy. The ... escape and a forced no-op rewrite are both covered. Verification: 449 focused tests passed; commit-message, source-language, large-file, Ruff, merge-simulation, and import-linter checks passed, with all 10 contracts kept.
Threads 4377069837 and 4377070448 are resolved. Thread 4377069244 remains open and belongs to @0xKT, so I am not re-grading or resolving it; the verdict remains blocker until that reviewer or a maintainer settles it.
|
Windows compatibility review — PR #1110 @ Scope: full base-to-head diff ( Two actionable Windows findings, most severe first. 1. Re-import and
|
|
[Ask for Windows bot support] Please fix the two Windows findings from the Windows compatibility review on this head ( 1. Re-import and Remedy: one shared delete helper with an 2. Sandbox path translation emits mixed-separator guest paths on Windows (low, latent). Remedy: build the guest path from Please push the fix to this branch (it is the author's own PR) and reply with what changed and the tests you ran. |
|
No blockers; this can merge as far as I am concerned. Fixed and pushed in 922d9d8.
Verification: 453 focused plugin/MCP/sandbox/runtime tests passed; Ruff, commitlint, commit-message, source-language, large-file, and import-linter checks passed (10 contracts kept). Current main is an ancestor and the merge-tree check is clean. |
gloryfromca
left a comment
There was a problem hiding this comment.
No blockers; this can merge as far as I am concerned.
Reviewed the new Windows-fix delta against current main, including the package import/removal callers, ledger ownership behavior, sandbox mount translation, backward compatibility of CLI output, commit history, tests, and the repository's architecture and source rules. The read-only retry is confined to permission failures, failed removal preserves the ledger claim, and guest path normalization retains mount precedence. No tests were weakened.
Verification on this revision: the three affected suites pass (192 tests), Ruff passes, all 10 import-linter contracts are kept, every review thread is resolved, and the merge-tree check against current main is clean.
|
Windows compatibility re-review — PR #1110 @ Scope: the delta from the previously reviewed head Result: both previously reported Windows findings are fixed at this head, verified on native Windows. No new Windows issue in the delta. 1. Read-only files no longer break re-import or
|
|
This answers the request in issuecomment-6422696743. State at pickup. No change was needed from me: the PR head already implements both remedies from the request. At the time of this run the head is Finding 1 - read-only files blocked re-import and
Finding 2 - mixed-separator guest paths.
Tests.
Limitations.
|
ruff format joins the two lines the Windows fix wrapped shorter than the repository width. No behaviour change.
gloryfromca
left a comment
There was a problem hiding this comment.
No blockers; this can merge as far as I am concerned.
Reviewed the delta from the last accepted head and the current-main integration. This revision only applies formatter output to two Windows regression tests; assertions, fixtures, production code, callers, backward compatibility, and architecture boundaries are unchanged, and no test was weakened. The repository rules and commit history were also checked.
Verification: the affected suites pass (163 tests), Ruff and formatter checks pass, commitlint and the repository commit-message gate pass, and the merge-tree check against current main is clean.
|
Windows compatibility re-review — PR #1110 @ Scope: delta from the previously reviewed head Result: no new Windows-relevant code; both fixes reported at the previous heads remain in place.
The Windows read-only re-import/remove reproduction and the guest-path probe from the Limitations: as before, boxlite cannot be installed on win32, so the translation fix is exercised through the helper tests rather than a VM; the delta itself is non-functional. |
|
Not a blocker -- two follow-ups on the Windows fix in 922d9d8 (re-checked at 000fd00). Neither stops the merge; both are cheap to fix here or in a follow-up. Severity of this one finding, not a verdict on the pull request. Any blocking findings from this pass are review threads on the changed files; GitHub renders those collapsed, as a file name with no text. 1. The previous head translated both occurrences, which is what the docstring promises ("Rewrite every mounted host root inside text"). It is reachable: 2. On POSIX, a failed
Both measured outside the PR's code (the pattern and the helper copied into a scratch script); local tests of the PR were not run, CI is green on this head. |
The suffix added for Windows separators ran to the next : or ;, so re.sub resumed after it and a second occurrence of the same root in one argument or environment value stayed a host path. It also rewrote every backslash in the tail, including one that was not a separator, on POSIX hosts. The suffix now stops at the next occurrence of the root, so the scan resumes there, and only a Windows host root normalises its tail. A POSIX tail keeps its backslashes. Regressions cover the same root twice in one string and a --sep=\t tail; the Windows single-root case still passes.
remove_tree retried every PermissionError with chmod(S_IWRITE), which clears NTFS's read-only attribute but sets a POSIX path to exactly 0o200. On POSIX the failure means the parent directory is not writable, so the retry failed too and left the retained skill unreadable. The retry is now gated on the platform that has the attribute. A POSIX PermissionError is re-raised unchanged, so the caller keeps the skill with its modes intact.
|
Both follow-ups are fixed in 410c356 and dab409c.
At this head the PR's 16-file suite is 479 passed; ruff, format, ty, lint-imports, source-language, large-file and commit-message gates pass. |
gloryfromca
left a comment
There was a problem hiding this comment.
No blockers; this can merge as far as I am concerned.
Reviewed the two-commit delta from 000fd00 through 410c356 against the full PR, the affected callers, commit history, repository rules, backward compatibility, test changes, and architecture boundaries. The Windows-only deletion retry preserves POSIX modes, and path translation now handles repeated mounted roots without rewriting unrelated POSIX backslashes. I found no test weakening or new architectural dependency.
Verification: 166 affected tests passed; Ruff check and format check passed; diff check, commitlint, and the repository commit-message gate passed. Current main is an ancestor and the merge tree is clean. All review threads are resolved.
|
Windows compatibility re-review — PR #1110 @ Scope: delta from the previously reviewed head One new finding (low, test-only); the two Windows fixes remain correct.
|
|
No blockers; suggestions only, and they are marked inline. The native Windows result adds one concrete test-only follow-up, so my stance on this unchanged revision is now nonblocking rather than clean. The production fixes remain verified; the remaining issue is that test_a_posix_tail_keeps_its_backslashes constructs a Windows-shaped mount root on Windows while asserting POSIX-only behavior. No local rerun can reproduce that native Windows condition, and the branch has not changed since my prior passing Linux verification. |
The test built its mount root from tmp_path, which on Windows contains backslashes; the translator then took the Windows branch and normalised the tail, while the assertion expected the POSIX one. The mount table is now POSIX-shaped explicitly, so the test exercises the same branch on every host. No production code changes.
gloryfromca
left a comment
There was a problem hiding this comment.
No blockers; this can merge as far as I am concerned.
Reviewed the delta from 410c356 through dcaf2c2 against the full PR, affected helper and tests, history, repository rules, backward compatibility, test integrity, and architecture boundaries. The fixture now supplies a POSIX-shaped mount root on every host and retains the original backslash-preservation assertion, so it closes the native-Windows test failure without weakening coverage. No production code or architecture changed.
Verification: 166 affected tests passed; Ruff check and format check passed; diff check, commitlint, and the repository commit-message gate passed. Current main is an ancestor and the merge tree is clean. All review threads are resolved.
|
Windows compatibility re-review — PR #1110 @ Scope: delta from the previously reviewed head Result: the one finding from the
The previously failing assertion and the POSIX-mode deletion test both pass here now. The read-only import/re-import/remove verification and the guest-path probe from the earlier reviews still apply — neither production path changed in this delta. Limitations: boxlite cannot be installed on win32, so translation remains helper-level verification; no full CLI/gateway run. |
## Summary Bump the package version from 0.2.5 to 0.2.6 for the next release. Only pyproject.toml and uv.lock change. Since v0.2.5, main merged 70 PRs: 15 features, 48 fixes, three test, two docs, one perf and one chore. The larger features are portable Agent Plugins 1.0 packages with their MCP servers (#1110), the compacting history strategy with source refs and checkpoints (#1031), sub-agent runs as their own trajectory spans and tabs (#1091, #1094, #1096, #1100), download mirror fallback (#1053), Keenable as a keyless web_search and web_fetch vendor (#1088), Opper as an OpenAI-compatible gateway (#869), and the MiniMax image and video roles (#1013). None carries a BREAKING CHANGE footer. The maintainer chose a patch bump, the way v0.2.1 through v0.2.5 were for their features. A v0.2.6-rc1 tag goes first to dry-run the release pipeline, as v0.2.5 did. The stable tag and release notes follow once this lands. uv.lock is regenerated with uv 0.12.12, which leaves only the raven version line changed (uv 0.9.x rewrites unrelated dependency markers and uv 0.13.x raises the lock revision). ## Type - [ ] Fix - [ ] Feature - [ ] Docs - [ ] CI / tooling - [ ] Refactor - [x] Other ## Verification - `uvx --from uv==0.12.12 uv lock` on a clean worktree cut from origin/main: Updated raven v0.2.5 -> v0.2.6 - `git diff --numstat origin/main..HEAD`: one line each in pyproject.toml and uv.lock - `uvx --from uv==0.13.3 uv lock --check`: exit 0, so the `uv export --locked` step in release.yml accepts the lock - `PYTHONPATH=. python3 scripts/check_commit_messages.py origin/main..HEAD`: exit 0 - `npx commitlint --from origin/main --to HEAD --config commitlint.config.cjs`: exit 0 - No test run: the change is version metadata only. - [ ] Relevant tests pass locally - [x] Relevant lint / type checks pass locally - [ ] User-facing docs or screenshots are updated when needed ## Risk No code change. Rollback is reverting this commit before any v0.2.6 tag is pushed. - [ ] Security impact considered - [x] Backward compatibility considered - [x] Rollback path is clear for risky changes ## Related Issues N/A Co-authored-by: Claude (claude-fable-5-1) <noreply@anthropic.com>
Summary
Raven learns to read the portable Agent Plugins 1.0 package format: a directory whose root holds a
plugin.jsonthat validates against the official manifest schema, with optionalskills/andmcp.jsoncomponents. It is data only, and it is not the kernel plugin kind (raven-plugin.toml, Python factories that run inside the host), so it lives in its ownraven/agent_plugins/subsystem with its own trust story.Skills. A package's skills are discovered exactly as the format defines them (the fixed
skills/location, immediate children only), validated against the Agent Skills rules (name rules, name equals directory name, description bounds), and imported into the workspace skill tree under<workspace>/skills/<package name>/. One directory per package mints one source label per package in the pool, so two packages may ship the same skill name without either shadowing the other. The copy is recorded in a ledger (<home>/agent-plugins.json), soremovedeletes only directories the ledger claims andcheckreports a package that changed since the import. Re-importing removes the skills the package no longer ships; when a copy cannot be deleted the import reports the failure and keeps the ledger's claim on it, so a laterremovecan still clear it.Trust. A package cannot put text into every turn: the
alwaysflag is dropped from the imported copy. A skill onskillForge.blocklist, or one whose body points at another product's home directory, is refused. A target directory the ledger does not own is never written into: a package directory that already exists and is not the ledger's refuses the whole import, and a skill directory that is not the ledger's is skipped and reported. A package may not take a name the skill layers use (workspace,external,builtin): that directory is a pool source label, and a package there would answer as the layer and shadow a shipped skill.MCP. A package's
mcp.jsonis read and its entries validated against the format's three closed variants (stdio, Streamable HTTP, legacy HTTP+SSE). The configuration's$schemahas to name the same Agent Plugins version the package manifest does; a mismatch disables MCP for that package and leaves its skills alone. One unusable entry never takes the others down. The composed server names are<package>__<server>, they run with the package root as their working directory and withPLUGIN_ROOTandPLUGIN_DATAin their environment, and the format's two placeholders are expanded in their arguments, environment and working directory only. Under a sandboxed executor every one of those paths is translated to its guest mount, and the package data root is mounted at/plugin-datawhen a package stdio server is configured, soPLUGIN_DATAresolves inside the VM. A package's server is a process on the operator's machine, so it starts only for a package named inagentPlugins.mcpPackages; without that, the configuration is parsed, validated and reported and nothing runs.Surface.
raven agent-plugins list | inspect | import | remove | check, each with--json; the newagentPluginsconfig block (packages,disabled,mcpPackages).MCPServerConfiggainedcwd, which the stdio transport passes to the MCP SDK; the boxlite executor translates it, together with the server's command, arguments and environment, to their guest mounts, and refuses a working directory outside every mounted volume by name rather than launching the server in the wrong directory. The loop keeps the package layer apart from the host's own servers, so a live answer about the host's servers never drops them.Design and reasoning:
docs/specs/2026-10-25-agent-plugins-loader-design.md. Operator page:docs-site/docs/agent-plugin-packages.md(and its Chinese page). The vendored official manifest schema sits underschemas/agent-plugins/1.0.0/with a NOTICE naming its source and licence.Type
Verification
End-to-end, not just unit tests:
package_mcp_layercomposes it,MCPConnectionManagerconnects it, the tool is callable, and the child process reports the package root as its working directory plus both plugin variables.agentic-awesome-skillsrepository (sparse clone, all 30 bundles): 30 packages imported, 365 of 368 skills loaded, 3 refused by the foreign-home lint (environment-setup-guide,ethical-hacking-methodology,writing-skills), andraven agent-plugins checkreports every package as current.tests/test_config_loader.pyhas 19 failures on this Windows box that are present at the base commit as well (verified by stashing this branch's changes); they are unrelated to this PR.Risk
Security impact considered
Backward compatibility considered
Rollback path is clear for risky changes
A package's skills are third-party instructions that reach the model. That is what a skill is; the mitigations are the dropped
alwaysflag, the operator blocklist, the foreign-home lint, and the rule that nothing is imported over a directory the ledger does not own.A package's MCP server is a process on the operator's machine, so it needs an explicit per-package opt-in (
agentPlugins.mcpPackages). With no opt-in nothing is started.MCPServerConfig.cwddefaults to the empty string, so every existingtools.mcpServersentry behaves exactly as before. A stdio server that names a working directory inside a mounted volume runs there, with its command, arguments and environment translated to guest paths; a directory outside every mounted volume is refused with a reason instead of being launched in the wrong directory. A caller that supplies its own executor owns that executor's mount table and has to mount the package data root at/plugin-dataitself.Imported skills live in the workspace and the ledger in the Raven home; neither is inside this repository, and
raven agent-plugins remove <package>deletes what the ledger claims. Reverting the squash commit leaves an emptyagentPluginsconfig and a dormant loader.This is not a conformance submission to the Agent Plugins client directory, and it deliberately does not read the host-native formats (
.claude-plugin/,.codex-plugin/) or the repository's flatskills/folder.Related Issues
N/A