Commit Graph

369 Commits

Author SHA1 Message Date
Jesse_Chen 393f352a8d fix(rectification): stream persisted candidate choices 2026-08-04 14:32:09 +08:00
Jesse_Chen 8f6f4f511b feat: allow users to accept rectification candidates 2026-08-04 11:39:33 +08:00
Jesse_Chen b9fe6a6be3 fix rectification session persistence 2026-08-04 00:38:16 +08:00
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 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 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 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 0a5b8cd239 fix: restore rectification agent message actions 2026-07-30 00:41:48 +08:00
Jesse_Chen a5f409a500 fix: align rectification spec hashes across runtimes 2026-07-29 22:49:17 +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 2da848a1d9 docs: configure agent engineering workflows 2026-07-28 14:40:24 +08:00
Jesse_Chen 8ade6ed5c8 refactor: rebuild birth time rectification agent 2026-07-28 13:04:30 +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 a550b98da7 refactor: make birth time rectification conversational 2026-07-27 22:33:12 +08:00
Jesse_Chen f402e6f79c fix: use same-origin data APIs on homepage 2026-07-27 15:47:18 +08:00
Jesse_Chen dc1aa9e239 fix: connect staging rectification worker to api 2026-07-27 12:01:31 +08:00
Jesse_Chen f619407dc2 fix: use sandboxed Chrome in staging gate 2026-07-27 10:29:19 +08:00
Jesse_Chen e52cee8368 fix: provision Chromium in staging quality gate 2026-07-27 10:21:07 +08:00
Jesse_Chen 2ca245d643 feat: rebuild birth time rectification workflow 2026-07-27 09:57:14 +08:00
Jesse_Chen 380aba4628 fix: keep rectification narratives moving 2026-07-26 20:11:53 +08:00
Jesse_Chen 6320afbf5d fix: decouple rectification narrative from scoring state 2026-07-26 19:55:38 +08:00
Jesse_Chen 2f1d90963d fix(rectification): persist narration without routing domains 2026-07-26 15:02:21 +08:00
Jesse_Chen f8576a01e0 fix(rectification): fall back when narrative models fail 2026-07-26 14:27:17 +08:00
Jesse_Chen 68c1bdba46 fix: accept diagnostic rectification gates 2026-07-26 14:05:03 +08:00
Jesse_Chen cdf7a76766 fix: repair missing reported birth-time status 2026-07-26 13:14:14 +08:00