ZT-573 · Permitting: one finish button per outcome (Permits Complete, No Permit Required) and Rework Type that fills itself
| Status | Done (built 2026-11-09; heads-up and 29029 fix pending) |
| Ticket | ZT-573 |
| Requested by | KAJ Jacobs (Permitting click review, 2026-11-06, items 1 and 6) |
| Made by | KAJ Jacobs, through Claude in Chrome (Albatross audit data, 2026-11-09 16:08–19:48 UTC) |
| Date made | 2026-11-09 |
| Sections affected | 07 · Permitting (Permit Details section, finish buttons, Rework Type autos, new no-permit autos); knock-on to 08 · Installation. (05, 09 and 01 dropped: Open Phoenix check 11 shows the creating controls can't set Rework Type.) |
| Project types | Residential and Battery Only (both use the Permitting block). R&R Permitting is a separate block and isn't affected. |
Questions for KAJ
- Rework Type for a revision opened by Inspection. Inspection's Needs Permit Revision opens Permitting at Review Revision and Resubmit, but Inspection only exists after installation, so by the date logic it's an as-built. The checklist sets As-Built for it (step 21), which matches what Populate As-Built (auto) would fill anyway. Say if you'd rather it be Post-Approval Revision. No longer needed: Open Phoenix check 11 shows a create action can't set the field, so steps 14–21 are dropped and the Populate autos fill As-Built on these blocks by the date logic.
Decisions (KAJ Jacobs, 2026-11-06)
- A no-permit job ends at No Permit Required. The OR branch
[(Process Block: Permitting) Custom Field: Permit Details-Permit Types Required IN No Permit Required]comes off Permits Complete. - The 20 blocks moved from No Permit Required to All Permits Approved on Oct 29 stay where they are.
- Keep the R&R option on Rework Type for now.
- One approve button for first-time permits, revisions and as-builts. The team shouldn't have to pick.
- Revisions don't open Inspection. It's already open after installation (moving a waiting Inspection is ZT-559).
- 30-day expiration on every approval. Permits Complete needs Permit Expiration Date more than 30 days out on first-time permits, revisions and as-builts alike. (Also answers ZT-564 question 4.)
- One approve button, Battery Only included. The team sees only Permits Complete. Battery-only differences are handled by automations, not a second button. All Permits Approved (Battery Only) is archived, not edited and placed.
- One No Permit Required button replaces the three (No Permit Required - Send to Install, - Install Already Started, (Battery Only)). The button only sets the status and the block's own date; autos create Installation and stamp the project date. Every old behaviour is kept (see Review).
- Rework Type stays editable, so the team can correct it. The Populate autos only fill it when blank and never overwrite. Explore setting it from the control that creates the Permitting block, one-to-one (see Review and Open Phoenix check 11).
- Staging first if staging's Permitting block is set up like production, then a short repeat on 28349. If staging isn't close enough, go straight to 28349.
- No-permit revisions and as-builts (e.g. 28850) stay without the Latest Permit Revision Approved stamp for now, so ZT-559 won't move a waiting Inspection for them and Open Inspection after As-Built Approved (auto) won't open one. Open a follow-up ticket if it causes problems.
Request
The Permitting team should see one button per outcome: Permits Complete for any permitted block (first-time, revision or as-built), and No Permit Required for no-permit jobs. Automations handle the differences that today depend on picking the right button and on Rework Type, which is usually blank or wrong.
Proposed solution (click review, items 1 and 6)
- Rework Type fills itself from two project dates (All Permits Approved, Installation Started) and becomes read-only. (Changed by decision 9: it stays editable.)
- Permits Complete drops the Rework Type, Installation Started and No Permit Required checks, and only moves the block and stamps the block date.
- Two new autos do the rest: First-Time Permits Approved (auto) (project date and closer/setter notice) and Revision Approved (auto) (Latest Permit Revision Approved).
- Archive the two revision buttons and the Rework Type Set banner.
- The No Permit Required buttons are visible, and can't be used while a permit is in progress. (Changed by decision 8: one button plus two autos.)
Review
Checked against production through Phoenix on 2026-11-06 (see the click review, items 1 and 6, and 07 · Permitting, regenerated 2026-11-06). The redesign after KAJ's decisions 6–11 made no new Phoenix queries; what's still unknown is under Open Phoenix checks (11–14).
Statuses and controls today:
- Permits Complete (262, renamed from All Permits Approved on Oct 29): every listed permit approved (Building Permit Approved and siblings), ESC permit approved if separate,
not [There is at least one active or on hold Permit Submission event], Permit Expiration Date filled, and not Rework Type As-Built, not Rework Type Post-Approval Revision, not Installation Started. No battery-only exclusion: KAJ removed it on Oct 29 (22:25–23:04 UTC, Untracked) and placed the button a second time, so it's on Permit Details and Permitting Milestones. Since Oct 29 an OR branch also enables it whenever Permit Types Required includes No Permit Required, skipping all of that. Actions: block → All Permits Approved; All Permits Approved (Project Milestones, OSC 666) = now; All Permits Approved (Permitting Milestones, OSC 626) = now; "Permit Approved: …" to closer and to setter; reset Permit Expiring (auto). - Post-Approval Revision Approved (472): block at Pending All Permits Approved, Rework Type = Post-Approval Revision, expiration filled. Block → All Permits Approved; OSC 626. Doesn't check permits at all. Not placed on any screen section.
- As-Built/Post Install Revision Approved (473): permits approved, Rework Type = Post-Approval Revision or As-Built, expiration filled, installation started. Block → All Permits Approved; OSC 626; Latest Permit Revision Approved (Project Milestones, OSC 4399). No scope check, so it's also the battery-only as-built path.
- All Permits Approved (Battery Only) (1208): the same checks as 262 (before Oct 29) for battery-only scope, including the Rework Type / Installation Started exclusions. Hidden and not placed. Its actions are the same as 262's: status, OSC 626, OSC 666, the two notifications and the Permit Expiring reset (Open Phoenix check 3). Permits Complete already covers battery-only jobs, and 1208 has no action Permits Complete lacks, so archiving it needs no new auto.
- No Permit Required - Send to Install (690): Permit Types Required includes No Permit Required, no Installation, not battery-only. Block → No Permit Required; creates Installation at Not Ready to Be Scheduled; stamps All Permits Approved twice (Project and Permitting Milestones; Open Phoenix check 12). - Install Already Started (780): No Permit Required and Installation exists; block → No Permit Required only, no stamps. (Battery Only) (1211): battery-only, no Installation; status and the two stamps, no Installation. All three were flagged hidden on Oct 29; 690 and 780 are still placed on Permit Details and clicked; 1211 isn't placed. None checks block status or open Permit Submission tasks.
- Create Install into NRTBS (auto) (1319): no block-status rule and no battery-only exclusion. It fires when every listed permit group passes (a no-permit job passes them all), the ESC group passes and no Installation exists. So it may already create Installation on a no-permit job, battery-only included, before anyone clicks (Open Phoenix check 9 and 14).
- Populate Revision (auto) (258) / Populate As-Built (auto) (471): block at Review Revision and Resubmit / Review As-Built and Resubmit → Rework Type = Post-Approval Revision (681) / As-Built (682). They don't fire; likely because the Begin … Permit (auto) controls move a new block to Ready to Submit Permit in the same save. Since Jul 1, ~120 of ~130 revision blocks have Rework Type blank, 13 revisions are marked As-Built and 13 as-builts Post-Approval Revision.
- Open Inspection after As-Built Approved (auto) (1317): block at All Permits Approved, Rework Type = As-Built, installation started, no active Inspection → creates Inspection. Kept as a safety net.
- Banners on Permits Complete (Oct 29): Missing Permit Expiration Date, Open Permit Submission, ESC Permit Not Approved, Rework Type Set (1427, "use the revision buttons").
- Permits Complete (262, renamed from All Permits Approved on Oct 29): every listed permit approved (Building Permit Approved and siblings), ESC permit approved if separate,
What goes wrong: 29027 and 29033 were closed by both Permits Complete and No Permit Required seconds apart; 28850, a revision, closed as No Permit Required. After installation a block with blank Rework Type has no enabled finish button (waiting now: 28888, 27149, 27708, 28617, 18357 at Review As-Built and Resubmit; 26511, 26985, 26635, 26684, 26513, 28145 at Pending All Permits Approved). A revision finished with Permits Complete before installation re-stamps the project's All Permits Approved and re-sends "Permit Approved" to the closer and setter.
Key risk found in review: new autos would fire on old blocks. Auto controls run on the next save of any project whose blocks meet the condition, once per block. Thousands of finished Permitting blocks already sit at All Permits Approved or No Permit Required. Without a guard, First-Time Permits Approved (auto) would stamp the project's All Permits Approved and notify closers and setters on old projects, Revision Approved (auto) would re-stamp Latest Permit Revision Approved (which ZT-559 reads to move Inspection), and the new no-permit autos would create Installation on old no-permit jobs. Fix: every new auto also needs the block's All Permits Approved (Permitting Milestones, OSC 626) to equal today, which only the approve or no-permit click in the same save sets. The two that stamp the project date also need the project's All Permits Approved empty, so a revision can never overwrite the first approval date.
First-Time Permits Approved (auto) no longer needs Rework Type blank (changed with decision 9). Rework Type can now be set when the block is created, and the team can edit it, so it's no longer a safe sign of "first time". The project's All Permits Approved being empty is: it's only empty until the first approval. Dropping the Rework Type rule also fixes 5895, 17184 and 20084 (As-Built on projects with no approval date), which would otherwise never get the project date.
One No Permit Required button (decision 8). Which auto replaces which old action:
Old button Old action New home 690, 780, 1211 Block → No Permit Required No Permit Required button (690, renamed) 690, 1211 All Permits Approved (Permitting Milestones, OSC 626) = now No Permit Required button. It's the block's own date, so it's always safe, and it's what the "today" guard on the autos reads. 780 now stamps it too (harmless, block only). 690 Create Installation at Not Ready to Be Scheduled (when none exists, not battery-only) No Permit Required - Create Installation (auto): same "no Installation" and "not battery-only" rules, plus the block at No Permit Required and the "today" guard 690, 1211 All Permits Approved (Project Milestones, OSC 666) = now No Permit Required - Stamp Project Approval (auto): only when the project date is empty, plus the "today" guard. A no-permit revision no longer overwrites the first approval date. 780 stamped nothing; it now gets the project date only if it was never set, which is the gap KAJ asked to close. The button keeps the existing rules (Permit Types Required includes No Permit Required) and adds "no open Permit Submission task" and "block still open", so it can't close a block twice or close one mid-permit. It loses the "no Installation" and "not battery-only" rules, because those now sit on the Installation auto. 780 and 1211 are archived.
Rework Type: set it from the control that creates the block (decision 9). Each control that opens a revision or as-built Permitting block knows which it is, so setting Rework Type there is one-to-one and doesn't depend on project dates:
Creating control Block Lands at Rework Type Reopen Permitting (auto) (549) Engineering Stamps Review Revision and Resubmit Post-Approval Revision Reopen Permitting (auto) (311) Plan Set Review Revision and Resubmit Post-Approval Revision Revision QC Passed - No Stamps (546) Plan Set Review Revision and Resubmit Post-Approval Revision Open As-Built (auto) (548) Engineering Stamps Review As-Built and Resubmit As-Built Open As-Built Permit (auto) (331) Plan Set Review As-Built and Resubmit As-Built No REV Needed - Forward to Permitting (1036) Scope Review Review As-Built and Resubmit As-Built Extension Not Needed - Ready to Submit As-Built Request Permit Extension task Review As-Built and Resubmit As-Built Needs Permit Revision (1163) Inspection Review Revision and Resubmit As-Built (Inspection exists only after installation; Question 1) First-time creators (QC Passed - No Stamps, First-Time Stamps Complete) leave it blank. Result (Open Phoenix check 11): it can't be done. Every creator above uses a plain Create block Permitting action with no settings beyond the starting status. "Create … copying fields" (function 26) only copies values from a field on the source to a field on the new block (pairs of OSCs); it has no fixed-value option, and Rework Type exists only on Permitting's Permit Details, so there's nothing to copy from. Steps 14–21 are dropped. The Populate autos (steps 22–23) are the main way Rework Type gets filled, and the team corrects it by hand.
Populate autos on open blocks: the new conditions only match open blocks (not All Permits Approved / No Permit Required / Canceled). On the next save they'll fill Rework Type on every open block whose project already has All Permits Approved, including the 11 waiting blocks above (wanted) and the old open blocks on Finalized projects in ZT-562 (harmless; ZT-562 cancels them). A first-time block never qualifies because the project date is empty until it's approved. If 258 / 471 already ran on a block (run flag set), they won't run there again; see Open Phoenix checks.
Will a revision stall on "every permit approved"? Each revision block gets new Permit Submission tasks from the Begin … Permit (auto) controls. Building Permit Approved and its siblings are function rules over Permit Submission tasks; whether they look at this block's tasks or every task on the project isn't known. If project-wide, the old approved tasks satisfy them and the real guard on a revision is
not [There is at least one active or on hold Permit Submission event](which is kept). If block-only, every listed type needs a new approved or Permit Not Needed task, which is the right behaviour but stricter than 472 today. Either way nothing is skipped. Checked in Open Phoenix checks and in the test.30 days on every approval (decision 6): in the last 90 days about 1% of approvals had the date 30 days or less out (ZT-564 check 6). An as-built late in a permit's life is blocked until the permit is extended, which is wanted.
Downstream blocks:
- Installation: for a no-permit job, created by No Permit Required - Create Installation (auto) (replacing 690's action) or by 1319, whichever runs first; both need "no Installation". On the 25 most recent no-permit closes, Installation already existed days or weeks before the block reached No Permit Required (Open Phoenix check 14), so the new auto is mostly a safety net. Whether both can fire in the same save and make two Installation blocks is a UI check (step 48). Permitted jobs are unchanged (Create Install into Preschedule (auto) / 1319).
- Inspection: 1317 still opens Inspection for an as-built at All Permits Approved; Rework Type is now filled more often, so it works more often than today.
- ZT-559 reads Latest Permit Revision Approved, which Revision Approved (auto) now stamps for every approved revision, not only after installation. ZT-559 depends on this ticket. No-permit revisions don't stamp it (decision 11).
- ZT-558's moves to Review Revision and Resubmit get Rework Type filled by the new Populate Revision condition. Correct. ZT-558 is built after this ticket.
- ZT-564's Extension Not Needed - Ready to Submit As-Built opens a block at Review As-Built and Resubmit; Populate As-Built (auto) fills its Rework Type (step 20 dropped).
Fields: Rework Type (OSC 1397, Permit Details) stays editable. No new fields. Fields set by actions: All Permits Approved (Project Milestones, OSC 666), All Permits Approved (Permitting Milestones, OSC 626), Latest Permit Revision Approved (Project Milestones, OSC 4399), Rework Type (OSC 1397).
Work queues: no status is added, renamed or removed. Rework Type doesn't drive a queue.
Customer and rep messages: "Permit Approved: …" to closer and setter moves from Permits Complete to First-Time Permits Approved (auto): same text, same moment, but only for the first approval. Revisions finished with Permits Complete no longer re-send it. Battery-only jobs get it the same way (1208 sent it too). No-permit jobs: no change (none of the three old buttons sent it).
Projects in flight: the 11 blocks waiting with blank Rework Type get it filled on their next save and can then be finished with Permits Complete. Open blocks with a wrong Rework Type keep it (the autos only fill blanks); the team or KAJ corrects those by hand (step 49). The 20 Oct 29 blocks stay at All Permits Approved; the "today" guard keeps the new autos off them.
Money and integrations: none. No pay, commission, NetSuite or Send to… control reads project All Permits Approved, Latest Permit Revision Approved or Rework Type (Open Phoenix check 7).
Reporting: project All Permits Approved now keeps the first approval date instead of being overwritten by revisions approved with Permits Complete or No Permit Required. Latest Permit Revision Approved is filled for every approved revision, including pre-install ones. Rework Type becomes reliable. Tell whoever reports on permit approval dates.
Project types: Residential and Battery Only (262, 690 and the new autos; 1208, 780 and 1211 archived). R&R Permitting not affected; the R&R option on Rework Type stays and counts as "filled" for Revision Approved.
Admin checklist
All on the Permitting block unless stated. Before editing Permits Complete and No Permit Required - Send to Install, copy their current condition and actions somewhere safe (they're also in docs/sections/07-permitting.md) for rollback.
Before you start
- Decisions made (KAJ, 2026-11-06): no-permit jobs end at No Permit Required; one approve button; R&R option stays; revisions don't open Inspection; the 20 Oct 29 blocks stay.
- Decisions made (KAJ, 2026-11-06, second round): 30 days on every approval; Battery Only uses Permits Complete (archive 1208); one No Permit Required button; Rework Type stays editable; staging first if it matches; no-permit revisions get no revision stamp for now. Still open: Question 1 (Inspection's revision → As-Built).
- Claude runs the Open Phoenix checks in the change record (11–14), so the rule names and the Rework Type option (steps 14–21) are settled. Done 2026-11-06: steps 14–21 dropped; step 10's rule must be created.
- Heads-up to the Permitting team (Natalie): the revision buttons, the Battery Only button and two of the three No Permit Required buttons are going away. Use Permits Complete for everything permitted (Battery Only too) and No Permit Required for no-permit jobs. Rework Type now fills itself; correct it if it's wrong.
Rules (create as global rules)
- Create rule
(Process Block: Permitting) Custom Field: Permit Details-Rework Type IS NULL. - Create rule
(Process Block: Permitting) Custom Field: Permit Details-Rework Type IS NOT NULL. - Create rule
(Process Block: Permitting) System Data: Process Block Object Status IN All Permits Approved, No Permit Required, Canceled (Fail if none exist = false)(one rule, three statuses; it's always used with NOT, meaning "block still open"). - Create rule
(Process Block: Permitting) Custom Field: Permitting Milestones-All Permits Approved EQUAL current Date(the block was approved or closed in this save; keeps the new autos off old blocks). - Create a global copy of
(Project) Custom Field: Project Milestones-Permit Expiration Date GREATER THAN 21with 30 days:(Project) Custom Field: Project Milestones-Permit Expiration Date GREATER THAN 30(the 21-day one is local to the Request Permit Extension task). - Create rule
(Process Block: Permitting) System Data: Process Block Object Status EQUAL No Permit Required (Fail if none exist = false)(none exists today; Open Phoenix check 13). - Reuse:
(Project) Custom Field: Project Milestones-All Permits Approved IS NOT NULL,(Project) Custom Field: Project Milestones-Installation Started IS NOT NULL,(Process Block: Permitting) System Data: Process Block Object Status EQUAL All Permits Approved (Fail if none exist = false)(global);There is at least one active or on hold Permit Submission event,(Process Block: Permitting) Custom Field: Permit Details-Permit Types Required IN No Permit Required,(Process Block: Installation) System Data: Process Block Main EQUAL trueand the battery-only group ((Project) Custom Field: Project Data-Project Scope IN Batteryand not… IN Solar,… IN Roof,… IN R&R) as used on No Permit Required - Send to Install (all usable on Permitting).
Permits Complete
- Edit Permits Complete condition. Remove: the OR branch
[(Process Block: Permitting) Custom Field: Permit Details-Permit Types Required IN No Permit Required];not [(Process Block: Permitting) Custom Field: Permit Details-Rework Type EQUAL As-Built];not [(Process Block: Permitting) Custom Field: Permit Details-Rework Type EQUAL Post-Approval Revision];not [(Project) Custom Field: Project Milestones-Installation Started IS NOT NULL ]. Keep: every permit-type group, the ESC group,not [There is at least one active or on hold Permit Submission event]and[(Project) Custom Field: Project Milestones-Permit Expiration Date IS NOT NULL ]. Don't add a battery-only rule (there's none today, and Battery Only now uses this button). Add with AND: the step 9 rule;notthe step 7 rule;not [(Process Block: Permitting) Custom Field: Permit Details-Permit Types Required IN No Permit Required]. - Edit Permits Complete actions so they are, in order: Change Status → All Permits Approved; set All Permits Approved (Permitting Milestones, OSC 626) = now; Reset Other Control Permit Expiring (auto). Remove the All Permits Approved (Project Milestones, OSC 666) action and the two "Permit Approved: …" notifications only after step 25 is saved (copy the notification text first).
Rework Type set by the control that opens the block: dropped (Open Phoenix check 11: a create action can't set or copy Rework Type). Skip to step 22.
Engineering Stamps, Reopen Permitting (auto): set Rework Type (OSC 1397) = Post-Approval Revision on the new block.Dropped.Plan Set, Reopen Permitting (auto): the same, Post-Approval Revision.Dropped.Plan Set, Revision QC Passed - No Stamps: the same, Post-Approval Revision.Dropped.Engineering Stamps, Open As-Built (auto): As-Built.Dropped.Plan Set, Open As-Built Permit (auto): As-Built.Dropped.Scope Review, No REV Needed - Forward to Permitting: As-Built.Dropped.Request Permit Extension task, Extension Not Needed - Ready to Submit As-Built: As-Built.Dropped.Inspection, Needs Permit Revision: As-Built.Dropped.
Rework Type fills itself (the main way)
- Edit Populate Revision (auto) condition to:
[(Project) Custom Field: Project Milestones-All Permits Approved IS NOT NULL ]and not[(Project) Custom Field: Project Milestones-Installation Started IS NOT NULL ]and the step 5 rule and not the step 7 rule. Keep its action: set Rework Type (OSC 1397) = Post-Approval Revision. - Edit Populate As-Built (auto) condition to:
[(Project) Custom Field: Project Milestones-All Permits Approved IS NOT NULL ]and[(Project) Custom Field: Project Milestones-Installation Started IS NOT NULL ]and the step 5 rule and not the step 7 rule. Keep its action: set Rework Type (OSC 1397) = As-Built. - Leave Rework Type editable on Permit Details (no screen change).
Approval autos
- Create control First-Time Permits Approved (auto): Button, auto (not timed, not repeatable). Condition:
(Process Block: Permitting) System Data: Process Block Object Status EQUAL All Permits Approved (Fail if none exist = false)and the step 8 rule and not[(Project) Custom Field: Project Milestones-All Permits Approved IS NOT NULL ]. (No Rework Type rule: see Review.) - Add its actions, in order: set All Permits Approved (Project Milestones, OSC 666) = now; notification "Permit Approved: …" to the closer; the same notification to the setter (copy the text and recipients from Permits Complete). Then do the removals in step 13.
- Create control Revision Approved (auto): Button, auto. Condition:
(Process Block: Permitting) System Data: Process Block Object Status EQUAL All Permits Approved (Fail if none exist = false)and the step 6 rule and the step 8 rule. - Add its action: set Latest Permit Revision Approved (Project Milestones, OSC 4399) = now.
No Permit Required: one button, two autos
- Create control No Permit Required - Create Installation (auto): Button, auto. Condition: the step 10 rule and the step 8 rule and not
[(Process Block: Installation) System Data: Process Block Main EQUAL true]and not the battery-only group. - Add its action: Create block Installation at Not Ready to Be Scheduled (a plain Create block action, no copy-fields, the same as on No Permit Required - Send to Install; Open Phoenix check 12).
- Create control No Permit Required - Stamp Project Approval (auto): Button, auto. Condition: the step 10 rule and the step 8 rule and not
[(Project) Custom Field: Project Milestones-All Permits Approved IS NOT NULL ]. - Add its action: set All Permits Approved (Project Milestones, OSC 666) = now.
- Edit No Permit Required - Send to Install: rename it No Permit Required. Condition:
[(Process Block: Permitting) Custom Field: Permit Details-Permit Types Required IN No Permit Required]and not[There is at least one active or on hold Permit Submission event]and not the step 7 rule. Remove the "no Installation" rule and the battery-only group. - Edit its actions so they are, in order: Change Status → No Permit Required; set All Permits Approved (Permitting Milestones, OSC 626) = now. Remove the Create Installation action and the All Permits Approved (Project Milestones, OSC 666) action, only after steps 29–32 are saved.
- Clear its hidden flag (web and mobile). It's already on Permit Details (position 25).
- Don't place any of the four new autos on a screen section.
Banners and clean-up
- Edit banner Missing Permit Expiration Date: condition not the step 9 rule (and not the step 7 rule, not Permit Types Required IN No Permit Required). Text: "Permit Expiration Date must be more than 30 days away before Permits Complete. If the permit expires sooner, request an extension first."
- Create banner No Permit Job: condition
[(Process Block: Permitting) Custom Field: Permit Details-Permit Types Required IN No Permit Required]and not the step 7 rule. Text: "This job needs no permit. Close any Permit Submission task, then click No Permit Required, not Permits Complete." - Archive No Permit Required - Install Already Started and No Permit Required (Battery Only).
- Archive All Permits Approved (Battery Only).
- Archive Post-Approval Revision Approved, As-Built/Post Install Revision Approved and the banner Rework Type Set.
- Keep Open Inspection after As-Built Approved (auto) unchanged.
Test (staging first if its Permitting block matches production, then a short repeat on 28349)
- In staging, check the Permitting block has the same controls as production (Permits Complete, the Populate autos, No Permit Required - Send to Install, Create Install into NRTBS). If so, build there and run steps 45–48; then build in production and repeat steps 45 and 48 on 28349. If not, skip staging.
- On 28349, note the current values (2026-11-06: All Permits Approved 2026-11-02, Installation Started 2026-10-28, Latest Permit Revision Approved empty, Project Scope) and who the closer and setter are (they'll get the notification). Clear All Permits Approved and Installation Started for the first-time test. 28349 has no Permitting block: add one.
- First-time: open a Permitting block, list one permit type, approve its Permit Submission task, set Permit Expiration Date 20 days out. Permits Complete is disabled and the expiration banner shows. Set it 60 days out and click Permits Complete. Expect: block All Permits Approved; block and project All Permits Approved = today; closer and setter notified once; Latest Permit Revision Approved unchanged.
- Revision: open a new Permitting block at Review Revision and Resubmit. Expect Rework Type = Post-Approval Revision. Change it by hand to As-Built and save: it stays As-Built (not overwritten). Set it back. Check whether Permits Complete stays disabled until the new Permit Submission task is approved. Approve it and click Permits Complete. Expect Latest Permit Revision Approved = today; project All Permits Approved unchanged; no notification.
- As-built: set Installation Started, set Project Scope to battery only, and open another block at Review As-Built and Resubmit. Expect Rework Type = As-Built; Permits Complete is the only approve button; after it, Latest Permit Revision Approved = today and Inspection opened if none was active. Put Project Scope back.
- No-permit: clear the project All Permits Approved, cancel any Installation on 28349, and set Permit Types Required = No Permit Required on a block with an open Permit Submission task. No Permit Required and Permits Complete are disabled and the No Permit Job banner shows. Mark the task Permit Not Needed and click No Permit Required. Expect: block No Permit Required; block date = today; project All Permits Approved = today; one Installation at Not Ready to Be Scheduled (if two appear, 1319 and the new auto both fired: tell Claude). On a second block with the project date now filled, click it again: project date unchanged, no second Installation.
- Cancel the test blocks, tasks, Installation and any Inspection created, and restore the 28349 values noted in step 44.
After go-live
- Save each of the 11 waiting blocks (28888, 27149, 27708, 28617, 18357, 26511, 26985, 26635, 26684, 26513, 28145) and check Rework Type filled.
- Fix by hand the open blocks whose Rework Type is wrong (Open Phoenix check 5): set Post-Approval Revision on 26306 and 28505; on 16819 set Post-Approval Revision (As-Built before installation); on 5895, 17184 and 20084 (As-Built, project All Permits Approved empty) decide whether they're first-time blocks (clear Rework Type so no revision date is stamped). Either way the project date is now stamped when they're approved.
New SOP
Permitting team
- When every permit on the job is approved and Permit Expiration Date is more than 30 days away, click Permits Complete. Use it for first-time permits, revisions, as-builts and battery-only jobs alike.
- If Permits Complete is grey, read the banner: an open Permit Submission task, the ESC permit, or the expiration date.
- For a job that needs no permit, close or mark Permit Not Needed any Permit Submission task, then click No Permit Required. It's the only no-permit button. Installation opens by itself when needed.
- Rework Type fills itself when a revision or as-built block opens. If it's wrong, change it: Post-Approval Revision before installation, As-Built after. Your choice isn't overwritten.
Closers and setters: you still get "Permit Approved" when a job's permits are first approved. You no longer get it again for revisions.
Reporting (heads-up, outside Albatross): the project's All Permits Approved date now stays at the first approval (also for no-permit revisions); Latest Permit Revision Approved is filled for every approved permitted revision, not for no-permit ones.
Rollback
- Restore Permits Complete's condition and actions from the copy taken before step 12.
- Archive First-Time Permits Approved (auto) and Revision Approved (auto), in the same sitting as step 1.
- Restore No Permit Required - Send to Install's name, condition and actions from the copy taken before step 33, and hide it again if wanted. Archive No Permit Required - Create Installation (auto) and No Permit Required - Stamp Project Approval (auto) in the same sitting.
- Unarchive Post-Approval Revision Approved, As-Built/Post Install Revision Approved, All Permits Approved (Battery Only), No Permit Required - Install Already Started, No Permit Required (Battery Only) and Rework Type Set.
- Set Populate Revision (auto) / Populate As-Built (auto) back to their status conditions.
- The new rules and banner can stay archived or unused.
Open Phoenix checks
Checked against production through Phoenix on 2026-11-06.
- UI check. Building Permit Approved and its siblings use function 5 with these settings: event Permit Submission, Permit Type = Building, Permit Outcome = Approved. There's no block setting, so Phoenix can't show whether it looks at this block's tasks or the whole project, or whether an earlier rejected or canceled task counts against it. Test 46 settles it.
- Answered:
- No Rework Type IS NULL or IS NOT NULL rule exists (only
… EQUAL As-Builtand… EQUAL Post-Approval Revision, local to Permitting). Steps 5 and 6 create them. - Status IN format, from an existing rule:
(Process Block: Permitting) System Data: Process Block Object Status IN Confirm AHJ, Not Ready to Submit, … (Fail if none exist = true)(501). Step 7's wording matches. - EQUAL current Date format, from existing rules:
(Process Block: Energization) Custom Field: Energization Checklist-2 Week Check Passed EQUAL current Date. Step 8's wording matches. (Project) Custom Field: Project Milestones-Permit Expiration Date GREATER THAN 21(2977) is local to the Request Permit Extension task. Step 9 stands.- Step 11's reuses:
(Project) Custom Field: Project Milestones-All Permits Approved IS NOT NULL(587),(Project) Custom Field: Project Milestones-Installation Started IS NOT NULL(457) and(Process Block: Permitting) System Data: Process Block Object Status EQUAL All Permits Approved (Fail if none exist = false)(3394) are global.There is at least one active or on hold Permit Submission event(1187) and(Process Block: Permitting) Custom Field: Permit Details-Permit Types Required IN No Permit Required(1031) are local to Permitting, which is where they're used, so no copies are needed.
- No Rework Type IS NULL or IS NOT NULL rule exists (only
- Answered, in part: All Permits Approved (Permitting Milestones, OSC 626) is a Date field, not a datetime. Whether an
EQUAL current Daterule passes in the same save that sets it is a UI check. ZT-559's rule exists already:(Project) Custom Field: Project Milestones-Latest Permit Revision Approved EQUAL current Date(2765, local to Inspection), used by Permit Revision Complete (auto) (1164). All Permits Approved (Battery Only) (1208) sets OSC 626 and OSC 666, plus the two notifications and the Permit Expiring reset, the same as Permits Complete, so archiving it loses nothing. - Answered: 7,854 Permitting blocks are at All Permits Approved. 402 have Rework Type filled, 656 are on projects with All Permits Approved (OSC 666) empty, and 34 have both. The OSC 626 = today guard keeps the new autos off all of them.
- Answered: open Permitting blocks (not All Permits Approved, No Permit Required or Canceled) with Rework Type blank and project All Permits Approved filled: 18 without Installation Started (become Post-Approval Revision: 1065, 1707, 4497, 5600, 8084, 9778, 10186, 12391, 14300, 20578, 22785, 22817, 23116, 23314, 23674, 25579, 25685, 28233) and 45 with it (become As-Built; includes the 11 waiting blocks and the ZT-562 Finalized blocks). No open block has Post-Approval Revision or R&R. Open blocks whose Rework Type disagrees with the new logic (6): As-Built before installation: 16819, 26306, 28505; As-Built on projects with All Permits Approved empty: 5895, 17184, 20084 (now stamped by First-Time Permits Approved, which no longer needs Rework Type blank).
- Not checked (needs control_history). Indirect sign: 63 open blocks that the new conditions would fill still have Rework Type blank, so 258 / 471 either never ran on them or ran without filling it. The test and step 50 show it.
- Answered (controls and rules only): Rework Type (OSC 1397) is read only by Permitting controls this ticket already covers: 262, 472, 473, 1208, 1317 and the banner 1427. Latest Permit Revision Approved (OSC 4399) is read only by Permit Revision Complete (auto) (1164, Inspection, ZT-559). Project All Permits Approved (OSC 666) is read as IS NOT NULL by: Installation autos 222, 1312, 1318 and banners Permits Milestone Missing (1428), Waiting on NEM (1429); Plan Set 309, 331, 546, 1082; Install Appointment Delivery Date Confirmed (392) and Permit Approved (auto) (1315); SMS - Permit Submitted (auto) (765, the homeowner text, skips if filled); Create Installation Prep Visit - OH (auto) (1446). None reads its date value, so keeping the first approval date changes nothing for them. No pay, commission, NetSuite or Send to… control reads any of the three. Work queues filter on statuses, not fields. Reports outside Albatross can't be seen in Phoenix.
- Answered: No Permit Required - Send to Install (690) is on Permit Details at position 25 and - Install Already Started (780) at 26, below Permits Complete (16). Both are flagged hidden on web and mobile. No Permit Required (Battery Only) (1211) and All Permits Approved (Battery Only) (1208) are not placed on any section, and both are flagged hidden. As-Built/Post Install Revision Approved (473) sits on Permitting Milestones (position 6); Post-Approval Revision Approved (472) isn't placed.
- Answered: Create Install into NRTBS (auto) (1319) has no block-status rule and no battery-only exclusion; it fires when every listed permit group passes (a No Permit Required job passes them all), the ESC group passes and no Installation exists. No Permit Required (Battery Only) (1211) itself only sets the status and stamps OSC 626 and 666.
- Answered, in part: none of 258, 471, 1317 or the new autos' conditions has a project-status rule, so nothing in the conditions stops them on a canceled project. Whether Albatross evaluates autos on a canceled project at all is a UI check (the test will show it). 28349 today: All Permits Approved (OSC 666) = 2026-11-02; Installation Started = 2026-10-28; Latest Permit Revision Approved empty; Permit Expiration Date empty. 28349 has no Permitting block, so the test must add one.
- Answered: no, a create action can't set or copy Rework Type. 549, 311, 546, 548, 331, 1036 and 1163 all create Permitting with a plain Create block action (action type 4) that holds only the starting status, with no parameters. "Create … copying fields" (function 26) stores its mapping in
control_action_paramas the block or event to create (params 56/57) and pairs of OSC lists, source → target (58 → 59, and a second pair 60 → 61), e.g. Permit Rejected - Engineering Review (214) copies Permit Rejection Notes (OSC 515) to Rework Trigger Details (OSC 2502). There's no fixed-value setting. No function 26 action creates a Permitting block today, and Rework Type (field 633) is placed only on Permitting's Permit Details (OSC 1397), so no creating block has a Rework Type to copy. Steps 14–21 are dropped; the Populate autos (steps 22–23) are the main way. (Extension Not Needed - Ready to Submit As-Built wasn't read; the same limits apply.) - Answered: No Permit Required - Send to Install (690), in order: block → No Permit Required; Create block Installation at Not Ready to Be Scheduled (plain create, no copy-fields); All Permits Approved (Permitting Milestones, OSC 626) = now; All Permits Approved (Project Milestones, OSC 666) = now. No Permit Required (Battery Only) (1211): block → No Permit Required; OSC 626 = now; OSC 666 = now. Step 30 is a plain Create block.
- Answered: no
(Process Block: Permitting) System Data: Process Block Object Status EQUAL No Permit Required …rule exists (no Permitting status rule naming No Permit Required at all), so step 10 creates it. 690's condition is[Permit Types Required IN No Permit Required] and not [(Process Block: Installation) System Data: Process Block Main EQUAL true] and not ([Project Scope IN Battery] and not [… IN Solar] and not [… IN Roof] and not [… IN R&R]). The four Project Scope rules (3012–3015) are global;Permit Types Required IN No Permit Required(1031) and(Process Block: Installation) System Data: Process Block Main EQUAL true(2186) are local to Permitting. All usable on the new Permitting autos; no copies needed. - Answered, in part: on the 25 Permitting blocks most recently moved to No Permit Required (last 60 days), the project's Installation block was already there before the close every time, created days to months earlier (e.g. 29027: Installation Nov 3, Permitting closed Nov 4; most others weeks earlier). So 690's Create Installation action hasn't been what made Installation lately; something earlier did (1319 is the likely one, since a No Permit Required job passes every permit group, but which control made it would need
control_history, not checked). The new No Permit Required - Create Installation (auto) is a safety net. Whether it and 1319 can both fire in the same save is a UI check (step 48).
The first Phoenix check (2026-11-06) changed: Permits Complete has one OSC 666 action; 1208 and 1211 are hidden and not placed (now archived instead); 28349's current values and the added Permitting block; the 6 blocks to fix by hand. The second round (KAJ's decisions 6–11) changed: 1208, 780 and 1211 archived; one No Permit Required button with two new autos (steps 29–35); First-Time Permits Approved no longer needs Rework Type blank; Rework Type stays editable; optional Rework Type on the creating controls (steps 14–21); staging first (step 43).
Checklist changed by the Phoenix check (third round, checks 11–14, 2026-11-06): steps 14–21 dropped (a create action can't set Rework Type; the Populate autos in steps 22–23 are the main way); step 3 done; step 10 confirmed as a new rule; step 30 is a plain Create block (no copy-fields); step 46 and Rollback 5 no longer mention steps 14–21; Question 1 no longer needed.
Config check
Not started. Done after the build (step 4 of the change process).
- Staging skipped (2026-11-09). Staging doesn't match production: it has no Permits Complete (it still has the older All Permits Approved button) and none of the Oct 29 banners. Going straight to production on 28349, as step 43 allows.
- Production build, 2026-11-09 16:08–16:43 UTC (KAJ via Chrome): steps 5–38 done, steps 39–41 partly done. Three placed controls can't be archived until they're taken off their sections: No Permit Required - Install Already Started, As-Built/Post Install Revision Approved and the Rework Type Set banner. Two differences: Override Existing turned on for the Latest Permit Revision Approved stamp, and Missing Permit Expiration Date keeps its existing rules.
- Problem found: step 36 was wrong. Unplaced auto controls don't fire. At 17:38 UTC Neki approved live job 30823 with Permits Complete. The block's date was stamped, but First-Time Permits Approved (auto) didn't run: project All Permits Approved is still empty and the closer and setter weren't notified. None of the four new autos is placed on a section. Neither are Populate Revision (auto) and Populate As-Built (auto), which explains why Rework Type was never filled automatically. Fix: place all six in the Permitting block's Automatic Controls, then save 30823's Permitting block today (UTC) so its stamp and notifications run.
- Correction, 2026-11-09 11:46 MT. Placing the autos didn't help. First-Time Permits Approved (auto) shows as enabled but didn't run after Permits Complete was clicked on 28349, or after a save on 30823. New auto controls on Permitting don't seem to fire on a button click or a field save. The cause is unknown: the control_history queries time out. Decision (KAJ): put the stamps back on the buttons.
- Permits Complete gets back: set All Permits Approved (Project Milestones, OSC 666) = now with Override Existing off, so a revision never overwrites the first approval date; the two closer/setter "Permit Approved" notifications, which now also fire on revisions; and set Latest Permit Revision Approved (OSC 4399) = now with Override Existing on. Archiving As-Built/Post Install Revision Approved left nothing stamping that date, and Inspection's Permit Revision Complete (auto) reads it.
- No Permit Required gets back: set OSC 666 = now with Override Existing off. Create Installation is left off, because the last 25 no-permit jobs already had an Installation block.
- The four new autos stay in place. They're harmless if they ever start firing (each one checks the date is still empty). Why new autos don't fire needs its own ticket.
- 30823: click First-Time Permits Approved (auto) by hand to stamp the date and notify its closer and setter.
- 2026-11-09 12:40 MT: stamps back on the buttons, checked by the agent in production. 30823 now has its project All Permits Approved date (11/09), from a hand click of First-Time Permits Approved (auto). Permits Complete has 7 actions and No Permit Required has 3, as decided. Test 48 (no permit) passed.
- New issue: Permits Complete isn't repeatable, so it runs once per Permitting block. Real revisions and as-builts usually arrive as a new block, so they're fine. A block moved back by hand (or by ZT-558) can't be approved again. Decision: turn on Repeatable for Permits Complete and No Permit Required. That's safe, because both conditions already exclude a block at All Permits Approved, No Permit Required or Canceled, so they can't be clicked twice on a finished block. Tests 46–47 to be rerun after that.
- Pattern so far: a new auto that is only auto didn't fire on a click or a save. ZT-565's alert, which is auto + timed, did fire on the nightly run. Wave 3 (ZT-558, ZT-559, ZT-564) relies on new autos, so it stays paused until this is understood.
- Final, 2026-11-09 13:15 MT: passed. Permits Complete and No Permit Required are repeatable, with the 7 and 3 actions decided above (checked in Phoenix). Tests 45–48 passed on 28349: a first approval stamps the project date; a revision or as-built keeps the original project date and stamps Latest Permit Revision Approved; no-permit stamps the project date. 28349 cleaned up (Latest Permit Revision Approved left at 11/09).
- Live jobs approved during the gap (16:08–~19:00 UTC): 30823, fixed by hand. 29029 (approved 18:38 UTC) is still missing its project All Permits Approved date and the closer/setter notice. Fix: click First-Time Permits Approved (auto) on its Permitting block before 5 pm MT on 11/09, or fill the date by hand. Jobs closed after the fix (28949, 31068, 31193, 31199, 31200) stamped correctly.
- Notes: a status change made in the block Edit dialog doesn't run autos. An as-built approval opens Inspection through Open Inspection after As-Built Approved (auto) on the next save, as designed.
- Steps 50–51 done by hand, 2026-11-10 (D2, KAJ via Chrome). Rework Type set to As-Built on 18357, 26511, 26513, 28145 and 28617 (27708 was already As-Built). Set to Post-Approval Revision on 26306 and 28505. Cleared on 16819. 5895, 17184 and 20084 stay As-Built. 29029's project All Permits Approved was already 11/09. Only step 4 is left (heads-up to Natalie).