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)

  1. Verified By: the same person who clicks can fill Permit Outcome Verified By. No second person is needed (as on NEM and PTO).
  2. 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

  1. Permit Approved needs the AHJ approval date and Verified By first (the original ZT-561 draft).
  2. Permit Approved and both rejection buttons work only once the task is at Pending Approval (click review, item 2).
  3. 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.

Admin checklist

Before you start

  1. 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)

  1. Create rule (Event: Permit Submission) System Data: Project Process Block Event Object Status EQUAL Pending Approval (Fail if none exist = false).
  2. Create rule (Event: Permitting) Custom Field: Permit Outcome-Permit Outcome Verified By IS NOT NULL .
  3. Reuse rule (Event: Permitting) Custom Field: Permit Outcome-Permit Approved IS NOT NULL (the AHJ approval date; already exists and is global).
  4. Create rule (Event: Permitting) Custom Field: Permit Outcome-Permit Rejection Attributable EQUAL Engineering.

Permit Approved

  1. 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

  1. Edit Permit Rejected - Engineering Review: add the rules from steps 2 and 5 with AND.
  2. 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)

  1. 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.
  2. Create a Banner Submit first. Condition: Event in Ready to Submit Permit AND ((Event: Permitting) Custom Field: Permit Outcome-Permit Outcome EQUAL Approved OR (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.
  3. Create a Banner Approval details missing. Condition: (Event: Permitting) Custom Field: Permit Outcome-Permit Outcome EQUAL Approved AND 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."
  4. 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

  1. On a Permit Submission task at Ready to Submit Permit, set Outcome = Approved. Permit Approved stays disabled and the Submit first banner shows.
  2. Click Submitted. Permit Approved stays disabled until the approval date and Verified By are filled, then it works.
  3. 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.
  4. Cancel the test tasks and the Scope Review created on 28349.

New SOP

Permitting team

  1. 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.
  2. 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.
  3. 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.
  4. 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

  1. Remove the added rules from Permit Approved, Permit Rejected - Engineering Review and Permit Rejected - Resubmit, so each condition matches the Review section above.
  2. 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.

  1. 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 Engineering split carries over exactly.
  2. 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 NULL already 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.
  3. 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).