Commit Graph

517 Commits

Author SHA1 Message Date
Codex c5d85d5409 docs: preserve parallel UniDesk updates 2026-06-04 10:21:52 +00:00
Codex 85b93d2cba docs: clarify HWLAB v0.2 closure validation 2026-06-04 10:18:38 +00:00
Codex 80be60ac56 docs: document v02 web trace closeout contract 2026-06-04 10:15:02 +00:00
Codex 58705e4fea docs: record mxcx recovery operation rules 2026-06-04 04:46:09 +00:00
Codex 3d44acfb15 fix: guide mxcx apply-patch stale context recovery 2026-06-04 03:24:03 +00:00
Codex b86bcb3d4d fix: strengthen apply-patch v2 mxcx hints 2026-06-03 14:36:53 +00:00
Codex 8dae177795 docs: add progress log distillation guidance 2026-06-03 14:15:53 +00:00
Codex e806218184 docs(g14): v0.2 cloud web button/JS sync rule from HWLAB #748
Capture the regression class behind #748 (orphan el.<removed-field>.addEventListener after a button is removed from index.html): Bun.build is transpile-only so web:check does not catch it, and the runtime crash only surfaces on init.

Adds the minimal closeout checks (grep dist + curl 19666 + control-plane status) and a one-liner orphan listener scan that authors can run while the PR is open.

Refs: pikasTech/HWLAB#748
2026-06-03 06:59:15 +00:00
Codex 3c9bcebef8 docs(cli): document owner/repo#number shorthand for issue write commands
Documents that gh issue comment create/delete, close, reopen, update,
edit, and board-row all now accept the owner/repo#number positional
shorthand that gh issue read/view and gh pr * already accept, completing
the shorthand parity across the gh subcommand.

The companion code change (scripts/src/gh.ts) was committed in the
previous commit; this doc update adds the long-term reference for the
new behavior and links it to the HWLAB #621 CLI acceptance friction
that motivated it.
2026-06-03 05:40:54 +00:00
Codex b7a74413b0 docs(g14): v0.2 worktree + PR workflow + recovery + verification gap
The HWLAB v0.2 #744 fix was originally committed directly to v0.2 instead
of going through the canonical feature branch + PR flow. This documents:

- the canonical v0.2 worktree + PR sequence (trans G14:/root/hwlab-v02
  worktree add, fix/issue<N>-* branch, UniDesk CLI gh pr create/merge,
  fixed repo git pull --ff-only)
- a bounded recovery procedure when a direct commit has already landed
  on v0.2 (single-commit case, --force-with-lease, autostash preservation,
  cherry-pick onto the existing worktree branch, re-merge through PR)
- the v0.2 CLI verification gap: no layout-browser smoke exists for
  19666/19667 (dev-cloud-workbench-layout-smoke.mjs is hard-coded to
  16666/16667), so closeout must combine web:check + web:build,
  control-plane status --lane v02, and direct curl/grep probes against
  19666/19667

Closes CLI friction observed during the #744 v0.2 fix process.
2026-06-03 05:40:00 +00:00
Codex faee528ed4 docs: standardize trans passthrough alias 2026-06-03 01:44:46 +00:00
Codex f445f2abd8 docs: document mxcx host codex operations 2026-06-03 01:39:28 +00:00
Codex 0386faa3f0 docs: require web-equivalent hwlab agent validation 2026-06-02 10:52:34 +00:00
Codex db3092ad29 feat: add HWLAB v02 secret bootstrap command 2026-06-02 10:22:52 +00:00
Codex 5e473189fc docs: tighten agentrun codex resume standard 2026-06-02 08:21:11 +00:00
Codex 0c28961f9a feat: add scoped ssh client passthrough 2026-06-02 07:39:21 +00:00
Codex 2a4f6d7791 fix: improve agentrun status visibility 2026-06-02 06:40:27 +00:00
Codex e3f1e726b9 docs: record CLI closeout friction 2026-06-02 06:33:34 +00:00
Codex 106348fe79 fix: align v02 target validation with rollout services 2026-06-02 05:19:10 +00:00
Codex 84f33ea606 docs: record async job CLI status friction 2026-06-02 05:00:10 +00:00
Codex 30089a120d docs: require CLI validation before HWLAB issue closure 2026-06-02 04:54:46 +00:00
Codex 9f8a10ac26 docs: record hwlab agentrun failure attribution 2026-06-02 04:44:01 +00:00
Codex b7fe55a33a docs: update agentrun thread ownership 2026-06-02 04:37:38 +00:00
Codex db8b1b64af feat: improve github issue lifecycle cli 2026-06-02 02:17:10 +00:00
Codex 8be605aac3 feat: report remote gc target shortfall 2026-06-02 00:26:28 +00:00
Codex bc679b1547 fix: bound remote gc stdout 2026-06-01 23:41:53 +00:00
Codex 6a66553af3 docs: clarify AgentRun HWLAB ownership boundary 2026-06-01 22:59:22 +00:00
Codex 9027a310d3 feat: add agentrun git mirror controls 2026-06-01 17:36:55 +00:00
Codex f00b946472 fix: improve hwlab v02 status targeting 2026-06-01 15:00:08 +00:00
Codex c06a491841 docs: 强化 AgentRun 文档直推规则 2026-06-01 14:55:18 +00:00
Codex 9a9cdb7fdc fix: add agentrun argo refresh command 2026-06-01 14:47:58 +00:00
Codex 2845db3365 fix: support k3s log selector 2026-06-01 14:42:42 +00:00
Codex 0cecdd9ed3 fix: warn on slow HWLAB v02 build taskruns 2026-06-01 14:27:52 +00:00
Codex 588f764340 docs: clarify observability boundary 2026-06-01 14:06:03 +00:00
Codex 2346c620b7 feat: support gh issue search 2026-06-01 13:40:56 +00:00
Codex 48f3f728e7 docs: record issue progress comment practice 2026-06-01 12:08:05 +00:00
Codex 8ed0e57156 docs(reference): CLI 摩擦改进(交互验证优先 + body-file 范式 + 时区取时细节 + #191 规避)
四处文档改动(2026-06-01 摩擦改进沉淀,不写测试脚本,改完用真实命令交互验证):

- cli.md: Todo Note 段补「复杂 JSON body 优先 --body-file 替代 --body-json」段(避免 shell escape 痛点,支持 stdin)
- secretary-reference.md: 扩「自取北京时间」段(主 server 本地 TZ='Asia/Shanghai' date 即可,跨节点用 ssh route)+ 加「CLI 改进用直接交互调用验证,不写测试脚本」原则段(关联 cli-friction-no-over-testing)+ 加「#191 P0 决策日记 --summary 被吞临时规避」段(摘要写进 body 第一段,等 backend-core 修复)

交互验证清单(2026-06-01 15:39):
- TZ='Asia/Shanghai' date = 2026-06-01 15:39:02 CST 
- microservice proxy todo-note /api/instances/<id> = 200 OK 
- addTodo via --body-file = 200 OK, probe id=todo_9arljoqk 
- deleteTodo via --body-file = 200 OK, probe removed 
2026-06-01 07:42:25 +00:00
Codex 794ae7c1e7 refactor(code-queue): drop implicit-fallback semantics for minimax m2.7
M2.7 and M3 are two parallel configs, not a primary/fallback pair.
Per user feedback, drop the language and any code that framed M2.7 as
a rollback target for M3.

- code-queue-supervision.md, microservices.md, windows-passthrough.md:
  remove 'default/fallback' labels; spell out that M2.7 and M3 are
  parallel, no auto-fallback, switching provider model is an explicit
  ops action.
- scripts/src/code-queue.ts: modelTiers entries for M3 and M2.7 share
  the same 'simple-low-risk' risk; rename
  minimaxM2FallbackCandidate -> minimaxM27Candidate so the dry-run
  command string no longer implies fallback semantics.
- scripts/code-queue-submit-routing-contract-test.ts: drop 'fallback'
  wording in assertions and the 'model registry fallback' check label.

Refs: #189
2026-06-01 07:05:02 +00:00
Codex 8d3197b423 docs(secretary): 每次正式工作前自取最新北京时间作为基准
新增 secretary-reference 原则:进入排程/回读 Todo Note/回写决策/安排时间块前必须自取北京时间作为基准,不能用对话缓存或用户口述时间。
- Why: 用户 2026-06-01 反馈休息后时间偏移(13:43 → 14:57),秘书用对话缓存时间排程会与用户实际位置错位
- How to apply: 取时优先 ssh <route> date 或 NTP 校对本地时间,排程首句明确告知用户当前基准时间
2026-06-01 06:58:31 +00:00
Codex 201a8c8af2 feat(code-queue): register minimax-m3 alongside minimax-m2.7
Add minimax-m3 as a sibling model on the same path as the existing
minimax-m2.7 support. M3 is the new PROD default; M2.7 remains available
as a one-line rollback target via MINIMAX_MODEL.

Changes:
- code-agent/common.ts: add minimaxM3Model constant, include in
  defaultCodeModels, normalize aliases (minimax-m3 / m3), route to
  opencode port, sibling entry in codeModelProviderSourceContract.
- code-agent/opencode.ts: add M3 branch in openCodeModelId, register
  both M2.7 and M3 in openCodeConfigContent, inject MINIMAX_M3_MODEL
  in local/remote env, M3 branch in missingOpenCodeCredentialMessage.
- index.ts + types.ts: add minimaxM3Model to RuntimeConfig, read
  MINIMAX_M3_MODEL env, propagate to remoteCodexEnvKeys.
- queue-api.ts: include minimaxM3Model in Pick for
  codeModelProviderSourceContract callers.
- scripts/src/code-queue.ts: add minimaxM3SubmitModel, normalize/port
  routing, default route recommendation now points to M3, M2.7 kept
  as minimaxM2FallbackCandidate.
- scripts/src/docker.ts: default UNIDESK_CODE_QUEUE_MINIMAX_M3_MODEL
  to MiniMax-M3.
- k8s yaml (D601 + G14): CODE_QUEUE_MODELS gains minimax-m3, three
  deployments each set MINIMAX_MODEL=MiniMax-M3 and
  MINIMAX_M3_MODEL=MiniMax-M3.
- docker-compose.d601.yml: same env defaults for local compose.
- docs/reference/{code-queue-supervision,microservices,
  windows-passthrough}.md: update model contracts to M3 default +
  M2.7 fallback.
- scripts/code-queue-submit-routing-contract-test.ts: low-risk
  recommendation now asserts minimax-m3; registry asserts both M3
  and M2.7 fallback in modelPorts/opencodeModels; provider source
  contract test passes minimaxM3Model.

Refs: #189
2026-06-01 06:51:28 +00:00
Codex 0b1c012ba5 Merge branch 'master' of github.com:pikasTech/unidesk 2026-06-01 06:34:55 +00:00
Codex 49cf814e74 docs(reference): 固化 Todo Note 写端点 + 秘书 CLI 摩擦调查方法论
三处文档改动:
- microservices.md「Todo Note On Main Server」补 actions 端点形态段、backend-only 真实语义、404 catch-all 误判陷阱
- cli.md「microservice proxy」段补 Todo Note 写操作 CLI 范式(toggleTodoCompleted / addTodo / undo / redo)
- secretary-reference.md 加「CLI 报错四步调查方法论」(读源码+容器实测+git history+复盘 issue)

沉淀 pikasTech/unidesk#188 复盘教训,关闭 #190 文档缺口。剩下 diary --summary 吞并的 P0 由 #9 跟踪。
2026-06-01 06:34:24 +00:00
Codex aa39b7582e feat: add AgentRun v0.1 control CLI 2026-06-01 06:12:35 +00:00
Codex 12d79a80bf docs(secretary): 本份是维护 Todo Note,Decision Center diary 用户独写
新增 secretary-reference 原则:秘书收到用户进展后维护 Todo Note,不写日记;diary 是用户私域,只读不写;Todo Note 写路径被阻塞时升级修复或明示用户,不能绕道 diary 替代。
- Why: 用户在 2026-06-01 明确说「你不要写道日记里面,日记是我自己写的,你应该负责的是维护 todo note」
- How to apply: 见 docs/reference/secretary-reference.md「日程流程」段新增段落
2026-06-01 06:05:51 +00:00
Codex 45e9df80c2 docs(secretary): 秘书做日程不开 TaskList,只走对话+决策日记
新增 secretary-reference 原则:用户日程只在对话里给时间块,配合决策日记承载;TaskList 留给 Claude Code 自己的工程任务(写代码/CI/PR),不开给用户看。
- Why: 用户在 2026-06-01 排程时明确说「取消你的 tasks,这没有意义」,TaskList 信息双源且过期即噪声
- How to apply: 见 docs/reference/secretary-reference.md「日程流程」段新增段落
2026-06-01 05:44:22 +00:00
Codex a38c87c1f2 docs(secretary): 时间分配由秘书主导,不向用户要选择
新增 secretary-reference 原则:用户给硬约束和方向,秘书切时间块、定先后、决定合并或拆开;反向询问只在冲突/硬约束缺失/外部承诺与身份判断时合法,且仍要先给推荐方案。
- Why: 用户在 2026-06-01 排程时明确要求秘书主动做时间分配,不要把多选时间块方案反问给用户挑
- How to apply: 见 docs/reference/secretary-reference.md「日程流程」段新增段落
2026-06-01 05:35:32 +00:00
Codex 06f5cbeb6c docs: align hwlab v02 gc poller notes 2026-06-01 00:13:14 +00:00
Codex 51cf794ae6 docs: sync v02 cicd source isolation 2026-05-31 23:37:22 +00:00
Codex e929f4e570 docs: record semantic progress brief guidance 2026-05-31 15:49:38 +00:00
Codex 1761f319e4 docs: clarify hwlab v02 cli rollout closeout 2026-05-31 14:08:42 +00:00