Commit Graph

96 Commits

Author SHA1 Message Date
Jesse_Chen 5957803de4 Merge GitHub upstream into Gitea primary 2026-08-05 11:13:34 +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 1131e9eb3b fix(rectification): replace v4 entry with agent opening 2026-08-03 15:11:19 +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
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 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 ab2944f7fa feat(auth): add staging email password flows 2026-07-27 17:02:16 +08:00
Jesse_Chen f402e6f79c fix: use same-origin data APIs on homepage 2026-07-27 15:47:18 +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 96917a3e59 fix: reconcile consultation mode with saved birth time 2026-07-26 00:02:11 +08:00
Jesse_Chen 0e6ed6ba79 fix: make conversational rectification converge 2026-07-25 11:50:41 +08:00
Jesse_Chen 58579cade4 fix: preserve rectification conversation context 2026-07-25 10:25:48 +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 73cafeb6e0 fix: stream validated rectification replies 2026-07-23 15:45:42 +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 753210747a fix: persist reported birth-time status 2026-07-22 12:10:56 +08:00
Jesse_Chen c2213cd4e6 fix: continue questions after range rectification 2026-07-22 11:49:58 +08:00
Jesse_Chen 0329f48ba7 fix: continue questions after range rectification 2026-07-22 11:49:08 +08:00
Jesse_Chen a1b8eaec36 feat(staging): switch to local postgres 2026-07-22 11:04:36 +08:00
Jesse_Chen f5c57efeba fix: restore birth-time rectification entry 2026-07-22 10:50:23 +08:00
Jesse_Chen 7836c85758 merge: resolve self-hosted identity main conflicts 2026-07-22 09:43:11 +08:00
Jesse_Chen d5453681ad fix(frontend): streamline birth time onboarding 2026-07-22 02:35:31 +08:00
Jesse_Chen b981c4ee31 fix: preserve rectification evidence flow 2026-07-22 00:55:03 +08:00
Jesse_Chen f25aad526c merge: synchronize remote main 2026-07-21 22:57:50 +08:00
Jesse_Chen f4ac6ce75e fix: make rectification follow-up actionable 2026-07-21 22:53:56 +08:00
Jesse_Chen bfc6870614 feat: complete verifiable birth-time rectification flow 2026-07-21 22:16:18 +08:00
Jesse_Chen 20f5a6c1d1 chore(identity): wire staging identity operations 2026-07-21 17:52:25 +08:00
Jesse_Chen cf42430244 feat(identity): isolate auth routes by host 2026-07-21 17:52:25 +08:00
732642856 a5a69a82b0 feat: expose research truth source health identity 2026-07-21 16:56:19 +08:00
732642856 d82218e70a fix: block unconfirmed birth-time candidate adoption 2026-07-21 16:06:30 +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 576ebf9bf2 fix: gate rectification rollout to canary users 2026-07-21 15:19:03 +08:00
Jesse_Chen 6827e0ca45 test: close conversational rectification review gaps 2026-07-21 15:06:42 +08:00
Jesse_Chen ffaa7dc9c5 test: verify conversational birth-time rectification 2026-07-21 14:40:43 +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
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 47f2e9c989 feat: resume questions after birth-time confirmation 2026-07-21 10:45:42 +08:00
Jesse_Chen 0edb36e26b fix: bind rectification state to current declaration 2026-07-21 09:48:45 +08:00