Repository navigation
Description
Related to #504 (request readiness and failure messaging) and #502 (multiselect payload contract). This issue owns the separate binding authoring and synchronization workflow.
Problem and evidence
In v0.1.4-beta.8, an administrator enabled a NetRatel binding on an existing request form with Action, ADGroups and User mappings. Action is a Helpdesk predefined picklist with Add and Remove. ADGroups is a dataset-backed multi-select. The editor offered Refresh, Drift, Mark Import and Import. It flagged the required Helpdesk Action picklist as Modified against a required NetRatel Text input. The screenshot shows the enabled switch, the side-by-side mismatch, the Import action and five fields in the unsaved editor. The administrator reports that Import turned Action into free text and added a second AD Groups field. Restoring the picklist and saving returned the card to Drifted. The pre-import mapping history and precise duplicate-field route still need to be verified with a fixture.
The administrator needs to be able to author a form in Helpdesk, push its supported input contract to NetRatel, later accept selected remote changes, and choose both directions in one review while keeping the curated requester experience.
Source findings
Inspected RatelDesk main cc555b9602737200f89ae115686bd6b885084414.
- Save already attempts a push. The editor saves the form and binding, then calls
sync-inputsfor enabled bindings without asking for per-input direction. The schema sync projects the Helpdesk field into a NetRatel input.predefinedfalls through to Text in the outbound projection, with no projected picklist options in that branch. Multi-selects use the Text transport and preserve the existing peer inputs along that path. Editor save, automatic sync, outbound projection - Drift uses a different type comparison. It projects multi-select as Text but leaves scalar
predefinedaspredefined, then compares type and requiredness. This can show the picklist as drift again after a successful push to Text. The review also needs to distinguish supported metadata changes and genuine incompatibilities from intentionally different presentation and transport. Current drift comparison, normalization - Import applies all remote inputs and rebuilds the mapping. It uses the mapped stable Helpdesk key when it can, falls back to the remote key, creates a field if that key is missing and overwrites the label, type and requiredness of non-multi-select fields. That explains the picklist changing to Text and gives a plausible duplicate-field path for missing or differently keyed mappings. The editor then reloads the saved form into the open draft. Import implementation, editor import
Required operator workflow
- Keep Binding enabled as execution eligibility. For an enabled binding, provide compact readiness and drift status in the automation card and editor. Replace the visible Mark Import / Import sequence with an accessible compact MudIconButton, such as a warning/info icon with an explicit Review input differences label. Provide a read-only refresh/recheck that is clearly distinguishable from apply. Loading, missing or inaccessible target, compatible, unresolved, partially applied and stale states must be understandable. Opening, refreshing, enabling, or ordinarily saving form edits must never implicitly choose a direction or perform a schema overwrite.
- Open one compact MudBlazor dialog scoped to the exact saved organization, connection, job and task. Show each meaningful difference side by side with Helpdesk and NetRatel values, input identity/mapping, change kind, supported properties, and intended result. Use compact controls, accessible labels, bounded scrolling, a reachable footer, and a usable narrow/zoomed layout. Avoid row padding and redundant explanatory chrome. Clearly distinguish Helpdesk display/input design from the parameter type and value the job receives.
- Give each affected input its own explicit Push to NetRatel, Import into Helpdesk, or Leave unresolved choice. The same apply can push the Helpdesk version of one input and import the NetRatel version of another. Allow an explicit Map existing field choice when an incoming input has an existing intended counterpart, with an explicit Create field only for genuinely new inputs. Display exactly what changes and which side is updated before confirmation. Supported field creation, renames, requiredness and option changes must be clear. Unsupported or lossy choices need an explanation and a supported alternative where available. Default to leaving decisions unresolved.
- Apply only the reviewed actions. In the dialog, report progress, show per-input outcomes, confirm both sides' persisted/read-back state, and call out remaining differences or failures. Keep the editor draft and selections across a refresh or failure, with explicit semantics for staged local changes versus already committed peer changes. After successful sync the operator can save and exit cleanly. Reopening the form must preserve the resolved status and values. Cancel before apply leaves both sides as they were. Sync never starts the job.
Contract and data integrity
- Use an authoritative projection shared by preview, comparison, apply and post-apply verification. Preserve local labels/naming, stable keys, dataset bindings, choice values, select mode, validation and other form-only metadata unless the administrator explicitly confirms a supported change to them. A valid Helpdesk Add/Remove picklist mapped to a NetRatel Text input should remain a picklist and should not recur as unresolved solely for its presentation type. Allow Helpdesk-authored requiredness and supported input metadata, including choices where the paired peer supports them, to push outward. Show the exact compatible projection when the peer cannot represent the local UI property. Verify the actual NetRatel authoring contract before promising parity.
- Preserve [v0.1.4-beta.8] Self-service: searchable multi-select for dataset-bound and predefined fields, including NetRatel payload mapping #502. An ordinary single-select Action sends the selected scalar. A deliberately configured multi-select, including a dataset-backed
ADGroups, uses a Text parameter containing JSON array text of canonical values. Validation, choice labels and the NetRatel invocation transport remain independent of presentation. Reject incompatible required or typed mappings with an actionable reason. Treat unresolved drift separately from execution readiness according to actual compatibility and [P1] Self-service accepts a disabled NetRatel binding, then hides the dispatch blocker #504. - Resolve by authoritative job/input identity and stable explicit form mapping where available. Keep case/whitespace handling consistent, allow manual resolution of renamed, missing or ambiguous mappings and prevent repeated imports from creating duplicates. Preserve existing duplicate and historical field data until the operator explicitly resolves it. Keep untouched inputs, peer-only parameters, defaults and protected settings, unrelated mappings, tasks, workflow conditions and historical requests. If updating the provider involves sending a full input list, preserve untouched entries from an authoritative revision and verify them on readback.
- Reuse established authorization and connection checks. Bind the reviewed plan to current form/binding/connection and peer input versions or equivalent validated snapshots. Recheck them and permissions at apply, reject stale or cross-tenant changes, and reconcile before retry after timeout or partial completion. Provide durable safe correlation and per-input outcomes. Never label an uncertain or partially applied operation as fully synced. Avoid silent clobbering by legacy Save, sync or import paths as part of the normal editor flow, and review existing API compatibility and capabilities.
Acceptance for Codex Cloud
- Reproduce the reported
Actionpicklist drift against a required NetRatel Text parameter and the duplicate-risk scenario with a pre-existing mapped groups field under a different key. Capture before/after in an isolated pair. - Start with at least three differences. Push a Helpdesk-authored input change, import a genuine NetRatel-side change into an existing mapped field, and leave a third unresolved in the same dialog. Verify the exact changes persist on both sides, preserve all other fields/options/parameters, and clear only verified differences. Resolve the remaining row, reopen, and confirm there is no duplicate or recurring compatible-type drift.
- Cover single and multi-select picklists, dataset binding, rename/case and missing mapping, existing duplicate discovery, reset/reopen, repeated review/apply, cancel, concurrent edits, partial/uncertain peer response, changed connection, and cross-tenant denial. Verify required or unsupported contract changes are explained.
- In the isolated paired environment, run a harmless request after sync with the binding enabled. Verify exactly one execution through the intended connection. Record the scalar Action and the exact
ADGroupsJSON array text consumed by the script, including a key with a comma, along with the correlated terminal result. Cover [P1] Self-service accepts a disabled NetRatel binding, then hides the dispatch blocker #504's successful and blocked journeys through their normal UI entry points. - Provide focused service/API and Web regression coverage plus actual browser evidence for the compact dialog, keyboard flow, narrow layout and recoverable errors. Document the revised meanings of Enable, Review, Apply and Save. Report linked PR(s), tested revisions and verified outcomes.
Production configuration and the original request were not changed during this follow-up. The issue uses synthetic reproduction data.
Activity
Record synthetic browser and paired execution evidence for #504 and #505
Proxicon commentedon Nov 26, 2026
The form editor now opens a side-by-side review with per-input Push, Import and Leave unresolved choices. Imports can map to an existing stable key. Enable and Save preserve the administrator’s choice of sync direction. Reviewed pushes use a peer-side snapshot check. RatelDesk PR #506 · NetRatel companion PR #852
In the isolated pair, the first review pushed Action requiredness, imported the ADGroups label into the existing
groups_internaldataset field and left User unresolved. A second apply resolved User. Reopening showed matching contracts, four original Helpdesk fields, the Add/Remove picklist, the dataset multi-select and the untouched NetRatel default. The subsequent signed OIDC on-behalf request produced one scoped native execution. The worker received scalarAddand exact ADGroups text["group,one","group-two"]and exited 0. Paired browser review · Correlated receipt, exact source revisions and assembly hashesThe narrow Playwright regression covered keyboard launch, cancel, stale recheck, mixed application and Save/reopen. The RatelDesk service regression also covered a lost peer-write response and reconciliation. Both NetRatel managed PostgreSQL cases passed the stale-write, fresh-write and replay assertions. Narrow browser evidence
Review NetRatel input differences and validate self-service dispatch …
Proxicon commentedon Nov 26, 2026
Both changes are merged to
mainand the paired prereleases are available for testing.eb03b99549819ecac82fcec66a50ac6505be794c2a6769f176f0e2b38537df680ba2be8697b0ae51I downloaded the public assets and verified the checksum manifests and anonymous image pulls. RatelDesk has seven archives and three container families for Linux amd64 and arm64. NetRatel has 17 release assets, including the publication record and checksums, plus five container images.
The isolated source-level paired test verified mixed push/import with no duplicate fields, followed by one authorized on-behalf request on the saved customer connection. The harmless job received scalar
Action=Addand exactADGroupstext["group,one","group-two"]. The task succeeded with exit code 0 and the request reachedCompleted. Synthetic test revisions and resultsRatelDesk PR #506 · NetRatel PR #852 · NetRatel beta PR #853 · RatelDesk release run · NetRatel publication run
Proxicon commentedon Nov 26, 2026
RatelDesk v0.1.4-beta.10 is published for testing with NetRatel v0.1.7-beta.4. Merged PR #507 · Release workflow
Beta.9 reproduced the HTTP 400 when a workflow mapping contained the saved display name
ADGroupsand the displayed dataset field had a different key. The paired environment also exposed a requiredness check that grouped ordinary required job parameters with execution-target selectors. Beta.10 resolves a unique existing field by name when its stable key is absent from the mapping, lets the administrator push from that field, and preserves the requiredness guard for actual target inputs.In an isolated browser run, enabling the binding and saving the existing form left the NetRatel inputs unchanged. Selecting Push to NetRatel for ADGroups saved
groups_internalas the source and made the ordinary NetRatel Text parameter optional. Helpdesk retained all four form fields, including both datasets, the ADGroups multi-select, the Add/Remove options and the unbound justification. The review reopened as synced after both sides were read back.A synthetic local instance admin then submitted on behalf of an eligible customer in another organization through the saved customer connection. The fixture recorded one observed admission and one native execution. The harmless script received scalar
Action=Add,User=directory-userand exactADGroupstext["group,one","group-two"]. It exited0, the task reachedsucceeded, and the request reachedCompleted.34d0d6428b421101728c1b4984233b83dc4948a3. Identical source tree on release commit5b39dcfef5beb27705b9095dedc57e1334a25d5b.2a6769f176f0e2b38537df680ba2be8697b0ae51.