Commit Graph

180 Commits

Author SHA1 Message Date
Your Name f9a385f333 feat: add agent run heartbeat to slo reports 2026-07-02 12:41:04 +08:00
Your Name 054379ac98 feat: add worker heartbeat for agent runs 2026-07-02 12:38:34 +08:00
Your Name 7a47dc6a98 feat: add task artifact validation for code runs 2026-07-02 12:31:29 +08:00
Your Name 201cc5fb7a fix: harden auth middleware against transient db errors 2026-07-02 12:16:38 +08:00
Your Name c27bf04a71 feat: recover stale running agent runs 2026-07-02 12:12:41 +08:00
Your Name af5396c127 docs: record worker concurrency rollout 2026-07-02 12:08:49 +08:00
Your Name 79d310ba29 chore: keep agent run worker alive during gray rollout 2026-07-02 11:54:29 +08:00
Your Name c0f922b5f8 feat: require validation receipts for h5 code runs 2026-07-02 11:52:40 +08:00
Your Name 80b762053b feat: add agent run guard rollout controls 2026-07-02 11:36:46 +08:00
Your Name 212e163006 feat: add code run rollout policy gates 2026-07-02 10:47:22 +08:00
Your Name f1fd4cc316 feat: add agent run worker status check 2026-07-02 10:36:23 +08:00
Your Name b12c1b371c feat: support worker canary workdir override 2026-07-02 10:26:28 +08:00
Your Name 3654639bb3 feat: add agent run worker launchagent installer 2026-07-02 10:18:27 +08:00
Your Name 6340b57fda feat: validate tool gateway artifacts 2026-07-02 10:12:30 +08:00
Your Name a2d69a0c36 feat: target agent run worker dispatch 2026-07-02 10:02:01 +08:00
Your Name 0cfd2d3d2a fix: map deepseek models for aider 2026-07-02 09:42:08 +08:00
John 21e03d86b5 feat: add tool gateway protocol 2026-07-02 09:23:55 +08:00
John e24e6ca4a7 feat: add runtime worker heartbeat sidecar 2026-07-02 09:03:30 +08:00
John a0af049fa7 fix: pass mindspace link bypass to prod release 2026-07-02 08:49:21 +08:00
John c7d8140a69 feat: gate code runs by user whitelist 2026-07-02 08:42:44 +08:00
John 8a53dff856 chore: prune runtime slo reports 2026-07-02 08:38:56 +08:00
John bb98734d9c fix: let external agent worker drain before exit 2026-07-02 08:30:01 +08:00
John a402509d6e chore: schedule runtime slo reports 2026-07-02 08:12:02 +08:00
John e3ce4032c6 feat: write runtime slo daily reports 2026-07-02 08:09:02 +08:00
John 12f74eb44e feat: add first token latency window stats 2026-07-02 08:06:58 +08:00
John 05d29ce62d feat: add external agent run worker entry 2026-07-02 08:02:03 +08:00
John 3ea973968e feat: add agent run queue controls 2026-07-02 07:52:07 +08:00
John 8e5094fcd9 feat: record first token latency in runtime router 2026-07-02 07:45:47 +08:00
John 41b7b5ffa3 chore: add runtime metrics agent and slo report 2026-07-02 07:41:46 +08:00
John a13808b462 feat: feed worker metrics into runtime router 2026-07-02 07:35:10 +08:00
John b97c8e822e chore: add worker stream reconcile dry run 2026-07-02 07:28:58 +08:00
John e989526886 feat: gate code agent runs server side 2026-07-02 07:25:16 +08:00
John 304a9eaea2 chore: add code run entry check 2026-07-02 07:22:49 +08:00
John ac20ac212e feat: add gated h5 code run entry 2026-07-02 07:19:26 +08:00
John 0271d83756 feat: wire code agent runs to tool mode 2026-07-02 07:16:47 +08:00
John e17dcaf4a8 feat: gate code tools by task mode 2026-07-02 07:12:18 +08:00
John c9b7252832 fix: avoid opening sse in runtime check 2026-07-02 07:06:25 +08:00
John fa0024907b docs: record runtime ops rollout 2026-07-02 07:05:07 +08:00
John 4420cca340 chore: add runtime observability ops 2026-07-02 07:04:50 +08:00
John 04e308e582 feat: add streaming runtime router 2026-07-02 06:55:26 +08:00
john 4fc59729ee fix: add session origin tracking + idle rotation foundation (schema/auth/config)
Backend infrastructure for WeChat/H5 session unification:

- schema.sql: h5_user_sessions adds origin ENUM('h5','wechat') column
- db.mjs: idempotent migration for origin column (adds after user_id)
- user-auth.mjs:
  - setSessionOrigin(sessionId, origin) - tag where session was created
  - getSessionOrigins(sessionIds) - batch lookup for history labeling
  - touchWechatAgentRoute(appId, openid) - refresh activity timestamp
- wechat-mp.mjs:
  - DEFAULT_SESSION_IDLE_ROTATE_MS = 30min (env-configurable)
  - loadWechatMpConfig includes sessionIdleRotateMs

Tests: 50/50 pass ✓

Still TODO:
- ensureWechatAgentSession idle rotation check + setSessionOrigin call
- runIntentMessage grantedSkills flow + touchWechatAgentRoute calls
- Frontend type/UI component updates
- Integration test for idle rotation

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-01 21:10:56 +08:00
john ec375b1402 fix(wip): WIP - partial unify WeChat/H5 skill prompts (build agent changes)
- Reuse H5's buildAutoChatSkillPrefix in buildWechatAgentPrompt signature
- Inject autoSkillPrefix into voice/text message prompts
- Add origin tagging in GET /sessions for h5/wechat channel labels

Still TODO (will complete in next cycle):
- Full resolveGrantedSkills → buildWechatAgentPrompt flow
- ensureWechatAgentSession idle rotation logic
- setSessionOrigin + touchWechatAgentRoute calls
- Backend schema/migrations (h5_user_sessions origin column)
- Frontend type + UI component updates

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-01 21:07:25 +08:00
john 164c6627a0 fix: register direct wechat sessions after start fallback 2026-07-01 18:36:46 +08:00
john c0ed894cff merge: record 0701bug002 into main 2026-07-01 18:35:36 +08:00
john 44d41d9851 merge: record remaining local branches into main 2026-07-01 18:35:25 +08:00
john 73a90c80fd fix: normalize alternate tkmind publish links 2026-07-01 18:34:04 +08:00
john 1297531b04 docs: record v2 direct-injection release id for 103 rollback
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 18:32:27 +08:00
john de5fab370c fix(agent): inject Shanghai time into each reply message
103 goosed harness_remember returns remembered:false, so session memory
never carried the time anchor. Prepend buildCurrentTimeAgentPrefix on every
H5 /reply and WeChat agent prompt so the model sees Asia/Shanghai clock.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 18:32:27 +08:00
john 75e5a56b86 docs: record 103 agent-time-fix release id for rollback
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 18:31:32 +08:00
john 62c1d72470 fix(agent): inject Asia/Shanghai time anchor on 0630007 line
Agent replies were reporting UTC time because 0630007-memind never injected
TKMind 当前时间基准 into session memory. Port the time anchor from the
0630004 work only—no miniapp branch changes—and add a 103 rollback script.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 18:31:32 +08:00