Skip to content

recent_activity: document the one-day minimum lookback #1816

Closed

Description

@phernandez

Found during live testing of main at 0276799.

recent_activity(timeframe="1h") reports (1d). parse_timeframe (src/basic_memory/schemas/base.py) deliberately floors every lookback at one day for timezone safety, and the header reports the normalized window, so the behavior is fine. The tool description doesn't mention it, though. It lists "24h" as an example and mentions only the one-year maximum. Add one line stating the one-day minimum, in the description and the man page.

Activity

  1. added
    documentation
    on Oct 23, 2026
  2. claude commented on Oct 23, 2026

    @claude
    Contributor

    Claude finished @phernandez's task in 12s —— View job


    Triage

    • Type: Documentation (labeled documentation)
    • Component: MCP tools (recent_activity tool description and man page). Not Cloud.
    • Priority: Low. The behavior is intentional (parse_timeframe floors lookbacks at one day) and only the docs are missing.
    • Complexity: Simple. Add one line stating the one-day minimum to the tool description and to the man page.
    • Duplicates: A search found no existing issues on this.

    The issue is clear and has acceptance criteria, so I don't need more information. Per triage scope, I haven't made any changes.

  3. phernandez commented on Oct 23, 2026

    @phernandez
    MemberAuthor

    Folded into the 1.0 tool surface work: #1829 (tracking #1827). This issue stays open until that lands, with a regression test for the behavior described here.

  4. added this to the nextup milestone on Nov 3, 2026
  5. phernandez commented on Nov 4, 2026

    @phernandez
    MemberAuthor

    Done on main. The shared since description in src/basic_memory/mcp/tool_params.py now ends with "Windows shorter than one day are widened to one day." It appears in the tool schemas and in the bm-project(3), bm-context(3) and bm-search(3) man pages. tests/schemas/test_base_timeframe_minimum.py covers the floor in parse_timeframe.

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

    documentation

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions