ZT-511 · Energization: finalization texts and SLI email only fire on the exact day
| Status | Built in production; first run Nov 19 night, check Nov 20 |
| Ticket | ZT-511 |
| Requested by | Claude's Oct 27 config audit (for Michael Lowry) |
| Made by | KAJ Jacobs via browser agent (Albatross audit data, user 2284), 2026-11-19 16:22–16:26 UTC |
| Date made | 2026-11-19 |
| Sections affected | 09 · Inspection & energization (Energization) |
| Project types | Residential and R&R / Roof |
Request
The Energization customer texts and the Solar Leasing 1 (SLI) completion email only fire if 2 Week Check Passed or System Reporting equals today. If Finalization enters the date late (back-dated), the message never goes. Re-checked 2026-11-12: still true. Two more findings change the picture:
- The two "System Reporting" texts, SMS - Finalization Lease (auto) and SMS - Finalization Cash/Loan (auto), are not placed on any screen, so they have never run. That's why they showed no passes, not the wrong sent-guard. Homeowners don't get a "system reporting" text today.
- The main risk is small: SMS - Finalization Final (auto) sent on 589 of 604 jobs whose 2 Week Check Passed was filled since Sep 1. The 15 it missed were back-dated. Only 4 SLI jobs reached System Reporting since Sep 1, and all 4 were emailed.
Review
Checked 2026-11-12, Energization block. All four controls are auto + timed and have NOT HO comms blocked (or Cancellation in Progress) since ZT-555 (Nov 5).
| Control | Placed? | Date rule | Sent guard | Sends |
|---|---|---|---|---|
| SMS - Finalization Final (auto) | yes | (Process Block: Energization) Custom Field: Energization Checklist-2 Week Check Passed EQUAL current Date (plus block at 2 Week Monitoring) |
Finalization Final SMS Sent IS NULL; stamps it (OSC 2577) | SMS "Finalization Final -> Customer" |
| SMS - Finalization Lease (auto) | no | (Process Block: Energization) Custom Field: Energization Checklist-System Reporting EQUAL current Date |
Finalization Final SMS Sent IS NULL, but stamps Finalization SMS Sent (OSC 2585) | SMS "Finalization (lease) -> Customer" (Lease, PPA, TPO) |
| SMS - Finalization Cash/Loan (auto) | no | same | same mismatch | SMS "Finalization (cash/loan) -> Customer" (everything else) |
| Notify SLI of Finalization (auto) | yes | … System Reporting EQUAL current Date |
(Project) Custom Field: Funding Milestones-Date SLI Notified of Completion IS NULL ; stamps it (OSC 4540) |
Email to SLI "{Name} has been Finalized" (Financier = Solar Leasing 1) |
- Runs since Sep 1 (control history, passes only): SMS - Finalization Final 589 projects; Notify SLI 4 projects (last 2026-10-22).
- 2 Week Check Passed filled since Sep 1: 604 blocks, 15 back-dated (date earlier than the day it was typed); 589 got the text.
- SLI jobs with System Reporting since Sep 1: 4, all typed the same day, all notified.
- Monitoring Passed (button) also emails the homeowner "Congratulations — your solar journey is complete" and stamps Finalization Email Sent. Not changed here.
- No rule exists yet for Finalization SMS Sent IS NULL.
- Also unplaced on Energization: Pending M1 Invoice Payment (auto) and M1 Invoice Payment Received (auto) (Attainable Housing Advocates). Left alone.
- Projects in flight: 129 at 2 Week Monitoring, 32 at 48 Hour Monitoring (Oct 26 counts, not re-counted). With a 7-day window (below), only blocks whose date was filled in the last 7 days and not yet texted would get a text on the first run, which should be very few.
- Project types: Residential and R&R / Roof (both open Energization). Money: the SLI email is what tells Solar Leasing 1 to start payments.
Likely cause
The timed controls were written as one-day triggers ("date equals today") instead of "date is set and not yet sent". The Lease and Cash/Loan texts were built but never placed on the screen, and their guard points to the wrong sent field.
Recommended fix
Give the final text and the SLI email a 7-day window instead of "today"; their sent fields already stop repeats. Archive the two unplaced System Reporting texts unless Michael wants homeowners to start getting them.
Admin checklist
Before you start
- Michael decides about SMS - Finalization Lease (auto) and SMS - Finalization Cash/Loan (auto): archive (recommended; they've never sent, and homeowners already get the final text and the Congratulations email), or start sending them (steps 9–14).
- Heads-up to Finalization: back-dated 2 Week Check Passed and System Reporting dates now still trigger the text and the SLI email, if within 7 days.
Rules (Energization block)
- Create rule
(Process Block: Energization) Custom Field: Energization Checklist-2 Week Check Passed GREATER THAN OR EQUAL 7(value type current date minus X days, X = 7, as in ZT-559). - Create rule
(Process Block: Energization) Custom Field: Energization Checklist-System Reporting GREATER THAN OR EQUAL 7(same value type).
Final text and SLI email
- Edit SMS - Finalization Final (auto): replace
(Process Block: Energization) Custom Field: Energization Checklist-2 Week Check Passed EQUAL current Datewith the step 3 rule. Keep everything else, including the 2 Week Monitoring status rule, the sent guard and NOTHO comms blocked. - Edit Notify SLI of Finalization (auto): replace
(Process Block: Energization) Custom Field: Energization Checklist-System Reporting EQUAL current Datewith the step 4 rule. Keep the Date SLI Notified of Completion guard.
System Reporting texts: if step 1 says archive
- Archive SMS - Finalization Lease (auto).
- Archive SMS - Finalization Cash/Loan (auto).
System Reporting texts: only if step 1 says start sending (skip 7–8)
- Create rule
(Project) Custom Field: SMS Sent Confirmations-Finalization SMS Sent IS NULL. - Edit SMS - Finalization Lease (auto): replace
(Project) Custom Field: SMS Sent Confirmations-Finalization Final SMS Sent IS NULLwith the step 9 rule, and… System Reporting EQUAL current Datewith the step 4 rule. Keep NOTHO comms blocked. - Edit SMS - Finalization Cash/Loan (auto) the same way.
- Check the two SMS templates' wording with Customer Experience.
- Place SMS - Finalization Lease (auto) on the Energization screen, in the section that holds SMS - Finalization Final (auto).
- Place SMS - Finalization Cash/Loan (auto) in the same section.
Test
- Tell Claude the day after. Claude checks in Phoenix that the edited controls passed on blocks dated within the last 7 days, at most once per project, and none on a project blocked by
HO comms blocked.
New SOP
Finalization: no change in how you work. If you enter 2 Week Check Passed or System Reporting a few days late, the homeowner text and the SLI email still go out (up to 7 days back). Enter dates within a week.
Homeowners: no change, unless step 1 says start sending: then they also get a "system reporting" text when 2-week monitoring starts.
Funding (SLI): SLI is emailed even when System Reporting is back-dated by up to 7 days.
Rollback:
- Put the
… EQUAL current Daterules back on SMS - Finalization Final (auto) and Notify SLI of Finalization (auto). - Un-archive (or unplace) the two System Reporting texts.
How to verify
Claude checks the new conditions in Phoenix, then the control history for the first few days: passes only on dates within 7 days, one per project, and the 15-in-600 miss rate drops to zero.
Open questions
- Archive the Lease and Cash/Loan System Reporting texts, or start sending them?
References
- Change record: changes/2026-11-12-ZT-511-energization-finalization-messages.md
- Process doc: docs/sections/09-inspection-and-energization.md (Energization)
- Related: ZT-555 (HO comms blocked guard on these texts), ZT-559 (the "current date minus X days" rule type), ZT-507 (same "exact day" pattern on the install reminder), ZT-290, ZT-456.
- When the change is made, bring this ticket to Claude in the
zeo-process-flowrepo so it is checked and recorded in the changelog.
Config check
2026-11-19 (built 16:22–16:26 UTC):
- Four new Energization rules: 4720 (2 Week Check Passed ≥ today − 7 days), 4721 (2 Week Check Passed ≤ today), 4722 (System Reporting ≥ today − 7 days), 4723 (System Reporting ≤ today).
- SMS - Finalization Final (auto) (768) now reads
r702 and r1316 and r1317 and not r2551 and not r3882 and r4720 and r4721; auto + timed. - Notify SLI of Finalization (auto) (1228) now reads
r440 and r701 and not r2551 and r3066 and r4722 and r4723; auto + timed. - SMS - Finalization Lease (auto) (815) and SMS - Finalization Cash/Loan (auto) (816), never placed on a screen, are archived.
- Still to do: check the first nightly runs on Nov 20, then send Finalization the heads-up.