Skip to content

feat(erpc:PLA-708): land block-identity + fallback-regression tip on morpho-main#45

Merged
0x666c6f merged 17 commits intomorpho-mainfrom
feature/pla-708-add-sanity-checks-on-block-to-validate-them-or-change
Mar 4, 2026
Merged

feat(erpc:PLA-708): land block-identity + fallback-regression tip on morpho-main#45
0x666c6f merged 17 commits intomorpho-mainfrom
feature/pla-708-add-sanity-checks-on-block-to-validate-them-or-change

Conversation

@0x666c6f
Copy link
Copy Markdown
Collaborator

@0x666c6f 0x666c6f commented Mar 4, 2026

Mainline catch-up PR.

Context:

Validation run locally:

  • make test-fallback-config
  • go test ./architecture/evm -run "TestValidateBlock|TestUpstreamPostForward_IdentityValidationRunsWithNilDirectives|TestEnforceNonNullTaggedBlocks" -count=1

This keeps the intended queue content on mainline without rewriting history.

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: bbdd8d621c

ℹ️ 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 erpc/networks.go
Comment on lines +1217 to +1218
if common.HasErrorCode(err, common.ErrCodeEndpointRequestCanceled) {
observed = true
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Derive hedge-loss metric from a signal that is persisted

requestObservedHedgeCancellation checks req.ErrorsByUpstream for ErrCodeEndpointRequestCanceled, but canceled hedge attempts are not persisted in that map (they are dropped during upstream completion handling), so this condition is never observed in practice. As a result, when a hedge is launched but the non-hedged attempt wins, hedgeObserved stays false and MetricNetworkHedgeLostTotal is not incremented, which skews hedge effectiveness telemetry.

Useful? React with 👍 / 👎.

…add-sanity-checks-on-block-to-validate-them-or-change

# Conflicts:
#	common/defaults_test.go
#	common/network.go
#	erpc/networks.go
#	erpc/networks_attempt_metrics_test.go
#	erpc/networks_multiplexer_test.go
#	monitoring/prometheus/alert.rules
#	upstream/failsafe.go
#	upstream/registry.go
@0x666c6f 0x666c6f merged commit ca4bd35 into morpho-main Mar 4, 2026
3 of 4 checks 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