ZT-563 · R&R Permitting: real buttons for submit, no permit, revision and approval

Status Done for Phase A (Nov 10). Phase B moved to ZT-586; unparked 2026-11-24, building now
Ticket ZT-563 (includes the fix from ZT-514)
Requested by Michael Lowry (Permitting chat review, Oct 14 – Nov 6); scope from KAJ Jacobs's Permitting click review (2026-11-06)
Made by
Date made
Sections affected 12 · R&R and roofing (R&R Permitting, R&R Permit Submission task, R&R Field Work; Roof Permit task for the clutter clean-up)
Project types R&R / Roof only. Residential and Battery Only use the Permitting block and aren't affected.

Questions for KAJ

  1. Michael put ZT-563 on hold on 2026-11-06 ("don't build this piecemeal; R&R gets a full review after the permitting fixes"). This record is that full review. Can Phase A go ahead now, or does all of it wait for the R&R deep dive? (Michael decides.)

Go-ahead (KAJ Jacobs, 2026-11-10): Phase A goes ahead now. Brief: tasks/2026-11-10-followups/E2-ZT-563-rr-permitting-phase-a.md. Phase B still waits for the R&R deep dive.

Go-ahead for Phase B (KAJ Jacobs, 2026-11-24): build Phase B now (ZT-586). Michael reviews the whole R&R flow next year, so it no longer waits for that. Re-checked in Phoenix the same day: R&R Permitting's controls (All Permits Approved, Ready to Submit (auto), Plans Complete - Back to Submission Prep (auto)) are unchanged since this checklist, and the global rules from steps 22 and 26 don't exist yet, so steps 18–32 stand as written.

Decisions (KAJ Jacobs, 2026-11-06)

  1. Staging for Phase B: yes. Phase B is tried in staging first, then on 28349.
  2. Send Back to Engineering: keep it, limited to Ready to Submit Permit and Pending All Permits Approved (don't archive it).
  3. In-person R&R submissions: leave R&R Permit Submitted as it is, including its "not In-person" rule; it depends on the state. Known gap: an in-person R&R permit has no button (the task's Scheduled button is empty and is archived here), so the team moves it by hand. 1 of 44 R&R submissions was in person (Open Phoenix check 5).
  4. One R&R Removal, made by the auto: remove the Create task R&R Removal action from All Permits Approved; Create Removal Event (auto) on R&R Field Work creates the one Removal. A second Removal must still be possible, just in case: the team adds one by hand on R&R Field Work (Open Phoenix check 9 confirms it can be: four Field Work blocks already have a second Removal added by hand, so step 11 is skipped).
  5. Field revisions: out of scope. Plans should be settled before R&R Field Work starts, so there's no Needs Plan Revision - Send to ENG button and no field-revision path in this ticket. R&R Inspection's existing Needs Revision / As-built (auto) stays as it is.

Request

R&R Permitting only partly works and the team works around it (ZT-563, from the Permitting chat):

The click review adds: the button names don't match what they do. No Permit Required is the everyday "submitted" click, and nothing ever sets the No Permit Required status. ZT-514 adds: All Permits Approved opens R&R Field Work at a status that block doesn't have.

Proposed solution (task brief, two phases)

Review

Checked against production through Phoenix on 2026-11-06 (see the click review, "R&R Permitting: how it works today", and ZT-514). No new Phoenix queries were made for this record. docs/sections/12-rr-and-roof.md predates the Oct 29 hold buttons; the click review has the current state.

How the block works today (R&R Permitting, 16 open blocks)

What goes wrong in production now

Statuses and controls after the change

Downstream blocks

Fields

Work queues

Customer and rep messages: none. The R&R task's SMS - Permit Submitted (auto) is empty, so R&R homeowners get no permit text today, and nothing here adds one.

Projects in flight (16 open blocks)

Money and integrations: none directly. All Permits Approved and No Permit Required set the project to Installation, as 852 does today. R&R | Roof Funding reads R&R Field Work statuses, which start working correctly with the ZT-514 fix. No NetSuite, Enphase or Vivint actions.

Reporting: R&R jobs that need no permit will now end at No Permit Required instead of All Permits Approved. All Permits Approved (OSC 666) is still stamped, so date-based reports are fine. Anything filtering on the block status should include both. Ready for Permit may be restamped on resubmissions (already the case on Residential).

Project types: R&R / Roof only. Roof Permit's three empty controls are on Roof Permitting (roof jobs).

Admin checklist

Phase A: quick wins

Before you start

  1. Agree the R&R flow in the New SOP with Maria and Amanda.
  2. Clean up by hand:
    • 26641 and 30809: cancel the R&R Permitting block (projects are canceled).
    • 30797: cancel the open R&R Permit Submission task left at Ready to Submit Permit (the block is at Pending Permit Revision).
    • 28971: add an R&R Permit Submission task by hand (last time); it has none. 26211: work the existing task (it's already in the Ready to Submit Permit task queue).
    • 28203, 28972, 25690, 27845, 26949: cancel the extra submission task if a duplicate is still open.
  3. Decided (KAJ, 2026-11-06): one R&R Removal, made by Create Removal Event (auto), so the task action comes off All Permits Approved; a second one can still be added by hand (confirmed by Open Phoenix check 9; step 11 skipped).

R&R Permit Submission task

  1. Edit R&R Permit Submitted. Add the action Set block status → Pending All Permits Approved (the same kind of block-status action R&R Permit Rejected - Engineering Review uses). Keep the existing actions and condition, including the "not In-person" rule (decision 3).

No Permit Required

  1. Create rule There is at least one active or on hold R&R Permit Submission event on R&R Permitting, with the same function as Residential's There is at least one active or on hold Permit Submission event (event: R&R Permit Submission). It doesn't exist yet. Don't use the "has Active" form: a task at Pending Approval is ON HOLD and might not count.
  2. Edit No Permit Required. Untick always-on. Condition: Process Block Object Status EQUAL Submission Prep AND NOT There is at least one active or on hold R&R Permit Submission event.
  3. Change its actions, in order:
    1. Set block status → No Permit Required (replaces → Pending All Permits Approved).
    2. Set All Permits Approved (OSC 666) = now.
    3. Set project status → Installation.
    4. Create block R&R Field Work at Ready to Schedule Removal.

Send Back to Engineering

  1. Edit Send Back to Engineering. Untick always-on. Condition: (Process Block: R&R Permitting) System Data: Process Block Object Status EQUAL Ready to Submit Permit (Fail if none exist = false) (create it; it doesn't exist) OR (Process Block: R&R Permitting) System Data: Process Block Object Status EQUAL Pending All Permits Approved (Fail if none exist = false).

All Permits Approved (ZT-514)

  1. Edit All Permits Approved. In the Create block R&R Field Work action, change the starting status from Ready for Install Audit to Ready to Schedule Removal.
  2. Remove its Create task R&R Removal action (after step 3). Create Removal Event (auto) on R&R Field Work creates the Removal instead.
  3. Only if an R&R Removal can't be added by hand: create a repeatable Button Add Another Removal on R&R Field Work. Skipped: Open Phoenix check 9 shows a second R&R Removal is already added by hand on R&R Field Work. Don't build the button.

Clutter

  1. Archive SMS - Permit Submitted (auto), Scheduled and Schedule a Permit Pickup (auto) on the R&R Permit Submission task.
  2. Archive the same three on the Roof Permit task.

Queues

  1. Skip: the Ready to Submit Permit queue already has R&R Permit Submission rows for Ready to Submit Permit (rows 1729–1732), and 26211's task shows there.

Test on 28349

  1. Add an R&R Permitting block at Submission Prep. No Permit Required shows. Click it: block → No Permit Required, All Permits Approved stamped, R&R Field Work created at Ready to Schedule Removal with one R&R Removal and the block at Pending Removal Completion.
  2. On a second block, add an R&R Permit Submission task. No Permit Required is now grey. Fill the submit fields and click R&R Permit Submitted: task → Pending Approval, block → Pending All Permits Approved. Send Back to Engineering shows; at Submission Prep it doesn't.
  3. Cancel the test blocks, tasks and any R&R Field Work / Removal created on 28349.

Phase B: rebuild the submission path (staging first)

Create Permit Submission (replaces Ready to Submit (auto))

  1. Create a Button Create Permit Submission on R&R Permitting. Tick repeatable. Condition: ((Process Block: R&R Permitting) System Data: Process Block Object Status EQUAL Submission Prep (Fail if none exist = false) OR the Ready to Submit Permit rule from step 8) AND NOT There is at least one active or on hold R&R Permit Submission event.
  2. Add its actions, in order:
    1. Set block status → Ready to Submit Permit.
    2. Set Ready for Permit (OSC 663) = now.
    3. Create event R&R Permit Submission (at Ready to Submit Permit).
  3. Place it in the Permit Details section, next to No Permit Required and Needs New Plans - Send to ENG.
  4. Archive Ready to Submit (auto).

Plans Complete - Back to Submission Prep

  1. Create three global rules (none exist), each a block-status IN rule with Fail if none exist ticked, like There is an Active Permitting Block: There is an Active R&R Scope Review (R&R Scope Review IN Active, Ready for Rework Review, Pending Resurvey, Pending Site Visit); There is an Active R&R Plan Set (R&R Plan Set IN Active, Ready to Create, Ready for QC, Needs QC Fixes, Ready to Create Revision, Ready for Revision QC, Needs Revision QC Fixes); There is an Active R&R | Engineering Stamps (R&R | Engineering Stamps IN Active, Restamp).
  2. Edit Plans Complete - Back to Submission Prep (auto). Condition: Process Block Object Status EQUAL Pending Permit Revision AND NOT each of the three rules from step 22 (they include ON HOLD statuses such as Pending Resurvey, so a block waiting on a resurvey isn't released). Remove (Project) Project Milestones-R&R Plan Revision Complete EQUAL current Date. Keep auto and timed.
  3. Create a Button Plans Complete - Back to Submission Prep (repeatable, not auto) with the same condition and the action Set block status → Submission Prep. Place it in Permitting Milestones. It's the fallback for a second revision on the same block, since the auto fires once per block.

All Permits Approved and Revision Approved

  1. Create rule (Event: R&R Permit Submission) System Data: Project Process Block Event Object Status EQUAL Permit Approved (Fail if none exist = true) (at least one approved task; Open Phoenix check 2).
  2. Create two global rules (neither exists), block-status IN with Fail if none exist ticked: There is an Active R&R Field Work (every R&R Field Work status except Reinstall Complete) and There is an Active R&R Inspection (every R&R Inspection status except All Inspections Passed and Canceled).
  3. Edit All Permits Approved. Add with AND: NOT There is at least one active or on hold R&R Permit Submission event; the step 25 rule; NOT There is an Active R&R Field Work; NOT There is an Active R&R Inspection.
  4. Create a Button Revision Approved on R&R Permitting. Condition: Process Block Object Status EQUAL Pending All Permits Approved AND NOT There is at least one active or on hold R&R Permit Submission event AND the step 25 rule AND (There is an Active R&R Field Work OR There is an Active R&R Inspection). Actions: Set block status → All Permits Approved; Set All Permits Approved (OSC 666) = now. No project status change, no new R&R Field Work. Place it next to All Permits Approved.

Test (staging, then 28349)

  1. At Submission Prep, click Create Permit Submission twice quickly: only one task. Submit and reject it with R&R Permit Rejected - Resubmit: the new task appears without a hand-made task. Cancel a task and click Create Permit Submission again: a new task is created.
  2. Click Needs New Plans - Send to ENG. Complete the R&R Scope Review and R&R Plan Set. Without anyone typing a date, the block returns to Submission Prep (save the project or wait for the nightly run).
  3. With one task approved and one still at Pending Approval, All Permits Approved is grey. Approve the second: it works and creates R&R Field Work at Ready to Schedule Removal.
  4. Cancel all test blocks and tasks on 28349. After go-live, check the 5 blocks at Pending Permit Revision (28978, 29045, 30637, 30797, 30885) the next day. Any whose rework is done should be at Submission Prep.

New SOP: Permitting on R&R jobs

Permitting (R&R)

  1. When the plans are ready to submit, click Create Permit Submission on R&R Permitting. It creates the submission task. Don't add tasks by hand. If a task is already open, the button stays grey: work that task. (Until Phase B is live, the task still comes from the Permitting Hold dates.)
  2. When you've submitted, fill the task (method, Submitted By, Expected Approval Date) and click R&R Permit Submitted. The block moves to Pending All Permits Approved on its own. Don't use No Permit Required for this.
  3. When the AHJ approves, fill the outcome and approval date and click R&R Permit Approved on the task. Once every task is approved or closed, click All Permits Approved on the block. That starts R&R Field Work. (On a revision block, the button is Revision Approved; it doesn't start new field work.)
  4. If the AHJ rejects: set Attributable. Engineering → R&R Permit Rejected - Engineering Review sends it to Engineering; anything else → R&R Permit Rejected - Resubmit gives you a new task.
  5. If the job needs no permit, click No Permit Required while the block is at Submission Prep and no task is open. It finishes Permitting and starts R&R Field Work.
  6. If plans must change before submitting, click Needs New Plans - Send to ENG. After submitting, use Send Back to Engineering. When Engineering finishes, the block returns to Submission Prep by itself; if it doesn't, click Plans Complete - Back to Submission Prep.
  7. If you're waiting on the customer or AHJ before you can submit, use Not Ready to Submit as today.

Scheduling / Roofing

  1. R&R Field Work now starts at Ready to Schedule Removal with one R&R Removal created for you. Don't add another unless a second removal visit is really needed; then add an R&R Removal by hand on R&R Field Work.
  2. Plans should be settled before R&R Field Work starts. No change to how field changes are handled.

Permitting (R&R), in-person permits: R&R Permit Submitted doesn't accept Submission Method = In-person. For an in-person submission, ask KAJ to move the task and block by hand, as today.

Engineering: no change.

Reporting (heads-up, outside Albatross): R&R jobs with no permit now end at No Permit Required instead of All Permits Approved.

Rollback

  1. R&R Permit Submitted: remove the block-status action.
  2. No Permit Required: tick always-on, clear the condition, set its only action back to → Pending All Permits Approved.
  3. Send Back to Engineering: tick always-on and clear the condition.
  4. All Permits Approved: set the R&R Field Work start status back only if the new one causes problems (the old one is broken); re-add Create task R&R Removal; remove the Phase B rules.
  5. Unarchive Ready to Submit (auto) and archive Create Permit Submission. Put R&R Plan Revision Complete EQUAL current Date back on 1324.
  6. Archive Plans Complete - Back to Submission Prep (button), and Revision Approved. The six archived empty controls don't need restoring.

Open Phoenix checks

Checked against production through Phoenix on 2026-11-06.

  1. Answered:
    • R&R Permitting block-status rules (all local to R&R Permitting, so usable on its controls): (Process Block: R&R Permitting) System Data: Process Block Object Status EQUAL Submission Prep (Fail if none exist = false) (3225), … EQUAL Pending All Permits Approved (Fail if none exist = false) (2573), … EQUAL Pending Permit Revision (Fail if none exist = false) (3403), … EQUAL Not Ready to Submit (Fail if none exist = false) (3803). There is no … EQUAL Ready to Submit Permit rule on R&R Permitting; steps 8 and 18 need one created.
    • R&R Permitting has Active R&R Permit Submission doesn't exist. The "has Active" function (e.g. R&R Field Work has Active Removal) may not count ON HOLD tasks, and a task at Pending Approval is ON HOLD. Residential uses the function There is at least one active or on hold Permit Submission event (rule 1187, local to Permitting). Build the R&R rule with that function instead, so a task waiting on the AHJ blocks All Permits Approved (step 5 updated, name used in steps 6, 18, 27 and 28).
    • No "There is an Active …" rule exists for any R&R block. The only near match is (Process Block: R&R Permitting) Status IN Open Statuses (Submission Prep thru Review Revision and Resubmit, 9) (3822), local to R&R Inspection with Fail if none exist off. Steps 22 and 26 create global rules, modelled on There is an Active Permitting Block (block-status IN, Fail if none exist ticked). Include the ON HOLD statuses: 29045 and 30885 sit at R&R Scope Review Pending Resurvey (ON HOLD) right now, and a rule that skipped it would release their blocks too early. The engineering block is named R&R | Engineering Stamps in Albatross, not "R&R | Roof Engineering Stamps".
  2. UI check. Phoenix shows the rule's settings, not how it combines several tasks. Test 31 settles it: with one task approved and one rejected or canceled, All Permits Approved should be enabled once nothing is open. If it stays grey, the rule reads all tasks (or the latest), and step 25 needs a different rule.
  3. Answered: 852's actions, in order: block → All Permits Approved; set All Permits Approved (OSC 666) = now; project → Installation; create R&R Field Work at Ready for Install Audit; create task R&R Removal (event 72) at Ready to Schedule. Create Removal Event (auto) (862) creates the same event definition (R&R Removal, event 72) on R&R Field Work, gated on NOT R&R Field Work has Active Removal. 852's Removal is created after the Field Work block in the same click and lands on that block (all 52 R&R Removals are block events). Whether 862 runs before 852's last action can't be seen in Phoenix, so step 10 stays.
  4. Answered: already done. The Residential task queue is Ready to Submit Permit (Permitting). It already has R&R Permit Submission rows (1729–1732, May 26), including Ready to Submit Permit, and 26211's R&R task is in that queue today. Step 14 can be skipped. A separate Ready to Submit R&R Permit queue also exists with only base-status rows. 30797's stray task isn't in any queue because its block is at Pending Permit Revision.
  5. Answered: 858's condition is (Event: R&R Permit Submission) System Data: Project Process Block Event Object Status EQUAL Ready to Submit Permit (Fail if none exist = false) AND NOT (Event: R&R Permitting) Custom Field: Permit Details-Submission Method EQUAL In-person AND (Event: R&R Permitting) Custom Field: Permit Details-Permit Submitted By IS NOT NULL AND (Event: R&R Permitting) Custom Field: Permit Details-Expected Permit Approval Date IS NOT NULL . Of 44 R&R submission methods recorded, 1 was In-person (26949, approved July 2026), 1 Mail and 42 Online. So in-person does happen, rarely. KAJ keeps the In-person rule (decision 3); in-person R&R permits are handled by hand.
  6. Answered: no past case. Only one R&R Permitting block was created at Pending Permit Revision after an R&R Inspection: 26211 (Nov 2, now at Ready to Submit Permit). It hasn't been approved yet. When it is, today's All Permits Approved would create a second R&R Field Work and set the project to Installation. The four other blocks created at Pending Permit Revision (Oct 15: 28960, 28970, 28985, 28995) had no R&R Inspection. Build Revision Approved (step 28) before 26211 is approved, or handle 26211 by hand.
  7. Answered: no gap. QC Passed - Stamps (934) and Revision QC Passed - Stamps (967) set R&R Plan Set to QC Passed and create R&R | Engineering Stamps in the same click. QC Failed (935) and Revision QC Failed (969) create the next R&R Plan Set in the same click.
  8. Answered:
    • 26211: a new R&R Permitting block (created Nov 2) at Ready to Submit Permit, with an R&R Permit Submission task at Ready to Submit Permit that shows in the Ready to Submit Permit queue. Its rework is done (R&R Plan Set QC Passed Nov 3). Nothing to add by hand.
    • 28971: block at Ready to Submit Permit since Oct 5, no task; R&R Scope Review complete Oct 5, no R&R Plan Set.
    • Pending Permit Revision (5): none has finished its rework, so the new 1324 condition won't release any of them at go-live. 28978: new R&R Plan Set at Ready to Create (Nov 6). 29045: R&R Scope Review at Pending Resurvey. 30637: R&R Plan Set at Ready to Create. 30797: R&R Plan Set at Ready for QC. 30885: R&R Scope Review at Pending Resurvey.
  9. Answered: yes, it can be added by hand. Four R&R Field Work blocks already have two R&R Removals, the second added 3–6 weeks after the first by a different user (Field Work blocks 147945, 149851, 154294, 159835; e.g. Aug 7 and Sep 22). Only three controls create event 72: All Permits Approved (852, on R&R Permitting, in the same click that creates Field Work), Create Removal Event (auto) (862, not repeatable, and nothing resets it) and Create Removal Event (1026, on a block named "ignore"). None could have made those later Removals, so they were added by hand. No button on R&R Field Work creates a Removal. The event table has no "allow manual add" setting to read; the hand-added rows are the proof. Step 11 is skipped.

Extra check (OSC for the No Permit Required stamp): 852 sets the Residential project field All Permits Approved (Project Milestones, OSC 666). All R&R Permits Approved (R&R | Roof Milestones, OSC 4169) exists, but no control sets it and no rule reads it. Step 7's OSC 666 is right; no change.

Checklist changed by the Phoenix check: step 2 (26211 already has its task; 28971 has none); step 5 builds the rule with the "at least one active or on hold … event" function, renamed There is at least one active or on hold R&R Permit Submission event in steps 5, 6, 18, 27 and 28; steps 8 and 18 note that the Ready to Submit Permit status rule must be created; step 14 skipped (already in the queue); steps 22 and 26 list the statuses for the new global rules and use the block name R&R | Engineering Stamps. (Step numbers above are after the renumbering below.)

Checklist changed by KAJ's decisions (2026-11-06): step 1 no longer asks who clicks a field-revision button; step 3 is decided (one Removal from the auto); step 4 keeps the In-person rule; step 8 limits Send Back to Engineering (no archive option); new step 11 adds a repeatable Add Another Removal button only if a Removal can't be added by hand; Phase B goes to staging first; the field-revision path (old steps 28–32, its test and its SOP) is removed (decision 5), so ZT-563 no longer needs the global There is an Active R&R Permitting Block rule (ZT-564 still creates it). Old steps 11–27 are now 12–28; old tests 33–35 and 37 are now 29–32.

Checklist changed by the Phoenix check (check 9, 2026-11-06): step 11 (Add Another Removal button) skipped, since a second R&R Removal is already added by hand; the SOP and Rollback no longer mention the button.

Clean-up done ahead of the build (2026-11-10, D3, KAJ via Chrome)

Config check

Phase A: pass, 2026-11-10 (Claude, Phoenix). Built by KAJ Jacobs through the Chrome agent (brief E2), Nov 10 afternoon MT.

Step Production now Result
4 control 858 (R&R Permit Submitted): actions 1 task status, 2 Set OSC Value, 3 Update Local Process Block Status → Pending All Permits Approved. Condition unchanged. Pass
5 New rule 4321 (There is at least one active or on hold R&R Permit Submission event), built like Residential's rule 1187, with the R&R Permit Submission event Pass
6–7 control 977 (No Permit Required): not always-on. Condition: Submission Prep AND NOT rule 4321. Actions: 1 block → No Permit Required (COMPLETE), 2 OSC 666 (Project Milestones All Permits Approved) = now(), Override Existing off, 3 project → Installation, 4 create R&R Field Work at Ready to Schedule Removal Pass
8 control 1012 (Send Back to Engineering): not always-on. Condition: new rule 4323 ((Process Block: R&R Permitting) Process Block Object Status EQUAL Ready to Submit Permit) OR Pending All Permits Approved. Actions unchanged. Pass
9–10 (ZT-514) control 852 (All Permits Approved): creates R&R Field Work at Ready to Schedule Removal. Create task R&R Removal removed. Pass
12 R&R Permit Submission task: control 936 (SMS - Permit Submitted (auto)), control 938 (Schedule a Permit Pickup (auto)) and control 937 (Scheduled) archived. Scheduled first had to come off the task layout (it returned 409 until then). Pass
13 Roof Permit task: control 940 (Scheduled), control 941 (SMS - Permit Submitted (auto)) and control 942 (Schedule a Permit Pickup (auto)) archived Pass

Tests on 28349:

Follow-up clean-up, 15:46 MT: