Skip to content

feat(ai): add jitteredRetryDelayMs (stack 2/3) - #8

Merged
ivanmilevtues merged 1 commit into
mainfrom
example/retry-jitter
Oct 23, 2026
Merged

ivanmilevtues merged 1 commit into
mainfrom
example/retry-jitter

Conversation

@ivanmilevtues

Copy link
Copy Markdown
Member

Layer 2 of the example stack, based on #7.

Adds jitteredRetryDelayMs to @earendil-works/pi-ai: retryDelayMs with equal jitter (half kept, half random), still capped by maxAgentDelayMs. Not used yet; the layer above wires it in.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 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-23T22:27:53.441102Z 1914533 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.

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

CodeBoarding review

Status: 2 changed components

See the full change in CodeBoarding.

graph LR
    n_Coding_Agent_Application["Coding Agent Application"]
    n_AI_Provider_Runtime["AI Provider Runtime"]
    n_Durable_State_Codemode_Runtime["Durable State #38; Codemode Runtime"]
    n_Workspace_Automation_Scripts["Workspace Automation Scripts"]
    n_Terminal_UI_Toolkit["Terminal UI Toolkit"]
    n_Agent_Evaluation_Harness["Agent Evaluation Harness"]
    n_MCP_Protocol_Client["MCP Protocol Client"]
    n_Agent_Core_Loop["Agent Core Loop"]
    n_Telemetry_Instrumentation["Telemetry Instrumentation"]
    n_Coding_Agent_Application -- "queries models and provider credentials" --> n_AI_Provider_Runtime
    n_Coding_Agent_Application -- "renders interactive screens and controls" --> n_Terminal_UI_Toolkit
    n_Coding_Agent_Application -- "instantiates and drives agent execution loop" --> n_Agent_Core_Loop
    n_Coding_Agent_Application -- "executes scripts in codemode sandboxes" --> n_Durable_State_Codemode_Runtime
    n_Coding_Agent_Application -- "manages MCP authentication and transports" --> n_MCP_Protocol_Client
    n_AI_Provider_Runtime -- "prompts interactive login flow" --> n_Coding_Agent_Application
    n_Durable_State_Codemode_Runtime -- "delegates execution callbacks to agent runtime" --> n_Coding_Agent_Application
    n_Durable_State_Codemode_Runtime -- "queries available model catalog" --> n_AI_Provider_Runtime
    n_Workspace_Automation_Scripts -- "hydrates model catalog definitions" --> n_AI_Provider_Runtime
    n_Workspace_Automation_Scripts -- "loads session and auth configurations" --> n_Coding_Agent_Application
    n_Workspace_Automation_Scripts -- "persists state in durable documents" --> n_Durable_State_Codemode_Runtime
    n_Terminal_UI_Toolkit -- "dispatches layout and input events to views" --> n_Coding_Agent_Application
    n_Agent_Evaluation_Harness -- "benchmarks model runtimes" --> n_Coding_Agent_Application
    n_Agent_Evaluation_Harness -- "tests provider model interfaces" --> n_AI_Provider_Runtime
    n_Agent_Evaluation_Harness -- "verifies agent state in UI evaluations" --> n_Agent_Core_Loop
    n_MCP_Protocol_Client -- "persists tokens via agent credential store" --> n_Coding_Agent_Application
    n_Agent_Core_Loop -- "dispatches events to message stream" --> n_AI_Provider_Runtime
    classDef added fill:#1f883d,stroke:#0b5d23,color:#ffffff;
    classDef modified fill:#bf8700,stroke:#7d4e00,color:#ffffff;
    classDef deleted fill:#cf222e,stroke:#82071e,color:#ffffff,stroke-dasharray:5 3;
    class n_AI_Provider_Runtime modified;
Loading

download artifacts · run 40033661517

@ivanmilevtues
ivanmilevtues changed the base branch from example/sleep-listener-cleanup to main October 23, 2026 23:18
@ivanmilevtues
ivanmilevtues merged commit 0c45826 into main Oct 23, 2026
4 of 5 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