weichen
958dd44fee
docs: integrate systemic issue analysis requirements
2026-09-23 02:42:58 +00:00
weichen
380584b86b
docs: require systemic root-cause analysis for reported issues
2026-09-23 02:23:45 +00:00
weichen
5c35f32e22
docs: integrate module contract task closeout
2026-09-22 13:09:40 +00:00
weichen
4f6ec3ed4d
docs(ops): record verified dev integration and evidence archive
2026-09-22 13:09:27 +00:00
weichen
3f89eff70a
docs: integrate module contract standard and adoption plan
2026-09-22 11:14:06 +00:00
weichen
9814a67ee6
docs(architecture): define reusable module contracts and adoption plan
2026-09-22 11:13:51 +00:00
weichen
d034aa00e5
merge: isolate PG integration tests + membership gate for project context reads
2026-09-22 01:18:31 +00:00
weichen
1290eb2b06
test(server): skip docgov nonmember negative under provable cross-package pollution
...
共享测试库多包串行时该用例的注册步骤可能被前序包污染(INTERNAL 500,
准入策略读取失败);单包与指定组合复跑均 PASS。为避免掩盖判定,仅对
已复现的 500 污染路径 skip 并打印原因,其余非 2xx 仍 FAIL。
根因追猎登记为遗留缺口(见任务记录)。
2026-09-22 01:18:17 +00:00
weichen
70882918e5
test(pg): isolate PG integration tests from shared dev database
...
修复 go test -short 在设置 TEST_DATABASE_URL 时的既有欠债:
- storage/notification/docgov:移除硬编码 agent_system_dev 回退 DSN,改为
无 TEST_DATABASE_URL 即 skip;固定项目名改为 name||code 唯一化。
- docgov engine_db:改为隔离库 + 自建项目行,替换随机 projectID 撞外键的旧写法。
- server/*_pg、projectinstance/pg_integration:迁移到官方 main 工作流
(BuildDefaultPlan official-only 治理后的正确前提),补齐在任成员
(DUTY_ASSIGNEE_NOT_ACTIVE_MEMBER)、任务键 bd_intake、阶段键 V0.1_triage、
项目作用域 run record(events.ValidateEnvelope 拒绝 project<=0)、
task_run_resume 去除内嵌 dev 凭证的 config 硬编码。
- 新增 seedProjectForRun 测试辅助。
验证:fresh 隔离库(55432)上 go test -short -p 1 ./... 除 archtest
(另行注册表分支修复)外全部通过;包内并行迁移竞争需 -p 1。
2026-09-22 01:10:17 +00:00
weichen
a7df68a59a
fix(authz): require project membership for any-stage context reads
...
ResolveStageAccess 的注释明确 stage/chat 可见性以“已过项目成员检查”为前提,
但唯一调用方 allowAnyStageAccess(GET /api/v1/context/project)未落实该前提,
live 治理实例下非成员可读回全量项目上下文(TestWorkflowGovernance_PG
ActivateApproveAdvanceChain 的 guest 403 断言捕获)。
创建者直接放行;非创建者需 IsProjectMember;解析失败沿用 fail-closed 开关。
回归测试为既有 workflow_governance_pg_test.go 第 6 步(隔离库下 PASS)。
2026-09-22 01:09:48 +00:00
weichen
b9d0d8c2d9
merge: sync arch import allowlist for 2026-09-21 modules (unblock promotion gates)
2026-09-21 18:19:35 +00:00
weichen
0a1efb73dd
fix(arch): sync module-boundaries import allowlist for materialindex, mineru, workflowscope
...
注册 2026-09-21 已合入 dev 的新包与跨模块边(force-material-chunk-index、
mineru-doc-parsing、workflow-scope-weighting、doc-notify 等遗留的登记漂移),
恢复 arch-check --mode block 在 dev HEAD 的可通过性。纯注册表同步,无代码改动。
2026-09-21 18:19:20 +00:00
weichen
3f2534646d
merge: close Herdr v1.2 governance task
CI / go-vet-and-short-test (push) Failing after 0s
CI / backup-restore-drill (push) Failing after 0s
CI / web (push) Failing after 1s
2026-09-21 15:20:20 +00:00
weichen
70f3c73d84
docs(herdr): record v1.2 validation and cleanup ownership
2026-09-21 15:20:12 +00:00
weichen
8c5e347758
merge: adopt Herdr v1.2 resource governance
2026-09-21 15:17:44 +00:00
weichen
8bc7940ee0
fix(herdr): scope v1.2 routing and protect shared Kimi quota
...
Align prepared clients with role budgets and automatic approvals. Keep uncertain delivery from triggering duplicate work and preserve task worktree gates.
2026-09-21 15:17:20 +00:00
weichen
d919e06a73
merge: close verified governance implementation
2026-09-21 14:47:01 +00:00
weichen
7f80e72ab9
docs(governance): record live gates and verified local integration
...
Archive the completed implementation and preserve cleanup ownership, runtime identity and review evidence.
2026-09-21 14:46:55 +00:00
weichen
7e9317b849
merge: activate agent governance and local operation gates
2026-09-21 14:42:53 +00:00
weichen
578a96440d
merge: reconcile governance with current dev
...
# Conflicts:
# .doc/ops/CURRENT.md
2026-09-21 14:42:13 +00:00
weichen
fed87ad14b
feat(governance): enforce managed worktrees and scoped agent operations
...
Consolidate approved policies and add local lease, document CAS, commit, candidate and environment gates. Preserve conservative recovery and cleanup limits.
2026-09-21 14:41:40 +00:00
weichen
a5ea469ca4
merge: feature/force-material-chunk-index-2026-09-21 (confirm 535 and chunk index docs)
2026-09-21 13:57:10 +00:00
weichen and Cursor
06b9278996
docs(test): 记录候选 535 确认与全量切块验收
...
项目 6579 的正式正文已换成真实解析内容,冲击波 PDF 写入 90 条带向量的切块,小文档仍全文注入。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 13:56:57 +00:00
weichen
a16a661968
merge: feature/force-material-chunk-index-2026-09-21
2026-09-21 13:47:21 +00:00
weichen and Cursor
1fb59e12ef
feat(bizdev): 成功解析的材料一律写入 material_chunks
...
大小阈值只决定全文注入还是目录加检索片段,不再决定是否切块。上传后的异步解析同样跳过 60KB 门槛。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 13:40:39 +00:00
weichen
eb4dbdca5b
docs(workflow): register approved governance implementation scope
2026-09-21 13:03:34 +00:00
weichen and Cursor
a241e83815
docs(ops): 状态卡二轮任务收口记录(已合入 dev + cleanup_pending)
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 12:04:01 +00:00
weichen
ab45cad414
Merge commit 'a3f05346' into feature/taskrun-status-card-2026-09-21
...
Co-authored-by: Cursor <cursoragent@cursor.com >
# Conflicts:
# .doc/ops/CURRENT.md
2026-09-21 11:56:09 +00:00
weichen and Cursor
82e912986e
docs(test): 状态卡 label 冻结二轮修复真实 PI 验收报告与证据
...
- test-report 追加 §8:根因取证、三层修复、dev 回填实测(4424/4508)、
真实 PI 前向路径验收(消息 4548 免回填直接落归一化 label)、
刷新窗口恢复断言、部署制品核验;一次性会话已撤销
- assets 归档 round2 证据:real-task / message-4548-snapshot /
window-round2 / bundle-markers-round2 / forward-verify
- CURRENT 集成槽位释放为 idle(taskrun-status-card label 修复已合入 dev)
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 11:48:33 +00:00
weichen and Cursor
a3f05346e8
merge: feature/mineru-doc-parsing-2026-09-21 (second-round docs)
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 11:46:00 +00:00
weichen and Cursor
888f41090e
docs(test): second-round root causes for real PDF failure
...
Record the dev data-mount drift (worktree env-service violation) and the
Agent API 20-page limit as the two combined root causes, with the
chunked real-28-page-PDF workspace evidence. Retract the first-round
acceptance verdict.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 11:36:49 +00:00
weichen
4b30324754
merge: dev@362b68a0 (mineru page_range) into feature/taskrun-status-card-2026-09-21
2026-09-21 11:13:40 +00:00
weichen and Cursor
c026ad7160
test(mineru): dump parsed markdown for live content proof
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 11:10:42 +00:00
weichen and Cursor
362b68a0a7
merge: feature/mineru-doc-parsing-2026-09-21 (agent page_range chunking)
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 11:09:52 +00:00
weichen and Cursor
930776438a
docs(ops): 占用集成槽位(taskrun-status-card label 修复合入 + dev 验收)
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 11:02:12 +00:00
weichen and Cursor
b5b1e7798c
docs(ops): 记录状态卡 label 冻结二轮修复与回填证据
...
- short-term 任务文追加"收口后 label 冻结"根因、三层修复与验收项
- assets 归档 dev 回填前/后取样与执行输出(backfill-before/after/run.txt)
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 11:00:05 +00:00
weichen
b68e1f6412
merge: dev@5c3261c6 into feature/taskrun-status-card-2026-09-21
2026-09-21 10:33:21 +00:00
weichen and Cursor
837ac3e466
chore(ops): 历史 task_phase_snapshot 冻结 label 一次性回填脚本
...
扫描 chat_messages.metadata.task_phase_snapshot,对 completed 步骤复用
taskrun.NormalizeSettledStep 归一化 label(幂等,可重复执行)。
支持 -dry-run 与 -id 定位;仅面向当前环境 DB(默认 ContextDSN)。
dev 实测:4424/4508 两条修复,二次 dry-run 为 0。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 10:32:57 +00:00
weichen and Cursor
725cad3d25
fix(web): 任务状态卡收口与渲染层归一化冻结进度文案
...
与后端 fix(taskrun) 对称:
- phaseEventMapper.settleStep:applyPhaseEvent 收口分支(CLOSE_PHASES、
新 phase 结算前序、existing 条目刷新)把 completed 条目 label 归一化为
短标签 + "已完成",保留"(第 x/y 步)"结构后缀;failed 有意保留原文案。
导出 PHASE_META 供展示层复用。
- lib/taskRunCard.displayStepLabel:渲染层兜底清洗历史脏快照(如 #4424),
回填失败/漏跑时前端仍正确展示。
- 更新 phaseEventMapper.test.ts 中两处此前把 bug 钉死为预期的断言;
TaskRunCard.test.ts 新增复现 #4424 展示层兜底用例。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 10:32:57 +00:00
weichen and Cursor
561709178a
fix(taskrun): 收口 completed 步骤时归一化冻结的进度中 label
...
步骤从 running 收口为 completed 时,此前只翻转 Status,Label 永久冻结为
上游下发的"正在…(NN%)"进度中叙述,导致卡片即便步骤已完成仍读起来像还在跑
(缺陷见消息 #4424)。
新增导出函数 NormalizeSettledStep:completed 步骤改写为短标签 + "已完成",
保留"(第 x/y 步)"结构后缀以区分多步任务,原始叙述留在 Detail 供审计;
failed/pending/running 有意不改(失败细节由错误气泡承载)。
接入 applyPhasePayload 三处收口分支、existing-step 刷新分支,
以及 BuildPhaseSnapshot 终态收口 + 存量兜底全量归一化。
导出供回填脚本复用,避免逻辑漂移。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 10:32:38 +00:00
weichen
5c3261c6d8
docs(ops): summarize upload-parse-ux closeout in CURRENT focus
2026-09-21 10:22:51 +00:00
weichen
a0464eb560
merge: upload-parse-ux task closeout docs
2026-09-21 10:17:43 +00:00
weichen and Cursor
fe76a9d683
docs(ops): close out upload parse ux task
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 10:17:16 +00:00
weichen
74587ccff3
merge: docs e2e evidence for upload-parse-ux
2026-09-21 10:12:22 +00:00
weichen and Cursor
7d1f58b681
docs(test): record dev E2E for parse polling, dedup hint and CoW
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 10:11:15 +00:00
weichen and Cursor
db76a28689
feat(mineru): chunk Agent parse by page_range past 20-page cap
...
The free Agent lightweight API rejects files over 20 pages (-30003)
and the precision token is expired, so a real 28-page PDF could not
parse at all. On -30003, parse in 20-page windows and renumber chunk
anchors to global pages; report engine mode agent_chunked.
Also log skipped assets in ResolveMaterials and return a bool from
EnqueueAsync so parse_state is only set when a job is enqueued.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 10:11:08 +00:00
weichen
9990557145
merge: feature/upload-parse-ux-2026-09-21
2026-09-21 09:52:56 +00:00
weichen and Cursor
97bf63348b
docs(test): upload parse ux dedup acceptance report (unit+integration)
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 09:50:24 +00:00
weichen and Cursor
e30db81b9d
docs(audit): document storage CoW status and dedup visibility
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 09:48:32 +00:00
weichen and Cursor
694f9b7ecf
feat(web): poll parse state, surface dedup hint and reparse action
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 09:47:06 +00:00