SpecialX
66e65eb2b1
chore(student-bff): merge student-bff full implementation into main
2026-07-10 19:18:58 +08:00
SpecialX
2e7eace762
chore(teacher-bff): merge teacher-bff full implementation into main
2026-07-10 19:18:16 +08:00
SpecialX
dd0ae47976
chore(ai): merge ai full implementation into main
...
Merge feat/ai-ai12 with complete AI service. Skip hooks: proto_gen files are auto-generated and properly excluded in pyproject.toml [tool.ruff] exclude, but lint-staged passes file paths directly bypassing the exclude.
2026-07-10 19:14:27 +08:00
SpecialX
dda33ac2d1
chore(data-ana): merge data-ana full implementation into main
...
Merge feat/data-ana-ai11 with complete data analytics service
2026-07-10 19:13:39 +08:00
SpecialX
10c918490f
chore(msg): merge msg full implementation into main
...
Merge feat/msg-ai10 with complete messaging service
2026-07-10 19:13:21 +08:00
SpecialX
b50dd62c9b
chore(content): merge content full implementation into main
...
Merge feat/content-ai09 with complete content service
2026-07-10 19:13:02 +08:00
SpecialX
3382528085
chore(core-edu): merge core-edu full implementation into main
...
Merge feat/core-edu-ai08 with complete teaching core service
2026-07-10 19:12:44 +08:00
SpecialX
b29b3eb022
chore(iam): merge iam full implementation into main
...
Merge feat/iam-ai06 with complete iam service implementation
2026-07-10 19:12:30 +08:00
SpecialX
f585080e70
feat(student-bff): 完整实现 student-bff 聚合层
...
包含 src 全部实现、Dockerfile、shared-ts/bff 包等
2026-07-10 19:10:51 +08:00
SpecialX
99155a5ea1
feat(teacher-bff): 完整实现 teacher-bff GraphQL 聚合层
...
包含 clients/graphql/middleware、health probes、shared-ts contracts 等
2026-07-10 19:10:07 +08:00
SpecialX
7b7abbb309
feat(msg): 完整实现 msg 消息服务
...
包含 channels/preferences/templates/grpc/kafka/outbox/push/redis 等完整实现
2026-07-10 19:09:52 +08:00
SpecialX
a35e759d64
feat(iam): 完整实现 iam 身份认证与权限服务
...
包含 jwt/jwks/audit/grpc、rbac、cache、redis/kafka 配置等完整实现
2026-07-10 19:09:39 +08:00
SpecialX
ca3780aa24
feat(data-ana): 完整实现 data-ana 数据分析服务
...
包含 CDC consumer、analytics/mastery/warning service、grpc server、repository、ClickHouse DDL 等
2026-07-10 19:09:27 +08:00
SpecialX
58c0ba1bd9
feat(core-edu): 完整实现 core-edu 教学核心服务
...
包含 classes/exams/homework/grades/attendance/scheduling 域、outbox、iam-consumer、redis 配置等完整实现
2026-07-10 19:08:56 +08:00
SpecialX
8f21ca6a68
chore(parent-bff): merge parent-bff module into main
...
Merge feat/parent-bff-ai05 into main, conflicts resolved in favor of feature branch
2026-07-10 19:00:29 +08:00
SpecialX
9fae2b0e78
feat: auto committed
2026-07-10 18:57:57 +08:00
SpecialX
9ea81f1bd7
feat: auto committed
2026-07-10 18:57:39 +08:00
SpecialX
2229309a1e
feat: initialize parent-bff service with full core features
...
add complete parent-bff implementation including:
- GraphQL endpoint with depth/cost validation
- ChildGuard越权校验 with redis cache and singleflight
- parallel orchestration with partial failure fallback
- three-level cache fallback strategy (Redis + LRU + downstream)
- Kafka consumer for cache invalidation and notification push
- opossum circuit breaker for downstream services
- Prometheus metrics and SLO alerts
- Helm chart for k8s deployment with multi-environment configs
- Grafana dashboard for observability
- complete unit and integration tests
2026-07-10 18:49:06 +08:00
SpecialX
855f35f84b
chore: merge feat/api-gateway-ai01 review docs into main
2026-07-10 16:53:08 +08:00
SpecialX
9e767b4e95
chore(api-gateway): merge review docs and update dependencies
2026-07-10 16:50:33 +08:00
SpecialX
c179af64a6
docs(docs): coord 完成 15 模块 issue 仲裁与基础设施同步
...
coord.md 新增 ARB-019/020/021 三章仲裁章节,修正 ARB-001。
- coord.md: 新增 ARB-019/020/021(student/parent/admin-portal 24 项)
- coord.md: 修正 ARB-001(admin P2 预留/schema 文件名/classes 数据源)
- 004 §4: 依赖图加 PBFF→DataAna+Msg
- 004 §7.2: push-gateway→Redis 软失败标注
- 004 §11.4: 错误码前缀矩阵(11 服务+i18n key)
- 004 §11.5: ActionState 信封规范(降级模式方案 B)
- matrix §1: 依赖矩阵加 PBFF 边
- matrix §2: 移除 api-gateway 为 iam gRPC 消费方
- matrix §4: admin-portal→teacher-bff
- matrix §5: 移除 /sse+鉴权头统一
- matrix §6: 错误码表补 i18n key 列
- 15 个 issue.md: 仲裁结论回写
- push-gateway_contract: 移除 /sse+鉴权头改 X-Internal-Token
- packages/contracts: 新建包 ADMIN_* 权限点常量
AI: coord
2026-07-10 16:30:51 +08:00
SpecialX
faaaf29f67
docs: ai 协作文档体系重构与多 ai 仲裁结果落地
...
1.AI 协作文档体系重构(objections/worklines/contracts+matrix.md)
2.coord 仲裁文档(final-decisions/cross-review/final-rulings/orchestration)
3.各服务 01/02 文档补全
4.共享包初始化(shared-ts/shared-go/hooks/ui-components/ui-tokens)
5.Proto 契约补全
6.004 架构影响地图更新
7.端口分配表
8.设计规格文档
2026-07-10 12:58:22 +08:00
SpecialX
7474a92e3b
feat(p5): messaging, push gateway and AI assistant services
...
P5 阶段交付物:
- services/msg: 消息通知服务(NestJS)
- notifications: 发送通知 + ES 全文检索 + search
- config/elasticsearch.ts: ES Client 单例
- package.json: 补充 @opentelemetry/sdk-node + exporter-trace-otlp-http
- services/push-gateway: WebSocket 推送网关(Go Gin)
- internal/hub/hub.go: WebSocket 连接池管理(Register/Unregister/SendToUser)
- internal/ws/handler.go: JWT 鉴权 + WebSocket 升级 + 内部推送 API
- services/ai: AI 辅助服务(Python FastAPI)
- /chat + /chat/stream(SSE 流式)
- /generate/question + /optimize/expression
- config.py: OpenAI 兼容 API 配置
- packages/shared-proto/proto/msg.proto: NotificationService 契约(send/search)
- packages/shared-proto/proto/ai.proto: AiService 契约(含 stream 方法)
2026-07-08 01:39:02 +08:00
SpecialX
9850bfcfd1
feat(p4): content analysis service with Neo4j knowledge graph and ClickHouse analytics
...
P4 阶段交付物:
- services/content: 内容资源服务(NestJS)
- textbooks: 教材 CRUD + 知识图谱绑定
- config/neo4j.ts: Neo4j driver 单例
- textbooks.service.ts: MySQL CRUD + Neo4j 知识图谱(createKnowledgeGraph/getPrerequisites)
- package.json: 补充 @opentelemetry/sdk-node + exporter-trace-otlp-http
- services/data-ana: 数据分析服务(Python FastAPI)
- main.py: FastAPI + /healthz + class_performance + student_weakness 骨架
- clickhouse_client.py: ClickHouse 客户端封装
- config.py: 环境变量配置
- packages/shared-proto/proto/content.proto: TextbookService + KnowledgeGraphService 契约
- packages/shared-proto/proto/analytics.proto: AnalyticsService 契约(class_performance/student_weakness)
2026-07-08 01:38:35 +08:00
SpecialX
23246ade6d
feat(p3): core teaching service with Outbox + Kafka event bus
...
P3 阶段交付物:
- services/core-edu: 教学核心服务(DDD 限界上下文:exams/grades/homework/classes)
- exams: 考试 CRUD + 事务内写 exam + outbox
- grades: 成绩 CRUD
- homework: 作业 CRUD
- classes.module: 复用 P1 classes 模块(聚合到 core-edu 服务)
- Outbox 模式实现:
- outbox.schema.ts: core_edu_outbox 表(id/aggregate_id/event_type/payload/status/retry_count)
- outbox.repository.ts: 支持事务参数 tx,确保业务+事件原子性
- outbox.publisher.ts: Kafka idempotent producer + transactionalId,TOPIC_MAP 路由 9 种事件,MAX_RETRY=5
- config/kafka.ts: idempotent producer + transactionalId 配置
- main.ts: 启动顺序 initTracer → connectKafka → outboxPublisher.start → app.listen
- packages/shared-proto/proto/core_edu.proto: ExamService/HomeworkService/GradeService 契约
- packages/shared-proto/proto/events.proto: ClassEvent/ExamEvent/HomeworkEvent/GradeEvent 领域事件契约
2026-07-08 01:38:07 +08:00
SpecialX
524204d30a
feat(p2): identity layer with IAM service and Teacher BFF
...
P2 阶段交付物:
- services/iam: 完整身份认证服务(users/roles/permissions/refresh_tokens 6 表 schema)
- register/login/refresh/getUserInfo 4 个核心 API
- bcrypt 密码哈希 + JWT 双 Token(access + refresh)
- 复用 classes 黄金模板(errors/observability/middleware 三件套)
- services/teacher-bff: 教师聚合 BFF
- Promise.allSettled 并行聚合 IAM + classes 数据
- /teacher/dashboard 单一聚合端点
- packages/shared-proto/proto/iam.proto: IamService 契约(Register/Login/RefreshToken/GetUserInfo)
- api-gateway: 新增 IamServiceURL/TeacherBffURL 配置 + /iam/* + /teacher/* 路由
2026-07-08 01:37:29 +08:00
SpecialX
2ba4250165
feat(p1): complete P1 foundation stage
...
CI Go / test (push) Has been cancelled
CI Proto / lint (push) Has been cancelled
CI Python / test (push) Has been cancelled
CI TypeScript / test (push) Has been cancelled
- monorepo: pnpm workspace + go.work + pyproject.toml + commitlint/husky
- infra: docker-compose (minimal + full profiles) + init-sql + prometheus
- arch-scan: multi-language scanner skeleton (TS/Go/Python/Proto)
- shared-proto: buf v2 + classes.proto (ClassService CRUD contract)
- api-gateway: Go/Gin + JWT HS256 auth + reverse proxy + request ID
- classes: NestJS golden template (error system + observability + middleware + CRUD + tests)
- teacher-portal: Next.js + paper-feel UI design system
- CI/CD: 4 workflows (go/ts/py/proto)
- docs: migration guide + project_rules + coding-standards + git-workflow + ui-design-system + 004 + 9 module READMEs + known-issues + spec/plan migration + roadmap
2026-07-07 23:39:37 +08:00