@e4779/pi-fabric 0.117.2-fork.30 → 0.131.0-fork.32
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 +12 -5
- 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/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/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-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 +36 -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-3FJUP3GV.js → chunk-36XQFTEN.js} +2 -2
- 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-3PKZSIRA.js +1312 -0
- package/dist/chunks/chunk-3PKZSIRA.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-K7J2ABAZ.js → chunk-4KX6BIPL.js} +91 -31
- package/dist/chunks/chunk-4KX6BIPL.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-GIK2WNAK.js → chunk-5BOTHX47.js} +109 -20
- package/dist/chunks/chunk-5BOTHX47.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-GO32KSEZ.js → chunk-7CIES6X2.js} +84 -9
- package/dist/chunks/chunk-7CIES6X2.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-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-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-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-MLLYR3Y6.js → chunk-HSEZPCL5.js} +19 -78
- package/dist/chunks/chunk-HSEZPCL5.js.map +7 -0
- package/dist/chunks/{chunk-LNASO4VT.js → chunk-IOGDTIGN.js} +44 -19
- package/dist/chunks/chunk-IOGDTIGN.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-SPCJXN4K.js → chunk-LKYLD5SN.js} +298 -65
- package/dist/chunks/chunk-LKYLD5SN.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-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-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-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-UD7LFV43.js +28 -0
- package/dist/chunks/chunk-UD7LFV43.js.map +7 -0
- package/dist/chunks/{chunk-ASSLHWZS.js → chunk-UFMYN5TA.js} +2 -2
- 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-VNWQIGQL.js} +1820 -649
- package/dist/chunks/chunk-VNWQIGQL.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-XCEEQ5AB.js → chunk-WGMCNCP6.js} +1567 -1564
- package/dist/chunks/chunk-WGMCNCP6.js.map +7 -0
- package/dist/chunks/chunk-WKFRGICG.js +101 -0
- package/dist/chunks/chunk-WKFRGICG.js.map +7 -0
- package/dist/chunks/{chunk-3UGN25XS.js → chunk-WWTGWGH7.js} +80 -1662
- package/dist/chunks/chunk-WWTGWGH7.js.map +7 -0
- package/dist/chunks/{chunk-5UBRGTVN.js → chunk-X7QETPBC.js} +31 -15
- package/dist/chunks/chunk-X7QETPBC.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-EKODKR6Y.js → chunk-YHFWMAQ5.js} +1 -24
- package/dist/chunks/chunk-YHFWMAQ5.js.map +7 -0
- package/dist/chunks/{chunk-C7Z6F3SO.js → chunk-ZFWICFNJ.js} +27 -20
- package/dist/chunks/{chunk-C7Z6F3SO.js.map → chunk-ZFWICFNJ.js.map} +2 -2
- 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 +39 -2
- 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/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 +10 -8
- 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 +2125 -786
- 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/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/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.d.ts.map +1 -1
- package/dist/ui/dashboard.js +17 -13
- package/dist/ui/dashboard.js.map +2 -2
- package/dist/ui/fabric-render.d.ts +6 -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 +1 -0
- package/dist/ui/settings-values.d.ts.map +1 -1
- package/dist/ui/settings.js +59 -18
- 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 +34 -16
- 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 +164 -17
- package/docs/architecture.md +5 -1
- package/docs/audit-trace.md +2 -1
- package/docs/background-tasks.md +102 -16
- package/docs/codemode-parity.md +2 -2
- package/docs/compaction.md +21 -5
- package/docs/components.md +1 -1
- package/docs/configuration.md +111 -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 +20 -17
- package/docs/jev.md +1 -1
- 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 +92 -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 +109 -22
- package/skillsets/typescript/fabric-exec/SKILL.md +7 -7
- package/skillsets/typescript/fabric-exec/references/agents.md +12 -3
- 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-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-3FJUP3GV.js.map → chunk-36XQFTEN.js.map} +0 -0
- /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-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-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-ASSLHWZS.js.map → chunk-UFMYN5TA.js.map} +0 -0
- /package/dist/chunks/{chunk-LEU5CDSL.js.map → chunk-XFOSUGLU.js.map} +0 -0
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import Base
|
|
2
|
-
import ./lifecycle-kernel.bend as K
|
|
3
|
-
import ./lifecycle.bend as L
|
|
4
|
-
import ./lifecycle-spec.bend as S
|
|
5
|
-
import ./resource-proof.bend as P
|
|
6
|
-
import ./state-proof.bend as SP
|
|
7
|
-
|
|
8
|
-
def openCases(+revoked: Bool, +cleanup: Bool, p: {cleanup == True{} : Bool} | {Bool.not(revoked) == True{} : Bool}) -> {cleanup == True{} : Bool} | {revoked == False{} : Bool}:
|
|
9
|
-
match p:
|
|
10
|
-
case Inl{yes}:
|
|
11
|
-
Inl{yes}
|
|
12
|
-
case Inr{no}:
|
|
13
|
-
Inr{SP.notTrue(revoked, no)}
|
|
14
|
-
|
|
15
|
-
def openSound(+phase: L.Phase, +revoked: Bool, +cleanup: Bool, p: {L.open(phase, revoked, cleanup) == True{} : Bool}) -> S.Open(phase, revoked, cleanup):
|
|
16
|
-
match phase:
|
|
17
|
-
case L.Closing{}:
|
|
18
|
-
P.falseTrue(p)
|
|
19
|
-
case L.Closed{}:
|
|
20
|
-
P.falseTrue(p)
|
|
21
|
-
case L.Failed{}:
|
|
22
|
-
p
|
|
23
|
-
case L.Staged{}:
|
|
24
|
-
openCases(revoked, cleanup, P.orCases(cleanup, Bool.not(revoked), p))
|
|
25
|
-
case L.Active{}:
|
|
26
|
-
openCases(revoked, cleanup, P.orCases(cleanup, Bool.not(revoked), p))
|
|
27
|
-
case L.Retiring{}:
|
|
28
|
-
openCases(revoked, cleanup, P.orCases(cleanup, Bool.not(revoked), p))
|
|
29
|
-
|
|
30
|
-
def notRevoked(+revoked: Bool, p: {revoked == False{} : Bool}) -> {Bool.not(revoked) == True{} : Bool}:
|
|
31
|
-
%Equal.sym(Bool, revoked, False{}, p) : {Bool.not(_) == True{} : Bool}
|
|
32
|
-
{==}
|
|
33
|
-
|
|
34
|
-
def openEvidence(+revoked: Bool, +cleanup: Bool, p: {cleanup == True{} : Bool} | {revoked == False{} : Bool}) -> {cleanup || Bool.not(revoked) == True{} : Bool}:
|
|
35
|
-
match p:
|
|
36
|
-
case Inl{yes}:
|
|
37
|
-
P.orLeft(cleanup, Bool.not(revoked), yes)
|
|
38
|
-
case Inr{no}:
|
|
39
|
-
P.orRight(cleanup, Bool.not(revoked), notRevoked(revoked, no))
|
|
40
|
-
|
|
41
|
-
def openComplete(+phase: L.Phase, +revoked: Bool, +cleanup: Bool, p: S.Open(phase, revoked, cleanup)) -> {L.open(phase, revoked, cleanup) == True{} : Bool}:
|
|
42
|
-
match phase:
|
|
43
|
-
case L.Closing{}:
|
|
44
|
-
Empty.absurd({False{} == True{} : Bool}, p)
|
|
45
|
-
case L.Closed{}:
|
|
46
|
-
Empty.absurd({False{} == True{} : Bool}, p)
|
|
47
|
-
case L.Failed{}:
|
|
48
|
-
p
|
|
49
|
-
case L.Staged{}:
|
|
50
|
-
openEvidence(revoked, cleanup, p)
|
|
51
|
-
case L.Active{}:
|
|
52
|
-
openEvidence(revoked, cleanup, p)
|
|
53
|
-
case L.Retiring{}:
|
|
54
|
-
openEvidence(revoked, cleanup, p)
|
|
55
|
-
|
|
56
|
-
def beginSelected(+phase: L.Phase, +owner: Bool, +holds: Nat, +calls: Nat, +revoked: Bool, +cleanup: Bool, +good: Bool, p: {L.open(phase, revoked, cleanup) == good : Bool}) -> S.BeginSafe(L.Life{phase, owner, holds, calls, revoked}, cleanup, L.selectBegin(good, L.Life{phase, owner, holds, calls, revoked})):
|
|
57
|
-
match good:
|
|
58
|
-
case False{}:
|
|
59
|
-
{==}
|
|
60
|
-
case True{}:
|
|
61
|
-
(openSound(phase, revoked, cleanup, p), {==})
|
|
62
|
-
|
|
63
|
-
def retainSelected(+phase: L.Phase, +owner: Bool, +holds: Nat, +calls: Nat, +revoked: Bool, +cleanup: Bool, +good: Bool, p: {L.open(phase, revoked, cleanup) == good : Bool}) -> S.RetainSafe(L.Life{phase, owner, holds, calls, revoked}, cleanup, L.selectRetain(good, L.Life{phase, owner, holds, calls, revoked})):
|
|
64
|
-
match good:
|
|
65
|
-
case False{}:
|
|
66
|
-
{==}
|
|
67
|
-
case True{}:
|
|
68
|
-
(openSound(phase, revoked, cleanup, p), {==})
|
|
69
|
-
|
|
70
|
-
def inspectSelected(+phase: L.Phase, +owner: Bool, +holds: Nat, +calls: Nat, +revoked: Bool, +good: Bool, p: {L.open(phase, revoked, False{}) == good : Bool}) -> S.InspectSafe(L.Life{phase, owner, holds, calls, revoked}, L.selectInspect(good, L.Life{phase, owner, holds, calls, revoked})):
|
|
71
|
-
match good:
|
|
72
|
-
case False{}:
|
|
73
|
-
{==}
|
|
74
|
-
case True{}:
|
|
75
|
-
(openSound(phase, revoked, False{}, p), {==})
|
|
76
|
-
|
|
77
|
-
def S.inspect_safe(life):
|
|
78
|
-
match life:
|
|
79
|
-
case L.Life{phase, owner, holds, calls, revoked}:
|
|
80
|
-
inspectSelected(phase, owner, holds, calls, revoked, L.open(phase, revoked, False{}), {==})
|
|
81
|
-
|
|
82
|
-
def S.inspect_complete(owner, holds, calls):
|
|
83
|
-
{==}
|
|
84
|
-
|
|
85
|
-
def S.begin_safe(life, cleanup):
|
|
86
|
-
match life:
|
|
87
|
-
case L.Life{phase, owner, holds, calls, revoked}:
|
|
88
|
-
beginSelected(phase, owner, holds, calls, revoked, cleanup, L.open(phase, revoked, cleanup), {==})
|
|
89
|
-
|
|
90
|
-
def S.retain_safe(life, cleanup):
|
|
91
|
-
match life:
|
|
92
|
-
case L.Life{phase, owner, holds, calls, revoked}:
|
|
93
|
-
retainSelected(phase, owner, holds, calls, revoked, cleanup, L.open(phase, revoked, cleanup), {==})
|
|
94
|
-
|
|
95
|
-
def S.begin_open_complete(phase, owner, holds, calls, revoked, cleanup, p):
|
|
96
|
-
%Equal.sym(Bool, L.open(phase, revoked, cleanup), True{}, openComplete(phase, revoked, cleanup, p)) : {L.selectBegin(_, L.Life{phase, owner, holds, calls, revoked}) == L.Outcome{L.Life{phase, owner, holds, 1n+calls, revoked}, L.Granted{}} : L.Outcome}
|
|
97
|
-
{==}
|
|
98
|
-
|
|
99
|
-
def S.retain_open_complete(phase, owner, holds, calls, revoked, cleanup, p):
|
|
100
|
-
%Equal.sym(Bool, L.open(phase, revoked, cleanup), True{}, openComplete(phase, revoked, cleanup, p)) : {L.selectRetain(_, L.Life{phase, owner, holds, calls, revoked}) == L.Outcome{L.Life{phase, owner, 1n+holds, calls, revoked}, L.Granted{}} : L.Outcome}
|
|
101
|
-
{==}
|
|
102
|
-
|
|
103
|
-
def S.inspect_open_complete(phase, owner, holds, calls, revoked, p):
|
|
104
|
-
%Equal.sym(Bool, L.open(phase, revoked, False{}), True{}, openComplete(phase, revoked, False{}, p)) : {L.selectInspect(_, L.Life{phase, owner, holds, calls, revoked}) == L.Outcome{L.Life{phase, owner, holds, calls, revoked}, L.Granted{}} : L.Outcome}
|
|
105
|
-
{==}
|
|
106
|
-
|
|
107
|
-
def S.close_safe(life):
|
|
108
|
-
match life:
|
|
109
|
-
case L.Life{L.Retiring{}, False{}, 0n, 0n, revoked}:
|
|
110
|
-
({==}, ({==}, ({==}, ({==}, {==}))))
|
|
111
|
-
case L.Life{L.Staged{}, owner, holds, calls, revoked}:
|
|
112
|
-
{==}
|
|
113
|
-
case L.Life{L.Active{}, owner, holds, calls, revoked}:
|
|
114
|
-
{==}
|
|
115
|
-
case L.Life{L.Retiring{}, True{}, holds, calls, revoked}:
|
|
116
|
-
{==}
|
|
117
|
-
case L.Life{L.Retiring{}, False{}, 1n+holds, calls, revoked}:
|
|
118
|
-
{==}
|
|
119
|
-
case L.Life{L.Retiring{}, False{}, 0n, 1n+calls, revoked}:
|
|
120
|
-
{==}
|
|
121
|
-
case L.Life{L.Closing{}, owner, holds, calls, revoked}:
|
|
122
|
-
{==}
|
|
123
|
-
case L.Life{L.Closed{}, owner, holds, calls, revoked}:
|
|
124
|
-
{==}
|
|
125
|
-
case L.Life{L.Failed{}, owner, holds, calls, revoked}:
|
|
126
|
-
{==}
|
|
127
|
-
|
|
128
|
-
def S.close_complete(revoked):
|
|
129
|
-
{==}
|
|
130
|
-
|
|
131
|
-
def S.begin_complete(owner, holds, calls):
|
|
132
|
-
{==}
|
|
133
|
-
|
|
134
|
-
def S.release_exact(phase, owner, holds, calls, revoked):
|
|
135
|
-
{==}
|
|
136
|
-
|
|
137
|
-
def S.end_exact(phase, owner, holds, calls, revoked):
|
|
138
|
-
{==}
|
|
139
|
-
|
|
140
|
-
def S.revoke_preserves_work(phase, owner, holds, calls, revoked):
|
|
141
|
-
match phase:
|
|
142
|
-
case L.Staged{}:
|
|
143
|
-
{==}
|
|
144
|
-
case L.Active{}:
|
|
145
|
-
{==}
|
|
146
|
-
case L.Retiring{}:
|
|
147
|
-
{==}
|
|
148
|
-
case L.Closing{}:
|
|
149
|
-
{==}
|
|
150
|
-
case L.Closed{}:
|
|
151
|
-
{==}
|
|
152
|
-
case L.Failed{}:
|
|
153
|
-
{==}
|
|
154
|
-
|
|
155
|
-
def S.drop_owner_preserves_work(phase, owner, holds, calls, revoked):
|
|
156
|
-
{==}
|
|
157
|
-
|
|
158
|
-
def S.retire_preserves_work(phase, owner, holds, calls, revoked):
|
|
159
|
-
match phase:
|
|
160
|
-
case L.Staged{}:
|
|
161
|
-
{==}
|
|
162
|
-
case L.Active{}:
|
|
163
|
-
{==}
|
|
164
|
-
case L.Retiring{}:
|
|
165
|
-
{==}
|
|
166
|
-
case L.Closing{}:
|
|
167
|
-
{==}
|
|
168
|
-
case L.Closed{}:
|
|
169
|
-
{==}
|
|
170
|
-
case L.Failed{}:
|
|
171
|
-
{==}
|
|
172
|
-
|
|
173
|
-
def S.retain_complete(owner, holds, calls):
|
|
174
|
-
{==}
|
|
175
|
-
|
|
176
|
-
def S.release_underflow_refused(phase, owner, calls, revoked):
|
|
177
|
-
{==}
|
|
178
|
-
|
|
179
|
-
def S.end_underflow_refused(phase, owner, holds, revoked):
|
|
180
|
-
{==}
|
|
181
|
-
|
|
182
|
-
def S.quarantine_preserves_work(owner, holds, calls, revoked):
|
|
183
|
-
{==}
|
|
184
|
-
|
|
185
|
-
def S.cleanup_after_revocation(owner, holds, calls):
|
|
186
|
-
{==}
|
|
187
|
-
|
|
188
|
-
def S.activation_exact(phase, owner, holds, calls, revoked):
|
|
189
|
-
match phase:
|
|
190
|
-
case L.Staged{}:
|
|
191
|
-
{==}
|
|
192
|
-
case L.Active{}:
|
|
193
|
-
{==}
|
|
194
|
-
case L.Retiring{}:
|
|
195
|
-
{==}
|
|
196
|
-
case L.Closing{}:
|
|
197
|
-
{==}
|
|
198
|
-
case L.Closed{}:
|
|
199
|
-
{==}
|
|
200
|
-
case L.Failed{}:
|
|
201
|
-
{==}
|
|
202
|
-
|
|
203
|
-
def S.completion_exact(phase, owner, holds, calls, revoked):
|
|
204
|
-
match phase:
|
|
205
|
-
case L.Staged{}:
|
|
206
|
-
{==}
|
|
207
|
-
case L.Active{}:
|
|
208
|
-
{==}
|
|
209
|
-
case L.Retiring{}:
|
|
210
|
-
{==}
|
|
211
|
-
case L.Closing{}:
|
|
212
|
-
{==}
|
|
213
|
-
case L.Closed{}:
|
|
214
|
-
{==}
|
|
215
|
-
case L.Failed{}:
|
|
216
|
-
{==}
|
|
217
|
-
|
|
218
|
-
def S.failure_exact(phase, owner, holds, calls, revoked):
|
|
219
|
-
match phase:
|
|
220
|
-
case L.Staged{}:
|
|
221
|
-
{==}
|
|
222
|
-
case L.Active{}:
|
|
223
|
-
{==}
|
|
224
|
-
case L.Retiring{}:
|
|
225
|
-
{==}
|
|
226
|
-
case L.Closing{}:
|
|
227
|
-
{==}
|
|
228
|
-
case L.Closed{}:
|
|
229
|
-
{==}
|
|
230
|
-
case L.Failed{}:
|
|
231
|
-
{==}
|
|
232
|
-
|
|
233
|
-
def S.closing_refuses_work(owner, holds, calls, revoked, cleanup):
|
|
234
|
-
{==}
|
|
235
|
-
|
|
236
|
-
def S.revoked_refuses_work(phase, owner, holds, calls):
|
|
237
|
-
match phase:
|
|
238
|
-
case L.Staged{}:
|
|
239
|
-
{==}
|
|
240
|
-
case L.Active{}:
|
|
241
|
-
{==}
|
|
242
|
-
case L.Retiring{}:
|
|
243
|
-
{==}
|
|
244
|
-
case L.Closing{}:
|
|
245
|
-
{==}
|
|
246
|
-
case L.Closed{}:
|
|
247
|
-
{==}
|
|
248
|
-
case L.Failed{}:
|
|
249
|
-
{==}
|
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import Base
|
|
2
|
-
import ./lifecycle-kernel.bend as K
|
|
3
|
-
import ./lifecycle.bend as L
|
|
4
|
-
|
|
5
|
-
# Independent obligations over input and output records. Host promises, opaque
|
|
6
|
-
# identities and delivery of completion events are not encoded as proved facts.
|
|
7
|
-
def Open(phase: L.Phase, revoked: Bool, cleanup: Bool) -> Type:
|
|
8
|
-
match phase:
|
|
9
|
-
case L.Closing{}:
|
|
10
|
-
Empty
|
|
11
|
-
case L.Closed{}:
|
|
12
|
-
Empty
|
|
13
|
-
case L.Failed{}:
|
|
14
|
-
{cleanup == True{} : Bool}
|
|
15
|
-
case _:
|
|
16
|
-
{cleanup == True{} : Bool} | {revoked == False{} : Bool}
|
|
17
|
-
|
|
18
|
-
def BeginSafe(+before: L.Life, cleanup: Bool, outcome: L.Outcome) -> Type:
|
|
19
|
-
match before outcome:
|
|
20
|
-
case L.Life{phase, owner, holds, calls, revoked} L.Outcome{after, L.Granted{}}:
|
|
21
|
-
Open(phase, revoked, cleanup) & {after == L.Life{phase, owner, holds, 1n+calls, revoked} : L.Life}
|
|
22
|
-
case _ L.Outcome{after, L.Denied{}}:
|
|
23
|
-
{after == before : L.Life}
|
|
24
|
-
case _ L.Outcome{after, L.StartClose{}}:
|
|
25
|
-
Empty
|
|
26
|
-
|
|
27
|
-
def RetainSafe(+before: L.Life, cleanup: Bool, outcome: L.Outcome) -> Type:
|
|
28
|
-
match before outcome:
|
|
29
|
-
case L.Life{phase, owner, holds, calls, revoked} L.Outcome{after, L.Granted{}}:
|
|
30
|
-
Open(phase, revoked, cleanup) & {after == L.Life{phase, owner, 1n+holds, calls, revoked} : L.Life}
|
|
31
|
-
case _ L.Outcome{after, L.Denied{}}:
|
|
32
|
-
{after == before : L.Life}
|
|
33
|
-
case _ L.Outcome{after, L.StartClose{}}:
|
|
34
|
-
Empty
|
|
35
|
-
|
|
36
|
-
def CloseSafe(+before: L.Life, outcome: L.Outcome) -> Type:
|
|
37
|
-
match before outcome:
|
|
38
|
-
case L.Life{phase, owner, holds, calls, revoked} L.Outcome{after, L.StartClose{}}:
|
|
39
|
-
{phase == L.Retiring{} : L.Phase} & ({owner == False{} : Bool} & ({holds == 0n : Nat} & ({calls == 0n : Nat} & {after == L.Life{L.Closing{}, False{}, 0n, 0n, revoked} : L.Life})))
|
|
40
|
-
case _ L.Outcome{after, L.Denied{}}:
|
|
41
|
-
{after == before : L.Life}
|
|
42
|
-
case _ L.Outcome{after, L.Granted{}}:
|
|
43
|
-
Empty
|
|
44
|
-
|
|
45
|
-
def InspectSafe(+before: L.Life, outcome: L.Outcome) -> Type:
|
|
46
|
-
match before outcome:
|
|
47
|
-
case L.Life{phase, owner, holds, calls, revoked} L.Outcome{after, L.Granted{}}:
|
|
48
|
-
Open(phase, revoked, False{}) & {after == before : L.Life}
|
|
49
|
-
case _ L.Outcome{after, L.Denied{}}:
|
|
50
|
-
{after == before : L.Life}
|
|
51
|
-
case _ L.Outcome{after, L.StartClose{}}:
|
|
52
|
-
Empty
|
|
53
|
-
|
|
54
|
-
law inspect_safe:
|
|
55
|
-
for +life: L.Life
|
|
56
|
-
InspectSafe(life, K.bindingStep(life, L.Inspect{}))
|
|
57
|
-
|
|
58
|
-
law inspect_complete:
|
|
59
|
-
for +owner: Bool
|
|
60
|
-
for +holds: Nat
|
|
61
|
-
for +calls: Nat
|
|
62
|
-
{K.bindingStep(L.Life{L.Active{}, owner, holds, calls, False{}}, L.Inspect{}) == L.Outcome{L.Life{L.Active{}, owner, holds, calls, False{}}, L.Granted{}} : L.Outcome}
|
|
63
|
-
|
|
64
|
-
law begin_safe:
|
|
65
|
-
for +life: L.Life
|
|
66
|
-
for +cleanup: Bool
|
|
67
|
-
BeginSafe(life, cleanup, K.bindingStep(life, L.Begin{cleanup}))
|
|
68
|
-
|
|
69
|
-
law retain_safe:
|
|
70
|
-
for +life: L.Life
|
|
71
|
-
for +cleanup: Bool
|
|
72
|
-
RetainSafe(life, cleanup, K.bindingStep(life, L.Retain{cleanup}))
|
|
73
|
-
|
|
74
|
-
# Completeness follows the independent Open predicate for every phase, not
|
|
75
|
-
# just the Active/non-revoked examples below.
|
|
76
|
-
law begin_open_complete:
|
|
77
|
-
for +phase: L.Phase
|
|
78
|
-
for +owner: Bool
|
|
79
|
-
for +holds: Nat
|
|
80
|
-
for +calls: Nat
|
|
81
|
-
for +revoked: Bool
|
|
82
|
-
for +cleanup: Bool
|
|
83
|
-
for p: Open(phase, revoked, cleanup)
|
|
84
|
-
{K.bindingStep(L.Life{phase, owner, holds, calls, revoked}, L.Begin{cleanup}) == L.Outcome{L.Life{phase, owner, holds, 1n+calls, revoked}, L.Granted{}} : L.Outcome}
|
|
85
|
-
|
|
86
|
-
law retain_open_complete:
|
|
87
|
-
for +phase: L.Phase
|
|
88
|
-
for +owner: Bool
|
|
89
|
-
for +holds: Nat
|
|
90
|
-
for +calls: Nat
|
|
91
|
-
for +revoked: Bool
|
|
92
|
-
for +cleanup: Bool
|
|
93
|
-
for p: Open(phase, revoked, cleanup)
|
|
94
|
-
{K.bindingStep(L.Life{phase, owner, holds, calls, revoked}, L.Retain{cleanup}) == L.Outcome{L.Life{phase, owner, 1n+holds, calls, revoked}, L.Granted{}} : L.Outcome}
|
|
95
|
-
|
|
96
|
-
law inspect_open_complete:
|
|
97
|
-
for +phase: L.Phase
|
|
98
|
-
for +owner: Bool
|
|
99
|
-
for +holds: Nat
|
|
100
|
-
for +calls: Nat
|
|
101
|
-
for +revoked: Bool
|
|
102
|
-
for p: Open(phase, revoked, False{})
|
|
103
|
-
{K.bindingStep(L.Life{phase, owner, holds, calls, revoked}, L.Inspect{}) == L.Outcome{L.Life{phase, owner, holds, calls, revoked}, L.Granted{}} : L.Outcome}
|
|
104
|
-
|
|
105
|
-
law close_safe:
|
|
106
|
-
for +life: L.Life
|
|
107
|
-
CloseSafe(life, K.bindingStep(life, L.Shut{}))
|
|
108
|
-
|
|
109
|
-
law close_complete:
|
|
110
|
-
for +revoked: Bool
|
|
111
|
-
{K.bindingStep(L.Life{L.Retiring{}, False{}, 0n, 0n, revoked}, L.Shut{}) == L.Outcome{L.Life{L.Closing{}, False{}, 0n, 0n, revoked}, L.StartClose{}} : L.Outcome}
|
|
112
|
-
|
|
113
|
-
law begin_complete:
|
|
114
|
-
for +owner: Bool
|
|
115
|
-
for +holds: Nat
|
|
116
|
-
for +calls: Nat
|
|
117
|
-
{K.bindingStep(L.Life{L.Active{}, owner, holds, calls, False{}}, L.Begin{False{}}) == L.Outcome{L.Life{L.Active{}, owner, holds, 1n+calls, False{}}, L.Granted{}} : L.Outcome}
|
|
118
|
-
|
|
119
|
-
law release_exact:
|
|
120
|
-
for +phase: L.Phase
|
|
121
|
-
for +owner: Bool
|
|
122
|
-
for +holds: Nat
|
|
123
|
-
for +calls: Nat
|
|
124
|
-
for +revoked: Bool
|
|
125
|
-
{K.bindingStep(L.Life{phase, owner, 1n+holds, calls, revoked}, L.Release{}) == L.Outcome{L.Life{phase, owner, holds, calls, revoked}, L.Granted{}} : L.Outcome}
|
|
126
|
-
|
|
127
|
-
law end_exact:
|
|
128
|
-
for +phase: L.Phase
|
|
129
|
-
for +owner: Bool
|
|
130
|
-
for +holds: Nat
|
|
131
|
-
for +calls: Nat
|
|
132
|
-
for +revoked: Bool
|
|
133
|
-
{K.bindingStep(L.Life{phase, owner, holds, 1n+calls, revoked}, L.End{}) == L.Outcome{L.Life{phase, owner, holds, calls, revoked}, L.Granted{}} : L.Outcome}
|
|
134
|
-
|
|
135
|
-
def RetiredPhase(phase: L.Phase) -> L.Phase:
|
|
136
|
-
match phase:
|
|
137
|
-
case L.Staged{}:
|
|
138
|
-
L.Retiring{}
|
|
139
|
-
case L.Active{}:
|
|
140
|
-
L.Retiring{}
|
|
141
|
-
case _:
|
|
142
|
-
phase
|
|
143
|
-
|
|
144
|
-
law revoke_preserves_work:
|
|
145
|
-
for +phase: L.Phase
|
|
146
|
-
for +owner: Bool
|
|
147
|
-
for +holds: Nat
|
|
148
|
-
for +calls: Nat
|
|
149
|
-
for +revoked: Bool
|
|
150
|
-
{K.bindingStep(L.Life{phase, owner, holds, calls, revoked}, L.Revoke{}) == L.Outcome{L.Life{RetiredPhase(phase), False{}, holds, calls, True{}}, L.Granted{}} : L.Outcome}
|
|
151
|
-
|
|
152
|
-
law drop_owner_preserves_work:
|
|
153
|
-
for +phase: L.Phase
|
|
154
|
-
for +owner: Bool
|
|
155
|
-
for +holds: Nat
|
|
156
|
-
for +calls: Nat
|
|
157
|
-
for +revoked: Bool
|
|
158
|
-
{K.bindingStep(L.Life{phase, owner, holds, calls, revoked}, L.DropOwner{}) == L.Outcome{L.Life{phase, False{}, holds, calls, revoked}, L.Granted{}} : L.Outcome}
|
|
159
|
-
|
|
160
|
-
law retire_preserves_work:
|
|
161
|
-
for +phase: L.Phase
|
|
162
|
-
for +owner: Bool
|
|
163
|
-
for +holds: Nat
|
|
164
|
-
for +calls: Nat
|
|
165
|
-
for +revoked: Bool
|
|
166
|
-
{K.bindingStep(L.Life{phase, owner, holds, calls, revoked}, L.Retire{}) == L.Outcome{L.Life{RetiredPhase(phase), owner, holds, calls, revoked}, L.Granted{}} : L.Outcome}
|
|
167
|
-
|
|
168
|
-
law retain_complete:
|
|
169
|
-
for +owner: Bool
|
|
170
|
-
for +holds: Nat
|
|
171
|
-
for +calls: Nat
|
|
172
|
-
{K.bindingStep(L.Life{L.Active{}, owner, holds, calls, False{}}, L.Retain{False{}}) == L.Outcome{L.Life{L.Active{}, owner, 1n+holds, calls, False{}}, L.Granted{}} : L.Outcome}
|
|
173
|
-
|
|
174
|
-
law release_underflow_refused:
|
|
175
|
-
for +phase: L.Phase
|
|
176
|
-
for +owner: Bool
|
|
177
|
-
for +calls: Nat
|
|
178
|
-
for +revoked: Bool
|
|
179
|
-
{K.bindingStep(L.Life{phase, owner, 0n, calls, revoked}, L.Release{}) == L.Outcome{L.Life{phase, owner, 0n, calls, revoked}, L.Denied{}} : L.Outcome}
|
|
180
|
-
|
|
181
|
-
law end_underflow_refused:
|
|
182
|
-
for +phase: L.Phase
|
|
183
|
-
for +owner: Bool
|
|
184
|
-
for +holds: Nat
|
|
185
|
-
for +revoked: Bool
|
|
186
|
-
{K.bindingStep(L.Life{phase, owner, holds, 0n, revoked}, L.End{}) == L.Outcome{L.Life{phase, owner, holds, 0n, revoked}, L.Denied{}} : L.Outcome}
|
|
187
|
-
|
|
188
|
-
law quarantine_preserves_work:
|
|
189
|
-
for +owner: Bool
|
|
190
|
-
for +holds: Nat
|
|
191
|
-
for +calls: Nat
|
|
192
|
-
for +revoked: Bool
|
|
193
|
-
{K.bindingStep(L.Life{L.Retiring{}, owner, holds, calls, revoked}, L.Abort{}) == L.Outcome{L.Life{L.Failed{}, False{}, holds, calls, True{}}, L.Granted{}} : L.Outcome}
|
|
194
|
-
|
|
195
|
-
law cleanup_after_revocation:
|
|
196
|
-
for +owner: Bool
|
|
197
|
-
for +holds: Nat
|
|
198
|
-
for +calls: Nat
|
|
199
|
-
{K.bindingStep(L.Life{L.Retiring{}, owner, holds, calls, True{}}, L.Begin{True{}}) == L.Outcome{L.Life{L.Retiring{}, owner, holds, 1n+calls, True{}}, L.Granted{}} : L.Outcome}
|
|
200
|
-
|
|
201
|
-
def Activation(phase: L.Phase, owner: Bool, holds: Nat, calls: Nat, revoked: Bool) -> L.Outcome:
|
|
202
|
-
match phase:
|
|
203
|
-
case L.Staged{}:
|
|
204
|
-
L.Outcome{L.Life{L.Active{}, owner, holds, calls, revoked}, L.Granted{}}
|
|
205
|
-
case L.Active{}:
|
|
206
|
-
L.Outcome{L.Life{L.Active{}, owner, holds, calls, revoked}, L.Granted{}}
|
|
207
|
-
case _:
|
|
208
|
-
L.Outcome{L.Life{phase, owner, holds, calls, revoked}, L.Denied{}}
|
|
209
|
-
|
|
210
|
-
def Completion(phase: L.Phase, owner: Bool, holds: Nat, calls: Nat, revoked: Bool) -> L.Outcome:
|
|
211
|
-
match phase:
|
|
212
|
-
case L.Closing{}:
|
|
213
|
-
L.Outcome{L.Life{L.Closed{}, owner, holds, calls, revoked}, L.Granted{}}
|
|
214
|
-
case _:
|
|
215
|
-
L.Outcome{L.Life{phase, owner, holds, calls, revoked}, L.Denied{}}
|
|
216
|
-
|
|
217
|
-
def Failure(phase: L.Phase, owner: Bool, holds: Nat, calls: Nat, revoked: Bool) -> L.Outcome:
|
|
218
|
-
match phase:
|
|
219
|
-
case L.Closed{}:
|
|
220
|
-
L.Outcome{L.Life{L.Closed{}, owner, holds, calls, revoked}, L.Denied{}}
|
|
221
|
-
case _:
|
|
222
|
-
L.Outcome{L.Life{L.Failed{}, False{}, holds, calls, True{}}, L.Granted{}}
|
|
223
|
-
|
|
224
|
-
law activation_exact:
|
|
225
|
-
for +phase: L.Phase
|
|
226
|
-
for +owner: Bool
|
|
227
|
-
for +holds: Nat
|
|
228
|
-
for +calls: Nat
|
|
229
|
-
for +revoked: Bool
|
|
230
|
-
{K.bindingStep(L.Life{phase, owner, holds, calls, revoked}, L.Activate{}) == Activation(phase, owner, holds, calls, revoked) : L.Outcome}
|
|
231
|
-
|
|
232
|
-
law completion_exact:
|
|
233
|
-
for +phase: L.Phase
|
|
234
|
-
for +owner: Bool
|
|
235
|
-
for +holds: Nat
|
|
236
|
-
for +calls: Nat
|
|
237
|
-
for +revoked: Bool
|
|
238
|
-
{K.bindingStep(L.Life{phase, owner, holds, calls, revoked}, L.Complete{}) == Completion(phase, owner, holds, calls, revoked) : L.Outcome}
|
|
239
|
-
|
|
240
|
-
law failure_exact:
|
|
241
|
-
for +phase: L.Phase
|
|
242
|
-
for +owner: Bool
|
|
243
|
-
for +holds: Nat
|
|
244
|
-
for +calls: Nat
|
|
245
|
-
for +revoked: Bool
|
|
246
|
-
{K.bindingStep(L.Life{phase, owner, holds, calls, revoked}, L.Abort{}) == Failure(phase, owner, holds, calls, revoked) : L.Outcome}
|
|
247
|
-
|
|
248
|
-
law closing_refuses_work:
|
|
249
|
-
for +owner: Bool
|
|
250
|
-
for +holds: Nat
|
|
251
|
-
for +calls: Nat
|
|
252
|
-
for +revoked: Bool
|
|
253
|
-
for +cleanup: Bool
|
|
254
|
-
{K.bindingStep(L.Life{L.Closing{}, owner, holds, calls, revoked}, L.Begin{cleanup}) == L.Outcome{L.Life{L.Closing{}, owner, holds, calls, revoked}, L.Denied{}} : L.Outcome}
|
|
255
|
-
|
|
256
|
-
law revoked_refuses_work:
|
|
257
|
-
for +phase: L.Phase
|
|
258
|
-
for +owner: Bool
|
|
259
|
-
for +holds: Nat
|
|
260
|
-
for +calls: Nat
|
|
261
|
-
{K.bindingStep(L.Life{phase, owner, holds, calls, True{}}, L.Begin{False{}}) == L.Outcome{L.Life{phase, owner, holds, calls, True{}}, L.Denied{}} : L.Outcome}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export type BindingPhase = { $: "Staged" | "Active" | "Retiring" | "Closing" | "Closed" | "Failed" };
|
|
2
|
-
export interface BindingLife { $: "Life"; phase: BindingPhase; owner: boolean; holds: number; calls: number; revoked: boolean }
|
|
3
|
-
export type BindingEvent = { $: "Inspect" | "Activate" | "Retire" | "DropOwner" | "Revoke" | "Release" | "End" | "Shut" | "Complete" | "Abort" } | { $: "Retain" | "Begin"; cleanup: boolean };
|
|
4
|
-
export interface BindingOutcome { $: "Outcome"; next: BindingLife; command: { $: "Denied" | "Granted" | "StartClose" } }
|
package/proofs/lifecycle.bend
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import Base
|
|
2
|
-
|
|
3
|
-
type Phase is Data:
|
|
4
|
-
Staged{}
|
|
5
|
-
Active{}
|
|
6
|
-
Retiring{}
|
|
7
|
-
Closing{}
|
|
8
|
-
Closed{}
|
|
9
|
-
Failed{}
|
|
10
|
-
|
|
11
|
-
type Life is Data:
|
|
12
|
-
Life{phase: Phase, owner: Bool, holds: Nat, calls: Nat, revoked: Bool}
|
|
13
|
-
|
|
14
|
-
type BindingEvent is Data:
|
|
15
|
-
Inspect{}
|
|
16
|
-
Activate{}
|
|
17
|
-
Retire{}
|
|
18
|
-
DropOwner{}
|
|
19
|
-
Revoke{}
|
|
20
|
-
Retain{cleanup: Bool}
|
|
21
|
-
Release{}
|
|
22
|
-
Begin{cleanup: Bool}
|
|
23
|
-
End{}
|
|
24
|
-
Shut{}
|
|
25
|
-
Complete{}
|
|
26
|
-
Abort{}
|
|
27
|
-
|
|
28
|
-
type Command is Data:
|
|
29
|
-
Denied{}
|
|
30
|
-
Granted{}
|
|
31
|
-
StartClose{}
|
|
32
|
-
|
|
33
|
-
type Outcome is Data:
|
|
34
|
-
Outcome{next: Life, command: Command}
|
|
35
|
-
|
|
36
|
-
def open(phase: Phase, revoked: Bool, cleanup: Bool) -> Bool:
|
|
37
|
-
match phase:
|
|
38
|
-
case Closing{}:
|
|
39
|
-
False{}
|
|
40
|
-
case Closed{}:
|
|
41
|
-
False{}
|
|
42
|
-
case Failed{}:
|
|
43
|
-
cleanup
|
|
44
|
-
case _:
|
|
45
|
-
cleanup || Bool.not(revoked)
|
|
46
|
-
|
|
47
|
-
def retiring(phase: Phase) -> Phase:
|
|
48
|
-
match phase:
|
|
49
|
-
case Staged{}:
|
|
50
|
-
Retiring{}
|
|
51
|
-
case Active{}:
|
|
52
|
-
Retiring{}
|
|
53
|
-
case _:
|
|
54
|
-
phase
|
|
55
|
-
|
|
56
|
-
def selectBegin(good: Bool, life: Life) -> Outcome:
|
|
57
|
-
match good life:
|
|
58
|
-
case False{} _:
|
|
59
|
-
Outcome{life, Denied{}}
|
|
60
|
-
case True{} Life{phase, owner, holds, calls, revoked}:
|
|
61
|
-
Outcome{Life{phase, owner, holds, 1n+calls, revoked}, Granted{}}
|
|
62
|
-
|
|
63
|
-
def selectRetain(good: Bool, life: Life) -> Outcome:
|
|
64
|
-
match good life:
|
|
65
|
-
case False{} _:
|
|
66
|
-
Outcome{life, Denied{}}
|
|
67
|
-
case True{} Life{phase, owner, holds, calls, revoked}:
|
|
68
|
-
Outcome{Life{phase, owner, 1n+holds, calls, revoked}, Granted{}}
|
|
69
|
-
|
|
70
|
-
def selectInspect(good: Bool, life: Life) -> Outcome:
|
|
71
|
-
match good:
|
|
72
|
-
case False{}:
|
|
73
|
-
Outcome{life, Denied{}}
|
|
74
|
-
case True{}:
|
|
75
|
-
Outcome{life, Granted{}}
|
|
76
|
-
|
|
77
|
-
def step(event: BindingEvent, life: Life) -> Outcome:
|
|
78
|
-
match event life:
|
|
79
|
-
case Inspect{} Life{+phase, +owner, +holds, +calls, +revoked}:
|
|
80
|
-
selectInspect(open(phase, revoked, False{}), life)
|
|
81
|
-
case Activate{} Life{Staged{}, owner, holds, calls, revoked}:
|
|
82
|
-
Outcome{Life{Active{}, owner, holds, calls, revoked}, Granted{}}
|
|
83
|
-
case Activate{} Life{Active{}, owner, holds, calls, revoked}:
|
|
84
|
-
Outcome{life, Granted{}}
|
|
85
|
-
case Activate{} _:
|
|
86
|
-
Outcome{life, Denied{}}
|
|
87
|
-
case Retire{} Life{+phase, +owner, +holds, +calls, +revoked}:
|
|
88
|
-
Outcome{Life{retiring(phase), owner, holds, calls, revoked}, Granted{}}
|
|
89
|
-
case DropOwner{} Life{+phase, +owner, +holds, +calls, +revoked}:
|
|
90
|
-
Outcome{Life{phase, False{}, holds, calls, revoked}, Granted{}}
|
|
91
|
-
case Revoke{} Life{+phase, +owner, +holds, +calls, +revoked}:
|
|
92
|
-
Outcome{Life{retiring(phase), False{}, holds, calls, True{}}, Granted{}}
|
|
93
|
-
case Retain{cleanup} Life{+phase, +owner, +holds, +calls, +revoked}:
|
|
94
|
-
selectRetain(open(phase, revoked, cleanup), life)
|
|
95
|
-
case Release{} Life{phase, owner, 0n, calls, revoked}:
|
|
96
|
-
Outcome{life, Denied{}}
|
|
97
|
-
case Release{} Life{phase, owner, 1n+holds, calls, revoked}:
|
|
98
|
-
Outcome{Life{phase, owner, holds, calls, revoked}, Granted{}}
|
|
99
|
-
case Begin{cleanup} Life{+phase, +owner, +holds, +calls, +revoked}:
|
|
100
|
-
selectBegin(open(phase, revoked, cleanup), life)
|
|
101
|
-
case End{} Life{phase, owner, holds, 0n, revoked}:
|
|
102
|
-
Outcome{life, Denied{}}
|
|
103
|
-
case End{} Life{phase, owner, holds, 1n+calls, revoked}:
|
|
104
|
-
Outcome{Life{phase, owner, holds, calls, revoked}, Granted{}}
|
|
105
|
-
case Shut{} Life{Retiring{}, False{}, 0n, 0n, revoked}:
|
|
106
|
-
Outcome{Life{Closing{}, False{}, 0n, 0n, revoked}, StartClose{}}
|
|
107
|
-
case Shut{} _:
|
|
108
|
-
Outcome{life, Denied{}}
|
|
109
|
-
case Complete{} Life{Closing{}, owner, holds, calls, revoked}:
|
|
110
|
-
Outcome{Life{Closed{}, owner, holds, calls, revoked}, Granted{}}
|
|
111
|
-
case Complete{} _:
|
|
112
|
-
Outcome{life, Denied{}}
|
|
113
|
-
case Abort{} Life{Closed{}, owner, holds, calls, revoked}:
|
|
114
|
-
Outcome{life, Denied{}}
|
|
115
|
-
case Abort{} Life{+phase, +owner, +holds, +calls, +revoked}:
|
|
116
|
-
Outcome{Life{Failed{}, False{}, holds, calls, True{}}, Granted{}}
|
|
117
|
-
|
|
118
|
-
def bindingStep(life: Life, event: BindingEvent) -> Outcome:
|
|
119
|
-
step(event, life)
|
package/proofs/provider-abi.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Base
|
|
2
|
-
import ./provider-plans.bend as P
|
|
3
|
-
|
|
4
|
-
def providerTake(ticket: P.Ticket, key: +List<Nat>, observed: +List<Nat>, stopped: Bool) -> P.Outcome:
|
|
5
|
-
P.take(ticket, key, observed, stopped)
|
|
6
|
-
|
|
7
|
-
def providerRevoke(ticket: P.Ticket) -> P.Ticket:
|
|
8
|
-
P.revoke(ticket)
|
|
9
|
-
|
|
10
|
-
type ProviderKernel is Type:
|
|
11
|
-
ProviderKernel{take: P.Ticket -> +List<Nat> -> +List<Nat> -> Bool -> P.Outcome, revoke: P.Ticket -> P.Ticket}
|
|
12
|
-
|
|
13
|
-
def main() -> IO(ProviderKernel):
|
|
14
|
-
IO.pure(ProviderKernel, ProviderKernel{providerTake, providerRevoke})
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import Base
|
|
2
|
-
import ./state-plans.bend as S
|
|
3
|
-
|
|
4
|
-
type Ticket is Data:
|
|
5
|
-
Ticket{grant: S.Grant, expected: +List<Nat>, payload: +List<Nat>}
|
|
6
|
-
|
|
7
|
-
type Outcome is Data:
|
|
8
|
-
Outcome{next: Ticket, plan: S.Plan}
|
|
9
|
-
|
|
10
|
-
def take(ticket: Ticket, key: +List<Nat>, observed: +List<Nat>, stopped: Bool) -> Outcome:
|
|
11
|
-
match ticket:
|
|
12
|
-
case Ticket{+grant, +expected, +payload}:
|
|
13
|
-
Outcome{Ticket{S.revoke(grant), expected, payload}, S.writePlan(grant, key, expected, observed, payload, stopped)}
|
|
14
|
-
|
|
15
|
-
def revoke(ticket: Ticket) -> Ticket:
|
|
16
|
-
match ticket:
|
|
17
|
-
case Ticket{grant, expected, payload}:
|
|
18
|
-
Ticket{S.revoke(grant), expected, payload}
|
|
19
|
-
|
|
20
|
-
def next(outcome: Outcome) -> Ticket:
|
|
21
|
-
match outcome:
|
|
22
|
-
case Outcome{ticket, plan}:
|
|
23
|
-
ticket
|
|
24
|
-
|
|
25
|
-
def plan(outcome: Outcome) -> S.Plan:
|
|
26
|
-
match outcome:
|
|
27
|
-
case Outcome{ticket, plan}:
|
|
28
|
-
plan
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Base
|
|
2
|
-
import ./provider-plans.bend as P
|
|
3
|
-
import ./state-plans.bend as S
|
|
4
|
-
import ./state-spec.bend as SS
|
|
5
|
-
|
|
6
|
-
def Safe(ticket: P.Ticket, key: +List<Nat>, observed: +List<Nat>, stopped: Bool, plan: S.Plan) -> Type:
|
|
7
|
-
match ticket:
|
|
8
|
-
case P.Ticket{grant, expected, payload}:
|
|
9
|
-
SS.WriteSafe(grant, key, expected, observed, payload, stopped, plan)
|
|
10
|
-
|
|
11
|
-
def Consumed(before: P.Ticket, after: P.Ticket) -> Type:
|
|
12
|
-
match before after:
|
|
13
|
-
case P.Ticket{S.Grant{active, key}, expected, payload} P.Ticket{S.Grant{live, target}, revision, value}:
|
|
14
|
-
{live == False{} : Bool} & ({target == key : +List<Nat>} & ({revision == expected : +List<Nat>} & {value == payload : +List<Nat>}))
|