Commit Graph

321 Commits

Author SHA1 Message Date
Jesse_Chen 64a6a55868 fix rectification agent empty tool stream 2026-08-03 23:33:52 +08:00
Jesse_Chen 9523ad23e8 fix rectification PostgreSQL birth dates 2026-08-03 17:28:26 +08:00
Jesse_Chen 0b1a40a5a5 fix(rectification): rehydrate persisted birth dates 2026-08-03 16:44:49 +08:00
Jesse_Chen 21a121a6a7 fix(rectification): accept persisted birth dates 2026-08-03 16:07:18 +08:00
Jesse_Chen 1131e9eb3b fix(rectification): replace v4 entry with agent opening 2026-08-03 15:11:19 +08:00
Jesse_Chen e7c877c413 fix(rectification): start agent opening on mount 2026-08-02 23:57:30 +08:00
Jesse_Chen 7abc053278 fix(rectification): expose agentic route and runtime trace 2026-08-01 18:18:43 +08:00
Jesse_Chen 9417148b0a feat(rectification): add agentic birth-time rectification MVP
Add a new agentic rectification flow that lets an LLM drive the full
jyotish-vedic-astrology methodology on the web, with the Python engine as
its computation layer (mirroring local Claude Code):

- mastra/rectification-tools.ts: 7 engine tools (gate/scan/score/diagnostics/
  candidate-features/confirm/save-birth-time)
- mastra/agentic-rectification.ts: agent mounting the full skill + tools
- lib/rectification-agentic/session.ts: server-owned profile + confirmation
  gate; the LLM can only persist the exact minute the engine's high-rigor
  gate confirmed
- app/api/rectification/agent/route.ts: NDJSON streaming endpoint with
  credit reserve/settle
- components/rectification-agentic-chat.tsx + entry switch: new sessions use
  the agentic chat; in-progress v4 cases still resume on the v4 panel
- migration 20260801000000: service-role RPC writing profiles.active_birth_time
  with baseline concurrency guard
- tests for tools + session (12 cases); full suite passes 1076

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-01 02:20:00 +08:00
Jesse_Chen daea700820 fix(rectification): preserve agent-led public responses 2026-08-01 01:32:06 +08:00
Jesse_Chen b5232e7903 fix(rectification): inherit target year for partial dates 2026-08-01 01:04:33 +08:00
Jesse_Chen 32aa0ecbac fix(rectification): enforce grounded public responses 2026-07-31 22:46:38 +08:00
Jesse_Chen 9e7431ea19 fix(rectification): keep evidence explanations non-conclusive 2026-07-31 21:00:51 +08:00
Jesse_Chen 6faa0a6be3 fix(rectification): require grounded candidate claims 2026-07-31 20:56:31 +08:00
Jesse_Chen b0dab214b6 fix(rectification): harden fallback response boundaries 2026-07-31 20:54:10 +08:00
Jesse_Chen a8ca7f24bc fix(rectification): validate public agent grounding 2026-07-31 20:29:07 +08:00
Jesse_Chen 8397a39977 fix(rectification): preserve grounded agent responses 2026-07-31 19:50:49 +08:00
Jesse_Chen fa4b83e962 fix(rectification): preserve unresolved event focus 2026-07-31 17:15:27 +08:00
Jesse_Chen 453eacf3e2 feat(rectification): add adaptive director tool loop 2026-07-31 15:09:03 +08:00
Jesse_Chen a7a11a1a7a feat(rectification): drive questions from candidate contrast 2026-07-31 13:17:00 +08:00
Jesse_Chen fdf791953e fix(rectification): generate opening with agent 2026-07-31 09:17:49 +08:00
Jesse_Chen bab5647afc fix(rectification): enforce director evidence boundaries 2026-07-31 06:13:47 +08:00
Jesse_Chen 77b0079653 fix(rectification): preserve director context and revision identity 2026-07-30 23:51:09 +08:00
Jesse_Chen 0e3ce47678 refactor(rectification): let director agent own interview flow 2026-07-30 17:56:10 +08:00
Jesse_Chen 53e04da7db fix(deploy): verify all retired staging migrations 2026-07-30 15:45:23 +08:00
Jesse_Chen 08c39cf949 fix(deploy): verify retired staging migration 2026-07-30 15:16:06 +08:00
Jesse_Chen bbdef0e363 fix(rectification): guide recall with semantic event cues 2026-07-30 14:25:58 +08:00
Jesse_Chen 3d8c3ce6a3 fix: harden staging ownership recovery 2026-07-30 12:21:37 +08:00
Jesse_Chen 2be454dfcf fix: recover staging deploy tree ownership 2026-07-30 12:18:24 +08:00
Jesse_Chen 31e5709f33 feat: add VedAstro rectification post-validation 2026-07-30 11:48:02 +08:00
Jesse_Chen 2384faf367 feat: harden rectification candidate validation 2026-07-30 10:55:39 +08:00
Jesse_Chen e9d20382d9 fix: keep rectification questions context-aware 2026-07-30 07:58:06 +08:00
Jesse_Chen eb303c7089 fix: resolve timezone for postgres birth dates 2026-07-30 04:09:51 +08:00
Jesse_Chen ee10fb4d8a feat: persist rectification analysis traces 2026-07-30 03:15:06 +08:00
Jesse_Chen 29374ded2a fix: deduplicate rectification question regeneration 2026-07-30 00:52:40 +08:00
Jesse_Chen 0a5b8cd239 fix: restore rectification agent message actions 2026-07-30 00:41:48 +08:00
Jesse_Chen 555e7d9bef fix: stop rectification question template fallback 2026-07-29 20:30:23 +08:00
Jesse_Chen f0f7c27382 fix: verify semantic rollout runtime 2026-07-29 19:26:51 +08:00
Jesse_Chen 6ed9f2dd0a fix: enable semantic rectification rollout 2026-07-29 19:18:09 +08:00
Jesse_Chen 163d3fd1be fix: stabilize rectification staging release 2026-07-29 18:17:46 +08:00
Jesse_Chen ee9d432762 feat: make rectification agent conversational 2026-07-29 17:49:19 +08:00
Jesse_Chen 092efa0ed2 ops: manage staging rectification rollout 2026-07-28 13:48:29 +08:00
Jesse_Chen 8ade6ed5c8 refactor: rebuild birth time rectification agent 2026-07-28 13:04:30 +08:00
Jesse 02ec5db361 feat(admin): add audited Refine staging console 2026-07-28 09:47:13 +08:00
jesse-ux 43581ac0f7 Keep rectification follow-ups on the current event (#36)
Co-authored-by: Jesse_Chen <chen.yue@mevixaga.com>
2026-07-28 00:45:09 +08:00
Jesse_Chen c42a976657 fix: anchor rectification composer to session footer 2026-07-27 23:27:56 +08:00
Jesse_Chen a550b98da7 refactor: make birth time rectification conversational 2026-07-27 22:33:12 +08:00
Jesse_Chen b569cf7825 fix(onboarding): normalize postgres birth dates 2026-07-27 22:01:48 +08:00
Jesse_Chen ee166ab5d3 feat(auth): use password-only admin login 2026-07-27 20:40:55 +08:00
Jesse_Chen 88060f20d7 fix(auth): simplify registration navigation 2026-07-27 17:41:03 +08:00
Jesse_Chen ab2944f7fa feat(auth): add staging email password flows 2026-07-27 17:02:16 +08:00