ZT-565 · On-hold jobs stay in the permit approval queues, and Permitting is told
| Status | Done (KAJ, 2026-11-06) |
| Ticket | ZT-565 |
| Requested by | Michael Lowry (Permitting chat review, Oct 14 – Nov 6); click review item 10 (KAJ Jacobs, 2026-11-06) |
| Made by | KAJ Jacobs, through Claude in Chrome (Albatross audit data, 2026-11-07 00:30–00:55 UTC) |
| Date made | 2026-11-06 |
| Sections affected | 07 · Permitting (Permitting block, Permit Submission task); 12 · R&R Permitting (R&R Permit Submission task rows on the same queue) |
| Project types | Residential and Battery Only (Permitting block). R&R only if the Open Phoenix check below shows its rows need it. |
Decisions (Michael Lowry, 2026-11-06)
- On-hold jobs stay out of the submission queues.
- Already-submitted jobs stay in the pending approval queues while on hold.
- The Permitting Manager is notified when a submitted job goes on hold.
Decisions (KAJ Jacobs, 2026-11-06)
- Notification statuses: the queues get all six hold statuses; the notification leaves out Pending Engineering Review (set by Permitting's own rejection buttons) but keeps Pending Revision (no Permitting button sets it: Open Phoenix check 3).
- Cancellation in Progress stays out of the queues and the notification. Cancellations have Close Open Permits and the Post-Cancellation Permit Check queue.
Request
When a project goes on hold, it drops out of every Permitting queue, including the approval queues. Permits already at the AHJ stop being tracked. That caused most of the "no active department" requests: 14 projects held on Oct 14 and released by hand on Oct 30 and Nov 4, and 28520 at Pending Revision. Nobody in Permitting is told when a submitted job goes on hold.
Proposed solution (ticket draft): add the on-hold project statuses to the two approval queues, keep them out of the submission queues, and add one auto control that notifies the Permitting Manager.
Review
Checked against production through Phoenix on 2026-11-06 (ticket evidence and the click review, item 10). No new Phoenix queries for this record.
- The draft is sound. Queue rows can list project statuses one by one. Finalized was added that way on Oct 14 (rows 2351, 2354, 2359, 2364, KAJ), and New AHJ Research Needed lists On Hold, Pending Change Order, Pending Revision and Pending Engineering Review. So the build is a set of queue rows plus one notification control.
- List the statuses one by one, not an ON HOLD base row. Seven project statuses have an ON HOLD base, including Cancellation in Progress. A base row would bring cancellations into the approval queues, which the draft leaves out on purpose.
- Statuses and controls:
- Permit Rejected - Engineering Review (Permit Submission task) sets the project to Pending Engineering Review. It doesn't move the block, so the block stays at Pending All Permits Approved with First Permit Submitted filled. With the draft's condition, the new auto would fire on every Engineering rejection, so the notification leaves out Pending Engineering Review (KAJ decision 1). The queue side is fine: while Engineering reworks, the new task at Ready to Submit Permit stays out of the submission queue, and the block stays visible in Pending All Permits Approved.
- Since ZT-548 no button sets On Hold. It's set from the project Edit form. Sales Hold and Legal Hold have their own buttons.
- The new auto fires once per block. That's fine for the usual single hold per job. A second hold on the same block won't notify; nothing resets the run flag (resets are unreliable, ZT-531).
- Pending All Permits Approved is itself an ON HOLD block status. The queue row for the block status is unchanged. Only project-status rows are added.
- Downstream blocks: none. Queue rows and a notification don't change any status.
- Fields: none changed. The condition reads First Permit Submitted (Project Milestones), stamped by Submitted.
- Work queues:
- Pending All Permits Approved (Permitting block, 8-day SLA): add six project-status rows. 4 blocks hidden today will appear: 26172 (Pending Change Order), 27181 (Pending Engineering Review), 28992 (Pending Revision), 28949 (Sales Hold).
- Pending Permit Approval (Permit Submission task): add the same six rows for the Residential task.
- R&R rows on Pending Permit Approval (2743–2746, Oct 29: ACTIVE, ON HOLD, Pending Approval). If the ACTIVE and ON HOLD rows are the queue's project-status filter (as found on the Roof queues in ZT-546), R&R tasks already show for every on-hold project, Cancellation in Progress included, and need nothing new. If they're the task's own status base, add the six statuses to the R&R rows too. Open Phoenix check 1 settles it. No R&R project was On Hold on Nov 4 (ZT-548), so either way the effect is small today.
- Submission queues (Ready for Submission Prep, Review Revision and Resubmit, Review As-Built and Resubmit, Ready to Submit Permit, Pending Permit Submission) stay as they are. Pending Permit Submission has an ON HOLD row: if it's a project-status filter, it already shows on-hold jobs, which goes against Decision 1 (Open Phoenix check 2).
- SLA: on-hold jobs can sit longer than 8 days. Expect more SLA breaches in Pending All Permits Approved. That's the point: they're visible. Use the queue note to say why.
- Overlap with ZT-562 (task 07), same queues:
- ZT-562 removes row 2372 (Pending All Permits Approved on the Ready to Submit Permit queue) and keeps the Finalized rows 2351, 2354, 2359, 2364.
- ZT-565 adds rows to Pending All Permits Approved and Pending Permit Approval. It doesn't remove or edit any existing row, including the Finalized row on Pending Permit Approval and row 2372.
- Build them in either order. If ZT-562 changes its mind and removes the Finalized rows, it still doesn't touch the rows added here.
- Customer and rep messages: no customer message. One new internal notification to the Permitting Manager position. There's no Permitting owner type. Other controls already notify positions.
- Projects in flight:
- The 4 hidden blocks above already meet the condition (hold status, block at Pending All Permits Approved, and probably First Permit Submitted). When the auto is built, expect up to 3 notifications straight away (27181 is at Pending Engineering Review, excluded by KAJ decision 1). Tell the Permitting Manager.
- The 52 Residential projects still On Hold after ZT-548 (Nov 4) appear in the approval queues only if they have an open Permitting block or a Permit Submission task at Pending Approval. That's intended.
- Open Permit Submission tasks at Pending Approval on on-hold projects: not counted (Open Phoenix check 4).
- Money and integrations: none.
- Reporting: Pending All Permits Approved and Pending Permit Approval counts go up by the on-hold jobs. Anyone who reads those queue counts as "active work" should know.
- Project types: Residential and Battery Only. R&R depends on Open Phoenix check 1.
Admin checklist
Before you start
- Decided (KAJ, 2026-11-06): (a) the six queue statuses: On Hold, Pending Revision, Pending Engineering Review, Pending Change Order, Sales Hold, Legal Hold (not Cancellation in Progress); (b) the notification leaves out Pending Engineering Review and keeps Pending Revision.
- Confirm the notification goes to the Permitting Manager position, and tell them to expect up to 3 notifications for current jobs when step 9 is built.
- Heads-up to ZT-562 (task 07): this ticket only adds rows to Pending All Permits Approved and Pending Permit Approval. It doesn't touch the Finalized rows or row 2372.
Queues (add each status as a separate project-status row, the same way Finalized was added on Oct 14. Don't add an ON HOLD base row: it would also bring in Cancellation in Progress.)
- Queue Pending All Permits Approved, Permitting block rows: add project statuses On Hold, Pending Revision, Pending Engineering Review, Pending Change Order, Sales Hold, Legal Hold.
- Queue Pending Permit Approval, Permit Submission task rows: add the same six project statuses.
- Queue Pending Permit Approval, R&R Permit Submission task rows: add the same six project statuses. (Phoenix check: the existing ON HOLD row isn't a project-status filter, so on-hold R&R jobs are hidden today.)
- Submission queues Ready for Submission Prep, Review Revision and Resubmit, Review As-Built and Resubmit, Ready to Submit Permit and Pending Permit Submission: add nothing, and leave the ON HOLD row on Pending Permit Submission (Phoenix check: it isn't a project-status filter).
Notification (Permitting block)
- Create a global rule for the project status, built as
(Project) System Data: Project Object Status IN On Hold, Pending Revision, Pending Change Order, Sales Hold, Legal Hold. If the rule builder has no IN, use OR of single EQUAL rules and reuse the existing(Project) System Data: Project Object Status EQUAL On Hold. - Create control Notify Permitting – On Hold After Submission (auto) on the Permitting block: Button, auto, not repeatable. Condition, with AND: the step 8 rule; the existing
(Project) Custom Field: Project Milestones-First Permit Submitted IS NOT NULL; and the existing(Process Block: Permitting) System Data: Process Block Object Status EQUAL Pending All Permits Approved (Fail if none exist = false). - Add its action: Notify position Permitting Manager: "Project placed on hold after permit submission. Check the permit at the AHJ." No field is set.
- Place it in the Permitting block's Automatic Controls section. It fires once per block; a second hold on the same job won't notify.
Test on 28349 (canceled test project)
- On 28349, have a Permitting block at Pending All Permits Approved with First Permit Submitted filled and a Permit Submission task at Pending Approval. Set the project status to Pending Engineering Review: the block and task show in the approval queues, and no notification is sent.
- Set the project status to Pending Change Order. Confirm: the block shows in Pending All Permits Approved, the task shows in Pending Permit Approval, the Permitting Manager got the notification, and 28349 isn't in Ready to Submit Permit or Pending Permit Submission.
- Set it to Sales Hold: no second notification (it fires once per block).
- Set 28349 back to Canceled and cancel any test task or block.
New SOP
Permitting Manager
- When you get "Project placed on hold after permit submission", open the project and check the permit at the AHJ.
- Decide whether to keep it, request an extension or withdraw it. Write the decision in the Permitting queue note.
- You get one notification per job. If a job goes on hold a second time, you won't be told again.
Permitting team
- On-hold jobs with a permit already submitted stay in Pending All Permits Approved and Pending Permit Approval. Keep tracking them. Use the queue note to say why the job is on hold.
- Jobs put on hold before submission don't show in the submission queues until the hold is lifted. Don't submit a permit for an on-hold job.
Reporting (heads-up, outside Albatross): approval-queue counts now include on-hold jobs.
Rollback
- Remove the project-status rows added in steps 4–7 (restore the Pending Permit Submission ON HOLD row if it was removed).
- Archive Notify Permitting – On Hold After Submission (auto). The rule can stay.
Open Phoenix checks
Checked against production through Phoenix on 2026-11-06.
- Answered: not a project-status filter. Rows 2743–2746 (R&R) follow the same pattern as the Residential rows 92–95 (ACTIVE, ACTIVE, ON HOLD, Pending Approval). The queue log shows the project filter is ACTIVE only: Permit Submission tasks at Pending Approval on 26172 (Pending Change Order), 28949 (Sales Hold) and 28992 (Pending Revision) are not in Pending Permit Approval today, and no project with an ON HOLD status is in that queue (it holds Installation Prep, Inspection, Installation, Engineering, Qualification and one Finalized project, which came in through the explicit Finalized row 2364). So the ON HOLD row is the block's or task's base status, not the project's. R&R tasks on on-hold projects are hidden too, so step 6 must add the six statuses to the R&R rows. No R&R task is at Pending Approval on an on-hold project today.
- Answered: not a project-status filter. Pending Permit Submission (rows 88–91: ACTIVE, ACTIVE, ON HOLD, Pending Submission) has the same pattern, so its ON HOLD row isn't letting on-hold projects in. Pending Submission itself has an ON HOLD base. Leave the row (step 7 removes nothing). The queue is empty today.
- Answered: Pending Revision is set only by Needs Revised Plans (auto) (Scope Review, 302) and Update Project Status: Pending Revision (auto) (Change Order, 329). No Permitting button sets it, so the notification keeps Pending Revision, as in the default. Note that 302 can follow an Engineering rejection's rework, so a job rejected to Engineering can still notify later at Pending Revision. Pending Engineering Review is set by 11 buttons, including two Permitting ones: Permit Rejected - Engineering Review (214) and Reject Plan Set (591, Permitting block). That supports leaving it out.
- Answered: 9 Permit Submission tasks at Pending Approval sit on 6 projects in the six hold statuses: 26172 (2 tasks), 28949 (2), 28992 (2), 6204 (On Hold, block already All Permits Approved), 10514 (On Hold, block at Ready to Submit Permit), 19702 (On Hold, block at Not Ready to Submit). They'll appear in Pending Permit Approval after step 5. A 10th, 28747, is at Cancellation in Progress and stays out. First Permit Submitted is filled on 26172 (2026-10-27), 28949 (2026-10-28), 28992 (2026-11-03) and 27181 (2026-09-01), so 26172, 28949 and 28992 will notify on build (27181 is at Pending Engineering Review, excluded).
- Answered: reuse
(Process Block: Permitting) System Data: Process Block Object Status EQUAL Pending All Permits Approved (Fail if none exist = false)(rule 432, local to Permitting, so usable on the new control). A project-status IN rule already exists, so the builder supports IN:(Project) System Data: Project Object Status IN Pending Engineering Review, Pending Revision(rule 3527). The global(Project) System Data: Project Object Status EQUAL On Holdis rule 1149. - Answered: Permitting Manager has one active user, Natalie Eldeek (primary position, Permitting). The Notify action supports a position recipient (used by 4 existing actions).
Checklist changed by the Phoenix check: step 6 is no longer "skip if": add the six statuses to the R&R rows. Step 7: leave the Pending Permit Submission ON HOLD row in place. Step 9 names rule 432 for the block status.
Checklist changed by KAJ's decisions (2026-11-06): step 1 is decided; step 8 keeps Pending Revision in the notification rule.
Config check
Partial, 2026-11-06 (Claude, Phoenix). Queues pass; the alert doesn't fire yet.
- Queues (steps 4–6): pass. The six statuses On Hold, Pending Change Order, Pending Revision, Pending Engineering Review, Legal Hold and Sales Hold are now rows on Pending All Permits Approved (Permitting block) and Pending Permit Approval (Permit Submission and R&R Permit Submission tasks). Submission queues untouched (step 7).
- Rule (step 8): pass. New global rule
(Project) System Data: Project Object Status IN Legal Hold, On Hold, Pending Change Order, Pending Revision, Sales Hold(Pending Engineering Review left out, as decided). - Control (steps 9–11): built as written. Notify Permitting – On Hold After Submission (auto) on the Permitting block, in Automatic Controls. Its condition is the new rule AND First Permit Submitted filled AND block at Pending All Permits Approved. Albatross has no "notify position" action, so it uses Send Alert Notification to position Permitting Manager, titled "Permit on hold: {{.Project.ProjectName}}".
- Test: fail at step 13. Run on 25485 (Michael Test Lowry Test), because 28349 was at Installation Prep and in use. Setting the project to Pending Change Order met every condition, but no alert was created. A save on the block didn't fire it either. Production shows the status changes and no notification. The control's evaluation log timed out, so the reason isn't confirmed. 25485 was put back to Canceled.
- Queue screen check: pass. 26172, 27181, 28992 and 28949 now show in Pending All Permits Approved (Chrome, 2026-11-06).
- Finding: a project status change alone doesn't seem to wake a block-level auto, despite DOC-GUIDE's "any transaction". Unconfirmed.
- Timed ticked, 2026-11-06 18:18 MT (KAJ, via Chrome). The alert is now live. KAJ may still archive it if Natalie doesn't want it, since the queues cover the need.
- Fix proposed (done): tick timed on the control, so the nightly run catches holds within a day. That fits the need: tell the Permitting Manager about a held, submitted job. It needs step 2's heads-up first, because the first nightly run will alert Natalie about 26172, 28992 and 28949, and that run is the real test.
- Alert confirmed (2026-11-09). The 11/07 nightly run sent 3 "Project placed on hold" alerts to Natalie Eldeek (Permitting Manager), at 09:12–09:20 UTC. They're unread so far.