Skip to content

Developer DX: no documented way for a Seed owner to install their own cog #48

Description

@shaal

Summary

Building a custom cog (DOOM — see cognitum-one/cogs#28), I found there's no documented way for a Seed owner/developer to install a cog they built themselves. The only sanctioned path assumes you're Cognitum.

What I hit

  • The cog-dev plugin's /cog-deploy does gsutil cp … gs://cognitum-apps/… and refuses unless you're authenticated to Cognitum's private GCS bucket. Third-party developers can't use it.
  • POST /api/v1/apps/install only accepts {"id":"…"} and downloads by id from the fixed cloud registry. No upload, no arbitrary URL, no owner-configurable registry. Installing a non-registry id returns cog not found in registry or binary missing.
  • To run my own cog I had to reverse-engineer the on-disk layout (place the binary + cog.toml + config.json under /var/lib/cognitum/apps/<id>/ and restart). That works but is undocumented and fragile.

Suggestions

  1. A documented owner sideload/install — e.g. POST /api/v1/apps/install accepting a local file/upload from the trusted USB/loopback origin, or an owner-configurable registry URL so devs can self-host.
  2. Publish @cognitum/cog-dev (currently 404 on npm; the JS plugin is listed "Soon").
  3. A "deploy your own cog" guide in the developer portal.

This is the single biggest barrier to third-party cog development right now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions