Skip to content

feat(Agent):jobs and files - #46

Merged
Heyflyingpig merged 11 commits into
developfrom
feat/jobs-and-files
Aug 11, 2026
Merged

feat(Agent):jobs and files#46
Heyflyingpig merged 11 commits into
developfrom
feat/jobs-and-files

Conversation

@Heyflyingpig

Copy link
Copy Markdown
Owner

数据库与文件库

旧 uploaded_files 直接替换为 file_objects + user_files。
增加文件去重、逻辑文件记录、访问计数和 Job 冻结文件快照。
增加 analysis_job_inputs 输入账本、waiting_input 状态、租约 fencing 和恢复字段。
checkpoint 从 MySQL 迁移后的清理流程统一使用 job_id。

Agent 与 Job 链路

Web 进程只负责鉴权、创建 Job 和 SSE。
独立 worker 负责领取任务、执行 LangGraph、调用 MCP/RAG。
支持 initial、resume、stale recovery、cancel。
SSE 事件持久化到 analysis_job_events,支持 Last-Event-ID 续传。

管理员治理

管理端增加任务输入、事件、结果和 checkpoint 安全摘要查看。
文件预览、下载、物理删除增加权限、审计、确认、重新认证和活动 Job 阻断。
修复文件审计目标类型从旧的 uploaded_file 统一为 user_file。

测试

增加 Job 恢复、输入校验、图执行、幂等、迁移和会话删除测试。
当前 Docker 单元测试结果:269 passed。

@Heyflyingpig Heyflyingpig linked an issue Aug 8, 2026 that may be closed by this pull request
@Heyflyingpig Heyflyingpig changed the title Feat/jobs and files feat(database and files):jobs and files Aug 8, 2026
@Heyflyingpig Heyflyingpig self-assigned this Aug 8, 2026
@kongming611 kongming611 reopened this Aug 11, 2026
@Heyflyingpig Heyflyingpig changed the title feat(database and files):jobs and files feat(Agent):jobs and files Aug 11, 2026
@Heyflyingpig
Heyflyingpig merged commit a7b6cd1 into develop Aug 11, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: 上传文件之后,无法立刻加载文件

2 participants