Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

Bailing Connect PHP7 SDK fixes dropped agent capability declarations

AI summary

The PHP7 SDK and Core runtime could omit explicit `readonly=false` and `risk=low` declarations while still producing valid OpenAPI JSON, causing receiving systems to apply different interpretations. Core v0.10.1 preserves explicitly supplied values, and the report says all 171 checks passed for both the v0.10.1 source and the package downloaded from GitHub Release. The issue was reproducible, but the report does not establish that it caused a production privilege or approval incident.

In-depth insight

For AI integration systems, a syntactically valid OpenAPI document can still lose business-defined capability semantics, so both declaration generation and runtime interpretation must preserve explicit values.

这次问题最容易被忽略的地方,是生成出来的 JSON 看上去没有任何异常。

没有语法错误,没有乱码,也没有把 false 写成字符串。接口路径、参数和说明都在,一份 OpenAPI 文档能够正常解析。

但业务方明确写下的两个意思,在生成接口声明时丢了:一个是“这个操作不是只读”,另一个是“这个操作被明确标记为低风险”。

它们不会让 JSON 解析器报错,却会让接收声明的系统作出不同解释。

这是百灵中枢业务接入 SDK 中一次已经修复的问题。本文用公开的 Core v0.10.0 和 v0.10.1 做对照,复现它如何发生、为什么只修一处不够,以及怎样确认真正交到使用者手里的包也包含修复。

一、先复现:写进去的值,为什么没有输出?

百灵中枢的 PHP7 接入 SDK 允许开发者通过 ToolDef 描述一项业务能力,再由 ToolSpec 生成带有 ACC 声明的 OpenAPI 文档。

#Bailing Connect PHP7 SDK#Bailing Connect Core#ToolDef#ToolSpec#Agent Capability Contract#OpenAPI

Original · 12 min readRead the original
Group chat

No comments yet. Start the conversation.