Skip to content

Add validated configurable MRTR retry budgets - #2012

Merged
BlueHotDog merged 2 commits into
integration/mcp-2026-07-28from
feature/mcp-retry-budget
Oct 27, 2026
Merged

BlueHotDog merged 2 commits into
integration/mcp-2026-07-28from
feature/mcp-retry-budget

Conversation

@BlueHotDog

@BlueHotDog BlueHotDog commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Scope

Pure typed RetryBudget with validated positive finite integer limits, initial-attempt accounting, immutable per-operation advancement and monotonic elapsed-time validation. No defaults, dispatch authorization, capabilities, opaque state handling or runtime behavior changes. 68 added code/test lines plus changeset; no Makefile changes.

DependsOn / blocked runtime

Companion to #2008, independently reviewable (no compile dependency). Actual automatic MRTR dispatch DependsOn replay-owner durable continuation authorization/attempt fencing, cancellation lifecycle hooks, and explicit trusted operation policy. No product approval is inferred for any test budget. Existing safe decline remains intact. Executor must enforce the total deadline while executing/waiting, not just between attempts; this pure type does not start timers.

Test-first evidence

  • Historical standalone ExUnit check failed before implementation, then passed 3 tests. Bespoke target removed. Normal workflow: make -C apps/frontman_server test TEST_ARGS="test/protocols/mcp_retry_budget_test.exs". CI lint passed; backend test CI was pending at last inspection.
  • Tests cover invalid limits, initial attempt counted, exact deadline/exhaustion boundary, backwards elapsed time and independent immutable budgets.
  • make format using isolated empty scratch formatter config passed; git diff --check passed.
  • Normal formatter/precommit and protocol/client suites remain blocked by absent Mix/Yarn dependencies, as observed for Add bounded MRTR retry admission contract (dispatch remains blocked) #2008 on this checkout. Not rerun for this pure Elixir-only change. No full backend suite, application startup, database or PaperTiger port usage.

No merges, force pushes or package publication.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T09:09:58.473972Z 5bdf925 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@BlueHotDog

Copy link
Copy Markdown
Collaborator Author

Removed the bespoke test target. Tests belong in the existing workflow: make -C apps/frontman_server test TEST_ARGS="test/protocols/mcp_retry_budget_test.exs". Earlier 3-pass evidence came from standalone ExUnit, not the application-backed suite; that suite remains unverified due to missing dependencies.

@BlueHotDog
BlueHotDog merged commit a56226a into integration/mcp-2026-07-28 Oct 27, 2026
18 checks passed
@BlueHotDog
BlueHotDog deleted the feature/mcp-retry-budget branch October 27, 2026 09:33
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