Skip to content

♻️ refactor(agent-signal): S6 — migrate skillManagement to execAgent builtin agent#15443

Merged
arvinxx merged 1 commit into
canaryfrom
refactor/agent-signal-skill-management-execagent
Jun 4, 2026
Merged

♻️ refactor(agent-signal): S6 — migrate skillManagement to execAgent builtin agent#15443
arvinxx merged 1 commit into
canaryfrom
refactor/agent-signal-skill-management-execagent

Conversation

@arvinxx

@arvinxx arvinxx commented Jun 3, 2026

Copy link
Copy Markdown
Member

💻 Change Type

  • ♻️ refactor

🔗 Related Issue

Related to LOBE-9434. Follow-up to #15392 (S1–S4 execAgent migration, already merged).

🔀 Description of Change

S6 of the agent-signal execAgent migration. Moves the self-iteration skill-management action off its inline policy implementation onto an execAgent-dispatched builtin agent (slug skill-management), mirroring the S3/S4 memoryWriter + self-iteration pattern.

  • Add agentSignalSkillManagement serverRuntime (src/server/services/toolExecution/serverRuntimes/) and register it in its index.ts.
  • Add the builtin-tool-agent-signal skill-management manifest + systemRole, and wire the new tool surface through builtin-tools identifiers.ts + index.ts (discoverable:false, hidden:true) so the schema is generated.
  • Add the skill-management builtin agent in builtin-agents (slug registered in BUILTIN_AGENT_SLUGS / BUILTIN_AGENTS / SELF_ITERATION_AGENT_SLUGS).
  • Strip the ~3.5k-line inline skillManagement.ts policy down to the dispatch shim; project the completion-side receipt via buildSelfIterationReceipts and remove the sync projection from receiptService.

Net: 22 files changed, ~359 insertions, ~3544 deletions.

🧪 How to Test

  • Tested locally
  • Added/updated tests
  • No tests needed

skillManagement.test.ts and receiptService.test.ts pass. End-to-end self-iteration skill runs verified locally via lh agent-signal trigger (BDD skill-writer case in the cloud repo).

📝 Additional Information

Two registrations are required for a new self-iteration tool surface (serverRuntime + builtin-tools manifest); both are included here so the builtin agent uses the agent-signal-* tools rather than falling back to default tools.

🤖 Generated with Claude Code

…builtin agent

Move the self-iteration skill-management action off the inline policy
implementation onto an execAgent-dispatched builtin agent (slug
`skill-management`), mirroring the S3/S4 memoryWriter + self-iteration
migration. Adds the `agentSignalSkillManagement` serverRuntime, the
builtin-tool-agent-signal skill-management manifest/systemRole, and the
builtin-agents skill-management agent; strips the ~3.5k-line inline
skillManagement policy down to the dispatch shim.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lobehub Ready Ready Preview, Comment Jun 3, 2026 5:28pm

Request Review

@dosubot dosubot Bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Jun 3, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry @arvinxx, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@dosubot dosubot Bot added the feature:agent Assistant/Agent configuration and behavior label Jun 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: 75cc790798

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

marker,
prompt,
slug: BUILTIN_AGENT_SLUGS.skillManagement,
...(messageId ? { sourceMessageId: messageId } : {}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Anchor skill runs to the assistant message

When this action comes from the hydrated client.runtime.complete source, action.payload.messageId is the parent user message; the completed assistant message is encoded in action.source.sourceId as <assistantId>:completion:<parentId> (the memory planner extracts that for this exact thread-anchoring case). Passing the user message here means the new isolated skill-management thread, and the marker/receipt anchor built from the same value just above, attach to the wrong chat message or fail to show where users expect the post-turn skill update.

Useful? React with 👍 / 👎.

@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.06422% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.83%. Comparing base (d81e5e7) to head (75cc790).
⚠️ Report is 5 commits behind head on canary.

Additional details and impacted files
@@            Coverage Diff             @@
##           canary   #15443      +/-   ##
==========================================
- Coverage   70.88%   70.83%   -0.05%     
==========================================
  Files        3222     3223       +1     
  Lines      319610   318399    -1211     
  Branches    28126    33610    +5484     
==========================================
- Hits       226557   225550    -1007     
+ Misses      92877    92673     -204     
  Partials      176      176              
Flag Coverage Δ
app 61.46% <77.06%> (-0.13%) ⬇️
database 92.49% <ø> (ø)
packages/agent-runtime 80.48% <ø> (ø)
packages/builtin-tool-lobe-agent 18.52% <ø> (ø)
packages/context-engine 84.17% <ø> (ø)
packages/conversation-flow 91.29% <ø> (ø)
packages/file-loaders 87.89% <ø> (ø)
packages/memory-user-memory 74.99% <ø> (ø)
packages/model-bank 99.99% <ø> (ø)
packages/model-runtime 84.51% <ø> (ø)
packages/prompts 72.49% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/types 35.36% <ø> (ø)
packages/utils 88.77% <ø> (ø)
packages/web-crawler 88.08% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Store 68.44% <ø> (ø)
Services 54.58% <ø> (ø)
Server 71.75% <77.06%> (-0.14%) ⬇️
Libs 57.01% <ø> (ø)
Utils 81.44% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arvinxx arvinxx merged commit e8b914f into canary Jun 4, 2026
51 of 52 checks passed
@arvinxx arvinxx deleted the refactor/agent-signal-skill-management-execagent branch June 4, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature:agent Assistant/Agent configuration and behavior size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant