Skip to content

docs(CLAUDE.md): 2 lessons from the int8-quantization session - #610

Merged
silversurfer562 merged 1 commit into
mainfrom
chore/int8-session-lessons
Jun 4, 2026
Merged

docs(CLAUDE.md): 2 lessons from the int8-quantization session#610
silversurfer562 merged 1 commit into
mainfrom
chore/int8-session-lessons

Conversation

@silversurfer562

Copy link
Copy Markdown
Member

Summary

Two lessons from the int8-quantization session (specs #608, factory
#609, upstream redis/agent-memory-server#302):

  • Proxy at the data boundary beats a method-duplicating subclass
    when overriding a vendor class's read/write behavior
    (attune_redis.Int8VectorIndexProxy) — less code, drift-resistant,
    pair with a drift-guard test.
  • Lazy __getattr__ in __init__ keeps an optional/heavy dep off
    the submodule import path; the eager import bug was caught by
    dogfooding the live factory path, not by unit tests.

Docs-only; no code change.

🤖 Generated with Claude Code

- Extend a vendor class at its data boundary with a proxy, not a
  method-duplicating subclass (attune_redis.Int8VectorIndexProxy).
- A package __init__ eagerly importing a heavy/optional dep forces it
  on every submodule import — make it lazy via PEP 562 __getattr__
  (caught by dogfooding, not unit tests).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
website Ready Ready Preview, Comment Jun 4, 2026 9:57am

@codecov

codecov Bot commented Jun 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@silversurfer562
silversurfer562 merged commit 93198aa into main Jun 4, 2026
32 checks passed
@silversurfer562
silversurfer562 deleted the chore/int8-session-lessons branch June 4, 2026 10: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