Merged
Conversation
samxu01
pushed a commit
that referenced
this pull request
Feb 2, 2026
…to-frontend Add frontend utility tests
samxu01
added a commit
that referenced
this pull request
Feb 27, 2026
- agent-runtime skill: add debug checklist item #5 and anti-pattern section for agents that rewrite their workspace SKILL.md/HEARTBEAT.md with invented tool names (commonly_read_context, commonly_get_summaries, etc.) - content-curator skill: add prominent warning that no commonly_* tool shortcuts exist; update last_updated date Root cause from x-curator incident (2026-02-25): agent self-"fixed" its HEARTBEAT.md and skills/commonly/SKILL.md by replacing real HTTP endpoints with non-existent tool names, causing silent failures and "no activity" narration. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
samxu01
pushed a commit
that referenced
this pull request
Apr 3, 2026
…to-frontend Add frontend utility tests
samxu01
pushed a commit
that referenced
this pull request
Apr 3, 2026
- agent-runtime skill: add debug checklist item #5 and anti-pattern section for agents that rewrite their workspace SKILL.md/HEARTBEAT.md with invented tool names (commonly_read_context, commonly_get_summaries, etc.) - content-curator skill: add prominent warning that no commonly_* tool shortcuts exist; update last_updated date Root cause from x-curator incident (2026-02-25): agent self-"fixed" its HEARTBEAT.md and skills/commonly/SKILL.md by replacing real HTTP endpoints with non-existent tool names, causing silent failures and "no activity" narration. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
6 tasks
MubaiHua
pushed a commit
that referenced
this pull request
Apr 20, 2026
…to-frontend Add frontend utility tests
MubaiHua
pushed a commit
that referenced
this pull request
Apr 20, 2026
- agent-runtime skill: add debug checklist item #5 and anti-pattern section for agents that rewrite their workspace SKILL.md/HEARTBEAT.md with invented tool names (commonly_read_context, commonly_get_summaries, etc.) - content-curator skill: add prominent warning that no commonly_* tool shortcuts exist; update last_updated date Root cause from x-curator incident (2026-02-25): agent self-"fixed" its HEARTBEAT.md and skills/commonly/SKILL.md by replacing real HTTP endpoints with non-existent tool names, causing silent failures and "no activity" narration. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This was referenced Apr 24, 2026
lilyshen0722
added a commit
that referenced
this pull request
Apr 27, 2026
…242) The CAP HTTP surface (ADR-004) is the kernel; today every driver re-derives its own in-process tool surface on top. OpenClaw agents go through a hand-rolled extension at `_external/clawdbot/extensions/commonly/`; the local-CLI wrapper has MCP plumbing but no Commonly MCP server to point at. Adding a cross-driver tool (e.g. `commonly_dm_agent` for the Task #5 nova→sam-local-codex DM cutover) requires a fork PR + submodule bump on the OpenClaw side and gives the CLI-wrapper side nothing. ADR-010 ships `@commonly/mcp` — a stdio MCP server that wraps the kernel as standard MCP tools. Any MCP-capable runtime (codex, Claude Code, OpenClaw if it speaks MCP) loads one config entry and gets the standard `commonly_*` surface. Phase 1: ship the server, refactor the existing `POST /room` to dual-auth (the established `tasksApi.ts:34-36` pattern), wire sam-local-codex. Phase 2: OpenClaw migration, gated on openclaw-MCP support investigation. Phase 3: Task #5 cutover, mechanical once Phase 1 lands. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
lilyshen0722
added a commit
that referenced
this pull request
Apr 27, 2026
ADR-010 Phase 1: ship `@commonly/mcp` and refactor `POST /api/agents/runtime/room` from human-auth-only to dual-auth so agents can open agent↔agent 1:1 rooms via the new `commonly_dm_agent` MCP tool. ## What ships - **`commonly-mcp/`** — new top-level package (`@commonly/mcp@0.1.0`). Stdio MCP server wrapping CAP (`/api/agents/runtime/*` per ADR-004) plus the dual-auth task surface (`/api/v1/tasks/*`) as 14 standard MCP tools matching the openclaw extension's `commonly_*` naming convention. Single-tenant per process, reads `COMMONLY_API_URL` and `COMMONLY_AGENT_TOKEN` from env at startup, fails fast if either is missing. 28 unit tests. - **Backend `POST /room` dual-auth** — refactored to dispatch via the established `tasksApi.ts:34-36` pattern (`cm_agent_*` prefix → agent path, else → human path). Agent path resolves caller via `req.agentUser` (with installation-token fallback), refuses self-DM, calls existing `DMService.getOrCreateAgentRoom`. Human path unchanged below the new branch. 8 integration tests covering both paths + 1:1 invariant + symmetry. Rate-limited via `phase4RateLimit` (120/60s). - **CI step for commonly-mcp tests** in `.github/workflows/tests.yml`. - **`docs/agents/COMMONLY_MCP.md`** — install + env-var contract + tool reference, copyable into a host runtime's `mcp_servers` config. ## Out of scope - Phase 2 (OpenClaw migration) — separate PR after openclaw-MCP investigation. - Phase 3 (Task #5 nova HEARTBEAT cutover) — mechanical once Phase 1 lands. - Live smoke against api-dev — runnable post-deploy via `commonly-mcp/__tests__/smoke.live.mjs` (excluded from `npm test`). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
6 tasks
samxu01
added a commit
that referenced
this pull request
Apr 28, 2026
…local-codex (#247) Task #5 of ADR-005 Stage 3 / ADR-010 Phase 3. Nova's heartbeat retires acpx_run as the codex implementation path and replaces it with DM-based delegation to sam-local-codex. Heartbeat is a separate model invocation per tick — nova posts a self- contained task spec into her 1:1 agent-room with sam (podId hardcoded as SamCodexDmPodId, pre-created via the dual-auth /room endpoint shipped in PR #243), writes ## PendingDelegation to memory, and reads sam's reply on the next tick. Five-branch decision tree (A: reply received, B: still waiting, C: 90-min timeout → block, D: fresh task → delegate, E: idle). Includes regression test asserting acpx_run is only in negative-instruction lines, PendingDelegation + SamCodexDmPodId present, all five Branch labels. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing
npm run lint:frontendCI=true npm test -- --runTestsByPath src/utils/avatarUtils.test.js src/utils/refreshUtils.test.js src/utils/styleUtils.test.js