Skip to content

Add bounded MRTR retry admission contract (dispatch remains blocked) - #2008

Open
BlueHotDog wants to merge 14 commits into
mainfrom
feature/mcp-mrtr-retries
Open

BlueHotDog wants to merge 14 commits into
mainfrom
feature/mcp-mrtr-retries

Conversation

@BlueHotDog

@BlueHotDog BlueHotDog commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Scope

Prerequisite-only MRTR policy contract, not completed automatic retry support. Policy and tests only; no Makefile changes. Existing controlled decline remains unchanged.

The pure policy distinguishes cancellation, unknown external outcome, unsupported inputs, protocol failure, denied retry and exhausted budgets. Caller must supply finite attempt/time bounds and trusted permission; there is no default enabled policy. It handles no opaque state, arguments or tool output. A positive decision only requests an atomic Tasks continuation check; it never dispatches.

Dependencies / not implemented

Runtime coordination remains blocked on the replay owner’s durable lifecycle/continuation authorization and cancellation propagation. No roots/sampling/elicitation capabilities are added. Three attempts/30 seconds appear only as test inputs, not approved defaults. Fresh IDs, exact state echo (including empty versus absent), concurrent isolation, cancellation races and no-interim-persistence need runtime tests once those seams exist. Structured ToolOutput representation is not changed.

Validation

  • Tests first: standalone Make target failed before implementation (missing policy module).
  • Historical standalone ExUnit check: 3 passed; bespoke target removed. Normal workflow: make -C apps/frontman_server test TEST_ARGS="test/protocols/mcp_retry_policy_test.exs". Previous revision passed the backend test CI job. Latest revision splits validation from decision logic to address Credo complexity; its CI is pending.
  • make format with empty scratch formatter config: passed. Normal formatter blocked by absent ecto_sql dependency.
  • git diff --check: passed.
  • make -C libs/frontman-protocol test and make -C libs/frontman-client test: blocked by missing Yarn node_modules state.
  • make -C apps/frontman_server precommit: blocked at compilation by missing dependencies; focused backend runtime suites not run. Backend slot request withdrawn; no port59001 usage.

No merge, force push 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-27T08:53:37.234816Z b8f220a 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_policy_test.exs". Earlier 3-pass evidence came from standalone ExUnit, not the application-backed suite; that suite remains unverified due to missing dependencies.

Base automatically changed from integration/mcp-2026-07-28 to main October 27, 2026 12:37

This branch has not been deployed

No deployments
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