Skip to content

feat(erpc:PLA-696): add declarative policy mode and method workload profiles#39

Merged
0x666c6f merged 3 commits intomorpho-mainfrom
feature/pla-696-erpc-versatility-declarative-policy-mode-method-workload
Mar 4, 2026
Merged

feat(erpc:PLA-696): add declarative policy mode and method workload profiles#39
0x666c6f merged 3 commits intomorpho-mainfrom
feature/pla-696-erpc-versatility-declarative-policy-mode-method-workload

Conversation

@0x666c6f
Copy link
Copy Markdown
Collaborator

@0x666c6f 0x666c6f commented Mar 3, 2026

Summary

  • add declarative selectionPolicy.rules mode with explicit precedence (evalFunction > rules > built-in default)
  • add reusable method workload profiles (methods.profiles) with per-method binding (methods.definitions.<method>.profile)
  • support profile components: cache, failsafe, routing, multiplex
  • add method-level multiplex override (methods.definitions.<method>.multiplex)
  • extend config analyzer report with explain lines for policy path and profile binding path/components

Validation

  • go test ./common
  • go test ./erpc -run 'TestPolicyEvaluator_DeclarativeRules|TestNetwork_Multiplexer_MethodLevelDisable|TestGenerateValidationReport_ExplainIncludesPolicyAndProfilePath|TestNetwork_Multiplexer_FollowersReceiveResponse'
  • go test ./erpc -run '^$'

Linear: https://linear.app/morpho-labs/issue/PLA-696/erpc-versatility-declarative-policy-mode-method-workload-profiles

@0x666c6f 0x666c6f self-assigned this Mar 3, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c184314a0b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread common/defaults.go Outdated
@0x666c6f 0x666c6f changed the base branch from feature/pla-695-erpc-versatility-pluggable-routing-strategies-capability to morpho-main March 4, 2026 16:50
@0x666c6f 0x666c6f merged commit 27cd80d into morpho-main Mar 4, 2026
1 check passed
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