@e4779/pi-fabric 0.117.2-fork.31 → 0.131.4-fork.33
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/README.md +13 -6
- package/THIRD_PARTY_NOTICES.md +6 -14
- package/dist/activity/store.d.ts +2 -1
- package/dist/activity/store.d.ts.map +1 -1
- package/dist/actors/binding-store.d.ts +13 -0
- package/dist/actors/binding-store.d.ts.map +1 -1
- package/dist/actors/directory.d.ts.map +1 -1
- package/dist/actors/feedback.d.ts +5 -0
- package/dist/actors/feedback.d.ts.map +1 -0
- package/dist/actors/global-registry.d.ts +8 -0
- package/dist/actors/global-registry.d.ts.map +1 -1
- package/dist/actors/host-event-payload.d.ts +14 -0
- package/dist/actors/host-event-payload.d.ts.map +1 -1
- package/dist/actors/manager.d.ts +4 -3
- package/dist/actors/manager.d.ts.map +1 -1
- package/dist/actors/mesh-monitor.d.ts +2 -0
- package/dist/actors/mesh-monitor.d.ts.map +1 -1
- package/dist/actors/name-policy.d.ts +3 -0
- package/dist/actors/name-policy.d.ts.map +1 -0
- package/dist/actors/registry-store.d.ts +14 -5
- package/dist/actors/registry-store.d.ts.map +1 -1
- package/dist/actors/store-read.d.ts +16 -0
- package/dist/actors/store-read.d.ts.map +1 -0
- package/dist/agents/agent-files.d.ts +80 -0
- package/dist/agents/agent-files.d.ts.map +1 -0
- package/dist/agents/agent-files.js +327 -0
- package/dist/agents/agent-files.js.map +7 -0
- package/dist/agents/child-skills.d.ts +60 -0
- package/dist/agents/child-skills.d.ts.map +1 -0
- package/dist/agents/child-skills.js +94 -0
- package/dist/agents/child-skills.js.map +7 -0
- package/dist/agents/clone-first-worktree.d.ts +6 -0
- package/dist/agents/clone-first-worktree.d.ts.map +1 -1
- package/dist/agents/completion-inbox.d.ts.map +1 -1
- package/dist/agents/cow-clone.d.ts.map +1 -1
- package/dist/agents/handoff.d.ts +12 -2
- package/dist/agents/handoff.d.ts.map +1 -1
- package/dist/agents/herdr-status.d.ts +26 -0
- package/dist/agents/herdr-status.d.ts.map +1 -0
- package/dist/agents/herdr-status.js +161 -0
- package/dist/agents/herdr-status.js.map +7 -0
- package/dist/agents/hosted-run.d.ts +20 -4
- package/dist/agents/hosted-run.d.ts.map +1 -1
- package/dist/agents/manager.d.ts +18 -2
- package/dist/agents/manager.d.ts.map +1 -1
- package/dist/agents/model-pin-guard.d.ts +27 -0
- package/dist/agents/model-pin-guard.d.ts.map +1 -0
- package/dist/agents/model-pin-guard.js +86 -0
- package/dist/agents/model-pin-guard.js.map +7 -0
- package/dist/agents/model-pin.d.ts +25 -0
- package/dist/agents/model-pin.d.ts.map +1 -0
- package/dist/agents/provider-bridge.d.ts +7 -6
- package/dist/agents/provider-bridge.d.ts.map +1 -1
- package/dist/agents/provider-bridge.js +33 -5
- package/dist/agents/provider-bridge.js.map +3 -3
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/result.d.ts.map +1 -1
- package/dist/agents/result.js +1 -1
- package/dist/agents/runner-notice.d.ts.map +1 -1
- package/dist/agents/runner-protocol.d.ts +8 -0
- package/dist/agents/runner-protocol.d.ts.map +1 -1
- package/dist/agents/service-schema.d.ts.map +1 -1
- package/dist/agents/transports/herdr-core-socket.d.ts +13 -0
- package/dist/agents/transports/herdr-core-socket.d.ts.map +1 -0
- package/dist/agents/transports/herdr-core-transport.d.ts +10 -0
- package/dist/agents/transports/herdr-core-transport.d.ts.map +1 -0
- package/dist/agents/transports/herdr-socket.d.ts +12 -0
- package/dist/agents/transports/herdr-socket.d.ts.map +1 -0
- package/dist/agents/transports/herdr-transport.d.ts.map +1 -1
- package/dist/agents/types.d.ts +51 -0
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/agents/worker-recovery.d.ts +75 -0
- package/dist/agents/worker-recovery.d.ts.map +1 -0
- package/dist/agents/worktree-manager.d.ts.map +1 -1
- package/dist/agents.js +12 -11
- package/dist/agents.js.map +2 -2
- package/dist/audit/details.d.ts +38 -1
- package/dist/audit/details.d.ts.map +1 -1
- package/dist/audit/projection.d.ts.map +1 -1
- package/dist/audit/trace-schema.d.ts +50 -0
- package/dist/audit/trace-schema.d.ts.map +1 -0
- package/dist/audit/trace.d.ts +2 -48
- package/dist/audit/trace.d.ts.map +1 -1
- package/dist/chunks/chunk-2RWNVCFD.js +483 -0
- package/dist/chunks/chunk-2RWNVCFD.js.map +7 -0
- package/dist/chunks/chunk-2SCMGO2Z.js +16 -0
- package/dist/chunks/chunk-2SCMGO2Z.js.map +7 -0
- package/dist/chunks/chunk-35EEGOH3.js +324 -0
- package/dist/chunks/chunk-35EEGOH3.js.map +7 -0
- package/dist/chunks/{chunk-UTOBAZ5T.js → chunk-37NIOSVU.js} +1 -1
- package/dist/chunks/chunk-37NIOSVU.js.map +7 -0
- package/dist/chunks/chunk-3IJEQBFS.js +25 -0
- package/dist/chunks/chunk-3IJEQBFS.js.map +7 -0
- package/dist/chunks/{chunk-EHQQ4KCX.js → chunk-3MOY6WIB.js} +84 -19
- package/dist/chunks/chunk-3MOY6WIB.js.map +7 -0
- package/dist/chunks/chunk-3VK6UGAN.js +64 -0
- package/dist/chunks/chunk-3VK6UGAN.js.map +7 -0
- package/dist/chunks/{chunk-ROTCDDOV.js → chunk-3XT5WHSG.js} +59 -119
- package/dist/chunks/chunk-3XT5WHSG.js.map +7 -0
- package/dist/chunks/{chunk-FIDUHKMM.js → chunk-4BYS4ZLY.js} +16 -16
- package/dist/chunks/chunk-4BYS4ZLY.js.map +7 -0
- package/dist/chunks/{chunk-UOM37PE4.js → chunk-4PBW54I2.js} +162 -92
- package/dist/chunks/chunk-4PBW54I2.js.map +7 -0
- package/dist/chunks/{chunk-ZEXCKK4K.js → chunk-4WKD3YM3.js} +3 -3
- package/dist/chunks/{chunk-PK4NIJEV.js → chunk-4XMXFHAR.js} +62 -3
- package/dist/chunks/chunk-4XMXFHAR.js.map +7 -0
- package/dist/chunks/{chunk-4EW7GVUR.js → chunk-56NMRVTV.js} +589 -377
- package/dist/chunks/chunk-56NMRVTV.js.map +7 -0
- package/dist/chunks/chunk-5QJFDKPN.js +179 -0
- package/dist/chunks/chunk-5QJFDKPN.js.map +7 -0
- package/dist/chunks/{chunk-P7CBPPHY.js → chunk-6GWDGTHC.js} +5 -5
- package/dist/chunks/{chunk-P7CBPPHY.js.map → chunk-6GWDGTHC.js.map} +1 -1
- package/dist/chunks/chunk-6HO2IUQ5.js +104 -0
- package/dist/chunks/chunk-6HO2IUQ5.js.map +7 -0
- package/dist/chunks/chunk-6OGYPHNQ.js +62 -0
- package/dist/chunks/chunk-6OGYPHNQ.js.map +7 -0
- package/dist/chunks/{chunk-G4TLWHRS.js → chunk-7N7IC3Z2.js} +4 -3
- package/dist/chunks/{chunk-G4TLWHRS.js.map → chunk-7N7IC3Z2.js.map} +2 -2
- package/dist/chunks/{chunk-5XBYFSI5.js → chunk-7YNE4NB2.js} +2 -2
- package/dist/chunks/chunk-ASOJYFKU.js +1316 -0
- package/dist/chunks/chunk-ASOJYFKU.js.map +7 -0
- package/dist/chunks/{chunk-NTC2MCB6.js → chunk-B5L3X3ID.js} +1 -1
- package/dist/chunks/{chunk-NTC2MCB6.js.map → chunk-B5L3X3ID.js.map} +1 -1
- package/dist/chunks/chunk-BIBRWZWQ.js +325 -0
- package/dist/chunks/chunk-BIBRWZWQ.js.map +7 -0
- package/dist/chunks/{chunk-K6QXUGS5.js → chunk-BMAEZNZ5.js} +2 -1
- package/dist/chunks/{chunk-FSB2VIRZ.js → chunk-CBIV747V.js} +14 -3
- package/dist/chunks/chunk-CBIV747V.js.map +7 -0
- package/dist/chunks/{chunk-CCHZXF6K.js → chunk-CXYJJ3HZ.js} +3 -3
- package/dist/chunks/{chunk-R2XQ6AHT.js → chunk-DGERP4VL.js} +22 -10
- package/dist/chunks/chunk-DGERP4VL.js.map +7 -0
- package/dist/chunks/{chunk-C7Z6F3SO.js → chunk-DGUXJSYA.js} +64 -33
- package/dist/chunks/chunk-DGUXJSYA.js.map +7 -0
- package/dist/chunks/chunk-F2LGSRIN.js +38 -0
- package/dist/chunks/chunk-F2LGSRIN.js.map +7 -0
- package/dist/chunks/chunk-F6A6MQ6G.js +609 -0
- package/dist/chunks/chunk-F6A6MQ6G.js.map +7 -0
- package/dist/chunks/{chunk-IR3PIHJM.js → chunk-FK73YJKV.js} +67 -2
- package/dist/chunks/chunk-FK73YJKV.js.map +7 -0
- package/dist/chunks/{chunk-XCEEQ5AB.js → chunk-G2DZJ5LK.js} +1607 -1567
- package/dist/chunks/chunk-G2DZJ5LK.js.map +7 -0
- package/dist/chunks/{chunk-VYQV5JRT.js → chunk-GJVKEHDL.js} +2 -2
- package/dist/chunks/chunk-GJVKEHDL.js.map +7 -0
- package/dist/chunks/{chunk-TIIIHPHF.js → chunk-GS67KDMV.js} +2 -2
- package/dist/chunks/{chunk-D5NYNIST.js → chunk-H57KPL3V.js} +5 -5
- package/dist/chunks/{chunk-KVYNGDGC.js → chunk-HFDJWLMS.js} +6 -6
- package/dist/chunks/{chunk-KVYNGDGC.js.map → chunk-HFDJWLMS.js.map} +1 -1
- package/dist/chunks/{chunk-INRXG4J5.js → chunk-HGD75NZY.js} +2 -2
- package/dist/chunks/{chunk-CRRUW26I.js → chunk-HRDMBGMY.js} +12 -12
- package/dist/chunks/{chunk-CRRUW26I.js.map → chunk-HRDMBGMY.js.map} +2 -2
- package/dist/chunks/{chunk-GO32KSEZ.js → chunk-HRVYXRWZ.js} +85 -10
- package/dist/chunks/chunk-HRVYXRWZ.js.map +7 -0
- package/dist/chunks/{chunk-MLLYR3Y6.js → chunk-HSEZPCL5.js} +19 -78
- package/dist/chunks/chunk-HSEZPCL5.js.map +7 -0
- package/dist/chunks/chunk-JMUUNW2H.js +65 -0
- package/dist/chunks/chunk-JMUUNW2H.js.map +7 -0
- package/dist/chunks/{chunk-UXIBKMUM.js → chunk-KIFOEBYJ.js} +4 -4
- package/dist/chunks/{chunk-3FJUP3GV.js → chunk-L6H46CPY.js} +2 -2
- package/dist/chunks/{chunk-SPCJXN4K.js → chunk-LKYLD5SN.js} +298 -65
- package/dist/chunks/chunk-LKYLD5SN.js.map +7 -0
- package/dist/chunks/{chunk-K7J2ABAZ.js → chunk-LRSZFYUC.js} +92 -32
- package/dist/chunks/chunk-LRSZFYUC.js.map +7 -0
- package/dist/chunks/{chunk-GIK2WNAK.js → chunk-LZ2ZXOCU.js} +112 -23
- package/dist/chunks/chunk-LZ2ZXOCU.js.map +7 -0
- package/dist/chunks/{chunk-FUY6XVRX.js → chunk-MPMEK3IQ.js} +2 -2
- package/dist/chunks/{chunk-HP5P7NBO.js → chunk-MSDL7U6Q.js} +4 -4
- package/dist/chunks/{chunk-ASSLHWZS.js → chunk-MX53BRAC.js} +2 -2
- package/dist/chunks/chunk-N7ZAK2PB.js +132 -0
- package/dist/chunks/chunk-N7ZAK2PB.js.map +7 -0
- package/dist/chunks/{chunk-VSDUSNIA.js → chunk-NBIYYMKS.js} +8 -2
- package/dist/chunks/chunk-NBIYYMKS.js.map +7 -0
- package/dist/chunks/chunk-NENQZCGW.js +45 -0
- package/dist/chunks/chunk-NENQZCGW.js.map +7 -0
- package/dist/chunks/chunk-NJHJKINP.js +47 -0
- package/dist/chunks/chunk-NJHJKINP.js.map +7 -0
- package/dist/chunks/{chunk-U366I5K2.js → chunk-NQ7IWEIF.js} +18 -6
- package/dist/chunks/chunk-NQ7IWEIF.js.map +7 -0
- package/dist/chunks/{chunk-ZQMBS5SH.js → chunk-OJ4HAALD.js} +15 -12
- package/dist/chunks/chunk-OJ4HAALD.js.map +7 -0
- package/dist/chunks/chunk-OZCJU3PZ.js +33 -0
- package/dist/chunks/chunk-OZCJU3PZ.js.map +7 -0
- package/dist/chunks/chunk-P3DCXKL3.js +40 -0
- package/dist/chunks/chunk-P3DCXKL3.js.map +7 -0
- package/dist/chunks/chunk-P7YSPKTM.js +294 -0
- package/dist/chunks/chunk-P7YSPKTM.js.map +7 -0
- package/dist/chunks/chunk-PQVUMJ5J.js +223 -0
- package/dist/chunks/chunk-PQVUMJ5J.js.map +7 -0
- package/dist/chunks/chunk-PUBHBEYO.js +84 -0
- package/dist/chunks/chunk-PUBHBEYO.js.map +7 -0
- package/dist/chunks/{chunk-P4KH4S4S.js → chunk-QGTD3LAZ.js} +5 -20
- package/dist/chunks/chunk-QGTD3LAZ.js.map +7 -0
- package/dist/chunks/{chunk-TIJ3YQXX.js → chunk-QOEOKW2X.js} +2 -2
- package/dist/chunks/{chunk-TIJ3YQXX.js.map → chunk-QOEOKW2X.js.map} +1 -1
- package/dist/chunks/{chunk-QT4W5YVB.js → chunk-RAA3FAYZ.js} +2 -2
- package/dist/chunks/{chunk-3UGN25XS.js → chunk-RKJPBTBB.js} +98 -1664
- package/dist/chunks/chunk-RKJPBTBB.js.map +7 -0
- package/dist/chunks/{chunk-WJJXODAB.js → chunk-RLKRZXSX.js} +8 -1
- package/dist/chunks/{chunk-WJJXODAB.js.map → chunk-RLKRZXSX.js.map} +2 -2
- package/dist/chunks/chunk-RWKQ5SRW.js +129 -0
- package/dist/chunks/chunk-RWKQ5SRW.js.map +7 -0
- package/dist/chunks/chunk-SW25R47N.js +71 -0
- package/dist/chunks/chunk-SW25R47N.js.map +7 -0
- package/dist/chunks/{chunk-EKODKR6Y.js → chunk-TEMKDJJY.js} +148 -72
- package/dist/chunks/chunk-TEMKDJJY.js.map +7 -0
- package/dist/chunks/{chunk-EFETPXU2.js → chunk-TJZYM2SP.js} +118 -237
- package/dist/chunks/chunk-TJZYM2SP.js.map +7 -0
- package/dist/chunks/{chunk-53N2I4QA.js → chunk-TXCNZCZP.js} +2 -2
- package/dist/chunks/{chunk-LNASO4VT.js → chunk-U6Y6TKJL.js} +45 -20
- package/dist/chunks/chunk-U6Y6TKJL.js.map +7 -0
- package/dist/chunks/chunk-UD7LFV43.js +28 -0
- package/dist/chunks/chunk-UD7LFV43.js.map +7 -0
- package/dist/chunks/{chunk-7QKKLBHJ.js → chunk-UPMWLOKL.js} +10 -1
- package/dist/chunks/{chunk-7QKKLBHJ.js.map → chunk-UPMWLOKL.js.map} +2 -2
- package/dist/chunks/chunk-V4OW2ULC.js +422 -0
- package/dist/chunks/chunk-V4OW2ULC.js.map +7 -0
- package/dist/chunks/{chunk-FE6NOAO7.js → chunk-VGRUWTMG.js} +1993 -659
- package/dist/chunks/chunk-VGRUWTMG.js.map +7 -0
- package/dist/chunks/{chunk-PYFJW3HC.js → chunk-W5FEHVZA.js} +2 -16
- package/dist/chunks/{chunk-PYFJW3HC.js.map → chunk-W5FEHVZA.js.map} +3 -3
- package/dist/chunks/chunk-WKFRGICG.js +101 -0
- package/dist/chunks/chunk-WKFRGICG.js.map +7 -0
- package/dist/chunks/{chunk-LEU5CDSL.js → chunk-XFOSUGLU.js} +5 -5
- package/dist/chunks/{chunk-MZUC6LLH.js → chunk-XMYG2TKR.js} +4 -4
- package/dist/chunks/{chunk-MZUC6LLH.js.map → chunk-XMYG2TKR.js.map} +1 -1
- package/dist/chunks/chunk-YC65P7ZO.js +57 -0
- package/dist/chunks/chunk-YC65P7ZO.js.map +7 -0
- package/dist/chunks/{chunk-5UBRGTVN.js → chunk-ZHROHNEE.js} +31 -15
- package/dist/chunks/chunk-ZHROHNEE.js.map +7 -0
- package/dist/cli/decisions.d.ts.map +1 -1
- package/dist/cli/decisions.js +15 -3
- package/dist/cli/decisions.js.map +2 -2
- package/dist/cli/mesh.js +4 -3
- package/dist/cli/mesh.js.map +1 -1
- package/dist/commands/fabric-handler.d.ts +7 -0
- package/dist/commands/fabric-handler.d.ts.map +1 -0
- package/dist/commands/fabric-handler.js +916 -0
- package/dist/commands/fabric-handler.js.map +7 -0
- package/dist/commands/fabric.d.ts +11 -1
- package/dist/commands/fabric.d.ts.map +1 -1
- package/dist/compaction/claim-events.d.ts +61 -0
- package/dist/compaction/claim-events.d.ts.map +1 -0
- package/dist/compaction/claim-events.js +210 -0
- package/dist/compaction/claim-events.js.map +7 -0
- package/dist/compaction/claim.d.ts +51 -0
- package/dist/compaction/claim.d.ts.map +1 -0
- package/dist/compaction/hook.d.ts +28 -2
- package/dist/compaction/hook.d.ts.map +1 -1
- package/dist/compaction/hook.js +12 -7
- package/dist/compaction/owner.js +9 -8
- package/dist/compaction/trace-events.d.ts +1 -1
- package/dist/compaction/trace-events.d.ts.map +1 -1
- package/dist/components/configuration.js +6 -6
- package/dist/components/effect-scope.d.ts.map +1 -1
- package/dist/config.d.ts +40 -3
- package/dist/config.d.ts.map +1 -1
- package/dist/core/action-arguments.d.ts.map +1 -1
- package/dist/core/action-policy-hooks.d.ts +69 -0
- package/dist/core/action-policy-hooks.d.ts.map +1 -0
- package/dist/core/action-registry.d.ts +31 -10
- package/dist/core/action-registry.d.ts.map +1 -1
- package/dist/core/action-registry.js +12 -9
- package/dist/core/approval-controller.d.ts +23 -3
- package/dist/core/approval-controller.d.ts.map +1 -1
- package/dist/core/atomic-write.d.ts +164 -0
- package/dist/core/atomic-write.d.ts.map +1 -1
- package/dist/core/call-presentation.d.ts +14 -0
- package/dist/core/call-presentation.d.ts.map +1 -0
- package/dist/core/child-tool-allowlist.d.ts +17 -1
- package/dist/core/child-tool-allowlist.d.ts.map +1 -1
- package/dist/core/compact-controller.d.ts +34 -0
- package/dist/core/compact-controller.d.ts.map +1 -1
- package/dist/core/core-override-guidance.d.ts +3 -1
- package/dist/core/core-override-guidance.d.ts.map +1 -1
- package/dist/core/file-lock.d.ts.map +1 -1
- package/dist/core/foreground-tools.d.ts +4 -1
- package/dist/core/foreground-tools.d.ts.map +1 -1
- package/dist/core/host-policy.d.ts +43 -0
- package/dist/core/host-policy.d.ts.map +1 -0
- package/dist/core/host-sdk-runtime.d.ts.map +1 -1
- package/dist/core/host-sdk.d.ts.map +1 -1
- package/dist/core/host-sdk.js +1 -1
- package/dist/core/managed-host-guidance.d.ts +5 -0
- package/dist/core/managed-host-guidance.d.ts.map +1 -0
- package/dist/core/model-aliases.d.ts +22 -0
- package/dist/core/model-aliases.d.ts.map +1 -0
- package/dist/core/model-resolution.d.ts +41 -20
- package/dist/core/model-resolution.d.ts.map +1 -1
- package/dist/core/native-tool-result.d.ts +1 -0
- package/dist/core/native-tool-result.d.ts.map +1 -1
- package/dist/core/program-tasks.d.ts +52 -0
- package/dist/core/program-tasks.d.ts.map +1 -0
- package/dist/core/prompt-guidance.d.ts +5 -0
- package/dist/core/prompt-guidance.d.ts.map +1 -0
- package/dist/core/prompt-guidance.js +159 -0
- package/dist/core/prompt-guidance.js.map +7 -0
- package/dist/core/provider-operations.d.ts.map +1 -1
- package/dist/core/provider-operations.js +60 -108
- package/dist/core/provider-operations.js.map +3 -3
- package/dist/core/shell-inbox.d.ts.map +1 -1
- package/dist/core/shell-jobs.d.ts +7 -5
- package/dist/core/shell-jobs.d.ts.map +1 -1
- package/dist/core/shell-timing.d.ts.map +1 -1
- package/dist/core/skill-prompt.d.ts +1 -1
- package/dist/core/skill-prompt.d.ts.map +1 -1
- package/dist/core/skill-references.d.ts +1 -1
- package/dist/core/skill-references.d.ts.map +1 -1
- package/dist/core/system-guidance.d.ts.map +1 -1
- package/dist/core/tool-result-proxy.d.ts.map +1 -1
- package/dist/decisions/command.d.ts +2 -1
- package/dist/decisions/command.d.ts.map +1 -1
- package/dist/decisions/command.js +40 -12
- package/dist/decisions/command.js.map +2 -2
- package/dist/decisions/events.d.ts +12 -0
- package/dist/decisions/events.d.ts.map +1 -0
- package/dist/decisions/events.js +130 -0
- package/dist/decisions/events.js.map +7 -0
- package/dist/decisions/host.d.ts +31 -3
- package/dist/decisions/host.d.ts.map +1 -1
- package/dist/decisions/render.d.ts +44 -0
- package/dist/decisions/render.d.ts.map +1 -0
- package/dist/decisions/store.d.ts +8 -0
- package/dist/decisions/store.d.ts.map +1 -1
- package/dist/durable/agent.d.ts +8 -0
- package/dist/durable/agent.d.ts.map +1 -1
- package/dist/durable/extension-load-error.d.ts +8 -0
- package/dist/durable/extension-load-error.d.ts.map +1 -0
- package/dist/durable/session.d.ts +1 -0
- package/dist/durable/session.d.ts.map +1 -1
- package/dist/durable/worker-host.d.ts +10 -1
- package/dist/durable/worker-host.d.ts.map +1 -1
- package/dist/durable/worker-host.js +10 -1181
- package/dist/durable/worker-host.js.map +4 -4
- package/dist/durable/worker-options.d.ts +3 -0
- package/dist/durable/worker-options.d.ts.map +1 -1
- package/dist/durable/worker-role-seed.d.ts +82 -0
- package/dist/durable/worker-role-seed.d.ts.map +1 -0
- package/dist/durable/worker.js +43 -4
- package/dist/durable/worker.js.map +2 -2
- package/dist/durable-controls.d.ts.map +1 -1
- package/dist/durable-extension-wasm.d.ts +8 -0
- package/dist/durable-extension-wasm.d.ts.map +1 -0
- package/dist/durable-extension-wasm.js +32 -0
- package/dist/durable-extension-wasm.js.map +7 -0
- package/dist/durable-extension.d.ts +94 -0
- package/dist/durable-extension.d.ts.map +1 -0
- package/dist/durable-extension.js +649 -0
- package/dist/durable-extension.js.map +7 -0
- package/dist/durable-host.d.ts +8 -0
- package/dist/durable-host.d.ts.map +1 -0
- package/dist/durable-host.js +20 -0
- package/dist/durable-host.js.map +7 -0
- package/dist/durable-journal.d.ts +94 -0
- package/dist/durable-journal.d.ts.map +1 -0
- package/dist/durable.d.ts.map +1 -1
- package/dist/durable.js +13 -10
- package/dist/durable.js.map +2 -2
- package/dist/entropy/index.js +12 -10
- package/dist/entropy/pool-store.d.ts.map +1 -1
- package/dist/execution-service.d.ts +14 -0
- package/dist/execution-service.d.ts.map +1 -1
- package/dist/extension-bootstrap.d.ts.map +1 -1
- package/dist/extension-bootstrap.js +28 -27
- package/dist/extension-bootstrap.js.map +2 -2
- package/dist/extension-copy.d.ts +21 -0
- package/dist/extension-copy.d.ts.map +1 -0
- package/dist/extension-copy.js +90 -0
- package/dist/extension-copy.js.map +7 -0
- package/dist/extension.d.ts +1 -1
- package/dist/extension.d.ts.map +1 -1
- package/dist/fabric-exec-arguments.d.ts.map +1 -1
- package/dist/fabric-exec-tool.d.ts +2 -1
- package/dist/fabric-exec-tool.d.ts.map +1 -1
- package/dist/fabric-runtime-state.d.ts +19 -0
- package/dist/fabric-runtime-state.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +2205 -839
- package/dist/fabric-runtime-state.js.map +4 -4
- package/dist/fabric-state.d.ts +44 -1
- package/dist/fabric-state.d.ts.map +1 -1
- package/dist/feedback.d.ts +5 -0
- package/dist/feedback.d.ts.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +88 -53
- package/dist/index.js.map +2 -2
- package/dist/jev/client.js +2 -2
- package/dist/jev/manager.d.ts +3 -0
- package/dist/jev/manager.d.ts.map +1 -1
- package/dist/jev/observation.d.ts +1 -1
- package/dist/jev/observation.js +6 -6
- package/dist/jev-fabric/bridge.d.ts.map +1 -1
- package/dist/jev.js +11 -12
- package/dist/main-agent.d.ts +2 -1
- package/dist/main-agent.d.ts.map +1 -1
- package/dist/managed-host.d.ts +13 -0
- package/dist/managed-host.d.ts.map +1 -1
- package/dist/memory/digest.js +2 -2
- package/dist/memory/discovery.js +6 -7
- package/dist/memory/file-worker.js +10 -11
- package/dist/memory/file-worker.js.map +1 -1
- package/dist/memory/normalize.js +5 -6
- package/dist/memory/search.js +7 -8
- package/dist/memory/worker-provider.js +11 -12
- package/dist/memory.js +11 -12
- package/dist/memory.js.map +1 -1
- package/dist/mesh/grants.d.ts +3 -3
- package/dist/mesh/grants.d.ts.map +1 -1
- package/dist/mesh/store.d.ts +8 -0
- package/dist/mesh/store.d.ts.map +1 -1
- package/dist/native-codemode.d.ts.map +1 -1
- package/dist/native-tool-catalog.d.ts.map +1 -1
- package/dist/native-tool-catalog.js +12 -3
- package/dist/native-tool-catalog.js.map +2 -2
- package/dist/programs/host.d.ts +18 -6
- package/dist/programs/host.d.ts.map +1 -1
- package/dist/programs/host.js +71 -47
- package/dist/programs/host.js.map +2 -2
- package/dist/programs/source.d.ts +11 -0
- package/dist/programs/source.d.ts.map +1 -1
- package/dist/programs/store.d.ts.map +1 -1
- package/dist/protocol.d.ts +504 -8
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +41 -11
- package/dist/provider-globals.d.ts +13 -0
- package/dist/provider-globals.d.ts.map +1 -0
- package/dist/providers/agents-actions.d.ts.map +1 -1
- package/dist/providers/agents-provider.d.ts +3 -0
- package/dist/providers/agents-provider.d.ts.map +1 -1
- package/dist/providers/captured-tools-provider.d.ts +5 -0
- package/dist/providers/captured-tools-provider.d.ts.map +1 -1
- package/dist/providers/compact-provider.d.ts +4 -1
- package/dist/providers/compact-provider.d.ts.map +1 -1
- package/dist/providers/components-provider.d.ts.map +1 -1
- package/dist/providers/decisions-provider.d.ts +9 -1
- package/dist/providers/decisions-provider.d.ts.map +1 -1
- package/dist/providers/jev-provider.d.ts +1 -1
- package/dist/providers/jev-provider.js +11 -12
- package/dist/providers/memory-provider.js +10 -11
- package/dist/providers/pi-tools-provider.d.ts +14 -0
- package/dist/providers/pi-tools-provider.d.ts.map +1 -1
- package/dist/providers/programs-provider.d.ts.map +1 -1
- package/dist/providers/sessions-provider.d.ts +7 -0
- package/dist/providers/sessions-provider.d.ts.map +1 -1
- package/dist/repeat-guard.d.ts +7 -6
- package/dist/repeat-guard.d.ts.map +1 -1
- package/dist/residency/actor-client.js +3 -3
- package/dist/residency/client.d.ts +15 -0
- package/dist/residency/client.d.ts.map +1 -1
- package/dist/residency/host.d.ts.map +1 -1
- package/dist/residency/host.js +34 -23
- package/dist/residency/launcher.js +1 -1
- package/dist/residency/pi-entry.js +34 -23
- package/dist/residency/pi-entry.js.map +1 -1
- package/dist/residency/protocol.d.ts +2 -0
- package/dist/residency/protocol.d.ts.map +1 -1
- package/dist/runners.js +11 -1
- package/dist/runners.js.map +2 -2
- package/dist/runtime/core-override-guest-types.js +2 -2
- package/dist/runtime/cpython-child-source.d.ts.map +1 -1
- package/dist/runtime/cpython-runtime.d.ts.map +1 -1
- package/dist/runtime/cpython-runtime.js +51 -21
- package/dist/runtime/cpython-runtime.js.map +2 -2
- package/dist/runtime/deadline-pause.d.ts +2 -0
- package/dist/runtime/deadline-pause.d.ts.map +1 -1
- package/dist/runtime/dynamic-guest-types.d.ts.map +1 -1
- package/dist/runtime/dynamic-guest-types.js +2 -1
- package/dist/runtime/exec-journal.d.ts +73 -0
- package/dist/runtime/exec-journal.d.ts.map +1 -0
- package/dist/runtime/exec-journal.js +335 -0
- package/dist/runtime/exec-journal.js.map +7 -0
- package/dist/runtime/guest-types.d.ts +3 -2
- package/dist/runtime/guest-types.d.ts.map +1 -1
- package/dist/runtime/guest-types.js +1 -1
- package/dist/runtime/journal-shim.d.ts +3 -0
- package/dist/runtime/journal-shim.d.ts.map +1 -0
- package/dist/runtime/kernel.d.ts +95 -1
- package/dist/runtime/kernel.d.ts.map +1 -1
- package/dist/runtime/monty-bridge.d.ts +6 -2
- package/dist/runtime/monty-bridge.d.ts.map +1 -1
- package/dist/runtime/monty-runtime.d.ts.map +1 -1
- package/dist/runtime/monty-runtime.js +27 -15
- package/dist/runtime/monty-runtime.js.map +2 -2
- package/dist/runtime/native-codemode-guest.d.ts.map +1 -1
- package/dist/runtime/node-process-runtime.d.ts.map +1 -1
- package/dist/runtime/node-process-runtime.js +7 -5
- package/dist/runtime/quickjs-runtime.d.ts +7 -1
- package/dist/runtime/quickjs-runtime.d.ts.map +1 -1
- package/dist/runtime/quickjs-runtime.js +5 -4
- package/dist/runtime/sha256.d.ts +4 -0
- package/dist/runtime/sha256.d.ts.map +1 -0
- package/dist/runtime/transpile.d.ts +8 -0
- package/dist/runtime/transpile.d.ts.map +1 -0
- package/dist/runtime/type-checker.d.ts +1 -7
- package/dist/runtime/type-checker.d.ts.map +1 -1
- package/dist/runtime/type-checker.js +4 -2
- package/dist/runtime/typescript-kernel.js +13 -10
- package/dist/runtime/typescript-kernel.js.map +1 -1
- package/dist/runtime-state-builtins.d.ts.map +1 -1
- package/dist/speculation/scanner.js +1 -1
- package/dist/speculation/store.d.ts +7 -16
- package/dist/speculation/store.d.ts.map +1 -1
- package/dist/speculation/types.d.ts +1 -0
- package/dist/speculation/types.d.ts.map +1 -1
- package/dist/storage/retention.d.ts.map +1 -1
- package/dist/topology/participant-directory.d.ts +26 -1
- package/dist/topology/participant-directory.d.ts.map +1 -1
- package/dist/topology/peer-presence.d.ts.map +1 -1
- package/dist/topology/peer-settle.js +11 -0
- package/dist/topology/peer-settle.js.map +7 -0
- package/dist/topology/session-label-settings.d.ts +13 -0
- package/dist/topology/session-label-settings.d.ts.map +1 -0
- package/dist/topology/session-label.d.ts +60 -0
- package/dist/topology/session-label.d.ts.map +1 -0
- package/dist/topology/types.d.ts +27 -0
- package/dist/topology/types.d.ts.map +1 -1
- package/dist/type-error-guidance.js +1 -1
- package/dist/ui/controller.d.ts +1 -0
- package/dist/ui/controller.d.ts.map +1 -1
- package/dist/ui/conversation-chrome.d.ts.map +1 -1
- package/dist/ui/conversation-chrome.js +3 -2
- package/dist/ui/conversation-commands.d.ts +1 -1
- package/dist/ui/conversation-commands.d.ts.map +1 -1
- package/dist/ui/conversation-native-reader.js +2 -2
- package/dist/ui/conversation-selection.d.ts +4 -1
- package/dist/ui/conversation-selection.d.ts.map +1 -1
- package/dist/ui/conversation-targets.d.ts.map +1 -1
- package/dist/ui/conversation-targets.js +2 -2
- package/dist/ui/conversation.d.ts +25 -24
- package/dist/ui/conversation.d.ts.map +1 -1
- package/dist/ui/conversation.js +170 -339
- package/dist/ui/conversation.js.map +2 -2
- package/dist/ui/core-tool-render.d.ts +1 -0
- package/dist/ui/core-tool-render.d.ts.map +1 -1
- package/dist/ui/dashboard-model.d.ts.map +1 -1
- package/dist/ui/dashboard.d.ts.map +1 -1
- package/dist/ui/dashboard.js +23 -16
- package/dist/ui/dashboard.js.map +2 -2
- package/dist/ui/fabric-render.d.ts +7 -0
- package/dist/ui/fabric-render.d.ts.map +1 -1
- package/dist/ui/footer-dock.d.ts +48 -0
- package/dist/ui/footer-dock.d.ts.map +1 -0
- package/dist/ui/format.d.ts +7 -0
- package/dist/ui/format.d.ts.map +1 -1
- package/dist/ui/settings-sections-lifecycle.d.ts.map +1 -1
- package/dist/ui/settings-sections-presentation.d.ts.map +1 -1
- package/dist/ui/settings-values.d.ts +2 -1
- package/dist/ui/settings-values.d.ts.map +1 -1
- package/dist/ui/settings.js +60 -19
- package/dist/ui/settings.js.map +2 -2
- package/dist/ui/shell-hang-keys.d.ts +8 -1
- package/dist/ui/shell-hang-keys.d.ts.map +1 -1
- package/dist/ui/shell-tasks.d.ts +2 -2
- package/dist/ui/shell-tasks.d.ts.map +1 -1
- package/dist/ui/shell-tasks.js +27 -94
- package/dist/ui/shell-tasks.js.map +2 -2
- package/dist/ui/snapshot.d.ts.map +1 -1
- package/dist/ui/terminal-title.d.ts +41 -0
- package/dist/ui/terminal-title.d.ts.map +1 -0
- package/dist/ui/types.d.ts +4 -0
- package/dist/ui/types.d.ts.map +1 -1
- package/dist/ui/widget-keys.d.ts +5 -0
- package/dist/ui/widget-keys.d.ts.map +1 -0
- package/dist/ui/widget.d.ts +40 -18
- package/dist/ui/widget.d.ts.map +1 -1
- package/dist/ui/word-diff/line-emphasis.js +1603 -0
- package/dist/ui/word-diff/line-emphasis.js.map +7 -0
- package/dist/util.d.ts +2 -0
- package/dist/util.d.ts.map +1 -1
- package/dist/verified/authority.d.ts +2 -2
- package/dist/verified/authority.d.ts.map +1 -1
- package/dist/verified/budget.d.ts +4 -0
- package/dist/verified/budget.d.ts.map +1 -0
- package/dist/verified/generated/actor-name.d.ts +4 -0
- package/dist/verified/generated/actor-name.js +17 -0
- package/dist/verified/generated/authority.d.ts +4 -0
- package/dist/verified/generated/authority.js +28 -0
- package/dist/verified/generated/budget.d.ts +4 -0
- package/dist/verified/generated/budget.js +17 -0
- package/dist/verified/generated/compaction.d.ts +4 -0
- package/dist/verified/generated/compaction.js +19 -0
- package/dist/verified/generated/grants.d.ts +4 -0
- package/dist/verified/generated/grants.js +17 -0
- package/dist/verified/generated/lifecycle.d.ts +4 -0
- package/dist/verified/generated/lifecycle.js +50 -0
- package/dist/verified/generated/manifest.json +137 -48
- package/dist/verified/generated/policy.d.ts +17 -0
- package/dist/verified/generated/policy.js +211 -0
- package/dist/verified/generated/provider.d.ts +4 -0
- package/dist/verified/generated/provider.js +18 -0
- package/dist/verified/generated/resources.d.ts +6 -0
- package/dist/verified/generated/resources.js +73 -0
- package/dist/verified/generated/speculation.d.ts +6 -0
- package/dist/verified/generated/speculation.js +48 -0
- package/dist/verified/generated/storage.d.ts +4 -0
- package/dist/verified/generated/storage.js +18 -0
- package/dist/verified/grants.d.ts +22 -0
- package/dist/verified/grants.d.ts.map +1 -0
- package/dist/verified/lifecycle.d.ts +31 -0
- package/dist/verified/lifecycle.d.ts.map +1 -0
- package/dist/verified/machine.d.ts +18 -0
- package/dist/verified/machine.d.ts.map +1 -0
- package/dist/verified/memory.d.ts +1 -1
- package/dist/verified/memory.d.ts.map +1 -1
- package/dist/verified/nat.d.ts +1 -1
- package/dist/verified/nat.d.ts.map +1 -1
- package/dist/verified/policy.d.ts +17 -5
- package/dist/verified/policy.d.ts.map +1 -1
- package/dist/verified/provider.d.ts +22 -0
- package/dist/verified/provider.d.ts.map +1 -0
- package/dist/verified/resources.d.ts +21 -7
- package/dist/verified/resources.d.ts.map +1 -1
- package/dist/verified/speculation.d.ts +36 -0
- package/dist/verified/speculation.d.ts.map +1 -0
- package/dist/verified/storage.d.ts.map +1 -1
- package/dist/worker/missing-install.d.ts +8 -0
- package/dist/worker/missing-install.d.ts.map +1 -0
- package/dist/worker/options.d.ts.map +1 -1
- package/dist/worker/options.js +25 -0
- package/dist/worker/options.js.map +2 -2
- package/dist/worker/prompt-lifecycle.d.ts +16 -0
- package/dist/worker/prompt-lifecycle.d.ts.map +1 -0
- package/dist/worker/prompt-lifecycle.js +90 -0
- package/dist/worker/prompt-lifecycle.js.map +7 -0
- package/dist/worker/questions.d.ts +15 -3
- package/dist/worker/questions.d.ts.map +1 -1
- package/dist/worker/questions.js +53 -8
- package/dist/worker/questions.js.map +2 -2
- package/dist/worker/recovery-watchdog.d.ts +22 -0
- package/dist/worker/recovery-watchdog.d.ts.map +1 -1
- package/dist/worker/recovery-watchdog.js +116 -1
- package/dist/worker/recovery-watchdog.js.map +2 -2
- package/dist/worker/result.js +1 -1
- package/dist/worker/result.js.map +2 -2
- package/dist/worker.js +131 -21
- package/dist/worker.js.map +2 -2
- package/docs/actor-name-policy-handoff.md +5 -0
- package/docs/agents.md +172 -22
- package/docs/architecture.md +5 -1
- package/docs/audit-trace.md +2 -1
- package/docs/background-tasks.md +126 -28
- package/docs/codemode-parity.md +2 -2
- package/docs/compaction.md +21 -5
- package/docs/components.md +1 -1
- package/docs/configuration.md +113 -66
- package/docs/decisions.md +92 -10
- package/docs/durable-extension.md +121 -0
- package/docs/durable-pi.md +306 -6
- package/docs/extractive-history.md +3 -1
- package/docs/interface.md +22 -17
- package/docs/jev.md +2 -2
- package/docs/kernels.md +1 -1
- package/{node_modules/pi-coralbricks-provider/LICENSE → docs/licenses/gdp-wired-mit.txt} +1 -1
- package/docs/managed-host-migration.md +50 -0
- package/docs/programmatic-compaction.md +216 -6
- package/docs/programs.md +23 -1
- package/docs/prompt-cache.md +4 -2
- package/docs/provider-capabilities.md +15 -14
- package/docs/providers.md +99 -3
- package/docs/shell-composition.md +15 -0
- package/docs/short-lock-protocol.md +90 -0
- package/docs/skills.md +5 -1
- package/docs/speculation.md +6 -0
- package/docs/verified-kernels.md +309 -220
- package/package.json +45 -24
- package/proofs/actor-name.ts +27 -0
- package/proofs/authority.ts +62 -0
- package/proofs/budget.ts +24 -0
- package/proofs/compaction.ts +51 -0
- package/proofs/grants.ts +39 -0
- package/proofs/index.ts +40 -0
- package/proofs/kernel.ts +44 -0
- package/proofs/lifecycle.ts +128 -0
- package/proofs/policy.ts +195 -0
- package/proofs/provider.ts +52 -0
- package/proofs/resources.ts +160 -0
- package/proofs/speculation.ts +69 -0
- package/proofs/storage.ts +66 -0
- package/scripts/verified-kernels.ts +141 -0
- package/skillsets/python/fabric-council/SKILL.md +94 -20
- package/skillsets/python/fabric-exec/SKILL.md +2 -2
- package/skillsets/python/fabric-exec/references/agents.md +10 -4
- package/skillsets/python/fabric-fusion/SKILL.md +1 -1
- package/skillsets/python/fabric-guide/SKILL.md +1 -1
- package/skillsets/typescript/fabric-council/SKILL.md +110 -22
- package/skillsets/typescript/fabric-exec/SKILL.md +7 -7
- package/skillsets/typescript/fabric-exec/references/agents.md +17 -8
- package/skillsets/typescript/fabric-fusion/SKILL.md +1 -1
- package/skillsets/typescript/fabric-guide/SKILL.md +1 -1
- package/LAWS.bend +0 -502
- package/PROOF.bend +0 -452
- package/dist/chunks/chunk-3UGN25XS.js.map +0 -7
- package/dist/chunks/chunk-4EW7GVUR.js.map +0 -7
- package/dist/chunks/chunk-5UBRGTVN.js.map +0 -7
- package/dist/chunks/chunk-BN7F52EG.js +0 -525
- package/dist/chunks/chunk-BN7F52EG.js.map +0 -7
- package/dist/chunks/chunk-C7Z6F3SO.js.map +0 -7
- package/dist/chunks/chunk-DK35W6U7.js +0 -259
- package/dist/chunks/chunk-DK35W6U7.js.map +0 -7
- package/dist/chunks/chunk-EFETPXU2.js.map +0 -7
- package/dist/chunks/chunk-EHQQ4KCX.js.map +0 -7
- package/dist/chunks/chunk-EKODKR6Y.js.map +0 -7
- package/dist/chunks/chunk-FE6NOAO7.js.map +0 -7
- package/dist/chunks/chunk-FIDUHKMM.js.map +0 -7
- package/dist/chunks/chunk-FSB2VIRZ.js.map +0 -7
- package/dist/chunks/chunk-GIK2WNAK.js.map +0 -7
- package/dist/chunks/chunk-GO32KSEZ.js.map +0 -7
- package/dist/chunks/chunk-IR3PIHJM.js.map +0 -7
- package/dist/chunks/chunk-ITVLKXCI.js +0 -266
- package/dist/chunks/chunk-ITVLKXCI.js.map +0 -7
- package/dist/chunks/chunk-K7J2ABAZ.js.map +0 -7
- package/dist/chunks/chunk-KJZAOENY.js +0 -212
- package/dist/chunks/chunk-KJZAOENY.js.map +0 -7
- package/dist/chunks/chunk-LNASO4VT.js.map +0 -7
- package/dist/chunks/chunk-MLLYR3Y6.js.map +0 -7
- package/dist/chunks/chunk-P4KH4S4S.js.map +0 -7
- package/dist/chunks/chunk-PK4NIJEV.js.map +0 -7
- package/dist/chunks/chunk-Q2JQ3RYZ.js +0 -99
- package/dist/chunks/chunk-Q2JQ3RYZ.js.map +0 -7
- package/dist/chunks/chunk-R2XQ6AHT.js.map +0 -7
- package/dist/chunks/chunk-ROTCDDOV.js.map +0 -7
- package/dist/chunks/chunk-SPCJXN4K.js.map +0 -7
- package/dist/chunks/chunk-U366I5K2.js.map +0 -7
- package/dist/chunks/chunk-UKMQK5VP.js +0 -231
- package/dist/chunks/chunk-UKMQK5VP.js.map +0 -7
- package/dist/chunks/chunk-UOM37PE4.js.map +0 -7
- package/dist/chunks/chunk-UTOBAZ5T.js.map +0 -7
- package/dist/chunks/chunk-VSDUSNIA.js.map +0 -7
- package/dist/chunks/chunk-VTK2FEH7.js +0 -229
- package/dist/chunks/chunk-VTK2FEH7.js.map +0 -7
- package/dist/chunks/chunk-VYQV5JRT.js.map +0 -7
- package/dist/chunks/chunk-XCEEQ5AB.js.map +0 -7
- package/dist/chunks/chunk-ZLNJDTCN.js +0 -226
- package/dist/chunks/chunk-ZLNJDTCN.js.map +0 -7
- package/dist/chunks/chunk-ZQMBS5SH.js.map +0 -7
- package/dist/ui/conversation-shortcut.d.ts +0 -3
- package/dist/ui/conversation-shortcut.d.ts.map +0 -1
- package/dist/ui/widget-activity.d.ts +0 -21
- package/dist/ui/widget-activity.d.ts.map +0 -1
- package/dist/verified/generated/authority-kernel.d.ts +0 -10
- package/dist/verified/generated/authority-kernel.js +0 -127
- package/dist/verified/generated/kernel.d.ts +0 -31
- package/dist/verified/generated/kernel.js +0 -389
- package/dist/verified/generated/lifecycle-kernel.d.ts +0 -7
- package/dist/verified/generated/lifecycle-kernel.js +0 -164
- package/dist/verified/generated/provider-kernel.d.ts +0 -9
- package/dist/verified/generated/provider-kernel.js +0 -87
- package/dist/verified/generated/storage-kernel.d.ts +0 -11
- package/dist/verified/generated/storage-kernel.js +0 -107
- package/docs/licenses/bend-apache-2.0.txt +0 -202
- package/node_modules/pi-coralbricks-provider/README.md +0 -306
- package/node_modules/pi-coralbricks-provider/auth.ts +0 -30
- package/node_modules/pi-coralbricks-provider/custom-models.json +0 -1
- package/node_modules/pi-coralbricks-provider/deprecated-models.json +0 -1
- package/node_modules/pi-coralbricks-provider/guard.ts +0 -155
- package/node_modules/pi-coralbricks-provider/index.ts +0 -662
- package/node_modules/pi-coralbricks-provider/models.json +0 -88
- package/node_modules/pi-coralbricks-provider/package.json +0 -74
- package/node_modules/pi-coralbricks-provider/park.ts +0 -122
- package/node_modules/pi-coralbricks-provider/patch.json +0 -34
- package/node_modules/pi-coralbricks-provider/scripts/update-models.js +0 -658
- package/node_modules/pi-coralbricks-provider/settings.ts +0 -143
- package/node_modules/pi-coralbricks-provider/sync-policy.ts +0 -309
- package/proofs/abi.json +0 -308
- package/proofs/authority-abi.json +0 -7
- package/proofs/authority-kernel.bend +0 -23
- package/proofs/authority-proof.bend +0 -74
- package/proofs/authority-spec.bend +0 -30
- package/proofs/authority-state.bend +0 -43
- package/proofs/authority-types.d.ts +0 -3
- package/proofs/kernel.bend +0 -139
- package/proofs/lifecycle-abi.json +0 -3
- package/proofs/lifecycle-kernel.bend +0 -11
- package/proofs/lifecycle-proof.bend +0 -249
- package/proofs/lifecycle-spec.bend +0 -261
- package/proofs/lifecycle-types.d.ts +0 -4
- package/proofs/lifecycle.bend +0 -119
- package/proofs/provider-abi.json +0 -4
- package/proofs/provider-kernel.bend +0 -14
- package/proofs/provider-plans.bend +0 -28
- package/proofs/provider-spec.bend +0 -14
- package/proofs/provider-types.d.ts +0 -5
- package/proofs/resource-proof.bend +0 -633
- package/proofs/resource-spec.bend +0 -133
- package/proofs/resources.bend +0 -160
- package/proofs/state-kernel.bend +0 -17
- package/proofs/state-plans.bend +0 -40
- package/proofs/state-proof.bend +0 -42
- package/proofs/state-spec.bend +0 -26
- package/proofs/storage-abi.json +0 -3
- package/proofs/storage-kernel.bend +0 -11
- package/proofs/storage-plans.bend +0 -100
- package/proofs/storage-proof.bend +0 -176
- package/proofs/storage-spec.bend +0 -70
- package/proofs/storage-types.d.ts +0 -8
- package/proofs/types.d.ts +0 -7
- package/scripts/test-verified-kernels.mjs +0 -107
- package/scripts/verified-kernels.mjs +0 -176
- /package/dist/chunks/{chunk-ZEXCKK4K.js.map → chunk-4WKD3YM3.js.map} +0 -0
- /package/dist/chunks/{chunk-5XBYFSI5.js.map → chunk-7YNE4NB2.js.map} +0 -0
- /package/dist/chunks/{chunk-K6QXUGS5.js.map → chunk-BMAEZNZ5.js.map} +0 -0
- /package/dist/chunks/{chunk-CCHZXF6K.js.map → chunk-CXYJJ3HZ.js.map} +0 -0
- /package/dist/chunks/{chunk-TIIIHPHF.js.map → chunk-GS67KDMV.js.map} +0 -0
- /package/dist/chunks/{chunk-D5NYNIST.js.map → chunk-H57KPL3V.js.map} +0 -0
- /package/dist/chunks/{chunk-INRXG4J5.js.map → chunk-HGD75NZY.js.map} +0 -0
- /package/dist/chunks/{chunk-UXIBKMUM.js.map → chunk-KIFOEBYJ.js.map} +0 -0
- /package/dist/chunks/{chunk-3FJUP3GV.js.map → chunk-L6H46CPY.js.map} +0 -0
- /package/dist/chunks/{chunk-FUY6XVRX.js.map → chunk-MPMEK3IQ.js.map} +0 -0
- /package/dist/chunks/{chunk-HP5P7NBO.js.map → chunk-MSDL7U6Q.js.map} +0 -0
- /package/dist/chunks/{chunk-ASSLHWZS.js.map → chunk-MX53BRAC.js.map} +0 -0
- /package/dist/chunks/{chunk-QT4W5YVB.js.map → chunk-RAA3FAYZ.js.map} +0 -0
- /package/dist/chunks/{chunk-53N2I4QA.js.map → chunk-TXCNZCZP.js.map} +0 -0
- /package/dist/chunks/{chunk-LEU5CDSL.js.map → chunk-XFOSUGLU.js.map} +0 -0
package/docs/verified-kernels.md
CHANGED
|
@@ -1,184 +1,277 @@
|
|
|
1
1
|
# Verified policy kernels
|
|
2
2
|
|
|
3
|
-
Fabric
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
kernel rejects a
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
specification review. Independent predicates prevent a change to the kernel's
|
|
18
|
-
condition builder from silently changing its law.
|
|
3
|
+
Fabric runs JavaScript compiled from the registered
|
|
4
|
+
[gdp-wired](https://gdpwired.dev/) rules and functions in `proofs/*.ts`.
|
|
5
|
+
Production acceptance points and state transitions call those compiled
|
|
6
|
+
machines. No parallel reference implementation stands in for production.
|
|
7
|
+
TypeScript keeps host integration, source observation, optimized candidate
|
|
8
|
+
production, the string-interning codec and diagnostics. When a kernel rejects a
|
|
9
|
+
candidate, there is no handwritten fallback.
|
|
10
|
+
|
|
11
|
+
Each proof module states its laws apart from the rule body. A law restates the
|
|
12
|
+
requirement in its own terms (an `Open` predicate, a subset, a successor), and
|
|
13
|
+
never reads the implementation's flags. Review laws independently of
|
|
14
|
+
implementations. Never weaken a law, or delete a broken variant, to make an
|
|
15
|
+
implementation check. gdp-wired's kernel checks each proof tree. That check
|
|
16
|
+
does not replace independent review of the specification.
|
|
19
17
|
|
|
20
18
|
## Acceptance ledger
|
|
21
19
|
|
|
22
|
-
|
|
23
|
-
of small policy kernels, **not a proof of every subsystem invariant**.
|
|
20
|
+
The kernels cover these areas through production bridges. The proof boundary is
|
|
21
|
+
a set of small policy kernels, **not a proof of every subsystem invariant**.
|
|
24
22
|
|
|
25
|
-
| Area |
|
|
23
|
+
| Area | Proof module, shipped machine | Authoritative production path | Laws |
|
|
26
24
|
| --- | --- | --- | --- |
|
|
27
|
-
| Effect independence |
|
|
28
|
-
| Component lifecycle |
|
|
29
|
-
| Capability authority |
|
|
30
|
-
| Binding lifecycle |
|
|
31
|
-
| Compaction |
|
|
32
|
-
| Memory |
|
|
33
|
-
| Entropy normal forms |
|
|
34
|
-
| Storage CAS |
|
|
35
|
-
|
|
|
36
|
-
|
|
37
|
-
`
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
`
|
|
41
|
-
|
|
42
|
-
|
|
25
|
+
| Effect independence | `resources.ts`: `resourceScope`, `resourceConflict`, `resourceGroups` | `verified/resources.ts`, `components/effect-policy.ts`, `components/effect-scope.ts` | `resource_source_refinement`, `resource_source_valid`, `resource_source_complete`, `resource_refinement`, `resource_output_valid`, `resource_unknown`, `resource_precision`, `resource_recheck_idempotent`, `resource_pair_sound`, `resource_conflict_exact`, `resource_conflict_complete`, `resource_pair_complete`, `resource_groups_known`, `resource_groups_unshared`, `resource_groups_unknown_complete`, `resource_groups_shared_complete` |
|
|
26
|
+
| Component lifecycle | `policy.ts`: `transitionCurrent`, `cleanupState`, `consume` | `components/supervisor.ts`, `components/effect-scope.ts` | `transition_sound`, `transition_complete`, `cleanup_failure_quarantines`, `consume_once`, `consume_retires` |
|
|
27
|
+
| Capability authority | `authority.ts`: `capabilityAuthority` | `verified/authority.ts`, `core/action-registry.ts` | `authority_issue_exact`, `authority_use_safe`, `authority_use_complete`, `authority_derive_safe`, `authority_derive_complete`, `authority_child_use_safe`, `authority_released_cannot_derive`, `authority_released_not_live`, `authority_released_refused` |
|
|
28
|
+
| Binding lifecycle | `lifecycle.ts`: `bindingStep` | `verified/lifecycle.ts`, `core/provider-bindings.ts`, `core/provider-operations.ts` | 19 step laws: safety, `Open`-based completeness, exact counts, close reservation, quarantine |
|
|
29
|
+
| Compaction | `compaction.ts`: `compactionCut`; `policy.ts`: `summaryWithin`, `sampleWithin` | `compaction/hook.ts`, `compaction/bounds.ts` | `cut_sound`, `span_sound`, `refusal_final`, `header_once`, `cut_complete`, `summary_bounds`, `summary_complete`, `sample_accounting`, `sample_complete` |
|
|
30
|
+
| Memory | `policy.ts`: `lineageSelected`, `pointerCurrent`, `chunkAccepted`, `coverageComplete` | `memory/normalize.ts`, `memory/expand-service.ts`, `memory/digest.ts`, `memory/index.ts` | `active_lineage_only`, `explicit_all_lineages`, `pointer_sound`, `pointer_complete`, `chunk_sound`, `chunk_complete`, `coverage_sound`, `coverage_complete` |
|
|
31
|
+
| Entropy normal forms | `policy.ts`: `useNormalized` | `entropy/normal-form.ts` | `normalization_sound`, `normalization_complete`, `canonical_identity` |
|
|
32
|
+
| Storage CAS | `storage.ts`: `storageTransition` | `verified/storage.ts`, `mesh/store.ts` | `storage_safe` (three plan cases), `storage_put_complete`, `storage_delete_complete`, `storage_absent_delete_complete`, `storage_stale_refused`, `storage_put_overflow`, `storage_delete_overflow` |
|
|
33
|
+
| Provider dispatch | `provider.ts`: `providerTicket` | `verified/provider.ts`, `core/provider-operations.ts` | `provider_plan_safe`, `provider_ticket_consumed`, `provider_revocation_consumes`, `provider_revoked_refused`, `provider_canceled_refused`, `state_stale_refused`, `provider_admission_complete`, `provider_replay_refused` |
|
|
34
|
+
| State and Schema | `policy.ts`: `headReadable`, `certificateAccepted`, `consume` | `state/store.ts`, `schema/controller.ts` | `head_sound`, `pending_without_marker_hidden`, `committed_head_visible`, `pending_head_visible`, `certificate_sound`, `certificate_complete`, `consume_once`, `consume_retires` |
|
|
35
|
+
| External mesh grants | `grants.ts`: `meshGrantTake` | `verified/grants.ts`, `mesh/grants.ts` | Exact scoped admission, expiry/refusal precedence, exact decrement, refusal preservation and kind/topic forwarding |
|
|
36
|
+
| Speculation bookkeeping | `speculation.ts`: `speculationAdmission`, `speculationCheck`, `speculationAccounting`; `policy.ts`: `consume` | `verified/speculation.ts`, `speculation/store.ts` | Exact admission caps, checkpoint refusal precedence, one-use entry reservation, exact event counters and epoch successor |
|
|
37
|
+
| Actor name decision | `actor-name.ts`: `actorName` | `actors/name-policy.ts`, `actors/manager.ts`, `actors/directory.ts` | Active dominates stopped, stopped is refused absent active, neither is available; host snapshot only, not a reservation |
|
|
38
|
+
| Agent budget admission | `budget.ts`: `budgetAdmission` | `verified/budget.ts`, `agents/manager.ts` | Strict threshold safety/completeness, equality refusal, invalid observations refused |
|
|
39
|
+
| Effect diagnostics | `policy.ts`: `unknownConflict`, `knownConflict` | `components/effect-policy.ts` | `unknown_conflict_exact`, `unknown_conflict_symmetric`, `known_conflict_exact` |
|
|
40
|
+
|
|
41
|
+
`src/verified/generated/manifest.json` lists every claim by module. Laws about
|
|
42
|
+
a rule hold for every state the laws beside them allow. The lifecycle and
|
|
43
|
+
provider step laws carry no invariant, so they hold for every life record and
|
|
44
|
+
every ticket, reachable or not.
|
|
45
|
+
|
|
46
|
+
### How a proof run works
|
|
47
|
+
|
|
48
|
+
`bun run proof:generate` (and `proof:check`) does the following for every
|
|
49
|
+
registered module:
|
|
50
|
+
|
|
51
|
+
1. Proves each law, step law, k-step law and decision. A claim counts only when
|
|
52
|
+
the verdict is `proven && checked && !assumes`. `checked` is the kernel's
|
|
53
|
+
verdict on the proof tree that the untrusted prover produced. The generator
|
|
54
|
+
calls `proveSteps` with `{from: 'any'}`: the step laws must hold from every
|
|
55
|
+
state the laws allow, including host-supplied states unreachable from `init`.
|
|
56
|
+
Search still looks for breaking runs and state-independent lemmas. A verdict
|
|
57
|
+
with `assumes` depends on reachability and counts as unproven.
|
|
58
|
+
2. Proves each registered deliberately broken variant (such as "a span may
|
|
59
|
+
straddle the boundary", "stale writes pass", or "derivation checks one
|
|
60
|
+
grant"). Every variant must be refuted with a counterexample (a run or a
|
|
61
|
+
state), leaving at least one claim unproven. This replaces the old
|
|
62
|
+
negative-mutation script.
|
|
63
|
+
3. Replays every claim on concrete runs with `crossCheck` and
|
|
64
|
+
`crossCheckDecision`. The builders are untrusted, so this catches a builder
|
|
65
|
+
whose expression differs from what its callback computed.
|
|
66
|
+
4. Runs each statechart's `check()`. Every state must be reachable from the
|
|
67
|
+
start, no state other than a final one may lack a way out, and no event may
|
|
68
|
+
enable two equally specific transitions at once.
|
|
69
|
+
5. Compiles each shipped machine with gdp-wired's `compileJs`. Each runtime
|
|
70
|
+
helper a module's machines call is emitted once, and host access is refused.
|
|
71
|
+
`fork` (a state copy for branching searches) is left out, because Fabric
|
|
72
|
+
never branches; `init` and `step` ship unchanged.
|
|
73
|
+
The step writes `src/verified/generated/<module>.js`, its declarations, and
|
|
74
|
+
a SHA-256 receipt over the proof sources, the generator and the artifacts.
|
|
75
|
+
|
|
76
|
+
`proof:check` repeats the whole run and requires byte-for-byte equal output.
|
|
77
|
+
Independent whole kernels and mutation batches run in up to four isolated worker
|
|
78
|
+
threads (bounded by available CPU parallelism). Invariants, step laws and k-step
|
|
79
|
+
laws of one kernel stay together. Every worker result must name all expected
|
|
80
|
+
claims; a worker crash, premature exit, malformed response or deadline fails the
|
|
81
|
+
run and terminates its siblings. No proof verdict is reused from a cache.
|
|
82
|
+
Compilation and the receipt retain registry order regardless of completion order,
|
|
83
|
+
and the receipt hashes the worker and scheduler as well as the generator.
|
|
84
|
+
Use `bun run proof:check --jobs 1` for serial diagnostics; `--jobs 2` through
|
|
85
|
+
`--jobs 4` select an explicit cap. CI keeps proof reproduction as a required
|
|
86
|
+
pre-build gate, and combines the fixed ABI/diagnostic tests into one Vitest
|
|
87
|
+
invocation on each platform without dropping cases.
|
|
88
|
+
|
|
89
|
+
For a bounded before/after measurement on one same-sized Modal worker, use
|
|
90
|
+
`bun run benchmark:verification --proofs` (complete serial versus parallel proof
|
|
91
|
+
checks) or `bun run benchmark:verification --ci-tests` (the same fixed suites in
|
|
92
|
+
three launches versus one). Each comparison runs once, stops on failure and
|
|
93
|
+
checks that verification did not rewrite the receipt. These are targeted timings,
|
|
94
|
+
not a whole-suite speed claim or millisecond CI gate.
|
|
95
|
+
|
|
96
|
+
`proof:artifact` runs during every build. It compares only hashes and the
|
|
97
|
+
exact gdp-wired pin, and never loads the prover.
|
|
98
|
+
|
|
99
|
+
### Encoding
|
|
100
|
+
|
|
101
|
+
Kernels decide over naturals, flags, choices and sets of names. The bridges in
|
|
102
|
+
`src/verified/` are the trusted codecs:
|
|
103
|
+
|
|
104
|
+
- A Boolean is a 0/1 natural, and a constructor tag is its index (lifecycle
|
|
105
|
+
phases, events, commands, storage plans).
|
|
106
|
+
- A string the law compares by identity is an **interned name**. That covers
|
|
107
|
+
storage keys, values and identities, ticket keys, revisions and payload slots,
|
|
108
|
+
authority grant tuples, and resource names. Each bridge interns into a fresh
|
|
109
|
+
injective table: equal strings share an id, and distinct strings never do.
|
|
110
|
+
The kernel's laws prove that ids are forwarded and compared exactly. Turning
|
|
111
|
+
an id back into its string is the codec's job.
|
|
112
|
+
- A set of names is a map of 0/1 cells. Resource names reserve id 0 for the
|
|
113
|
+
empty name (also used for non-string values) and id 1 for the wildcard `*`.
|
|
114
|
+
The codec interns a proposal's names first, so they take ids 2..65.
|
|
115
|
+
`Len` carries each name's complete UTF-16 length.
|
|
116
|
+
- Numbers are naturals below `2^53`. The compiled runtime refuses anything else
|
|
117
|
+
with a `RangeError`, and each bridge fails closed before that point. It
|
|
118
|
+
refuses a request that fails its rule's assumption the same way. Storage
|
|
119
|
+
revisions are plain naturals, with no radix limbs.
|
|
120
|
+
|
|
121
|
+
### Complete-resource conflict preservation
|
|
122
|
+
|
|
123
|
+
The production path:
|
|
124
|
+
|
|
125
|
+
1. `src/verified/resources.ts` interns the **complete original** declaration
|
|
126
|
+
and runs the compiled `source` step over it. Encoding applies no
|
|
127
|
+
resource-count or name-length limit.
|
|
128
|
+
2. TypeScript proposes a small deduplicated list. This producer is untrusted for
|
|
129
|
+
policy correctness: it may omit, shorten, reorder, duplicate or add names.
|
|
130
|
+
3. The compiled `normalize` step independently checks that the scope is exact,
|
|
131
|
+
that the proposal is nonempty, and that every name in it is a valid identity
|
|
132
|
+
with an id inside the 64-name window and at most 256 code units. It also
|
|
133
|
+
checks that the proposal and the scope name the same set, **in both
|
|
134
|
+
directions**.
|
|
135
|
+
4. An accepted scope keeps the checked set. A refused proposal becomes the
|
|
136
|
+
unknown scope (`*`). An unknown source can never become exact
|
|
137
|
+
(`resource_refinement`).
|
|
138
|
+
5. Component lifetime and registry call policy compare complete effect
|
|
139
|
+
declarations through the compiled `resourceGroups` step, which decides
|
|
140
|
+
every pair of effects at once. TypeScript summary maps and flags provide diagnostics only.
|
|
141
|
+
They cannot turn a compiled conflict into an empty conflict list.
|
|
142
|
+
|
|
143
|
+
A proposer that silently drops resource 65 fails the coverage check. The laws
|
|
144
|
+
do not assume that TypeScript reported a correct count, overlap, validity or
|
|
145
|
+
unknown-scope flag. The 64-name bound counts **distinct** names: a proposal that
|
|
146
|
+
repeats one name 65 times is that one name. Precision assumes a valid, bounded,
|
|
147
|
+
set-equivalent proposal (`resource_precision`). A broken producer can still
|
|
148
|
+
cause a conservative false positive, but it cannot create false independence.
|
|
149
|
+
|
|
150
|
+
Rechecking an accepted normal form against itself keeps it
|
|
151
|
+
(`resource_recheck_idempotent`). This is a two-step law: a normalization is
|
|
152
|
+
accepted, then the next normalization's proposal is the current scope. Two spec
|
|
153
|
+
flags, `unchanged` and `short`, state that proposal apart from `fits`; the step
|
|
154
|
+
never reads them.
|
|
155
|
+
|
|
156
|
+
Conflict preservation is a composition of proven laws.
|
|
157
|
+
`resource_refinement` gives a normalized scope that is either unknown or names
|
|
158
|
+
exactly the original set. Unknown scopes of ordered effects conflict
|
|
159
|
+
(`resource_conflict_complete`). Two exact scopes conflict exactly when they
|
|
160
|
+
share a name: `resource_conflict_exact` and `resource_pair_complete` cover the
|
|
161
|
+
two directions. So normalization cannot erase a conflict.
|
|
162
|
+
|
|
163
|
+
Two components' effects are decided over every pair at once by
|
|
164
|
+
`resourceGroups`. Each side is a list of effect flags (`effect`, `ordered`,
|
|
165
|
+
`exact`) and a list of rows (`item`, `name`), one row per name in an exact
|
|
166
|
+
scope, where `item` is the effect's position in its list. A row reads its
|
|
167
|
+
effect at the position it names, so the request's own data pairs each name
|
|
168
|
+
with its effect; no loop does. The groups conflict unless no ordered
|
|
169
|
+
pair of effects has an unknown scope and no ordered pair of rows names one
|
|
170
|
+
resource. Four laws cover both directions: independent groups have neither kind
|
|
171
|
+
of pair (`resource_groups_known`, `resource_groups_unshared`), and a pair of
|
|
172
|
+
either kind makes them conflict (`resource_groups_unknown_complete`,
|
|
173
|
+
`resource_groups_shared_complete`). The broken variants that pair only the
|
|
174
|
+
diagonal, skip the last left effect, check only the first right effect, or
|
|
175
|
+
check one side against itself are each refused.
|
|
176
|
+
|
|
177
|
+
The codec stays trusted: it names both sides' rows from one shared table, and
|
|
178
|
+
writes each row's `item` as its effect's position. The rule assumes every row
|
|
179
|
+
names an effect of its own side. The codec meets that by construction, and the
|
|
180
|
+
compiled step throws a `RangeError` on a request that fails it, so such a
|
|
181
|
+
request never grants independence. The shared-name condition runs as a join on the name,
|
|
182
|
+
so its cost grows with the rows and their matches, not with every pair of rows.
|
|
183
|
+
|
|
184
|
+
### Multi-step claims
|
|
185
|
+
|
|
186
|
+
- `authority_child_use_safe` is a proven two-step law on the child's machine:
|
|
187
|
+
after a derive, a granted use names a grant of the parent the derive read.
|
|
188
|
+
- The compaction cut is checked as a fold: one header step, then one step per
|
|
189
|
+
call/result span. `cut_sound` is an invariant over every run. `span_sound`
|
|
190
|
+
shows that a span keeps the cut open only if the cut was open and the span is
|
|
191
|
+
allowed. Together they give the old `spans_sound` over any finite span list.
|
|
192
|
+
The production check feeds every span to the compiled machine.
|
|
43
193
|
|
|
44
194
|
### Proof-backed testing
|
|
45
195
|
|
|
46
|
-
|
|
196
|
+
gdp-wired checks universal policy properties. JavaScript tests check the codecs
|
|
47
197
|
and host boundaries with fixed, distinguishing examples. Cartesian products of
|
|
48
|
-
already-
|
|
198
|
+
already-proven conditions are unnecessary:
|
|
49
199
|
|
|
50
|
-
- Resource refinement and conflict
|
|
51
|
-
|
|
200
|
+
- Resource refinement and conflict use the universal laws, not a second
|
|
201
|
+
handwritten conflict interpreter and a source/proposal cross-product.
|
|
52
202
|
- Authority derivation, provider tickets, storage CAS and lifecycle decisions
|
|
53
|
-
|
|
54
|
-
- Certificate checks
|
|
55
|
-
precedence.
|
|
203
|
+
keep positive and negative wire examples with unequal fields and counters.
|
|
204
|
+
- Certificate checks keep each host diagnostic position and a multiple-failure
|
|
205
|
+
precedence case. Soundness and completeness laws replace the Boolean matrix.
|
|
56
206
|
|
|
57
|
-
Keep encoding, numeric-limit,
|
|
58
|
-
and packaged-runtime probes
|
|
59
|
-
boundaries, not
|
|
60
|
-
cleanup ordering, locking, corruption and migration regressions too.
|
|
207
|
+
Keep the encoding, interning, numeric-limit, mutation/aliasing,
|
|
208
|
+
artifact-provenance and packaged-runtime probes. The compiler and the codecs are
|
|
209
|
+
trusted boundaries, not proven implementations. Keep the real cancellation,
|
|
210
|
+
settlement, cleanup ordering, locking, corruption and migration regressions too.
|
|
61
211
|
|
|
62
212
|
Not every enumeration is redundant. The addressed-sampling sweep checks a
|
|
63
|
-
TypeScript producer and its omitted-entry identities
|
|
64
|
-
does not
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
###
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
The production path is:
|
|
103
|
-
|
|
104
|
-
1. `src/verified/resources.ts` snapshots and encodes the **complete original**
|
|
105
|
-
declaration. No resource-count or name-length limit is applied during encoding.
|
|
106
|
-
2. TypeScript proposes a small deduplicated list. This producer is untrusted for
|
|
107
|
-
policy correctness: it may omit, shorten, reorder, duplicate, or add names.
|
|
108
|
-
3. The compiled checker independently verifies nonempty metadata, the 64-resource
|
|
109
|
-
and 256-code-unit bounds, wildcard exclusion, and **both directions of set
|
|
110
|
-
inclusion** between the original and proposed lists.
|
|
111
|
-
4. An accepted exact scope retains the checked identities. Every rejected proposal
|
|
112
|
-
becomes the compiled `Unknown` scope; an unknown source cannot become exact.
|
|
113
|
-
5. Component lifetime and registry call policy compare complete effect declarations
|
|
114
|
-
through the compiled conflict/group operations. TypeScript summary maps and
|
|
115
|
-
flags provide diagnostics only. They cannot turn a compiled conflict into an
|
|
116
|
-
empty conflict list, even if the diagnostic data is inconsistent.
|
|
117
|
-
|
|
118
|
-
In particular, a proposer that silently drops resource 65 fails the full-list
|
|
119
|
-
coverage check. The theorem does not assume that TypeScript reported the correct
|
|
120
|
-
count, overlap, validity, or unknown-scope flags.
|
|
121
|
-
|
|
122
|
-
The independent specification uses equality witnesses, set membership, structural
|
|
123
|
-
list bounds, and shared-resource witnesses. It does not copy producer Boolean flags.
|
|
124
|
-
The 14 resource laws establish (the root claims name the actual exported entry
|
|
125
|
-
functions, so changing a forwarding wrapper also breaks the proof):
|
|
126
|
-
|
|
127
|
-
- Source interpretation preserves names or widens to unknown; exact sources are
|
|
128
|
-
nonempty and contain no empty/malformed or wildcard identity. Every well-formed
|
|
129
|
-
source remains exact before normalization, without a count or name-length cap.
|
|
130
|
-
- Exact normalization preserves resource membership in **both** directions.
|
|
131
|
-
- Every exact output meets the resource/name bounds and excludes wildcards.
|
|
132
|
-
- Conflict computation is sound and complete for named/unknown active scopes;
|
|
133
|
-
quiet effects cannot conflict, and both-commutative effects remain independent.
|
|
134
|
-
- Normalization cannot erase a conflict, for **any** proposed output.
|
|
135
|
-
- Valid bounded set-equivalent proposals are accepted, preventing a deny-all
|
|
136
|
-
implementation. Identity proposals are unchanged.
|
|
137
|
-
- Rechecking a result with the same proposal is idempotent.
|
|
138
|
-
- Group traversal is equivalent to checking every effect pair, not just the first.
|
|
139
|
-
|
|
140
|
-
Precision has an explicit premise: the candidate must be valid, bounded and
|
|
141
|
-
set-equivalent to its source. A broken producer can still cause conservative
|
|
142
|
-
false positives by supplying a bad proposal; it cannot create false independence.
|
|
143
|
-
The proof does not claim that an arbitrary producer finds a good proposal.
|
|
144
|
-
|
|
145
|
-
Identities are encoded as complete UTF-16 code-unit lists, including NUL and lone
|
|
146
|
-
surrogates. There are no lossy hashes, Unicode normalization, prefix clipping or
|
|
147
|
-
separately assigned integer IDs. Non-string values encode an invalid empty name;
|
|
148
|
-
missing/non-array resource collections encode missing scope. The decoder checks
|
|
149
|
-
the code-unit ABI. Tests cover every UTF-16 unit, adversarial proposals, the
|
|
150
|
-
64/65 and 256/257 boundaries, and 20,000-entry declarations.
|
|
151
|
-
|
|
152
|
-
The remaining trust boundary is faithful snapshot/ABI conversion and effect-kind/
|
|
153
|
-
ordering encoding, Bend's checker/compiler/Base, bundling and the JS runtime,
|
|
154
|
-
and truthful provider declarations. The TypeScript wire codec is tested, not
|
|
155
|
-
itself formally verified. Hash receipts and CI bind the entire transitive proof
|
|
156
|
-
source set to its generated artifact; finite tests are not substitutes for the
|
|
157
|
-
universal preservation proof.
|
|
213
|
+
TypeScript producer and its omitted-entry identities, which proven accounting
|
|
214
|
+
alone does not cover. Component scheduling and diagnostic projections keep
|
|
215
|
+
their host-level tests as well. Before pruning a decision matrix, identify which
|
|
216
|
+
policy assertions the laws cover, including positive completeness, and keep
|
|
217
|
+
focused tests for the remaining host observables. A safety law alone can still
|
|
218
|
+
permit an implementation that denies valid requests.
|
|
219
|
+
|
|
220
|
+
### Additional admission and bookkeeping boundaries
|
|
221
|
+
|
|
222
|
+
Mesh grant decisions run over the record read inside the existing mesh lock.
|
|
223
|
+
The codec interns complete topic/kind identities in one table. At a nonnegative
|
|
224
|
+
clock, legacy negative deadlines and use counts encode as zero, preserving
|
|
225
|
+
expiry/exhaustion diagnostics; refused records are never rewritten. Token hashing,
|
|
226
|
+
constant-time matching, input validation, event serialization, locking and
|
|
227
|
+
cross-file crash consistency are not proved. Exact decrement is a decision law,
|
|
228
|
+
not a proof of exactly-once persistence.
|
|
229
|
+
|
|
230
|
+
Speculation admission reads the retained-entry count after the host expiry
|
|
231
|
+
sweep. Its concurrency observation is the number of retained nonfailed entries,
|
|
232
|
+
not all unsettled external work. TTL equality remains usable. Before settlement,
|
|
233
|
+
expiry precedes epoch and freshness; afterward, abort/epoch precedes expiry,
|
|
234
|
+
freshness and provider failure. Freshness callbacks stay lazy at both checkpoints.
|
|
235
|
+
Stale, expired or freshness-refused entries are aborted at either checkpoint;
|
|
236
|
+
an otherwise-current provider failure does not receive an extra abort.
|
|
237
|
+
The compiled shared `consume` decision reserves an entry before awaiting it.
|
|
238
|
+
Accounting laws prove exact per-event increments, not that the host observes and
|
|
239
|
+
emits each event correctly. Key construction, actual settlement, abort delivery,
|
|
240
|
+
callback order, map removal and reset behavior remain integration-tested.
|
|
241
|
+
|
|
242
|
+
The budget is an admission threshold: completed child costs are observed before
|
|
243
|
+
the next spawn, so existing concurrent admission and overshoot semantics remain.
|
|
244
|
+
The codec maps complete binary64 observations to lexicographically ordered
|
|
245
|
+
unsigned high/low words, normalizing signed zero without rounding to decimal
|
|
246
|
+
units. The laws prove strict ordered admission, not the float codec or a hard
|
|
247
|
+
spending ceiling. Nonfinite spend and invalid present budgets now fail closed
|
|
248
|
+
(previously a `NaN` aggregate could pass the JavaScript comparison). No active
|
|
249
|
+
budget remains distinct from an invalid observation of an active budget. Ledger
|
|
250
|
+
parsing, aggregation, file I/O and recursive environment propagation remain tested.
|
|
158
251
|
|
|
159
252
|
### Producer/checker boundaries
|
|
160
253
|
|
|
161
254
|
The compactor's optimized TypeScript selector still proposes cuts. `computeCut`
|
|
162
255
|
checks every successful result, including the legacy and compact-all paths,
|
|
163
|
-
before it can become `firstKeptEntryId`. Checks use the live entries and
|
|
164
|
-
call/result span set.
|
|
165
|
-
construction; every batch must pass. Candidate-selection optimality is still
|
|
256
|
+
before it can become `firstKeptEntryId`. Checks use the live entries and the
|
|
257
|
+
complete call/result span set. Candidate-selection optimality is still
|
|
166
258
|
test-backed, not formally proved. Token guarantees concern the structural
|
|
167
259
|
estimator and supplied calibration, not an undocumented provider tokenizer.
|
|
168
260
|
|
|
169
261
|
Memory checks the actual outgoing page **after** envelope trimming. The bridge
|
|
170
262
|
compares each text chunk with the selected normalized source slice, checks its
|
|
171
|
-
range through
|
|
172
|
-
cursor. Source reads
|
|
173
|
-
Unicode slicing and page composition remain host
|
|
174
|
-
claim concerns normalized text, not byte-for-byte
|
|
175
|
-
or lineage change fails closed
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
263
|
+
range through the compiled kernel, and checks the proposed continuation against
|
|
264
|
+
the resulting cursor. Source reads and hashes, parent-graph reconstruction,
|
|
265
|
+
normalization, Unicode slicing and page composition remain host
|
|
266
|
+
responsibilities. The exact claim concerns normalized text, not byte-for-byte
|
|
267
|
+
JSONL reconstruction. A source or lineage change fails closed, and old pointers
|
|
268
|
+
are never reinterpreted.
|
|
269
|
+
|
|
270
|
+
Entropy's schema validator and plan derivation remain TypeScript. Their results
|
|
271
|
+
feed the compiled acceptance decision, and the original object is returned on
|
|
272
|
+
refusal. Validated output plus the canonical-identity gate gives the operational
|
|
273
|
+
idempotence argument, under the validator assumption. This is not a proof of
|
|
274
|
+
TypeBox or of JavaScript numeric-string conversion.
|
|
182
275
|
|
|
183
276
|
Schema's eight evidence facts are a fixed-length tuple at the adapter boundary.
|
|
184
277
|
The compiled conjunction checks all eight before mutation. The consumed status
|
|
@@ -189,95 +282,91 @@ postcondition commands are not formally verified.
|
|
|
189
282
|
|
|
190
283
|
### Lifecycle limits
|
|
191
284
|
|
|
192
|
-
Provider bindings
|
|
193
|
-
in-flight work, retirement, revocation and close reservation.
|
|
285
|
+
Provider bindings run the compiled lifecycle reducer for admission, holds,
|
|
286
|
+
in-flight work, retirement, revocation and close reservation. The reducer is a
|
|
287
|
+
gdp-wired statechart: a table of transitions over the six phases, where Closed
|
|
288
|
+
and Failed are final and counter updates stay in their phase. Its `command` is
|
|
289
|
+
an output that reads Denied whenever no transition fires. The chart compiles to
|
|
290
|
+
the rule that ships, and its check proves every phase reachable, none stuck
|
|
291
|
+
and no event ambiguous. Independent laws
|
|
194
292
|
prove exact count updates and prevent close while ownership remains. The host
|
|
195
293
|
interprets commands, observes actual promise settlement and releases private
|
|
196
294
|
one-use leases. Those observations and interpreter effects remain trusted.
|
|
197
295
|
|
|
198
|
-
The component supervisor
|
|
199
|
-
Its epoch allocation, publication sequencing, inverse-stack execution and
|
|
200
|
-
remain TypeScript protocols checked by integration tests. Neither
|
|
201
|
-
that provider promises account for every subprocess or remote
|
|
202
|
-
Arbitrary inverses, ambient effects, liveness, schedule confluence
|
|
203
|
-
author-defined observational equivalence are not claimed
|
|
296
|
+
The component supervisor uses the compiled eligibility and cleanup predicates.
|
|
297
|
+
Its epoch allocation, publication sequencing, inverse-stack execution and
|
|
298
|
+
fairness remain TypeScript protocols checked by integration tests. Neither
|
|
299
|
+
reducer proves that provider promises account for every subprocess or remote
|
|
300
|
+
effect. Arbitrary inverses, ambient effects, liveness, schedule confluence and
|
|
301
|
+
author-defined observational equivalence are not claimed.
|
|
204
302
|
|
|
205
303
|
## Reproducible bridge
|
|
206
304
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
JS and ABI; native Bend currently requires Linux, macOS, or WSL.
|
|
305
|
+
`gdp-wired` is an exact devDependency. Installed Fabric needs neither the prover
|
|
306
|
+
nor its compiler: `dist/verified/generated/` holds plain JavaScript, and the
|
|
307
|
+
build refuses a bundle that loads `gdp-wired`. Proof runs need Bun.
|
|
211
308
|
|
|
212
309
|
```sh
|
|
213
|
-
|
|
214
|
-
bun run proof:
|
|
215
|
-
bun run proof:
|
|
216
|
-
bun run proof:artifact # compiler-free source/bridge/artifact freshness check
|
|
310
|
+
bun run proof:generate # prove, refuse broken variants, cross-check, compile, write the receipt
|
|
311
|
+
bun run proof:check # all of the above, then require byte-for-byte equal artifacts
|
|
312
|
+
bun run proof:artifact # prover-free source/generator/artifact freshness check
|
|
217
313
|
bunx vitest run tests/verified-kernels.test.ts tests/verified-resources.test.ts tests/verified-providers.test.ts tests/verified-artifact.test.ts
|
|
218
314
|
bunx vitest run tests/verified-authority.test.ts tests/verified-lifecycle.test.ts tests/verified-storage.test.ts
|
|
315
|
+
bunx vitest run tests/verified-grants.test.ts tests/verified-speculation.test.ts tests/verified-budget.test.ts
|
|
219
316
|
bun run typecheck
|
|
220
317
|
bun run build
|
|
221
|
-
bun run proof:dist # probe the
|
|
318
|
+
bun run proof:dist # probe the bundled registry, compactor and kernels
|
|
222
319
|
```
|
|
223
320
|
|
|
224
|
-
`BEND_BIN` may explicitly select a trusted compiler executable. Generation sets
|
|
225
|
-
`BEND_NO_TELEMETRY=1`. It never installs or updates Bend automatically.
|
|
226
|
-
|
|
227
|
-
Bend's `-o *.mjs` backend emits an ES module whose default export table wraps
|
|
228
|
-
every definition in Bend's own trampoline and host `Nat` marshalling. Since Bend
|
|
229
|
-
2.0.37 a `Nat` crosses as a plain JS number, in and out; a `BigInt` argument is refused.
|
|
230
|
-
The build bridge:
|
|
231
|
-
|
|
232
|
-
1. Checks the entire root proof file and its imported laws.
|
|
233
|
-
2. Refuses unsafe declarations, holes, foreign effects, remote imports, and
|
|
234
|
-
untracked local proof dependencies.
|
|
235
|
-
3. Compiles the same kernel source that those laws import.
|
|
236
|
-
4. Parses the emitted module, requires its export table as the only footer and
|
|
237
|
-
no top-level invocation statements.
|
|
238
|
-
5. Keeps only the ABI entries of that table, checking names and arities. Bend
|
|
239
|
-
tags constructors with their declaring module (`lifecycle.Life`); the bridge
|
|
240
|
-
maps them to the ABI's bare tags at the boundary and refuses generation when
|
|
241
|
-
a bare tag would be ambiguous within a kernel.
|
|
242
|
-
6. Tree-shakes unused runtime code and rejects host IO/imports before compacting
|
|
243
|
-
compiler-local identifiers and syntax. Public ABI export names stay stable.
|
|
244
|
-
7. Writes generated JS, ABI declarations, and a SHA-256 receipt over the proof
|
|
245
|
-
sources, ABI, bridge, and generated artifacts.
|
|
246
|
-
|
|
247
|
-
No algorithm is translated into handwritten JS. The small bridge, ABI
|
|
248
|
-
conversions, Bend checker/compiler/Base, esbuild, and JS engine are part of the
|
|
249
|
-
trusted computing base. Numeric adapters reject NaN, infinities, fractions and
|
|
250
|
-
unsafe integers. Comparison-only primitives accept any JS-safe integer.
|
|
251
|
-
Arithmetic guards respect the pinned backend's immediate `Nat` bound of
|
|
252
|
-
`2^48 - 1`; chunk/sample sums and lifecycle increments fail closed before overflow.
|
|
253
|
-
Storage revisions use canonical radix-`2^32` limbs to cover the full JS-safe integer
|
|
254
|
-
range. Booleans and tagged records/lists follow the emitted
|
|
255
|
-
ABI. Tests exercise those representations on both CI platforms.
|
|
256
|
-
|
|
257
321
|
Every build checks artifact freshness before bundling. Linux CI and `prepack`
|
|
258
|
-
|
|
259
|
-
substitute for proving the code. The
|
|
260
|
-
copied into `dist/verified/generated/`.
|
|
261
|
-
|
|
262
|
-
record, **not a standalone independently verified proof certificate**.
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
322
|
+
re-prove and reproduce the artifacts byte for byte, so editing the receipt is
|
|
323
|
+
no substitute for proving the code. The generated JavaScript, declarations and
|
|
324
|
+
receipt are copied into `dist/verified/generated/`. The proof modules and the
|
|
325
|
+
generator ship in the package for inspection. The receipt is a freshness
|
|
326
|
+
record, **not a standalone, independently verified proof certificate**.
|
|
327
|
+
Every gdp-wired proof can also be exported to Lean (`gdp-wired/lean`) for an
|
|
328
|
+
independent check. That export is not part of the build.
|
|
329
|
+
|
|
330
|
+
The trusted computing base is gdp-wired's kernel (`kernel/kernel.ts`,
|
|
331
|
+
`core/check.ts`), its machine compiler and runtime helpers, the small
|
|
332
|
+
generator, the bridges' codecs, and the JavaScript engine. The prover, the
|
|
333
|
+
builders and the searches are untrusted: the kernel rejects a wrong proof tree,
|
|
334
|
+
and `crossCheck` holds the builders to the interpreter.
|
|
335
|
+
|
|
336
|
+
## What changed from Bend
|
|
337
|
+
|
|
338
|
+
The kernels used to be Bend 2.0.37 programs with hand-written proofs. Moving to
|
|
339
|
+
gdp-wired changed these claims:
|
|
340
|
+
|
|
341
|
+
- Names were complete UTF-16 code-unit lists compared by structural recursion.
|
|
342
|
+
They are now interned ids. Name equality, membership and both-direction
|
|
343
|
+
coverage are proven over sets of ids, and the codec's injectivity is trusted.
|
|
344
|
+
A resource name's length is the codec's `string.length`.
|
|
345
|
+
- The resource bound counted list entries. It now counts distinct names.
|
|
346
|
+
- Group conflict over every pair of effects is a proven rule, as described
|
|
347
|
+
above. Recheck idempotence and the authority child-use theorem are proven
|
|
348
|
+
two-step laws.
|
|
349
|
+
- Several laws no longer apply. `all_sound` and `all_complete` covered the old
|
|
350
|
+
list conjunction; every predicate is now a direct conjunction with its own
|
|
351
|
+
soundness and completeness laws. `footprint_*` and `close_*` covered
|
|
352
|
+
functions Fabric no longer exports. `state_read_*` covered a read plan
|
|
353
|
+
nothing executed. Active-only completeness examples (`inspect_complete`,
|
|
354
|
+
`begin_complete`, `retain_complete`) are covered by the `Open`-based
|
|
355
|
+
completeness laws.
|
|
356
|
+
- Revisions are naturals below `2^53`, not radix-`2^32` limbs. The successor
|
|
357
|
+
laws are `+1`.
|
|
269
358
|
|
|
270
359
|
## What remains outside the claims
|
|
271
360
|
|
|
272
361
|
- Semantic remembering, arbitrary prose retention, retrieval ranking quality,
|
|
273
362
|
secret detection, and recovery after source deletion.
|
|
274
|
-
- Full correctness of parsers, schemas, hashing, source observations,
|
|
275
|
-
reconstruction, or filesystem transactions.
|
|
363
|
+
- Full correctness of parsers, schemas, hashing, interning, source observations,
|
|
364
|
+
graph reconstruction, or filesystem transactions.
|
|
276
365
|
- Full lifecycle confluence, eventual settling, or rollback correctness for
|
|
277
366
|
arbitrary provider code.
|
|
278
367
|
- Validation of user intent, success of host operations, and security against a
|
|
279
368
|
malicious trusted host or provider.
|
|
280
369
|
|
|
281
370
|
These boundaries are deliberate. Executed kernels and mandatory result checks
|
|
282
|
-
remove the parallel-model gap for the specified decisions
|
|
283
|
-
unverified host observations or adapters into
|
|
371
|
+
remove the parallel-model gap for the specified decisions. They do not turn
|
|
372
|
+
unverified host observations or adapters into proven facts.
|