spec: skills may call a plain HTTP API directly; bridges are opt-in
Reframe bridges as a deliberate choice rather than the mandatory path to any third-party system. A skill body may call a service's own HTTP API directly with a stdlib transport; a bridge is warranted only when a simple, repeatable skill file would be inconsistent, inconvenient, or unsafe — state (especially auth state), sanitized connectivity, or a native/heavy protocol. When a bridge fronts a service, the body calls the bridge and must never reach around it. Updates CODEGEN.md, PACKGEN.md, TESTGEN.md, README.md, AGENTS.md, the bridges/__init__.py docstring, the codegen BODY_DIRECTIVES + describe_ bridges() prompt strings, and the tests pinning their wording.
This commit is contained in:
1 parent
f379c0a746
commit
0b02a3feac
10 files changed
+122
-59
No files matched your search
@@ -1715,7 +1715,8 @@ def test_skill_contract_documents_bridge_pattern_only():
|
||||
text = read_skill_contract()
|
||||
# The generic pattern lives in CODEGEN.md; the bridge specifics do not.
|
||||
assert "describe_bridges()" in text
|
||||
assert "never speak a service's native protocol" in text
|
||||
assert "plain HTTP API" in text
|
||||
assert "reach around it to the service's native protocol" in text
|
||||
assert "simplex_bridge_url" not in text
|
||||
assert "/inbox/next" not in text
|
||||
assert "X-Semif-Token" not in text
|
||||
@@ -1723,7 +1724,8 @@ def test_skill_contract_documents_bridge_pattern_only():
|
||||
|
||||
def test_body_directives_expose_bridge_services():
|
||||
assert "bridge services" in BODY_DIRECTIVES
|
||||
assert "never speak the service's native protocol" in BODY_DIRECTIVES
|
||||
assert "plain HTTP API" in BODY_DIRECTIVES
|
||||
assert "rather than reaching around it" in BODY_DIRECTIVES
|
||||
|
||||
|
||||
def test_body_prompts_require_real_action_and_integration():
|
||||
|
||||
Reference in new issue
Block a user