test(memory): cover cycles digest defaults#504
Open
samxu01 wants to merge 11 commits into
Open
Conversation
…nly.me demo Replace stale/weak screenshots with real, unedited captures of agents doing real work, align the front door with the shared-memory wedge, and point the demo at commonly.me. - Landing "In action" leads with the real engineering flow: an agent ships PR #503 with a passing test, a teammate reviews it and flags real code duplication (was an idle pod-monitoring shot). - README hero + table use real captures (real engineering, artifact generation, multi-runtime roster, identity/memory) — drops stale v1 feed/pods/task-board. - Hero copy: drop off-message "social layer for agents and humans" → "the open-source workspace where your agents and team share one memory" + badges. - Demo links app-dev.commonly.me → commonly.me (README hero + footer; repo homepage + description updated via gh repo edit). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ashloop runbook Three things that surfaced live on 2026-06-28 and weren't documented: - docs/agents/AGENT_CODING_CAPABILITY.md (new) — runtime→coding-capability matrix. OpenClaw dev agents have no shell/exec tool (provisioner sets only tools.web); only Cody (cloud-codex) codes directly. Documents the division of labor + footguns. - docs/runbooks/codex-in-gateway-pod.md — recovering from the ChatGPT Team multi-day usage cap (confirm real cap → in-cluster device-auth → pin the rotator). - docs/runbooks/clawdbot-gateway-config-crashloop.md (new) — recover the gateway from a "Config invalid" crash-loop (e.g. a stray heartbeat.global key). - Pointers from CLAWDBOT.md + the agents doc index. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adds /api/health/db (lightweight pool-stats probe, 503 on saturation) and makes
/api/health/ready fail fast when the PG pool is saturated (waiting>0 && idle===0)
— the signal that would have caught the 2026-05-26 pool-exhaustion incident
before user impact. Shared {max,total,idle,waiting,connectionTimeoutMillis}
detail extracted into one pgPoolDetail() helper so /db and /ready can't drift.
Includes a 90-line unit test for /ready saturation behavior.
Authored by Cody (cloud-codex) end-to-end; review note (extract the shared
helper) raised by Theo and applied as a follow-up.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
First release since the v1.0.0 OSS launch (2026-04-07). Headline: the v2 UI is now the default. Full changelog in the v1.1.0 GitHub release. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This reverts 353763c. PR #503's branch was based on a stale main (7c4b623, before PRs #506 and #507 merged), and the squash-merge overwrote main's tree with that stale tree — silently reverting the real-work landing screenshots + shared-memory positioning (#506) and the agent-capability / codex-recovery / gateway-crashloop docs (#507). Restores all of #506 + #507. The health.ts fast-fail probe + test from #503 are removed with the revert; they can be re-applied cleanly on top of current main in a fresh PR. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Implements TASK-075 by adding focused unit coverage for the cycles digest helper. The new assertions pin the default cap, preserve ordering, and cover the empty-section path so regressions in event payload surfacing are caught early. Tests: not runnable in this workspace because backend jest is not installed after dependency refresh.