Skip to content

refactor(deployment)!: remove App Deployment and bound capabilities #580

Description

@Yevanchen

Parent

What to build

Remove the App Deployment product and its deployment-bound Agent capability model from Mosoo main.

This is an end-to-end removal, not a hidden or deprecated surface:

  • Remove repository deployment, framework detection, build planning, Mosoo subdomains, deployment runs and history, Cloudflare Pages/Worker provisioning, redeploy, and deletion flows.
  • Remove the deployment console and preview experience while preserving non-deployment tenant content needed before the Workspace migration.
  • Remove App Deployment GraphQL operations, contracts, generated clients, identifiers, command variants, configuration, environment variables, provider-only dependencies, CLI commands and guidance, documentation, examples, and translations.
  • Remove every bound-capability URL and route, signed-token implementation, capability-specific caller, admission and revocation policy, idempotency scope, Thread visibility rule, deployment authority guard, and Run provenance path.
  • Remove deployment bindings from repository configuration and generated deployment environments. Do not leave stubs, aliases, redirects, disabled feature flags, or compatibility parsers.
  • Keep the ordinary API-key-authenticated Agent/Thread path working until the Workspace and Session API slices replace it.
  • Do not remove unrelated concepts that merely contain the word “deployment,” including immutable Agent configuration revisions, Mosoo's own production deployment machinery, or generic runtime infrastructure.
  • Remove only App Deployment command variants; shared command queues remain where retained runtime workflows use them.

Use the existing cleanup behavior before deleting its implementation:

  1. Freeze creation of new App Deployments and bound capabilities.
  2. Inventory active deployments, active deployment runs, and queued or running deployment commands.
  3. Delete or explicitly account for every tracked Pages project, Worker script, route, domain, and deployment sandbox through the current compensating cleanup path.
  4. Verify that no external hosted site remains managed by Mosoo and no deployment command can still execute.
  5. Remove bound routes so all previously issued capability URLs become unusable.
  6. Remove the active product, API, runtime, and infrastructure code.

Preserve accepted Session, Run, message, artifact, usage, and audit records after removing deployment-only provenance.

Do not rewrite established D1 migrations, snapshots, or journals. Historical deployment tables and provenance columns may remain as isolated retired storage in this slice. Physically dropping or rewriting them requires explicit approval, a production backup, verification queries, and a rollback plan.

Acceptance criteria

  • The console contains no deploy, redeploy, deployment status, deployment history, repository hosting, subdomain, or bound-Agent experience.
  • Former bound-capability routes are unregistered, and all previously issued capability URLs are unusable.
  • A normal authenticated public API call still reaches an authorized Agent without any Deployment dependency.
  • Session and Run admission no longer reads, validates, or writes App Deployment authority or bound-capability provenance.
  • No App Deployment GraphQL field, contract, generated client, command, external provisioner, configuration variable, CLI surface, documentation promise, or provider-only dependency remains.
  • No stub, redirect, tombstone endpoint, or active compatibility layer remains.
  • Shared command queues, Agent configuration revisions, runtime, and Mosoo production deployment tooling remain intact.
  • Production inventory proves there are no active deployment runs or queued deployment commands before their processors are removed.
  • All tracked external hosted resources are deleted or explicitly accounted for before the feature is declared removed.
  • Existing Sessions, Runs, messages, artifacts, usage, and audit history remain readable without executable Deployment semantics.
  • Historical D1 migrations remain byte-for-byte unchanged; fresh-chain and production-shaped forward-migration verification pass.
  • Frontend, API, contract, generated-client, database, and end-to-end verification pass without App Deployment.

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-for-agentFully specified and ready for an agent to implement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions