Design: Agent Platform (Marketplace, Versioning, Rollout)
Published:
๐ฏ Problem Statement
Build an internal agent platform: teams publish versioned agents, skills, and tools; 500 engineers discover and consume them in their own workflows.
Constraints:
- Breaking changes happen (prompt edits, tool signature changes) โ consumers must not break silently.
- Dependency hell: agent A depends on skill B v2 which depends on tool C v1โฆ
- Security review: a malicious or careless published skill is a supply-chain attack.
- Discoverability: 500 engineers canโt use what they canโt find.
๐ Architecture
Prompts and skills are software artifacts: versioned, tested, rolled out, deprecated โ not magic strings.
๐งญ Discussion Framework
1. Versioning: semver for the non-deterministic
- Skills/prompts get versions like code: MAJOR (behavior change), MINOR (new capability, backward compatible), PATCH (wording/cost tweaks).
- Pin by default: consumers pin exact versions;
latestis opt-in and clearly labeled dangerous. - Evals per version: a new version ships with its eval results โ the โchangelogโ is measured, not written.
2. Dependency resolution
- Lockfiles for agent compositions (like package-lock): reproducible runs.
- Compatibility ranges with automated checks: publishing skill B v2 triggers eval runs of known dependents.
- The blast radius question: who gets paged when a deep dependency breaks? โ The publisher owns backward compat within a major version; breaking changes require a new major + migration guide.
3. Rollout & safety
- Staged rollouts: canary (1% of traffic / one team) โ gradual โ full, with automatic rollback on metric regression.
- Kill switches per skill version โ platform can disable a bad version globally in minutes.
- Shadow mode: new versions run alongside old, results compared, no user impact.
4. Security & sandboxing
- Publishing pipeline: static analysis of tool code, permission review (what can this skill do?), provenance (who published, what changed).
- Runtime sandboxing: skills run with least-privilege tool scopes; tenant isolation so Team Aโs data never leaks into Team Bโs runs.
- Audit trail: every skill invocation logged with version pins โ reproducibility for incidents.
5. Discovery & metering
- Marketplace UX: search, categories, usage stats, ratings, example compositions. Discovery is a product problem, not a docs problem.
- Metering/billing: track $/team/agent for chargeback and cost awareness โ nothing disciplines usage like a bill.
6. Deprecation contract
- Published policy: N months notice, migration guides, automated codemods where possible. A platform without a deprecation story becomes a museum of frozen versions.
๐ Deep-Dive Questions
- โTeam Aโs v2 breaks Team Bโs workflow โ who owns the fix?โ โ Team A, if they broke backward compat within a major version (thatโs the contract). If B pinned
latestagainst advice, B owns it. The platformโs job: make the contract explicit and the breakage visible before it ships (dependent eval runs). - โDesign the canary analysis for a prompt change.โ โ Same traffic split, compare: task success rate, cost/task, latency p99, and judge-scored quality โ with statistical significance thresholds, not eyeballing.
- โA skill is popular but the owning team left โ now what?โ โ Adoption/ownership policy decided at publish time: popular skills get platform-team adoption or a new owner; unowned skills get deprecated, not orphaned.
๐ก What Great Looks Like
The candidate treats prompts and skills as software artifacts (versioned, tested, rolled out, deprecated) โ not as magic strings. The strongest answers name the contracts between publisher, platform, and consumer, because thatโs where platform design actually lives.
Share on
Twitter Facebook LinkedInโ Buy me a coffee! ๐
If you found this article helpful, consider buying me a coffee to support my work! ๐
