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

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.

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:

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:

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.

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

  1. Fill in Made by from the Albatross audit data (modified_by_id / created_by_id on the changed rows, joined to phoenix.user) and the person who asked.
  2. Regenerate the affected parts of docs/sections/ and docs/process-overview.md following tools/DOC-GUIDE.md. Update the "Generated … on" date and run the mermaid check.
  3. 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 rebuild site/ with npm run build (needs Playwright and npm install).
  4. Republish the docs page at https://claude.ai/artifact/CzUiTNJy9yzt8Y5Ai4NjVW with the Artifact tool: pass that url, file_path = site/_artifact-main.html, and files mapping every other .html in site/ (not index.html or _artifact-main.html) from its path under site/, 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.
  5. Comment on the ZT ticket that the change is checked and recorded, with a link to the changelog.
  6. Commit to main and push. Use one commit per change, with the message <TICKET>: <summary>. No pull request or approval is needed. Pushing to main also rebuilds and redeploys process.zeoenergy.com (cloudbuild.yaml, see DEPLOY.md), so check Cloud Build's history if a change doesn't show up.
  7. 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.