update project-understanding_wjh.md - #14
Open
Swan1127 wants to merge 8 commits into
Open
Conversation
- 修正 test_sandbox_features.py 的分类表述:实为演示数据装载/免密登录/生产禁用,不直接覆盖 C++ 编译执行 - 附录 B 补充 2026-09-05 真实 g++ 16.1.0 编译运行验证(3/3 用例通过) - 收窄结论,明确未验证事项(完整 Web 提交链路与 AI 密钥相关测试)
按当前代码核对:_normalise_score 定义于 tasks/submission_tasks.py(非 code_evaluator 内部);评测页轮询超限/队列不可用提示改为代码真实文案(页面标题为任务状态暂时不可用);models.py 澄清为 18 个 ORM 模型 + CodeSenseSession 会话存储类、共 19 个类。
按评审意见修正 3 处与代码不符的表述: - _normalise_score 归属:定义于 submission_tasks.py,AI 评估后与沙箱重算后各调用一次 - 评测页轮询 60 次上限及两条真实提示文案 - models.py 为 18 个 db.Model + 1 个 CodeSenseSession 会话类
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
CodeSense 阶段一交付:项目理解与架构分析(文档 PR)。本 PR 仅新增
project-understanding_wjh.md,无代码改动。使用过的 AI 工具
Trae(接入 ds-v4-flash),用于代码理解问答、梳理调用链与辅助整理;所有结论经阅读源码复核。
实际阅读范围(仓库相对路径)
app.py(create_app 应用工厂)、config.py、models.py(18 个 ORM 数据模型 + 1 个 CodeSenseSession 会话存储类,共 19 个类)routes/auth.py、routes/main.py、routes/assignments.py、routes/thinking.py、routes/classes.py、routes/users.py、routes/grades.py、routes/api.pyservices/(llm_client、ai_evaluator、api_keys、course_grading、teacher_analytics、demo_database 等)utils/(sandbox_runner、code_evaluator、llm_evaluator、thinking_ai、ability_scorer、async_tasks、sse、agents/ 等)tasks/submission_tasks.py、tasks/ability_analysis.pytemplates/、static/关键页面/脚本,tests/各测试文件,并参考git log理解演进验证命令及结果
环境:Windows + Python 3.11(.venv)+ g++ (MSYS2) 16.1.0,本地 SQLite。
python -m pytest tests/test_sandbox_features.py -qpython -m pytest tests/test_sandbox_output_limits.py -qutils/sandbox_runner.run_test_cases编译运行 C++17 加法程序(3 用例,含公开/隐藏)python run.py说明:tests/ 目录没有覆盖真实 g++ 编译链路的端到端用例(相关用例对
run_test_cases做 mock),故前两项只证明沙箱演示/有界进程特性;编译运行链路由上表第 3 项真实验证支撑,两者已区分。未验证事项与风险
.env配置智谱/OpenAI 密钥,本次未端到端验证;依赖真实 AI 密钥的部分 tests/ 用例未运行。sandbox_runner)。