Skip to content

feature: mocactl bundles list to enumerate caller's live config bundles #559

Closed

Description

@evaline-ju

Feature Description

mocactl bundles today exposes only delete DIGEST, keyed by a digest the caller must already hold. There is no way to ask "what bundles do I currently own?"

That gap turns any crash between mocactl promote returning and whatever persists the digest client-side into an unrecoverable orphan. The bundle counts against the caller's budget until TTL, and the caller has no way to find it to mocactl bundles delete it.

Repro

# promote persists the bundle on the server *before* returning the digest to the client
mocactl promote /path/to/bundle --json
# → {"digest":"sha256:335201…","uploaded":true, ...}
#
# If the parent process dies between that response and whatever
# would have written the digest down (a note file, a ledger row,
# MOCA.md), the digest is lost but the bundle lives on the server.

Verified with a probe against the live cluster: promoted a bundle, "forgot" the digest, had to drop to redis-cli KEYS 'config:bundle:*' on the control plane to recover it before mocactl bundles delete could clean up. Cluster-admin surface — defeats the purpose

This is similar to #552

Proposed Solution

Add mocactl bundles list [--json] that calls the control plane scoped to the authenticated caller and prints digest, size, promoted-at, and whatever state the server tracks

Want to contribute?

  • I would like to work on this issue.

Additional Context

No response

Activity

  1. added
    enhancement
    on Oct 22, 2026
  2. added a commit that references this issue on Nov 4, 2026
    395bcb5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions