Skip to content

sync: isolated skill bootstrap and per-model context windows - #22

Merged
suoak merged 6 commits into
mainfrom
sync/upstream-skills-context-window
Aug 28, 2026
Merged

suoak merged 6 commits into
mainfrom
sync/upstream-skills-context-window

Conversation

@suoak

@suoak suoak commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Summary

Cherry-pick the small set of useful upstream commits this fork was missing: isolated skill bootstrap directories, and compact context_window resolution from the per-model catalog (including the model-safe follow-up). Fork-only WorkMate branding and tool/MCP work are preserved. No user-visible AionUi branding.

TAKEN

Cherry-picked from iOfficeAI/aionrs main (original SHAs):

  • cfac6be feat(skills): support isolated bootstrap directories
  • ffdef1f feat(config): resolve compact context_window from per-model catalog
  • b72b400 chore(config): log debug line when compact context_window comes from model catalog
  • 611ea82 fix(config): make context windows model-safe

Fork follow-up on this branch:

  • 2729a7b fix(skills): keep WorkMate branded path in isolated skill discovery (docs + test use .csbu-workmate/skills; legacy .aionrs/skills still works)

SKIPPED

Merge wrappers (feature commits already taken above):

Not requested / not on the 6-commit behind set: TUI REPL, session fork, tool-output truncation, and other unrelated upstream work.

Preserved fork-only

  • Branded project directory (.csbu-workmate canonical, .aionrs legacy)
  • Rate-limit / stream recovery
  • Monotonic tool pipeline
  • MCP cancel
  • Durable input injection
  • View-image hardening
  • Cancellable tool execution / typed execution context

Test plan

  • cargo test -p aion-config --lib -- context_window — 21 passed
  • cargo test -p aion-agent --lib -- isolated_skill set_config_model_change — 6 passed (isolated skills + catalog recompute / explicit window)
  • cargo check --workspace --tests — ok
  • Spot-check isolated skill dirs against .csbu-workmate/skills and legacy .aionrs/skills
  • Spot-check compact thresholds after a runtime model switch

xingshining and others added 6 commits August 28, 2026 15:18
When [compact] context_window is not set explicitly, size it from a new
per-model rule catalog (model_context_window, mirroring model_max_tokens)
instead of the flat 200K fallback. Third-party OpenAI-compatible endpoints
(Kimi/Moonshot, DeepSeek, Qwen, MiniMax) get realistic windows, so
autocompact thresholds reflect the model actually in use.

An explicit [compact] context_window always wins; user-provided
model_context_window rules replace the preset, matching
model_max_tokens merge semantics.

(cherry picked from commit ffdef1f)
Isolated bootstrap should document and test the canonical .csbu-workmate
project directory, while still accepting legacy .aionrs skills.
@suoak
suoak merged commit 42de86c into main Aug 28, 2026
13 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.

2 participants