Skip to content

CI: validate configured directory symlinks on upstream 0.18.0 - #7

Closed
glockbender wants to merge 34 commits into
mainfrom
codex/index-directory-symlinks
Closed

glockbender wants to merge 34 commits into
mainfrom
codex/index-directory-symlinks

Conversation

@glockbender

Copy link
Copy Markdown
Owner

Temporary fork CI validation for the updated head of ipiton#23. The upstream merge preserves the original four-file feature patch; only the changelog conflict needed manual resolution.

This request will be closed after the checks complete. No private corpus or questions are included.

ipiton and others added 30 commits November 14, 2026 21:53
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.
…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.
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.

2 participants