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
- 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)
- Staging for Phase B: yes. Phase B is tried in staging first, then on 28349.
- Send Back to Engineering: keep it, limited to Ready to Submit Permit and Pending All Permits Approved (don't archive it).
- 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).
- 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).
- 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 submission task only appears after two Permitting Hold dates are filled (26211: Amanda only saw "Send Back to Engineering" and "No Permit Required" until Neki filled the dates).
- Every resubmission needs a hand-made task (Maria, Oct 21). A slow double click made two tasks on 28972.
- After a plan revision, the block only returns to Submission Prep if R&R Plan Revision Complete equals today.
- Revisions found in the field have no path in the CRM. Jose Hernandez (26211) waited from August because the request went into a note topic. (Out of scope: plans should be settled before R&R Field Work starts, decision 5.)
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)
- Phase A (quick wins): R&R Permit Submitted moves the block forward; No Permit Required gets a real condition and sets its own status; Send Back to Engineering is limited; the six empty task controls are archived; ZT-514's start status is fixed.
- Phase B (rebuild, staging first): a repeatable Create Permit Submission button replaces Ready to Submit (auto); Plans Complete - Back to Submission Prep (auto) stops depending on "equals today"; All Permits Approved needs every task closed and one approved; a Needs Plan Revision path from the field (dropped: decision 5).
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)
- Ready to Submit (auto) (978, auto, not timed): needs
Permitting Hold-Ready to Submit Permit IS NOT NULL, Estimated Ready to Submit Date ≤ today and status Submission Prep. Moves the block to Ready to Submit Permit, stamps Ready for Permit (OSC 663) and creates the R&R Permit Submission task. It fires once per block and isn't reset, so a resubmission on the same block needs a hand-made task. Its two hold dates are also why techs don't see a task until someone fills them. - R&R Permit Submitted (858, task): needs the task at Ready to Submit Permit, method not In-person, Submitted By and Expected Approval Date. Moves only the task (→ Pending Approval) and stamps First Permit Submitted (OSC 664). It doesn't move the block.
- No Permit Required (977): always-on. Moves the block to Pending All Permits Approved. Because nothing else moves the block forward, this is the normal "submitted" click (13 blocks in 60 days went Submission Prep → Pending All Permits Approved this way). It also reopens a finished block. The No Permit Required status (COMPLETE) is never set.
- All Permits Approved (852): only checks status Pending All Permits Approved. Doesn't check that a permit was approved or that no task is still open. Actions: block → All Permits Approved, stamps All Permits Approved (OSC 666), project → Installation, creates R&R Field Work at Ready for Install Audit (not a status of R&R Field Work, ZT-514) and creates the R&R Removal task.
- Send Back to Engineering (1012): always-on. Creates R&R Scope Review at Active and sets Pending Permit Revision at any status, even after approval or install. Same actions as Needs New Plans - Send to ENG (1323), which needs Submission Prep.
- Plans Complete - Back to Submission Prep (auto) (1324, auto and timed):
Process Block Object Status EQUAL Pending Permit Revisionand(Project) Project Milestones-R&R Plan Revision Complete EQUAL current Date. A back-dated or next-day stamp never fires it. It's also an auto, so it fires once per block. - R&R Permit Approved (861) needs the task at Pending Approval and R&R Permit Rejected - Engineering Review (939) / - Resubmit (859) are split by Attributable = Engineering. These are already right.
- Empty controls: SMS - Permit Submitted (auto), Scheduled, Schedule a Permit Pickup (auto) on R&R Permit Submission (936, 937, 938) and on Roof Permit (940, 941, 942): no condition, no actions, not flagged auto.
- Oct 29 hold (untracked, KAJ): Not Ready to Submit (1419), Remove Hold (1422) and Hold Released - Back to Submission Prep (auto) (1418). They use the same Not Ready to Submit Permit and Estimated Ready to Submit Date fields. Phase B leaves them as they are.
What goes wrong in production now
- Duplicate submission tasks: 25690, 27845 and 26949 got two the same day; 28203 and 28972 also have two (28972 is the double click).
- At Ready to Submit Permit, which has no work queue: 28971 (no submission task at all) and 26211.
- 30797 is at Pending Permit Revision with an open Ready to Submit Permit task.
- Open on canceled projects: 26641 and 30809.
- Waiting at Pending Permit Revision on the "equals today" date: 28978, 29045, 30637, 30797 and 30885.
Statuses and controls after the change
- Phase A makes R&R Permit Submitted the forward path, so No Permit Required can be narrowed safely. The two must be built in that order, or there's a gap with no way forward.
- No Permit Required at Submission Prep with no open task, so it can't be used as "submitted" and can't reopen a finished block. It must then do what All Permits Approved does for the next block (stamp All Permits Approved, project → Installation, create R&R Field Work); otherwise a no-permit job stops dead. Residential's No Permit Required - Send to Install also stamps All Permits Approved (OSC 666), so this matches.
- Auto controls that could fire after the change:
- Fixing ZT-514 makes Create Removal Event (auto) (862) fire on every new R&R Field Work. It needs "no active Removal", so whether a second Removal appears depends on the order of 852's actions. Removing 852's Create task R&R Removal avoids the question (decision 4). 862 fires once per block, so a genuine second Removal on the same job is added by hand (Open Phoenix check 9 confirms this already happens).
- The new 1324 condition will release any of the 5 waiting blocks whose rework is finished, on the next nightly run or save. Check each first (clean-up step).
- Rule to watch: an auto control fires once per block. A reset auto didn't fire again in a test on 28349 (ZT-531), so Phase B doesn't rely on resets. It uses repeatable buttons for anything that must happen more than once, and keeps 1324 as an auto only for the first revision on a block, with a button as the fallback.
- Revision blocks: R&R Inspection's Needs Revision / As-built creates a new R&R Permitting block at Pending Permit Revision. When that block finishes, All Permits Approved creates a second R&R Field Work and sets the project back to Installation. Phase B splits this: All Permits Approved only when no R&R Field Work or R&R Inspection is open; a new Revision Approved button otherwise (Open Phoenix check 6 confirms what past revision blocks did).
Downstream blocks
- R&R Field Work (created by 852 and now 977): starts at Ready to Schedule Removal (ZT-514), so Create Removal Event (auto) runs and the block moves to Pending Removal Completion.
- R&R Scope Review (created by 1012, 1323 and 939): unchanged. Initial Scope Review Complete / Rejection/Change Review Complete create R&R Plan Set in the same click, so the new 1324 guard ("no active Scope Review, Plan Set or Engineering Stamps") has no gap between them.
- R&R Plan Set's Reopen Permitting (auto) and the QC / stamps buttons still stamp R&R Plan Revision Complete. The new 1324 no longer needs it to be today.
Fields
- No field changes in either phase.
- Ready to Submit Permit (Date) and Estimated Ready to Submit Date stop gating the task. The hold buttons from Oct 29 still use Not Ready to Submit Permit and Estimated Ready to Submit Date.
- Ready for Permit (OSC 663) is already "latest" (restamped), so stamping it on every Create Permit Submission click matches Residential.
Work queues
- Ready to Submit Permit (block) has no queue, and the R&R Permit Submission task feeds only Pending Permit Approval (Oct 29). A task waiting to be submitted is therefore in no queue. Add the task's Ready to Submit Permit status to the Permitting queue that holds Residential Permit Submission tasks at that status (Open Phoenix check 4).
- No Permit Required is COMPLETE: no queue needed.
- Pending Permit Revision is in Permitting Hold (7d). Unchanged.
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)
- 2 at Pending All Permits Approved: with Phase B's guard, All Permits Approved stays grey while a task is still open. That's intended.
- 5 at Submission Prep: No Permit Required works only if no task is open.
- 2 at Ready to Submit Permit (28971, 26211) and 30797's stray task: fix by hand (clean-up).
- 5 at Pending Permit Revision: released by the new 1324 or by the new button once their rework is done.
- 2 on canceled projects (26641, 30809): cancel the block.
- 13 R&R Field Work blocks at Ready for Install Audit: ZT-514 steps 3 to 5 (kept in ZT-514).
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
- Agree the R&R flow in the New SOP with Maria and Amanda.
- 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.
- 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
- 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
- Create rule
There is at least one active or on hold R&R Permit Submission eventon R&R Permitting, with the same function as Residential'sThere 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. - Edit No Permit Required. Untick always-on. Condition:
Process Block Object Status EQUAL Submission PrepAND NOTThere is at least one active or on hold R&R Permit Submission event. - Change its actions, in order:
- Set block status → No Permit Required (replaces → Pending All Permits Approved).
- Set All Permits Approved (OSC 666) = now.
- Set project status → Installation.
- Create block R&R Field Work at Ready to Schedule Removal.
Send Back to Engineering
- 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)
- 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.
- Remove its Create task R&R Removal action (after step 3). Create Removal Event (auto) on R&R Field Work creates the Removal instead.
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
- Archive SMS - Permit Submitted (auto), Scheduled and Schedule a Permit Pickup (auto) on the R&R Permit Submission task.
- Archive the same three on the Roof Permit task.
Queues
- 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
- 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.
- 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.
- 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))
- 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 NOTThere is at least one active or on hold R&R Permit Submission event. - Add its actions, in order:
- Set block status → Ready to Submit Permit.
- Set Ready for Permit (OSC 663) = now.
- Create event R&R Permit Submission (at Ready to Submit Permit).
- Place it in the Permit Details section, next to No Permit Required and Needs New Plans - Send to ENG.
- Archive Ready to Submit (auto).
Plans Complete - Back to Submission Prep
- 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). - Edit Plans Complete - Back to Submission Prep (auto). Condition:
Process Block Object Status EQUAL Pending Permit RevisionAND 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. - 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
- 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). - 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).
- 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; NOTThere is an Active R&R Field Work; NOTThere is an Active R&R Inspection. - Create a Button Revision Approved on R&R Permitting. Condition:
Process Block Object Status EQUAL Pending All Permits ApprovedAND NOTThere is at least one active or on hold R&R Permit Submission eventAND the step 25 rule AND (There is an Active R&R Field WorkORThere 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)
- 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.
- 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).
- 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.
- 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)
- 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.)
- 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.
- 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.)
- 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.
- 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.
- 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.
- If you're waiting on the customer or AHJ before you can submit, use Not Ready to Submit as today.
Scheduling / Roofing
- 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.
- 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
- R&R Permit Submitted: remove the block-status action.
- No Permit Required: tick always-on, clear the condition, set its only action back to → Pending All Permits Approved.
- Send Back to Engineering: tick always-on and clear the condition.
- 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.
- Unarchive Ready to Submit (auto) and archive Create Permit Submission. Put
R&R Plan Revision Complete EQUAL current Dateback on 1324. - 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.
- 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 Permitrule on R&R Permitting; steps 8 and 18 need one created. R&R Permitting has Active R&R Permit Submissiondoesn'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 functionThere 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 onThere 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".
- R&R Permitting block-status rules (all local to R&R Permitting, so usable on its controls):
- 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.
- 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. - 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.
- 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-personAND(Event: R&R Permitting) Custom Field: Permit Details-Permit Submitted By IS NOT NULLAND(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. - 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.
- 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.
- 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.
- 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)
- Canceled: the R&R Permitting block on 26641 and on 30809 (both canceled projects).
- 30797: left as is. Its block went back to Submission Prep on 11/9 after the revision, so its open R&R Permit Submission task at Ready to Submit Permit is now the task to resubmit with. It's no longer stray.
- Duplicates (28203, 28972, 25690, 27845, 26949): none has two open tasks; nothing to cancel.
- Still for the Permitting team: 28971 (Ready to Submit Permit, no task: add one by hand). 26211 is now normal: its newest block is at Pending All Permits Approved with a task at Pending Approval.
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:
- No Permit Required: worked on a block at Submission Prep. The block went to No Permit Required. R&R Field Work was created and reached Pending Removal Completion with one R&R Removal. The project went to Installation. The All Permits Approved date kept its earlier value, as intended with Override Existing off.
- With a task open: No Permit Required went grey. R&R Permit Submitted moved the task to Pending Approval and the block to Pending All Permits Approved. Send Back to Engineering showed then, and not at Submission Prep.
- Clean-up: the test blocks, task and Removal were canceled. Still open: R&R Field Work 223833 (R&R Field Work has no Canceled status), and 28349's project status is Installation (it was Installation Prep). The agent is fixing both.
- Note: a newly created R&R Permit Submission task still showed the two archived autos in its Automatic Controls section. Archived controls may need to be taken off the layout too.
Follow-up clean-up, 15:46 MT:
- control 937 (Scheduled) was taken off the R&R Permit Submission layout and archived. 28349 is back at Installation Prep.
- The R&R task layout held Residential controls. The R&R Permit Submission Automatic Controls section (section 431, copied May 14) held Residential's control 598 (Schedule a Permit Pickup (auto)), control 765 (SMS - Permit Submitted (auto)) and control 605 (Mark ESC Permit Approved (auto)), all event 40. The placements of 598 and 765 on the R&R layout were removed. Residential's own placements in section 125 are unchanged; Phoenix confirms they're still active. The 605 placement on R&R was left as it is.
- R&R Field Work 223833 (test, 28349) is still at Pending Removal Completion. Delete did nothing for the agent, and R&R Field Work has no Canceled status. KAJ to try Delete by hand.