ZT-505 · Permitting: Set Ready for Permit (auto) only on the first block
| Status | Done (config checked 2026-11-20) |
| Ticket | ZT-505 |
| Requested by | Claude's Oct 27 config audit (for Michael Lowry) |
| Made by | KAJ Jacobs (Albatross audit data, user 2284), 2026-11-19 22:00 UTC |
| Date made | 2026-11-19 |
| Sections affected | 07 · Permitting |
| Project types | Residential and Battery Only |
Request
Every time a Permitting block is created (first permit, revision, as-built, reopened permit), Set Ready for Permit (auto) runs. It overwrites the project dates Ready for Permit and Closer Fronting Pay Milestone with today, and tells the Closer and Setter "Engineering Complete:
Re-checked 2026-11-12: still broken. The Permitting changes of Nov 6–11 (ZT-560, 561, 563, 573, 576, 577, 588) didn't touch this control.
Review
Checked 2026-11-12.
- Set Ready for Permit (auto) (Permitting, control 278): auto (also flagged always-on, which does nothing for an auto), no condition, placed in Automatic Controls. Last edited 2026-07-16 by KAJ Jacobs.
- Actions, in order:
- Set Ready for Permit (Project Milestones, OSC 663) =
now(). - Set Closer Fronting Pay Milestone (Sales Pay Milestones, OSC 2230) =
now(). - Notify Setter "Engineering Complete: {{ProjectName}}" / "Project … has passed Engineering!".
- Notify Closer, same text.
- Set Ready for Permit (Project Milestones, OSC 663) =
- An auto fires once per block, so it fires once on every new Permitting block. In the last 30 days 137 Permitting blocks were created and 42 of them were on projects that already had one. Each of those 42 restamped both dates and re-sent both notifications.
- Who reads these fields:
- Ready for Permit feeds
(Project) Custom Field: Project Milestones-Ready for Permit IS NOT NULL(global), used by the project-status autos (Installation Prep, Engineering) on Plan Set, Engineering Stamps, Change Order, Sales Hold, Resolutions, Extended Review and others, and by Create Installation Prep Visit - OH (auto). They only check that it's filled, so the restamp doesn't change them. R&R Permitting's Ready to Submit (auto) also sets it on R&R jobs. - Closer Fronting Pay Milestone is read by no control; there is a grid filter Grid Filter - Project: Closer Fronting Pay Milestone, so it's used in reporting and likely in pay. Only control 278 sets it.
- Of 1,741 projects whose Ready for Permit was set since May 1, 10 have no Closer Fronting Pay Milestone.
- Ready for Permit feeds
- Project types: Residential and Battery Only (both use Permitting). R&R uses R&R Permitting and isn't affected.
Likely cause: The control has no condition, so it runs once per block instead of once per project. It was built when a project had one Permitting block; revisions and as-builts now open more.
Admin checklist
Before you start
- Michael with Sales Ops / payroll: confirm Closer Fronting Pay Milestone should be the first time Engineering finished (first Permitting block). Also decide whether closers and setters want any heads-up when a revision goes to Permitting (default: no; this ticket stops the repeat "Engineering Complete" alert).
- Payroll: decide whether any closer pay already used a restamped date. If so, Claude can list the projects with 2+ Permitting blocks whose Closer Fronting Pay Milestone changed after the first block, for a by-hand correction.
Fix the control (Permitting › Controls › Set Ready for Permit (auto))
- Set its condition to NOT
(Project) Custom Field: Project Milestones-Ready for Permit IS NOT NULL(global rule, already used on many blocks). It then runs only when Ready for Permit is still empty, which is the first Permitting block. - Untick Always enabled (it has no effect on an auto and makes the setup confusing).
- Leave the four actions as they are.
Test
- On test project 28349 (it has Ready for Permit filled and the control has no HO comms guard): note Ready for Permit and Closer Fronting Pay Milestone, then open a Permitting block by hand at Review Revision and Resubmit and save. Both dates stay the same and no "Engineering Complete" notification goes out. Cancel the test block.
New SOP
No change for end users. Closers and setters get "Engineering Complete" once per job instead of again on each revision. Payroll and reporting can trust Closer Fronting Pay Milestone as the first engineering-complete date.
Rollback
- Clear the condition on Set Ready for Permit (auto) (and re-tick Always enabled if wanted).
How to verify
Claude checks in Phoenix that control 278 has the NOT Ready for Permit condition and nothing else changed on Permitting in the same window. After the next revision Permitting block is created, Claude checks that project's Ready for Permit and Closer Fronting Pay Milestone kept their earlier dates and that control 278 did not pass on that block.
Open questions
- Is Closer Fronting Pay Milestone read by a pay report or export outside Albatross (for example payroll's spreadsheet)? If so, who should know the dates stop moving?
- Should the 10 projects with Ready for Permit but no Closer Fronting Pay Milestone be filled by hand? After this fix, nothing will fill it for them.
References
- Change record: changes/2026-11-12-ZT-505-ready-for-permit-once.md
- Process doc: docs/sections/07-permitting.md
- Related: ZT-503 (fewer unneeded revision Permitting blocks), ZT-558.
- When the change is made, bring this ticket to Claude in the
zeo-process-flowrepo so it is checked and recorded in the changelog.
Config check
2026-11-20, control 278 in production (modified 2026-11-19 22:00 UTC by KAJ Jacobs):
- Matches the checklist: condition is NOT
(Project) Custom Field: Project Milestones-Ready for Permit IS NOT NULL; auto; the four actions are unchanged and in order (Ready for Permit = now(), Closer Fronting Pay Milestone = now(), notify Setter, notify Closer). - Not checked: the Always enabled flag, the test on 28349, and whether payroll was asked (Before you start steps 1 and 2). Claude to confirm on the next revision Permitting block that both dates stay put.