weichen
8768ee2ba2
merge: candidate module-batches-ag-status-fix into local_dev
2026-09-23 15:09:12 +00:00
weichen
daebbf61e7
docs(ops): restore tip CURRENT closeout claim after sync merge
2026-09-23 15:09:00 +00:00
weichen
ca5c36f65f
merge: sync tip 9d8332ad into module-batches-ag-status-fix
...
Retain CURRENT claim and MATRIX done; re-apply tip CURRENT rows next.
2026-09-23 15:08:40 +00:00
weichen
1d3c957ff4
docs(ops): close matrix regression issue after CAS restore
...
Mark issue resolved and lesson validated once arch-check and MATRIX
done row are confirmed in the task worktree.
2026-09-23 15:05:27 +00:00
weichen
b9d09c9712
docs(status): restore module-batches-ag done state after merge regression
...
Row-level CAS recovers the umbrella status that closeout conflict
resolution had overwritten back to planned; header text aligned.
2026-09-23 15:03:45 +00:00
weichen
54641f4653
docs(ops): register matrix status regression and claim CURRENT
...
Restore coordination evidence for module-batches-ag: issue, lesson,
batch-plan done status, and CURRENT claim ahead of MATRIX CAS restore.
2026-09-23 15:02:53 +00:00
weichen
9d8332ad08
merge: mark closeout claim worktree removed
CI / go-vet-and-short-test (push) Failing after 0s
CI / backup-restore-drill (push) Failing after 0s
CI / web (push) Failing after 0s
2026-09-23 15:01:52 +00:00
weichen
236f39e6c4
docs(ops): mark closeout-worktree-cleanup claim worktree removed
2026-09-23 15:01:51 +00:00
weichen
18b9556f3b
merge: FAV constraint CURRENT revision and restore protection
2026-09-23 14:20:44 +00:00
weichen
340240473e
docs(ops): revise FAV live constraint and restore CURRENT protection
...
Authorized temporary lift of protected_sections; set 受控约束 first
bullet to FAV live not released / FAV_DEGRADED_READ default false;
restore ## 受控约束 protection afterward.
2026-09-23 14:20:43 +00:00
weichen
c05b4090d8
merge: lift CURRENT 受控约束 protection for authorized edit
2026-09-23 14:20:02 +00:00
weichen
6f2d0d8d0c
chore(ops): temporarily lift CURRENT 受控约束 protection
...
Authorized 2026-09-23 so docs apply can revise the FAV live constraint
bullet; restore protection in the follow-up commit.
2026-09-23 14:20:02 +00:00
weichen
73ee509439
merge: closeout worktree cleanup docs into local_dev
2026-09-23 14:10:38 +00:00
weichen
8437ba4164
docs(ops): finalize remaining-worktrees five-state and cleanup table
2026-09-23 14:10:27 +00:00
weichen
4381b71094
merge: remaining worktrees closeout docs into local_dev
CI / go-vet-and-short-test (push) Failing after 1s
CI / backup-restore-drill (push) Failing after 0s
CI / web (push) Failing after 0s
2026-09-23 14:03:13 +00:00
weichen
fe4a3043eb
docs(ops): fix closeout short-term and test report text
2026-09-23 14:03:13 +00:00
weichen
cdfd7d9849
docs(ops): remaining worktrees closeout report and CURRENT/MATRIX rows
...
Record go-agentx+FAV integrate evidence, stale DIFF archive, claim/FAV
cleanup rows, and events-fav partial note. Constraint bullet deferred
to short-term due to CURRENT protected_sections.
2026-09-23 14:02:35 +00:00
weichen
3e01f18756
merge: integrate final-artifact-vault into local_dev (authorized exception)
...
User authorized lifting CURRENT FAV whole-branch merge protection on
2026-09-23. Keep FAV_DEGRADED_READ/FAV_PUBLISHER_ENABLED default false.
Drop duplicate goose 00034 (local_dev already has 00036). Preserve
agentx workspace admin routes and pin-export wiring.
2026-09-23 13:57:08 +00:00
weichen
6032dbaa16
merge: integrate go-agentx runtime into local_dev candidate
...
Bring pinative/agentx workspace registry and A-B harness onto current
local_dev; renumber goose agentx registry 00062→00066 to avoid clash
with chat-summary/provenance migrations. Keep CURRENT/MATRIX as ours
for later docs apply; union module-boundaries agentx import tree.
Path literals use workspace constants for arch-check.
2026-09-23 13:25:32 +00:00
weichen
d5fc19e42c
merge: worktree closeout report and CURRENT done rows
2026-09-23 12:58:04 +00:00
weichen
1493676217
docs(ops): record worktree closeout batch report and CURRENT done rows
2026-09-23 12:57:38 +00:00
weichen
a690aab42d
merge: closeout cleanup cwd-hidden process fix
2026-09-23 12:55:00 +00:00
weichen
7cb7981deb
fix(ops): skip cwd-hidden OS helpers and non-worktree processes on cleanup
2026-09-23 12:54:45 +00:00
weichen
c0a0db3a70
merge: closeout remaining docs and salvage into local dev
2026-09-23 12:51:23 +00:00
weichen
312727d726
merge: worktree-closeout-batch salvage docs and gofmt
2026-09-23 12:50:23 +00:00
weichen
6485532d88
docs: import lock, policy, and governance artifacts for closeout
2026-09-23 12:50:22 +00:00
weichen
553f0ad61b
merge: feature/integrate-modular-contract-standard-2026-09-22 into closeout remaining candidate
2026-09-23 12:49:45 +00:00
weichen
15b388fc86
docs(ops): salvage task docs and mineru gofmt in closeout batch
2026-09-23 12:49:33 +00:00
weichen
e6ddfab9e8
merge: sync origin/dev into local dev (closeout batch)
...
Resolve conflicts: both CURRENT claim tables (slot preserved), local
multi-host coordination plan + origin phased companion, origin
module-boundaries, combined PG isolation with remote product tests.
FEATURE-MATRIX takes origin record_id layout; A-G done bump deferred
pending evidence row apply.
2026-09-23 12:45:30 +00:00
weichen
3f14d7fa75
docs: integrate coordination plan closeout
2026-09-23 03:45:27 +00:00
weichen
3a06150d01
docs: record coordination plan integration and verification
2026-09-23 03:45:27 +00:00
weichen
6a0d721f36
docs: integrate multi-host coordination research and plan
2026-09-23 03:44:27 +00:00
weichen
a542c21a42
docs: define multi-host agent coordination and recovery plan
2026-09-23 03:44:12 +00:00
weichen
a0fd52a627
docs: integrate learning workflow closeout
2026-09-23 03:02:40 +00:00
weichen
f1db9a6c78
docs: record learning workflow activation and verification
2026-09-23 03:02:31 +00:00
weichen
7bbd7a407f
docs: integrate issue tracking and development lessons
2026-09-23 03:01:37 +00:00
weichen
ccf515c3b1
docs: add issue tracking and development learning workflow
2026-09-23 03:00:51 +00:00
weichen
2fdb6e548e
docs: integrate systemic analysis policy closeout
2026-09-23 02:44:58 +00:00
weichen
bbcb3b3b17
docs: record systemic analysis policy activation
2026-09-23 02:44:57 +00:00
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
c45ed6ba52
docs: integrate system modular refactoring plan
2026-09-23 01:36:43 +00:00
weichen
a44804fd59
docs(architecture): add system remediation and refactoring plan
2026-09-23 01:36:29 +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 and Cursor
3df99cf509
merge: feature/dev-prod-ready-test-promotion-2026-09-22 (FullNone bd_intake)
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 19:20:13 +08:00
weichen and Cursor
c67c10acc5
test: use official bd_intake key in FullNone real-PI fixture
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 19:20:11 +08: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 and Cursor
8ae45a0ce0
merge: feature/dev-prod-ready-test-promotion-2026-09-22 (ABAC + gate fixtures)
...
Close project-context membership gap, register arch SSOT edges, and repair
CI PG fixtures so release short/vet/arch gates pass on schema 61.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 18:23:50 +08:00
weichen and Cursor
0ebcabf7df
fix(auth): tolerate concurrent demo-user seed unique conflicts
...
Parallel NewServer bootstrap raced with goose fixed-id user rows and
sequence drift, panicking the server package on wangzong insert. Treat
unique violations as success when the demo username exists (or retry once).
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 18:18:33 +08:00
weichen and Cursor
675b00e06d
test: align official bd_intake task key and scoped task-run fixtures
...
Official main.v2 uses bd_intake (not intake); stage gates stayed closed when
fixtures approved the wrong task key. Task-run finalizers also require a real
project_id for outbox event scope—seed scoped projects in PG fixtures.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 18:15:29 +08:00
weichen and Cursor
c767a99807
fix(authz): close project-context ABAC gap and repair CI PG fixtures
...
enforceChatProjectAccess before allowAnyStageAccess on GET /context/project
so activated projects are no longer readable by arbitrary authenticated users.
Align failing gate fixtures with official workflow keys, isolated TEST_DATABASE_URL,
unique project names (00057), duty membership, and in-memory bizdev-cli envs.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 18:12:26 +08:00
weichen and Cursor
3c2c7f9ccc
test+arch: unblock production gate (import SSOT + isolated test DSN)
...
arch-check --mode block failed on frozen dev (23 NEW import findings):
modules materialindex/mineru/workflowscope and edges shipped via their
own accepted tasks were never registered in module-boundaries.yaml.
Register the intentional allowlist edges (precedent 97b868a9 ); no new
exceptions are added.
7 PG tests fell back to a hardcoded dev DB (127.0.0.1:5433) when
TEST_DATABASE_URL/CONTEXT_DB_DSN were unset, contradicting the isolated
test-DB contract (BUG-08) and polluting dev on a bare 'go test -short'.
Change the fallback to skip when no isolated DB env is provided.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 18:04:02 +08:00
weichen
a3150dcb11
merge: feature/dev-prod-ready-test-promotion-2026-09-22 (GOPROXY build fix + task record)
2026-09-22 12:29:40 +08:00
weichen and Cursor
517b9646bf
fix(build): make Go GOPROXY a compose build arg for restricted networks
...
Default GOPROXY stays proxy.golang.org to preserve upstream behavior;
hosts that cannot reach it pass GO_PROXY (e.g. goproxy.cn) via the env
file. Wires app+events build args across dev/test/main compose.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 12:26:05 +08:00
weichen and Cursor
b885505d68
docs(ops): register dev prod-ready gate and test promotion task
...
macOS host exception recorded in task doc: agentctl lease path is
Linux-only (/proc); commits under this task use --no-verify with the
manual equivalent gates listed in the exception section.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 11:59:09 +08: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
127cfccccc
feat(agent): fall back to the container backend when pi-native fails
...
Dev starts on pi-native and keeps pi-agent available for a failed turn. Latency tuning stays deferred.
2026-09-21 15:29:33 +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
f3b1209207
docs(ops): point the agentx task at the gate commit
2026-09-21 15:16:02 +00:00
weichen
5d77e9cf46
docs(test): record the pi-native replacement gate
...
Keep the default backend on pi-agent because the live P95 comparison missed the 1.3x bar.
2026-09-21 15:15:39 +00:00
weichen
174e59e692
test(agentx): compare pi-native with the container backend
...
Record token usage and nearest-rank latency so the replacement gate matches the written bar.
2026-09-21 15:11:29 +00:00
weichen
2de4eda16d
feat(workspace): register workspaces and gate cleanup by receipts
...
Track workspace size and age, expose an admin list and cleanup route, and refuse TTL or quota deletion until a frozen manifest matches verified receipts.
2026-09-21 14:58:21 +00:00
weichen
fd1b676e28
feat(agentx): add the turn loop and JSONL transcripts
...
Persist each message as it happens and keep going after a tool failure, including steering and follow-up messages between turns.
2026-09-21 14:53:09 +00:00
weichen
738bbe1579
feat(agent): add pi-native backend and drop cursor-cli
...
Keep the container pi-agent backend as the default while the in-process runtime is available beside it, and remove the unused cursor bridge.
2026-09-21 14:52:53 +00:00
weichen
022b914c66
feat(agentx): jail workspace tools and audit hooks
...
Keep read, write, edit, list, and grep inside the workspace root, including symlink targets, and let hooks block or rewrite a call.
2026-09-21 14:49:13 +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 and Cursor
b49b95dc7a
feat(agentx): add OpenAI-compatible streaming LLM client
...
Parse MiniMax-style SSE deltas, including incremental tool calls, and encode transport failures on the event stream instead of panicking.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 14:43:32 +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 and Cursor
6dc5f1cfa6
docs(ops): claim go-agentx runtime worktree
...
Register the pi-native coexistence task against the explicit dev baseline so later commits stay on the feature branch.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 14:40:13 +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