Skip to content

feat(context): bump tinyagents and tinysearch, expose expiry, reasoning, pruning and keep_recent_tokens options - #714

Merged
senamakel merged 6 commits into
epic/712-tool-tokensfrom
epic-712-oh706-bump-options
Nov 8, 2026
Merged

senamakel merged 6 commits into
epic/712-tool-tokensfrom
epic-712-oh706-bump-options

Conversation

@senamakel

Copy link
Copy Markdown
Owner

Closes #706

Part of tinyhumansai/chottu-core#712

What changed

Public API / behaviour changes

New config keys and embed setters only. No new key set means unchanged behaviour.

Not done

The tinysearch excerpt length (RenderOptions::excerpt_chars) is not exposed; the cap and the compact switch are.

Gates (vendor/openhuman)

  • cargo fmt --all -- --check: pass
  • cargo check -p openhuman -p openhuman-embed --tests: pass
  • cargo clippy -p openhuman --lib -- -D warnings: pass; cargo clippy -p openhuman-embed --all-targets -- -D warnings: pass
  • Focused tests pass: keep_recent_tokens (config, env, keep_recent_tokens_override_reaches_compaction), replay_pin, prompt_replay_options, context_overrides, granted_snapshot, context_wiring, discovery::pin, search::render, search_compact_results, the_codec_records, embed agent::spec.
  • node scripts/generate-architecture-docs.mjs --check, check-crate-chain, check-storage-*, check-test-ownership: pass

Pre-existing failures (not caused by this change)

  • cargo clippy -p openhuman --all-targets: 23 lints in test files this PR does not touch.
  • Runtime-building tests fail with "could not admit the secrets directory" (embed an_agent_with_* build tests, including the existing discovery ones and the new context ones; modules::search::config_tests that call store_api_key). session_host::discovery_pin_tests hangs locally, so no session-level replay test was added; the codec test covers the record path.
  • pnpm rust:layout: artifacts/tiny_store_tests.rs is 784 lines; check-core-hosted-free flags config/schema/security_mode.rs; check-security-module-dependencies needs node_modules.
  • scripts/modules/pin-status.mjs reports tinysearch ahead of its released pin, so hosted CI needs a tinysearch module release and re-pin. Until then a released module ignores contents_max_chars (the field is serde(default)).

senamakel and others added 6 commits November 7, 2026 23:26
…ns tip

Co-authored-by: Medulla <medulla@tinyhumans.ai>
…ng replay and tool pruning

Adds [context] keep_recent_tokens, tool_result_max_age_turns,
tool_result_exempt_tools, replay_reasoning and prune_retired_tools with env
overlays. Expiry and reasoning replay are pinned on each thread like the
tool_search options (replay_pin.rs); prune_retired_tools chains onto the
session builder and the granted snapshot names its deferred catalogue as
offered. AgentSpec and Turn gain matching setters over ContextOverrides.

Co-authored-by: Medulla <medulla@tinyhumans.ai>
Adds [search] compact_results (RenderOptions::compact via render_*_with) and
contents_max_chars (ProviderConfig.contents_max_chars), both off by default,
with env overlays.

Co-authored-by: Medulla <medulla@tinyhumans.ai>
…nder options

Co-authored-by: Medulla <medulla@tinyhumans.ai>
…once

Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
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