Atlas: Orders with Lifecycle
Snapshot: 2026-08-04. Design settled (DT-018, all forks ruled); pilot foundation merged; the seven-PR implementation stack is green but paused — the design track (DT-020 Receiving) is the active focus, and a cascade rebase over main’s recent movement (common-module 14.1.0 adoption, settings library) is owed before the bottom-up merge chain resumes.
This page is the map of the Orders v2 effort: from any starting point — a ticket, a pull request, a decision — you can reach everything related to it. New to the project? Read Goal, then Design, then come back here to find the work in flight. The companion views at the bottom offer an interactive navigator and a question-answering notebook generated from the same map.
Phases at a glance
Section titled “Phases at a glance”The effort runs in phases under a single specification root. Phase 0+1 piloted the occurrence-log primitives on DemandItem; Phase 2 builds the net-new order module on that foundation.
| Phase | Umbrella ticket | Status | Scope |
|---|---|---|---|
| Specification root | PDEV-469 | In Progress | Order V2 specification — parent of the whole effort |
| Phase 0+1 — DemandItem pilot | PDEV-947, PDEV-1110 | In Progress / Todo | Occurrence-log primitives in common-module, the complete demand module + inventory peer in operations (the DT-019 “pilot carries the primitives” ruling) |
| Phase 2 — Orders replacement | PDEV-1117 | Todo (queued, on hold) | Net-new procurement/order module on the DT-018 design; backend track PDEV-1132, frontend track PDEV-1133. The effort’s tickets live in the Linear project “Procurement Workflows” (re-triaged 2026-08-04) |
The PR stack
Section titled “The PR stack”The open work is a single stacked chain in operations: each PR’s base branch is the PR below it, so the chain merges bottom-up starting at #220. The merged pilot increments and the P2-H1 hardening PR are the foundation the stack sits on; the service-layer conventions ruled during the #220 review were merged into the Kotlin Coding Standards via documentation PR #141 (2026-07-28) and are applied across all stack PRs. The chain itself is on hold behind the design track; main has since advanced (common-module 14.1.0, the settings library), so the stack takes one more cascade rebase before merging.
Increment traceability
Section titled “Increment traceability”One row per increment. Design anchors name the decisions the increment implements — DEC-NN from Decisions, fork (F-n) and option (O-n) rulings from the DT-018 design record.
| Increment | Ticket | PR | Status | Design anchors |
|---|---|---|---|---|
| Pilot I1 — occurrence-store spike | PDEV-1110 | operations#217 | Merged (verdict GREEN) | Go/no-go on constraint threading |
| Pilot I2 — common-module enablers | PDEV-1110 | common-module#203 | Merged (13.1.0 published) | GeneralizedQuantity algebra, typed guard-failure channel |
| Pilot I3 — demand skeleton + single-log kinds | PDEV-1110 | operations#218, operations#219 | Merged | The 3-layer module contract (phase01 plan) |
| Pilot I4 — demand sagas + inventory module | PDEV-947 | operations#220 | Open (stack base) | Cross-module sagas, R7 listener; source of the r2 convention rulings |
| Pilot I5 — law probes + phase exit | PDEV-947 | operations#222 | Open | Phase-exit criteria of PDEV-1110; closes PDEV-947 |
| P2-I1 — order module skeleton + SupplierBinding | PDEV-1134 | operations#224 | Open | DEC-04/DEC-05, F8/O6 (SupplierBinding) |
| P2-I2 — OrderLine + descriptor freeze + attach | PDEV-1135 | operations#225 | Open | Descriptor COPY-at-genesis freeze (§7.2 discharge), F6 (card-less lines) |
| P2-I3 — submit saga + settle + acknowledgment | PDEV-1136 | operations#227 | Open | DEC-01/DEC-02/DEC-05, O2 (submit choreography) |
| P2-T0 — API-test baseline | PDEV-1160 | operations#228 | Open | Traceability catch-up on the api-tests infrastructure |
| P2-I4 — RecordReceipt listener + accrual | PDEV-1137 | operations#231 | Open (stack top) | DEC-03, F9 (stored sReceived, computed open quantity) |
| P2-H1 — transaction hardening | PDEV-1166 | operations#229 | Merged | Commit-side envelopes, unique committed-successor fork guard, F1 refusal rows |
| P2-IQ — demand station-validation | PDEV-1139 | — | Queued, on hold | DT-021 (nullable-target read, station placeholder) |
| P2-I5 — law probes + legacy retirement (closer) | PDEV-1138 | — | Queued, on hold | Phase-2 exit |
| P2-U1 — order-queue screen + queue-add composite | PDEV-1140 | — | Queued, on hold | DT-021 (three-arm BFF composite, auto-release at attach) |
| P2-U2 — order composition + supplier binding UI | PDEV-1141 | — | Queued, on hold | DEC-04 surfaced in UI |
| P2-U3 — legacy PO-sheet retirement | PDEV-1142 | — | Queued, on hold | Zero-data-migration stance (client-side sheet) |
Decisions and where they landed
Section titled “Decisions and where they landed”Product and design decisions, the document that records each, and the increments that implement them.
| Decision | Recorded in | Implemented by |
|---|---|---|
| DEC-01 — Holds on demand live order-side | Decisions | Submit/settle in operations#227; hold-dies-with-the-order on cancel |
| DEC-02 — Cancel is draft-only (O4: post-submit cancel parked) | Decisions | Order lifecycle in operations#224/#227 |
| DEC-03 — Received amounts accrue; open amounts are computed (F9) | Decisions | operations#231 (RecordReceipt from demand’s ProductionRecorded notifications) |
| DEC-04 — The supplier freezes at submission (F8/O6) | Decisions | SupplierBinding in operations#224; freeze at submit in #227 |
| DEC-05 — Four stored states, two computed views | Decisions | Order-subject kinds in operations#224; derived readings in #227 |
| DT-021 — “Add to Order Queue” is the demand signal (decided 2026-07-09) | Working design record (see below) | PDEV-1139 service-side; PDEV-1140 composite |
| H1 rulings — envelopes, fork guard, F1 refusal capture | PDEV-1166 | operations#229, applied across the stack |
| Service-layer conventions (the #220 r2 rulings) | Kotlin Coding Standards (documentation#141, merged 2026-07-28) | All stack PRs (conventions pass completed 2026-07) |
| Stance: the orders module is an expendable prototype; domain cohesion over transactional guarantees | PDEV-1117 | Binding on all Phase-2 implementation |
Design sources
Section titled “Design sources”- This project directory — Goal, Design, Decisions: the reviewed design in plain language. Start here.
- Working design record (workbooks) — the formal DT-018 record with the Alloy-verified model and all fork/option rulings lives in Miguel’s working repository, not on this site:
workbooks/notebooks/domain-ontology/design-topics/dt-018-purchase-order/(alsodt-020-receiving/,dt-021-demand-collation-caller-policy.md) anddesign/procurement/order/(model, verification, law cards). Ask Miguel for access; the decisions themselves are summarized in Decisions and the tables above. - Conventions — Kotlin Coding Standards, extended with the service-layer architecture conventions in documentation#141.
- Module reference this project delivers — Orders module.
Related and parked
Section titled “Related and parked”Deliberately outside the current scope, with the reason the boundary sits where it does:
- PDEV-1167 — Bitemporal coordinate ties, platform closure. Platform-wide follow-up; parked so Phase 2 does not carry a platform change.
- PDEV-1116 — Audit async actors for spurious REFUSED-row pollution. Adjacent audit, not a Phase-2 deliverable.
- PDEV-517 — Kit orders. An F10 extension: a named seam, parked at the design boundary.
- F4 amendment protocol and O4 post-submit cancel — parked until designed against concrete requirements (see PDEV-1117).
Companion views
Section titled “Companion views”Generated navigation aids derived from this atlas. They are conveniences — this page is canonical; regenerate them when the map changes.
- Interactive navigator (Claude Artifact) — filterable ticket/PR table and the merge chain; private until shared from the artifact’s share menu.
- NotebookLM notebook (Arda — Orders v2) — ask-anything access over the design documents and this map; Google account required.
Copyright: © Arda Systems 2025-2026, All rights reserved