Skip to content

[memory→tinymemory] tinymemory-tools: lifecycle turn hooks, live in-prompt window, date hint #285

Closed as not planned

Description

@senamakel

Blocked by #280.

For openhuman's memory/lifecycle/hooks.rs (558; tests 638), window.rs (114) and date_hint.rs (77).

  • lifecycle::turn::TurnHooks takes over the orchestration:

    • pre-turn timeout, spawn, and degrade-to-no-pack;
    • log-only when the identity has recall off;
    • choosing pre_turn / pre_turn_resumed / pre_turn_dated;
    • post-turn "log and return jobs";
    • compaction recall.

    It also takes TurnPack (render + refusal notice + tag constants), logged_reply (memory_eval/agent.rs:284 has its own copy) and user_turn_index.

  • PreTurn gains a resumed flag. It already has in_prompt_from, at and observed_actor. ToolCallSummary becomes ToolCallRef plus a result line.

  • lifecycle::window::InPromptFrom: the live in-prompt start index, with atomic fold fingerprints and a ceiling. It has no host dependencies.

  • lifecycle::date_hint: the instruction text, parse_range, and a DateHintModel callback trait.

  • Seams as traits, so no tokio in this crate: Spawner, Clock, engine resolution, the date-hint model, a jobs sink and a citation sink.

The bus trigger stays in the host (decided: ConversationTurnCommitted → memory::bus).

Done when: the new API is merged with its tests (moved host tests travel with the code), cargo test --workspace and cargo clippy --workspace --all-targets -- -D warnings pass, and a tag is cut so OpenHuman can bump the gitlink. tinymemory-tools stays tokio-free (spawn/clock are traits); schemars only behind an optional schema feature.

Agent brief

  • Files to consider: host memory/lifecycle/{hooks,window,date_hint}.rs; upstream tinymemory-tools/src/lifecycle/
  • Research: the gaps listed above
  • Workflow: an implementing-an-epic step; follow the migrate-to-submodule skill (upstream PR → tag → OpenHuman gitlink bump + delete host copy).
  • Subagent: tdd-implementer.

Parent: tinyhumansai/openhuman#8000

Activity

  1. added
    enhancementNew feature or request
    rustPull requests that update rust code
    priority: p3Whenever. Cosmetic, a nicety, or a cleanup with no user visible effect.
    on Oct 16, 2026
  2. added theissue type on Oct 16, 2026
  3. senamakel commented on Oct 16, 2026

    @senamakel
    MemberAuthor

    Moved to senamakel#6, where it is now tracked under tinyhumansai/openhuman#8000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority: p3Whenever. Cosmetic, a nicety, or a cleanup with no user visible effect.rustPull requests that update rust code

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions