Skip to content

perf(tasks): observe workspace outside ledger write transactions - #203

Merged
tiammomo merged 1 commit into
mainfrom
tiammomo/tasks/short-ledger-transactions
Nov 2, 2026
Merged

tiammomo merged 1 commit into
mainfrom
tiammomo/tasks/short-ledger-transactions

Conversation

@tiammomo

@tiammomo tiammomo commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

关联 Issue

Closes #200

问题与改动

把交接上下文组装和源码观察移到 SQLite 写事务外,短事务内核对任务版本、绑定、base、策略和相关证据,再原子保存。独立写连接在预览/源码扫描期间可继续工作,并发更新仍被拒绝。

验证

python -W error::ResourceWarning -m unittest discover -s tests -v — 901 tests passed
ruff check .
ruff format --check .
REPOSTEWARD_BUILD_WEB=1 python -m hatchling build
python scripts/check_release.py --dist-dir dist

以上在非 root、禁网、无凭据的加固 verifier 内通过。原生 adopt 在签名提交上再次执行完整验证,submit 使用独立环境门禁和身份校验。

风险与兼容性

无数据库 schema 或公开工具契约变更。任务/账号/工作区绑定、精确源码与版本检查、幂等、取消、隔离验证和独立发布门禁保留。新增行为有对应的并发和失效回归检查。

自动化辅助

Codex 实现、审查完整差异并运行验证。仓库所有者在会话中明确授权优化、发布与合入远程 main;未声明独立 GitHub reviewer 批准。

Checklist

  • PR 只解决一个已讨论的 Issue,没有捆绑无关改动。
  • 我已检查完整 diff,且没有凭据、账号缓存、数据库、运行日志或本机路径。
  • 我已运行相关测试、完整测试、lint、格式检查和构建,或准确说明未运行项。
  • 新行为有回归测试;无法自动测试时已说明原因。
  • 文档、示例、JSON Schema 和迁移已与行为同步,或不适用。
  • 没有绕过人工提交确认、GitHub 身份校验或隔离验证边界。

Signed-off-by: tiammomo <26957354+tiammomo@users.noreply.github.com>
@tiammomo
tiammomo marked this pull request as ready for review November 2, 2026 16:53
@tiammomo
tiammomo merged commit 04fa95f into main Nov 2, 2026
1 check passed
@tiammomo
tiammomo deleted the tiammomo/tasks/short-ledger-transactions branch November 2, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf(tasks): keep workspace observation outside ledger write transactions

1 participant