openwork icon indicating copy to clipboard operation
openwork copied to clipboard

feat(den): manage Marketplace Plugin assignments

Open reachjalil opened this issue 4 months ago • 5 comments

Summary

  • add a dedicated Marketplaces tab to Plugin detail
  • let Den administrators add or remove Marketplace assignments from the Plugin itself
  • mirror the compact picker/list/remove rhythm used by Marketplace member access
  • keep Marketplace detail focused on browsing its Plugin catalog, without assignment controls
  • confirm that removal deletes only the Plugin ↔ Marketplace relationship
  • add a narrated real-app Den flow for the complete Plugin-side journey

User impact

Plugin composition now has one clear home. Administrators open a Plugin, switch to Marketplaces, and manage every Marketplace where members can discover it. Removing an assignment never deletes or archives either global resource.

This remains complementary to Plugin and Skill CRUD (#3144): CRUD manages the Plugin and its contents, while this PR manages the separate Plugin ↔ Marketplace relationship.

Sync status

  • synced with different-ai/openwork:dev at afdf8a3825f0452083355916c9a24c82fb5d6e42
  • exact PR head: a17aa32aa2bfe5284adfb50241e7bf2eaf34ec20
  • GitHub reports the PR mergeable
  • 6 changed files

Focused verification

  • Marketplace assignment source contract: 3 tests passed, 23 assertions
  • Den Web TypeScript typecheck passed
  • eval TypeScript typecheck passed
  • git diff --check passed

Full real-app fraimz

The dedicated den-marketplace-plugin-assignments demo passed against the exact pushed head and the isolated seeded Den stack:

  1. seeded administrator sign-in
  2. creation of an isolated active Plugin and Marketplace through the real Den API
  3. Plugin detail → Marketplaces tab navigation
  4. eligible Marketplace discovery through the searchable picker
  5. relationship creation and resolved Marketplace API confirmation
  6. Plugin-side relationship-only removal confirmation
  7. removal, renewed eligibility, and proof that both resources remain active
  8. automatic cleanup of temporary fixtures
  9. complete four-paragraph voice-over coverage

Result: 1 passed, 0 failed, 0 skipped.

Fraimz proof: https://github.com/different-ai/openwork/pull/3106#issuecomment-5104817047

Exact-head CI

All code-related checks passed on a17aa32aa2bfe5284adfb50241e7bf2eaf34ec20:

  • Linux and macOS OpenWork tests
  • i18n audit
  • Helm validation
  • Den API, Den Web, Den Gateway, and inference artifact builds
  • Den API migration-asset assertion and smoke health endpoint
  • public landing Vercel deployment

Four Vercel checks (openwork-app, openwork-den, openwork-den-worker-proxy, and openwork-diagnostics) report Authorization required to deploy. These are repository/account authorization failures and did not execute deployments; they are not code test failures.

Review boundary

The redesigned candidate is synced, mergeable, locally verified, fraimz-proven, and green on every code-related check. It remains draft because marking ready for review is a separate explicit action.

reachjalil avatar Jul 25 '26 12:07 reachjalil

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 Jul 28, 2026 1:34pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openwork-diagnostics Skipped Skipped Jul 28, 2026 1:34pm

vercel[bot] avatar Jul 25 '26 12:07 vercel[bot]

@reachjalil is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jul 25 '26 12:07 vercel[bot]

CI triage note: the shared OpenWork Linux/macOS suite currently fails on apps/server/src/opencode-plugins/openwork-capabilities-knowledge.test.ts, which expects Settings > Connect while current dev documentation correctly says Settings > OpenWork Connect. I reproduced the same failure locally from the current dev base; this PR does not modify that test or documentation. The focused candidate checks listed in the PR body pass. Vercel authorization contexts are also external project-access gates, not feature test failures.

reachjalil avatar Jul 26 '26 13:07 reachjalil

fraimz — ✅ PASSED

1 passed · 0 failed · 0 skipped — run 2026-07-28T13-18-05-479Z

Full frame proof with validated screenshots: evals/results/2026-07-28T13-18-05-479Z/fraimz.html (re-run: pnpm fraimz --flow den-marketplace-plugin-assignments)

✅ den-marketplace-plugin-assignments — Den assigns and removes existing Plugins from one Marketplace relationship

User-facing flow demo

  • ✅ The seeded administrator can sign in
  • ✅ The proof creates an empty Marketplace through the real Den API
  • ✅ The proof creates an active Plugin outside the Marketplace
  1. An administrator can choose an active Plugin not yet assigned to the Marketplace

    🎙 I open an empty Marketplace as an administrator and choose an existing active Plugin that is not assigned to it yet.

    • ✅ The empty Marketplace lists the unassigned Plugin as eligible
  2. The Marketplace offers an active, unassigned Plugin as an assignment candidate.

    🎙 I open an empty Marketplace as an administrator and choose an existing active Plugin that is not assigned to it yet.

    • 📸 den-marketplace-plugin-assignments-01-marketplace-existing-plugin-eligible.png — 10 validations passed
  3. Assigning creates the exact Marketplace relationship and removes the Plugin from eligibility

    🎙 I assign the Plugin, and it appears in this Marketplace immediately while disappearing from the eligible assignment choices.

    • ✅ The proof selects the eligible Plugin
    • ✅ The assigned Plugin is removed from the eligible choices
    • ✅ The real resolved Marketplace contains the assigned Plugin
  4. The assigned Plugin appears in the Marketplace and is no longer offered as a candidate.

    🎙 I assign the Plugin, and it appears in this Marketplace immediately while disappearing from the eligible assignment choices.

    • 📸 den-marketplace-plugin-assignments-02-marketplace-existing-plugin-assigned.png — 10 validations passed
  5. Removal is explicitly scoped to the Marketplace relationship

    🎙 I choose Remove, and the confirmation makes the boundary explicit: only this Marketplace relationship will be removed, while the global Plugin and its configuration stay available.

    • ✅ The confirmation explains that the global Plugin remains available
  6. The named confirmation makes the relationship-only removal boundary explicit.

    🎙 I choose Remove, and the confirmation makes the boundary explicit: only this Marketplace relationship will be removed, while the global Plugin and its configuration stay available.

    • 📸 den-marketplace-plugin-assignments-03-marketplace-plugin-removal-confirmation.png — 10 validations passed
  7. Confirmed removal empties the Marketplace while leaving the Plugin active

    🎙 I confirm removal, and the Marketplace becomes empty again while the still-active Plugin returns as an eligible assignment choice.

    • ✅ The relationship is gone and the global Plugin remains active
  8. The Marketplace is empty again and the still-active Plugin is eligible for reassignment.

    🎙 I confirm removal, and the Marketplace becomes empty again while the still-active Plugin returns as an eligible assignment choice.

    • 📸 den-marketplace-plugin-assignments-04-marketplace-plugin-relationship-removed.png — 10 validations passed
    • ✅ The proof archives its temporary Plugin and Marketplace
    • ✅ Script frame 1 narrated: "I open an empty Marketplace as an administrator and choose an existing active Plugin tha"
    • ✅ Script frame 2 narrated: "I assign the Plugin, and it appears in this Marketplace immediately while disappearing f"
    • ✅ Script frame 3 narrated: "I choose Remove, and the confirmation makes the boundary explicit: only this Marketplace"
    • ✅ Script frame 4 narrated: "I confirm removal, and the Marketplace becomes empty again while the still-active Plugin"

(screenshot upload failed: BLOB_READ_WRITE_TOKEN is not set and could not be fetched from Infisical (infisical secrets get BLOB_READ_WRITE_TOKEN --plain --silent) — run infisical login once, or export it: export BLOB_READ_WRITE_TOKEN="$(infisical secrets get BLOB_READ_WRITE_TOKEN --plain --silent)" — images available in the run directory)

reachjalil avatar Jul 28 '26 13:07 reachjalil

fraimz — ✅ PASSED

1 passed · 0 failed · 0 skipped — run 2026-07-28T13-33-08-370Z

Full frame proof with validated screenshots: evals/results/2026-07-28T13-33-08-370Z/fraimz.html (re-run: pnpm fraimz --flow den-marketplace-plugin-assignments)

✅ den-marketplace-plugin-assignments — Den manages Marketplace assignments from the Plugin detail tab

User-facing flow demo

  • ✅ The seeded administrator can sign in
  • ✅ The proof creates an active Marketplace through the real Den API
  • ✅ The proof creates an active Plugin outside every Marketplace
  1. The Plugin detail page owns Marketplace assignment with the same compact add pattern as member access

    🎙 I open a Plugin, switch to its Marketplaces tab, and use the same compact add pattern as Marketplace member access to find an eligible Marketplace.

    • ✅ The empty Plugin lists the unassigned Marketplace as eligible
  2. The Plugin has a dedicated Marketplaces tab with an eligible Marketplace picker.

    🎙 I open a Plugin, switch to its Marketplaces tab, and use the same compact add pattern as Marketplace member access to find an eligible Marketplace.

    • 📸 den-marketplace-plugin-assignments-01-plugin-marketplaces-eligible.png — 11 validations passed
  3. Adding from Plugin detail creates the exact Marketplace relationship

    🎙 I add the Marketplace, and the assignment appears immediately on the Plugin while the real resolved Marketplace now contains this Plugin.

    • ✅ The proof selects the eligible Marketplace
    • ✅ The real resolved Marketplace contains the assigned Plugin
  4. The Marketplace appears as an assignment on the Plugin detail page.

    🎙 I add the Marketplace, and the assignment appears immediately on the Plugin while the real resolved Marketplace now contains this Plugin.

    • 📸 den-marketplace-plugin-assignments-02-plugin-marketplace-assigned.png — 10 validations passed
  5. Removal is explicitly scoped to this Plugin-to-Marketplace relationship

    🎙 I remove the Marketplace from the Plugin, and the confirmation makes the boundary explicit: only this relationship is removed while both global resources remain available.

    • ✅ The confirmation preserves both global resources
  6. The named confirmation makes the relationship-only removal boundary explicit.

    🎙 I remove the Marketplace from the Plugin, and the confirmation makes the boundary explicit: only this relationship is removed while both global resources remain available.

    • 📸 den-marketplace-plugin-assignments-03-plugin-marketplace-removal-confirmation.png — 10 validations passed
  7. Confirmed removal leaves both resources active and makes the Marketplace eligible again

    🎙 I confirm removal, and the Plugin becomes unassigned again while the still-active Marketplace returns to the add picker.

    • ✅ The relationship is gone while the Plugin and Marketplace remain active
  8. The Plugin is unassigned again and the active Marketplace is available to add.

    🎙 I confirm removal, and the Plugin becomes unassigned again while the still-active Marketplace returns to the add picker.

    • 📸 den-marketplace-plugin-assignments-04-plugin-marketplace-relationship-removed.png — 10 validations passed
    • ✅ The proof archives its temporary Plugin and Marketplace
    • ✅ Script frame 1 narrated: "I open a Plugin, switch to its Marketplaces tab, and use the same compact add pattern as"
    • ✅ Script frame 2 narrated: "I add the Marketplace, and the assignment appears immediately on the Plugin while the re"
    • ✅ Script frame 3 narrated: "I remove the Marketplace from the Plugin, and the confirmation makes the boundary explic"
    • ✅ Script frame 4 narrated: "I confirm removal, and the Plugin becomes unassigned again while the still-active Market"

(screenshot upload failed: BLOB_READ_WRITE_TOKEN is not set and could not be fetched from Infisical (infisical secrets get BLOB_READ_WRITE_TOKEN --plain --silent) — run infisical login once, or export it: export BLOB_READ_WRITE_TOKEN="$(infisical secrets get BLOB_READ_WRITE_TOKEN --plain --silent)" — images available in the run directory)

reachjalil avatar Jul 28 '26 13:07 reachjalil