Skip to content

refactor(syntropy): merge client.ts + kg-client.ts into shared callMcpTool (oc-hygiene #5) - #29

Merged
supmo668 merged 2 commits into
mainfrom
oc-hygiene-5-mcp-client-land
Jun 21, 2026
Merged

supmo668 merged 2 commits into
mainfrom
oc-hygiene-5-mcp-client-land

Conversation

@supmo668

Copy link
Copy Markdown

Release-prep hygiene #5 of 8. Merges the two near-identical MCP-over-HTTP clients into callMcpTool(..., {label, toolErrorLabel?}); callSyntropyTool/callKgTool are thin wrappers; McpToolResult + Syntropy/KgToolResult aliases → zero importer changes. Behavior-preserving (label params reproduce exact original error strings); 15 client tests unchanged + sealed 38/38 unchanged + lint/format/tsgo clean. Re-anchored onto latest main. QGR 39d33f1. CTO code-reviewed + receipt-verified.

Matthew M.Y. Mo and others added 2 commits June 21, 2026 02:18
… into shared callMcpTool (oc-hygiene #5)

client.ts and kg-client.ts were near-byte-identical MCP-over-HTTP transports
differing only in error-message labels. Extract callMcpTool(baseUrl, token,
tool, args, { label, toolErrorLabel? }); callSyntropyTool + callKgTool become
thin wrappers. McpToolResult is the type; SyntropyToolResult/KgToolResult are
aliases — importers (tools.ts, kg-tools.ts, profile-context.ts, index.ts)
unchanged.

Behavior-preserving: label 'Syntropy'+toolErrorLabel 'MCP' / 'kg-mcp' reproduce
the exact original error strings. client.test.ts + kg-client.test.ts (15)
unchanged; sealed 38/38.

Generated-With: Claude Code
Co-Authored-By: openclaw <[email protected]>
Co-Authored-By: Claude <[email protected]>
@supmo668
supmo668 merged commit 0cb95b1 into main Jun 21, 2026
@coderabbitai

coderabbitai Bot commented Jun 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@supmo668, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 40 minutes and 5 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 34178fc2-8c9d-45f8-947e-da1434c3908e

📥 Commits

Reviewing files that changed from the base of the PR and between 20c875c and 26a47b2.

📒 Files selected for processing (2)
  • extensions/syntropy/src/client.ts
  • extensions/syntropy/src/kg-client.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch oc-hygiene-5-mcp-client-land

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown

⚠️ Formal models conformance drift detected

The formal models extracted constants (generated/*) do not match this openclaw PR.

This check is informational (not blocking merges yet).
See the formal-models-conformance-drift artifact for the diff.

If this change is intentional, follow up by updating the formal models repo or regenerating the extracted artifacts there.

supmo668 added a commit that referenced this pull request Jul 11, 2026
…ssing-app-key, issue #29, devex openclaw#3116-B)

Config-only workflow-gating: add a gate job surfacing GH_APP_PRIVATE_KEY presence as an output (secrets unavailable in if:, valid in step env) + gate the 3 App-token jobs (label/backfill-pr-labels/label-issues) via needs. Absent key => labeler jobs SKIP clean/green with a ::notice:: instead of failing red on every PR (which masked real CI failures); auto-labeling resumes when the .pem lands. Additive (+29/-1), YAML valid, no gate-strictness change. Corrects the non-working 'if: secrets.X != ""' pattern. CTO diff-verified; proportionate gating (no 4-reviewer QG for a workflow-gating change). Path-B SSH. Permanent fix (provision App .pem) tracked with principal via devex #29.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
supmo668 added a commit that referenced this pull request Jul 12, 2026
…sponse-stale-app-key, #29)

Closes #29 — the labeler/auto-response/stale community-management workflows go from the phantom App 2729701 to the real org App syntropy-community-bot (app-id 4276364). Two commits: (1) guard-bridge — mirror the labeler gate-guard onto auto-response + stale (absent GH_APP_PRIVATE_KEY => skip-clean, not red); (2) activation — app-id 2729701->4276364 (zero 2729701 remains), + generous exempt-label sets, + days-before-*-stale=90d (ruling-3 atomic: activation + internal-work-protection inseparable, so stale can't auto-close blocked internal AIADLC items). Config-only workflow diff, CTO-verified. Path-B SSH (workflow-scope). Follow-down: 90d->normal after the internal-coordination-privacy (ruling-4) workstream separates internal from public.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@supmo668
supmo668 deleted the oc-hygiene-5-mcp-client-land branch October 17, 2026 17:36
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.

1 participant