Experience owner: Set up automatic moves for one Stage — UF3-S4.
Configuration and expression model
Persist at most two optional rules per role/source Stage, unique by action kind: Reject or Move. Reject resolves to the protected Rejected Stage; it cannot act from Rejected onto itself. Move names a valid different Stage other than Rejected. Store stable source/destination IDs, rule version and authorizing manager. Role copies remap source/destination identities into the new Draft without copying candidate evidence or execution history. Reorder/rename preserves IDs; removal requires resolving references.
Each activity definition stores Compulsory/Optional independently of its own completion state and form-question requiredness. Preserve the actual activity/evidence identities and actor. A progression move evaluates a fixed all-compulsory-complete requirement AND the optional additional flat ALL/AND or ANY/OR expression. The fixed requirement is not an editable score predicate or an operand inside ANY. A completion-only move rule needs a named destination and a valid completion condition but no score condition. “All compulsory activities are done” requires at least one compulsory activity in the source Stage at configuration and evaluation; an empty compulsory set never satisfies this trigger. Offer “All activities are done” for all-optional nonempty Stages, covering their optional work. That condition is also available where compulsory work exists. Reject invalid compulsory-completion trigger configurations rather than silently changing their meaning. If an edit makes the last compulsory activity Optional or otherwise removes the compulsory set, reject the entire role-save transaction while any rule still contains “All compulsory activities are done”. Validate the proposed activities and rules together across Draft save, Publish, Save to live, Save and return to Draft, direct requests and copied/imported setup. Return the affected Stage/rule and require explicit removal of the invalid condition; do not auto-remove, convert or ignore it inside ANY/OR. Keep the earlier saved setup/status unchanged and retain in-session edits for correction. No partial activity commit or rule execution may result from a rejected save. Remaining rules must retain valid nonempty conditions, or be removed under normal rule editing. Initial activity defaults remain HR-23. “All activities are done” requires at least one source-Stage activity at configuration and evaluation. With no activities, neither completion condition is available or valid; never evaluate an empty set as completed work. Enforce the same validation for direct requests and imported/copied configuration. Stage re-entry resumes eligible reminders for the same unfinished activities for candidate and internal recipients; completed work does not restart. Re-entry preserves completed work and does not create repeat assignments or assessment retakes. A nonempty all-optional Stage uses all-activities completion as defined above. Saved Compulsory/Optional changes apply to future movement checks for current source-Stage members and later entrants, not to moves already committed. Rejection still needs its own non-empty condition expression; the compulsory gate is skipped only for protected Rejected. Every other destination, including a backward destination, enforces it. No nested groups, mixed joins or extra action rules are introduced. Role match keeps strict Higher/Lower and inclusive Within range on integer 0–100; Sentiments uses its separately approved policy. Overlapping additional predicates remain permitted.
Compulsory/Optional changes and acknowledgment — confirmed applicability
For candidates still in the source Stage, Optional → Compulsory blocks subsequent non-Rejected moves until actual completion; Compulsory → Optional removes only that activity from the compulsory gate. Later entrants use the new saved requirement. Do not rewrite historical requirement/evidence records, reverse completed moves, or alter membership for candidates who already left. No completion or cancellation is implied. Protected Rejected remains the only destination exempt from the gate.
Before committing a changed requirement, require Manage roles permission and an impact explanation identifying the role/Stage/activity, old/new value and affected current candidates. Explain which candidates become blocked or unblocked and that saving live immediately re-evaluates both saved Stage rules; qualifying actions may immediately move/reject candidates without a fresh completion or score event. Identify the applicable destinations, rejection priority and unchanged historical evidence. Distinguish Save to live from Save and return to Draft, which pauses execution. Require a field in which the manager types “I understand”, followed by explicit confirmation. Bind acknowledgment to the reviewed change and configuration version; do not accept a generic confirmation, checkbox, prefilled text or an acknowledgment of a different change. Enforce this on direct write routes as well as the interactive journey. A stale configuration or failed save must not apply an unacknowledged change; return the current impact for renewed review where the reviewed change is no longer current. Record the actor, time, old/new values, affected scope and acknowledgment with the committed change. Failed/cancelled confirmation preserves the previous requirement and candidate/evidence state.
Movement commits use the latest committed requiredness version atomically with the existing source/evidence/permission/priority/capacity checks. A move committed before the requirement change is historical; a move committed afterwards uses the new requirement. Do not launch a retroactive search for people who already left. A successful live requirement commit immediately initiates Stage-rule evaluation for current members using the new committed version; do not wait for another score/completion event. A save that returns the role to Draft stores the configuration but cannot execute moves. Later activation evaluates the saved rules under normal checks. Failed/cancelled/unsaved changes initiate no live evaluation. The approved stop-before-revisiting guard applies; its implementation and recovery design belong to the developer, not the product gaps list. Invalid compulsory-completion conditions must be removed before the edited role can be saved; this validation precedes the commit and its immediate rule evaluation.
Condition truth and completion
Unavailable, processing, failed, stale or insufficient-evidence scores make their condition not met; never substitute zero. ALL requires every additional predicate; ANY requires one. Neither bypasses compulsory source-Stage completion. A completion-only progression rule works independently of AI. For a nonempty all-optional Stage its completion predicate requires all activities to be actually complete; do not interpret the absent compulsory set as a completed-work event. For a Stage with no activities, completion predicates are invalid and cannot trigger; do not treat an empty set as true, including inside an ANY/OR expression. Score predicates and the flat ALL/ANY expression retain their own meaning; this change restricts completion choices, not all rule types.
Compulsory completion means every applicable compulsory activity for this candidate/source Stage has actual completion evidence. Optional work may be incomplete without blocking progression. An evaluation or internal Form is complete only when every applicable assigned respondent has a committed submission for that candidate/activity. Derive activity completion across all assigned responses; the first response must not complete a multi-respondent activity. Preserve each respondent’s independent Submitted/Not submitted state and actual attribution. A group evaluation has one designated recorder assigned to respond and completes on that recorder’s submission. Unsaved answers, viewing or another evaluator’s submission do not complete a pending response. The final outstanding submission supplies the ordinary activity-completion event, subject to lifecycle and existing Stage-rule checks. A Compulsory activity blocks every non-Rejected move until this aggregate completion is true; an Optional activity may stay incomplete without becoming a compulsory gate. The explicit “All activities are done” predicate still includes its actual aggregate completion. Any one assigned interviewer marking Held completes that Interview activity for everyone; booking does not. Movement, skipping work and cancellation never write completion. Preserve evidence and actual actors. “All activities are done” includes optional work only as an explicitly configured automatic condition; it does not impose a new manual-move gate. A return visit uses the same activity and actual completion evidence: completed work stays complete and unfinished work stays unfinished. Do not reset completion or issue a repeat assessment/activity because membership changed. A Stage with no activities cannot use either completion condition; do not infer completed work from an empty activity set.
Evaluation events and action priority
Treat rule truth as current state, not as an action deferred until another unrelated event. Immediately evaluate on Stage entry and after relevant committed score, activity-completion or live configuration changes. A saved Compulsory/Optional change initiates evaluation for every candidate currently in the affected source Stage. Entry/configuration evaluation uses already-valid current scores and applicable current-Stage completion evidence; changing requiredness does not require re-running AI. Saved-rule and activation evaluation also consider existing eligible source members under disclosed authorization.
Evaluate each full current expression and its fixed compulsory gate, not just the predicate whose value changed. Execute as soon as the rule qualifies and normal execution checks pass. A false result blocks action; it never reverses a completed action. This describes immediate event-responsive behaviour, not a requirement for an unbounded polling loop. Persist the committed configuration and a durable evaluation obligation together so a lost/transient job does not wait indefinitely for unrelated evidence. Repeated evaluations/retries of the same basis must not duplicate moves or side effects. Entering a destination evaluates its rules, allowing consecutive qualifying moves subject to the approved loop guard below.
For one candidate/current-Stage membership, evaluate rejection first using one current evidence/rule basis. Preserve rejection priority and no fall-through after a qualifying rejection fails. Apply the fixed compulsory gate before any progression move, then evaluate its additional expression. Re-read the current basis if configuration or evidence changed. Do not run the compulsory-completion gate for a Rejected destination. Enforce it for every other destination, including backward moves, across manual/API/bulk and automatic routes. Identify Rejected by its protected function/ID, not a guessed label. Rejection preserves incomplete evidence and retains all other checks.
Execution, lifecycle and recovery