Skip to content

feat(sessionquery): add SQLite FTS5 session query and tool (DSH 2.6) - #211

Merged
Patel230 merged 1 commit into
mainfrom
feat/dsh-harness-rfc-2.6-session-query
Aug 19, 2026
Merged

feat(sessionquery): add SQLite FTS5 session query and tool (DSH 2.6)#211
Patel230 merged 1 commit into
mainfrom
feat/dsh-harness-rfc-2.6-session-query

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Summary

Port of DSH session-query/session-query-sqlite semantics over Hawk's session logs.

Key Changes

  • sessionquery: Rebuildable SQLite FTS5 index over JSONL session logs (JSONL remains the single source of truth).
  • sessionquery: Incremental indexer tracking file modification timestamps to avoid unnecessary re-indexing.
  • sessionquery: Workspace authorization boundary ensuring cross-workspace session isolation.
  • sessionquery: Secret redaction applied to snippets and content at the read boundary using session.RedactSecrets.
  • sessionquery: Result pagination (offset/limit) with MaxBytes bounding to prevent model context overflow.
  • tool: SessionQueryTool registered in essential tools allowing the model to search previous conversation history.
  • tests: Full test coverage for tokenization/stemming, workspace authorization, secret redaction, pagination, index rebuild from scratch, and incremental update on file rewrite.

Gated by gofmt, go vet, go test -race, make lint, and layer boundary guards.

Port of DSH session-query/session-query-sqlite over Hawk's session logs.

- sessionquery: SQLite FTS5 full-text search over JSONL sessions (rebuildable derived index).
- sessionquery: Incremental background indexer tracking file modification timestamps.
- sessionquery: Workspace authorization boundary enforcing cross-workspace isolation.
- sessionquery: SecretDetector redaction of API keys and credentials at read boundary.
- sessionquery: Offset/limit pagination with byte bounding to prevent context overflow.
- tool: Model-facing SessionQueryTool registered in essential tools.
- tests: Full test coverage for tokenization/FTS, stemming, authorization denial,
  paging, secret redaction, index rebuild, and incremental updates.
@Patel230
Patel230 merged commit 8c4ae71 into main Aug 19, 2026
26 checks passed
@Patel230
Patel230 deleted the feat/dsh-harness-rfc-2.6-session-query branch August 19, 2026 18:05
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