Modules / Projects
Projects & service delivery
Turn what you sold into a delivery plan, see what is late and what is waiting on the client, get each piece of work accepted with proof, and know at the end what was delivered against what was sold, so that billing follows delivery instead of a spreadsheet.
People ask for it as: “what we sold becomes a delivery plan”, “we're waiting on the client's brief”, “the client never signs off, so the invoice never goes”, “did we deliver everything we sold”, “makegood”, “what's due this week across every client”
Who uses it
| Role | Does | Sees |
|---|---|---|
| Project lead / account manager | owns a project, plans it from what was sold, records the client's answer, raises makegoods | their own projects; a manager sees every project |
| Whoever does the work | starts, blocks and submits the items assigned to them, with evidence | the items assigned to them and their project's headline |
| The client's contact | supplies briefs and assets, reviews what was delivered, follows status | their own project only, through a link, read-only |
| Finance / the biller | reads what is billable and the makegood liability | every project, read-only |
| Operations manager / the owner | sets the review window, warning notice, state names, block reasons and evidence kinds; records a client's acceptance of work its own lead did (whoever submitted work never records its acceptance) | every project |
| A firm of one (or a lead the customer lets accept their own work) | leads the project, does the work and records the client's acceptance of work they submitted themselves | their own projects |
| The system | plans projects from what was sold, shows the review clock, reconciles a closed project window | everything, through its own service account |
What it has to do
Reference user stories. Each has a test written into it — the given / when / then — which becomes an automated check once it is built. Expect to keep some, change some and drop some.
Things people do
PJ-01As a project lead, I want the work planned from what was sold, so that every item carries its money from day one.
Given an active contract for bp_id 7311 selling 2 x implementation phase (one-off, single payment), 12 x hosting month (recurring) and 5 x maintenance month (recurring) · when the project is planned · then one project and 2 items, one per implementation phase, each carrying its sold line id; hosting and maintenance make no items (they elapse and are billed by schedule); planning again creates nothing
Project lead / account manager · screen: Project · reference: not built
Usually different per customer: which kinds of line become items, and whether a single-payment line expands per unit (PJ-Q1)
PJ-02As the person doing the work, I want to say I am waiting on the client, so that their delay is not counted as ours.
Given an item in progress that needs the client's brief · when I block it with the reason "waiting for brief" · then it shows blocked on the client since that date; unblocking adds the blocked days to the item, and slippage excludes them; blocking without a reason is refused ("say what you are waiting for")
Whoever does the work · screen: Item · reference: not built
PJ-03As a project lead, I want work in review to get an answer or a deadline, so that it does not sit in review forever.
Given an item submitted on 2026-11-02, a review window of 10 working days and a warning notice of 5 working days · when the window passes with no answer, I send the warning, and the notice passes too · then I may record the item accepted as DEEMED, recorded as deemed with the warning's date; recording deemed acceptance before the warning was sent, or before its notice ends, is refused
Project lead / account manager · screen: Item · reference: not built
Usually different per customer: the review window, the warning notice, and whether deemed acceptance exists at all
PJ-04As a project lead, I want "done" to need proof, so that delivered means evidenced.
Given an item in review with no evidence attached · when I record it accepted · then refused: "Attach the evidence first: a link, a file or a sign-off"; with a link attached it is done, with who accepted it, when, and how (recorded or deemed)
Project lead / account manager · screen: Item · reference: not built
PJ-05As the client's contact, I want to see where my project is without asking, so that I am not chasing.
Given a link issued for project A · when I open it without signing in · then I see project A's items, their states and their evidence, read-only; the same link cannot reach project B (the same not-found answer as a dead link)
The client's contact · screen: Client status · reference: not built
PJ-06As finance, I want to see sold against delivered per line, so that I bill what was accepted and nothing else.
Given a project whose window has closed · when I open its reconciliation · then per sold line: sold, delivered (accepted), short, over; only accepted items count as delivered; the figures are the stored reconciliation, not a recount
Finance / the biller · screen: Reconciliation · reference: not built
PJ-07As a project lead, I want a shortfall to become visible extra work with no revenue, so that we make good without billing twice.
Given a reconciled project: 6 sold, 5 delivered on one line · when I raise a makegood for the short item · then a new item with source makegood, no sold line id, pointing at the short item; the short item stays short; raising a second makegood for the same short item is refused
Project lead / account manager · screen: Reconciliation · reference: not built
PJ-08As anyone delivering, I want what is due this week across every client, overdue first, so that nothing slips unseen.
Given items across five projects, two overdue, one blocked · when I open the board · then overdue first, then due today, then this week, in my time zone; blocked items show who they wait on; I see only what I may see
Whoever does the work · screen: Board · reference: not built
PJ-09As a project lead, I want to request changes and keep the same item, so that a revision is not mistaken for new work.
Given an item in review · when I record the client's change request with the reason · then the same item returns to in progress, its revision count goes up, and the review clock stops; recording changes without a reason is refused
Project lead / account manager · screen: Item · reference: not built
PJ-10As a project lead, I want to descope an item with a reason, so that the plan matches what we now owe.
Given an item not yet done · when I descope it with the reason "replaced by change order CO-3" · then it is cancelled, keeps its history, and reconciliation counts it as descoped, not short; a done item cannot be descoped
Project lead / account manager · screen: Item · reference: not built
PJ-14As a project lead, I want to say how time on my project is billed and at which product, so that hours booked to it are billed through what was sold, or not at all.
Given project pj:sales_order:quote:Q-2026-0042@v2 planned from an order whose line 2 is 120 HUR of CONSULT-SR; project pj:contract:CT-2026-0009 for customer 7311; an internal project pj:manual:<uuid> · when I open the time terms of each · then the order project proposes billing time_and_materials, bill_via sales_order, products [{rate_group SENIOR, product_id CONSULT-SR, so_line_no 2}] from its HUR line, which I confirm; the contract project I set to time_and_materials, bill_via ar, product CONSULT-SR for every rate group; the internal one non_billable; each with a cost centre that gl answers open; terms are dated rows (valid_from today or later), and a change marks open timesheet lines stale in timesheets; a product whose unit is not a time unit (HUR, DAY) is refused
Project lead / account manager · screen: Project · reference: not built
Things that happen on their own
PJ-11on read (derived)The system shows each item's review clock, so that a person knows when to warn the client.
Given an item in review for 8 of 10 working days · when anyone opens it or the board · then it shows 2 working days left, then the warning due, then deemed acceptance possible on a date; nothing is stored and NOTHING is sent: a person sends the warning
· reference: not built
PJ-12daily, for projects whose window endedThe system reconciles a project when its window closes, so that a shortfall is known while it can still be made good.
Given a project whose end date passed yesterday · when the daily pass runs · then per sold line it stores sold, delivered, short, over and descoped, and closes the project; running it twice reconciles once (keyed on the project)
· reference: not built
PJ-13when a project is planned and the step is onThe system drafts the plan's dates and owners from the sold lines and similar past projects, so that the lead checks instead of types.
Given a newly planned project and three finished projects for similar products · when it is planned · then a suggested due date and owner per item, with the past projects it learned from; nothing changes until the lead accepts the suggestion
· reference: not built
Things that cross into other modules
PJ-20when a contract becomes activeAn active contract's sold lines become a project, without this module reading the contract.
Given the contract's composition adapter sends plan_from_sale(source_kind contract, source_id, bp_id, starts_on, ends_on, lines[]) · when the call arrives · then one project keyed pj:contract:<source_id>, items per the expansion rule; a second call returns the same project and creates no item; a failed plan never undoes the contract
· owned by projects · reference: not built
PJ-21when a sales order is confirmed with lines to deliverA confirmed order's deliverable lines become a project, the same way.
Given a confirmed order whose lines carry billing kind and plan · when the order's adapter calls plan_from_sale(source_kind sales_order, ...) · then one project keyed pj:sales_order:<sales_order_id>; accepted items report delivered quantities back through the order's record_delivery route (SO-23)
· owned by projects · reference: not built
PJ-22when an item is accepted and its line is billed on acceptanceAn accepted one-off item asks invoicing for its draft, so that the invoice follows the proof.
Given an accepted item from a one-off, single-payment line worth 35,000.00 · when it is accepted (recorded or deemed) · then invoicing's raise_for_acceptance(item) is called, keyed acc:<item_id> (AR-29); accepting is never undone by invoicing being down: the item shows billing pending and a retry bills once
· owned by ar · reference: not built
PJ-23when a contract's phase gate is checkedThe contract reads acceptance from here rather than keeping a second copy.
Given a contract whose next phase may start only when the previous one is accepted · when the contract asks · then this module's read route answers per sold line: accepted or not, how, and when
· owned by projects · reference: not built
PJ-24when someone adds a to-do to an itemInternal to-dos hang off an item through the activity brick, so that there is one task list.
Given an item · when a to-do is added from it · then the activity brick records it related to the item; this module stores nothing of it
· owned by crm · reference: not built
PJ-25when timesheets fills, submits and bills a week (timesheets TS-17)Timesheets reads which projects a person may book to and each project's time terms here, so that this module stays the one source of what is delivered and how time on it bills.
Given PJ-14's terms; the contract project active, the internal project cancelled · when timesheets calls GET /projects/bookable?person_id=4410&on=2026-11-16 and GET /projects/pj:contract:CT-2026-0009/time-terms?on=2026-11-19 · then the bookable list names the active projects with their open items (the cancelled one is absent); the terms answer {state, bp_id, currency, billing, bill_via, sales_order_id, products, cost_centre, lead_person_id} in force on the date; an unknown project is 404; a project restricted to its team (setting time.restrict_to_team) is bookable only by item owners and its lead; this module never reads ts_ tables
· owned by projects · reference: not built
How things move
item
planned → in_progress → blocked → in_review → done → cancelled
- none → planned by system · when a sale arrived (an active contract or a confirmed order); only lines that are delivered make items · keyed project|line|n, so planning again creates nothing
- none → planned by project_lead · when the project was reconciled short · source makegood, no sold line; the short item stays short
- planned → planned by system · when the step is on · suggestions only, until the lead accepts them
- planned → in_progress by contributor
- in_progress → blocked by contributor · needs reason · stamps blocked_since; blocked days are not our slippage
- blocked → blocked by system · when blocked on the client past the chase days and the step is on · a draft message a person may send
- blocked → blocked by client_contact
- blocked → in_progress by contributor · accrues blocked days
- in_progress → in_review by contributor · starts the review clock
- in_review → in_review by client_contact · accepted, changes, or no answer
- in_review → in_review by project_lead · when no answer within the review window · a person sends it; the system only shows the clock
- in_review → in_progress by project_lead · needs reason · the same item, revision +1, never a new one
- in_review → done by project_lead or manager · when evidence attached, else "Attach the evidence first: a link, a file or a sign-off"; the recorder did not submit it, unless their role holds pj:item:accept_own · approved_how recorded; a line billed on acceptance asks invoicing for its draft (AR-29)
- in_review → done by project_lead or manager · when the warning was sent and its notice has ended; evidence attached; the recorder did not submit it, unless their role holds pj:item:accept_own · approved_how deemed; billed as for accept
- planned / in_progress / blocked / in_review → cancelled by project_lead · needs reason · counted as descoped, not short
project
planned → active → closed → cancelled
- none → planned by system · when a contract became active or an order was confirmed (PJ-20, PJ-21) · keyed pj:<source_kind>:<source_id>
- planned → active by project_lead · when the first item started
- active → closed by system · stores sold, delivered, short, over and descoped per sold line
- active → active by system · when the window is closing and the step is on · a warning with the items at risk, while they can still be delivered
- planned / active → cancelled by project_lead · needs reason
What it keeps
| Thing | Meaning | Identified by | Shared? |
|---|---|---|---|
| project | one piece of delivery for one customer from one sale (an implementation, a campaign, a retainer's deliverables) | project_id: VARCHAR, derived from the sale: "pj:<source_kind>:<source_id>"; a project by hand is "pj:manual:<uuid>" | module-owned |
| item | one committed thing somebody delivers | "<project_id>|<line_id>|<n>"; a makegood "<project_id>|mg|<short item_id>" | module-owned |
| state | the state names the customer sees, and which count as open, terminal and delivered | state_id | module-owned (configuration) |
| event | append-only history of every move, with who and why | "evt:<item_id>:<ts>" | module-owned |
| time terms | how time booked to a project bills and where its cost lands, from a date (v2) | project_idvalid_from | module-owned |
| settings | how this business delivers | key | module-owned (configuration) |
A delivery tool that keeps its own list of what was sold drifts from the contract the day a line changes. The sale is sent in; the item keeps the line's id; reconciliation is per sold line.
What runs on its own
| Story | When | What |
|---|---|---|
| PJ-11 | on read | the review clock |
| PJ-12 | daily | reconcile projects whose window ended |
| PJ-13 | when a project is planned | the plan suggestion |
Questions that shape your version
Read these out and let the customer correct one — people rarely recall a policy on demand and can always react to one. Standard is a named authority you can look up and hold us to. Commonly seen is exactly that: arrangements we have met, with no survey behind them. A customer doing none of them is not doing it wrong.
- Which of the things you sell are delivered as work, and which simply run (a monthly service)?
- agencies and consultancies
- one-off phases and deliverables are work; hosting and retainers run
- media sellers
- each placement or insertion is an item
- When you sell 3 of the same deliverable on one payment, is that 3 pieces of work or one?
- implementation phases
- one item per phase
- instalment billing
- one item, paid in parts
- How long does a client have to review, and do you treat silence as acceptance after a warning?
- software implementation
- 10 working days to review, deemed accepted 5 working days after a written warning
- creative work
- a fixed number of revision rounds, no deemed acceptance
- What counts as proof that something was delivered?
- software
- a link to the live feature or a signed acceptance form
- media
- a proof of publication or a screenshot of the placement
- Should the client see their project's status, and can they approve from it?
What you can change yourself
These are settings, not code: someone in your team changes them on a screen, without a developer and without a release.
- how this business delivers
- each AI step's mode (ai.<step>.mode: off | suggest)
- the names of the states and their order (e.g. 'In review' called 'With client')
- v2: how time on each project bills (time and materials through the order or invoicing, fixed price, not billable), at which product, and its cost centre (PJ-14)
- v2: time.restrict_to_team (default false): only item owners and the lead may book time to a project
For builders
- Module spec — this page, for agents
- The lifecycle and the design template
Code
Public repositories, anonymous clone, one release tag each. Read README.md and AGENTS.md first.
- brick-projects (brick, v0.1.4)
git clone --depth 1 --branch v0.1.4 https://git.dodil.io/dodil/erp-brick-projects.git
ssh:[email protected]:dodil/erp-brick-projects.git - brick-business-partner (brick, v0.3.2)
git clone --depth 1 --branch v0.3.2 https://git.dodil.io/dodil/erp-brick-business-partner.git
ssh:[email protected]:dodil/erp-brick-business-partner.git - erp-platform (platform, v0.9.2)
git clone --depth 1 --branch v0.9.2 https://git.dodil.io/dodil/erp-platform.git
ssh:[email protected]:dodil/erp-platform.git
Known gaps in the reference
- no time tracking here: v2 hands timesheets the time terms (PJ-14, PJ-25); hours, cost and time billing are the timesheets module's (wave 4)
- no resource capacity planning across projects (PCF 5.2): owners are assigned, not balanced
- no Gantt, dependencies or critical path: items have due dates, not predecessors
- commitments over time ("12 articles across the year") are not modelled; they arrive as items per unit
- the client link is read-only: acceptance is recorded by staff
- no change-order pricing: a change order is an item with source change_order, priced and billed by the seller
- the AI-step marker in the BPMN is a task name until erp-platform draws dodil:ai / dodil:mode (M0 AI-step contract)