miler map

This commit is contained in:
2026-09-09 12:55:23 +05:30
parent 074cc0eccf
commit 127fa062ed
143 changed files with 4315 additions and 2291 deletions

View File

@@ -136,11 +136,19 @@ void main() {
);
});
test('a picked parcel booking is closed; a picked milk run is not', () {
// Collecting IS the job on logistics — the hub delivers it. On a round it
// is the middle of the morning.
test('a picked parcel stays in custody until the backend routes it', () {
// ── Was: "a picked parcel booking is closed" ──
//
// That was the line-level assumption `endsAtHub` encoded, and it closed
// hyperlocal parcels the rider was still carrying. Collection is no
// longer an ending on either line: it is the moment the parcel becomes
// physically his, and where it goes next is a per-order answer from the
// server. With nothing on the row to read, it stays his.
ServiceProfile.setActive(ServiceProfile.parcel);
expect(WorkBoundary.domainOf(stop('1004', 'picked')), WorkDomain.closed);
expect(
WorkBoundary.domainOf(stop('1004', 'picked')),
WorkDomain.delivery,
);
ServiceProfile.setActive(ServiceProfile.milkMan);
expect(