@volter/supercode-orchestrator 0.5.59 → 0.5.60

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.
@@ -206,7 +206,8 @@ function unpublishedAlive(session) {
206
206
  }
207
207
 
208
208
  /** Native activity comes from the machine's harness discovery, not catalogue age. One discovery (up to 2000
209
- * sessions, seconds each) serves a round's every native session on that machine, as paneLists serves its panes. */
209
+ * sessions, seconds each) serves a round's every native session on that machine: taken once per round (tick clears
210
+ * them), however long the round runs. A round of 163 s took it 28 times when a reading lasted 15 s. */
210
211
  const discoveries = new Map();
211
212
  // A machine's pane list and harness discovery are read before a board write opens, never inside one: a door that
212
213
  // takes seconds would hold the board's write lock past a worker's own command's busy wait. A write that needs a
@@ -222,7 +223,7 @@ function readBefore(fleet, session) {
222
223
  }
223
224
  function nativeSessions(machine, harness) {
224
225
  const key = `${normalMachine(machine)}\u0000${harness}`, seen = discoveries.get(key);
225
- if (seen && Date.now() - seen.at <= READING_MS) return seen.sessions;
226
+ if (seen) return seen.sessions;
226
227
  if (readingsOnly) throw unavailable('native liveness is read before a board write, not inside it');
227
228
  const sessions = discoverNative(machine, harness);
228
229
  discoveries.set(key, { at: Date.now(), sessions });
@@ -2559,6 +2560,7 @@ export async function deliver({ root, slugs = null }) {
2559
2560
  */
2560
2561
  export async function tick({ root, lanes, settings, only = null, slugs = null, dispatch = true, params = {}, deploymentReceipt = false }) {
2561
2562
  fleetRoot = root;
2563
+ discoveries.clear();
2562
2564
  // a verb's flags (dispatch --max, --failure-limit) are params of this tick, read by the workflow as its own
2563
2565
  const deployment = deploymentReceipt ? workflowRevision(root) : null;
2564
2566
  const loaded = await loadWorkflow(root, { fresh: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-orchestrator",
3
- "version": "0.5.59",
3
+ "version": "0.5.60",
4
4
  "type": "module",
5
5
  "description": "The orchestrator runtime over the Volter Harness ontology: one typed operational model whose folder is its serialization, read and written through the harness orchestration doors (docs/ORCHESTRATOR-IR.md)",
6
6
  "exports": {