Repository navigation
feat(mesh): fleet M2M control, owner-signed gossip policy, fleet token metrics [staging] #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 3 commits
6b7508b
047b74e
a39e802
6314b2f
b1506c1
803da5e
e2df289
84459cf
beb78a0
36903dd
37f1590
3cde80d
cdcbb7e
e125c9c
62375a1
6d05e10
50217db
7c83b40
e49ec3d
f61773f
74c8765
9293f45
d650da1
9b1da1a
9afca76
2fc1e3c
107e1e0
0864ce3
813bce5
1ae8b8c
ef266c6
5aa09e4
38bff44
d109598
c036157
a58a48a
9a0e260
0d8d65d
8eaf39e
25e5053
868157f
b0fa8d8
8ffc372
47a7ed2
083c79a
f29bda4
6e6f202
c0a1b57
01ddd9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| version: "2" | ||
| reviews: | ||
| auto_review: | ||
| enabled: true | ||
| drafts: true | ||
| base_branches: | ||
| - main | ||
| request_changes_workflow: false | ||
| high_level_summary: true | ||
| poem: false | ||
| review_status: true | ||
| collapse_walkthrough: false | ||
| path_instructions: | ||
| - path: "mesh/crates/**/*.rs" | ||
| instructions: "This is a Rust 2024 workspace. Focus on correctness, safety, and adherence to the project's one-way dependency rule (Skippy must not depend on Mesh crates). Note: node.proto is source of truth; node.rs is manually-maintained (no build.rs)." | ||
| - path: "mesh/crates/mesh-llm-host-runtime/src/policy/**" | ||
| instructions: "New policy module. Check PolicyStore per-owner generation tracking, PolicyApplicator self-endpoint wiring, and disk persistence atomicity." | ||
| - path: "mesh/crates/mesh-llm-host-runtime/src/api/routes/runtime.rs" | ||
| instructions: "New fleet endpoints: POST /api/runtime/control/fleet, GET /api/runtime/fleet/metrics, POST/GET/DELETE /api/runtime/control/mesh-policy. Verify auth guard coverage and filter logic." | ||
| chat: | ||
| auto_reply: true | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -769,11 +769,72 @@ pub enum Command { | |||||||||
| #[command(subcommand)] | ||||||||||
| command: AuthCommand, | ||||||||||
| }, | ||||||||||
| /// Manage the fleet mesh policy (fleet M2M signed config gossip). | ||||||||||
| #[command(name = "policy", hide = true)] | ||||||||||
| Policy { | ||||||||||
| #[command(subcommand)] | ||||||||||
| command: PolicyCommand, | ||||||||||
| }, | ||||||||||
| /// Run a CLI command contributed by a configured plugin. | ||||||||||
| #[command(external_subcommand)] | ||||||||||
| ExternalPlugin(Vec<OsString>), | ||||||||||
| } | ||||||||||
|
|
||||||||||
| /// Fleet mesh-policy commands. | ||||||||||
| #[derive(Subcommand, Debug)] | ||||||||||
| pub enum PolicyCommand { | ||||||||||
| /// Push a signed mesh policy to the local node. | ||||||||||
| /// | ||||||||||
| /// Auto-sign mode: provide --ensure-models / --drain-models and the node's | ||||||||||
| /// owner keypair is loaded from the default keystore to sign the policy. | ||||||||||
| /// | ||||||||||
| /// Pre-signed mode: provide --payload and --signature (advanced / external signer). | ||||||||||
| Set { | ||||||||||
| /// Models to ensure are serving (comma-separated). Auto-sign mode. | ||||||||||
| #[arg(long, value_delimiter = ',', conflicts_with = "payload")] | ||||||||||
| ensure_models: Vec<String>, | ||||||||||
| /// Models to drain (comma-separated). Auto-sign mode. | ||||||||||
| #[arg(long, value_delimiter = ',', conflicts_with = "payload")] | ||||||||||
| drain_models: Vec<String>, | ||||||||||
| /// How long (in seconds) until the policy expires. Auto-sign mode. | ||||||||||
| #[arg(long, conflicts_with = "payload")] | ||||||||||
| expires_in_secs: Option<u64>, | ||||||||||
| /// Monotonic generation counter for the policy. Auto-sign mode (default: 1). | ||||||||||
| #[arg(long, conflicts_with = "payload")] | ||||||||||
| policy_gen: Option<u32>, | ||||||||||
| /// Base64-encoded signed policy payload bytes. Pre-signed mode. | ||||||||||
| #[arg(long, conflicts_with_all = ["ensure_models", "drain_models"])] | ||||||||||
| payload: Option<String>, | ||||||||||
|
Comment on lines
+806
to
+807
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Require
Make Suggested fix
Committable suggestion
|
||||||||||
| /// Base64-encoded Ed25519 signature over the payload. Pre-signed mode. | ||||||||||
| #[arg(long, requires = "payload")] | ||||||||||
| signature: Option<String>, | ||||||||||
| /// Console/API port of the running mesh-llm instance (default: 3131) | ||||||||||
| #[arg(long, default_value = "3131")] | ||||||||||
| port: u16, | ||||||||||
| /// Print machine-readable JSON. | ||||||||||
| #[arg(long)] | ||||||||||
| json: bool, | ||||||||||
| }, | ||||||||||
| /// Show the current mesh policy on the local node. | ||||||||||
| Get { | ||||||||||
| /// Console/API port of the running mesh-llm instance (default: 3131) | ||||||||||
| #[arg(long, default_value = "3131")] | ||||||||||
| port: u16, | ||||||||||
| /// Print machine-readable JSON. | ||||||||||
| #[arg(long)] | ||||||||||
| json: bool, | ||||||||||
| }, | ||||||||||
| /// Clear the current mesh policy from the local node. | ||||||||||
| Clear { | ||||||||||
| /// Console/API port of the running mesh-llm instance (default: 3131) | ||||||||||
| #[arg(long, default_value = "3131")] | ||||||||||
| port: u16, | ||||||||||
| /// Print machine-readable JSON. | ||||||||||
| #[arg(long)] | ||||||||||
| json: bool, | ||||||||||
| }, | ||||||||||
| } | ||||||||||
|
|
||||||||||
| /// Anonymous usage reporting controls. | ||||||||||
| /// | ||||||||||
| /// Separate from `[telemetry]`, which exports OTLP metrics to an endpoint the | ||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add ownership coverage for
.coderabbit.yaml.The supplied CI results show that
ci plancannot classify this new path. This blocks quality, Linux, Windows, macOS, and website planning. Add a matching rule to the repository ownership catalog. Correcting the YAML version alone does not fix this failure.Based on the supplied pipeline failures.
GitHub Actions: PR · Linux / 2_Plan Linux.txt
[error] 1-1: CI planning command failed:
ci planreported that the ownership catalog has no rule for changed path.coderabbit.yaml. Add an ownership rule for this path.GitHub Actions: PR · Linux / Plan Linux
[error] 1-1: CI plan generation failed: the ownership catalog has no rule for changed path '.coderabbit.yaml'. The failing step runs the CI planning command (
ci plan --manifest-root ...); add an ownership rule for this path.GitHub Actions: PR · macOS / 2_Plan macOS.txt
[error] 1-1: CI plan generation failed in the
ci plancommand: ownership has no rule for changed path.coderabbit.yaml. Add an ownership rule for this path or update the changed-file set.GitHub Actions: PR · Quality / 2_Plan quality.txt
[error] 1-1: The CI plan generation step (
ci plan) failed because the ownership catalog has no rule for this changed path. Add an ownership rule for.coderabbit.yaml.GitHub Actions: PR · Quality / Plan quality
[error] 1-1: CI plan generation failed in the
ci plancommand: ownership has no rule for changed path.coderabbit.yaml. Add an ownership rule for this path.GitHub Actions: PR · Website / 2_Plan website.txt
[error] 1-1: CI plan generation failed in the plan step:
ci planreported that the ownership catalog has no rule for changed path.coderabbit.yaml. Add an ownership rule for this path or update the ownership configuration.GitHub Actions: PR · Website / Plan website
[error] 1-1: CI planning command (
ci plan --manifest-root ...) failed: ownership has no rule for changed path.coderabbit.yaml. Add an ownership rule for this path.GitHub Actions: PR · Windows / 2_Plan Windows.txt
[error] 1-1: CI plan generation failed: the ownership manifest has no rule for changed path '.coderabbit.yaml'. The planning command (ci-controller ci plan) exited with code 2.
GitHub Actions: PR · Windows / Plan Windows
[error] 1-1: CI plan generation failed in the planning step:
ci plan --manifest-root ...reported that the ownership catalog has no rule for changed path.coderabbit.yaml. Add an ownership rule for this path.Source: Pipeline failures