ZT-530 · Fix the Installation prescheduling flow

Status Done
Ticket ZT-530
Requested by Michael Lowry (from Installation Scheduling feedback, Nataly Barreiro)
Made by Michael Lowry (Albatross audit data: rule 3828, rule groups 3222 and 3223, controls 1312, 1318 and 1340, 2026-11-02 21:25–21:32 UTC); requested by Michael Lowry
Date made 2026-11-02
Sections affected 08 · Installation (Installation block, Install Appointment event)
Project types Residential (the Installation block is Residential only)

Request

Feedback from Installation Scheduling (Nataly Barreiro):

28458 — everything is approved here, can I get this pushed out of preschedule 28731 — everything is approved here as well and is showing up in preschedule 28750 — I can not press scheduled here. It is still sitting in preschedule, everything is approved

Michael asked Claude to diagnose the configuration and propose a fix.

Target flow from Christina (Installation Scheduling):

The fix below produces both paths. Queue mapping: Scheduling Audit/Review = block Ready for Install Audit; Ready to Schedule Full Install = Install Appointment Ready to Schedule; Prescheduling Audit/Review = block Ready for Prescheduling Audit; Ready to Preschedule = Install Appointment Ready to Preschedule.

Decisions from Michael (2026-11-02):

Proposed solution None given.

Review

Checked against production (Phoenix) on 2026-11-02. The flow comes from ZT-401. Installation is block 11 and Install Appointment is event 41.

How the flow is configured today

What happened to the three reported jobs

Problem 1: approved jobs start the preschedule path. Ready to Preschedule (auto) doesn't check permits. When the audit is stamped on a job whose permits and NEM are already approved, both it and Prescheduling Expired, Ready to Audit for RTBS (auto) are true, and the preschedule path wins. Since Oct 22 it also moves the block out of Ready for Prescheduling Audit, so 1318 can't fire afterwards either. Fix: add "not (permits approved, no active Permitting, NEM approved)", the same test 1318 uses, so those jobs take the normal RTBS path.

Problem 2 (live now): new preschedule appointments flip straight to Ready to Schedule. KAJ Jacobs edited Ready to Preschedule (auto), Prescheduling Expired, Ready to Audit for RTBS (auto), Ready to Schedule (auto) and Ready to Audit Before Installation (auto) on 2026-10-22, 19:31–19:32 UTC. These edits are not in the changelog. They predate the 2026-10-26 baseline, so the docs show the result but not the why.

Problem 3: a block at Ready to Preschedule is never moved on. Prescheduling Expired, Ready to Audit for RTBS (auto) only checks Ready for Prescheduling Audit. If permits are approved while the block is at Ready to Preschedule and the appointment hasn't been prescheduled, nothing moves it to RTBS. Fix: check either status.

Statuses and controls

Downstream blocks: none created or read by these controls, apart from the Permitting and NEM fields they already read.

Fields: none change. Pre-Install Audit Passed (OSC 3955), All Permits Approved (OSC 666), NEM Application Approved (OSC 1117) and NEM Pre-Approval (OSC 3063) are read only.

Work queues

Customer and rep messages: none of the three controls sends anything. The usual Install Scheduled texts go out when the appointment is booked, unchanged.

Projects in flight

Money and integrations: none.

Reporting: the Prescheduled checkbox (OSC 5112) only gets set by Prescheduled. Any report of prescheduled installs undercounts the Oct 22 – fix window. Michael to confirm whether a report uses it.

Project types: Residential only.

Admin checklist

Albatross can't nest AND/OR inside a control's condition, so the nested parts go into rule groups. Each control's condition is then a flat list.

Rules and rule groups

  1. New global rule. Installation block, System Data, Process Block Object Status EQUAL Ready to Preschedule, Fail if none exist = false.
    • Pick the Installation block's Ready to Preschedule, not the Install Appointment status with the same name.
    • Make it global so it can be used on both the block and the Install Appointment.
    • Albatross should show it as (Process Block: Installation) System Data: Process Block Object Status EQUAL Ready to Preschedule (Fail if none exist = false).
  2. New global rule group: Permits and NEM Approved for Install
    • (Project) Custom Field: Project Milestones-All Permits Approved IS NOT NULL
    • AND NOT There is an Active Permitting Block
    • AND group NEM Approved or Pre-Approval Checked. This group already exists; reuse it.
  3. New rule group on the Installation block: Installation at a Prescheduling Status
    • (Process Block: Installation) System Data: Process Block Object Status EQUAL Ready for Prescheduling Audit (Fail if none exist = false)
    • OR the new rule from step 1

Controls (conditions only; leave every action as it is)

  1. Installation block, Ready to Preschedule (auto)
    • (Process Block: Installation) System Data: Process Block Object Status EQUAL Ready for Prescheduling Audit (Fail if none exist = false)
    • AND (Process Block: Installation) Custom Field: Installation Milestones-Pre-Install Audit Passed IS NOT NULL
    • AND NOT group Permits and NEM Approved for Install
  2. Installation block, Prescheduling Expired, Ready to Audit for RTBS (auto). Replace the whole condition with:
    • group Installation at a Prescheduling Status
    • AND group Permits and NEM Approved for Install
  3. Install Appointment, Prescheduling Expired, RTBS (auto)
    • (Event: Install Appointment) System Data: Project Process Block Event Object Status EQUAL Ready to Preschedule (Fail if none exist = false)
    • AND NOT (Process Block: Installation) System Data: Process Block Object Status EQUAL Ready for Preschedule (Fail if none exist = false). This is the existing rule. Keep it: despite its label it checks Ready for Prescheduling Audit, and it's the copy created on the Install Appointment. The block's own Ready for Prescheduling Audit rule can't be used there.
    • AND NOT the new rule from step 1

Other

  1. No work queue change.
  2. Test in staging first, because three auto conditions change:
    1. Block at Ready for Prescheduling Audit and permits not approved. Stamp Pre-Install Audit Passed. Expect: block at Ready to Preschedule, the appointment stays at Ready to Preschedule, and Prescheduled shows.
    2. From test 1, approve permits on the Permitting block (NEM approved). Expect: block at Ready for Install Audit, then Ready to Schedule, the appointment at Ready to Schedule, and no second appointment. It should happen on the Permitting save, since any save on the project evaluates auto controls.
    3. Block at Ready for Prescheduling Audit with permits and NEM already approved. Stamp Pre-Install Audit Passed. Expect: the block goes to Ready to Schedule and the appointment is created at Ready to Schedule, not Ready to Preschedule.
    4. From test 1, press Prescheduled, then approve permits. Expect: block at Pending Install Day, the appointment at Pending Permit Approval, then Ready to Order Materials.
  3. Repeat tests 1 and 4 in production on test project 28349.

New SOP

Rollback

  1. Ready to Preschedule (auto): remove AND NOT group Permits and NEM Approved for Install.
  2. Prescheduling Expired, Ready to Audit for RTBS (auto): set the condition back to …EQUAL Ready for Prescheduling Audit AND …All Permits Approved IS NOT NULL AND NOT There is an Active Permitting Block AND group NEM done or preapproved. That group is the existing one with the same two NEM rules as before.
  3. Prescheduling Expired, RTBS (auto): remove AND NOT the new rule, or turn the control off.
  4. The new rule and the two new groups can stay, unused.

Config check

Checked in production (Phoenix) on 2026-11-02 after Michael's edits (21:25–21:32 UTC). Everything on the checklist matches.

Step Result
1. New global rule Rule 3828 (Process Block: Installation) System Data: Process Block Object Status EQUAL Ready to Preschedule (Fail if none exist = false) points to block status 488, Fail if none exist = false, global. ✓
2. Permits and NEM approved for Install Global group 3222: All Permits Approved AND NOT There is an Active Permitting Block AND group nem approved or pre-approval (1888). That group is a duplicate of NEM Approved or Pre-Approval Checked (1732) with the same two rules (NEM Application Approved IS NOT NULL OR NEM Pre-Approval EQUAL true), so the logic is identical. ✓
3. Installation at a Prescheduling Status Group 3223 on the Installation block: Ready for Prescheduling Audit OR rule 3828. ✓
4. Ready to Preschedule (auto) Ready for Prescheduling Audit AND Pre-Install Audit Passed AND NOT group 3222. Auto, not timed or repeatable. Actions unchanged: create Install Appointment at Ready to Preschedule; block → Ready to Preschedule. ✓
5. Prescheduling Expired, Ready to Audit for RTBS (auto) Group 3223 AND group 3222. Actions unchanged: stamp Installation Ready to Schedule; block → Ready for Install Audit; reset Ready to Schedule (auto) and Ready to Preschedule (auto). ✓
6. Prescheduling Expired, RTBS (auto) Appointment Ready to Preschedule AND NOT …EQUAL Ready for Preschedule AND NOT rule 3828. Action unchanged: appointment → Ready to Schedule. ✓
7. Work queues No change, as planned. ✓

Extras found in the same window

Knock-on