@azx-pbc/axiom-runtime 0.0.0-stage → 0.0.1
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/LICENSE +21 -0
- package/README.md +714 -2
- package/dist/cache/index.d.ts +191 -0
- package/dist/cache/index.d.ts.map +1 -0
- package/dist/cache/index.js +361 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/canonical/jcs.d.ts +78 -0
- package/dist/canonical/jcs.d.ts.map +1 -0
- package/dist/canonical/jcs.js +500 -0
- package/dist/canonical/jcs.js.map +1 -0
- package/dist/canonical/restricted-json.d.ts +7 -0
- package/dist/canonical/restricted-json.d.ts.map +1 -0
- package/dist/canonical/restricted-json.js +318 -0
- package/dist/canonical/restricted-json.js.map +1 -0
- package/dist/canonical/restricted-value.d.ts +59 -0
- package/dist/canonical/restricted-value.d.ts.map +1 -0
- package/dist/canonical/restricted-value.js +156 -0
- package/dist/canonical/restricted-value.js.map +1 -0
- package/dist/canonical/restricted.d.ts +85 -0
- package/dist/canonical/restricted.d.ts.map +1 -0
- package/dist/canonical/restricted.js +163 -0
- package/dist/canonical/restricted.js.map +1 -0
- package/dist/canonical/signature.d.ts +38 -0
- package/dist/canonical/signature.d.ts.map +1 -0
- package/dist/canonical/signature.js +47 -0
- package/dist/canonical/signature.js.map +1 -0
- package/dist/eval/access/delivery.d.ts +63 -0
- package/dist/eval/access/delivery.d.ts.map +1 -0
- package/dist/eval/access/delivery.js +98 -0
- package/dist/eval/access/delivery.js.map +1 -0
- package/dist/eval/access/overlay.d.ts +72 -0
- package/dist/eval/access/overlay.d.ts.map +1 -0
- package/dist/eval/access/overlay.js +402 -0
- package/dist/eval/access/overlay.js.map +1 -0
- package/dist/eval/access/projection.d.ts +159 -0
- package/dist/eval/access/projection.d.ts.map +1 -0
- package/dist/eval/access/projection.js +211 -0
- package/dist/eval/access/projection.js.map +1 -0
- package/dist/eval/access/window.d.ts +128 -0
- package/dist/eval/access/window.d.ts.map +1 -0
- package/dist/eval/access/window.js +254 -0
- package/dist/eval/access/window.js.map +1 -0
- package/dist/eval/access/write.d.ts +113 -0
- package/dist/eval/access/write.d.ts.map +1 -0
- package/dist/eval/access/write.js +119 -0
- package/dist/eval/access/write.js.map +1 -0
- package/dist/eval/addressing.d.ts +131 -0
- package/dist/eval/addressing.d.ts.map +1 -0
- package/dist/eval/addressing.js +270 -0
- package/dist/eval/addressing.js.map +1 -0
- package/dist/eval/budget.d.ts +143 -0
- package/dist/eval/budget.d.ts.map +1 -0
- package/dist/eval/budget.js +387 -0
- package/dist/eval/budget.js.map +1 -0
- package/dist/eval/computed.d.ts +46 -0
- package/dist/eval/computed.d.ts.map +1 -0
- package/dist/eval/computed.js +89 -0
- package/dist/eval/computed.js.map +1 -0
- package/dist/eval/denials.d.ts +64 -0
- package/dist/eval/denials.d.ts.map +1 -0
- package/dist/eval/denials.js +87 -0
- package/dist/eval/denials.js.map +1 -0
- package/dist/eval/engine/cancellation.d.ts +12 -0
- package/dist/eval/engine/cancellation.d.ts.map +1 -0
- package/dist/eval/engine/cancellation.js +56 -0
- package/dist/eval/engine/cancellation.js.map +1 -0
- package/dist/eval/engine/delta.d.ts +104 -0
- package/dist/eval/engine/delta.d.ts.map +1 -0
- package/dist/eval/engine/delta.js +466 -0
- package/dist/eval/engine/delta.js.map +1 -0
- package/dist/eval/engine/deps.d.ts +136 -0
- package/dist/eval/engine/deps.d.ts.map +1 -0
- package/dist/eval/engine/deps.js +345 -0
- package/dist/eval/engine/deps.js.map +1 -0
- package/dist/eval/engine/identity.d.ts +128 -0
- package/dist/eval/engine/identity.d.ts.map +1 -0
- package/dist/eval/engine/identity.js +398 -0
- package/dist/eval/engine/identity.js.map +1 -0
- package/dist/eval/engine/index.d.ts +200 -0
- package/dist/eval/engine/index.d.ts.map +1 -0
- package/dist/eval/engine/index.js +1242 -0
- package/dist/eval/engine/index.js.map +1 -0
- package/dist/eval/engine/measurement.d.ts +23 -0
- package/dist/eval/engine/measurement.d.ts.map +1 -0
- package/dist/eval/engine/measurement.js +42 -0
- package/dist/eval/engine/measurement.js.map +1 -0
- package/dist/eval/engine/naive.d.ts +19 -0
- package/dist/eval/engine/naive.d.ts.map +1 -0
- package/dist/eval/engine/naive.js +59 -0
- package/dist/eval/engine/naive.js.map +1 -0
- package/dist/eval/engine/ops.d.ts +214 -0
- package/dist/eval/engine/ops.d.ts.map +1 -0
- package/dist/eval/engine/ops.js +1422 -0
- package/dist/eval/engine/ops.js.map +1 -0
- package/dist/eval/engine/patches.d.ts +40 -0
- package/dist/eval/engine/patches.d.ts.map +1 -0
- package/dist/eval/engine/patches.js +125 -0
- package/dist/eval/engine/patches.js.map +1 -0
- package/dist/eval/engine/ports.d.ts +71 -0
- package/dist/eval/engine/ports.d.ts.map +1 -0
- package/dist/eval/engine/ports.js +2 -0
- package/dist/eval/engine/ports.js.map +1 -0
- package/dist/eval/engine/session.d.ts +116 -0
- package/dist/eval/engine/session.d.ts.map +1 -0
- package/dist/eval/engine/session.js +653 -0
- package/dist/eval/engine/session.js.map +1 -0
- package/dist/eval/engine/snapshot.d.ts +97 -0
- package/dist/eval/engine/snapshot.d.ts.map +1 -0
- package/dist/eval/engine/snapshot.js +221 -0
- package/dist/eval/engine/snapshot.js.map +1 -0
- package/dist/eval/engine/subscriptions.d.ts +47 -0
- package/dist/eval/engine/subscriptions.d.ts.map +1 -0
- package/dist/eval/engine/subscriptions.js +103 -0
- package/dist/eval/engine/subscriptions.js.map +1 -0
- package/dist/eval/engine/trace.d.ts +77 -0
- package/dist/eval/engine/trace.d.ts.map +1 -0
- package/dist/eval/engine/trace.js +140 -0
- package/dist/eval/engine/trace.js.map +1 -0
- package/dist/eval/error-diagnostic.d.ts +26 -0
- package/dist/eval/error-diagnostic.d.ts.map +1 -0
- package/dist/eval/error-diagnostic.js +63 -0
- package/dist/eval/error-diagnostic.js.map +1 -0
- package/dist/eval/evaluate-expr.d.ts +44 -0
- package/dist/eval/evaluate-expr.d.ts.map +1 -0
- package/dist/eval/evaluate-expr.js +149 -0
- package/dist/eval/evaluate-expr.js.map +1 -0
- package/dist/eval/evaluate.d.ts +282 -0
- package/dist/eval/evaluate.d.ts.map +1 -0
- package/dist/eval/evaluate.js +391 -0
- package/dist/eval/evaluate.js.map +1 -0
- package/dist/eval/evolution/relocate.d.ts +72 -0
- package/dist/eval/evolution/relocate.d.ts.map +1 -0
- package/dist/eval/evolution/relocate.js +427 -0
- package/dist/eval/evolution/relocate.js.map +1 -0
- package/dist/eval/evolution/select.d.ts +11 -0
- package/dist/eval/evolution/select.d.ts.map +1 -0
- package/dist/eval/evolution/select.js +53 -0
- package/dist/eval/evolution/select.js.map +1 -0
- package/dist/eval/evolution/upcast.d.ts +13 -0
- package/dist/eval/evolution/upcast.d.ts.map +1 -0
- package/dist/eval/evolution/upcast.js +88 -0
- package/dist/eval/evolution/upcast.js.map +1 -0
- package/dist/eval/expr/aggregates.d.ts +75 -0
- package/dist/eval/expr/aggregates.d.ts.map +1 -0
- package/dist/eval/expr/aggregates.js +991 -0
- package/dist/eval/expr/aggregates.js.map +1 -0
- package/dist/eval/expr/arithmetic.d.ts +26 -0
- package/dist/eval/expr/arithmetic.d.ts.map +1 -0
- package/dist/eval/expr/arithmetic.js +387 -0
- package/dist/eval/expr/arithmetic.js.map +1 -0
- package/dist/eval/expr/between.d.ts +17 -0
- package/dist/eval/expr/between.d.ts.map +1 -0
- package/dist/eval/expr/between.js +46 -0
- package/dist/eval/expr/between.js.map +1 -0
- package/dist/eval/expr/binder.d.ts +96 -0
- package/dist/eval/expr/binder.d.ts.map +1 -0
- package/dist/eval/expr/binder.js +253 -0
- package/dist/eval/expr/binder.js.map +1 -0
- package/dist/eval/expr/call-dispatch.d.ts +28 -0
- package/dist/eval/expr/call-dispatch.d.ts.map +1 -0
- package/dist/eval/expr/call-dispatch.js +114 -0
- package/dist/eval/expr/call-dispatch.js.map +1 -0
- package/dist/eval/expr/collections.d.ts +20 -0
- package/dist/eval/expr/collections.d.ts.map +1 -0
- package/dist/eval/expr/collections.js +66 -0
- package/dist/eval/expr/collections.js.map +1 -0
- package/dist/eval/expr/compare.d.ts +36 -0
- package/dist/eval/expr/compare.d.ts.map +1 -0
- package/dist/eval/expr/compare.js +115 -0
- package/dist/eval/expr/compare.js.map +1 -0
- package/dist/eval/expr/datasets.d.ts +28 -0
- package/dist/eval/expr/datasets.d.ts.map +1 -0
- package/dist/eval/expr/datasets.js +304 -0
- package/dist/eval/expr/datasets.js.map +1 -0
- package/dist/eval/expr/digest.d.ts +23 -0
- package/dist/eval/expr/digest.d.ts.map +1 -0
- package/dist/eval/expr/digest.js +89 -0
- package/dist/eval/expr/digest.js.map +1 -0
- package/dist/eval/expr/domains.d.ts +19 -0
- package/dist/eval/expr/domains.d.ts.map +1 -0
- package/dist/eval/expr/domains.js +18 -0
- package/dist/eval/expr/domains.js.map +1 -0
- package/dist/eval/expr/host.d.ts +152 -0
- package/dist/eval/expr/host.d.ts.map +1 -0
- package/dist/eval/expr/host.js +36 -0
- package/dist/eval/expr/host.js.map +1 -0
- package/dist/eval/expr/lists.d.ts +24 -0
- package/dist/eval/expr/lists.d.ts.map +1 -0
- package/dist/eval/expr/lists.js +155 -0
- package/dist/eval/expr/lists.js.map +1 -0
- package/dist/eval/expr/member.d.ts +15 -0
- package/dist/eval/expr/member.d.ts.map +1 -0
- package/dist/eval/expr/member.js +32 -0
- package/dist/eval/expr/member.js.map +1 -0
- package/dist/eval/expr/money-ops.d.ts +10 -0
- package/dist/eval/expr/money-ops.d.ts.map +1 -0
- package/dist/eval/expr/money-ops.js +17 -0
- package/dist/eval/expr/money-ops.js.map +1 -0
- package/dist/eval/expr/operands.d.ts +27 -0
- package/dist/eval/expr/operands.d.ts.map +1 -0
- package/dist/eval/expr/operands.js +167 -0
- package/dist/eval/expr/operands.js.map +1 -0
- package/dist/eval/expr/presence.d.ts +27 -0
- package/dist/eval/expr/presence.d.ts.map +1 -0
- package/dist/eval/expr/presence.js +140 -0
- package/dist/eval/expr/presence.js.map +1 -0
- package/dist/eval/expr/records.d.ts +22 -0
- package/dist/eval/expr/records.d.ts.map +1 -0
- package/dist/eval/expr/records.js +101 -0
- package/dist/eval/expr/records.js.map +1 -0
- package/dist/eval/expr/rule-refs.d.ts +25 -0
- package/dist/eval/expr/rule-refs.d.ts.map +1 -0
- package/dist/eval/expr/rule-refs.js +60 -0
- package/dist/eval/expr/rule-refs.js.map +1 -0
- package/dist/eval/expr/sequences.d.ts +26 -0
- package/dist/eval/expr/sequences.d.ts.map +1 -0
- package/dist/eval/expr/sequences.js +151 -0
- package/dist/eval/expr/sequences.js.map +1 -0
- package/dist/eval/expr/value.d.ts +99 -0
- package/dist/eval/expr/value.d.ts.map +1 -0
- package/dist/eval/expr/value.js +14 -0
- package/dist/eval/expr/value.js.map +1 -0
- package/dist/eval/expression.d.ts +142 -0
- package/dist/eval/expression.d.ts.map +1 -0
- package/dist/eval/expression.js +446 -0
- package/dist/eval/expression.js.map +1 -0
- package/dist/eval/firing.d.ts +68 -0
- package/dist/eval/firing.d.ts.map +1 -0
- package/dist/eval/firing.js +222 -0
- package/dist/eval/firing.js.map +1 -0
- package/dist/eval/gate.d.ts +110 -0
- package/dist/eval/gate.d.ts.map +1 -0
- package/dist/eval/gate.js +278 -0
- package/dist/eval/gate.js.map +1 -0
- package/dist/eval/layout-visibility.d.ts +18 -0
- package/dist/eval/layout-visibility.d.ts.map +1 -0
- package/dist/eval/layout-visibility.js +61 -0
- package/dist/eval/layout-visibility.js.map +1 -0
- package/dist/eval/option-availability.d.ts +26 -0
- package/dist/eval/option-availability.d.ts.map +1 -0
- package/dist/eval/option-availability.js +580 -0
- package/dist/eval/option-availability.js.map +1 -0
- package/dist/eval/options-boundary.d.ts +15 -0
- package/dist/eval/options-boundary.d.ts.map +1 -0
- package/dist/eval/options-boundary.js +40 -0
- package/dist/eval/options-boundary.js.map +1 -0
- package/dist/eval/options.d.ts +99 -0
- package/dist/eval/options.d.ts.map +1 -0
- package/dist/eval/options.js +96 -0
- package/dist/eval/options.js.map +1 -0
- package/dist/eval/overrides.d.ts +116 -0
- package/dist/eval/overrides.d.ts.map +1 -0
- package/dist/eval/overrides.js +176 -0
- package/dist/eval/overrides.js.map +1 -0
- package/dist/eval/paths.d.ts +25 -0
- package/dist/eval/paths.d.ts.map +1 -0
- package/dist/eval/paths.js +47 -0
- package/dist/eval/paths.js.map +1 -0
- package/dist/eval/presentation-reads.d.ts +20 -0
- package/dist/eval/presentation-reads.d.ts.map +1 -0
- package/dist/eval/presentation-reads.js +2 -0
- package/dist/eval/presentation-reads.js.map +1 -0
- package/dist/eval/presentation.d.ts +122 -0
- package/dist/eval/presentation.d.ts.map +1 -0
- package/dist/eval/presentation.js +255 -0
- package/dist/eval/presentation.js.map +1 -0
- package/dist/eval/reader/context-value.d.ts +41 -0
- package/dist/eval/reader/context-value.d.ts.map +1 -0
- package/dist/eval/reader/context-value.js +129 -0
- package/dist/eval/reader/context-value.js.map +1 -0
- package/dist/eval/reader/covered.d.ts +53 -0
- package/dist/eval/reader/covered.d.ts.map +1 -0
- package/dist/eval/reader/covered.js +139 -0
- package/dist/eval/reader/covered.js.map +1 -0
- package/dist/eval/reader/declarations.d.ts +182 -0
- package/dist/eval/reader/declarations.d.ts.map +1 -0
- package/dist/eval/reader/declarations.js +153 -0
- package/dist/eval/reader/declarations.js.map +1 -0
- package/dist/eval/reader/member-access.d.ts +87 -0
- package/dist/eval/reader/member-access.d.ts.map +1 -0
- package/dist/eval/reader/member-access.js +212 -0
- package/dist/eval/reader/member-access.js.map +1 -0
- package/dist/eval/reader/memo.d.ts +34 -0
- package/dist/eval/reader/memo.d.ts.map +1 -0
- package/dist/eval/reader/memo.js +67 -0
- package/dist/eval/reader/memo.js.map +1 -0
- package/dist/eval/reader/overlay.d.ts +74 -0
- package/dist/eval/reader/overlay.d.ts.map +1 -0
- package/dist/eval/reader/overlay.js +365 -0
- package/dist/eval/reader/overlay.js.map +1 -0
- package/dist/eval/reader/questions.d.ts +37 -0
- package/dist/eval/reader/questions.d.ts.map +1 -0
- package/dist/eval/reader/questions.js +78 -0
- package/dist/eval/reader/questions.js.map +1 -0
- package/dist/eval/reader/resolve.d.ts +84 -0
- package/dist/eval/reader/resolve.d.ts.map +1 -0
- package/dist/eval/reader/resolve.js +310 -0
- package/dist/eval/reader/resolve.js.map +1 -0
- package/dist/eval/reader/value-read.d.ts +50 -0
- package/dist/eval/reader/value-read.d.ts.map +1 -0
- package/dist/eval/reader/value-read.js +133 -0
- package/dist/eval/reader/value-read.js.map +1 -0
- package/dist/eval/reader/withheld.d.ts +48 -0
- package/dist/eval/reader/withheld.d.ts.map +1 -0
- package/dist/eval/reader/withheld.js +108 -0
- package/dist/eval/reader/withheld.js.map +1 -0
- package/dist/eval/reader-paths.d.ts +24 -0
- package/dist/eval/reader-paths.d.ts.map +1 -0
- package/dist/eval/reader-paths.js +23 -0
- package/dist/eval/reader-paths.js.map +1 -0
- package/dist/eval/reader.d.ts +281 -0
- package/dist/eval/reader.d.ts.map +1 -0
- package/dist/eval/reader.js +560 -0
- package/dist/eval/reader.js.map +1 -0
- package/dist/eval/receipt.d.ts +37 -0
- package/dist/eval/receipt.d.ts.map +1 -0
- package/dist/eval/receipt.js +222 -0
- package/dist/eval/receipt.js.map +1 -0
- package/dist/eval/report/assemble.d.ts +84 -0
- package/dist/eval/report/assemble.d.ts.map +1 -0
- package/dist/eval/report/assemble.js +277 -0
- package/dist/eval/report/assemble.js.map +1 -0
- package/dist/eval/report/fold.d.ts +18 -0
- package/dist/eval/report/fold.d.ts.map +1 -0
- package/dist/eval/report/fold.js +58 -0
- package/dist/eval/report/fold.js.map +1 -0
- package/dist/eval/rule/alternatives.d.ts +23 -0
- package/dist/eval/rule/alternatives.d.ts.map +1 -0
- package/dist/eval/rule/alternatives.js +46 -0
- package/dist/eval/rule/alternatives.js.map +1 -0
- package/dist/eval/rule/behaviour.d.ts +47 -0
- package/dist/eval/rule/behaviour.d.ts.map +1 -0
- package/dist/eval/rule/behaviour.js +249 -0
- package/dist/eval/rule/behaviour.js.map +1 -0
- package/dist/eval/rule/compute.d.ts +46 -0
- package/dist/eval/rule/compute.d.ts.map +1 -0
- package/dist/eval/rule/compute.js +158 -0
- package/dist/eval/rule/compute.js.map +1 -0
- package/dist/eval/rule/create-state.d.ts +42 -0
- package/dist/eval/rule/create-state.d.ts.map +1 -0
- package/dist/eval/rule/create-state.js +134 -0
- package/dist/eval/rule/create-state.js.map +1 -0
- package/dist/eval/rule/diagnostics.d.ts +24 -0
- package/dist/eval/rule/diagnostics.d.ts.map +1 -0
- package/dist/eval/rule/diagnostics.js +45 -0
- package/dist/eval/rule/diagnostics.js.map +1 -0
- package/dist/eval/rule/execution.d.ts +24 -0
- package/dist/eval/rule/execution.d.ts.map +1 -0
- package/dist/eval/rule/execution.js +495 -0
- package/dist/eval/rule/execution.js.map +1 -0
- package/dist/eval/rule/gate.d.ts +12 -0
- package/dist/eval/rule/gate.d.ts.map +1 -0
- package/dist/eval/rule/gate.js +34 -0
- package/dist/eval/rule/gate.js.map +1 -0
- package/dist/eval/rule/item.d.ts +11 -0
- package/dist/eval/rule/item.d.ts.map +1 -0
- package/dist/eval/rule/item.js +265 -0
- package/dist/eval/rule/item.js.map +1 -0
- package/dist/eval/rule/prepare.d.ts +64 -0
- package/dist/eval/rule/prepare.d.ts.map +1 -0
- package/dist/eval/rule/prepare.js +131 -0
- package/dist/eval/rule/prepare.js.map +1 -0
- package/dist/eval/rule/result.d.ts +97 -0
- package/dist/eval/rule/result.d.ts.map +1 -0
- package/dist/eval/rule/result.js +347 -0
- package/dist/eval/rule/result.js.map +1 -0
- package/dist/eval/rule/runner.d.ts +128 -0
- package/dist/eval/rule/runner.d.ts.map +1 -0
- package/dist/eval/rule/runner.js +296 -0
- package/dist/eval/rule/runner.js.map +1 -0
- package/dist/eval/rule/screen.d.ts +32 -0
- package/dist/eval/rule/screen.d.ts.map +1 -0
- package/dist/eval/rule/screen.js +73 -0
- package/dist/eval/rule/screen.js.map +1 -0
- package/dist/eval/rule/state.d.ts +137 -0
- package/dist/eval/rule/state.d.ts.map +1 -0
- package/dist/eval/rule/state.js +2 -0
- package/dist/eval/rule/state.js.map +1 -0
- package/dist/eval/rule/steps.d.ts +44 -0
- package/dist/eval/rule/steps.d.ts.map +1 -0
- package/dist/eval/rule/steps.js +367 -0
- package/dist/eval/rule/steps.js.map +1 -0
- package/dist/eval/rule/visibility.d.ts +18 -0
- package/dist/eval/rule/visibility.d.ts.map +1 -0
- package/dist/eval/rule/visibility.js +79 -0
- package/dist/eval/rule/visibility.js.map +1 -0
- package/dist/eval/seal.d.ts +74 -0
- package/dist/eval/seal.d.ts.map +1 -0
- package/dist/eval/seal.js +154 -0
- package/dist/eval/seal.js.map +1 -0
- package/dist/eval/signature-coverage.d.ts +19 -0
- package/dist/eval/signature-coverage.d.ts.map +1 -0
- package/dist/eval/signature-coverage.js +160 -0
- package/dist/eval/signature-coverage.js.map +1 -0
- package/dist/eval/state/derive.d.ts +72 -0
- package/dist/eval/state/derive.d.ts.map +1 -0
- package/dist/eval/state/derive.js +61 -0
- package/dist/eval/state/derive.js.map +1 -0
- package/dist/eval/state/describe.d.ts +18 -0
- package/dist/eval/state/describe.d.ts.map +1 -0
- package/dist/eval/state/describe.js +19 -0
- package/dist/eval/state/describe.js.map +1 -0
- package/dist/eval/state/field-state.d.ts +471 -0
- package/dist/eval/state/field-state.d.ts.map +1 -0
- package/dist/eval/state/field-state.js +1604 -0
- package/dist/eval/state/field-state.js.map +1 -0
- package/dist/eval/state/measurement.d.ts +136 -0
- package/dist/eval/state/measurement.d.ts.map +1 -0
- package/dist/eval/state/measurement.js +209 -0
- package/dist/eval/state/measurement.js.map +1 -0
- package/dist/eval/state/options.d.ts +21 -0
- package/dist/eval/state/options.d.ts.map +1 -0
- package/dist/eval/state/options.js +3 -0
- package/dist/eval/state/options.js.map +1 -0
- package/dist/eval/state/readiness.d.ts +400 -0
- package/dist/eval/state/readiness.d.ts.map +1 -0
- package/dist/eval/state/readiness.js +1067 -0
- package/dist/eval/state/readiness.js.map +1 -0
- package/dist/eval/state/snapshot.d.ts +130 -0
- package/dist/eval/state/snapshot.d.ts.map +1 -0
- package/dist/eval/state/snapshot.js +35 -0
- package/dist/eval/state/snapshot.js.map +1 -0
- package/dist/eval/state/unavailable-options.d.ts +54 -0
- package/dist/eval/state/unavailable-options.d.ts.map +1 -0
- package/dist/eval/state/unavailable-options.js +82 -0
- package/dist/eval/state/unavailable-options.js.map +1 -0
- package/dist/eval/state/value-state.d.ts +38 -0
- package/dist/eval/state/value-state.d.ts.map +1 -0
- package/dist/eval/state/value-state.js +52 -0
- package/dist/eval/state/value-state.js.map +1 -0
- package/dist/eval/submission/admission.d.ts +50 -0
- package/dist/eval/submission/admission.d.ts.map +1 -0
- package/dist/eval/submission/admission.js +174 -0
- package/dist/eval/submission/admission.js.map +1 -0
- package/dist/eval/submission/authority.d.ts +71 -0
- package/dist/eval/submission/authority.d.ts.map +1 -0
- package/dist/eval/submission/authority.js +118 -0
- package/dist/eval/submission/authority.js.map +1 -0
- package/dist/eval/submission/datasets.d.ts +28 -0
- package/dist/eval/submission/datasets.d.ts.map +1 -0
- package/dist/eval/submission/datasets.js +109 -0
- package/dist/eval/submission/datasets.js.map +1 -0
- package/dist/eval/submission/index.d.ts +15 -0
- package/dist/eval/submission/index.d.ts.map +1 -0
- package/dist/eval/submission/index.js +13 -0
- package/dist/eval/submission/index.js.map +1 -0
- package/dist/eval/submission/refusals.d.ts +103 -0
- package/dist/eval/submission/refusals.d.ts.map +1 -0
- package/dist/eval/submission/refusals.js +15 -0
- package/dist/eval/submission/refusals.js.map +1 -0
- package/dist/eval/submission/signatures.d.ts +7 -0
- package/dist/eval/submission/signatures.d.ts.map +1 -0
- package/dist/eval/submission/signatures.js +215 -0
- package/dist/eval/submission/signatures.js.map +1 -0
- package/dist/eval/submission/writes.d.ts +51 -0
- package/dist/eval/submission/writes.d.ts.map +1 -0
- package/dist/eval/submission/writes.js +203 -0
- package/dist/eval/submission/writes.js.map +1 -0
- package/dist/eval/submission.d.ts +53 -0
- package/dist/eval/submission.d.ts.map +1 -0
- package/dist/eval/submission.js +521 -0
- package/dist/eval/submission.js.map +1 -0
- package/dist/eval/suggestions-to-engine.d.ts +18 -0
- package/dist/eval/suggestions-to-engine.d.ts.map +1 -0
- package/dist/eval/suggestions-to-engine.js +40 -0
- package/dist/eval/suggestions-to-engine.js.map +1 -0
- package/dist/eval/suggestions.d.ts +17 -0
- package/dist/eval/suggestions.d.ts.map +1 -0
- package/dist/eval/suggestions.js +314 -0
- package/dist/eval/suggestions.js.map +1 -0
- package/dist/eval/undecided.d.ts +64 -0
- package/dist/eval/undecided.d.ts.map +1 -0
- package/dist/eval/undecided.js +101 -0
- package/dist/eval/undecided.js.map +1 -0
- package/dist/eval/verdict.d.ts +66 -0
- package/dist/eval/verdict.d.ts.map +1 -0
- package/dist/eval/verdict.js +106 -0
- package/dist/eval/verdict.js.map +1 -0
- package/dist/eval/verify-signature.d.ts +78 -0
- package/dist/eval/verify-signature.d.ts.map +1 -0
- package/dist/eval/verify-signature.js +185 -0
- package/dist/eval/verify-signature.js.map +1 -0
- package/dist/eval/version-dispatch.d.ts +38 -0
- package/dist/eval/version-dispatch.d.ts.map +1 -0
- package/dist/eval/version-dispatch.js +61 -0
- package/dist/eval/version-dispatch.js.map +1 -0
- package/dist/eval/visibility.d.ts +33 -0
- package/dist/eval/visibility.d.ts.map +1 -0
- package/dist/eval/visibility.js +83 -0
- package/dist/eval/visibility.js.map +1 -0
- package/dist/evaluate.d.ts +24 -0
- package/dist/evaluate.d.ts.map +1 -0
- package/dist/evaluate.js +18 -0
- package/dist/evaluate.js.map +1 -0
- package/dist/expr/builtin-docs.d.ts +51 -0
- package/dist/expr/builtin-docs.d.ts.map +1 -0
- package/dist/expr/builtin-docs.js +874 -0
- package/dist/expr/builtin-docs.js.map +1 -0
- package/dist/expr/builtins.d.ts +50 -0
- package/dist/expr/builtins.d.ts.map +1 -0
- package/dist/expr/builtins.js +966 -0
- package/dist/expr/builtins.js.map +1 -0
- package/dist/expr/decimal-precision.d.ts +39 -0
- package/dist/expr/decimal-precision.d.ts.map +1 -0
- package/dist/expr/decimal-precision.js +62 -0
- package/dist/expr/decimal-precision.js.map +1 -0
- package/dist/expr/decimal.d.ts +172 -0
- package/dist/expr/decimal.d.ts.map +1 -0
- package/dist/expr/decimal.js +782 -0
- package/dist/expr/decimal.js.map +1 -0
- package/dist/expr/deprecations.d.ts +34 -0
- package/dist/expr/deprecations.d.ts.map +1 -0
- package/dist/expr/deprecations.js +17 -0
- package/dist/expr/deprecations.js.map +1 -0
- package/dist/expr/diagnostics.d.ts +21 -0
- package/dist/expr/diagnostics.d.ts.map +1 -0
- package/dist/expr/diagnostics.js +231 -0
- package/dist/expr/diagnostics.js.map +1 -0
- package/dist/expr/direction.d.ts +30 -0
- package/dist/expr/direction.d.ts.map +1 -0
- package/dist/expr/direction.js +77 -0
- package/dist/expr/direction.js.map +1 -0
- package/dist/expr/example-expression.d.ts +62 -0
- package/dist/expr/example-expression.d.ts.map +1 -0
- package/dist/expr/example-expression.js +670 -0
- package/dist/expr/example-expression.js.map +1 -0
- package/dist/expr/instant.d.ts +49 -0
- package/dist/expr/instant.d.ts.map +1 -0
- package/dist/expr/instant.js +111 -0
- package/dist/expr/instant.js.map +1 -0
- package/dist/expr/logic.d.ts +17 -0
- package/dist/expr/logic.d.ts.map +1 -0
- package/dist/expr/logic.js +65 -0
- package/dist/expr/logic.js.map +1 -0
- package/dist/expr/messages.d.ts +45 -0
- package/dist/expr/messages.d.ts.map +1 -0
- package/dist/expr/messages.js +280 -0
- package/dist/expr/messages.js.map +1 -0
- package/dist/expr/money.d.ts +38 -0
- package/dist/expr/money.d.ts.map +1 -0
- package/dist/expr/money.js +127 -0
- package/dist/expr/money.js.map +1 -0
- package/dist/expr/ordering.d.ts +56 -0
- package/dist/expr/ordering.d.ts.map +1 -0
- package/dist/expr/ordering.js +167 -0
- package/dist/expr/ordering.js.map +1 -0
- package/dist/expr/pattern.d.ts +44 -0
- package/dist/expr/pattern.d.ts.map +1 -0
- package/dist/expr/pattern.js +458 -0
- package/dist/expr/pattern.js.map +1 -0
- package/dist/expr/plain-date.d.ts +90 -0
- package/dist/expr/plain-date.d.ts.map +1 -0
- package/dist/expr/plain-date.js +230 -0
- package/dist/expr/plain-date.js.map +1 -0
- package/dist/expr/plural-categories.d.ts +8 -0
- package/dist/expr/plural-categories.d.ts.map +1 -0
- package/dist/expr/plural-categories.js +15 -0
- package/dist/expr/plural-categories.js.map +1 -0
- package/dist/expr/plural-keys.d.ts +39 -0
- package/dist/expr/plural-keys.d.ts.map +1 -0
- package/dist/expr/plural-keys.js +46 -0
- package/dist/expr/plural-keys.js.map +1 -0
- package/dist/expr/plural.d.ts +33 -0
- package/dist/expr/plural.d.ts.map +1 -0
- package/dist/expr/plural.js +50 -0
- package/dist/expr/plural.js.map +1 -0
- package/dist/expr/quantity.d.ts +31 -0
- package/dist/expr/quantity.d.ts.map +1 -0
- package/dist/expr/quantity.js +83 -0
- package/dist/expr/quantity.js.map +1 -0
- package/dist/expr/reduce.d.ts +50 -0
- package/dist/expr/reduce.d.ts.map +1 -0
- package/dist/expr/reduce.js +236 -0
- package/dist/expr/reduce.js.map +1 -0
- package/dist/expr/regex.d.ts +108 -0
- package/dist/expr/regex.d.ts.map +1 -0
- package/dist/expr/regex.js +1207 -0
- package/dist/expr/regex.js.map +1 -0
- package/dist/expr/select-locale.d.ts +67 -0
- package/dist/expr/select-locale.d.ts.map +1 -0
- package/dist/expr/select-locale.js +219 -0
- package/dist/expr/select-locale.js.map +1 -0
- package/dist/expr/sequences.d.ts +123 -0
- package/dist/expr/sequences.d.ts.map +1 -0
- package/dist/expr/sequences.js +234 -0
- package/dist/expr/sequences.js.map +1 -0
- package/dist/expr/strings.d.ts +50 -0
- package/dist/expr/strings.d.ts.map +1 -0
- package/dist/expr/strings.js +184 -0
- package/dist/expr/strings.js.map +1 -0
- package/dist/expr/validation.d.ts +32 -0
- package/dist/expr/validation.d.ts.map +1 -0
- package/dist/expr/validation.js +182 -0
- package/dist/expr/validation.js.map +1 -0
- package/dist/graph/freeze.d.ts +4 -0
- package/dist/graph/freeze.d.ts.map +1 -0
- package/dist/graph/freeze.js +52 -0
- package/dist/graph/freeze.js.map +1 -0
- package/dist/graph/index.d.ts +15 -0
- package/dist/graph/index.d.ts.map +1 -0
- package/dist/graph/index.js +13 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/graph/inspect.d.ts +76 -0
- package/dist/graph/inspect.d.ts.map +1 -0
- package/dist/graph/inspect.js +263 -0
- package/dist/graph/inspect.js.map +1 -0
- package/dist/graph/read-walk.d.ts +101 -0
- package/dist/graph/read-walk.d.ts.map +1 -0
- package/dist/graph/read-walk.js +358 -0
- package/dist/graph/read-walk.js.map +1 -0
- package/dist/graph/record-index.d.ts +24 -0
- package/dist/graph/record-index.d.ts.map +1 -0
- package/dist/graph/record-index.js +35 -0
- package/dist/graph/record-index.js.map +1 -0
- package/dist/index.d.ts +104 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +139 -0
- package/dist/index.js.map +1 -0
- package/dist/lookup/digest.d.ts +51 -0
- package/dist/lookup/digest.d.ts.map +1 -0
- package/dist/lookup/digest.js +46 -0
- package/dist/lookup/digest.js.map +1 -0
- package/dist/lookup/index.d.ts +28 -0
- package/dist/lookup/index.d.ts.map +1 -0
- package/dist/lookup/index.js +27 -0
- package/dist/lookup/index.js.map +1 -0
- package/dist/lookup/install.d.ts +48 -0
- package/dist/lookup/install.d.ts.map +1 -0
- package/dist/lookup/install.js +315 -0
- package/dist/lookup/install.js.map +1 -0
- package/dist/lookup/pass.d.ts +55 -0
- package/dist/lookup/pass.d.ts.map +1 -0
- package/dist/lookup/pass.js +212 -0
- package/dist/lookup/pass.js.map +1 -0
- package/dist/lookup/pins.d.ts +34 -0
- package/dist/lookup/pins.d.ts.map +1 -0
- package/dist/lookup/pins.js +39 -0
- package/dist/lookup/pins.js.map +1 -0
- package/dist/lookup/provenance.d.ts +23 -0
- package/dist/lookup/provenance.d.ts.map +1 -0
- package/dist/lookup/provenance.js +78 -0
- package/dist/lookup/provenance.js.map +1 -0
- package/dist/lookup/readiness.d.ts +13 -0
- package/dist/lookup/readiness.d.ts.map +1 -0
- package/dist/lookup/readiness.js +57 -0
- package/dist/lookup/readiness.js.map +1 -0
- package/dist/lookup/resolve.d.ts +24 -0
- package/dist/lookup/resolve.d.ts.map +1 -0
- package/dist/lookup/resolve.js +201 -0
- package/dist/lookup/resolve.js.map +1 -0
- package/dist/lookup/store.d.ts +41 -0
- package/dist/lookup/store.d.ts.map +1 -0
- package/dist/lookup/store.js +74 -0
- package/dist/lookup/store.js.map +1 -0
- package/dist/model/access.d.ts +200 -0
- package/dist/model/access.d.ts.map +1 -0
- package/dist/model/access.js +125 -0
- package/dist/model/access.js.map +1 -0
- package/dist/model/artifact-members.d.ts +3 -0
- package/dist/model/artifact-members.d.ts.map +1 -0
- package/dist/model/artifact-members.js +38 -0
- package/dist/model/artifact-members.js.map +1 -0
- package/dist/model/composition.d.ts +47 -0
- package/dist/model/composition.d.ts.map +1 -0
- package/dist/model/composition.js +66 -0
- package/dist/model/composition.js.map +1 -0
- package/dist/model/domain.d.ts +51 -0
- package/dist/model/domain.d.ts.map +1 -0
- package/dist/model/domain.js +75 -0
- package/dist/model/domain.js.map +1 -0
- package/dist/model/duration.d.ts +31 -0
- package/dist/model/duration.d.ts.map +1 -0
- package/dist/model/duration.js +136 -0
- package/dist/model/duration.js.map +1 -0
- package/dist/model/errors.d.ts +58 -0
- package/dist/model/errors.d.ts.map +1 -0
- package/dist/model/errors.js +81 -0
- package/dist/model/errors.js.map +1 -0
- package/dist/model/evolution.d.ts +177 -0
- package/dist/model/evolution.d.ts.map +1 -0
- package/dist/model/evolution.js +5 -0
- package/dist/model/evolution.js.map +1 -0
- package/dist/model/expr-children.d.ts +15 -0
- package/dist/model/expr-children.d.ts.map +1 -0
- package/dist/model/expr-children.js +45 -0
- package/dist/model/expr-children.js.map +1 -0
- package/dist/model/guards.d.ts +9 -0
- package/dist/model/guards.d.ts.map +1 -0
- package/dist/model/guards.js +11 -0
- package/dist/model/guards.js.map +1 -0
- package/dist/model/input.d.ts +42 -0
- package/dist/model/input.d.ts.map +1 -0
- package/dist/model/input.js +26 -0
- package/dist/model/input.js.map +1 -0
- package/dist/model/integer.d.ts +14 -0
- package/dist/model/integer.d.ts.map +1 -0
- package/dist/model/integer.js +16 -0
- package/dist/model/integer.js.map +1 -0
- package/dist/model/intrinsic.d.ts +18 -0
- package/dist/model/intrinsic.d.ts.map +1 -0
- package/dist/model/intrinsic.js +21 -0
- package/dist/model/intrinsic.js.map +1 -0
- package/dist/model/layout.d.ts +129 -0
- package/dist/model/layout.d.ts.map +1 -0
- package/dist/model/layout.js +2 -0
- package/dist/model/layout.js.map +1 -0
- package/dist/model/media.d.ts +33 -0
- package/dist/model/media.d.ts.map +1 -0
- package/dist/model/media.js +86 -0
- package/dist/model/media.js.map +1 -0
- package/dist/model/members.generated.d.ts +11 -0
- package/dist/model/members.generated.d.ts.map +1 -0
- package/dist/model/members.generated.js +71 -0
- package/dist/model/members.generated.js.map +1 -0
- package/dist/model/row-address.d.ts +27 -0
- package/dist/model/row-address.d.ts.map +1 -0
- package/dist/model/row-address.js +146 -0
- package/dist/model/row-address.js.map +1 -0
- package/dist/model/schema.d.ts +108 -0
- package/dist/model/schema.d.ts.map +1 -0
- package/dist/model/schema.js +2 -0
- package/dist/model/schema.js.map +1 -0
- package/dist/model/shape.d.ts +193 -0
- package/dist/model/shape.d.ts.map +1 -0
- package/dist/model/shape.js +2 -0
- package/dist/model/shape.js.map +1 -0
- package/dist/model/time.d.ts +61 -0
- package/dist/model/time.d.ts.map +1 -0
- package/dist/model/time.js +110 -0
- package/dist/model/time.js.map +1 -0
- package/dist/model/types.d.ts +1329 -0
- package/dist/model/types.d.ts.map +1 -0
- package/dist/model/types.js +424 -0
- package/dist/model/types.js.map +1 -0
- package/dist/model/values.d.ts +91 -0
- package/dist/model/values.d.ts.map +1 -0
- package/dist/model/values.js +195 -0
- package/dist/model/values.js.map +1 -0
- package/dist/model/wire.d.ts +356 -0
- package/dist/model/wire.d.ts.map +1 -0
- package/dist/model/wire.js +1504 -0
- package/dist/model/wire.js.map +1 -0
- package/dist/offline/index.d.ts +374 -0
- package/dist/offline/index.d.ts.map +1 -0
- package/dist/offline/index.js +422 -0
- package/dist/offline/index.js.map +1 -0
- package/dist/testing.d.ts +30 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +42 -0
- package/dist/testing.js.map +1 -0
- package/dist/version.d.ts +30 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +116 -0
- package/dist/version.js.map +1 -0
- package/package.json +98 -3
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Measurement hooks for the derivation's algorithmic properties.
|
|
3
|
+
*
|
|
4
|
+
* A hook is never an input: no decision reads a counter. They exist so a test can state that a
|
|
5
|
+
* derivation does not scan the report once per row, or rebuild a binding snapshot per read,
|
|
6
|
+
* as a count rather than a wall-clock duration, which is not a property of the code. The
|
|
7
|
+
* spelling follows `wireValidations` and `restrictedCanonicalizations`.
|
|
8
|
+
*/
|
|
9
|
+
let derivedEntries = 0;
|
|
10
|
+
let rowTokenBuilds = 0;
|
|
11
|
+
let bindingSnapshots = 0;
|
|
12
|
+
let ruleResultReads = 0;
|
|
13
|
+
let compiledRuleReads = 0;
|
|
14
|
+
let addressingBuilds = 0;
|
|
15
|
+
let closureScans = 0;
|
|
16
|
+
let rowScans = 0;
|
|
17
|
+
let blockerIdentities = 0;
|
|
18
|
+
let rowTemplateWalks = 0;
|
|
19
|
+
let artifactDerivations = 0;
|
|
20
|
+
let availabilityConditionCount = 0;
|
|
21
|
+
let availabilityMapCopyCount = 0;
|
|
22
|
+
/** Records one field entry a derivation actually derived rather than carried over. */
|
|
23
|
+
export function noteDerivedEntry() {
|
|
24
|
+
derivedEntries += 1;
|
|
25
|
+
}
|
|
26
|
+
/** The field entries derived since the process started. */
|
|
27
|
+
export function derivedFieldEntries() {
|
|
28
|
+
return derivedEntries;
|
|
29
|
+
}
|
|
30
|
+
/** Records one row-key token a derivation built to look one row's results up. */
|
|
31
|
+
export function noteReportRowTokenBuild() {
|
|
32
|
+
rowTokenBuilds += 1;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The row-key tokens report-result lookups built since the process started.
|
|
36
|
+
*
|
|
37
|
+
* A pass builds one token per addressed row it derives, and every rule naming that row looks its
|
|
38
|
+
* answer up by the same token. Building the token inside each lookup made the count the rows
|
|
39
|
+
* times the rules, which is the allocation this hook exists to make visible.
|
|
40
|
+
*/
|
|
41
|
+
export function reportRowTokenBuilds() {
|
|
42
|
+
return rowTokenBuilds;
|
|
43
|
+
}
|
|
44
|
+
/** Records one binding snapshot built from a derived entry. */
|
|
45
|
+
export function noteBindingSnapshotBuild() {
|
|
46
|
+
bindingSnapshots += 1;
|
|
47
|
+
}
|
|
48
|
+
/** The binding snapshots built since the process started. */
|
|
49
|
+
export function bindingSnapshotBuilds() {
|
|
50
|
+
return bindingSnapshots;
|
|
51
|
+
}
|
|
52
|
+
/** Records one report result a derivation examined while grouping or looking one up. */
|
|
53
|
+
export function noteRuleResultRead() {
|
|
54
|
+
ruleResultReads += 1;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The report results a derivation examined since the process started.
|
|
58
|
+
*
|
|
59
|
+
* One derivation groups the report's results once, so this equals `report.rules.length` per
|
|
60
|
+
* pass. A pass that instead scans the report for every rule it asks about multiplies the two
|
|
61
|
+
* counts, which is the cost this hook exists to make visible.
|
|
62
|
+
*/
|
|
63
|
+
export function ruleResultsRead() {
|
|
64
|
+
return ruleResultReads;
|
|
65
|
+
}
|
|
66
|
+
/** Records one compiled rule a derivation examined to answer a per-field question. */
|
|
67
|
+
export function noteCompiledRuleRead() {
|
|
68
|
+
compiledRuleReads += 1;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The compiled rules a derivation examined since the process started.
|
|
72
|
+
*
|
|
73
|
+
* Asking each field whether a writer owns it must not walk the rule list per field: the writer
|
|
74
|
+
* targets are derived in one pass, so one derivation reads the artifact's rules once for them.
|
|
75
|
+
* The derivation also reads the rule list once to index each rule by the field it decides, so a
|
|
76
|
+
* derivation reads the list twice and a pass that adds a third walk is visible here.
|
|
77
|
+
*/
|
|
78
|
+
export function compiledRulesRead() {
|
|
79
|
+
return compiledRuleReads;
|
|
80
|
+
}
|
|
81
|
+
/** Records one array's addressing a derivation built. */
|
|
82
|
+
export function noteAddressingBuild() {
|
|
83
|
+
addressingBuilds += 1;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Records one candidate rule a closure walked to follow a visibility or a block-kind edge.
|
|
87
|
+
*
|
|
88
|
+
* A `visible` rule re-enters every rule that asks `is_relevant`, and a rule that folds a block
|
|
89
|
+
* kind re-enters every block rule of that kind. Both edges used to be found by scanning the whole
|
|
90
|
+
* rule list for each rule the closure reached, so the walk was the rules squared; the artifact
|
|
91
|
+
* now states the destination list, and the count is the rules the edge actually reaches.
|
|
92
|
+
*/
|
|
93
|
+
export function noteClosureRuleScan() {
|
|
94
|
+
closureScans += 1;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The candidate rules closures walked since the process started, `[ENGINE-3.1.4]`.
|
|
98
|
+
*
|
|
99
|
+
* One change to a form with R rules, of which one is `visible` and one folds a block kind, walked
|
|
100
|
+
* R rules per pass to follow those two edges; a session that writes once per row does that R
|
|
101
|
+
* times, which is the quadratic term this hook exists to make visible.
|
|
102
|
+
*/
|
|
103
|
+
export function closureRuleScans() {
|
|
104
|
+
return closureScans;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Records the rows one session operation walked to say which rows an array addresses.
|
|
108
|
+
*
|
|
109
|
+
* A row write asks the array's identity for the position of the written row, and a write that can
|
|
110
|
+
* move a row's identity asks again whether the array is still addressable. Each ask that had to
|
|
111
|
+
* re-derive the array's addressing is charged here in full, so the count states the work a write
|
|
112
|
+
* actually caused rather than the number of times it asked.
|
|
113
|
+
*/
|
|
114
|
+
export function noteRowKeyScan(rows) {
|
|
115
|
+
rowScans += rows;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* The rows session operations walked to address an array's rows since the process started.
|
|
119
|
+
*
|
|
120
|
+
* An operation reads the answer the pass that committed the record already stated, so an ordinary
|
|
121
|
+
* member write adds nothing however many rows the array holds. Only a write that replaces the
|
|
122
|
+
* element list — a re-keyed row, a replaced container — derives a new answer, and then it is
|
|
123
|
+
* charged for the rows it had to walk and for no more than those.
|
|
124
|
+
*/
|
|
125
|
+
export function rowKeyScans() {
|
|
126
|
+
return rowScans;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* The array addressings a derivation built since the process started.
|
|
130
|
+
*
|
|
131
|
+
* Every member of an array asks the same question — which rows does this array address — so one
|
|
132
|
+
* pass must build it once per declared array rather than once per field that reads it. An
|
|
133
|
+
* artifact with M members once built M+1 copies of the same rows and M+1 token sets per pass.
|
|
134
|
+
*/
|
|
135
|
+
export function addressingsBuilt() {
|
|
136
|
+
return addressingBuilds;
|
|
137
|
+
}
|
|
138
|
+
/** Records one blocker identity canonicalised to compare two derived states. */
|
|
139
|
+
export function noteBlockerIdentity() {
|
|
140
|
+
blockerIdentities += 1;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* The blocker identities canonicalised since the process started.
|
|
144
|
+
*
|
|
145
|
+
* A delta compares two blocker lists, so every blocker on either side needs one identity. The
|
|
146
|
+
* count is twice the sum of the two lists when each identity is rebuilt for the added and the
|
|
147
|
+
* cleared set; a delta that builds each once moves it to the sum.
|
|
148
|
+
*/
|
|
149
|
+
export function blockerIdentityBuilds() {
|
|
150
|
+
return blockerIdentities;
|
|
151
|
+
}
|
|
152
|
+
/** Records one member a row template read to resolve a template member. */
|
|
153
|
+
export function noteRowTemplateMemberWalk(count = 1) {
|
|
154
|
+
rowTemplateWalks += count;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* The array members a row template read since the process started.
|
|
158
|
+
*
|
|
159
|
+
* Resolving each template member by scanning the declaration list is the template's entries
|
|
160
|
+
* times the array's members, per alternative and per failing row. An index built once per
|
|
161
|
+
* declaration charges the array's members once, which is the count this hook makes visible.
|
|
162
|
+
*/
|
|
163
|
+
export function rowTemplateMemberWalks() {
|
|
164
|
+
return rowTemplateWalks;
|
|
165
|
+
}
|
|
166
|
+
/** Records one recomputation of a fact that depends only on the compiled artifact. */
|
|
167
|
+
export function noteArtifactStaticDerivation() {
|
|
168
|
+
artifactDerivations += 1;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* The artifact-static facts recomputed since the process started.
|
|
172
|
+
*
|
|
173
|
+
* Budget limits and declaration indexes depend on the compiled artifact and no record, so a
|
|
174
|
+
* session pays for them once rather than once per pass and once per evaluation isolate.
|
|
175
|
+
*/
|
|
176
|
+
export function artifactStaticDerivations() {
|
|
177
|
+
return artifactDerivations;
|
|
178
|
+
}
|
|
179
|
+
/** Records one declared option condition evaluated against the record. */
|
|
180
|
+
export function noteAvailabilityCondition() {
|
|
181
|
+
availabilityConditionCount += 1;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* The option availability conditions evaluated since the process started.
|
|
185
|
+
*
|
|
186
|
+
* Availability is evaluated for every conditioned option on every addressed row. A pass that
|
|
187
|
+
* scopes it by the change closure evaluates only the declarations the change could move, so a
|
|
188
|
+
* write to an unrelated field leaves this count unchanged.
|
|
189
|
+
*/
|
|
190
|
+
export function availabilityConditionsEvaluated() {
|
|
191
|
+
return availabilityConditionCount;
|
|
192
|
+
}
|
|
193
|
+
/** Records one merge of a scoped availability answer into the committed map. */
|
|
194
|
+
export function noteAvailabilityMapCopy() {
|
|
195
|
+
availabilityMapCopyCount += 1;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* The availability maps a commit rebuilt since the process started.
|
|
199
|
+
*
|
|
200
|
+
* A commit that re-evaluated no declaration cannot move an answer, so it states the committed map
|
|
201
|
+
* unchanged and allocates nothing. The count is the commits whose scope named at least one
|
|
202
|
+
* conditioned declaration, which is the only case that pays a merge over every committed binding;
|
|
203
|
+
* the scoped answer itself may be empty (every condition on the reached row decided `true`) and
|
|
204
|
+
* still needs the merge to remove the committed binding it replaced.
|
|
205
|
+
*/
|
|
206
|
+
export function availabilityMapCopies() {
|
|
207
|
+
return availabilityMapCopyCount;
|
|
208
|
+
}
|
|
209
|
+
//# sourceMappingURL=measurement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measurement.js","sourceRoot":"","sources":["../../../src/eval/state/measurement.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,IAAI,cAAc,GAAG,CAAC,CAAC;AACvB,IAAI,cAAc,GAAG,CAAC,CAAC;AACvB,IAAI,gBAAgB,GAAG,CAAC,CAAC;AACzB,IAAI,eAAe,GAAG,CAAC,CAAC;AACxB,IAAI,iBAAiB,GAAG,CAAC,CAAC;AAC1B,IAAI,gBAAgB,GAAG,CAAC,CAAC;AACzB,IAAI,YAAY,GAAG,CAAC,CAAC;AACrB,IAAI,QAAQ,GAAG,CAAC,CAAC;AACjB,IAAI,iBAAiB,GAAG,CAAC,CAAC;AAC1B,IAAI,gBAAgB,GAAG,CAAC,CAAC;AACzB,IAAI,mBAAmB,GAAG,CAAC,CAAC;AAC5B,IAAI,0BAA0B,GAAG,CAAC,CAAC;AACnC,IAAI,wBAAwB,GAAG,CAAC,CAAC;AAEjC,sFAAsF;AACtF,MAAM,UAAU,gBAAgB;IAC9B,cAAc,IAAI,CAAC,CAAC;AACtB,CAAC;AAED,2DAA2D;AAC3D,MAAM,UAAU,mBAAmB;IACjC,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,uBAAuB;IACrC,cAAc,IAAI,CAAC,CAAC;AACtB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB;IAClC,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,wBAAwB;IACtC,gBAAgB,IAAI,CAAC,CAAC;AACxB,CAAC;AAED,6DAA6D;AAC7D,MAAM,UAAU,qBAAqB;IACnC,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,wFAAwF;AACxF,MAAM,UAAU,kBAAkB;IAChC,eAAe,IAAI,CAAC,CAAC;AACvB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,sFAAsF;AACtF,MAAM,UAAU,oBAAoB;IAClC,iBAAiB,IAAI,CAAC,CAAC;AACzB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,iBAAiB;IAC/B,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED,yDAAyD;AACzD,MAAM,UAAU,mBAAmB;IACjC,gBAAgB,IAAI,CAAC,CAAC;AACxB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB;IACjC,YAAY,IAAI,CAAC,CAAC;AACpB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,QAAQ,IAAI,IAAI,CAAC;AACnB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW;IACzB,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,mBAAmB;IACjC,iBAAiB,IAAI,CAAC,CAAC;AACzB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB;IACnC,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,yBAAyB,CAAC,KAAK,GAAG,CAAC;IACjD,gBAAgB,IAAI,KAAK,CAAC;AAC5B,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,sFAAsF;AACtF,MAAM,UAAU,4BAA4B;IAC1C,mBAAmB,IAAI,CAAC,CAAC;AAC3B,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB;IACvC,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,yBAAyB;IACvC,0BAA0B,IAAI,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,+BAA+B;IAC7C,OAAO,0BAA0B,CAAC;AACpC,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,uBAAuB;IACrC,wBAAwB,IAAI,CAAC,CAAC;AAChC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,qBAAqB;IACnC,OAAO,wBAAwB,CAAC;AAClC,CAAC","sourcesContent":["/**\n * Measurement hooks for the derivation's algorithmic properties.\n *\n * A hook is never an input: no decision reads a counter. They exist so a test can state that a\n * derivation does not scan the report once per row, or rebuild a binding snapshot per read,\n * as a count rather than a wall-clock duration, which is not a property of the code. The\n * spelling follows `wireValidations` and `restrictedCanonicalizations`.\n */\nlet derivedEntries = 0;\nlet rowTokenBuilds = 0;\nlet bindingSnapshots = 0;\nlet ruleResultReads = 0;\nlet compiledRuleReads = 0;\nlet addressingBuilds = 0;\nlet closureScans = 0;\nlet rowScans = 0;\nlet blockerIdentities = 0;\nlet rowTemplateWalks = 0;\nlet artifactDerivations = 0;\nlet availabilityConditionCount = 0;\nlet availabilityMapCopyCount = 0;\n\n/** Records one field entry a derivation actually derived rather than carried over. */\nexport function noteDerivedEntry(): void {\n derivedEntries += 1;\n}\n\n/** The field entries derived since the process started. */\nexport function derivedFieldEntries(): number {\n return derivedEntries;\n}\n\n/** Records one row-key token a derivation built to look one row's results up. */\nexport function noteReportRowTokenBuild(): void {\n rowTokenBuilds += 1;\n}\n\n/**\n * The row-key tokens report-result lookups built since the process started.\n *\n * A pass builds one token per addressed row it derives, and every rule naming that row looks its\n * answer up by the same token. Building the token inside each lookup made the count the rows\n * times the rules, which is the allocation this hook exists to make visible.\n */\nexport function reportRowTokenBuilds(): number {\n return rowTokenBuilds;\n}\n\n/** Records one binding snapshot built from a derived entry. */\nexport function noteBindingSnapshotBuild(): void {\n bindingSnapshots += 1;\n}\n\n/** The binding snapshots built since the process started. */\nexport function bindingSnapshotBuilds(): number {\n return bindingSnapshots;\n}\n\n/** Records one report result a derivation examined while grouping or looking one up. */\nexport function noteRuleResultRead(): void {\n ruleResultReads += 1;\n}\n\n/**\n * The report results a derivation examined since the process started.\n *\n * One derivation groups the report's results once, so this equals `report.rules.length` per\n * pass. A pass that instead scans the report for every rule it asks about multiplies the two\n * counts, which is the cost this hook exists to make visible.\n */\nexport function ruleResultsRead(): number {\n return ruleResultReads;\n}\n\n/** Records one compiled rule a derivation examined to answer a per-field question. */\nexport function noteCompiledRuleRead(): void {\n compiledRuleReads += 1;\n}\n\n/**\n * The compiled rules a derivation examined since the process started.\n *\n * Asking each field whether a writer owns it must not walk the rule list per field: the writer\n * targets are derived in one pass, so one derivation reads the artifact's rules once for them.\n * The derivation also reads the rule list once to index each rule by the field it decides, so a\n * derivation reads the list twice and a pass that adds a third walk is visible here.\n */\nexport function compiledRulesRead(): number {\n return compiledRuleReads;\n}\n\n/** Records one array's addressing a derivation built. */\nexport function noteAddressingBuild(): void {\n addressingBuilds += 1;\n}\n\n/**\n * Records one candidate rule a closure walked to follow a visibility or a block-kind edge.\n *\n * A `visible` rule re-enters every rule that asks `is_relevant`, and a rule that folds a block\n * kind re-enters every block rule of that kind. Both edges used to be found by scanning the whole\n * rule list for each rule the closure reached, so the walk was the rules squared; the artifact\n * now states the destination list, and the count is the rules the edge actually reaches.\n */\nexport function noteClosureRuleScan(): void {\n closureScans += 1;\n}\n\n/**\n * The candidate rules closures walked since the process started, `[ENGINE-3.1.4]`.\n *\n * One change to a form with R rules, of which one is `visible` and one folds a block kind, walked\n * R rules per pass to follow those two edges; a session that writes once per row does that R\n * times, which is the quadratic term this hook exists to make visible.\n */\nexport function closureRuleScans(): number {\n return closureScans;\n}\n\n/**\n * Records the rows one session operation walked to say which rows an array addresses.\n *\n * A row write asks the array's identity for the position of the written row, and a write that can\n * move a row's identity asks again whether the array is still addressable. Each ask that had to\n * re-derive the array's addressing is charged here in full, so the count states the work a write\n * actually caused rather than the number of times it asked.\n */\nexport function noteRowKeyScan(rows: number): void {\n rowScans += rows;\n}\n\n/**\n * The rows session operations walked to address an array's rows since the process started.\n *\n * An operation reads the answer the pass that committed the record already stated, so an ordinary\n * member write adds nothing however many rows the array holds. Only a write that replaces the\n * element list — a re-keyed row, a replaced container — derives a new answer, and then it is\n * charged for the rows it had to walk and for no more than those.\n */\nexport function rowKeyScans(): number {\n return rowScans;\n}\n\n/**\n * The array addressings a derivation built since the process started.\n *\n * Every member of an array asks the same question — which rows does this array address — so one\n * pass must build it once per declared array rather than once per field that reads it. An\n * artifact with M members once built M+1 copies of the same rows and M+1 token sets per pass.\n */\nexport function addressingsBuilt(): number {\n return addressingBuilds;\n}\n\n/** Records one blocker identity canonicalised to compare two derived states. */\nexport function noteBlockerIdentity(): void {\n blockerIdentities += 1;\n}\n\n/**\n * The blocker identities canonicalised since the process started.\n *\n * A delta compares two blocker lists, so every blocker on either side needs one identity. The\n * count is twice the sum of the two lists when each identity is rebuilt for the added and the\n * cleared set; a delta that builds each once moves it to the sum.\n */\nexport function blockerIdentityBuilds(): number {\n return blockerIdentities;\n}\n\n/** Records one member a row template read to resolve a template member. */\nexport function noteRowTemplateMemberWalk(count = 1): void {\n rowTemplateWalks += count;\n}\n\n/**\n * The array members a row template read since the process started.\n *\n * Resolving each template member by scanning the declaration list is the template's entries\n * times the array's members, per alternative and per failing row. An index built once per\n * declaration charges the array's members once, which is the count this hook makes visible.\n */\nexport function rowTemplateMemberWalks(): number {\n return rowTemplateWalks;\n}\n\n/** Records one recomputation of a fact that depends only on the compiled artifact. */\nexport function noteArtifactStaticDerivation(): void {\n artifactDerivations += 1;\n}\n\n/**\n * The artifact-static facts recomputed since the process started.\n *\n * Budget limits and declaration indexes depend on the compiled artifact and no record, so a\n * session pays for them once rather than once per pass and once per evaluation isolate.\n */\nexport function artifactStaticDerivations(): number {\n return artifactDerivations;\n}\n\n/** Records one declared option condition evaluated against the record. */\nexport function noteAvailabilityCondition(): void {\n availabilityConditionCount += 1;\n}\n\n/**\n * The option availability conditions evaluated since the process started.\n *\n * Availability is evaluated for every conditioned option on every addressed row. A pass that\n * scopes it by the change closure evaluates only the declarations the change could move, so a\n * write to an unrelated field leaves this count unchanged.\n */\nexport function availabilityConditionsEvaluated(): number {\n return availabilityConditionCount;\n}\n\n/** Records one merge of a scoped availability answer into the committed map. */\nexport function noteAvailabilityMapCopy(): void {\n availabilityMapCopyCount += 1;\n}\n\n/**\n * The availability maps a commit rebuilt since the process started.\n *\n * A commit that re-evaluated no declaration cannot move an answer, so it states the committed map\n * unchanged and allocates nothing. The count is the commits whose scope named at least one\n * conditioned declaration, which is the only case that pays a merge over every committed binding;\n * the scoped answer itself may be empty (every condition on the reached row decided `true`) and\n * still needs the merge to remove the committed binding it replaced.\n */\nexport function availabilityMapCopies(): number {\n return availabilityMapCopyCount;\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { OptionDomains } from '../options.js';
|
|
2
|
+
/**
|
|
3
|
+
* What a caller may supply to a form-state derivation that the artifact cannot derive.
|
|
4
|
+
*
|
|
5
|
+
* `identity` is the row identity of an assigned array, which the session manifest owns. A
|
|
6
|
+
* caller that has none leaves that array `unsupported` rather than inventing an identity in
|
|
7
|
+
* the derivation. A caller that has it reaches both halves of `describeFormState`: the
|
|
8
|
+
* evaluation keys its report rows from the same manifest, so the report and the fields state
|
|
9
|
+
* one answer rather than a row-less report beside rows.
|
|
10
|
+
*
|
|
11
|
+
* `optionDomains` is the domain a host's loader has returned for a binding whose field
|
|
12
|
+
* declares an `optionSource`, keyed by `fieldKey`. It is the one input eligibility is read
|
|
13
|
+
* from, so no caller recomputes it and the engine stores no page or cursor of its own.
|
|
14
|
+
*/
|
|
15
|
+
export interface FormStateOptions {
|
|
16
|
+
readonly identity?: ReadonlyMap<string, readonly (string | number)[]>;
|
|
17
|
+
readonly optionDomains?: OptionDomains;
|
|
18
|
+
}
|
|
19
|
+
/** The derivation options a caller that states none reads. */
|
|
20
|
+
export declare const NO_FORM_STATE_OPTIONS: FormStateOptions;
|
|
21
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/eval/state/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IACtE,QAAQ,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC;CACxC;AAED,8DAA8D;AAC9D,eAAO,MAAM,qBAAqB,EAAE,gBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/eval/state/options.ts"],"names":[],"mappings":"AAoBA,8DAA8D;AAC9D,MAAM,CAAC,MAAM,qBAAqB,GAAqB,EAAE,CAAC","sourcesContent":["import type { OptionDomains } from '../options.js';\n\n/**\n * What a caller may supply to a form-state derivation that the artifact cannot derive.\n *\n * `identity` is the row identity of an assigned array, which the session manifest owns. A\n * caller that has none leaves that array `unsupported` rather than inventing an identity in\n * the derivation. A caller that has it reaches both halves of `describeFormState`: the\n * evaluation keys its report rows from the same manifest, so the report and the fields state\n * one answer rather than a row-less report beside rows.\n *\n * `optionDomains` is the domain a host's loader has returned for a binding whose field\n * declares an `optionSource`, keyed by `fieldKey`. It is the one input eligibility is read\n * from, so no caller recomputes it and the engine stores no page or cursor of its own.\n */\nexport interface FormStateOptions {\n readonly identity?: ReadonlyMap<string, readonly (string | number)[]>;\n readonly optionDomains?: OptionDomains;\n}\n\n/** The derivation options a caller that states none reads. */\nexport const NO_FORM_STATE_OPTIONS: FormStateOptions = {};\n"]}
|
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import type { GateItemResult, EvaluatedSuggestion, ScreenOutcome, ScreenReason, Severity, WireValue, Outcome } from '../../model/types.js';
|
|
2
|
+
import type { CompiledSchema } from '../../model/schema.js';
|
|
3
|
+
import type { GateVerdict } from '../gate.js';
|
|
4
|
+
import type { DerivedRules, FormFieldState } from './field-state.js';
|
|
5
|
+
import type { FormSnapshot } from './snapshot.js';
|
|
6
|
+
import type { FormStateOptions } from './options.js';
|
|
7
|
+
/**
|
|
8
|
+
* The five verdicts a gate can present, `[ENGINE-7.1.5]`: the four the gate surface reports,
|
|
9
|
+
* plus the one a gate its `activeWhen` switched off states. The status-to-verdict answer is
|
|
10
|
+
* `gateOutcome`, the same table `evaluateGate` reads, so a derived state and the gate surface
|
|
11
|
+
* cannot present one status as two verdicts.
|
|
12
|
+
*/
|
|
13
|
+
export type GateOutcome = GateVerdict | 'INACTIVE';
|
|
14
|
+
/** One declared gate's state, with the items it folded. */
|
|
15
|
+
export interface FormGateState {
|
|
16
|
+
readonly gateId: string;
|
|
17
|
+
readonly hard: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The gate's effective severity. Only a `block` gate can refuse the submission; a `warn`
|
|
20
|
+
* or `info` gate still reports its own outcome, but readiness does not turn it into a
|
|
21
|
+
* blocker (`RULES-1.1.5`).
|
|
22
|
+
*/
|
|
23
|
+
readonly severity: Severity;
|
|
24
|
+
/** The gate rule's own status, before the verdict's presentation. */
|
|
25
|
+
readonly status: Outcome;
|
|
26
|
+
readonly outcome: GateOutcome;
|
|
27
|
+
readonly items: readonly GateItemResult[];
|
|
28
|
+
}
|
|
29
|
+
/** One declared screen's state. */
|
|
30
|
+
export interface FormScreenState {
|
|
31
|
+
readonly screenId: string;
|
|
32
|
+
readonly severity: Severity;
|
|
33
|
+
/**
|
|
34
|
+
* The sentence the artifact declared for this screen, when it declared one.
|
|
35
|
+
*
|
|
36
|
+
* The report states only the outcome and the reasons, so this is read from the compiled rule:
|
|
37
|
+
* a host that renders a blocked screen translates this key, and an artifact that declared
|
|
38
|
+
* none leaves the screen's own rule id as the visible fallback. The same key is stated on the
|
|
39
|
+
* `screen` arm of `FormUndeterminedCheck`, so a decided and an undecided screen are named
|
|
40
|
+
* alike.
|
|
41
|
+
*/
|
|
42
|
+
readonly messageKey?: string;
|
|
43
|
+
readonly outcome: ScreenOutcome;
|
|
44
|
+
readonly reasons: readonly ScreenReason[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* One block-severity check this device could not decide.
|
|
48
|
+
*
|
|
49
|
+
* It is not a blocker: a blocker is a decided refusal, and this is the absence of a decision
|
|
50
|
+
* (`RULES-2.1.1`, `RULES-2.1.9`). It still refuses the submission, under the `UNDETERMINED`
|
|
51
|
+
* verdict, because a device that cannot answer "at least one row" must not pass the record on
|
|
52
|
+
* as though it had. `kind` names the check, and the message key the artifact declared lets a
|
|
53
|
+
* host say which question is open.
|
|
54
|
+
*/
|
|
55
|
+
export type FormUndeterminedCheck = {
|
|
56
|
+
readonly kind: 'rule';
|
|
57
|
+
readonly ruleId: string;
|
|
58
|
+
readonly fieldId?: string;
|
|
59
|
+
readonly rowKey?: string | number;
|
|
60
|
+
readonly messageKey?: string;
|
|
61
|
+
readonly params?: Readonly<Record<string, WireValue>>;
|
|
62
|
+
} | {
|
|
63
|
+
readonly kind: 'required';
|
|
64
|
+
readonly fieldId: string;
|
|
65
|
+
readonly rowKey?: string | number;
|
|
66
|
+
readonly messageKey?: string;
|
|
67
|
+
readonly params?: Readonly<Record<string, WireValue>>;
|
|
68
|
+
} | {
|
|
69
|
+
readonly kind: 'screen';
|
|
70
|
+
readonly screenId: string;
|
|
71
|
+
readonly messageKey?: string;
|
|
72
|
+
} | {
|
|
73
|
+
/**
|
|
74
|
+
* A block-severity gate, or one of its items, that did not decide.
|
|
75
|
+
*
|
|
76
|
+
* The gate's own *surface* verdict stays `BLOCKED` for an undecided status
|
|
77
|
+
* (`gateOutcome`), because `evaluateGate` has no undecided arm by design. Readiness is the
|
|
78
|
+
* place the distinction belongs: an undecided gate is not a cause the respondent got
|
|
79
|
+
* wrong, so it is listed here rather than in `blockers`. `itemId` is present when one
|
|
80
|
+
* item could not be decided, and absent when the gate's own expression could not.
|
|
81
|
+
*/
|
|
82
|
+
readonly kind: 'gate';
|
|
83
|
+
readonly gateId: string;
|
|
84
|
+
readonly itemId?: string;
|
|
85
|
+
} | {
|
|
86
|
+
/**
|
|
87
|
+
* A held option code whose availability condition decided neither way, `RULES-7.1.1`.
|
|
88
|
+
*
|
|
89
|
+
* It is an open question rather than a failure: the record may not submit while the device
|
|
90
|
+
* cannot say whether the code it holds may be used, and `cause` says whether a server
|
|
91
|
+
* handoff or an unanswered read left it undecided. A code the record does not hold is not a
|
|
92
|
+
* check, and an unavailable held code is a decided blocker instead (`RULES-7.1.6`).
|
|
93
|
+
*/
|
|
94
|
+
readonly kind: 'unavailableOption';
|
|
95
|
+
readonly fieldId: string;
|
|
96
|
+
readonly rowKey?: string | number;
|
|
97
|
+
readonly code: string | number;
|
|
98
|
+
/** The label key the declaration or the loaded page states for the code, when it states one. */
|
|
99
|
+
readonly labelKey?: string;
|
|
100
|
+
readonly cause: 'deferred' | 'unknown';
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* One block-severity check the overlay skipped, `RULES-2.1.1`.
|
|
104
|
+
*
|
|
105
|
+
* A check whose only undecided cause is a read this device may not perform is not an open
|
|
106
|
+
* question and is not a pass: no respondent action decides it, so readiness leaves it out of
|
|
107
|
+
* both lists. A host that paints the report's rule results must leave it out too, which is why
|
|
108
|
+
* the classification travels here rather than being re-derived from the report's `UNKNOWN`.
|
|
109
|
+
*/
|
|
110
|
+
export type FormSkippedCheck = {
|
|
111
|
+
readonly kind: 'rule';
|
|
112
|
+
readonly ruleId: string;
|
|
113
|
+
readonly fieldId?: string;
|
|
114
|
+
readonly rowKey?: string | number;
|
|
115
|
+
} | {
|
|
116
|
+
readonly kind: 'screen';
|
|
117
|
+
readonly screenId: string;
|
|
118
|
+
} | {
|
|
119
|
+
readonly kind: 'gate';
|
|
120
|
+
readonly gateId: string;
|
|
121
|
+
readonly itemId?: string;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* A computed value the engine could not decide.
|
|
125
|
+
*
|
|
126
|
+
* It is stated for the host and never refuses a submission: a writer is not a check the
|
|
127
|
+
* respondent can satisfy, and `RULES-2.1.7` says an undetermined computation writes `null` and
|
|
128
|
+
* reports its status rather than a substituted value. An author who needs the total to be a
|
|
129
|
+
* requirement declares `required` on it, which then answers `undetermined` here.
|
|
130
|
+
*/
|
|
131
|
+
export interface FormUndeterminedComputation {
|
|
132
|
+
readonly fieldId: string;
|
|
133
|
+
readonly rowKey?: string | number;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* One thing that stops a submission.
|
|
137
|
+
*
|
|
138
|
+
* Only a decided `FAIL` is a rule blocker: a `DEFERRED` server check is a handoff, not a
|
|
139
|
+
* refusal, and `ready` can be true while `hasDeferredChecks` reports one. A missing required
|
|
140
|
+
* value is the exception to "a blocker is a rule failure": the rule's condition fired, so its
|
|
141
|
+
* result is `PASS`, and the failure is the field's `missingRequired`. It carries its own kind
|
|
142
|
+
* and the binding it names, so a summary can attribute the refusal to a control instead of
|
|
143
|
+
* reading a second list of keys.
|
|
144
|
+
*/
|
|
145
|
+
export type FormBlocker = {
|
|
146
|
+
readonly kind: 'rule';
|
|
147
|
+
readonly ruleId: string;
|
|
148
|
+
readonly fieldId?: string;
|
|
149
|
+
readonly rowKey?: string | number;
|
|
150
|
+
readonly messageKey: string;
|
|
151
|
+
readonly params?: Readonly<Record<string, WireValue>>;
|
|
152
|
+
/**
|
|
153
|
+
* The alternatives the failing rule offers, `RULES-6.1.3`.
|
|
154
|
+
*
|
|
155
|
+
* They are the ones the report's result for this failure carries, so a host that paints a
|
|
156
|
+
* blocker can offer what applying would clear it with. Absent when the artifact declares
|
|
157
|
+
* none, when the rule did not fail, and when every alternative named a target or read a
|
|
158
|
+
* value the access boundary withholds: a disabled stub is still an answer about a value the
|
|
159
|
+
* reader may not see. The engine applies none of them; the write guard stays authoritative.
|
|
160
|
+
*/
|
|
161
|
+
readonly suggestions?: readonly EvaluatedSuggestion[];
|
|
162
|
+
} | {
|
|
163
|
+
readonly kind: 'required';
|
|
164
|
+
/**
|
|
165
|
+
* The field the requirement names; a container's own requirement names the container.
|
|
166
|
+
*
|
|
167
|
+
* There is deliberately no `ruleId`: a requirement blocks because its condition decided
|
|
168
|
+
* `PASS` and presence did not, so no rule failed to name (`RULES-2.1.5`). Several rules
|
|
169
|
+
* may hold one field's requirement at once and the derivation folds them into one answer,
|
|
170
|
+
* so a single id here would attribute the gap to a rule that did not decide it. The
|
|
171
|
+
* binding is the identity a caller can act on.
|
|
172
|
+
*/
|
|
173
|
+
readonly fieldId: string;
|
|
174
|
+
/** The row whose member is missing, when the requirement is one row's. */
|
|
175
|
+
readonly rowKey?: string | number;
|
|
176
|
+
/**
|
|
177
|
+
* The row's own name, when its key is one the reader can see.
|
|
178
|
+
*
|
|
179
|
+
* A natural or value key is authored text, so it is the name a sentence may use. A key the
|
|
180
|
+
* host minted addresses the row and names nothing, and is omitted here rather than printed.
|
|
181
|
+
* The decision is made once, where the declaration's addressing is known, so no renderer
|
|
182
|
+
* inspects a key's spelling.
|
|
183
|
+
*/
|
|
184
|
+
readonly rowName?: string;
|
|
185
|
+
/**
|
|
186
|
+
* The sentence a `required` rule declared, when it declared one. A missing required
|
|
187
|
+
* value has no message by design — the host writes the sentence — so this is absent
|
|
188
|
+
* unless the artifact itself supplied one.
|
|
189
|
+
*/
|
|
190
|
+
readonly messageKey?: string;
|
|
191
|
+
readonly params?: Readonly<Record<string, WireValue>>;
|
|
192
|
+
} | {
|
|
193
|
+
readonly kind: 'gate';
|
|
194
|
+
readonly gateId: string;
|
|
195
|
+
readonly itemId: string;
|
|
196
|
+
readonly messageKey: string;
|
|
197
|
+
readonly params?: Readonly<Record<string, WireValue>>;
|
|
198
|
+
} | {
|
|
199
|
+
/**
|
|
200
|
+
* An array whose entry count is outside its declared range, `MODEL-2.1.17`.
|
|
201
|
+
*
|
|
202
|
+
* It is a decided blocker with no artifact message: the host writes the sentence, as it
|
|
203
|
+
* does for a missing required value. The count and the limit are stated so the sentence
|
|
204
|
+
* can name both without re-reading the record.
|
|
205
|
+
*/
|
|
206
|
+
readonly kind: 'cardinality';
|
|
207
|
+
readonly fieldId: string;
|
|
208
|
+
readonly bound: 'minItems' | 'maxItems';
|
|
209
|
+
readonly count: number;
|
|
210
|
+
readonly limit: number;
|
|
211
|
+
} | {
|
|
212
|
+
/**
|
|
213
|
+
* A `decimal` value whose canonical text carries more fractional digits than its
|
|
214
|
+
* declared bound, `MODEL-2.1.27`.
|
|
215
|
+
*
|
|
216
|
+
* It is a decided blocker with the sentence the declaration required, because the fact
|
|
217
|
+
* is not a rule: there is no `validate` result to name, so the artifact carries
|
|
218
|
+
* `maxScaleMessageKey` and this blocker states it. `value` is the canonical decimal text,
|
|
219
|
+
* `scale` the fractional digits it carries, and `limit` the declared bound.
|
|
220
|
+
*/
|
|
221
|
+
readonly kind: 'scale';
|
|
222
|
+
readonly fieldId: string;
|
|
223
|
+
readonly member: 'maxScale';
|
|
224
|
+
readonly limit: number;
|
|
225
|
+
readonly scale: number;
|
|
226
|
+
readonly value: string;
|
|
227
|
+
readonly messageKey?: string;
|
|
228
|
+
readonly rowKey?: string | number;
|
|
229
|
+
} | {
|
|
230
|
+
/**
|
|
231
|
+
* A captured media value that violates a declared constraint, `MODEL-2.1.20`.
|
|
232
|
+
*
|
|
233
|
+
* Like a count, it is a decided fact with no artifact message: the host writes the
|
|
234
|
+
* sentence. The limit and the offending value are stated so the sentence can name both
|
|
235
|
+
* without re-reading the record: the admitted media types, or the byte bound, and the
|
|
236
|
+
* captured `mime` or `byteSize`. `index` names the element of an array field, and
|
|
237
|
+
* `rowKey` names the row when the capture is an array member.
|
|
238
|
+
*/
|
|
239
|
+
readonly kind: 'media';
|
|
240
|
+
readonly fieldId: string;
|
|
241
|
+
readonly member: 'accept';
|
|
242
|
+
readonly limit: readonly string[];
|
|
243
|
+
readonly value: string;
|
|
244
|
+
readonly index?: number;
|
|
245
|
+
readonly rowKey?: string | number;
|
|
246
|
+
} | {
|
|
247
|
+
readonly kind: 'media';
|
|
248
|
+
readonly fieldId: string;
|
|
249
|
+
readonly member: 'minBytes' | 'maxBytes';
|
|
250
|
+
readonly limit: number;
|
|
251
|
+
readonly value: number;
|
|
252
|
+
readonly index?: number;
|
|
253
|
+
readonly rowKey?: string | number;
|
|
254
|
+
} | {
|
|
255
|
+
/**
|
|
256
|
+
* An array whose declared `rowsFrom` expected count differs from its length, or whose
|
|
257
|
+
* count expression refuses (`MODEL-2.1.22`).
|
|
258
|
+
*
|
|
259
|
+
* Like a count bound it is a decided fact with no artifact message: the host writes the
|
|
260
|
+
* sentence. `source` is the authored expression, so a host can say "three names, three
|
|
261
|
+
* rows"; `reason` is present when the count itself was refused rather than merely
|
|
262
|
+
* different, and `ceiling` names the admitted maximum.
|
|
263
|
+
*/
|
|
264
|
+
readonly kind: 'rowCount';
|
|
265
|
+
readonly fieldId: string;
|
|
266
|
+
readonly expected: number;
|
|
267
|
+
readonly actual: number;
|
|
268
|
+
readonly source: string;
|
|
269
|
+
readonly reason?: 'integer' | 'negative' | 'ceiling';
|
|
270
|
+
readonly ceiling?: number;
|
|
271
|
+
} | {
|
|
272
|
+
/**
|
|
273
|
+
* A held value the field's declaration refuses, `[DATA-5.1.3]`, `[ENGINE-7.1.5]`.
|
|
274
|
+
*
|
|
275
|
+
* A closed option domain refuses a stale selection; a wire declaration refuses a value
|
|
276
|
+
* whose shape or declared domain it does not admit (a money scale, a quantity unit). It is
|
|
277
|
+
* a decided refusal with no artifact message — a stale option code after a domain change,
|
|
278
|
+
* or a stored value no reader can admit — so the host writes the sentence. `value` is the
|
|
279
|
+
* canonical held value when the refusing domain left one to state; a wire refusal has none,
|
|
280
|
+
* because the declaration rejected it, and `path` names the member the reader refused.
|
|
281
|
+
* `rowKey` names the row when the value lives in an array member.
|
|
282
|
+
*/
|
|
283
|
+
readonly kind: 'invalidOption';
|
|
284
|
+
readonly fieldId: string;
|
|
285
|
+
readonly value?: WireValue;
|
|
286
|
+
readonly path?: string;
|
|
287
|
+
readonly rowKey?: string | number;
|
|
288
|
+
} | {
|
|
289
|
+
/**
|
|
290
|
+
* A block-severity screen that decided the record needs a human, `RULES-2.1.3`.
|
|
291
|
+
*
|
|
292
|
+
* `SCREEN_FAIL` and `SCREEN_REFER` are both refusals; the outcome and the reasons are
|
|
293
|
+
* stated so the host can name the rule and its causes without reading the screen report
|
|
294
|
+
* again. A screen that merely decided `SCREEN_PASS`, or could not decide at all, is not a
|
|
295
|
+
* blocker.
|
|
296
|
+
*/
|
|
297
|
+
readonly kind: 'screen';
|
|
298
|
+
readonly screenId: string;
|
|
299
|
+
readonly outcome: 'SCREEN_FAIL' | 'SCREEN_REFER';
|
|
300
|
+
readonly messageKey?: string;
|
|
301
|
+
readonly reasons: readonly ScreenReason[];
|
|
302
|
+
} | {
|
|
303
|
+
/**
|
|
304
|
+
* A held option code the domain offers and this record may not choose, `RULES-7.1.6`.
|
|
305
|
+
*
|
|
306
|
+
* It is a decided local failure, exactly as `invalidOption` is, so the form is `BLOCKED`
|
|
307
|
+
* and never `UNDETERMINED` on this count. `code` names the held code, and `rowKey` names the
|
|
308
|
+
* row when the field is a record-array member. `messageKey` and `params` carry the sentence
|
|
309
|
+
* the declaration or the host page stated; a host that supplies none writes its own, as it
|
|
310
|
+
* does for a missing required value. `suggestions` are the alternatives the option offers
|
|
311
|
+
* for the held code (`RULES-7.1.4`), already evaluated and access-filtered; the engine
|
|
312
|
+
* applies none of them. The held value itself is never cleared or replaced.
|
|
313
|
+
*/
|
|
314
|
+
readonly kind: 'unavailableOption';
|
|
315
|
+
readonly fieldId: string;
|
|
316
|
+
readonly rowKey?: string | number;
|
|
317
|
+
readonly code: string | number;
|
|
318
|
+
readonly messageKey?: string;
|
|
319
|
+
readonly params?: Readonly<Record<string, WireValue>>;
|
|
320
|
+
readonly suggestions?: readonly EvaluatedSuggestion[];
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* The one verdict a host gates a submission on.
|
|
324
|
+
*
|
|
325
|
+
* `SUBMIT` means this device found nothing blocking and nothing undecided; it is still a local
|
|
326
|
+
* proposal, and a `hasDeferredChecks` record is a handoff the server must settle. `BLOCKED`
|
|
327
|
+
* means at least one thing this device *can* see is decided against the record, and the
|
|
328
|
+
* blockers name it. `UNDETERMINED` means nothing decided is wrong, but at least one
|
|
329
|
+
* block-severity check could not be decided: the form is undecided, not wrong, and
|
|
330
|
+
* `undeterminedChecks` names every open question. The report's own status, a gate's `OPEN`
|
|
331
|
+
* badge and local readiness are all *inputs* to this fold, never separate answers a host has
|
|
332
|
+
* to combine.
|
|
333
|
+
*/
|
|
334
|
+
export type SubmissionVerdict = 'SUBMIT' | 'BLOCKED' | 'UNDETERMINED';
|
|
335
|
+
/**
|
|
336
|
+
* The readiness facts a host gates on, stated apart from the report's `status`.
|
|
337
|
+
*
|
|
338
|
+
* It is the subset of `FormState` an admission decision reads: the verdict, the decided blockers,
|
|
339
|
+
* the open checks and whether a server handoff remains. `evaluate()` states it beside the sealed
|
|
340
|
+
* report as `readiness`; `submissionVerdict()` states the same answer as its `outcome` and `form`.
|
|
341
|
+
* `status` is the rules fold and is never this answer.
|
|
342
|
+
*/
|
|
343
|
+
export interface Readiness {
|
|
344
|
+
readonly verdict: SubmissionVerdict;
|
|
345
|
+
readonly ready: boolean;
|
|
346
|
+
readonly blockers: readonly FormBlocker[];
|
|
347
|
+
readonly undeterminedChecks: readonly FormUndeterminedCheck[];
|
|
348
|
+
/** Every check the access answer skipped, so a host never paints one as passed or failed. */
|
|
349
|
+
readonly skippedChecks: readonly FormSkippedCheck[];
|
|
350
|
+
readonly hasDeferredChecks: boolean;
|
|
351
|
+
}
|
|
352
|
+
/** The readiness answer, distinct from the report's own folded status. */
|
|
353
|
+
interface FormReadiness {
|
|
354
|
+
readonly gates: readonly FormGateState[];
|
|
355
|
+
readonly screens: readonly FormScreenState[];
|
|
356
|
+
readonly blockers: readonly FormBlocker[];
|
|
357
|
+
/**
|
|
358
|
+
* Whether the local readiness fold is clean. It is not `report.status`: a hidden field's
|
|
359
|
+
* branch folds into nothing (`RULES-1.1.5`), and a `validate` rule that fails on a hidden
|
|
360
|
+
* field folds there while leaving nothing for a caller to fix (`RULES-2.1.10`).
|
|
361
|
+
*
|
|
362
|
+
* It is a *fact*, not permission. A host gates on `verdict`; `ready` is the local half of
|
|
363
|
+
* that verdict and is stated here so a control can explain it. It is true exactly when
|
|
364
|
+
* `verdict` is `SUBMIT`, so a deferred handoff leaves it true.
|
|
365
|
+
*/
|
|
366
|
+
readonly ready: boolean;
|
|
367
|
+
/** Whether a server-tier decision remains, so `SUBMIT` is a handoff rather than a finish. */
|
|
368
|
+
readonly hasDeferredChecks: boolean;
|
|
369
|
+
/**
|
|
370
|
+
* Every block-severity check the device could not decide, in declaration order.
|
|
371
|
+
*
|
|
372
|
+
* The list is the reason an `UNDETERMINED` verdict is not a `SUBMIT`: a host reads it to say
|
|
373
|
+
* which question is open. It is not a second flag beside `verdict`; `hasUndeterminedChecks`
|
|
374
|
+
* exists only because a form can be `BLOCKED` and undecided at once.
|
|
375
|
+
*/
|
|
376
|
+
readonly undeterminedChecks: readonly FormUndeterminedCheck[];
|
|
377
|
+
readonly hasUndeterminedChecks: boolean;
|
|
378
|
+
/**
|
|
379
|
+
* Every check the access answer skipped, in declaration order, `RULES-2.1.1`.
|
|
380
|
+
*
|
|
381
|
+
* It is neither a blocker nor an open question: the report keeps stating `UNKNOWN` for the
|
|
382
|
+
* access-denied read, and this is the readiness classification a host reads to leave the check
|
|
383
|
+
* out of a painted result list rather than counting it as unanswered.
|
|
384
|
+
*/
|
|
385
|
+
readonly skippedChecks: readonly FormSkippedCheck[];
|
|
386
|
+
/** Every computed value the engine could not decide. Informational, never a refusal. */
|
|
387
|
+
readonly undeterminedComputations: readonly FormUndeterminedComputation[];
|
|
388
|
+
/** The one verdict a host branches on: `SUBMIT` when nothing local blocks or is undecided. */
|
|
389
|
+
readonly verdict: SubmissionVerdict;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Derives the gates, screens, blockers and the readiness predicate from one snapshot.
|
|
393
|
+
*
|
|
394
|
+
* `rules` is the derivation's one index of the report, so a rule's own answer is a map hit: the
|
|
395
|
+
* report states one result per rule — and one per row for an item rule — and looking each rule's
|
|
396
|
+
* answer up with a scan of that list, once per compiled rule, made this pass the rules squared.
|
|
397
|
+
*/
|
|
398
|
+
export declare function deriveReadiness(compiled: CompiledSchema, snapshot: FormSnapshot, fields: readonly FormFieldState[], rules: DerivedRules, options: FormStateOptions): FormReadiness;
|
|
399
|
+
export {};
|
|
400
|
+
//# sourceMappingURL=readiness.d.ts.map
|