Skip to content

Object storage actions: stop_object_storage, slow_object_storage, start_object_storage (OS codes, v2.3) - #9

Merged
mmatloka merged 1 commit into
mainfrom
ai/object-storage-actions
Nov 13, 2026
Merged

mmatloka merged 1 commit into
mainfrom
ai/object-storage-actions

Conversation

@mmatloka

@mmatloka mmatloka commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

What

sim-link now understands the simulator's v2.3 object storage actions, so a free-play link can stop, slow and start the bucket behind any diskless implementation (the KIP draft diskless-3az, inkless-3az, kafscale-3b, automq-3az).

MCP kind Code Effect in the playground
stop_object_storage OS:0 object storage unavailable
slow_object_storage OS:s every object storage operation takes 2 s
start_object_storage OS:1 object storage available again
  • actionlog: StopObjectStorage / SlowObjectStorage / StartObjectStorage encode and decode with the playground's wire form. Any other OS payload is an error (the playground drops it silently).
  • mcpserver: build_playground_url accepts the three kinds (no fields, only at) and echoes them back; validate_actions previews them. Named by their MCP kinds as in website PR #885 (stop_etcd, stop_coordinator_db).
  • Tests: round-trip per kind, wire form pinned to the playground's encoder output, malformed payloads (OS:2, OS:S, OS:), both property generators, and an MCP build on all four diskless clusters.
  • docs/mapping.md and the README list the kinds and codes.

Website side

The encoding comes from monedula-dev/monedula-website#905 (merged): src/kafka-simulator/actionLog.ts writes OS:0 / OS:1 / OS:s for the stop_object_storage / start_object_storage / slow_object_storage SimActions in src/sim/types.ts, and docs/playground-url-api.md §2 lists them. On a playground older than v2.3 the codes are dropped.

Release notes for later (no release or tag here)

When this ships, these website surfaces would need updating:

  • src/content/flock-docs/sim-link/index.mdx: the install example pins VERSION=0.20.0; bump it to the new sim-link release.
  • src/content/flock-docs/sim-link/reference/mcp-tools.mdx: the object storage kinds are added in monedula-dev/monedula-website#913, to merge with the release.

Verification

  • go vet ./..., go vet -tags e2e ./e2e/, go test ./... pass locally.
  • e2e/run.sh (apache/kafka:4.3.1) passes locally.

🤖 Generated with Claude Code

…rt_object_storage (OS codes, v2.3)

The simulator's v2.3 free play can stop, slow and start the object storage
bucket behind every diskless implementation (the KIP draft, Inkless, KafScale
and AutoMQ). Its action log writes these as OS:0, OS:s and OS:1
(actionLog.ts encodeOne/decodeOne, website PR #905). sim-link refused them.

- actionlog: StopObjectStorage/SlowObjectStorage/StartObjectStorage encode
  and decode with the playground's wire form; any other OS payload is an
  error (the playground drops it).
- mcpserver: build_playground_url accepts stop_object_storage,
  slow_object_storage and start_object_storage (no fields) and echoes them
  back; validate_actions previews them.
- Tests: round-trips per kind, the wire form pinned to the playground's
  encoder output, malformed payloads, both property generators, and an MCP
  end-to-end build on diskless-3az, inkless-3az, kafscale-3b and automq-3az.
- docs/mapping.md and the README list the kinds and codes.
@mmatloka
mmatloka merged commit 8d896d2 into main Nov 13, 2026
10 checks passed
@mmatloka
mmatloka deleted the ai/object-storage-actions branch November 13, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant