@fractalsynapse/dsh-chapters 0.2.47 → 0.2.49

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.
package/cordis.patch.yml CHANGED
@@ -145,6 +145,9 @@
145
145
  # # '' ⇒ the feature does not exist (zero calls,
146
146
  # # zero surface); setting one IS the enable.
147
147
  # # Runtime: /chapters-prompt model <p/m|clear>
148
+ # promptPushBirth: false # #497: a session LOAD writes nothing — set true to restore the
149
+ # # #218 birth record (first-event push so the bar mounts pushed).
150
+ # # Default false is policy, not preference: see the pile-up in #482/#497.
148
151
  # promptContextChars: 32000 # hard budget on the assembled input slice
149
152
  # # (chapter summaries + screened live tail)
150
153
  # promptMaxChars: 4096 # cap on the recommendation; over-cap ⇒ retry
@@ -1396,3 +1396,22 @@ fix ref → report job SUCCEEDS → first machine-filed handoff issue (#493) →
1396
1396
  main (#494, 19/21 ledger, awaiting maintainer merge). Nightly loop is now genuinely unattended:
1397
1397
  cron sweeps, handoff lands as issue, human merges — the sentinel screams only when screaming is
1398
1398
  warranted.
1399
+
1400
+ ## 0.2.48 cut (2026-11-24): loads never write
1401
+
1402
+ **Shipped:** #498 — promptPushBirth default OFF (server writes no record at session load) + the
1403
+ dock latches push-live from the projection CELL (client runs no command at session load). The
1404
+ maintainer's duplicate-timeline report (#497, reopened #482) traced to the mount pull's
1405
+ command/run+command/done pair — 0.2.45's suppression was real but on the record path. Suite
1406
+ 1770/0/1, five required contexts green on 8c2696e, bundle-verified latch. #482 acceptance moved to
1407
+ the maintainer's reload on this release: zero new chapters-prompt nodes.
1408
+
1409
+ ## 0.2.49 cut (2026-11-24): the retry loop — third writer, named by the maintainer's log
1410
+
1411
+ **Shipped:** #501 (dd92f37) — firstPullRetryDue gains owed+pushLive; dock tracks the sanction,
1412
+ latches push mode on cell presence. Suite 1772/0/1; five contexts green on staging.
1413
+ **Withdrawn the same day by CI:** the blanket seat gate (#503) — prompt and prompt-off-revival legs
1414
+ assert the cold-boot discovery pull BY NAME (#231/#276 revival contract). Door inventory: record
1415
+ door sealed+production-proven, warm-mount sealed, retry sealed, cold-discovery CONTRACTED (one
1416
+ pair per profile's first-ever visit per session; revisits silent). #482 closes on maintainer reload
1417
+ on 0.2.49.
package/lib/client.js CHANGED
@@ -243,6 +243,7 @@ window.__ModuleLoader__.load({
243
243
  */
244
244
  function firstPullRetryDue(c) {
245
245
  if (c.answered || c.featureAbsent) return false;
246
+ if (c.pushLive || !c.owed) return false;
246
247
  return c.attempts < 8;
247
248
  }
248
249
  function pollSpacingFor(s) {
@@ -734,7 +735,8 @@ window.__ModuleLoader__.load({
734
735
  const kick = (0, react.useRef)(void 0);
735
736
  const lastPullAt = (0, react.useRef)(null);
736
737
  const edgeTimer = (0, react.useRef)(void 0);
737
- const pushLiveRef = (0, react.useRef)(false);
738
+ const pushLiveRef = (0, react.useRef)(pushed !== void 0);
739
+ const pullOwed = (0, react.useRef)(false);
738
740
  const seenTurnRef = (0, react.useRef)(0);
739
741
  const lastPushAt = (0, react.useRef)(null);
740
742
  const answered = (0, react.useRef)(false);
@@ -789,6 +791,7 @@ window.__ModuleLoader__.load({
789
791
  }
790
792
  }, [exec]);
791
793
  (0, react.useEffect)(() => {
794
+ if (pushed !== void 0) pushLiveRef.current = true;
792
795
  const evs = pushEventsOf(pushed);
793
796
  if (evs === null) return;
794
797
  pushLiveRef.current = true;
@@ -838,7 +841,10 @@ window.__ModuleLoader__.load({
838
841
  }
839
842
  const spacing = spacingNow();
840
843
  const mountDiscovery = opts?.mount === true && duePull();
841
- if (opts?.force === true || mountDiscovery || spacing !== null && opts?.mount !== true) await refresh();
844
+ if (opts?.force === true || mountDiscovery || spacing !== null && opts?.mount !== true) {
845
+ if (opts?.mount === true) pullOwed.current = true;
846
+ await refresh();
847
+ }
842
848
  if (replyStatus.current === "off") return;
843
849
  const next = spacingNow();
844
850
  if (next !== null) timer = setTimeout(() => {
@@ -859,9 +865,11 @@ window.__ModuleLoader__.load({
859
865
  if (!firstPullRetryDue({
860
866
  answered: answered.current,
861
867
  featureAbsent,
862
- attempts: firstPullRetries
868
+ attempts: firstPullRetries,
869
+ owed: pullOwed.current,
870
+ pushLive: pushLiveRef.current
863
871
  })) {
864
- if (!answered.current && !featureAbsent && firstPullRetries >= 8) console.warn(`[client:prompt] first-pull retry ceiling (${String(8)} x ${String(FIRST_PULL_RETRY_SPACING_MS)}ms) reached with NO wire answer — the mount pull remains owed; edges are the recovery path (#429)`);
872
+ if (!answered.current && !featureAbsent && pullOwed.current && !pushLiveRef.current && firstPullRetries >= 8) console.warn(`[client:prompt] first-pull retry ceiling (${String(8)} x ${String(FIRST_PULL_RETRY_SPACING_MS)}ms) reached with NO wire answer — the mount pull remains owed; edges are the recovery path (#429)`);
865
873
  return;
866
874
  }
867
875
  firstPullRetries += 1;