ZT-609 · Cash projects never reach Finalized

Status Done
Ticket ZT-609
Requested by Michael Lowry (2026-11-13)
Made by Michael Lowry (control 284 and rules 4466/4471, 2026-11-13). Requested by Michael Lowry.
Date made 2026-11-13
Sections affected 01 · Project level; 04 · Funding (Cash Funding)
Project types Residential (cash jobs). R&R roof-only jobs use their own control and aren't affected.

Request

Cash projects never get finalized. The project-level auto Set project status: Finalized only looks at the M2 Funds Received field. That field is set only by the financier M2 Funding block, which cash projects don't have.

Review

Checked 2026-11-13 against the section docs (generated from production 2026-10-26) and the ZT-35 and ZT-37 reviews (live checks on 2026-11-12). Phoenix wasn't connected in this session, so the live condition and the count of stuck cash projects still need to be confirmed before the build.

Admin checklist

Before you start

  1. Claude lists, from Phoenix: cash projects at Finalization with System Energized filled and a Complete Cash Funding block, and the 18 projects with both M0 and Cash Funding blocks. Finance confirms none of them is waiting on a financier M2.

Build 2. [x] Create rule (Process Block: Cash Funding) System Data: Process Block Object Status EQUAL Complete (Fail if none exist = true), or reuse it if it already exists. 3. [x] Open the project-level control Set project status: Finalized. Change its condition to: (Project) Custom Field: Project Milestones-System Energized IS NOT NULL AND ( (Project) Custom Field: Funding Milestones-M2 Funds Received IS NOT NULL OR (Process Block: Cash Funding) System Data: Process Block Object Status EQUAL Complete ) AND NOT (Project) System Data: Project Object Status EQUAL Canceled AND NOT (Project) System Data: Project Object Status EQUAL Cancellation in Progress. Leave the action (project → Finalized) and the flags as they are. 4. [x] Finalize the stuck cash projects confirmed in step 1, with MCP - Finalize or by saving each project.

Test 5. [x] On test project 28349: open a Cash Funding block, set it to Complete, fill System Energized, and set the project to Finalization. Save. The project should go to Finalized. Put 28349 back to Canceled and cancel the test block.

New SOP

  1. Finance: no change. Close the Cash Funding block as you do now. Once it's Complete and the system is energized, the project goes to Finalized by itself.
  2. Finalization team: cash jobs no longer sit at Finalization after energization. Tell KAJ about any that do.

Rollback

  1. Put the Set project status: Finalized condition back to System Energized AND M2 Funds Received (not Canceled / Cancellation in Progress).
  2. Projects finalized by the change stay Finalized. Move any that shouldn't be back by hand.

Step 1 list (Phoenix, 2026-11-13)

Config check

Checked 2026-11-13 in Phoenix.

  1. First build (17:20 UTC) was wrong. The new rule 4466 had Fail if none exist = false, so it passed on projects with no Cash Funding block. Any energized financed project without M2 Funds Received met the condition: 180 open projects were exposed (169 at Finalization). One was finalized early: 27305 Arthur Ray (M2 at Pending Approval), at 17:39 UTC on a save by Jovelyn Noche.
  2. Fixed at 17:46 UTC by Michael Lowry: the control now uses new rule 4471 (Process Block: Cash Funding) System Data: Process Block Object Status EQUAL Complete (Fail if none exist = true). The condition is: System Energized AND NOT Canceled AND NOT Cancellation in Progress AND (M2 Funds Received OR rule 4471). Still auto and not timed; action unchanged. 27305 moved back to Finalization by Michael (confirmed in production at 17:47 UTC). No other project went to Finalized between 17:39 and the fix.
  3. Cash path works: 17330 Ryan Walsh finalized on its own at 17:20 UTC (cash, energized, Cash Funding Complete).
  4. Old rule 4466 is no longer used by any control. Archive it so it isn't reused.

Stuck projects finalized (step 4)

On 2026-11-13, with Michael's go-ahead, Claude ran MCP - Finalize (control 1434) through the albatross-write-mcp connector on 20595, 22548 and 22855 (17:51 UTC), then 21117 (17:54 UTC) once Michael confirmed it. All four now show Finalized. The other projects with both M0 and Cash Funding blocks were left as they are, at Michael's request.