Skip to content

perf(zeroshot-rust): benchmark daemon and CLI control paths #772

Description

@tomdps

Parent

Execution

AFK. Start only after every issue in Blocked by is merged, required CI is green for the resulting dev SHA, and the worktree is created from a freshly fetched origin/dev.

Outcome

Extend the deterministic profiling harness with multi-cluster daemon, export, and CLI control-path workloads.

Authoritative contracts/current state

#773 owns daemon hosting, #688 owns product export, and #765/#766 own CLI commands. This is the final manual profiling slice and not a release gate.

Owned scope

  • Profile authenticated discovery, cluster create/open/list, concurrent unary/watch traffic, idle cluster recovery, chunked export, and CLI rendering over deterministic loopback fixtures.
  • Reuse perf(zeroshot-rust): add a deterministic manual scheduler/reducer profiling harness #683 report schema/semantic digest and bound cluster count, records, subscribers, payload bytes, command iterations, and idle transitions.
  • Separate deterministic correctness/fairness/resource assertions from host timing/allocation/RSS observations.
  • Produce caller-selected local reports only; measured production changes require separate follow-up issues.

Acceptance criteria

  • Equal seed/config produces equal command/event/export counts and semantic digest.
  • Cross-cluster fairness/isolation and resource release remain invariant under load.
  • Export digest/length and CLI outcome categories remain correct at every bound.
  • No daemon/CLI/export production behavior or required CI budget is changed.

Verification

cargo test -p zeroshot-rust --test daemon_profile
cargo run -p zeroshot-rust --release --example daemon_profile -- --seed 1 --output /tmp/zeroshot-rust-daemon-profile.json
npm run rust:check
npm run protocol:check
opcore check --changed

Every named focused target is an issue-owned deliverable and must execute non-zero tests before the common gates.

Non-goals

  • Provider/runtime profiling.
  • Release benchmark enforcement or production optimization.
  • External hosts, provider calls, or committed measurements.

Blocked by

Unblocks

  • No release-critical issue; this is a terminal/manual evidence slice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions