ZT-546 · Roofing: enter Roof Permit # and assign a crew to schedule reroofs
| Status | Done |
| Ticket | ZT-546 |
| Requested by | Roofing, via Phoenix Team form (Net New, Department: Sales) |
| Made by | KAJ Jacobs (Albatross audit data, user 2284), via a Chrome agent run from the checklist |
| Date made | 2026-11-03 (22:13–00:11 UTC) |
| Sections affected | 12 · R&R and roofing |
| Project types | R&R / Roof (Reroof jobs); Residential projects that carry the roof blocks |
Request
Roofing needs a place to enter the roofing permit number. They also need to be able to add a crew, or a placeholder crew, so they can push accounts forward. No workaround today.
Proposed solution (optional) None given.
Review
Checked against production (Phoenix) on 2026-11-03.
Roof permit number
- The field already exists: Roof Permit # (Text, field 1306), editable on the project-level Permit Numbers section (OSC 4481).
- On Roof Permitting it is mirrored twice, and both mirrors are read-only: Permit Details (OSC 4482, last changed by KAJ Jacobs 2026-08-19) and Permit Numbers (OSC 4507). Every other permit # mirror on Roof Permitting (Building, Electrical, ESC, Fire, Floodplain, Historical, Zoning) is editable. So the roofing team sees the slot but can't type in it. No new field is needed.
- No control or rule reads Roof Permit #, so making it editable has no knock-on effects.
Crews
- The Roof Field Work Reroof event (event 82) takes its crew from Field Work Org, which lists Organizations of type Installation Crew, Subcontractor or Technician. In production, every R&R/Reroof event that has a scheduled time has a crew, and none without a crew has a time, so a crew is effectively required to schedule.
- Only two Reroof events have ever been created (one on Roofix, one unscheduled with no crew). The only roofing orgs set up are Roofix and Retex Roofing and Exteriors (both Subcontractor). A placeholder pattern already exists: Cincy Subcon Placeholder (Subcontractor, under Cincinnati - Area).
- Adding crews is an Organization setup task, not a config change to blocks or controls.
Why accounts are stuck (found in review, not in the request)
- Ready to Schedule (auto) (control 992) on Roof Field Work checks rule "(Process Block: Roof Field Work) System Data: Process Block Object Status EQUAL Not Ready to Be Scheduled" (rule 1977). Roof Field Work is created at Not Ready to Schedule, a different status, so the auto control never fires. Rule 1977 is used by no other control.
- There is no button out of Not Ready to Schedule. 3 live projects are stuck there, all created 2026-10-28: 29036, 29034, 30796. Create In-house Roof Event only shows at Ready to Schedule, so a crew alone won't move them.
- 14 projects sit at Roof Permitting Ready to Submit Permit and will hit the same wall after All Permits Approved.
- Once fixed, blocks land at Ready to Schedule, which has no work queue. Not Ready to Schedule is in "Not Ready to be Scheduled" (Admin, 3d).
Other checks
- Messages: none on the affected controls. Money/integrations: none. Reporting: not known; ask.
- Fixing 992 is a change to an auto control's condition. Normally we'd try it in staging first; KAJ chose to go straight to production because rule 1977 is used only by this control and the intended effect is exactly to move the 3 stuck blocks.
- No queue of type Roofing exists yet. The existing queue named "Reroof" is Non-Standard and covers a different block, so the new queue gets a distinct name.
Decisions (KAJ, 2026-11-03)
- Crews: keep Roofix (already a Subcontractor, org 170). Add one Subcontractor, Sunergy Roofing LLC, for Lynzi and the other roofing agents.
- Fix "Ready to Schedule (auto)" straight in production.
- New Roofing-department queue for Roof Field Work Ready to Schedule.
Admin checklist
How it's being made: KAJ runs these steps through a Chrome agent in production Albatross, using the tasks given in chat on 2026-11-03 (same steps as below, plus stop-and-report rules). The agent doesn't change position permissions (step 8); it only reports who can see the Roofing queue type, and KAJ decides. Claude then checks production against this list.
A. Make Roof Permit # editable on Roof Permitting
- Settings → Process Blocks → Roof Permitting → section Permit Details → Roof Permit # (mirror of the project field): untick Read-only. Save.
- Same block → section Permit Numbers → Roof Permit #: untick Read-only. Save.
B. Crew to assign on the Reroof event 3. [ ] Settings → Organizations: confirm Roofix exists, type Subcontractor, status Active. No change. 4. [ ] Create Organization Sunergy Roofing LLC: type Subcontractor, status Active, no parent (same as Roofix). Save.
C. Fix "Ready to Schedule (auto)" on Roof Field Work
5. [ ] Albatross can't change a rule's value after it's created, so build a new rule and swap it in. On Roof Field Work → Requirements → Rules, create a rule: System Data → Process Block Object Status, block Roof Field Work, EQUAL Not Ready to Schedule, Fail if none exist = false. Name it Roof Field Work Status = Not Ready to Schedule (same style as Roof Field Work Status = Scheduling Hold).
5a. [ ] In control Ready to Schedule (auto), replace the first condition (Process Block: Roof Field Work) System Data: Process Block Object Status EQUAL Not Ready to Be Scheduled (Fail if none exist = false) with Roof Field Work Status = Not Ready to Schedule. Keep the AND, and keep the rest of the logic and the NOT flags exactly as they are. Save. The old rule is then unused and can be left.
D. Roofing queue 6. [ ] Settings → Work Queues → create queue Ready to Schedule Reroof, type Roofing, SLA 3 days. 7. [ ] Assign status Ready to Schedule on block Roof Field Work to Ready to Schedule Reroof. 8. [ ] Give the roofing department's position (Lynzi and the roofing agents) access to the Roofing queue type.
E. Test 9. [ ] Open project 29036 (or 29034 / 30796) → Roof Field Work. It should move from Not Ready to Schedule to Ready to Schedule on its own and show in Ready to Schedule Reroof. 10. [ ] Open a Roof Permitting block and confirm Roof Permit # can be typed into. Don't save a value on a live job unless it's the real number. 11. [ ] On the Roof Field Work block that is now Ready to Schedule, confirm Sunergy Roofing LLC appears in Field Work Org when scheduling the Reroof event. Cancel without saving unless roofing is ready to book it.
New SOP
Roofing permit coordinator
- When the roof permit is issued, open the project → Roof Permitting → Permit Numbers (or Permit Details) and type the number in Roof Permit #.
- Click All Permits Approved as today.
Roofing scheduler (Lynzi and roofing agents)
- Work the Roof Field Work queue (Roofing). It holds every open Roof Field Work job: Not Ready to Schedule (R&R + Reroof jobs waiting on the solar removal), Ready to Schedule, Return Visit, Scheduling Hold and Field Audit Review. Reroof-only jobs reach Ready to Schedule as soon as roof permits are approved.
- On Roof Field Work, click Create In-house Roof Event, then schedule the Reroof event and set Field Work Org to Sunergy Roofing LLC (in-house roofing) or Roofix.
- Click Roof Event Scheduled.
Rollback
- Re-tick Read-only on both Roof Permit # mirrors on Roof Permitting.
- Set Sunergy Roofing LLC to Inactive.
- Set the rule back to Not Ready to Be Scheduled (only if the auto control misbehaves; the 3 blocks already moved will stay at Ready to Schedule).
- Unassign Ready to Schedule from Ready to Schedule Reroof and archive the queue.
Config check
2026-11-03, after Chrome agent tasks 1–2
- Steps 1–2 match. Roof Permit # on Roof Permitting is no longer read-only in Permit Details (OSC 4482, 22:13 UTC) or in Permit Numbers (OSC 4507, 22:14 UTC). Both changed by KAJ Jacobs.
- Steps 3–4 match. Roofix (org 170) is unchanged. Sunergy Roofing LLC is org 671: Subcontractor, Active, no parent, created by KAJ Jacobs at 22:15 UTC.
- Step 5 wasn't done. Albatross can't change a rule's value in place, so steps 5–5a were rewritten as create-a-new-rule-and-swap. The agent's mis-clicks were cancelled without saving: control 992 is unchanged since 2026-09-04, rule 1977 is unchanged, and no status was added to Roof Field Work.
- Steps 6–11 not started yet.
2026-11-03, after Chrome agent tasks 3–5
- Steps 5–5a match. New rule
Roof Field Work Status = Not Ready to Schedule(rule 3829, local to Roof Field Work, status 304, Fail if none exist = false) was created at 22:37 UTC. "Ready to Schedule (auto)" (control 992) now reads ((Reroof only) or (R&R + Reroof with no active events)) and the new rule. The old rule's row is archived and the scope groups are unchanged. Saved by KAJ Jacobs at 22:38 UTC. - Step 6 matches. Ready to Schedule Reroof is queue 373: type Roofing, SLA 3 days, created at 22:40 UTC.
- Step 7 matches. Roof Field Work Ready to Schedule is assigned to the queue. The ACTIVE + ON HOLD rows are the queue's project-status filter (the project's own status), which every other queue on this block also has. They are not extra block statuses. The queue is empty because the only Roof Field Work block at Ready to Schedule (28615) is on a Finalized project.
- Step 8: there's no per-position setting for queue types; access comes from the Work Queue module permission. Roof Sales Rep (position 68: Lynzi Bratton and Andrew Lusk in the Roofing org; Amy West, Michael Keaton and Carlos Lopez in Non-Standard) has it. Roof Lead (95: Jazzio Harrison, Jeremy Campbell, crew orgs) doesn't. Left as is.
- Step 10 matches. The agent typed into Roof Permit # on 29036 and cleared it without saving.
- Step 11 skipped: 29036 has no Reroof event. Field Work Org lists Subcontractor orgs (field 808), and Roofix, another Subcontractor, has been used on a Reroof event, so Sunergy Roofing LLC will be offered.
- Correction to the review: 29036, 29034 and 30796 are R&R + Reroof jobs, and each has an open R&R Removal event at Ready to Schedule (no crew, no time). The fixed control waits for no active events on R&R + Reroof jobs, so these 3 correctly stay at Not Ready to Schedule until the panels come off. The real holdup for them is R&R Removal scheduling (R&R Field Work), not roofing. A Reroof-only job created from now on will go straight to Ready to Schedule.
- Couldn't check whether the control has run:
control_historytimed out twice, even when filtered to these 3 projects, so I stopped. The control's first real run will be confirmed when a job passes through. - Found while checking: the R&R Field Work blocks for 29036, 29034 and 30796 sit at Ready for Install Audit. That status isn't on R&R Field Work and is in no queue, which is the known defect where R&R Permitting "All Permits Approved" creates R&R Field Work at the wrong status (see 12 · R&R and roofing). So nobody sees these removals, and the roof waits on them. That's out of scope for this ticket; raised with KAJ.
Queue scope change (KAJ, 2026-11-03) Roof jobs are worked only by the roofing team, never by Scheduling, so every Roof Field Work status goes into one Roofing queue: 12. [ ] Rename queue Ready to Schedule Reroof to Roof Field Work (type Roofing, SLA 3, ACTIVE + ON HOLD filter unchanged). 13. [ ] Add these Roof Field Work statuses to it: Not Ready to Schedule, Ready to Schedule Return Visit, Scheduling Hold, Ready for Field Audit Review. 14. [ ] Remove only the Roof Field Work rows from Not Ready to be Scheduled (Admin), Scheduling Hold (Scheduling), Install Scheduling Hold (Field Sales), Scheduling Audit / Review (Scheduling) and Ready to Verify Installation (Field Audit). Leave those queues and their other blocks alone. 15. [ ] Check the Roof Field Work queue lists 29036, 29034 and 30796.
2026-11-04, after Chrome agent tasks 6–9 (final)
- Steps 12–14 match. Queue 373 is renamed Roof Field Work (Roofing, SLA 3, ACTIVE + ON HOLD filter). It holds Roof Field Work Ready to Schedule, Not Ready to Schedule, Ready to Schedule Return Visit, Scheduling Hold and Ready for Field Audit Review (added 00:11 UTC). It's now the only queue on Roof Field Work. Not Ready to be Scheduled, Ready to Verify Installation, Install Scheduling Hold and Scheduling Audit / Review still cover Installation; Scheduling Hold covers Installation and R&R Field Work.
- Step 15 matches. The agent saw 29036, 29034 and 30796 in Roof Field Work, and in neither Not Ready to be Scheduled nor Scheduling Hold.
- Nothing extra. The only edits on Roof Permitting and Roof Field Work today are OSC 4482 and 4507, rule 3829 and control 992, all by KAJ Jacobs.
- Open: "Ready to Schedule (auto)" hasn't fired yet, as expected while the 3 jobs have open R&R Removals. Confirm on the first job that gets through.
- Matches the Admin checklist (steps 5–5a replaced the in-place rule edit; 12–15 added at KAJ's request).