You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "me2seeks (via GitHub)" <gi...@apache.org> on 2026/08/27 03:10:13 UTC
[PR] fix(core): tolerate legacy ShellRun visibility for safe upgrade [maka]
me2seeks opened a new pull request, #3965:
URL: https://github.com/apache/maka/pull/3965
### 动机
fa1c2cf36 为 ShellRunRecord 增加 visibility?: 'model'|'user',随后在 HEAD 移除但未提供迁移或容错。该窗口期写入的工作区会在 core_shell_runs.record_json 中留下顶层 visibility(本次用户库中 6 条,含 8849e999-b167-4239-bf1d-912aeec07f9c),normalizeShellRunRecord (packages/core/src/shell-run.ts:345) 以 hasOnlyKeys 严格校验失败,抛 Invalid ShellRun record ... malformed fields,经 candidate-entry.ts:71 归为 internal_startup_failure (70),host 永远 recovering,诊断仅见 INTERNAL_STARTUP_FAILURE。
### 修复
在 normalizeShellRunRecord 入口剥离 legacy visibility(先校验 model|user,非法仍拒绝),后续严格校验与 canonicalShellRunRecord 均基于剥离后对象,旧库可恢复且字段在下次写入时自然丢弃。已在 1.1G 现库(5143 runs)及合成用例验证。
### 验证
- 合成:visibility=user/model 可读且被剥除,非法值仍拒绝
- 现库:json_extract(visibility) IS NOT NULL 6→0 后 host ready
- npm --workspace @maka/core run build && npm run build 通过
### 风险
仅放宽读取,白名单外其他未知字段仍 fail-closed。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(core): tolerate legacy ShellRun visibility for safe upgrade [maka]
Posted by "me2seeks (via GitHub)" <gi...@apache.org>.
me2seeks commented on PR #3965:
URL: https://github.com/apache/maka/pull/3965#issuecomment-5433993220
关闭:确认 visibility 仅为本地实验分支脏数据,最终 main 未发该字段,本地 DB 已手术清理,无需兼容 PR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(core): tolerate legacy ShellRun visibility for safe upgrade [maka]
Posted by "me2seeks (via GitHub)" <gi...@apache.org>.
me2seeks closed pull request #3965: fix(core): tolerate legacy ShellRun visibility for safe upgrade
URL: https://github.com/apache/maka/pull/3965
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org