Skip to content

feat(tower): import artifact woker - #4427

Merged
sailist merged 9 commits into
mainfrom
add-artifact-worker
Nov 9, 2026
Merged

sailist merged 9 commits into
mainfrom
add-artifact-worker

Conversation

@tpoisonooo

@tpoisonooo tpoisonooo commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Requirement or Bug

  • major: 不再为 tower 保留 main 删除的字段,primary 彻底退役
  • 引入 artifacts worker,特点是“业务语义上是 read-only”,实际发生了写操作。 survey worker 是文件 read-only
    • 实用意义:训练期间想渲染中间结果,每次都因为 artifacts 有新增而 review,没必要
  • 当 tower worker 很多(500 个)时,LLM 执行 TowerStatus 结果几千行,改成默认末尾 20 个,允许 LLM 配查询参数。
    • 人类执行TowerStatus仍然是全量结果,这只是 for LLM

Bug Reproduction Steps

Root Cause

Code Changes

Behavior Changes and Affected Users

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue (external PRs: issue must have a maintainer's /approve).
  • I have added tests that prove my feature works.
  • The behavior-change table above is complete, and every removed behavior or flipped default is named in the changeset and either has an escape hatch or was explicitly approved by a maintainer in this PR.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ad555eb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@moonshot-ai/kimi-code Major
@moonshot-ai/kimi-code-sdk Major
kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T11:21:43.667194Z ad555eb New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@ad555eb
npx https://pkg.pr.new/@moonshot-ai/kimi-code@ad555eb

commit: ad555eb

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fa3927d454

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@tpoisonooo tpoisonooo changed the title feat(tower): limit TowerStatus max entries WIP: feat(tower): limit TowerStatus max entries Oct 29, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a77eceb603

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9b2f71d927

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@tpoisonooo tpoisonooo changed the title WIP: feat(tower): limit TowerStatus max entries feat(tower): import artifact woker Nov 3, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b5c63527c5

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4cd6a26189

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

konghuanjun added 5 commits November 6, 2026 12:03
… reservation

Bind artifact human acceptance to the TowerComplete tip: a generic mission completion no longer records a completion tip, and branch movement requires a fresh TowerComplete. Show mission kind in status and mission views.

Stop reserving primary in the subagent model pool: it is now an ordinary [secondary_model] alias, and the SDK no longer exports PRIMARY_SUBAGENT_MODEL_CHOICE.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b5db1f6916

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .changeset/agent-resume-model.md Resolved
}

const managementEnd = waitForSocketEnd(management);
const earlyHttpFrames: [RawData, boolean][] = [];

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

动 remote control 是修 CI bug

…tooling

Move the disabled-thinking resume fallback into the subagent config helpers and replace the tower profile-name predicate with a pinnedPermissionMode flag declared by the profile itself.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b7d27a2c2c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

konghuanjun added 3 commits November 6, 2026 18:39
…tower change

Move resume-time model rebinding, the Thinking-off fallback, and resume serialization to a separate change so this work stays focused on artifact missions and the primary-alias retirement.
Read NUL-delimited diff paths, revalidate the artifact diff in the completion commit, preserve builtin permission pinning across profile overrides, and refuse artifact acceptance from auto or noninteractive runs.
…ower change

Restore the pre-existing tower predicate and leave sessionSwarmService, the session profile catalog, and their tests untouched by this PR.
@tpoisonooo tpoisonooo changed the title feat(tower): import artifact woker WIP feat(tower): import artifact woker Nov 9, 2026
@tpoisonooo tpoisonooo changed the title WIP feat(tower): import artifact woker feat(tower): import artifact woker Nov 9, 2026
@sailist
sailist merged commit 1c259c8 into main Nov 9, 2026
17 of 18 checks passed
@sailist
sailist deleted the add-artifact-worker branch November 9, 2026 11:18
7723qqq pushed a commit to 7723qqq/kimi-code that referenced this pull request Nov 15, 2026
…obes

B1, B7, B9, B10 and B12 have no open rows; their executable probes pass (B9/B10 carry manual probes only, so verify reports no executable probe), and each batch is marked done. B3 stays open: its MoonshotAI#4427 probe targets test/features/tower/store.test.ts, which bunfig excludes from the default suite, so the probe cannot run without the heavy path override. The MoonshotAI#4663 probe followed applyConversationRecord, which the live feed redesign removed and this branch now deletes; it points at the feed's applyMessage fold instead. The MoonshotAI#4514 probe was malformed (absent: needs <pattern>@<path>) and now checks that package.json no longer lists the removed app.
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