feat(cli): queue / topic / stream resource verbs (spec 29) - #89
Merged
Conversation
Messaging half of spec 29: NATS (JetStream streams + work-queue consumers), Kafka/Redpanda (topics), LocalStack SQS/SNS (opt-in), and a thin Redis queue/ topic key namespace — all pure-Go clients (nats.go, franz-go, aws-sdk-go-v2) behind mockable seams, wired through the existing lock->overlay->provisioner-> ledger->event flow. NATIVE-by-default engine inference; --no-prefix; --json; ledger kind=queue|topic|stream (no migration). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Table-driven tests for the nats/kafka/localstack/redis provisioners behind their mock seams (create/list/delete + project-prefix isolation + idempotency), orchestrate CreateResource ledger-kind recording for queue/topic/stream, and the CLI groups (registration, flags, --engine native-default inference, invalid/ unsatisfiable-engine errors, --partitions-rejected-for-nats guard). go mod tidy. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spec 29 (messaging half) — completes the M9 local-cloud lane. Built in a worktree, verified locally (
make ci+ determinism + CGO=0 4-target cross-build green; go.mod tidy clean; all new deps pure-Go).queue—create/list/rmover NATS (JetStream work-queue), Redis (list), or SQS (LocalStack, opt-in). Native NATS default.topic— pub/sub over Kafka/Redpanda or SNS (LocalStack, opt-in).stream— durable streams over NATS (JetStream) or Kafka,--partitions/--retention.Four new pure-Go provisioners behind mockable seams: NATS (
nats.go), Kafka/Redpanda (franz-go/kadm, reached via the template's127.0.0.1:49092external listener), LocalStack SQS/SNS (aws-sdk-go-v2, incl. FIFO/DLQ + SNS→SQS subscribe), and a thin Redis key-namespace. Each runs the flock→overlay→provisioner→ledger→event flow;--engineinference is native-by-default (never auto-starts an engine, clear error if unsatisfiable); tenant-scoped names (--no-prefix);--json; ledgerkind=queue|topic|stream(free-text, no migration).New deps (all pure-Go, confirmed CGO-free in the static cross-build):
nats.go,franz-go+kadm,aws-sdk-go-v2/service/{sqs,sns}.make vulnis unchanged pre-existing go1.26-toolchain stdlib noise (new deps not called).With this, the local-cloud data plane is complete: databases, users, buckets+lifecycle, queues, topics, streams — declarative (
resources:) and imperative — across postgres/minio/localstack/nats/kafka.🤖 Generated with Claude Code