Skip to content

Separate listener, payload, and agent identities#96

Open
Darkroom4364 wants to merge 2 commits into
devfrom
issue/64-separate-agent-identities
Open

Separate listener, payload, and agent identities#96
Darkroom4364 wants to merge 2 commits into
devfrom
issue/64-separate-agent-identities

Conversation

@Darkroom4364

Copy link
Copy Markdown
Owner

Closes #64

Summary

  • generate fresh payload/build IDs instead of reusing the selected listener ID
  • add listener/payload metadata to generated agent config while leaving runtime agent_id empty by default
  • add runtime agent ID resolution in the Rust agent with optional explicit override and persisted generated fallback
  • include payload/listener metadata in heartbeat while routing by runtime agent ID
  • validate listener heartbeat path/body ID consistency and reject malformed operator agent paths
  • add regression tests for distinct payload builds, multi-agent isolation on one listener, heartbeat ID mismatch, and agent runtime ID behavior

Verification

  • go test ./...
  • go vet ./...
  • go build -o /private/tmp/microc2-server-issue64 ./cmd
  • bash -n install.sh
  • bash -n agent/build.sh
  • node --check server/web/js/*.js
  • cargo fmt --check
  • cargo test --locked
  • cargo clippy --locked --all-targets (passes with existing warnings)
  • cargo build --locked (passes with existing warnings)
  • Foxguard: npx foxguard@latest diff --format json origin/dev . -> 0 new issues

@coderabbitai

coderabbitai Bot commented Jun 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: f788ced0-23ec-4cfd-8d35-52e0b10343c6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue/64-separate-agent-identities

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment thread server/internal/behaviour/http_polling.go
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