zeo-process-flow
This repo documents how Zeo Energy's Albatross CRM process works and records every change we make to it. Michael Lowry and KAJ Jacobs make the Albatross changes. Claude reviews proposed changes, verifies them after they're made, and keeps the docs and changelog current.
The process is meant to be fast. If a step would make someone skip recording a change, make the step lighter instead. A short record is much better than no record.
Data sources
- All production reads go through Phoenix MCP; all production writes go through albatross-write-mcp. Never use albatross-write-mcp to read (its
get_…,list_…andfind_projecttools), even right before or after a write. - Phoenix MCP is a read-only copy of production Albatross. Use it for every read: configuration, project data, and checks before and after a change or a write.
- Go easy on Phoenix. It's shared. Query it from one agent at a time, never in parallel, and follow "Keeping Phoenix healthy" in
tools/DOC-GUIDE.md. In short: never scancontrol_history(filter by control id and date), useLIMIT, reuse counts from the docs, and narrow a query that times out instead of retrying it. - stage-albatross MCP is the staging tenant and can write. Use it only when the person asks to try a change in staging first. Never write to staging without being asked, and never treat staging as the source for docs.
- Claude never changes production configuration. People make configuration changes in the Albatross UI.
- albatross-write-mcp writes to production. Claude may use it for anything Michael Lowry asks, but only after Michael has confirmed that exact action in the conversation. Before each write, say what will run (tool, control or field, and project ids) and wait for his yes. A confirmation covers only the actions it names. Read each project in Phoenix first and take the ids the write needs from there (
project.id,project_process_block.id,project_process_block_event.id, control ids). Use an idempotency key, read the project again in Phoenix afterwards, and record what was run and when in the change record. If Phoenix doesn't show the change yet, wait a minute and re-read in Phoenix; don't read through albatross-write-mcp instead. tools/DOC-GUIDE.mdexplains the Albatross concepts, the SQL intools/queries/and the section doc template.
Repo layout
| Path | What it is |
|---|---|
README.md |
Start here. Links to everything. |
CHANGELOG.md |
One line per change, newest first. Claude maintains it. |
changes/ |
One file per change: request, review, admin checklist, new SOP, config check. Copy changes/_TEMPLATE.md. |
docs/process-map.html |
30,000 ft map with AI and automations. |
docs/process-overview.md |
Block-level diagram of the whole process. |
docs/sections/NN-*.md |
Per-section detail: statuses, controls, fields, diagrams. Generated from production. |
site/ |
Generated HTML copy of every doc with diagrams pre-drawn. Never edit by hand; rebuild with npm run build. |
tools/ |
Queries, doc guide, ZT ticket template, the mermaid checker and the site builder. |
The change process
A change can start with a full proposal or with one sentence. Work with what's given.
| Step | Who | What |
|---|---|---|
| 1. Intake | Person | Gives a ZT ticket or a problem statement, and optionally a proposed solution. |
| 2. Review and ticket | Claude | Checks the proposal against live config, revises the solution, and creates or updates the ZT ticket with an Admin checklist and a New SOP. |
| 3. Make the change | Person | Builds the config in Albatross from the Admin checklist. |
| 4. Check the config | Claude | Compares what was built with the Admin checklist and reports anything missed or different. Repeats until it matches. |
| 5. Record | Claude | Updates the docs, changelog and docs page, then commits. |
1. Intake
The person gives a ticket (a ZT-… ticket; PPO is deprecated, so never create or edit PPO tickets) or a problem statement, and optionally a proposed solution. Read the Jira ticket with the Atlassian tools if one is given. Create changes/YYYY-MM-DD-<TICKET>-<short-slug>.md from the template and fill in Request. If there's no ticket yet, use NO-TICKET until step 2 creates one, then rename the file.
2. Review and ticket
Read the affected section docs, then confirm against live configuration with the Phoenix queries, because docs may be stale. Check each item below and write what you found in Review. Be specific: name the control, status, field or queue, and say what would happen.
- Statuses and controls: which controls move into or out of the statuses being changed. Check auto and timed controls especially, since they fire without anyone clicking.
- Downstream blocks: blocks this one creates, and blocks whose conditions read this block (
14-block-dependencies.sql). - Fields: rules that read the fields being changed; required or read-only flags; mirrors of the field on other screens.
- Work queues: queue assignments and SLA targets for new, renamed or removed statuses.
- Customer and rep messages: SMS, email and notifications fired by affected controls.
- Projects already in flight: how many live projects sit in affected statuses (
10-block-statuses.sql), and what happens to them after the change. - Money and integrations: pay and commission milestones, funding steps, NetSuite, Enphase, Vivint, and anything named Send to….
- Reporting: dashboards or reports that filter on the statuses or fields being changed. Ask if unsure.
- Project types: Residential, Battery Only and R&R often share blocks. Say which types are affected.
If the proposal looks wrong, say so plainly and suggest the alternative. Ask the person about anything only they can decide (reporting needs, chargebacks, who owns a step) before finalizing.
Then write the revised solution in two parts, in the record and in the ticket:
- Admin checklist: the exact settings steps in order. Anything that must happen before the build (a decision, clean-up, a heads-up) always comes first, as step 1, under Before you start. Then: create fields, add them to a screen section, create rules or reuse existing ones, naming every rule by its full description as Albatross shows it, never by id, create the control and its condition, add actions in order (for every action that sets a field value, give the field's OSC next to its name, e.g. Incomplete Attributable To (OSC 4489)), place the control, queues and notifications, test, re-check anything risky. One action per step, naming the exact block, event, section, field, rule, control or status.
- New SOP: how end users work with it once it's live, as steps for each role, including anyone to tell outside Albatross. Say "No change for end users" if nothing changes.
Add a short Rollback list to the record.
Ask the ticket questions. Whenever you suggest a solution to an issue, including one that started as a plain question such as "why is this project not in a queue?", ask these with the question window (AskUserQuestion), all in one window:
- Existing ticket? Is there already a ZT ticket for this, and if so which one?
- Owner: who should the ticket be assigned to (Michael Lowry, KAJ Jacobs, or someone else)?
- Done yet? Has the change already been made in Albatross? If yes, go straight to step 4 and set the ticket to Done once the config check passes.
- Story points: how many (the field is Story point estimate)?
Every ticket you create or update goes under the parent Process Refinements (ZT-358). Don't ask about the parent.
Create the ZT ticket if there isn't one, or update the given ticket, following tools/TICKET-TEMPLATE.md. Put the ticket key in the record and rename the record file. If the ticket already exists, follow "Editing a ticket that's already in use" in that file so ticked checklist items are never lost.
3. Make the change
The person builds the change in Albatross from the Admin checklist. For production tests, suggest Michael's test project 28349. It's labeled as a test and canceled, so it stays out of work queues. Never suggest a live customer job. Offer to try it in staging first only when the change is risky, for example a new auto control or a change to an auto control's condition.
4. Check the config
When the person says it's done, check production (Phoenix) against the Admin checklist, item by item, and write the result in Config check. If something is missing, re-check once before reporting it.
- Every checklist item: each field exists with the right type and flags, sits in the right section and position, each rule says what it should, the control has the right flags, condition logic and actions in the right order, and the control is placed on the screen.
- Anything extra: other edits to the same block, event, controls or rules made in the same window (
date_modified/modified_by_id). Ask about them; record them if they're intended. - Knock-on items from the review: auto controls that could now fire, queues, messages, and projects in flight.
Report what's missing or different as a short numbered list the person can fix, with the exact setting to change. Re-check after they fix it. Move on only when everything matches, or the person says a difference is intended (record why).
5. Record
- Fill in Made by from the Albatross audit data (
modified_by_id/created_by_idon the changed rows, joined tophoenix.user) and the person who asked. - Regenerate the affected parts of
docs/sections/anddocs/process-overview.mdfollowingtools/DOC-GUIDE.md. Update the "Generated … on" date and run the mermaid check. - Add one line to the top of
CHANGELOG.md. The Jira ticket column links to the ZT ticket, e.g.[ZT-521](https://gosunergy.atlassian.net/browse/ZT-521); write "None" only for Untracked or docs-only entries. Then rebuildsite/withnpm run build(needs Playwright andnpm install). - Republish the docs page at https://claude.ai/artifact/CzUiTNJy9yzt8Y5Ai4NjVW with the Artifact tool: pass that
url,file_path=site/_artifact-main.html, andfilesmapping every other.htmlinsite/(notindex.htmlor_artifact-main.html) from its path undersite/, e.g."docs/sections/03-survey-and-deal-review.html": "site/docs/sections/03-survey-and-deal-review.html". Read the artifact first if this session hasn't published it. - Comment on the ZT ticket that the change is checked and recorded, with a link to the changelog.
- Commit to
mainand push. Use one commit per change, with the message<TICKET>: <summary>. No pull request or approval is needed. Pushing tomainalso rebuilds and redeploys process.zeoenergy.com (cloudbuild.yaml, seeDEPLOY.md), so check Cloud Build's history if a change doesn't show up. - If a Confluence copy of the changelog exists, update it.
Changes found after the fact
If a regenerated doc shows a difference nobody recorded, don't fix the docs silently. Add a changelog entry marked Untracked, with what changed, when (date_modified) and who (modified_by_id). Tell the person so they can add the why.
Writing style
Plain English for ops leaders. Name things the way they appear in the Albatross UI. Keep each changelog line to one or two sentences.