ZT-561 · Permit Submission: guardrails on Approve and Reject
| Status | Done |
| Ticket | ZT-561 |
| Requested by | Michael Lowry (Permitting chat review, Oct 14 – Nov 6); scope extended by KAJ Jacobs's Permitting click review (2026-11-06) |
| Made by | KAJ Jacobs, through Claude in Chrome (Albatross audit data, 2026-11-07 00:39–00:50 UTC) |
| Date made | 2026-11-06 |
| Sections affected | 07 · Permitting (Permit Submission task) |
| Project types | Residential and Battery Only (both use the Permitting block). R&R has its own task and already has these guards. |
Decisions (KAJ Jacobs, 2026-11-06)
- Verified By: the same person who clicks can fill Permit Outcome Verified By. No second person is needed (as on NEM and PTO).
- Rejection Attributable: only Engineering sends a rejection to Engineering Review, as on R&R.
Request
Stop a permit from being marked approved, or rejected, by mistake. No undo button: reversals are rare and KAJ fixes them by hand (Michael Lowry, 2026-11-06). On 28559 a permit was marked approved on Oct 27 and rejected by the AHJ on Oct 28. KAJ had to cancel and rebuild the Permitting and Installation blocks.
Proposed solution
- Permit Approved needs the AHJ approval date and Verified By first (the original ZT-561 draft).
- Permit Approved and both rejection buttons work only once the task is at Pending Approval (click review, item 2).
- The two rejection buttons are split by Permit Rejection Attributable, so only an Engineering-caused rejection goes to Scope Review (click review, item 3).
Review
Checked against production through Phoenix on 2026-11-06 (see the click review, items 2 and 3). No new Phoenix queries were made for this record.
- Statuses and controls (Permit Submission task):
- Submitted (210) needs the task at Ready to Submit Permit (rule
Event in Ready to Submit Permit), plus Permit Type, Submission Method Online or Mail, and Expected Permit Approval Date. It moves the task to Pending Approval, stamps First Permit Submitted and moves the block to Pending All Permits Approved. - The in-person path is Scheduled (211) → Pending Submission → Confirm Submission (212) → Pending Approval. Every route reaches Pending Approval, so requiring that status doesn't block a real path.
- Permit Approved (213) has no status check. It needs Permit Outcome = Approved, a Delivery Method, and the permit number for the task's permit type. Actions: block → Pending All Permits Approved, task → Permit Approved, stamp First Permit Approved.
- Permit Rejected - Engineering Review (214) and Permit Rejected - Resubmit (215) have identical conditions: Outcome = Rejected, plus Rejection Reason, Attributable and Notes. Neither checks status.
- 214: task → Permit Rejected; creates Scope Review at Ready for Rework Review; project → Pending Engineering Review; closes the task and opens a new one at Ready to Submit Permit.
- 215: the same, without the Scope Review and project status.
- Permit Not Needed (216) is unchanged.
- Auto controls on the task: Schedule a Permit Pickup (auto) and Mark ESC Permit Approved (auto) fire on Outcome = Approved, not on the status. If someone fills Outcome = Approved on a task still at Ready to Submit Permit, they still fire, before the button. That's no change from today and is harmless: they tick Needs a permit pickup / dropoff and stamp ESC Permit Approved. Worth knowing for the ESC case: Permits Complete reads ESC Permit Approved.
- Submitted (210) needs the task at Ready to Submit Permit (rule
- What goes wrong today:
- In the last 120 days, 16 tasks went from Ready to Submit Permit straight to Permit Approved, and 6 straight to Permit Rejected.
- Skipping Submitted means no First Permit Submitted stamp, no homeowner "Permits + NEM Notice Submitted" text, and no Create Install into Preschedule (auto) (Installation is then opened later by Create Install into NRTBS (auto)).
- 80 rejections in 120 days. The audit log can't show which rejection button was used, so how often the wrong one is picked is unknown.
- R&R does it right already:
- R&R Permit Approved (861) needs
(Event: R&R Permit Submission) System Data: Project Process Block Event Object Status EQUAL Pending Approval (Fail if none exist = false). - R&R Permit Rejected - Engineering Review (939) needs Attributable = Engineering, and R&R Permit Rejected - Resubmit (859) needs NOT Engineering.
- Those rules are local to the R&R event, so the Residential task needs its own copies.
- R&R Permit Approved (861) needs
- Fields:
- The Permit Outcome section already has the Approved Permit upload slot, Permit Approved (date) and Permit Outcome Verified By (OSC 2030).
- No rule can check an uploaded file.
- No field changes are needed.
- Downstream blocks: none new. Permits Complete still needs every listed permit approved, so a guarded task just needs the extra Submitted click before it can count.
- Work queues: no change. Tasks still show in Ready to Submit Permit, Pending Permit Submission and Pending Permit Approval as they move.
- Customer and rep messages:
- A tech who skipped Submitted now has to click it. That stamps First Permit Submitted, so the homeowner may get the "submitted" text shortly before the approval. SMS - Permit Submitted (auto) doesn't send if All Permits Approved is already set or the text was already sent, so it only goes out on a first permit.
- No change to rep notifications.
- Projects in flight: live Permit Submission tasks as of Oct 26 (not re-counted): 811 at Pending Approval (unaffected) and 135 at Ready to Submit Permit. For any of those 135 already approved by the AHJ, the tech clicks Submitted first, then Permit Approved.
- Money and integrations: none. First Permit Approved and First Permit Submitted are stamped as today.
- Reporting: better data. First Permit Submitted is filled for every approved permit. The share of rejections sent to Engineering may change once the split stops misclicks. Tell whoever reports on Scope Review rework volume.
- Project types: Residential and Battery Only. R&R isn't affected.
Admin checklist
Before you start
- Decisions made (KAJ, 2026-11-06): Verified By can be the same person; only Engineering goes to Engineering Review.
Rules (all on the Permit Submission task)
- Create rule
(Event: Permit Submission) System Data: Project Process Block Event Object Status EQUAL Pending Approval (Fail if none exist = false). - Create rule
(Event: Permitting) Custom Field: Permit Outcome-Permit Outcome Verified By IS NOT NULL. - Reuse rule
(Event: Permitting) Custom Field: Permit Outcome-Permit Approved IS NOT NULL(the AHJ approval date; already exists and is global). - Create rule
(Event: Permitting) Custom Field: Permit Outcome-Permit Rejection Attributable EQUAL Engineering.
Permit Approved
- Edit Permit Approved. Add the three rules from steps 2, 3 and 4 to its condition with AND. Keep the existing rules: Outcome = Approved, Delivery Method, and the permit-number checks.
Rejection buttons
- Edit Permit Rejected - Engineering Review: add the rules from steps 2 and 5 with AND.
- Edit Permit Rejected - Resubmit: add the step 2 rule with AND, and add the step 5 rule as NOT.
Screen and banners (Permit Outcome section)
- Move Approved Permit (upload), Permit Approved (date) and Permit Outcome Verified By above the Permit Approved button, in that order. Untick Hidden on Permit Outcome Verified By (OSC 2030); it is hidden today.
- Create a Banner Submit first. Condition:
Event in Ready to Submit PermitAND ((Event: Permitting) Custom Field: Permit Outcome-Permit Outcome EQUAL ApprovedOR(Event: Permitting) Custom Field: Permit Outcome-Permit Outcome EQUAL Rejected). Text: "This permit hasn't been marked Submitted. Click Submitted (or Scheduled → Confirm Submission) first, then approve or reject it." Both rules already exist on this task. Create the Rejected one if it's missing. - Create a Banner Approval details missing. Condition:
(Event: Permitting) Custom Field: Permit Outcome-Permit Outcome EQUAL ApprovedAND NOT the step 3 rule. Text: "Upload the approved permit from the AHJ, enter the approval date and fill Verified By before clicking Permit Approved." - Skipped: Albatross can't do it. No rule type checks a file slot; file "Requirement" logic only applies to native forms. Check whether Albatross can require a file slot before a control runs. If it can, require Approved Permit too. If not, skip this step.
Test on 28349
- On a Permit Submission task at Ready to Submit Permit, set Outcome = Approved. Permit Approved stays disabled and the Submit first banner shows.
- Click Submitted. Permit Approved stays disabled until the approval date and Verified By are filled, then it works.
- On a second task at Pending Approval, set Outcome = Rejected with Attributable = Engineering. Only Permit Rejected - Engineering Review is enabled. Change Attributable to anything else: only Permit Rejected - Resubmit is enabled.
- Cancel the test tasks and the Scope Review created on 28349.
New SOP
Permitting team
- When you submit a permit, click Submitted. For an in-person submission, click Scheduled, then Confirm Submission. Do this even if you're entering it after the fact.
- When the AHJ approves it: upload the approved permit, enter the approval date, fill Verified By, then click Permit Approved. The button stays grey until all of that is done and the permit has been marked Submitted.
- When the AHJ rejects it, fill the reason, notes and Rejection Attributable:
- Attributable = Engineering: only Permit Rejected - Engineering Review is available. It sends the job to Engineering.
- Anything else: only Permit Rejected - Resubmit is available. You resubmit it yourself.
- If a permit was approved by mistake, or rejected after approval, post in the Permitting chat and KAJ will reverse it.
Reporting (heads-up, outside Albatross): the count of rejections sent to Engineering may change, because misclicks are now blocked.
Rollback
- Remove the added rules from Permit Approved, Permit Rejected - Engineering Review and Permit Rejected - Resubmit, so each condition matches the Review section above.
- Archive the two banners. The new rules can stay; they do nothing when unused.
Open Phoenix checks
Checked against production through Phoenix on 2026-11-06.
- Answered: Permit Rejection Attributable (OSC 514, field 217) is a System Single Select over "Organizations - By Type", so its options are the 26 departments: Customer Care, Deal Review, Engineering, Field Audit, Finalization, Finance / Accounting, Fleet, Funding, Home Damage, HR, Inspections, Installation, Installation Scheduling, IT, Legal / Compliance, Marketing, Non-Standard, Permitting, Procurement, Retentions, Roofing, Service, Site Survey, Utilities, Virtual Sales, Zeo One. Engineering exists and is the only engineering option. It is the same field R&R uses (OSC 2982), so R&R's
EQUAL Engineeringsplit carries over exactly. - Answered: all three exist on the Permit Submission task:
Event in Ready to Submit Permit(rule 1727),(Event: Permitting) Custom Field: Permit Outcome-Permit Outcome EQUAL Approved(421) and(Event: Permitting) Custom Field: Permit Outcome-Permit Outcome EQUAL Rejected(431). Step 10 needs no new rule. Also found:(Event: Permitting) Custom Field: Permit Outcome-Permit Approved IS NOT NULLalready exists (rule 880, global, reads the Permit Approved date, OSC 1511), so step 4 reuses it. No existing rule for Verified By, for Pending Approval on this task, or for Attributable = Engineering, so steps 2, 3 and 5 stand. The status rules on this task use the prefix(Event: Permit Submission) System Data: …(e.g. rule 416), matching step 2's wording. - Answered: the Permit Outcome rules in 213, 214 and 215 (412, 413, 415, 421, 431, 895) and rule 1727 are local to the Permit Submission task. All new and edited controls are on that task, so they can be used as they are.
Also found: Permit Outcome Verified By (OSC 2030) is hidden on the Permit Outcome section today, so users can't fill it. Approved Permit is the upload slot at position 8 (OSC 967). For step 12: Albatross has an "Attachment" rule type but it's archived; elsewhere the build uses an "… Uploaded" checkbox instead. Whether a control can require a file slot is still a UI check.
Checklist changed by the Phoenix check: step 4 now reuses the existing global rule 880 instead of creating one; step 9 now also unticks Hidden on Permit Outcome Verified By (OSC 2030).
Config check
Passed, 2026-11-06 (Claude, Phoenix).
- Permit Approved: keeps its old checks, and now also needs the task at Pending Approval, Permit Outcome Verified By filled and the AHJ approval date (Permit Approved) filled.
- Permit Rejected - Engineering Review: now needs Pending Approval AND Attributable = Engineering. Permit Rejected - Resubmit: now needs Pending Approval AND NOT Engineering.
- Banners: Submit first and Approval details missing, both placed in Permit Outcome under the Permit Outcome dropdown.
- Section order: Approved Permit upload, Permit Approved date and Permit Outcome Verified By (now visible) sit above the Permit Approved button.
- Difference, approved by KAJ: step 4 didn't reuse the existing global rule
(Event: Permitting) Custom Field: Permit Outcome-Permit Approved IS NOT NULL. That rule reads the latest completed Permit Submission task, not the one being approved, so it wouldn't have guarded the button. A copy with the same description that reads the task being approved was created and used instead. Anything else using the old global rule reads a different task than its name suggests; that's out of scope here. - Step 12: skipped. Albatross can't require a file before a button runs.
- Tests on 28349 (steps 13–16): passed. Approve and both reject buttons stay grey until their checks pass. No buttons were clicked, no texts or emails went out, and the test tasks are canceled.
- Follow-up (optional, A6 Part 1b): Permit Delivery Method sits below the Permit Approved button but the button needs it. A6 moves it up if KAJ says yes.