Skip to content

Follow the host's CRE settings via the CL_SETTINGS_URL env var - #930

Closed
DylanTinianov wants to merge 1 commit into
mainfrom
cl-settings-url-env
Closed

DylanTinianov wants to merge 1 commit into
mainfrom
cl-settings-url-env

Conversation

@DylanTinianov

@DylanTinianov DylanTinianov commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Capability processes never followed the host's CRE settings, so every setting stayed at its compiled-in default.

Why: the host exports its settings gRPC address as the CL_SETTINGS_URL env var, but the capability side never read it — it only used a URL from the process's own config file, which can't name the address in advance because the host chooses it at launch.

Fix: read CL_SETTINGS_URL as the fallback when the config doesn't set a URL.

Impact

All scoped limits and feature flags in plugin-hosted standard capabilities now resolve against the host's pushed settings. For example, FeatureEVMWriteReportL1FeeActivePeriod previously never applied, so metered transaction fees omitted the l1Fee term on chains whose receipts expose it (OP-stack); they now match the receipt-derived fee.

The host picks its settings gRPC address at launch and exports it as
CL_SETTINGS_URL, but nothing read it, so capability processes never
followed the host's settings and every limit stayed at its
compiled-in default.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@DylanTinianov
DylanTinianov requested review from a team as code owners November 20, 2026 14:05
@github-actions

Copy link
Copy Markdown
Contributor

👋 DylanTinianov, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@DylanTinianov DylanTinianov self-assigned this Nov 20, 2026
@DylanTinianov
DylanTinianov marked this pull request as draft November 20, 2026 15:23
@DylanTinianov
DylanTinianov marked this pull request as ready for review November 20, 2026 15:25
@DylanTinianov
DylanTinianov marked this pull request as draft November 20, 2026 15:36
auto-merge was automatically disabled November 20, 2026 15:36

Pull request was converted to draft

@DylanTinianov

Copy link
Copy Markdown
Contributor Author

Superseded by #932: the settings mechanism itself works (proven by test there); the real issue is the loop Receipt proto missing l1_fee — see #932's proof test. Also this PR's package (libs/capability) isn't used by the deployed capabilities (they boot via libs/loopserver) — per review feedback.

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