Commit Graph

828 Commits

Author SHA1 Message Date
john 67220a14ea fix(goose-v149): block unattended real LLM smokes by default
Prevent phase2/phase3/all reruns from burning DashScope tokens unless
GOOSE_V149_ALLOW_REAL_LLM=1 is explicitly set with human approval.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 22:08:39 +08:00
john 9569d83e58 docs: register mcp-result-compactor branch disposition
Memind CI / Test, build, and release guards (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 22:05:51 +08:00
john 60a428612c feat(context): add MCP result compactor for tool output shadow path
Memind CI / Test, build, and release guards (push) Has been cancelled
Introduce off/shadow/active compaction for large tkmind read/research and
excel report payloads with optional Redis-backed ctx_fetch handles, keeping
fail-open behavior when storage is unavailable.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 22:05:02 +08:00
john 51c5fc0e18 docs: register goose-v149-local-canary branch disposition
Memind CI / Test, build, and release guards (push) Has been cancelled
Record the merged Context Runtime + Goose v1.49 canary work as closed
so the branch cannot be reused as a development baseline.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 22:02:36 +08:00
john e5dfd8750f Merge branch 'feature/goose-v149-local-canary'
Memind CI / Test, build, and release guards (push) Has been cancelled
2026-09-09 22:01:45 +08:00
john 26ce1241c6 fix(context): repair headroom probe routing and add portal E2E gate
Use the default headroom health probe instead of the goosed fetch adapter
so active mode routes deepseek-no-think through the proxy, and add an E2E
script that verifies goosed pong via headroom with fail-open portal checks.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 22:01:29 +08:00
john fc4ac98e9f feat(context): add dsh executor and headroom active loopback probe
Wire DeepSeek Harness as an optional fourth code executor (default off)
and add a loopback observation script that compares prompt tokens through
headroom proxy with OPENAI_TARGET_API_URL pointed at the compat proxy.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 21:32:57 +08:00
john 40e4a527fe feat(context): add recall fusion and zvec workspace adapters
Introduce RRF-based recall fusion for personal/episodic/temporal paths,
zvec-grep workspace shadow probing for code executors, and a local
headroom proxy starter aligned with the fusion plan defaults.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 21:28:04 +08:00
john 49a1a68a29 feat(context): wire headroom proxy and injection budget shadow paths
Add fail-open headroom provider routing for goosed sync, context-budget
planning with shadow telemetry events, and fix portal-resume smoke to skip
force_deep_reasoning by default so session round-trip checks stay fast.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 21:24:02 +08:00
john d691fed8a6 fix(goose): extend portal-resume timeout for phase3 under load
Portal resume smoke can exceed 300s when agent-run worker is busy; raise
phase3 default to 600s and refresh memory/sanitize baselines from smoke.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 19:56:28 +08:00
john 1d165bc6e3 feat(goose): complete v1.49 phase3 closeout gates and context fusion plan
Expand Goose v1.49 smoke coverage (memory chat, portal resume, page e2e,
multiturn provider), add canary memory policy lock, refresh baselines, and
ignore one-off evidence artifacts. Document headroom-based context runtime
fusion plan; include auth, scheduled-task, and wechat intent fixes on branch.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 18:11:39 +08:00
john 2f95c68db3 docs: register feature/memind-health-p0 branch disposition
Health P0 merged into main; mark branch closed and worktree removed.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 18:07:37 +08:00
john 2baf29b3ae feat(health): complete P0 health channel — baseline engine, page-data, MindSpace UI
Deliver encrypted health zone, observation API, baseline maturity pipeline,
page-data bindings, and H5/WeChat channel integration for health P0.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 18:04:57 +08:00
john 7bf16500a1 feat(health): wire H5 health page, WeChat channel, and observation API.
Expose /health and /api/health/observations behind MEMIND_HEALTH_ENABLED, redirect ordinary chat health intents without persisting, and run a dedicated WeChat menu flow with confirm-before-write semantics.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 18:04:26 +08:00
john f96fdcb3b9 feat(health): add P0 health channel kernel and encrypted health zone.
Lock health recording behind confirm-only state machines, reject public publishes for the health category, and ship the 14-day experiment Page Data templates with tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 18:04:26 +08:00
john 1274943f33 test(goose): add sandbox page and Portal resume integration smokes
Verify write_file/edit_file land public HTML via call_tool, and Portal can
start/resume v1.49 sessions without 404 on the resume path.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 21:37:27 +08:00
john 9393650447 docs(goose): note resume/session history parity in migration checklist
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 21:27:18 +08:00
john fe8a5e74d1 fix(goose): tighten memory drift checks and add resume smoke gate
Compare memory userId and candidate deltas during manifest drift checks,
add unit tests for false-positive cases, and verify /agent/resume plus
session history loading against local v1.49.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 21:27:14 +08:00
john 716ef407fe feat(goose): add local v1.49 canary routing, smoke gates, and migration docs
Wire Portal and TKMind proxy to loopback Goose v1.49 via canary env blocks,
with verification scripts, Phase 2/3 evidence baselines, and rollback runbooks
so local upgrade stays isolated from stable 1.41 and production.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 21:10:20 +08:00
john d2d463b1db feat(rain): add date preset picker and reduce time clarification prompts.
Memind CI / Test, build, and release guards (push) Successful in 5m5s
Default to last 3 days in UI and backend, only ask when time is truly ambiguous, and treat「做成页面」as HTML report pages without follow-up questions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 16:54:11 +08:00
john 7cc3fb7f8a fix(rain): keep Goose agent turns on DeepSeek, not Cursor chat bridge.
Memind CI / Test, build, and release guards (push) Failing after 13m25s
Cursor bridge PoC rejects tool calls; Rain and other agent sessions must not
apply it during session provider selection.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 14:33:55 +08:00
john ab557ac8c7 test(portal): expect userModelSnapshot in /auth/me response.
Memind CI / Test, build, and release guards (push) Successful in 5m32s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 14:03:58 +08:00
john 8a5010919e test(portal): align Direct Chat bootstrap deps with UMS pool wiring.
Memind CI / Test, build, and release guards (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 14:01:55 +08:00
john be464a5b8d Add Rain V0 for MeInput full-range chat analysis and delivery tooling.
Memind CI / Test, build, and release guards (push) Has been cancelled
Introduce rain-service orchestration, browser-safe chat skill filtering, MeInput
adapter helpers, and verify/deploy scripts so Rain mode can summarize recent input
without Memory V2 pollution.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 13:49:40 +08:00
john b2a5caf67d Improve UMS candidate scoring and snapshot materialization for sparse data.
Lower term threshold, tune promotion scores, project candidate fallback in snapshot, and add rebuild-ums-snapshot script for production backfill.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 08:40:07 +08:00
john 212ff3ff80 Add User Model Service and Temporal Recall for MeMind V0.1.
Introduce UMS ingest/snapshot pipeline, Context Planner with multi-source recall, runtime context injection, canonical user mapping, and session snapshot loading on auth/me.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 23:25:18 +08:00
john bf66fdf493 docs: register feature/memfuse-recall-benchmark branch disposition after 103 release.
Memind CI / Test, build, and release guards (push) Successful in 4m8s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 15:23:21 +08:00
john f6c82182cf test(memory-v2): align pgvector resolve params with score margin and expand cap.
Memind CI / Test, build, and release guards (push) Successful in 3m47s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 15:08:39 +08:00
john e370583fc0 Fix session history order when sidebar refresh merges stale server timestamps.
Keep the newer updated_at and max message_count during session list merges so local touchSession updates are not overwritten by lagging Goose summaries.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 14:59:38 +08:00
john 1d1af5c657 Add local script to verify Experience reflect aggregation end-to-end.
Seeds task outcomes, runs reflect(), and checks execution_pattern rows plus experience_saved product events for local acceptance.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 14:52:45 +08:00
john eb0c697c4e Document local MindSpace delivery links and block production URLs in dev.
Agents must deliver public pages via Portal 8081 with /MindSpace/<userId>/public/ paths; forbid mindspace.tkmind.cn and bare 5173/public links during local development.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 14:51:41 +08:00
john 49758568bb Add Experience reflect background worker with env-gated scheduling.
Start a periodic reflect loop from portal and MindSpace service bootstraps when EXPERIENCE_REFLECT_ENABLED=1, aggregating repeated task outcomes on a configurable interval.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 14:31:50 +08:00
john 2ec6fdbe11 Implement Experience V1 reflect, retrieval boost, and product metrics.
Add rule-based reflect() to aggregate task outcomes, environment-aware search scoring, experience_saved/recalled events, and structured injection blocks per the V1 schema.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 14:30:59 +08:00
john 6d48480b1c Improve cross_device MemFuse recall with source tags and recallContext.
Auto-enable device/location prefixes for cross_device scenarios, thread question_device into keyword and embedding paths, and boost lexical scores from source-tag tokens.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 14:12:48 +08:00
john fb3a442e73 Improve MemFuse recall via hybrid ranking and candidate generation.
Add RRF fusion with English word-level lexical scoring, tiered keyword fetch, and vector margin expansion (0.15/200) to fix pre-rank truncation; wire DashScope embedding bench path and update baseline to 28.8% recall@20.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 13:41:12 +08:00
john b923e54eff Add Experience V1 schema migration and agent-run completion extractor.
Extend h5_experience with structured fields, wire mindspace-agent-runner and agent-run-gateway to persist task_outcome records with provenance, and add local migration and verification scripts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 10:26:46 +08:00
john 908db04b67 Document Experience schema and JKRiver read-only references.
Map Mi-Memory Structure/Expansion into h5_experience V1 fields and record JKRiver Sleep design lessons under AGPL constraints, plus post-fix MemFuseBench numbers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 10:04:44 +08:00
john 2c0d903ecf Improve pgvector keyword recall ranking without changing hybrid sort.
Rank ILIKE matches by lexical coverage instead of recency and attach lexical scores to keyword rows so MemFuseBench candidate recall rises sharply while Chinese hybrid ordering stays unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 10:01:42 +08:00
john 0b6f79ae16 Add MemFuseBench retrieval harness and first baseline report.
Wire an offline benchmark over the production pgvector ranking path so Memory V2 recall can be measured with candidate/ranking loss split before lifecycle work lands.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 09:50:57 +08:00
john 61eebb44ec fix(agent-run): resolve MCP paths correctly from bundled worker
Memind CI / Test, build, and release guards (push) Successful in 4m10s
Agent-run-worker bundles under scripts/, so fallback MCP resolution pointed
at scripts/tkmind-excel-mcp.mjs and broke Goose session startup on H5 image
tasks. Pin MEMIND_PORTAL_H5_ROOT to the repo root and honor TKMIND_EXCEL_MCP_SERVER_PATH.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 19:32:58 +08:00
john 334b78a7df Add 103 script for Tang WeChat intent router shadow and close branch disposition.
Record feature/wechat-intent-channel-separation as merged and provide a reproducible admin-db toggle for Tang canary LLM router shadow on production.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 14:26:06 +08:00
john 8f88eec2bd Separate WeChat chat, page refine, and task flows with explicit routing.
Memind CI / Test, build, and release guards (push) Successful in 4m40s
Add channel prefixes, pin edit targets in Cursor prompts, and force fresh sessions for page refine URLs so DeepSeek/Goose chat history does not pollute page tasks.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 14:10:02 +08:00
john b80584696d Only re-sync WeChat session provider after a failed Cursor attempt.
Memind CI / Test, build, and release guards (push) Successful in 5m24s
Avoids double applySessionLlmProvider on normal Goose chat paths that blocked fast release.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 10:52:01 +08:00
john dc948e10c9 Classify WeChat page refine and MindSpace URL edits as page.generate.
Memind CI / Test, build, and release guards (push) Has been cancelled
Fixes Tang-style follow-ups like「页面还不够详细」or linked HTML update requests from falling through to Goose chat and hitting stale providers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 10:44:50 +08:00
john 61ba554feb Treat WeChat travel-guide requests as page.generate and re-sync Kimi before Goose fallback.
Memind CI / Test, build, and release guards (push) Failing after 4m15s
Fixes Tang-style「做攻略」messages missing the 页面 keyword from entering Cursor, and forces provider refresh before DeepSeek/Kimi fallback after Cursor failures.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 10:36:04 +08:00
john fa20f735a5 Skip Cursor Chat Bridge for WeChat MP and page.generate sessions.
Memind CI / Test, build, and release guards (push) Failing after 5m45s
WeChat Goose turns always include tools, which the bridge PoC rejects with HTTP 501; keep Kimi/DeepSeek on the session while Cursor handles page execution separately.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 10:16:03 +08:00
john 3688d732c0 Bundle Cursor Chat Bridge into Portal runtime for 103 deploy.
Memind CI / Test, build, and release guards (push) Successful in 6m43s
Add prod runner and LaunchAgent installer so Tang chatBridge toggle can reach a live OpenAI-compatible bridge after env enablement.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 09:55:06 +08:00
john 71d1316919 Remove accidental harness runtime wiring from cursor release.
Memind CI / Test, build, and release guards (push) Successful in 10m16s
The cursor channel commit picked up unstaged harness bootstrap code without the service module, which broke Portal runtime bundling.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 09:42:11 +08:00
john 617ff0d1dd Add per-feature Cursor channel toggles for admin and runtime.
Memind CI / Test, build, and release guards (push) Has been cancelled
Expose page/data/scheduled-task/chat-bridge switches in the智趣体验通道 config so Tang can roll out Cursor paths independently with DeepSeek fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 09:40:52 +08:00
john ac2c87be43 fix(plaza): delegate thumbnail regen to chatSave authority boundary
Memind CI / Test, build, and release guards (push) Successful in 3m19s
Portal chat-share routes must not resolve workspace publish dirs directly;
quick-plaza flows now call mindSpaceChatSave.ensurePreviewThumbnail instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-29 16:18:06 +08:00