Repository navigation
feat(plugins): artifact integrity, deterministic lockfile, version helpers and trust badges - #501
Merged
Ayinkx merged 4 commits intoOct 17, 2026
Conversation
|
@Ayinkx01 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Summary
Implements four Phase 9 plugin-marketplace foundations, all branched from
AyinkxLab/ai-code-assistantmain(70005b1):app/services/plugin_artifacts.py: streams artifacts, normalizes catalog digests (sha256:,sha256-, bare hex), compares withhmac.compare_digest, records a bounded audit denial on mismatch, and exposesverify_and_register_artifact()so registration only happens after verification.app/services/plugin_lockfile.py: sorts entries by plugin id, canonicalizes PEP 440 versions, normalizes hashes tosha256:<lowercase hex>, sorts dependencies, writes sorted-key JSON with one trailing LF, omits volatileresolved_at, and supports atomic writes.app/services/plugin_versions.pywith parse/validate/normalize/compare/sort/latest helpers and clear invalid-version errors. Compatibility (plugin_compat.py) and dependency (plugin_deps.py) checks now reuse it.app/static/js/plugin_badges.js, rendering trusted/unverified/invalid signature and compatible/incompatible/unknown states with visible text, icons, andaria-label(never color alone). The plugin management view loads it, andtests/js/plugin_badges.test.jsasserts the rendered labels.Verification
python -m pytest tests/test_plugin_versions.py tests/test_plugin_compat.py tests/test_plugin_deps.py tests/test_plugin_lockfile.py tests/test_plugin_artifacts.py tests/test_plugins_api.py -q— passpython -m ruff check <changed Python files>— passpython -m black --check <changed Python files>— passnpm test— 54 tests passManual checks also confirmed: PEP 440 ordering/sorting, byte-identical lockfile output for shuffled entries, sha256 match accepted and mismatch refused, and badge labels rendered as expected.
Closes #384
Closes #398
Closes #399
Closes #419