ZT-558 · Permitting: revised plans reach an open Permitting block

Status Done (2026-11-10); first real revision still to be watched
Ticket ZT-558
Requested by Michael Lowry (Permitting chat review, Oct 14 – Nov 6; Natalie's Oct 16 report); scope extended by KAJ Jacobs's Permitting click review (2026-11-06, items 5 and 9)
Made by KAJ Jacobs (Albatross audit data: field 2026-11-09 18:13 UTC; controls 20:45–22:51 UTC). Asked by Michael Lowry.
Date made 2026-11-09
Sections affected 07 · Permitting; 05 · Design and engineering (Plan Set, Engineering Stamps)
Project types Residential and Battery Only (both use the Permitting block). R&R has its own Permitting block and isn't affected (see ZT-563).

Decisions (KAJ Jacobs, 2026-11-06)

  1. Why the Oct 16 autos were archived: Resurface Permitting Block (auto) and Revision Received – Ready to Resubmit (auto), built Oct 16 on the Permit Submission task and archived Oct 19, were archived because KAJ likely just wanted to use different controls. There was no deeper problem with them to design around. They tried to bring revisions back to Permitting while a permit was pending. No other control covers this; ZT-558 replaces them at block level (Flag Revision for Open Permitting (auto) and Revised Plans Received (auto)).
  2. Landing status confirmed: a revision lands at Review Revision and Resubmit, or Review As-Built and Resubmit once installation has started. Natalie's confirmation is no longer needed.
  3. Keep the as-built branch: Revised As-Built Plans Received (auto) and the Engineering Stamps / Plan Set Flag autos cover Open As-Built (auto) / Open As-Built Permit (auto) too, not only revisions.
  4. Open Permit Submission tasks after Reject Plan Set: leave them as they are. They wait in their task queue for the new plans.
  5. Build order: build after ZT-573 (its new Populate Revision (auto) / Populate As-Built (auto) conditions).

Request

When Engineering finishes revised plans while the job's Permitting block is still open, nothing reaches Permitting: no block opens, the open block doesn't move and nobody is told. Natalie's team finds out from a tech or the AHJ. KAJ moves the block by hand today (28324: restamp completed Oct 7, block moved by hand Oct 16).

Separately, Reject Plan Set sends the job back to Engineering but leaves the Permitting block in its submission queue, so the team keeps seeing a job that's with Engineering.

Proposed solution

  1. Plan Set and Engineering Stamps stamp a new project date, Revised Plans Ready for Permitting, when revised plans are done and a Permitting block is already open (the "else" branch of the four creators).
  2. A new Permitting auto, Revised Plans Received (auto), moves the open block to Review Revision and Resubmit and clears the date. A banner is the fallback.
  3. Reject Plan Set also parks the block at Pending Permit Revision, and step 2 releases it from there (click review, item 5).

Review

Checked against production through Phoenix on 2026-11-06 (see the click review, items 5 and 9, and the ZT-558 evidence). No new Phoenix queries were made for this record.

Admin checklist

Before you start

  1. Decided (KAJ, 2026-11-06): a revision lands at Review Revision and Resubmit, or Review As-Built and Resubmit once installation has started.
  2. Build after ZT-573 (its new Populate Revision (auto) / Populate As-Built (auto) conditions). Otherwise a first-time block moved here can get Rework Type = Post-Approval Revision and lose the project All Permits Approved stamp.
  3. Run Open Phoenix check 2 (ask Claude) to confirm the new Plan Set and Engineering Stamps autos won't fire on old blocks at go-live. Done 2026-11-06: 0 matches. Re-check just before the build if it's more than a week later.

Field

  1. Create project field Revised Plans Ready for Permitting (Date) and add it to the Project Milestones section, read-only.

Rules

  1. Create rule (Project) Custom Field: Project Milestones-Revised Plans Ready for Permitting IS NOT NULL (global).
  2. Create rule (Process Block: Permitting) System Data: Process Block Object Status IN Submission Prep, Ready to Submit Permit, Not Ready to Submit, Pending All Permits Approved, Pending Permit Revision, Review Revision and Resubmit (Fail if none exist = false).
  3. Create rule (Process Block: Permitting) System Data: Process Block Object Status EQUAL Pending Permit Revision (Fail if none exist = false).

Engineering Stamps

  1. Create auto control Flag Revision for Open Permitting (auto). Condition: copy the rules of Open As-Built (auto) without (Project) Custom Field: Project Milestones-Installation Started IS NOT NULL , and with There is an Active Permitting Block true (not negated). Keep (Process Block: Engineering Stamps) System Data: Process Block Object Status EQUAL Restamp (Fail if none exist = false), (Process Block: Scope Review) Custom Field: Rework-Post-Rework Flow IN Permitting and the stamps-uploaded group. Action: set Revised Plans Ready for Permitting (new field, OSC assigned when created) = now. Place it in Automatic Controls.

Plan Set

  1. Create auto control Flag Revision for Open Permitting (auto). Condition: copy the rules of Open As-Built Permit (auto) (Ready for Revision QC, Post-Rework Flow = Permitting, QC pass, stamps not required, not holding for install) without the top-level (Project) Custom Field: Project Milestones-Installation Started IS NOT NULL (keep the copy inside the "not holding for install" group), and with There is an Active Permitting Block true. Action: set Revised Plans Ready for Permitting (new field) = now. Place it in Automatic Controls.

Permitting

  1. Create auto control Revised Plans Received (auto), tick Allow Reset Run Flag. Condition: step 5 rule AND step 6 rule AND (Project) Custom Field: Project Milestones-Installation Started IS NULL . Actions, in order: (a) block status → Review Revision and Resubmit; (b) clear Revised Plans Ready for Permitting (new field); (c) Reset Other Control: Revised Plans Received (auto).
  2. Create auto control Revised As-Built Plans Received (auto), tick Allow Reset Run Flag. Condition: step 5 rule AND step 6 rule AND (Project) Custom Field: Project Milestones-Installation Started IS NOT NULL . Actions, in order: (a) block status → Review As-Built and Resubmit; (b) clear Revised Plans Ready for Permitting; (c) Reset Other Control: Revised As-Built Plans Received (auto).
  3. Edit Reject Plan Set: add action block status → Pending Permit Revision (after the existing actions), and add the step 7 rule to its condition as NOT. Place it on Permit Details: it isn't on any screen section today.
  4. Create a Banner Revised plans received on Permitting. Condition: step 5 rule. Text: "Engineering finished revised plans on [date]. If this block hasn't moved to Review Revision / Review As-Built, post in the Permitting chat so KAJ can move it." Place it at the top of Permit Details. Place the two autos from steps 10 and 11 in Automatic Controls.

Test on 28349 (no staging run: Michael Lowry, 2026-11-06)

  1. With the Permitting block at Pending All Permits Approved and installation not started, complete a revision restamp on Engineering Stamps. The date is stamped, the block moves to Review Revision and Resubmit and the date is cleared. Rework Type stays blank if the project's All Permits Approved is empty.
  2. Do a second revision on the same project. The block moves again. If it doesn't, the banner shows: tell Claude (the reset doesn't re-fire, as in ZT-531).
  3. Click Reject Plan Set: the block goes to Pending Permit Revision and the button turns grey. Complete the revised plan set in Plan Set: the block moves to Review Revision and Resubmit.
  4. Cancel the test Scope Review, Plan Set / Engineering Stamps blocks and tasks created on 28349, and clear the test date.

New SOP

Permitting team

  1. Revised plans from Engineering now land in Review Revision and Resubmit (or Review As-Built and Resubmit after installation) even when the job's permit is still pending. Work them from that queue.
  2. The block keeps its existing Permit Submission tasks. Use the open task for the resubmission, or add one if the permit was already approved, then click Submitted as usual.
  3. When the plan set is wrong, click Reject Plan Set. The block moves to Pending Permit Revision (Permitting Hold queue) and leaves your submission queue. Leave any open Permit Submission task as it is. When Engineering sends the new plans, the block comes back to Review Revision and Resubmit by itself.
  4. If you see the Revised plans received banner on a block that didn't move, post in the Permitting chat.

Engineering: no change. Finish revisions as today.

KAJ: moving blocks by hand for revised plans should stop; only banner cases need a hand move.

Rollback

  1. Archive the two Flag Revision for Open Permitting (auto) controls, Revised Plans Received (auto), Revised As-Built Plans Received (auto) and the banner.
  2. On Reject Plan Set, remove the Pending Permit Revision action and the NOT rule. Move any block left at Pending Permit Revision back by hand.
  3. The field and rules can stay; they do nothing when unused.

Open Phoenix checks

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

  1. Answered: yes. There is an Active Permitting Block (rule 689, global) is a block-status IN rule on Permitting (not R&R Permitting) over Submission Prep, Not Ready to Submit, Pending All Permits Approved, Pending Permit Revision, Pending Stamps, Ready to Submit Permit, Review As-Built and Resubmit and Review Revision and Resubmit. All three ON HOLD statuses count. Only All Permits Approved, No Permit Required and Canceled don't.
  2. Answered: 0 at go-live. Only one Engineering Stamps block is at Restamp (28125, Finalization) and two Plan Sets are at Ready for Revision QC (17416 and 27202, both Canceled projects). None of them has an active Permitting block, so neither Flag auto matches anything today.
  3. Answered: none of 311, 549, 331 or 548 has Allow Reset Run Flag, and no control resets them. There's nothing to copy. Each revision normally opens a new Plan Set and Engineering Stamps block (the projects in check 5 have 3 to 8 Scope Reviews each), so once per block is enough for the Flag autos.
  4. Answered: Reject Plan Set (591) is not placed on any screen section, and it's not repeatable. Step 12 must place it.
  5. Answered: 5 projects have an open Permitting block at Pending All Permits Approved whose Plan Set reached QC Passed and Engineering Stamps reached Complete after the block last moved: 26513 (done Nov 4; block last moved Oct 26), 26684 (Nov 3; Oct 28), 27501 (Oct 28; Sep 29), 28247 (Nov 4; Oct 30), 28954 (Nov 5; Oct 29). Each had a recent Scope Review, so they look like dropped revisions. Post-Rework Flow wasn't readable on those Scope Reviews, so KAJ should confirm each before moving it by hand.
  6. Answered: no guard. Revision QC Passed - No Stamps (546) has no There is an Active Permitting Block rule. Its actions are Plan Set → QC Passed, create Permitting at Review Revision and Resubmit, and create NEM Application at Resubmit. Clicked while a Permitting block is open, it creates a duplicate. That belongs to ZT-503; not changed here.
  7. Answered (all local to their block, so usable on the new controls there):
    • Stamps uploaded (548, Engineering Stamps): (NOT (Process Block: Scope Review) Custom Field: Review Details-Engineering Stamps Required IN Electrical OR (that rule AND (Process Block: Engineering Stamps) Custom Field: Plan Set Stamps-Electrical Firm IS NOT NULL , …-Electrical Stamp Uploaded IS NOT NULL , …-Electrical Stamp Provided By IS NOT NULL )) AND (NOT (Process Block: Scope Review) Custom Field: Review Details-Engineering Stamps Required IN Structural OR (that rule AND …-Structural Firm IS NOT NULL , …-Structural Stamp Uploaded IS NOT NULL , …-Structural Engineering Letter Uploaded IS NOT NULL , …-Structural Stamp Provided By IS NOT NULL )). Status rule: (Process Block: Engineering Stamps) System Data: Process Block Object Status EQUAL Restamp (Fail if none exist = false); flow rule: (Process Block: Scope Review) Custom Field: Rework-Post-Rework Flow IN Permitting.
    • QC pass (331, Plan Set): (Process Block: Plan Set) Custom Field: Quality Control Details-All Bill of Materials Verified IS NOT NULL AND …-All Bill of Materials Verified By IS NOT NULL AND …-Quality Control Completed IS NOT NULL AND …-Quality Control Completed By IS NOT NULL AND …-Quality Control Result IS NOT NULL AND (…-Quality Control Result EQUAL Pass OR (…-Quality Control Result EQUAL Pass with Feedback AND …-Quality Control Feedback IS NOT NULL AND …-Quality Control Feedback Category IS NOT NULL )). Also on 331: (Process Block: Plan Set) System Data: Process Block Object Status EQUAL Ready for Revision QC (Fail if none exist = false), (Process Block: Scope Review) Custom Field: Rework-Post-Rework Flow EQUAL Permitting, NOT (Process Block: Scope Review) Custom Field: Review Details-Engineering Stamps Required IN Structural, Electrical (stamps not required), and the "not holding for install" group NOT (All Permits Approved AND (NEM Application Approved OR NEM Pre-Approval) AND NOT Installation Verified AND Installation Started AND NOT Sent to Permitting Early AND (NOT Electrical Service Change Required OR ESC Complete)). The Installation Started rule to drop is (Project) Custom Field: Project Milestones-Installation Started IS NOT NULL (it appears once outside that group; keep the copy inside the group).

Checklist changed by the Phoenix check: step 3 is answered (0 matches at go-live). Step 9 now says to keep the Installation Started rule inside the "not holding for install" group and drop only the top-level one. Step 12 now places Reject Plan Set on Permit Details (it isn't placed today). (Step numbers above are after the renumbering below.)

Checklist changed by KAJ's decisions (2026-11-06): step 1 is decided (landing statuses); the old step 2 (record why the Oct 16 autos were archived) is removed, since the reason was only a preference for different controls; the build-order step now says "after ZT-573". Steps 3 onwards moved up by one.

Config check

Config check, 2026-11-10 (Claude, Phoenix): pass, with one intended difference.