Skip to content

perf(activity-groups): derive groups without model control calls - #617

Merged
ewen-poch merged 1 commit into
mainfrom
perf/host-derived-activity-groups
Aug 2, 2026
Merged

perf(activity-groups): derive groups without model control calls#617
ewen-poch merged 1 commit into
mainfrom
perf/host-derived-activity-groups

Conversation

@ewen-poch

Copy link
Copy Markdown
Member

Problem

begin_activity_group is a model-controlled MCP call used only to name and delimit activity groups. It adds a tool schema, system/turn instructions, permission traffic, and an additional inference step even though the host already groups real tool activity and can provide fallback titles.

Proposed change

  • Remove the Activity Group MCP server, process entry point, runtime registration, and Codex bridge tool.
  • Remove its system prompt and per-turn reminder from every ACP framework.
  • Remove the deleted tool schema from static context estimates.
  • Keep existing host-derived grouping, fallback titles, persisted event parsing, and historical declared-title rendering.

Scope and non-goals

This removes an internal control-call component; it does not add a new architecture or state machine. There is no data-model or data-relationship migration. Existing tool activity remains grouped in the UI, but the synthetic model declaration/permission step disappears. Asynchronous semantic title generation, Notebook output reduction, skill injection, and connector-context optimization remain out of scope.

Acceptance criteria and validation

All final checks ran after the last material edit:

  • Activity tool/context injection is absent across ACP and Settings paths -> npm test -- src/main/acp/context-usage-static-context.test.ts src/main/acp/runtime.test.ts src/main/settings/service.test.ts -> 527/527 passed.
  • Node and renderer contracts remain valid -> npm run typecheck -> passed.
  • Repository lint remains clean -> npm run lint -> 0 errors, 19 baseline warnings.
  • Repository regression suite remains green -> npm test -> 669 files and 9,752 tests passed; 15 files and 184 tests skipped.

Two independent reviews found no standards or specification findings. Uncovered risk: token reduction is inferred from removing the extra model-controlled tool step and static context, not measured by an automated provider-level token benchmark.

Review focus

Please verify that every active producer of begin_activity_group is removed while historical activity-group events and host fallback rendering remain compatible.

Remove the declaration-only MCP, prompt guidance, context estimate, and bridge schema so agents act on real tools immediately. Keep persisted activity-group parsing and renderer fallback grouping for historical sessions and host-derived UI titles.
@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

Codex Review

Verdict: mergeable

No actionable findings.

Summary: Static inspection found no concrete merge-blocking defect in the changed code.

@github-actions github-actions Bot added the ready-to-merge All completed AI reviewers found this pull request mergeable. label Aug 2, 2026
@ewen-poch
ewen-poch merged commit 87fdd59 into main Aug 2, 2026
23 checks passed
@ewen-poch
ewen-poch deleted the perf/host-derived-activity-groups branch August 2, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge All completed AI reviewers found this pull request mergeable.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant