Skip to content

Add trusted extension installation - #133

Merged
0YHR0 merged 1 commit into
mainfrom
agent/trusted-extension-lock
Aug 3, 2026
Merged

Add trusted extension installation#133
0YHR0 merged 1 commit into
mainfrom
agent/trusted-extension-lock

Conversation

@0YHR0

@0YHR0 0YHR0 commented Aug 3, 2026

Copy link
Copy Markdown
Owner

What changed

  • add a strict versioned extensions.lock for built-in and third-party runtime extensions
  • reject unlisted installed Entry Points before importing extension Python code
  • validate loaded manifests against locked capability and risk declarations
  • add wheel metadata/SHA-256 preflight, no-dependency installation, and JSONL receipts
  • expose trust provenance through GET /api/v1/extensions
  • document the same-process trust boundary in English and Chinese

Why

Runtime Extension API v0.1 proved that separately distributed scenarios work, but any installed
Entry Point was imported on startup. This adds the minimum operator-controlled trust boundary
needed before encouraging real extension installation.

Impact

Operators pin exact extension bytes and declarations, install them through
agentmesh-extension-install, and can inspect effective trust status. This does not claim package
signatures or process isolation; extensions remain trusted code in the API process.

Validation

  • python -m ruff check .
  • python -m pytest -q (431 passed, 28 skipped)
  • python -m pytest --cov=agentmesh --cov-fail-under=80 (83.21%)
  • built the AgentMesh wheel and verified it contains extensions/default.lock
  • verified the published Daily Brief v0.1.0 wheel against the repository lock and GitHub digest

@0YHR0
0YHR0 marked this pull request as ready for review August 3, 2026 08:42
@0YHR0
0YHR0 merged commit 1b0f6da into main Aug 3, 2026
7 checks passed
@0YHR0
0YHR0 deleted the agent/trusted-extension-lock branch August 3, 2026 08:42
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