yoi/.yoi/tickets/00001KXS56AS5/thread.md

2.6 KiB

作成

LocalTicketBackend によって作成されました。


State changed

Ticket を yoi ticket が queued にしました。


State changed

State changed to inprogress.


Implementation report

Implemented SessionReferenceView common substrate.

Changes:

  • Added crates/worker/src/session_reference.rs with immutable view construction over a session history slice.
  • The view produces User/Assistant overview items and a searchable evidence index over user/assistant/system/tool references.
  • Added text search with kind filter and tool input/output/both filtering via tool_part.
  • Added bounded read by id or entry_range with truncation metadata.
  • Added source-ref resolution by evidence id for future extract staging anchors.
  • Rewired compaction search_session_log to search through SessionReferenceView while leaving read_session_items behavior unchanged for now.

Validation:

  • cargo fmt --check
  • cargo test -p worker session_reference
  • cargo test -p worker compact::worker
  • cargo test -p worker
  • cargo test -p memory
  • nix build .#yoi

State changed

State changed to done.


State changed

Ticket を closed にしました。


完了

Implemented SessionReferenceView common substrate.

The Worker crate now has an immutable session reference view that can build User/Assistant overview items, index user/assistant/system/tool references, search with kind and tool input/output filters, perform bounded reads with truncation metadata, and resolve source refs for future extract staging anchors. Compaction search now uses this common view; read-session behavior remains unchanged for compatibility.

Validation passed:

  • cargo fmt --check
  • cargo test -p worker session_reference
  • cargo test -p worker compact::worker
  • cargo test -p worker
  • cargo test -p memory
  • nix build .#yoi