@biolibs/bionet 1.8.6 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"method.js","sourceRoot":"","sources":["../src/method.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EAAE,SAAS,EAAE,WAAW,EAA0D,MAAM,sBAAsB,CAAC;AACtH,OAAO,EAAE,cAAc,EACK,MAAM,YAAY,CAAC;AAI/C,iDAAiD;AACjD,MAAM,CAAC,MAAM,aAAa,GAAG,iCAAiC,CAAC;AAE/D,0CAA0C;AAC1C,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAC;AAE9B,4CAA4C;AAC5C,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC;AAwBxC,uCAAuC;AACvC,MAAM,OAAO,GAAG,SAAS,CAAC;AAE1B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,YAAY,CAAC,KAAe,EAAE,GAAa,EAAE,UAAyB,EAAE;IACtF,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE;QACxC,IAAI,GAAG,CAAC,OAAO,KAAK,IAAI;YAAE,OAAO,KAAK,CAAC;QACvC,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS;YAAE,OAAO,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS;YAAE,OAAO,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC;QAClF,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;IACH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;IAChF,IA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,GAAG,CAAC,sCAAsC,CAAC,CAAC;YACxE,CAAC;YACD,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,EAAE,CAAC;gBACtF,MAAM,IAAI,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,mCAAmC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;YACxH,CAAC;QACH,CAAC;IACH,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAC;IAC/I,OAAO,KAAK,CAAC;AACf,CAAC"}
package/package.json CHANGED
@@ -47,5 +47,5 @@
47
47
  },
48
48
  "type": "module",
49
49
  "types": "dist/index.d.ts",
50
- "version": "1.8.6"
50
+ "version": "1.9.0"
51
51
  }
package/src/log.ts CHANGED
@@ -460,10 +460,16 @@ export const newRunId = (): string => newItemId();
460
460
 
461
461
  /** One thing a planned run would use: a tube the lab has, or a part it would first have to get. */
462
462
  export interface PlanInput {
463
- /** The item, if the lab holds a tube of it. Exactly one of `item` and `part` is given. */
463
+ /** The item, if the lab holds a tube of it. Exactly one of `item`, `part` and `prospect` is given. */
464
464
  item?: string;
465
465
  /** The part's checksum, if there is no tube of it yet: something to be ordered or made first. */
466
466
  part?: string;
467
+ /**
468
+ * The prospect, for something nobody has made and nobody can checksum — the strain a transformation
469
+ * would give, the culture grown from it. A plan that names one is a plan that cannot be carried out
470
+ * yet, and says so plainly rather than naming nothing at all.
471
+ */
472
+ prospect?: string;
467
473
  /** How much of it the run would use, in the item's own unit. A whole number, which may be 0. */
468
474
  amount: number;
469
475
  /** What it would be there as: a template, a forward primer. */
@@ -498,8 +504,14 @@ export interface PlanRecord {
498
504
  instrument: string | null;
499
505
  /** What it would use. */
500
506
  inputs: PlanInput[];
501
- /** What it is expected to make. */
507
+ /** What it is expected to make, where that is a molecule with a sequence. */
502
508
  expects: PlanExpect[];
509
+ /**
510
+ * The prospects it would bring into existence, by ID, where what it makes has no sequence to
511
+ * expect: a strain, a culture, a curd. Without this a transformation makes nothing the record can
512
+ * name, and the chain of work stops at it.
513
+ */
514
+ makes?: string[];
503
515
  /** How to set it up: whole numbers and short text, by name. */
504
516
  settings: Record<string, string | number>;
505
517
  /** Why, and anything else worth saying. */
@@ -522,6 +534,55 @@ export const settlePlan = (plan: string, run: string | null): Operation => ({ ty
522
534
  /** @returns A new ID for a plan, made the way an item's is. */
523
535
  export const newPlanId = (): string => newItemId();
524
536
 
537
+ /**
538
+ * Something the lab understands the makeup of and has not made.
539
+ *
540
+ * A part is known by the checksum of its sequence, so everything the lab holds that *has* a sequence
541
+ * can be named before it exists — the nine designed plasmids are parts with no tube. What has no
542
+ * sequence cannot be: a strain that will carry a construct, the culture grown from it, a mixture of
543
+ * four proteins, curd. The chain of work stops at the first of those, and everything after it has to
544
+ * be proposed afresh once somebody is holding something.
545
+ *
546
+ * A prospect is how that chain carries on. It is the mirror of a specimen: a specimen is a tube the
547
+ * lab holds and cannot name, and this is a thing the lab can name and does not hold. It has no
548
+ * checksum — there is no sequence to count one over — so, exactly like a specimen and a culture, it
549
+ * cannot travel in a method. Saying what to do with a thing somebody else does not have is not a
550
+ * method, it is a wish.
551
+ */
552
+ export interface ProspectRecord {
553
+ /** The prospect's ID. */
554
+ prospect: string;
555
+ /** What it would be called: `GS115 carrying pPIC9K-alphaS1`. */
556
+ name: string;
557
+ /** What kind of thing: `strain`, `culture`, `mixture`, `curd`. Free, like a run's kind. */
558
+ kind: string;
559
+ /** What it would be made of, said for a person. No part of this is machine-readable on purpose. */
560
+ madeOf: string;
561
+ /** Anything else worth saying, or `null`. */
562
+ note: string | null;
563
+ }
564
+
565
+ /**
566
+ * @returns The change that names something the lab means to have and has not made.
567
+ *
568
+ * It makes no tube and no part. It exists so that the steps after it can be written down while it is
569
+ * still hypothetical, and so that a reader can tell at a glance which parts of a plan rest on
570
+ * something nobody is holding.
571
+ */
572
+ export const addProspect = (prospect: ProspectRecord): Operation => ({ type: "prospect.add", ...prospect });
573
+
574
+ /**
575
+ * @returns The change that says a prospect has come into existence, and what it turned out to be.
576
+ *
577
+ * Exactly one of `strain` and `item` is given, and it has to be one the lab already has: the thing
578
+ * is added first, the way a specimen's part is, and then this says the prospect was it.
579
+ */
580
+ export const realiseProspect = (prospect: string, became: { strain?: string; item?: string }): Operation =>
581
+ ({ type: "prospect.realise", prospect, strain: became.strain ?? null, item: became.item ?? null });
582
+
583
+ /** @returns A new ID for a prospect, made the way an item's is. */
584
+ export const newProspectId = (): string => newItemId();
585
+
525
586
  /**
526
587
  * What a lab expects to see if a plan worked, as it would be written before doing it.
527
588
  *
@@ -575,6 +636,18 @@ export const meetExpectation = (expect: string, met: boolean, saw: readonly numb
575
636
  options: { run?: string | null; note?: string | null } = {}): Operation =>
576
637
  ({ type: "expect.meet", expect, met, saw: [...saw], run: options.run ?? null, note: options.note ?? null });
577
638
 
639
+ /**
640
+ * @returns The change that takes an expectation back, for one written in error or on the wrong step.
641
+ *
642
+ * It cannot take back a reading. Once somebody has said what they saw, the expectation is part of
643
+ * what happened and stays: an intention yields to a fact, not the other way round.
644
+ *
645
+ * @param expect - The expectation.
646
+ * @param note - Why, or `null`.
647
+ */
648
+ export const withdrawExpectation = (expect: string, note: string | null = null): Operation =>
649
+ ({ type: "expect.withdraw", expect, note });
650
+
578
651
  /** @returns A new ID for an expectation, made the way an item's is. */
579
652
  export const newExpectationId = (): string => newItemId();
580
653
 
package/src/merge.ts CHANGED
@@ -198,6 +198,39 @@ export interface RunState {
198
198
  added: string;
199
199
  }
200
200
 
201
+ /**
202
+ * Something the lab understands the makeup of and has not made.
203
+ *
204
+ * The mirror of a specimen: a specimen is a tube the lab holds and cannot name, this is a thing the
205
+ * lab can name and does not hold. It has no checksum, because there is no sequence to count one
206
+ * over, so like a culture and like a specimen it cannot travel in a method.
207
+ *
208
+ * It exists so that the steps after it can be written down while it is still hypothetical. The chain
209
+ * of work used to stop at a transformation — what that makes is alive and has nothing to point at —
210
+ * and a plan after it could name nothing at all. Now it can name this, and say plainly that it rests
211
+ * on something nobody is holding.
212
+ */
213
+ export interface ProspectState {
214
+ /** Its ID. */
215
+ prospect: string;
216
+ /** What it would be called. */
217
+ name: string;
218
+ /** What kind of thing: `strain`, `culture`, `mixture`, `curd`. */
219
+ kind: string;
220
+ /** What it would be made of, said for a person. */
221
+ madeOf: string;
222
+ /** Anything else said about it. */
223
+ note: string | null;
224
+ /** What it turned out to be once somebody made it, or `null` while it is still in prospect. */
225
+ became: { strain: string | null; item: string | null; by: string; entry: string } | null;
226
+ /** The key that named it. */
227
+ by: string;
228
+ /** Anything else set on it. */
229
+ fields: Record<string, string | number | null>;
230
+ /** The entry that named it. */
231
+ added: string;
232
+ }
233
+
201
234
  /**
202
235
  * What a lab expects to see if a plan worked, and what was seen.
203
236
  *
@@ -224,6 +257,11 @@ export interface ExpectationState {
224
257
  by: string;
225
258
  /** What was seen, or `null` while nobody has looked. */
226
259
  met: { met: boolean; saw: number[]; run: string | null; note: string | null; by: string; entry: string } | null;
260
+ /**
261
+ * Taken back, or `null`. An expectation written in error or on the wrong step is withdrawn rather
262
+ * than removed: the entry stays in the log, and this says it is no longer something to look for.
263
+ */
264
+ withdrawn: { note: string | null; by: string; entry: string } | null;
227
265
  /** Anything else set on it. */
228
266
  fields: Record<string, string | number | null>;
229
267
  /** The entry that wrote it. */
@@ -242,6 +280,8 @@ export interface PlanState {
242
280
  inputs: PlanInput[];
243
281
  /** What it is expected to make, each with the checksum that would be its identity. */
244
282
  expects: { name: string; sequence: string; circular: boolean; ends: PartEnds; length: number; checksum: string }[];
283
+ /** The prospects it would bring into existence: what it makes that has no sequence to expect. */
284
+ makes: string[];
245
285
  /** How to set it up. */
246
286
  settings: Record<string, string | number>;
247
287
  /** Why, and anything else said about it. */
@@ -327,6 +367,8 @@ export interface LabState {
327
367
  specimens: SpecimenState[];
328
368
  /** What the lab expects to see of its plans, and what was seen. */
329
369
  expectations: ExpectationState[];
370
+ /** Things the lab means to have and has not made. */
371
+ prospects: ProspectState[];
330
372
  /** Every item. */
331
373
  items: ItemState[];
332
374
  /** Every place. */
@@ -377,7 +419,8 @@ const PLACE_RESERVED = new Set(["place", "kind", "parent", "grid", "standing", "
377
419
  /** The same, for a strain: what it is and came from is fixed when it is added. */
378
420
  const STRAIN_RESERVED = new Set(["strain", "host", "carries", "parent", "from"]);
379
421
  const SPECIMEN_RESERVED = new Set(["specimen", "note", "is", "added"]);
380
- const EXPECT_RESERVED = new Set(["expect", "plan", "kind", "says", "numbers", "settings", "note", "by", "met", "added"]);
422
+ const PROSPECT_RESERVED = new Set(["prospect", "name", "kind", "madeOf", "note", "became", "by", "added"]);
423
+ const EXPECT_RESERVED = new Set(["expect", "plan", "kind", "says", "numbers", "settings", "note", "by", "met", "withdrawn", "added"]);
381
424
 
382
425
  /**
383
426
  * What a plan's fields may not be called.
@@ -520,6 +563,9 @@ const KNOWN: Readonly<Record<string, Readonly<Record<string, Known>>>> = {
520
563
  "specimen.identify": { specimen: true, part: true },
521
564
  "expect.add": { expect: true, plan: true, kind: true, says: true, numbers: true, settings: true, note: true },
522
565
  "expect.meet": { expect: true, met: true, saw: true, run: true, note: true },
566
+ "expect.withdraw": { expect: true, note: true },
567
+ "prospect.add": { prospect: true, name: true, kind: true, madeOf: true, note: true },
568
+ "prospect.realise": { prospect: true, strain: true, item: true },
523
569
  "item.adjust": { item: true, by: true },
524
570
  "item.recount": { item: true, amount: true },
525
571
  "item.retire": { item: true },
@@ -534,8 +580,8 @@ const KNOWN: Readonly<Record<string, Readonly<Record<string, Known>>>> = {
534
580
  outputs: [{ item: true, sequence: true, circular: true, ends: { left: true, right: true }, name: true, amount: true, unit: true }],
535
581
  },
536
582
  "plan.add": {
537
- plan: true, kind: true, instrument: true, settings: true, note: true,
538
- inputs: [{ item: true, part: true, amount: true, role: true }],
583
+ plan: true, kind: true, instrument: true, settings: true, note: true, makes: true,
584
+ inputs: [{ item: true, part: true, prospect: true, amount: true, role: true }],
539
585
  expects: [{ sequence: true, circular: true, ends: { left: true, right: true }, name: true }],
540
586
  },
541
587
  "plan.settle": { plan: true, run: true },
@@ -551,7 +597,7 @@ const KNOWN: Readonly<Record<string, Readonly<Record<string, Known>>>> = {
551
597
  */
552
598
  // An adviser may say what to look for, because that is reading and working out. It may not say what
553
599
  // was seen: a reading is made by somebody standing at a bench, and nothing with no hands was there.
554
- const ADVISER_MAY = new Set(["part.add", "part.annotate", "plan.add", "plan.settle", "field.set", "expect.add"]);
600
+ const ADVISER_MAY = new Set(["part.add", "part.annotate", "plan.add", "plan.settle", "field.set", "expect.add", "expect.withdraw"]);
555
601
 
556
602
  /**
557
603
  * The first field in a change that this version does not know, if there is one.
@@ -614,7 +660,7 @@ const areSettings = (settings: unknown): settings is Record<string, string | num
614
660
  * tools work it out again, which is why the plan carries its claim and not its working.
615
661
  */
616
662
  function planProblem(op: Operation, items: ReadonlyMap<string, unknown>, parts: ReadonlyMap<string, unknown>, places: ReadonlyMap<string, unknown>,
617
- plans: ReadonlyMap<string, unknown>): string | null {
663
+ plans: ReadonlyMap<string, unknown>, prospects: ReadonlyMap<string, unknown>): string | null {
618
664
  if (!(typeof op["plan"] === "string" && ITEM_ID.test(op["plan"])) || !text(op["kind"], 40)) return "It does not carry a plan ID and what kind of run it would be.";
619
665
  if (plans.has(op["plan"])) return "A plan with that ID already exists.";
620
666
  if (!(op["instrument"] === null || (typeof op["instrument"] === "string" && places.has(op["instrument"])))) return "The place it would be done at is not one the lab has.";
@@ -624,9 +670,12 @@ function planProblem(op: Operation, items: ReadonlyMap<string, unknown>, parts:
624
670
  if (!Array.isArray(inputs) || inputs.length > MOST_IN_A_RUN) return "It does not list what it would use.";
625
671
  for (const input of inputs as Partial<PlanInput>[]) {
626
672
  if (typeof input !== "object" || input === null || !amountOf(input.amount) || input.amount < 0 || !text(input.role, 40)) return "It does not say how many whole units of each thing it would use, and as what.";
627
- if ((input.item === undefined) === (input.part === undefined)) return "Each thing it would use has to be a tube or a part, and not both.";
673
+ if ([input.item, input.part, input.prospect].filter((one) => one !== undefined).length !== 1) {
674
+ return "Each thing it would use has to be a tube, a part or a prospect, and only one of those.";
675
+ }
628
676
  if (input.item !== undefined && !(typeof input.item === "string" && items.has(input.item))) return "A tube it would use is not an item the lab has.";
629
677
  if (input.part !== undefined && !(typeof input.part === "string" && parts.has(input.part))) return "A part it would use is not one the lab has.";
678
+ if (input.prospect !== undefined && !(typeof input.prospect === "string" && prospects.has(input.prospect))) return "A prospect it would use is not one the lab has.";
630
679
  }
631
680
  const expects = op["expects"];
632
681
  if (!Array.isArray(expects) || expects.length > MOST_IN_A_RUN) return "It does not list what it expects to make.";
@@ -635,6 +684,15 @@ function planProblem(op: Operation, items: ReadonlyMap<string, unknown>, parts:
635
684
  return "It does not give each thing it expects a sequence, a name and whether it is a circle.";
636
685
  }
637
686
  }
687
+ // What a run makes that has no sequence — a strain, a culture, a curd — is named as a prospect
688
+ // instead, so that the step after it has something to point at.
689
+ const makes = op["makes"];
690
+ if (makes !== undefined) {
691
+ if (!Array.isArray(makes) || makes.length > MOST_IN_A_RUN) return "It does not list what it would bring into existence.";
692
+ for (const one of makes as unknown[]) {
693
+ if (!(typeof one === "string" && prospects.has(one))) return "Something it would bring into existence is not a prospect the lab has.";
694
+ }
695
+ }
638
696
  return null;
639
697
  }
640
698
 
@@ -703,7 +761,7 @@ const hadSeen = (later: Node, earlier: Node): boolean => (later.vc.get(earlier.a
703
761
  * ```
704
762
  */
705
763
  export async function mergeLog(entries: readonly unknown[], options: { lab?: string } = {}): Promise<LabState> {
706
- const state: LabState = { lab: options.lab ?? null, name: null, roster: [], parts: [], items: [], places: [], crowded: [], runs: [], plans: [], strains: [], specimens: [], expectations: [], entries: [],
764
+ const state: LabState = { lab: options.lab ?? null, name: null, roster: [], parts: [], items: [], places: [], crowded: [], runs: [], plans: [], strains: [], specimens: [], expectations: [], prospects: [], entries: [],
707
765
  waiting: [], discarded: [], overlaps: [], heads: {}, knows: {} };
708
766
 
709
767
  // Read and check every entry on its own, before any of them is believed about the others.
@@ -970,6 +1028,7 @@ function fold(state: LabState, placed: Placed[], chained: Map<string, Node>): vo
970
1028
  const strains = new Map<string, { strain: StrainState; set: Map<string, Register> }>();
971
1029
  const specimens = new Map<string, { specimen: SpecimenState; set: Map<string, Register> }>();
972
1030
  const expectations = new Map<string, { expectation: ExpectationState; seen: Node | null; set: Map<string, Register> }>();
1031
+ const prospects = new Map<string, { prospect: ProspectState; set: Map<string, Register> }>();
973
1032
  /** Each plan, with the entry that settled it, if one has, and anything set on it. */
974
1033
  const plans = new Map<string, { plan: PlanState; settled: Node | null; set: Map<string, Register> }>();
975
1034
  /** Where each item was last put. */
@@ -1195,6 +1254,39 @@ function fold(state: LabState, placed: Placed[], chained: Map<string, Node>): vo
1195
1254
  // like any other, so the same rule settles it and every lab reads the same answer.
1196
1255
  write(held.set, "is", node, op["part"], `what specimen ${op["specimen"]} is`);
1197
1256
  }
1257
+ } else if (op.type === "prospect.add") {
1258
+ if (!(typeof op["prospect"] === "string" && ITEM_ID.test(op["prospect"])) || !text(op["name"], 200)
1259
+ || !text(op["kind"], 40) || !text(op["madeOf"], 2_000)
1260
+ || !(op["note"] === null || text(op["note"], 2_000))) {
1261
+ refuse("It does not carry a prospect ID, what to call it, what kind of thing it is, what it would be made of, and a note or nothing.");
1262
+ } else if (prospects.has(op["prospect"])) {
1263
+ refuse("A prospect with that ID already exists.");
1264
+ } else {
1265
+ prospects.set(op["prospect"], {
1266
+ prospect: { prospect: op["prospect"], name: op["name"], kind: op["kind"], madeOf: op["madeOf"],
1267
+ note: op["note"] as string | null, became: null, by: node.author, fields: {}, added: node.id },
1268
+ set: new Map([["name", { node, value: op["name"] }]]),
1269
+ });
1270
+ }
1271
+ } else if (op.type === "prospect.realise") {
1272
+ const held = typeof op["prospect"] === "string" ? prospects.get(op["prospect"]) : undefined;
1273
+ const strain = op["strain"], item = op["item"];
1274
+ if (held === undefined) {
1275
+ refuse("The prospect it says was made is not one the lab has.");
1276
+ } else if ([strain, item].filter((one) => one !== null && one !== undefined).length !== 1) {
1277
+ refuse("A prospect becomes a strain or an item, and only one of those.");
1278
+ } else if (strain !== null && strain !== undefined && !(typeof strain === "string" && strains.has(strain))) {
1279
+ refuse("The strain it says the prospect became is not one the lab has.");
1280
+ } else if (item !== null && item !== undefined && !(typeof item === "string" && items.has(item))) {
1281
+ refuse("The item it says the prospect became is not one the lab has.");
1282
+ } else {
1283
+ // Two people may make the same thing and say so without knowing of each other. It is a
1284
+ // register like any other, so the same rule settles it and every lab reads the same answer.
1285
+ // What it became and which kind of thing that is are one fact and go in one register: two
1286
+ // registers could be won by different writers, and leave a strain's ID labelled an item.
1287
+ const became = strain !== null && strain !== undefined ? `strain:${strain}` : `item:${item}`;
1288
+ write(held.set, "became", node, became, `what prospect ${op["prospect"]} became`);
1289
+ }
1198
1290
  } else if (op.type === "expect.add") {
1199
1291
  const numbers = op["numbers"], settings = op["settings"];
1200
1292
  if (!(typeof op["expect"] === "string" && ITEM_ID.test(op["expect"])) || !text(op["kind"], 40) || !text(op["says"], 2_000)
@@ -1218,7 +1310,7 @@ function fold(state: LabState, placed: Placed[], chained: Map<string, Node>): vo
1218
1310
  seen: null,
1219
1311
  expectation: { expect: op["expect"], plan: op["plan"], kind: op["kind"], says: op["says"],
1220
1312
  numbers: [...(numbers as number[])], settings: { ...(settings as Record<string, string | number>) },
1221
- note: op["note"] as string | null, by: node.author, met: null, fields: {}, added: node.id },
1313
+ note: op["note"] as string | null, by: node.author, met: null, withdrawn: null, fields: {}, added: node.id },
1222
1314
  set: new Map(),
1223
1315
  });
1224
1316
  }
@@ -1239,6 +1331,10 @@ function fold(state: LabState, placed: Placed[], chained: Map<string, Node>): vo
1239
1331
  held.expectation.met = { met: op["met"] as boolean, saw: [...(saw as number[])], run: run as string | null,
1240
1332
  note: op["note"] as string | null, by: node.author, entry: node.id };
1241
1333
  };
1334
+ // A reading beats a withdrawal. Somebody looked, and what they saw is a fact about the
1335
+ // world; an expectation is an intention about what to look for, and an intention yields to
1336
+ // a fact. So a reading on a withdrawn expectation stands, and puts it back.
1337
+ held.expectation.withdrawn = null;
1242
1338
  if (held.seen === null) meet();
1243
1339
  else if (hadSeen(node, held.seen)) refuse("What was seen of that expectation is already recorded.");
1244
1340
  else {
@@ -1249,8 +1345,23 @@ function fold(state: LabState, placed: Placed[], chained: Map<string, Node>): vo
1249
1345
  if (wins) meet();
1250
1346
  }
1251
1347
  }
1348
+ } else if (op.type === "expect.withdraw") {
1349
+ const held = typeof op["expect"] === "string" ? expectations.get(op["expect"]) : undefined;
1350
+ if (held === undefined) {
1351
+ refuse("The expectation it takes back is not one the lab has.");
1352
+ } else if (!(op["note"] === null || text(op["note"], 2_000))) {
1353
+ refuse("Its note is not some text.");
1354
+ } else if (held.expectation.met !== null) {
1355
+ // Once somebody has said what they saw, this is no longer a thing to look for: it is part
1356
+ // of what happened, and what happened is not taken back.
1357
+ refuse("What was seen of that expectation is recorded, so it cannot be taken back.");
1358
+ } else if (node.adviser === true && held.expectation.by !== node.author) {
1359
+ refuse("An adviser may only take back an expectation of its own.");
1360
+ } else {
1361
+ held.expectation.withdrawn = { note: op["note"] as string | null, by: node.author, entry: node.id };
1362
+ }
1252
1363
  } else if (op.type === "plan.add") {
1253
- const problem = planProblem(op, items, parts, places, plans);
1364
+ const problem = planProblem(op, items, parts, places, plans, prospects);
1254
1365
  if (problem !== null) { refuse(problem); continue; }
1255
1366
  const expects: PlanState["expects"] = [];
1256
1367
  try {
@@ -1266,7 +1377,10 @@ function fold(state: LabState, placed: Placed[], chained: Map<string, Node>): vo
1266
1377
  settled: null, set: new Map(),
1267
1378
  plan: {
1268
1379
  plan: op["plan"] as string, kind: op["kind"] as string, instrument: op["instrument"] as string | null,
1269
- inputs: (op["inputs"] as PlanInput[]).map((input) => ({ ...(input.item === undefined ? { part: input.part! } : { item: input.item }), amount: input.amount, role: input.role })),
1380
+ inputs: (op["inputs"] as PlanInput[]).map((input) => ({
1381
+ ...(input.item !== undefined ? { item: input.item } : input.part !== undefined ? { part: input.part } : { prospect: input.prospect! }),
1382
+ amount: input.amount, role: input.role })),
1383
+ makes: [...((op["makes"] as string[] | undefined) ?? [])],
1270
1384
  expects, settings: { ...(op["settings"] as Record<string, string | number>) }, note: op["note"] as string | null,
1271
1385
  by: node.author, settled: null, wanting: [], orphaned: [], fields: {}, added: node.id,
1272
1386
  },
@@ -1296,13 +1410,15 @@ function fold(state: LabState, placed: Placed[], chained: Map<string, Node>): vo
1296
1410
  : op["on"] === "strain" && typeof op["id"] === "string" ? strains.get(op["id"])
1297
1411
  : op["on"] === "specimen" && typeof op["id"] === "string" ? specimens.get(op["id"])
1298
1412
  : op["on"] === "plan" && typeof op["id"] === "string" ? plans.get(op["id"])
1299
- : op["on"] === "expectation" && typeof op["id"] === "string" ? expectations.get(op["id"]) : undefined;
1300
- if (target === undefined) { refuse("It does not name a part, an item, a place, a strain, a specimen, a plan or an expectation the lab has."); continue; }
1413
+ : op["on"] === "expectation" && typeof op["id"] === "string" ? expectations.get(op["id"])
1414
+ : op["on"] === "prospect" && typeof op["id"] === "string" ? prospects.get(op["id"]) : undefined;
1415
+ if (target === undefined) { refuse("It does not name a part, an item, a place, a strain, a specimen, a plan, an expectation or a prospect the lab has."); continue; }
1301
1416
  if (op["on"] === "place" && typeof field === "string" && PLACE_RESERVED.has(field)) { refuse("It does not name a field that can be set."); continue; }
1302
1417
  if (op["on"] === "strain" && typeof field === "string" && STRAIN_RESERVED.has(field)) { refuse("It does not name a field that can be set."); continue; }
1303
1418
  if (op["on"] === "specimen" && typeof field === "string" && SPECIMEN_RESERVED.has(field)) { refuse("It does not name a field that can be set."); continue; }
1304
1419
  if (op["on"] === "plan" && typeof field === "string" && PLAN_RESERVED.has(field)) { refuse("It does not name a field that can be set."); continue; }
1305
1420
  if (op["on"] === "expectation" && typeof field === "string" && EXPECT_RESERVED.has(field)) { refuse("It does not name a field that can be set."); continue; }
1421
+ if (op["on"] === "prospect" && typeof field === "string" && PROSPECT_RESERVED.has(field)) { refuse("It does not name a field that can be set."); continue; }
1306
1422
  // An adviser may file its own proposals and nothing else. It proposes the work, so leaving it
1307
1423
  // unable to say which project the work is for would have a person filing every step by hand;
1308
1424
  // letting it set any field at all would let it rename the lab's parts. This is the same line
@@ -1346,6 +1462,21 @@ function fold(state: LabState, placed: Placed[], chained: Map<string, Node>): vo
1346
1462
  }
1347
1463
  state.specimens.push(specimen);
1348
1464
  }
1465
+ for (const { prospect, set } of prospects.values()) {
1466
+ for (const [field, held] of set) {
1467
+ if (field === "name") prospect.name = held.value as string;
1468
+ else if (field === "became") { /* read below, as one value */ }
1469
+ else prospect.fields[field] = held.value as string | number | null;
1470
+ }
1471
+ const became = set.get("became");
1472
+ if (became !== undefined) {
1473
+ const [kind, ...rest] = String(became.value).split(":");
1474
+ const id = rest.join(":");
1475
+ prospect.became = { strain: kind === "strain" ? id : null, item: kind === "item" ? id : null,
1476
+ by: became.node.author, entry: became.node.id };
1477
+ }
1478
+ state.prospects.push(prospect);
1479
+ }
1349
1480
  for (const { expectation, set } of expectations.values()) {
1350
1481
  for (const [field, held] of set) expectation.fields[field] = held.value as string | number | null;
1351
1482
  state.expectations.push(expectation);
package/src/method.ts CHANGED
@@ -161,7 +161,13 @@ export function publicMethod(state: LabState, lab: LabModel, options: MethodOpti
161
161
  step: at + 1,
162
162
  kind: plan.kind,
163
163
  uses: plan.inputs.map((input): MethodInput => {
164
- const what = input.item === undefined
164
+ // A prospect has no checksum, for the same reason a culture and a specimen have none: there
165
+ // is no sequence to count one over. So it cannot travel either. What is honest to say is that
166
+ // the step rests on something nobody had made, and what kind of thing that was — a taking lab
167
+ // can then see where the method stops being something it can follow.
168
+ const what = input.prospect !== undefined
169
+ ? { part: null, name: `something the publishing lab had not made: a ${state.prospects.find((one) => one.prospect === input.prospect)?.kind ?? "thing"}`, unit: null }
170
+ : input.item === undefined
165
171
  ? { part: input.part!, name: state.parts.find((one) => one.checksum === input.part)?.name ?? "a part", unit: null }
166
172
  : whatIsIn(input.item);
167
173
  const maker = what.part === null ? undefined : madeBy.get(what.part);