Repository navigation
Description
Part of #5272, split off while working on it (task TALE-365): one connector per change.
Status quo. Knowledge (configs/platform/system/connectors/knowledge/connector.yml) ships no scenarios, so knowledge is not on SCENARIO_CONNECTORS in services/platform/lib/shared/schemas/shipped-connectors.test.ts. Its actions:
- native, in
services/platform/lib/connectors/natives/platform-knowledge.ts: readssearch.
Asked. Give every action its scenarios, and add knowledge to SCENARIO_CONNECTORS:
- Each read ships at least
success,emptyanderror, and each writesuccess,refusalandduplicate. - Each error scenario raises what the action really raises: the same message, and the HTTP
statusonly where that error carries one. - Prove each scenario of an action against its native implementation: given what its services answer in that case, the action returns the scenario's output or throws its error.
- Use synthetic data only: the repository is public.
- The proofs pin the scenario names, so a renamed or removed scenario fails the catalog test.
Builds on #5272's first part, the Jev connector (task TALE-365, branch feat/jev-connector-scenarios). It turns the Slack-only proof table into SCENARIO_PROOFS for every listed connector: a proof answers each request by <METHOD> <url> with the response the live host builds (toConnectorResponse), and hands the body the credential's secrets as a live call does. Start from feature-train once that change is on it.
Native actions have no live body. Their failures are the ConnectorErrors the implementation throws, each with a code of its own, while a scenario's error is a message and an optional status that the run classifies by that status. If no native connector is on SCENARIO_CONNECTORS when this change starts, it decides how the catalog test proves a native action's scenarios and how a native failure maps onto a scenario's error, and docs/{en,de,fr}/develop/connectors.md#scenarios says so: today it describes only the proof against a live body.
Done means: knowledge is on SCENARIO_CONNECTORS, the catalog test proves each of its scenarios, and docs/{en,de,fr}/develop/connectors.md#scenarios stays true.
Activity