Skip to content

feat: add signed portable agent marketplace - #864

Merged
AmitoVrito merged 2 commits into
SynapseKit:mainfrom
DhruvGarg111:feat/issue-751-agent-marketplace-v2
Jul 29, 2026
Merged

AmitoVrito merged 2 commits into
SynapseKit:mainfrom
DhruvGarg111:feat/issue-751-agent-marketplace-v2

Conversation

@DhruvGarg111

Copy link
Copy Markdown
Collaborator

Summary

Adds the repository-side foundation for issue #751: a deterministic, signed .agent bundle format, safe install flow, CLI lifecycle, and a self-hostable file-backed registry with signed reviews and eval-based ranking.

Refs #751

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / internal improvement
  • Dependency / tooling update

Changes

  • Add canonical Ed25519-signed manifests with per-file SHA-256 verification, UMP/router metadata, required README/evals, archive limits, and deterministic ZIP output.
  • Verify from an immutable in-memory snapshot before atomic extraction or inert installation; reject traversal, symlinks, Windows device names/ADS, duplicates, and case-insensitive path collisions.
  • Require an explicit sandbox runner before installed bundle execution and prevent untrusted manifests from disabling the schema 1.0 sandbox policy.
  • Add agent keygen, pack, verify, unpack, install, and publish CLI commands.
  • Add an immutable file-backed registry with publisher trust pinning, signed reviews, deterministic eval/review ranking, public exports, tests, and an open versioned bundle specification.

Testing

  • All existing tests pass (uv run pytest tests/ -q)
  • New tests added for new behaviour
  • No API keys or secrets in the code

Local validation:

  • 28 passed for tests/marketplace and tests/cli/test_agent_marketplace_cli.py
  • ruff check src/ tests/
  • ruff format --check src/ tests/ (811 files)
  • mypy (484 source files)
  • deptry src/
  • git diff --check

The full Windows suite was also split across four groups: 4,753 passed, 57 skipped, and 1 xfailed. Fifteen pre-existing Windows/environment failures remained in Unix-shell, REPL-subprocess, legacy audit-trust, and mesh temporary-ingestion tests; none touched the marketplace implementation. GitHub Actions is the authoritative full-suite gate.

Documentation

  • Docstrings updated (if public API changed)
  • synapsekit-docs updated (if new feature)
  • CHANGELOG.md updated

The versioned repository specification is included at docs/agent-bundle-v1.md.

Notes for reviewer

The hosted agents.synapsekit.io index, optional Stripe deployment, and five-agent community seed launch are operational/community deliverables and are intentionally not claimed by this repository PR.

Please pay particular attention to the trust boundary: an embedded key proves bundle integrity, while publisher/reviewer authenticity requires a caller-pinned key obtained independently.

@AmitoVrito
AmitoVrito merged commit 4629c56 into SynapseKit:main Jul 29, 2026
16 checks passed
@AmitoVrito

Copy link
Copy Markdown
Collaborator

Merged as part of the v2 batch — thanks Dhruv. Spent a while trying to break the bundle verification (zip-slip, symlink escape, signature substitution) and it held up everywhere. Nicely done.

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.

v2.1 (beyond): Agent Marketplace — your trained agents are portable, signed, tradeable assets

2 participants