Skip to content

feat: automate foreground tasks, receipts and project startup - #10

Merged
QIU-Guanzong merged 2 commits into
mainfrom
codex/foreground-worker-automation
Oct 13, 2026
Merged

QIU-Guanzong merged 2 commits into
mainfrom
codex/foreground-worker-automation

Conversation

@QIU-Guanzong

@QIU-Guanzong QIU-Guanzong commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Repeatedly starting a window, installing project files, checking messages and invoking one task adds friction to multi-window collaboration. Add explicit start --apply-setup and a bounded foreground worker watch over the existing setup/worker contracts.

Startup previews installation and registration together; conflicts prevent registration, custom instructions remain preserved and default behavior stays unchanged. The watch processes ready tasks and explicit delivered-message receipts, optionally waits for peer changes, emits compact progress and excludes duplicate watchers per worktree. Failures, decisions and guard problems stop it without command retries, lease takeover or automatic commits/merges. Supplied harness argv remains trusted; this does not launch client GUIs or select models.

Native verification now checks that the CLI validated the generated isolated profile before discovery. An explicit --native-executable supports the intended local CLI without changing a managed-service launcher. This addresses the observed launcher proxy ignoring local profile variables.

Validation: 25 focused automation checks and the full 420-test source suite passed, including real worktree dependency/handoff/receipt, peer lock contention, child Manager access, failure/timeout/scope retention and POSIX SIGINT. A three-worktree installed-process smoke completed four tasks and three explicit receipts with declared Codex/GLM/DeepSeek routing labels; no models invoked. Recorded a6→a7 Skill upgrade preserved custom rules. Native local OpenClaw 2026.6.8 profile binding/discovery passed; the managed 2026.10.2 launcher is separately scoped. Skill/package bytes, configuration, manifests and Markdown links checked. Final-head remote CI passed on Windows/Linux Python 3.10/3.13; the rebuilt 420-test installed-wheel suite passed with the same final content fingerprint. No model calls or WorkBuddy GUI tests.

Includes first-use guide, bundled setup Skill, source-only research decisions, and 0.3.0a7/plugin alpha.7 release metadata. No schema/event/protocol/workflow/dependency/global configuration changes. Package publication/readback follows merge and CI.

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

CoProgrammer 分支消化报告

分支消化报告

生成时间: 2026-10-13T11:02:03+00:00

Base: base/main
Head: HEAD

分支意图

TODO: 说明这个分支要解决的问题。

核心贡献

TODO: 列出值得保留的思路、实验结果和实现决策。

变更文件

  • M .claude-plugin/marketplace.json
  • M README.md
  • M README.zh-CN.md
  • A docs/FOREGROUND_WORKERS.md
  • A docs/upgrade-v0.3-a7/branch-digest.md
  • A docs/upgrade-v0.3-a7/change-manifest.json
  • A docs/upgrade-v0.3-a7/research.md
  • A docs/upgrade-v0.3-a7/task-brief.md
  • A docs/upgrade-v0.3-a7/validation.md
  • M plugins/coprogrammer/.claude-plugin/plugin.json
  • M plugins/coprogrammer/.codex-plugin/plugin.json
  • M plugins/coprogrammer/plugin.json
  • M plugins/coprogrammer/skills/coprogrammer-project-setup/SKILL.md
  • M pyproject.toml
  • M src/coprogrammer/__init__.py
  • M src/coprogrammer/assets/skills/coprogrammer-project-setup/SKILL.md
  • M src/coprogrammer/cli.py
  • M src/coprogrammer/onboarding.py
  • M src/coprogrammer/runtime_verify.py
  • A src/coprogrammer/watcher.py
  • M src/coprogrammer/worker_cli.py
  • A tests/test_foreground_automation.py
  • M tests/test_runner.py

提交摘要

  • 73c966f fix: keep foreground waits stable under peer lock contention
  • 046a905 feat: automate foreground task and message processing

契约与架构信号

  • 构建/依赖
    • pyproject.toml

风险等级

medium

受保护路径命中

  • pyproject.toml matches pyproject.toml [medium] (package and entrypoint configuration; 需要 owner review)
  • src/coprogrammer/cli.py matches src/coprogrammer/cli.py [medium] (CLI behavior affects PR digest generation)

噪声 / 非必要变更

TODO: 标记格式化扰动、大范围重写、临时调试、生成物或无关重构。

融合计划

TODO: 说明如何基于最新 main 重建最小安全补丁。

需要验证

  • 格式化
  • Lint 检查
  • 类型检查
  • 单元测试
  • 集成测试
  • 契约测试
  • 受保护区域 owner review

需要人工判断

TODO: 列出不应交给自治 agent 决定的问题。

由 CoProgrammer 生成。

@QIU-Guanzong
QIU-Guanzong marked this pull request as ready for review October 13, 2026 11:01
@QIU-Guanzong
QIU-Guanzong merged commit d9e5508 into main Oct 13, 2026
6 checks passed
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.

2 participants