Skip to content
OpenNodeFlow.DocsOpen beta ↗
Agent guide ↗
Docs/Library & integrations

Author an integration

Design typed operations, retain exact identities and verify request behavior before publishing.

23 Oct 2026 · 3 min read
Markdown ↗

Create an integration when discovery confirms that an existing asset cannot express the required operation. First decide whether it is a pure transform, remote read, deliberate action, trigger, executor or reusable subflow. That decision determines its effects, timeout/retry policy, documentation and test fixtures.

Preserve the public contract#

Stable source keys identify authored assets across publication. Display names are labels; socket IDs are the keys used by code and wires. Preserve published identities and compatible socket IDs. Source @key references resolve to exact installed definition/type/executor versions through the publication registry; do not paste unresolved source references into a graph or set a dependency to an invented latest version.

Known provider records need structural JSON Schemas with meaningful fields, list items, nullability and finite bounds. Reuse canonical types when semantic domain and contract truly match. Identical shapes under different named IDs are not automatically interchangeable. Keep variable provider extensions in explicit JSON remainders instead of weakening the entire known record.

Separate transport from data shaping#

Build a small typed request from explicit inputs. Encode path segments and query parameters deliberately; reject embedded credentials and unsafe destination changes. Keep credential values in protected storage, resolved only during execution. Bound response time, bytes, pages and accumulated output. Declare whether an HTTP POST is a read query or an external action: method alone is not the effect model.

Represent partial lists, cursor state, asynchronous acceptance and per-item batch failures. Do not silently truncate a full provider page and issue a continuation that loses its omitted records. A write's error can mean uncertain completion; document reconciliation and prevent automatic retries unless the exact provider semantics justify them.

Functional codecs#

Provide working Encode/Decode helpers for reusable record/list types. Preserve unknown fields, omitted optionals, allowed nulls, empty strings, zero and false. Make remainder collision policy explicit. List codecs need defined empty-list and index bounds. Scalar socket types do not carry every object-member integer/range constraint, so validate the complete typed record at its boundary.

Direction is contractual. Some existing JSON codecs serialize on Encode; generated field codecs may parse text on Encode. Name and wire according to actual sockets. When extracting a nested schema with local references, retain supporting definitions and recursion meaning.

Document and test the operation#

Write help covering purpose, exact sockets, configuration/defaults, account setup, scopes, side effects, paging, partial results, errors and one safe synthetic example. Generated schema appendices support this explanation; they cannot infer the real business consequences of an action.

Use injected transports or bounded loopback services to check exact method/path/headers/body, successful extraction, 401/403/429, application-level failures inside HTTP 200, malformed/oversized responses, timeouts and continuation origin guards. Round-trip codecs with missing/null/falsy/unknown fields. A write fixture must prove its deliberate gate and retry rejection without contacting a real provider.

Review publication separately#

Build the final hardened catalog, not an intermediate family object. Validate against the application's actual definition/graph rules. Use fresh isolated data and ports for runtime rehearsal, preserving exact type/executor/subflow dependencies. Keep example automation disabled and provider branches paused.

Publication creates immutable versions and needs an explicit reviewed target, revision/version guards and a retained journal. Reconcile uncertain commits by exact readback. Never rewrite an old fingerprint or journal to force a replay, and do not upgrade saved workflow pins automatically. Editing a builder, building this reference or running a pure fixture does not publish anything.

See catalog scope, setup and pack behavior.

Source provenance

Reviewed against maintained source and topic documentation on 23 October 2026. This is a source snapshot; installed versions and provider access may differ.

  • ../OpenNodeFlow-Library/docs/AUTHORING.md
  • ../OpenNodeFlow-Library/docs/TESTING.md
  • ../OpenNodeFlow-Library/docs/PUBLISHING.md
  • ../OpenNodeFlow-Library/work/developer-packs-20261022/CONTRACT.md
Type to search the documentation.
↑ ↓ to navigate · Enter to openAgent map ↗