When
A Space needs a reusable published App available from its Apps panel, with a controlled enable/disable/uninstall lifecycle.
Outcome
- The Space has a validated
.cohub/apps.jsonmanifest. - Marketplace metadata and launch URLs are checked before installation.
- Concurrent clients cannot silently replace one another's installed-App list.
Steps
- Open Apps in the Space sidebar or mobile drawer and launch the first-party Marketplace App.
- Select the invocation Space, or use its Space picker. Grant only the two file permissions needed by the Marketplace flow:
file.viewto read.cohub/apps.jsonfile.editto install, enable, disable, or uninstall entries
- Search the Marketplace by name, publisher, keyword, or canonical
username/space/appreference. Verify the displayed URL and publisher before installing. - Install the App. The Marketplace validates the catalog and app manifest, then writes format
cohub.space-apps, version1to.cohub/apps.json. - Use the Apps panel to enable or disable an installed entry. Uninstall removes the entry from this Space's manifest; it does not delete the published App.
- If another client changed the manifest, reload the current file and merge the intended change. Preserve its expected
mtimeMsandsizeon the next write.
Minimal manifest shape:
{
"format": "cohub.space-apps",
"version": 1,
"apps": []
}Boundaries
App installation is a Space file operation, not a new App-management permission. The installed list controls discoverability and enabled state; the published App still enforces its own runtime appScopes and viewer grants.
A Marketplace catalog entry is not proof that an App is safe for every workflow. Review publisher, URL, requested runtime scopes, and the data the App will read before enabling it.
Done when
- [ ] The manifest parses and stays below the 1,000-entry limit
- [ ] The App opens from the current Space's Apps panel
- [ ] Enable/disable/uninstall is reflected on every client
- [ ] A concurrent-write conflict is retried from fresh file state
- [ ] Published-App runtime permissions remain least-privilege
Avoid
- Editing
.cohub/apps.jsonwith an unvalidated arbitrary schema - Replacing the whole manifest from a stale read
- Assuming installation grants file, prompt, generation, or admin access
- Deleting the published App when you only want to uninstall it from one Space