[codex] Implement roadmap hardening release#1
Conversation
|
ping |
|
hi @claude |
|
Claude finished @chrishonson's task in 28s —— View job Hi Nick! 👋 I'm Claude, ready to help with this PR. I can see you've got a substantial hardening release here — 1219 additions across 25 files covering TTL fields, MCP contract cleanup, Gemini model fixes, and smoke test improvements. What would you like me to help with? Here are a few things I can do:
Just let me know what you need! |
|
review it |
|
@claude review this |
|
Claude finished @chrishonson's task in 3m 35s —— View job Code Review
Overall this is a solid hardening release. The TTL architecture, Bugs1.
// service.ts:179 — no dedup before mapping
sources = (fetched as NonNullable<...>[]).map(doc => ({ id: doc.id, content: doc.content }));The MCP schema description says "At least 2 ids required" but neither the Zod schema nor the service enforces uniqueness. Fix this → 2. In // mcpServer.ts:287-299
const fetched = await service.fetchContext(args); // 404 if missing
if (!config.allowedFilterStates.includes(fetched.item.metadata.branch_state)) {
throw new HttpError(403, `branch_state '...' is not allowed`); // 403 if wrong state
}For a private memory system the exposure is limited, but 403/404 discrimination is a recognized information-disclosure pattern. Fix this → Code Quality3.
4.
5.
Scale / Operational6.
Documentation7. CLAUDE.md
What's solid
|
Summary
Ships the first MetaCortex roadmap hardening release:
search_contextmatches and acceptingdocument_idas afetch_contextcompatibility alias with conflict validation.gemini-3.1-flash-lite, adds live model validation, and keeps generation on Vertex AI global while embeddings stay inus-central1.Validation
npm --prefix functions testnpm --prefix functions run buildnpm --prefix functions run validate:models./scripts/deploy-session-preflight.shmy-brain-88870: indexes and functions deployed.update_count: 0for fingerprints and memory events.ACTIVEformemory_events/expires_atandmemory_vectors_write_fingerprints/expires_at.fetch_contextwithdocument_id.