Skip to content

feat(cluster): promote archived models when compatible hardware joins (#333)#487

Merged
jaylfc merged 2 commits into
jaylfc:masterfrom
hognek:feat/archived-model-promotion
May 31, 2026
Merged

feat(cluster): promote archived models when compatible hardware joins (#333)#487
jaylfc merged 2 commits into
jaylfc:masterfrom
hognek:feat/archived-model-promotion

Conversation

@hognek
Copy link
Copy Markdown
Contributor

@hognek hognek commented May 31, 2026

Archived models (force-downloaded for incompatible hardware) now auto-promote when compatible hardware joins the cluster.

  • Scans ~/taos/archive/models/ on worker join
  • Uses existing resolver for compatibility check
  • Manual trigger via GET /api/cluster/promote-archived
  • 35 tests pass

Closes #333

Add model archive promotion engine: when a new worker registers with
hardware that can run previously-archived models, automatically promote
them from ~/taos/archive/models/ to the active models tree.

- model_archive.py: archive scan, hardware compatibility check,
  model promotion (move + manifest cleanup), notifications
- ClusterManager.register_worker: auto-trigger promotion on worker join
- GET /api/cluster/promote-archived: manual promotion scan endpoint
- 29 unit tests covering compatibility checks, archive I/O,
  promotable filtering, and file movement
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 31, 2026

Warning

Review limit reached

@hognek, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 5 minutes and 16 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e1a6ba03-0769-4d25-b4b0-1b34774f9a63

📥 Commits

Reviewing files that changed from the base of the PR and between 15d47e2 and 7774a8a.

📒 Files selected for processing (4)
  • tests/test_model_archive.py
  • tinyagentos/cluster/manager.py
  • tinyagentos/cluster/model_archive.py
  • tinyagentos/routes/cluster.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@hognek
Copy link
Copy Markdown
Contributor Author

hognek commented May 31, 2026

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 31, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@jaylfc jaylfc merged commit 38d6644 into jaylfc:master May 31, 2026
6 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.

Lifecycle: promote archived models to a worker when compatible hardware arrives

2 participants