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:
gabby committed 2026-10-13 18:13:24 +00:00
1 parent f379c0a746
commit 0b02a3feac
10 files changed
+122 -59

No files matched your search

+6 -2
View File
@@ -1514,8 +1514,12 @@ CLI, unit tests (24) + integration tests (2).
### bridges (third-party API services)
- **What they are.** A bridge service is a standalone process that stands up a
simple, secure localhost HTTP layer in front of one third-party system so a
codegen-authored skill body never speaks that system's native protocol.
simple, secure localhost HTTP layer in front of one third-party system,
warranted when the system needs state (especially auth state), a native or
heavy protocol, or one sanitized surface; a system with a plain HTTP API needs
no bridge — its skill calls the API directly. When a bridge fronts a service, a
codegen-authored skill body calls the bridge and never speaks that system's
native protocol.
SimpleX is the first; adding a service means adding a class to
`bridges/registry.py` `CATALOG`, a `pack.json` whose `config` schema carries
its block (see `semif_agent/packs.py`; a shared, skill-less bridge like the