Rollout note — SmartLink strict transforms (issue #705)
What changed: starting with this release, a SmartLink operation whose
request transform (the field mapping an integrator builds in the visual
mapper) is broken no longer silently sends the applicant’s raw, unmapped
payload to the external system. The request fails closed before any HTTP
call, with a plain-language error and failure_category: transform_error.
Concrete scenario: an agency integrator typos a field mapping on an unsigned connection to a tax authority. Before this change, SmartLink logged a warning and sent the applicant’s raw form data as-is — the external system received unmapped (and potentially over-shared) fields. Now the request is refused and the error names the broken mapping.
What is and is not affected
- Affected: operations whose JSONata request transform fails to
evaluate (syntax error, runtime error). These now return
request_build/transform_errorinstead of sending raw payload. - NOT affected: mappings that evaluate to nothing (
None→{}) or to a scalar ({"_result": ...}) — the legacy coercions are unchanged in both modes. Signed operations were already strict and are unchanged. - NOT affected: response transforms — unchanged in this release.
Per-country opt-out
Set on the backend service and restart:
OPENGOV_SMARTLINK_STRICT_TRANSFORMS=false
This restores the legacy lenient behavior (broken mapping → raw payload is sent) while a country fixes its mappings. Signed operations remain strict regardless of the flag — signing over an unmapped payload is never allowed.
Symptoms after upgrade + what to do
| Symptom | Meaning | Action |
|---|---|---|
| A previously “working” operation now fails with “Couldn’t prepare the request: the field mapping for this operation is broken…” | The mapping was broken all along; the old behavior sent raw payload | Fix the mapping in the operation editor (the Playground preview shows the evaluation error) |
| Need time to fix many mappings | — | Set the opt-out flag, schedule the fixes, remove the flag |
Countries do not auto-pull releases; apply this note when upgrading past
2026-07-17. Decision record: issue #705 (maintainer-ratified 2026-07-17);
spec context: docs/specs/2026-07-07-smartlink-signed-request-fields.md §4.