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: " again. So reps get a false "passed Engineering" alert on every revision, and if pay or reporting reads Closer Fronting Pay Milestone, it shows a later date than when Engineering really finished.

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.

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

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

  1. 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.
  2. Untick Always enabled (it has no effect on an auto and makes the setup confusing).
  3. Leave the four actions as they are.

Test

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

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

References

Config check

2026-11-20, control 278 in production (modified 2026-11-19 22:00 UTC by KAJ Jacobs):