Skip to content

chore: preserve the unmerged provider-retry fix in the Letta archive - #24

Merged
EthanThatOneKid merged 1 commit into
mainfrom
archive/provider-retry
Sep 27, 2026
Merged

EthanThatOneKid merged 1 commit into
mainfrom
archive/provider-retry

Conversation

@EthanThatOneKid

Copy link
Copy Markdown
Contributor

Files the keep-or-drop judgment on fix/provider-rate-limit-retry, the last non-main branch on the remote.

Why it needs a PR and not a cleanup

PR #18 was closed on 2026-09-26T07:00:08Z as superseded by #22, and its closing comment promised the reasoning would be carried forward in the archive's README. It was not. archives/letta-brain/README.md documents the runtime and never mentions the retry, so the branch remained the only copy of the work — and the only ref on the remote besides main.

The judgment

Drop it from the live tree, keep it as a record. The module's only importer was channels/http/, and Data answers through /zo/ask now, so provider capacity is Zo's concern rather than this repository's. A module nothing imports does not belong in lib/ — the same test that retired the .af projection and this whole runtime in #22.

The reusable part is the rule rather than the service: honour the delay the provider named, bound it, and retry only a failure the provider explicitly flagged as retryable (a missing conversation, an unconfigured provider, and a timeout are all left alone). That is worth more than the service it was written for, which is why it is here instead of on a branch.

What lands

  • archives/letta-brain/lib/provider-retry.ts and its test, byte-identical to the branch.
  • The archived channels/http/ and services/ copies, carrying the wiring, so the fix reads in context. These are now the runtime as it would have been rather than as it stood; the README says so.
  • A section in the archive README with the dates, the commit, the failure it fixed, and why it was never deployed.
  • tsconfig.json includes archives/**/*.ts and npm test covers archives/*/lib/*.test.ts, so the archived code is typechecked and its test verified in CI rather than sitting inert.

Verified

npm run typecheck clean and npm test 38/38 on e5916be, run locally in worktrees/data/archive-provider-retry. The five ported files are byte-identical to 4db2c21.

After this merges

fix/provider-rate-limit-retry (4db2c21) is prunable: its content is then in main, and its PR is closed. That is a remote-branch deletion, so it wants your go-ahead.

Closes nothing; supersedes the closed #18.

PR #18 was closed as superseded, and its closing comment said the reasoning
would be carried forward in this directory's README. It was not: the archive
documented the runtime and left the retry out entirely, so the branch was the
only copy of the work and the last non-main ref on the remote.

Keep the artifact, drop it from the live tree. The module still has no caller
now that Data answers through /zo/ask, so it moves to
`archives/letta-brain/lib/` with the archived service that wired it, and the
archive README records what it did, why it was never deployed, and what makes
it worth keeping: read the delay the provider named, and bound it.

The archive now typechecks and its test runs (`archives/**/*.ts` in tsconfig,
`archives/*/lib/*.test.ts` in the test glob), so what is kept here is verified
rather than inert.
@wazoocomputer

wazoocomputer Bot commented Sep 26, 2026

Copy link
Copy Markdown

This pull request archives the provider-retry fix, which was developed but never deployed to production. This is done to preserve the work as a record, even though the problem it solved is no longer relevant to the current system architecture. The change ensures the fix is available for historical context and its test continues to run.

File Path Change Type Summary
archives/letta-brain/README.md modified Adds a section documenting the provider-retry fix.
archives/letta-brain/channels/http/README.md modified Adds documentation about provider rate-limiting and retries.
archives/letta-brain/channels/http/index.ts modified Integrates the provider-retry logic into the askLetta function.
archives/letta-brain/lib/provider-retry.test.ts added Adds tests for the provider-retry module.
archives/letta-brain/lib/provider-retry.ts added Implements the provider-retry logic.
archives/letta-brain/services/http-api.md modified Updates environment variables and documents the provider-retry details.
package.json modified Updates the test script to include archived test files.
tsconfig.json modified Includes archived TypeScript files for type checking.

Reviewers should start by examining archives/letta-brain/README.md for the overall context of the archived fix.

1 similar comment
@wazoocomputer

wazoocomputer Bot commented Sep 26, 2026

Copy link
Copy Markdown

This pull request archives the provider-retry fix, which was developed but never deployed to production. This is done to preserve the work as a record, even though the problem it solved is no longer relevant to the current system architecture. The change ensures the fix is available for historical context and its test continues to run.

File Path Change Type Summary
archives/letta-brain/README.md modified Adds a section documenting the provider-retry fix.
archives/letta-brain/channels/http/README.md modified Adds documentation about provider rate-limiting and retries.
archives/letta-brain/channels/http/index.ts modified Integrates the provider-retry logic into the askLetta function.
archives/letta-brain/lib/provider-retry.test.ts added Adds tests for the provider-retry module.
archives/letta-brain/lib/provider-retry.ts added Implements the provider-retry logic.
archives/letta-brain/services/http-api.md modified Updates environment variables and documents the provider-retry details.
package.json modified Updates the test script to include archived test files.
tsconfig.json modified Includes archived TypeScript files for type checking.

Reviewers should start by examining archives/letta-brain/README.md for the overall context of the archived fix.

@EthanThatOneKid
EthanThatOneKid merged commit 63814a0 into main Sep 27, 2026
1 check passed
@EthanThatOneKid
EthanThatOneKid deleted the archive/provider-retry branch September 27, 2026 00:21
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