@githolon/testing 0.24.1 → 0.26.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@githolon/testing",
3
- "version": "0.24.1",
3
+ "version": "0.26.0",
4
4
  "type": "module",
5
5
  "description": "@githolon/testing — law TDD for Nomos domains: boot the REAL engine plane in-process (the exact machinery every cloud DO, heavy container and web client runs), dispatch directives, assert rows, assert TYPED REFUSALS, fork for what-ifs — fully offline inside vitest.",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -1036,8 +1036,14 @@ export async function admitIntentOffers(eng, ws, ledger, offers, { receiptFence
1036
1036
  let blob = offer?.blob instanceof Uint8Array ? offer.blob : null;
1037
1037
  try {
1038
1038
  if (!blob && typeof offer?.intentB64 === "string") blob = Uint8Array.from(atob(offer.intentB64), (c) => c.charCodeAt(0));
1039
- if (!blob || blob.byteLength === 0 || blob.byteLength > 256 * 1024) {
1040
- rec.rejected.push({ oid: String(offer?.oid || "").slice(0, 10), error: "intent offer must carry intentB64 <= 256 KiB" });
1039
+ // 8 MiB matches the worker's `/offer` + `/gw-offer` ceilings (worker.mjs) it must, or a SIGNED
1040
+ // DEPLOY (a nomos/installDomain offer carrying the whole package: the esbuild engine lump + USD-IR,
1041
+ // ~1.4 MiB for the guestbook, multi-MiB for co2-scale law) the worker relayed would be silently
1042
+ // rejected HERE, the one place the offer actually folds. The 256 KiB this used to be predated signed
1043
+ // deploy (every package embeds the engine lump, so EVERY real install exceeds it); a true DoS is the
1044
+ // transport rate-limit's job, not this fold-time bound.
1045
+ if (!blob || blob.byteLength === 0 || blob.byteLength > 8 * 1024 * 1024) {
1046
+ rec.rejected.push({ oid: String(offer?.oid || "").slice(0, 10), error: "intent offer must carry intentB64 <= 8 MiB" });
1041
1047
  continue;
1042
1048
  }
1043
1049
  let doc = null;