Commit Graph

93 Commits

Author SHA1 Message Date
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 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 8397a39977 fix(rectification): preserve grounded agent responses 2026-07-31 19:50:49 +08:00
Jesse_Chen 453eacf3e2 feat(rectification): add adaptive director tool loop 2026-07-31 15:09:03 +08:00
Jesse_Chen e9d20382d9 fix: keep rectification questions context-aware 2026-07-30 07:58:06 +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 218cee579e fix(admin): preserve capability route contract 2026-07-28 10:04:36 +08:00
Jesse 02ec5db361 feat(admin): add audited Refine staging console 2026-07-28 09:47:13 +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 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
Jesse_Chen 2ca245d643 feat: rebuild birth time rectification workflow 2026-07-27 09:57:14 +08:00
Jesse_Chen 5f492be1b9 fix: open rectification narrative flow 2026-07-26 11:00:20 +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 e55e06521a refactor: simplify rectification conversation chrome 2026-07-23 17:02:11 +08:00
Jesse_Chen b9fa304b1a fix: follow rectification replies to bottom 2026-07-23 16:30:21 +08:00
Jesse_Chen 4a9b1dc0be fix: keep agent status with replies 2026-07-23 15:57:39 +08:00
Jesse_Chen 73cafeb6e0 fix: stream validated rectification replies 2026-07-23 15:45:42 +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 48dead992f test: restore production release gate 2026-07-22 18:41:25 +08:00
Jesse_Chen 200c39d22b feat: refine session conversation UI 2026-07-22 18:04:56 +08:00
Jesse_Chen 3069a7c8a0 feat: streamline conversational birth-time rectification 2026-07-22 17:39:11 +08:00
Jesse_Chen c07eab2941 feat: show agent activity and simplify starter view 2026-07-22 15:51:54 +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 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 dfcc718fa7 feat(identity): add gated self-hosted otp login 2026-07-21 17:52:25 +08:00
732642856 e11444904d feat: add markdown consultation report download 2026-07-21 16:56:20 +08:00
732642856 ebdd1a40e1 feat: add non-sensitive raw evidence receipt 2026-07-21 16:56:20 +08:00
732642856 9db00c6d33 feat: render workflow receipt evidence rows 2026-07-21 16:56:20 +08:00
732642856 d6726e849d feat: show parameter freeze panel 2026-07-21 16:56:20 +08:00
732642856 19b8491b18 feat: add evidence audit panel shell 2026-07-21 16:56:20 +08:00
732642856 3427b30fd4 feat: add strict workflow taxonomy and claim badges 2026-07-21 16:56:20 +08:00
732642856 d82218e70a fix: block unconfirmed birth-time candidate adoption 2026-07-21 16:06:30 +08:00
Jesse_Chen 53dddb8b43 fix: make rectification question handoff durable 2026-07-21 11:58:42 +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