Repository navigation
CI: validate shared-index document context and section expansion - #12
Closed
glockbender wants to merge 45 commits into
Closed
glockbender wants to merge 45 commits into
glockbender wants to merge 45 commits into
Conversation
semantic_search with debug=true returns debug.phases (refresh, embed, vector load/rank/content, keyword, fusion, rerank, total) and every search logs one 'Search phases' line. The vector reload log line now carries its duration.
Records carrying agent_session_id fold into one summary and one checkpoint per session with no time window. The new transcript tail is appended from the overlap with the stored text, so the opening of a long session survives; records over 32000 bytes keep the opening and the latest part. Records without a session id keep the 6 h window.
The tracker gave every session without an explicit mode the coding default, so a claude.ai chat that only called store_memory hit the session_mode_fallback:coding path and filled hard_review with engineering cards. initialize now records clientInfo.name per client key; clients outside the coding-agent allowlist taken from live logs get the new session mode chat, which keeps the summary and extracts no candidates.
Every tool in tools/list now states readOnlyHint, destructiveHint, idempotentHint and openWorldHint explicitly. Ten tools that delete, merge, archive or overwrite entries are destructive; grouped meta-tools take the strictest hints of their actions. TestEveryToolIsAnnotated fails when a tool is added without a classification.
…ime (T150) verify_entry now stores the sha256 of each referenced file under the project root in metadata source_hashes (server-owned). drift_scan treats a newer mtime as drift only when the bytes differ from the stored hash, so git checkout, rebase and touch no longer raise source_changed. Records without hashes keep the mtime verdict. No schema change.
…_changes (T139) review_session_changes and accept_session_changes each recomputed the plan from the summary, so a bank changed between the two calls was applied silently. Review now returns plan_fingerprint and an id per action; accept with that fingerprint refuses without writing if any action or target changed. Optional decisions (update|merge|keep_existing|reject per action id) override the low-risk policy for the actions they name. Without a fingerprint the old behaviour stays, with a warning in the response.
A section longer than the chunk budget was cut on the nearest whitespace, so tables broke mid-row and later chunks carried rows without column names. Chunks now end only between table rows, and a chunk starting among table rows repeats the header and delimiter row. Table-free sections are split exactly as before. Chunker version bumped to skeleton-v2 to rebuild existing indices.
…eature/t178-search-phase-timing
…nto feature/t178-search-phase-timing
…feature/t178-search-phase-timing # Conflicts: # docs/CHANGELOG.md
…o feature/t178-search-phase-timing # Conflicts: # docs/CHANGELOG.md
…o feature/t178-search-phase-timing # Conflicts: # docs/CHANGELOG.md
Calls each tool from tools/list (flat and grouped) with the minimal arguments its schema declares on a throwaway bank and fails on invalid-params, unknown tool/action or a handler panic. Fixes the one mismatch it found: recall_as_of.as_of is now declared format date-time, since the handler only accepts RFC3339.
A content update overwrote memories.content in place, so recall_as_of on a past date returned today's text and session-close heuristics could swap a value without a trace. Spec: - schema: memory_revisions(memory_id, revision, content, title, replaced_at, replaced_by_path), PK (memory_id, revision), index on replaced_by_path; no embeddings, no FK - migration: CREATE TABLE IF NOT EXISTS in ensureMemorySchema; existing rows untouched, no backfill, user_version unchanged (no data pass) - write: updateLocked inserts the previous content/title in the same transaction as the overwrite when the trimmed content changes; MergeDuplicates does the same for the primary - replaced_by_path comes from Update.Source: update_memory, sessionclose.near_exact, sessionclose.consolidate, sessionclose.session_fold, merge_duplicates; empty -> unspecified - retention: unlimited; Delete removes a record's revisions - read: RecallAsOf swaps in the earliest revision replaced after as_of and marks it with metadata.content_as_of_revision - metric: memory_stats lists content revisions by path
started_at/ended_at (shared session schema: close_session, analyze_session, review_session_changes, accept_session_changes) and created_before (resolve_review_queue) are parsed strictly as RFC3339; the schema now says so, as recall_as_of.as_of already does.
Identifiers and slugs such as MAKE-QUALITY-GATES-2026, sema_api, k8s and mixed-script tokens must reach the FTS index unstemmed; Russian words are reduced to their Snowball stem.
NewStore logs one line per finished step (open, schema, utf8_repair, cache_load) so a slow or stalled start shows where the time goes.
…oad when idle (T164, T177) Vectors move from a map of *Chunk with a slice each into one contiguous []float32 with a slot index, decoded straight from the row; the load ends with debug.FreeOSMemory. A search that finds the vectors not loaded answers from keywords at once (retrieval.vectors_skipped, degraded) while the load runs in the background; strict mode fails with a loading error. Vectors are dropped after MCP_RAG_VECTOR_IDLE_UNLOAD (30m) without a vector search. MCP_GOMEMLIMIT_MB (1024) sets the Go soft memory limit unless GOMEMLIMIT is set. CLI commands keep waiting for the load.
…d in RefreshIfStale
…ma-model feat(embedder): allow selecting an Ollama embedding model
…ymlinks fix(rag): index explicitly configured directory symlinks
…-ranking test(rag): compare hybrid and semantic ranking in the eval harness
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Temporary validation for the revised head of ipiton#25. It exercises configured index-root authorization, shared section expansion and the full-profile tool contract. Synthetic fixtures only.