Commit Graph

66 Commits

Author SHA1 Message Date
Jesse_Chen 5957803de4 Merge GitHub upstream into Gitea primary 2026-08-05 11:13:34 +08:00
Jesse_Chen 79fe2d6c69 fix: gate rectification candidate adoption flow 2026-08-04 16:47:23 +08:00
Jesse_Chen 8f6f4f511b feat: allow users to accept rectification candidates 2026-08-04 11:39:33 +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 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
linmeng f4e35974c6 Revert "merge: sync GitHub staging to Gitea"
Deploy staging to test server / deploy (push) Failing after 14m49s
This reverts commit a55c69115d, reversing
changes made to 02c9c9f3d6.
2026-07-30 14:38:17 +08:00
Jesse_Chen 2384faf367 feat: harden rectification candidate validation 2026-07-30 10:55:39 +08:00
Jesse_Chen 0a5b8cd239 fix: restore rectification agent message actions 2026-07-30 00:41:48 +08:00
Jesse_Chen ee9d432762 feat: make rectification agent conversational 2026-07-29 17:49:19 +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_Chen a550b98da7 refactor: make birth time rectification conversational 2026-07-27 22:33:12 +08:00
Jesse_Chen 2ca245d643 feat: rebuild birth time rectification workflow 2026-07-27 09:57:14 +08:00
Jesse_Chen cdf7a76766 fix: repair missing reported birth-time status 2026-07-26 13:14:14 +08:00
Jesse_Chen 3e56389aeb fix: repair structured date validator migration 2026-07-25 13:51:54 +08:00
Jesse_Chen 0e6ed6ba79 fix: make conversational rectification converge 2026-07-25 11:50:41 +08:00
Jesse_Chen 8150df8942 fix: preserve rectification streaming and history 2026-07-25 02:08:10 +08:00
Jesse_Chen 3ca30ed7de feat: complete minute birth-time rectification flow 2026-07-25 01:17:14 +08:00
Jesse_Chen 0850619eaf fix: preserve trusted rectification history 2026-07-23 14:58:56 +08:00
Jesse_Chen 685f322981 fix: restore conversational rectification history 2026-07-23 14:26:35 +08:00
Jesse_Chen 1d841ec80a merge: conversational birth-time rectification
# Conflicts:
#	docs/BUG_HISTORY.md
2026-07-23 13:17:04 +08:00
Jesse_Chen f9010c8797 feat: make birth-time rectification conversational 2026-07-23 13:12:09 +08:00
Jesse_Chen 630074737a merge: land conversational rectification on main 2026-07-22 17:51:28 +08:00
Jesse_Chen 3069a7c8a0 feat: streamline conversational birth-time rectification 2026-07-22 17:39:11 +08:00
Jesse_Chen 31d6ab1ee3 fix: recover expired rectification handoffs 2026-07-22 12:28:55 +08:00
Jesse_Chen b981c4ee31 fix: preserve rectification evidence flow 2026-07-22 00:55:03 +08:00
Jesse_Chen dc0077eb89 fix: restore production birth-time rectification 2026-07-22 00:07:42 +08:00
Jesse_Chen bfc6870614 feat: complete verifiable birth-time rectification flow 2026-07-21 22:16:18 +08:00
Jesse_Chen eb8ed8bee4 Merge branch 'feat/conversational-birth-time-rectification'
# Conflicts:
#	.github/workflows/deploy-production.yml
#	frontend/src/app/api/account/route.ts
#	frontend/src/app/globals.css
#	frontend/src/app/page.tsx
#	frontend/tests/health-deployment.test.ts
2026-07-21 16:03:53 +08:00
Jesse_Chen de9a687779 fix: advance imported rectification profile pointer 2026-07-21 14:16:54 +08:00
Jesse_Chen d4ad0637fe feat: import unfinished birth-time cases 2026-07-21 13:53:03 +08:00
732642856 5db48e16b3 fix: add chat session delete row policy (#21) 2026-07-21 12:15:12 +08:00
Jesse_Chen 53dddb8b43 fix: make rectification question handoff durable 2026-07-21 11:58:42 +08:00
732642856 e3d619c2a7 fix: make chat session deletion server controlled (#19) 2026-07-21 11:03:34 +08:00
Jesse_Chen 5c8d965f16 fix: reset rectification corrections safely 2026-07-21 05:57:30 +08:00
Jesse_Chen 887b40df43 fix: persist rectification evidence corrections 2026-07-21 05:23:51 +08:00
Jesse_Chen 1684278304 fix(rectification): harden scoring and replay boundaries 2026-07-21 03:16:46 +08:00
Jesse_Chen 1112d8460b fix(rectification): address task 7 review findings 2026-07-21 02:53:40 +08:00
Jesse_Chen ae41023b96 fix: align conversational persistence validators 2026-07-20 23:42:37 +08:00
Jesse_Chen c883c401aa fix: harden conversational persistence boundaries 2026-07-20 23:11:01 +08:00
Jesse_Chen e16746fb65 fix conversational rectification persistence gaps 2026-07-20 22:24:43 +08:00
Jesse_Chen 23596851c1 feat: persist and bill conversational rectification 2026-07-20 17:37:08 +08:00
732642856 2953f0b2d7 fix: permit chart profile upserts 2026-07-20 16:52:53 +08:00
Jesse_Chen 8f98e8585d fix: confirm dynamic birth-time candidates 2026-07-20 14:58:57 +08:00
Jesse_Chen 4ffebdd5be fix: close chat deletion and transport errors 2026-07-20 14:45:08 +08:00
Jesse_Chen 1935b9f0a6 fix: persist birth time declarations 2026-07-19 17:10:52 +08:00
Jesse_Chen 293f6216e3 fix: repair profile data migrations 2026-07-19 14:46:57 +08:00
Jesse_Chen e90f77bac1 fix: close dynamic receipt replay gaps 2026-07-19 09:12:45 +08:00