A fictional example of the owner's local view. carrydown rendered this plan page on 28 November 2026 from the sample's plan, its specifications, the checker and its fictional staffing file. In a real project the page is written into the owner's private workspace and never into the repository. Back to the sample walkthrough.

Plan page

Expense approvals

Written
19:32 CST
Plan file
docs/spec/plan.yaml
Plan view
released
People overlay
loaded
Checker
15 files clean, 0 with findings (9 work items, 5 milestones)
Target

The critical path ends : it meets the target with 2 day(s) to spare.

This page is written from the plan, the specifications and the checker. To change anything, ask your agent. Approving the schedule does not approve every specification, so read the work items and their sources.

Project overview

Sources, highest precedence first
Precedence Source Version Status
1Architecture document0.3reviewed

Target

Target: 2027-04-23
The critical path ends 2027-04-21: it meets the target with 2 day(s) to spare.

Milestones
Number Name Start End Demonstration Gate
1Submit an expense reportA staff member creates a report with a receipt in the web client and submits it through the service.
2Route to approversA submitted report reaches the right approvers in order and an approver decides it from the inbox.
3Enforce policyEvery decision obeys the approval limits and separation of duties, every change is in the audit trail, and submitters are notified.
4Pilot with one teamA pilot team's approved reports reach the ledger by the nightly file.
5ReleaseThe flag is on in production, the runbook is handed to operations and finance has signed off.

Breaks and external items

External items, outside the development plan and referenced only as external input:

Derived inputs

No input is derived.

Decisions that need you

People and feasibility

Assignments

People, their tracks and the items they own
Person Name Track Allocation Start Days off Items owned
tamsinTamsin HaleWorkflow100%1WI-01, WI-03, WI-06, WI-07, WI-09
idrisIdris OkoyeExperience60%1WI-02, WI-04, WI-08, WI-11

Load

Capacity is the working days a person has in the work unit, minus days off, times their percent allocation.

Load: sized days of work against allocated capacity, per person and work unit
Person Alloc WU1 WU2 WU3 WU4 WU5 Total
tamsin100%3 of 10d (30%)5 of 14d (36%)6 of 10d (60%)4 of 10d (40%)0 of 10d18 of 54d (33%)
idris60%3 of 6d (50%)4 of 9d (44%)4 of 5d (74%)0 of 6d3 of 6d (50%)14 of 32d (43%)

The same values in words:

No person is over 100 percent of allocated capacity in any work unit.

Fit of each item in its window

Every sized item fits between its last dependency and its complete_by date.

Earliest finish from sizes alone

Forward pass over the dependencies, from sizes and allocation, if nothing else constrained the dates: WI-01 to WI-02 to WI-04 to WI-08 to WI-11, ends 2027-03-10. Owners are not serialized in this pass, so the planned dates can end later.

Earliest finish chain
Item Earliest start Earliest finish Working days
WI-01about 3.0
WI-02about 5.0
WI-04about 6.7
WI-08about 6.7
WI-11about 5.0

Critical path through the planned dates

The longest dependency chain by calendar days between planned completions: WI-01 to WI-02 to WI-04 to WI-08 to WI-11, 79 calendar days. Its end is the plan's end date, the one the target sentence compares.

Critical path items and owners
Item Label Complete by Owner
WI-01Service scaffold, flag and API contracttamsin (Tamsin Hale)
WI-02Report form and receipt uploadidris (Idris Okoye)
WI-04Approver inbox and decisionsidris (Idris Okoye)
WI-08Notifications and delegatesidris (Idris Okoye)
WI-11Release readiness and runbookidris (Idris Okoye)

Dependencies that threaten delivery

Milestone details

Milestone 1, Submit an expense report

Dates
to
Demonstration
Exit gate
A staff member creates a report with a receipt in the web client and submits it through the service.
Why these items
The service scaffold with the API contract and the report form are the thinnest slice that proves the whole path: a report goes from the web client through the API to the database. The contract comes first so the form starts from a frozen shape at the Contract freeze checkpoint. Routing, rules and export stay out, so the path is proven with the least behavior.
What stakeholders see
The Experience engineer creates a report with one receipt in the web client and submits it. The Workflow engineer shows the Submitted state and the stored receipt in the database from the same run.
Tracks
Workflow (WI-01); Experience (WI-02)
Joint check
, Milestone 1 demonstration: A report with one receipt goes from the form to the Submitted state, with the audit-ready state change visible in the database. Experience drives the form and Workflow shows the database.
Milestone file
docs/spec/m1-submit-report/milestone.md
Milestone 1 work items
Item Label Owner Complete by Size Depends on
WI-01Service scaffold, flag and API contracttamsin (Tamsin Hale)Medium, about 3 daysNone
WI-02Report form and receipt uploadidris (Idris Okoye)Medium, about 3 daysWI-01

Milestone 2, Route to approvers

Dates
to
Demonstration
Exit gate
A submitted report reaches the right approvers in order and an approver decides it from the inbox.
Why these items
Routing and the inbox are the two halves of one capability: a submitted report reaches its approvers and they decide it. Neither can be shown alone, because the steps mean nothing without an inbox and the inbox is empty without steps. The Routing meets inbox checkpoint on joins them a week before the demonstration.
What stakeholders see
The Workflow engineer submits reports in each band of section 3.5 and shows the steps built for them. The Experience engineer approves one report as two approvers in turn from the inbox, and it reaches Approved only after the last step.
Tracks
Workflow (WI-03); Experience (WI-04)
Joint check
, Milestone 2 demonstration: A report is approved by two approvers in order from the inbox in the web client. Workflow starts a report with two steps and Experience approves it at both.
Milestone file
docs/spec/m2-route-to-approvers/milestone.md
Milestone 2 work items
Item Label Owner Complete by Size Depends on
WI-03Approval routing enginetamsin (Tamsin Hale)Large, about 5 daysWI-01
WI-04Approver inbox and decisionsidris (Idris Okoye)Medium, about 4 daysWI-02, WI-03

Milestone 3, Enforce policy

Dates
to
Demonstration
Exit gate
Every decision obeys the approval limits and separation of duties, every change is in the audit trail, and submitters are notified.
Why these items
Policy can be seen only when a decision is refused, recorded and told to the submitter, so the rules, the audit log and the notifications form one milestone. The rules come first because the delegates and the error display depend on GOV-1. The audit log shares the transaction of each state change (D1, GOV-2.1), so it stays with the rules in the service.
What stakeholders see
The Experience engineer makes a decision that GOV-1 refuses and shows the rule number in the web client. The Workflow engineer shows the audit event of an allowed decision, and the submitter's email from the same run is opened.
Tracks
Workflow (WI-06, WI-07); Experience (WI-08)
Joint check
, Milestone 3 demonstration: A decision produces an audit event and a notification, and the submitter sees the new state. Workflow shows the audit event and Experience shows the notification and the submitter's view.
Milestone file
docs/spec/m3-enforce-policy/milestone.md
Milestone 3 work items
Item Label Owner Complete by Size Depends on
WI-06Approval limits and separation of dutiestamsin (Tamsin Hale)Medium, about 3 daysWI-03
WI-07Audit log and retentiontamsin (Tamsin Hale)Medium, about 3 daysWI-03
WI-08Notifications and delegatesidris (Idris Okoye)Medium, about 4 daysWI-04, WI-06

Milestone 4, Pilot with one team

Dates
to
Demonstration
Exit gate
A pilot team's approved reports reach the ledger by the nightly file.
Why these items
The pilot proves the capability finance asked for: approved reports reach the ledger with no manual change (BA-3). The export job is the only new build, and the pilot team's real reports are the test of everything shown so far.
What stakeholders see
The Experience engineer walks one pilot report from submit to Approved in the web client. The Workflow engineer runs the nightly job on it and opens the file in the finance tool with no manual change.
One track, because
The pilot adds no screen and no notification. The Experience work it needs is support for the pilot team on the existing web client, which is not a deliverable item.
Tracks
Workflow (WI-09)
Joint check
, Pilot readout: The nightly file for the pilot team's reports opens in the finance tool with no manual change. Workflow produces the file, and Workflow and Experience open it together and verify the checksum.
Milestone file
docs/spec/m4-pilot/milestone.md
Milestone 4 work items
Item Label Owner Complete by Size Depends on
WI-09Ledger export jobtamsin (Tamsin Hale)Medium, about 4 daysWI-07

Milestone 5, Release

Dates
to
Demonstration
Exit gate
The flag is on in production, the runbook is handed to operations and finance has signed off.
Why these items
Release proves the project can be released and run: the rehearsal with the flag on, the runbook handed to operations and the finance sign-off. It holds one item because everything it rehearses was built and shown in milestones 1 to 4.
What stakeholders see
The Experience engineer shows the rehearsal record, then submits and approves a report in staging with the flag on. The Workflow engineer shows the nightly file, its checksum and the audit events from the same run, then switches the flag off.
One track, because
Release readiness is one item of rehearsal and runbook work. It sits on the Experience track because the rehearsal runs through the web client. The Workflow engineer takes part in the rehearsal and owns no new item.
Tracks
Experience (WI-11)
Joint check
, Release: The release rehearsal passes with the flag on in the staging environment. Experience runs it through the web client and Workflow shows the file, the checksum and the audit events.
Milestone file
docs/spec/m5-release/milestone.md
Milestone 5 work items
Item Label Owner Complete by Size Depends on
WI-11Release readiness and runbookidris (Idris Okoye)Medium, about 3 daysWI-08, WI-09

Work item details

WI-01 Service scaffold, flag and API contract

Milestone
Milestone 1, Submit an expense report
Track
Workflow
Owner
tamsin (Tamsin Hale)
Complete by
Checkpoint
, Contract freeze
Size
Medium, about 3 days
Depends on
None
Unblocks
WI-02, WI-03
Theme
expense service

Sources

  • Architecture document: Sections 3.1, 3.2, 5.1, 7.1 (rendering not available)

Why this work item exists

Staff submit reports by email and spreadsheet, and nothing in the company can show who approved what (section 1.1). Two tracks must build the replacement at the same time, the Workflow track for the service and the Experience track for the web client. They can only do that if the interface between them is written down first (DS-1.4, section 5.1). This item is separate because every other item needs its pieces. It creates the service skeleton, the feature flag, the API contract for section 7.1, the first migration and a stub the web client can call on day one. Without it WI-02 cannot start, and WI-03 has no service to put the routing engine in.

Acceptance criteria

  • With the flag unset, GET on the health check answers 200 and GET /v1/reports/{id} answers 404 (tests/flags.test.js).
  • With the flag off, every one of the nine endpoints of section 7.1 returns the status 404 (tests/flags.test.js).
  • With the flag on, each of the nine endpoints answers with its success status from section 7.1 and a body that validates against contracts/openapi.yaml (tests/contract/).
  • Each of the five error codes has a contract example with the status of the Contract table, and the stub returns it through the envelope (tests/contract/).
  • No error response bypasses the envelope. A response with a missing request_id or code fails the contract test (DS-1.6).
  • The first migration creates the six tables of section 3.3 with the listed fields, and runs on an empty database (tests/migrations.test.js, DS-1.5).
  • npm run lint reports no warnings and npm test and npm run test:contract both pass in CI (DS-1.2, DS-1.3).
  • The flag is off by default, and with it off nothing observable changes except the health check (DS-1.1).
  • No fixture, log line or test holds a real name, email address, amount or receipt (DS-1.8, GOV-2.6).
  • The pull request description lists these criteria and the proof for each, and each pull request stays under 400 changed lines where possible (DS-1.7).

Watch out for

  • The flag gate must sit in front of everything, including routes added later. A route added after this item that skips the gate breaks DS-1.1 and section 3.6.
  • The health check path is not in the ground truth, and section 7.1 says all paths start with /v1. Put the health check outside /v1, name it in the contract file and in the pull request, and tell the Experience track.
  • Section 7.1 says "a page" for the inbox and audit answers but gives no shape. Define one small shape in the contract, an items list and a next_cursor, and confirm it at the Contract freeze checkpoint.
  • The ground truth does not say what happens without X-Employee-Id. Do not invent a rule. The stub uses a fixed example identifier and the question goes to the checkpoint.
  • Migrations only move forward (section 3.6, DS-1.5). The "copy of the previous schema" test has nothing to copy until the second migration, so this migration needs the empty database test only.
  • The accepted flag values are not given. This item treats only true as on, so a typing mistake leaves the feature off.

Specification file: docs/spec/m1-submit-report/wi-01-service-scaffold.md

WI-02 Report form and receipt upload

Milestone
Milestone 1, Submit an expense report
Track
Experience
Owner
idris (Idris Okoye)
Complete by
Checkpoint
, Milestone 1 demonstration
Size
Medium, about 3 days
Depends on
WI-01
Unblocks
WI-04
Theme
web client

Sources

  • Architecture document: Sections 2.1, 3.3, 6.2, 7.1 (rendering not available)

Why this work item exists

Staff submit reports by email and spreadsheet today, and finance re-keys every line (section 1.1). Goal G1 is that a staff member submits a report with receipts from a web form (section 1.2). The form is a separate item because it is the first screen of the Experience track, it carries the edge cases of section 6.2 (a receipt that covers several lines, a report in mixed currencies, a returned report) and it must meet the Web Content Accessibility Guidelines (WCAG) 2.2 level AA from the start (NFR-3). Without it, milestone 1 has nothing a staff member can use, and the approver inbox (WI-04) has no submitted reports to show.

Acceptance criteria

  • Creating a draft calls POST /reports and the response validates against contracts/openapi.yaml (tests/contract/web-client-calls.test.js).
  • A line has the six FR-1 fields, and an E_VALIDATION message shows next to the field it names (tests/report-form.test.js).
  • A saved draft reopens with the same lines and receipts, and nothing is sent to submit (tests/report-form.test.js, BA-1).
  • The uploader refuses a file type outside PDF, PNG and JPEG, a file over 10 MB and a 21st receipt before sending, and shows the service message when the service refuses (tests/receipt-upload.test.js, FR-2).
  • A receipt with no line link stays in the report list and can cover several lines (tests/receipt-upload.test.js, 6.2 item 1).
  • Amounts display from integer cents with no floating point sums, and the total shown is the service's base_total_cents (tests/money-display.test.js, 6.2 item 2).
  • After submit the form is read only and the state shown comes from the response. E_STATE and E_LIMIT each show their message with the request identifier (tests/report-form.test.js, FR-3).
  • A Returned report shows the approver's comment and can be edited and submitted again (tests/report-form.test.js, 6.2 item 3).
  • With the flag off the page shows a "not available" state, and no console error or stack trace reaches the user (tests/report-form.test.js, DS-1.1).
  • The recorded keyboard and screen reader walkthrough and the automated check show no WCAG 2.2 AA failure on the page (NFR-3).
  • npm test, npm run test:contract and npm run lint pass. No fixture or log line holds a real name, amount or receipt (DS-1.2, DS-1.3, DS-1.8, GOV-2.6).

Watch out for

  • The ground truth has no endpoint that lists a person's own reports. BA-1 asks to finish on another device, so the page address carries the report id and a person reopens the draft by that link. A list endpoint is a contract change in its own pull request, raised with the stakeholders.
  • Never use floating point for money. Amounts are integer cents. Format by the currency's minor unit and verify at implementation how the service treats currencies without two decimals, because the ground truth only says cents.
  • PUT /reports/{id} replaces the line items, so line item ids may change and a receipt link may point at an old id. Re-read the report after every save and never cache line ids.
  • The client checks for type, size and count are for convenience. The service is the control. In the spirit of GOV-1.7, the web client is never the control. The ground truth does not say whether 10 MB means 10,000,000 or 10,485,760 bytes. Agree one value with the Workflow track and write it in the contract.
  • Receipts may hold personal data (R4). Never log file names or contents, never keep file bytes in browser storage and never put them in error reports.
  • POST /reports/{id}/submit answers 202 with the state, so routing may follow later. Do not show In approval before reading it. Show E_LIMIT when it arrives, with the offline exception process from section 3.5.
  • No item in the plan says which Workflow work replaces the stub answers with stored data before 2027-02-12. The joint check needs a real state change in the database, so raise this at the Contract freeze checkpoint on 2027-02-05. This item has the four working days from 2027-02-05 to 2027-02-10.

Specification file: docs/spec/m1-submit-report/wi-02-report-form.md

WI-03 Approval routing engine

Milestone
Milestone 2, Route to approvers
Track
Workflow
Owner
tamsin (Tamsin Hale)
Complete by
Checkpoint
, Routing meets inbox
Size
Large, about 5 days
Depends on
WI-01
Unblocks
WI-04, WI-06, WI-07
Theme
expense service

Sources

  • Architecture document: Sections 3.4, 3.5, 7.1 (rendering not available)

Why this work item exists

A submitted report must reach the right approvers without manual routing (goal G2 in section 1.2, requirement FR-4 in section 2.1). Section 3.5 turns the base total into an ordered list of approval steps. Section 3.4 lists the only state changes a report may make. Without this item a draft can be submitted but nobody can decide it, because no steps exist. It is its own item because the approver inbox (WI-04), the rules module (WI-06) and the audit writer (WI-07) all read the steps and states that it creates.

Acceptance criteria

  • The base total is computed in cents by the rule of section 6.2 item 2, and each row of the table in section 3.5 stores its steps in order with the roles named (tests/routing.engine.test.js).
  • A base total of 2500001 cents answers E_LIMIT with status 422 and leaves the report and its steps unchanged (tests/routing.states.test.js).
  • When an approver is the submitter, the step moves up the reporting line (tests/routing.engine.test.js).
  • Every row of the section 3.4 table works, and every other transition answers E_STATE with status 409 (tests/routing.states.test.js).
  • A later step does not appear in the inbox until the earlier step approves (tests/contract/routing.contract.test.js).
  • The reminder is due after 3 business days and the escalation after 5, and a weekend submission counts from the next Monday (tests/routing.business-days.test.js).
  • Escalation changes only the approver of the overdue step and every handler for afterChange is called in the same transaction (tests/routing.engine.test.js).
  • A blank comment on reject or return answers E_VALIDATION naming the field, and every error uses the envelope (tests/contract/routing.contract.test.js).
  • With EXPENSE_APPROVALS_ENABLED off, the three endpoints answer 404 (tests/contract/routing.contract.test.js).
  • No log line, test fixture or error message carries an amount or a comment (reviewed in the pull request).

Watch out for

  • Reminders. The business analyst note asks for 2 business days (section 6.1 and 6.2 item 6). Section 3.5 says 3. Use 3. The next version of the document should settle the number.
  • Step states are not listed in the ground truth. Choose the smallest set, record it in contracts/openapi.yaml and keep rows after a return so the history stays (GOV-2.4, the seven year keep rule).
  • Business days are Monday to Friday. The ground truth names no public holidays, so do not invent a calendar. The clock for a step starts at the earlier step's decided_at, or at submitted_at for step 1, and a weekend start counts from the next Monday. No new column is needed. The ground truth also names no scheduler for reminders and escalations, so provide the functions and a tested entry point and raise the owner at the checkpoint.
  • If the move up the line lands on a person who already holds a step, move up again, because GOV-1.3, the rule that the people in one route differ, needs different people. The ground truth does not say this, so test and mention it.
  • Whether an E_LIMIT submit leaves the report in Draft or Returned is not stated. Leave it unchanged and say so in the pull request.

Specification file: docs/spec/m2-route-to-approvers/wi-03-routing-engine.md

WI-04 Approver inbox and decisions

Milestone
Milestone 2, Route to approvers
Track
Experience
Owner
idris (Idris Okoye)
Complete by
Checkpoint
, Milestone 2 demonstration
Size
Medium, about 4 days
Depends on
WI-02, WI-03
Unblocks
WI-08
Theme
web client

Sources

  • Architecture document: Sections 2.1, 3.4, 6.1, 7.1 (rendering not available)

Why this work item exists

Approvers cannot decide a report that they cannot see. A report waits 11 days on average for approval today, and managers decide in the gaps of their day (1.1, 6.1). The functional requirements (FR) of 2.1 ask for one inbox, oldest first (FR-5), and for approve, reject and return, with a comment on the last two (FR-6). The business analyst (BA) findings add that the total and the submitter must be visible without opening a report (BA-2) and that a comment on a return is not optional (BA-5). This item is separate because it needs submitted reports from WI-02 and approval steps from WI-03. Without it the gate of milestone 2, an approver decides a report from the inbox, cannot be shown, and WI-08 has no inbox to extend.

Acceptance criteria

  • GET /inbox rows are shown oldest first, in the order returned, with submitter and base total visible, the total formatted from integer cents such as 25,000.00 (tests/inbox.test.js).
  • Approve, reject and return each send the body of 7.1 to POST /reports/{id}/decisions. Reject and return with a blank comment send no request and show an error tied to the field (tests/decision-dialog.test.js).
  • An E_FORBIDDEN response shows its message and the rule number from rule, and the report stays in the inbox (tests/decision-errors.test.js).
  • An E_STATE response tells the approver the report changed and reloads the inbox (tests/decision-errors.test.js).
  • The client holds no copy of the GOV-1 rules. Every refusal shown comes from the service (GOV-1.7; review of web/src/ recorded in the pull request).
  • The inbox and dialog work by keyboard alone, with focus kept in the dialog and returned on close, and are announced by a screen reader, to WCAG 2.2 level AA (recorded walkthrough).
  • Requests and responses validate against contracts/openapi.yaml (tests/contract/inbox-decisions.test.js, npm run test:contract).
  • With the flag off, the service answers 404 to GET /inbox and the client shows a plain not available message (DS-1.1, tests/inbox-api.test.js).
  • No comment, amount or identity is written to the browser console, a URL or a fixture that holds real data (DS-1.8, review recorded).
  • npm run lint passes with no warnings, and npm test and npm run test:contract pass (DS-1.2, DS-1.3).

Watch out for

  • GOV-1.7. Hiding or disabling a button is never the control. A button that looks allowed may still be refused, so always handle E_FORBIDDEN.
  • Show the rule number from the rule field. Do not parse it out of message, whose wording may change.
  • E_STATE happens when two people act on one report, or the report moved since the page loaded. 7.1 has no version field in the decision request, so do not invent one.
  • E_NOT_FOUND also covers a report the caller may not know exists. Say only that it is not available, never why.
  • Comments can hold personal data. Do not log them, put them in a URL, or keep them after the dialog closes. Money is integer cents (3.3). Format it, never use floating point.
  • E_FORBIDDEN cannot be tested against real rules before WI-06 lands on 2027-03-08. Keep the fixture, then repeat the check with real rules.

Specification file: docs/spec/m2-route-to-approvers/wi-04-approver-inbox.md

WI-06 Approval limits and separation of duties

Milestone
Milestone 3, Enforce policy
Track
Workflow
Owner
tamsin (Tamsin Hale)
Complete by
Checkpoint
, Rules meet routing
Size
Medium, about 3 days
Depends on
WI-03
Unblocks
WI-08
Theme
expense service

Sources

  • Architecture document: Sections 3.5, 4.1, 7.1 (rendering not available)

Why this work item exists

Staff approve money, so the finance policy team set two things in GOV-1, the rule on approval limits and separation of duties (section 4.1). Nobody may decide their own report, people in one route must differ, delegates have limits, and nothing above 25,000.00 is approved in the service. Routing (WI-03) puts the right people in the steps, but it does not stop a wrong person from calling the decision endpoint. The control must sit on the server for every decision (GOV-1.7), so it is a separate item with one test per rule. Without it the delegate work in WI-08 has no limit to honor, and goal G3 in section 1.2 is not met.

Acceptance criteria

  • GOV-1.1 refuses approve, reject and return by the submitter, and by a delegate who is the submitter (tests/rules.test.js).
  • GOV-1.2 refuses an approver who is not above the submitter and not a finance reviewer (tests/rules.test.js).
  • GOV-1.3 refuses a person who already decided or holds another step of the same report (tests/rules.test.js).
  • GOV-1.4 refuses a delegate outside the dates, and on a report the delegator submitted, and allows the first and last day (tests/rules.test.js).
  • GOV-1.5 refuses an approval above the limit of the role, and any approval above 25,000.00 (tests/rules.test.js).
  • GOV-1.6 answers E_FORBIDDEN (403) with rule set, and the report, steps and audit rows are unchanged (tests/contract/rules.contract.test.js).
  • GOV-1.7 holds with the web client absent, for every rule (tests/contract/rules.contract.test.js).
  • Each refusal message starts with the rule number, as in the example of section 7.1, and holds no amount, name or comment (tests/rules.test.js).
  • No log line written during a refusal carries an amount or a comment (GOV-2.6, the audit and retention rule on log lines), checked by capturing the output in tests/rules.test.js.
  • With EXPENSE_APPROVALS_ENABLED off the decision endpoint answers 404 and the module is not called (tests/contract/rules.contract.test.js).
  • The placeholder checkRules no longer exists, and npm test, npm run test:contract and npm run lint pass.

Watch out for

  • Section 3.5 puts a line manager first on routes up to 25,000.00, while GOV-1.5 says a line manager counts only up to 5,000.00. Read "counts" as the approval that completes the report. Refuse an approve with GOV-1.5 when the last step approver's role limit is below the total, and always above 25,000.00. The ground truth gives the finance reviewer no limit, so use 25,000.00. Confirm with the finance policy team.
  • Order of checks is not stated. Do E_NOT_FOUND, E_VALIDATION and E_STATE first, then the rules in ascending rule number, and return the first refusal. Say so in the pull request.
  • A caller who is neither the current approver nor an active delegate is refused by a role check, which has no GOV rule. The ground truth gives no value for rule then, so settle it in a contract pull request.
  • GOV-1.3 and a delegate. Treat the person who acts as the person in the step, so a delegate who holds another step of the same report is refused.
  • Compare dates as UTC (Coordinated Universal Time) dates. Whether the last day is included is not stated, so include it and test it.
  • A refusal must not leak. Keep amounts, names and comments out of the message and out of log lines (GOV-2.6).

Specification file: docs/spec/m3-enforce-policy/wi-06-limits-and-duties.md

WI-07 Audit log and retention

Milestone
Milestone 3, Enforce policy
Track
Workflow
Owner
tamsin (Tamsin Hale)
Complete by
Checkpoint
, Milestone 3 demonstration
Size
Medium, about 3 days
Depends on
WI-03
Unblocks
WI-09
Theme
expense service

Sources

  • Architecture document: Sections 3.3, 4.2 (rendering not available)

Why this work item exists

Today nobody can show who approved what, or when, and two audit findings last year named the missing trail (section 1.1). GOV-2, the audit and retention rule owned by internal audit (section 4.2), asks for a trail that cannot be edited, is written with every change, and is deleted only after 7 years. Goal G4 in section 1.2 depends on it. It is its own item because the guarantees live in the database (rights, one transaction) and not in the routing logic. The ledger export in WI-09 must record its own events through the writer, so it waits for this item.

Acceptance criteria

  • Every transition of the section 3.4 table and every escalation writes exactly one audit_event in the same transaction (tests/audit.writer.test.js).
  • When the audit write fails, the report, steps and version are unchanged and the caller gets an error envelope (tests/audit.writer.test.js).
  • The application account can insert and select on audit_event, and update and delete are refused by the database (tests/audit.permissions.test.js).
  • detail accepts identifiers only, and a comment, amount, name or email address is refused (tests/audit.writer.test.js).
  • An auditor reading GET /reports/{id}/audit gets a page and one new audit.viewed event per call. Anyone else gets E_FORBIDDEN and no event (tests/contract/audit.contract.test.js).
  • Log lines from a decision carry the report identifier and event type, and no amount, comment or receipt content (tests/audit.logs.test.js).
  • The retention job deletes nothing younger than 7 years from decided_at, and nothing under a legal hold (tests/audit.retention.test.js).
  • The job removes the receipt files together with their report and leaves other reports untouched (tests/audit.retention.test.js).
  • The migration passes on an empty database and on a copy of the previous schema (tests/migrations.audit.test.js).
  • With EXPENSE_APPROVALS_ENABLED off the audit endpoint answers 404 (tests/contract/audit.contract.test.js).
  • No fixture, log or test holds a secret or personal data (DS-1.8), recorded in the pull request.

Watch out for

  • The retention job must delete, while the application account must not. Run the job as a separate database role that only the job uses. The ground truth does not name it, so confirm with internal audit.
  • Section 3.3 has no legal hold field. This item adds a boolean on report, false by default, in a forward migration. Confirm with internal audit.
  • A write failure has no code in the table of section 7.1. Answer status 500 in the envelope and put the new code in a contract pull request (DS-1.4).
  • An approve that is not the last step keeps the state In approval, so from_state equals to_state. Write the event anyway.
  • The ground truth gives no actor for events the service causes, such as routed. Use a fixed service identifier from configuration, never a name.
  • Count audit.viewed once per request, including later pages. A refused read writes none. If the event cannot be written, the read fails.
  • Reports never decided have no decision date, so the job leaves them alone.

Specification file: docs/spec/m3-enforce-policy/wi-07-audit-log.md

WI-08 Notifications and delegates

Milestone
Milestone 3, Enforce policy
Track
Experience
Owner
idris (Idris Okoye)
Complete by
Checkpoint
, Milestone 3 demonstration
Size
Medium, about 4 days
Depends on
WI-04, WI-06
Unblocks
WI-11
Theme
notification worker

Sources

  • Architecture document: Sections 6.1, 6.2, 7.2 (rendering not available)

Why this work item exists

Submitters do not learn what happened to a report, and reports wait when a manager is on leave (6.1 BA-4, BA-5). The functional requirements (FR) of 2.1 ask that the submitter is told of each decision and state change (FR-7) and that an approver can name a delegate for a range of dates (FR-8). The business analyst (BA) findings add that a delegate fixes most of the waiting and that a return needs a visible reason. The Experience track owns the notification worker and the delegate screen (3.2). This item is separate because it needs the inbox and decisions of WI-04 to cause state changes and the rules of WI-06 to govern delegates. Without it the gate of milestone 3, submitters are notified, cannot be shown, and WI-11 has no notification path to rehearse.

Acceptance criteria

  • For each valid event the worker sends exactly one email to recipient_id, for every from and to pair of 3.4 (tests/notify-worker.test.js).
  • Fixture events carry only the eight fields of 7.2 (tests/contract/notification-event.test.js).
  • Amounts and comments come from GET /reports/{id} read with the service account. A comment appears only when comment_present is true (tests/notify-worker.test.js).
  • The same event_id delivered twice sends one email (tests/notify-worker.test.js).
  • Captured log lines hold report ids and event types only, with no amount, comment, receipt content or address (GOV-2.6, tests/notify-worker.test.js).
  • A reminder goes to the current approver on the third business day and not on the second, and a weekend submission counts from the next Monday (tests/notify-reminder.test.js).
  • The delegate screen saves with PUT /delegates, blocks an end date before the start date and shows service errors from the envelope (tests/delegates-screen.test.js).
  • Requests and responses of PUT /delegates validate against contracts/openapi.yaml (tests/contract/delegates.contract.test.js).
  • A delegate sees the approver's inbox inside the range, and a decision outside it shows the GOV-1.4 refusal (recorded run, with WI-06 merged).
  • The delegate screen works by keyboard and a screen reader, to WCAG, the Web Content Accessibility Guidelines, 2.2 level AA (recorded walkthrough).
  • With the flag off the worker sends nothing and PUT /delegates answers 404 (DS-1.1, tests/notify-worker.test.js).
  • npm run lint, npm test and npm run test:contract pass, and no secret or personal data is in code, tests, logs or fixtures (DS-1.3, DS-1.8).

Watch out for

  • Reminder days. BA-6 (6.1) and 6.2 item 6 ask for 2 business days. Section 3.5 says 3. The architecture document is the ground truth and an earlier section wins over the business analyst note, so use 3. The next document version should settle the number. Keep it in one constant.
  • 7.2 defines only report.state_changed. It defines no reminder or escalation event. Agree with the Workflow track how the worker learns a reminder is due. Do not invent an event type without a contract pull request.
  • The email may hold amounts and comments, but the event, the queue and the logs must not (R4 of 8.1, GOV-2.6). An address never goes into an event or an audit record (GOV-2.3). The worker uses recipient_id and never picks the recipient. Build the email at send time and keep nothing.
  • The queue may deliver an event twice. Use event_id to send once. The ground truth does not state the delivery guarantee, so verify it.
  • PUT /delegates replaces the record. The ground truth does not say whether ends_on is inclusive. Treat both dates as inside the record, verify with the finance policy team and record the answer.

Specification file: docs/spec/m3-enforce-policy/wi-08-notifications-delegates.md

WI-09 Ledger export job

Milestone
Milestone 4, Pilot with one team
Track
Workflow
Owner
tamsin (Tamsin Hale)
Complete by
Checkpoint
, Pilot readout
Size
Medium, about 4 days
Depends on
WI-07
Unblocks
WI-11
External input
the pilot team, named by the stakeholders
Theme
export job

Sources

  • Architecture document: Sections 3.6, 4.2, 7.3 (rendering not available)

Why this work item exists

Finance staff re-key every line of every approved report into the ledger today (1.1). Goal G5 and the functional requirement FR-9 (1.2, 2.1) ask for a nightly file in the format of 7.3. The business analyst finding BA-3 (6.1) asks for one line per approved line item, with the cost center, so nobody splits totals by hand. This item is separate because it is a scheduled job with its own file contract and its own failure behavior (3.6), and because it moves reports to a final state with an audit event (3.4, 4.2). It waits on WI-07 so that the move to Exported is audited in the same transaction. Without it the gate of milestone 4, a pilot team's approved reports reach the ledger, cannot be shown, and WI-11 has no job to put in the runbook.

Acceptance criteria

  • The job starts at 02:00 UTC and not at other times, and a second start during a run writes nothing (tests/export-ledger-job.test.js, fixed clock).
  • The files are named expenses-YYYYMMDD.csv and expenses-YYYYMMDD.sha256, and the second holds the SHA-256 checksum of the first (tests/export-ledger-job.test.js).
  • The header and the order are the ten columns of 7.3 and nothing else (tests/contract/ledger-format.test.js).
  • The file has one row per line item of every Approved report and no row for a report in any other state (tests/export-ledger-job.test.js).
  • Amounts are the stored integers, and cost_center is the value at approval time, not at export time (tests/export-ledger-job.test.js).
  • Each exported report is Exported with one audit_event from Approved to Exported, and a failing audit write leaves it Approved with no file published (GOV-2.1, tests/export-ledger-job.test.js).
  • After a failure at any step, a rerun leaves one file for the night with no duplicate and no lost row (tests/export-ledger-job.test.js).
  • The file holds no merchant, note, name, email address or receipt content, and captured log lines hold no amount (GOV-2.3, GOV-2.6, tests/export-ledger-job.test.js).
  • The job runs under the application account and needs no update or delete right on the audit table (GOV-2.2, recorded check in staging).
  • With the flag off the job writes no file and changes no state (DS-1.1, tests/export-ledger-job.test.js).
  • npm run lint, npm test and npm run test:contract pass, with no secret or personal data in code, tests, logs or fixtures (DS-1.2, DS-1.3, DS-1.8).
  • At the pilot readout the file for the pilot team's reports opens in the finance tool with no manual change (recorded at the checkpoint).

Watch out for

  • cost_center is "of the submitter at approval time", but no table of 3.3 holds it. Do not read it live at export time, since it may have changed. If a column is needed, add it by a forward migration with its test (DS-1.5) and record it under Decisions recorded.
  • 7.3 does not give a header row, a delimiter, quoting, a timestamp format, the layout of the .sha256 file or the rule for a night with no reports. Choose a header row, commas, ISO 8601 UTC timestamps, a lowercase hexadecimal digest, and a file even on an empty night. Record each choice and confirm it with the stakeholders before the readout. Keep the format in one module (R3).
  • Never append to a published file and never export an Exported report. Once a file is in the drop folder the ledger may already have read it, so a duplicate row cannot be taken back.
  • Line amounts are stored integers, and the report total is rounded after summing (6.2 item 2). The rows of a report may differ from its base_total_cents by a cent. Export the stored values, never recompute them, and tell the stakeholders.
  • The line_item table holds merchant and note. They are not columns of 7.3, so they stay out. Delete staged files after the move and never log row contents.
  • There is no approval per line item. Approval is per report, so every line item of an Approved report is exported. approved_at is the decision time of the last approving step, so verify it equals decided_at of the report.

Specification file: docs/spec/m4-pilot/wi-09-ledger-export.md

WI-11 Release readiness and runbook

Milestone
Milestone 5, Release
Track
Experience
Owner
idris (Idris Okoye)
Complete by
Checkpoint
, Release
Size
Medium, about 3 days
Depends on
WI-08, WI-09
Unblocks
None
External input
finance sign-off on the export format and retention period
Theme
release

Sources

  • Architecture document: Sections 5.1, 8.1 (rendering not available)

Why this work item exists

The service goes to production behind the flag EXPENSE_APPROVALS_ENABLED (sections 3.6 and 5.1), and operations will run it. Until this item, nothing shows that the finished system meets the quality requirements for speed (NFR-1), accessibility (NFR-3) and recovery (NFR-5), or that the responses to the five risks of section 8.1 are in place. This is its own item because it can only start when the feature items are done, and it needs the web client, the export job and a staging environment together. Without it, operations has no written way to start, stop, restore or switch the feature, and the release gate of milestone 5 has no proof behind it.

Acceptance criteria

  • docs/runbook.md has the six procedures, and each was followed once in staging with the result recorded (rehearsal record).
  • The release rehearsal passes in staging with the flag on, from a new report to the nightly file and its .sha256 file (rehearsal record, checkpoint check).
  • With the flag off in staging only the health check answers and every other path returns 404 (rehearsal record, DS-1.1).
  • The load check records a 95th percentile under 400 ms at 200 requests per second (load check output, NFR-1).
  • The accessibility record shows no open WCAG 2.2 AA failure on any page of the web client (accessibility record, NFR-3).
  • The restore record shows a recovery point of at most 15 minutes and a recovery time under 4 hours (restore record, NFR-5).
  • A failed nightly run was repeated without duplicate rows, and the runbook says how (rehearsal record).
  • The re-route procedure says what version 1 does today and does not invent a path (runbook review by the Workflow track).
  • Risks R1 to R5 each have a row with evidence and an owner for any residue (risk review table).
  • The finance sign-off state is written in the runbook and the checkpoint comment (checkpoint comment).
  • npm test, npm run test:contract and npm run lint pass on the release candidate, and no secret, name, amount or receipt is in any record (DS-1.2, DS-1.3, DS-1.8, GOV-2.6).

Watch out for

  • Section 3.5 rule 4 says steps do not change after routing except by escalation, and R1 says finance can ask for a re-route. Section 7.1 has no re-route endpoint. The ground truth does not define the path, so the runbook says what the service does today and names the stakeholders as the owners of the gap.
  • The business analyst note asks for a reminder after 2 business days and section 3.5 says 3. The work items use 3. The runbook and the R2 review must say 3, and the next version of the architecture document should settle the number.
  • Do not replace the 02:00 UTC run with a manual run in the rehearsal. It needs the real schedule once, so start early enough (see Implementation guide step 3).
  • NFR-5 covers the database. The ground truth is silent on backups of the receipt store. Ask the platform engineering team and record the answer in the restore record.
  • The load check must use fixture data. A run that creates thousands of reports must not leave Approved reports that the next staging export writes into the ledger drop folder.
  • Turning the flag off does not remove data. The runbook must say this, and that migrations are never undone.
  • The flag is a single process-wide setting (decision D4), read once at start-up. The runbook must say that a change needs a restart.

Specification file: docs/spec/m5-release/wi-11-release-readiness.md

Review findings

Checker findings

15 files clean, 0 with findings (9 work items, 5 milestones)

No findings.

Notes from the checker:

Planning review

Milestone composition (rules 1 to 3)

Order of work per track (rules 4, 5 and 10)

Theme switches (consecutive items of one owner, by date)

Slack before checkpoints (rule 7)

Critical path owners (rule 8)

Load ratio (rule 6)

No planning review finding.

Second-pass review

Report: docs/spec/plan-review.md

Findings and risk
Review identifier and type Affected work and source evidence Finding and reasoning Likelihood and impact with reasons Confidence Proposed repair and effects
R-01, gapWI-01, WI-02, WI-03, milestone 1. FR-1, FR-2, FR-3, BA-1, section 3.2 (receipt store), 6.2 item 3, R4.No item builds the server side of POST /reports, PUT /reports/{id}, GET /reports/{id} and POST /reports/{id}/receipts. WI-01 delivers an in-memory stub with no database logic, WI-02 creates no server code, and WI-03 creates only the submit, inbox and decision handlers. WI-02 says so itself under "Watch out for". Yet milestone 1's demonstration shows the Submitted state and the stored receipt in the database, and its criteria expect the service to refuse a large or wrongly typed receipt with E_VALIDATION.High: the specification already names the gap, and the demonstration on cannot pass on a stub. Impact high: the first milestone, the receipt store's random keys (R4) and the version rule of 6.2 item 3 have no owner.HighAdd the stored draft, line item and receipt handlers, the receipt store and the resubmit version rule to the Workflow track in work unit 1, as a new item with a new identifier or as an agreed extension of WI-01. The Workflow engineer has 7 spare days in work unit 1. Effects: one specification and issue, a board item, WI-02's dependency, and milestone 1's item list. The end date does not move.
R-02, gapWI-07, WI-08, milestone 3. FR-7, section 7.2.Section 7.2 says the API puts one event on the queue for each state change. WI-07 puts "the notification event, the queue and the email" out of scope as WI-08's. WI-08 puts "publishing the event" out of scope as the Workflow track's and says the plan names no publisher. Each item excludes the work, so no item owns it.Medium to high: the worker can be built and tested on fixture events, so the gap may stay hidden until the joint check. Impact medium: milestone 3's gate, "submitters are notified", fails on without it.HighGive the publisher to the Workflow track, for example as a second afterChange handler beside the audit writer in WI-07, written in the same transaction. Effects: WI-07 grows by about one day (work unit 3 load for the Workflow engineer from 6 to about 7 of 10 days), WI-07 and WI-08 scope text and the joint check.
R-03, gapWI-03, WI-08, WI-11. Section 3.5 rule 3, R2, section 7.2.WI-03 computes when a reminder or an escalation is due and leaves the scheduler to be raised at a checkpoint. WI-08 sends the reminder email but says section 7.2 defines no reminder event and asks the tracks to agree how the worker learns one is due. No item runs the check, escalates an overdue step or carries the reminder to the worker.Medium: each item's tests pass without it. Impact medium: R2's response, escalation after 5 business days, is not in place at release, and the WI-11 risk review would find it late.MediumName one Workflow owner for a scheduled entry point that escalates overdue steps and signals due reminders, with a contract pull request for the signal (DS-1.4). Effects: WI-03 or a new item, WI-08's context, the contract, and WI-11's risk review row for R2.
R-04, gap and questionWI-11. NFR-2, NFR-4.NFR-4, data stays in the home region, is not cited or checked by any item. NFR-2 is placed with the platform engineering team in WI-11's out of scope, but the ground truth names no owner and no owner decision is recorded.Low: deployment likely follows company defaults. Impact medium: receipts and comments carry personal data, and the email path may cross regions.MediumAdd one WI-11 acceptance criterion that records the region of the database, the receipt store, the queue and the email service. Record the owner's decision on who owns NFR-2. Effects: WI-11 text only.
Decisions, repairs and verification
Review identifier Owner decision and reason Changed files or external identifiers Verification evidence Status and remaining risk
R-01Not applied. The owner asked for a review only: the released specifications stay unchanged and the finding is held for the next release.NoneNo file under docs/spec/ or docs/context/ changed.Open, held for the next release. Milestone 1 risk remains.
R-02Not applied. Review only; held for the next release.NoneNo file under docs/spec/ or docs/context/ changed.Open, held for the next release. Milestone 3 risk remains.
R-03Not applied. Review only; held for the next release.NoneNo file under docs/spec/ or docs/context/ changed.Open, held for the next release. The R2 response remains incomplete.
R-04Not applied. Review only; held for the next release.NoneNo file under docs/spec/ or docs/context/ changed.Open, held for the next release.
AllNo repair was applied, so nothing was published and no issue or board value changed.Nonecheck_specs.py --root sample/expense-approvals --report still reports 0 findings, run on after this report was written.No repair to verify.

Assumptions to confirm

These specifications say to verify a fact at implementation: