feat(skill): add standard package lifecycle and remote distribution - #1351
Open
Teingi wants to merge 11 commits into
Open
feat(skill): add standard package lifecycle and remote distribution#1351Teingi wants to merge 11 commits into
Teingi wants to merge 11 commits into
Conversation
…s-lifecycle-rfc # Conflicts: # src/powercontext/server/templates/base.html # uv.lock
…ills-lifecycle-rfc # Conflicts: # src/powercontext/server/templates/base.html # uv.lock
…s-lifecycle-rfc # Conflicts: # src/powercontext/server/templates/base.html
…ills-lifecycle-rfc
…s-lifecycle-rfc # Conflicts: # docs/en/docs/reference/configuration.md # docs/zh/docs/reference/configuration.md # pyproject.toml # src/powercontext/server/settings.py # src/powercontext/server/web.py # tests/test_cli.py
1 task
Teingi
marked this pull request as ready for review
August 30, 2026 10:25
…s-lifecycle-rfc # Conflicts: # src/powercontext/builtin/inference/pydantic_ai.py # src/powercontext/builtin/runtime/composition.py # src/powercontext/server/middleware.py # tests/builtin/inference/test_pydantic_ai.py # uv.lock
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.
Which issue or RFC does this PR close?
Closes #1397.
Implements the Standard Skill Package Lifecycle RFC:
docs/en/rfcs/1351_standard_skill_package_lifecycle.mddocs/zh/rfcs/1351_standard_skill_package_lifecycle.mdRationale for this change
PowerContext can govern Experience and Skill revisions, but a useful Skill management loop also needs an authoritative package format, explicit local installation, and a secure way to distribute exact approved revisions to remote coding-agent machines. This change provides that end-to-end loop while keeping review, installation, execution, and remote credentials as separate trust boundaries.
What changes are included in this PR?
powercontextentrypoint in systemd units, return a lifecycle-specific422error for deprecated/retired publication, and support the latest OpenClaw's non-interactive pnpm and plugin-diagnostic behavior.Are there any user-facing changes?
Yes. The Skills Dashboard now exposes governed package contents, provenance, lifecycle controls, local installation targets, and remote machine distribution. New CLI commands support enrollment, reconciliation, watch mode, and user-service installation. New HTTP operations and persistence tables/columns support package and distribution state.
Existing managed Skill revisions without a standard package remain visible but cannot be published until a package-backed revision is created or uploaded. Remote distribution is pull-based: the Server does not SSH into or directly write another machine. Package approval and publication do not grant runtime tool, network, filesystem, secret, or dependency-install authority.
How was this change tested?
Automated validation:
make checkmake docs-testmake contract-test(29 passed)89 passed)16 passed)1018 passed, 9 skipped; six Hermes tests were affected only by an existing repo-local.git/powercontext/codex-workspace.jsonworkstream binding and passed (6 passed) when rerun with that local binding disabled.Real scenario validation used the configured
.envdatabase and LLM without exposing credentials:2026.9.1-beta.1and validated the real CLI, long-lived Gateway, plugin RPC, store/search/get/revise/retire, automatic recall, LLM-backed capture/flush, persistence after restart, and uninstall restoration.AI usage statement
OpenAI Codex (GPT-5) was used for design refinement, implementation, documentation, real-environment validation, defect diagnosis, and test execution. The resulting changes and validation evidence were reviewed before submission.