@azx-pbc/axiom-compiler 0.0.0-stage → 0.0.6
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 +415 -2
- package/dist/article.d.ts +12 -0
- package/dist/article.d.ts.map +1 -0
- package/dist/article.js +16 -0
- package/dist/article.js.map +1 -0
- package/dist/cli/args.d.ts +101 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +158 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/check.d.ts +2 -0
- package/dist/cli/check.d.ts.map +1 -0
- package/dist/cli/check.js +33 -0
- package/dist/cli/check.js.map +1 -0
- package/dist/cli/compile.d.ts +2 -0
- package/dist/cli/compile.d.ts.map +1 -0
- package/dist/cli/compile.js +43 -0
- package/dist/cli/compile.js.map +1 -0
- package/dist/cli/count.d.ts +15 -0
- package/dist/cli/count.d.ts.map +1 -0
- package/dist/cli/count.js +21 -0
- package/dist/cli/count.js.map +1 -0
- package/dist/cli/dataset.d.ts +28 -0
- package/dist/cli/dataset.d.ts.map +1 -0
- package/dist/cli/dataset.js +115 -0
- package/dist/cli/dataset.js.map +1 -0
- package/dist/cli/diff.d.ts +2 -0
- package/dist/cli/diff.d.ts.map +1 -0
- package/dist/cli/diff.js +297 -0
- package/dist/cli/diff.js.map +1 -0
- package/dist/cli/explain.d.ts +2 -0
- package/dist/cli/explain.d.ts.map +1 -0
- package/dist/cli/explain.js +95 -0
- package/dist/cli/explain.js.map +1 -0
- package/dist/cli/fields.d.ts +11 -0
- package/dist/cli/fields.d.ts.map +1 -0
- package/dist/cli/fields.js +13 -0
- package/dist/cli/fields.js.map +1 -0
- package/dist/cli/main.d.ts +2 -0
- package/dist/cli/main.d.ts.map +1 -0
- package/dist/cli/main.js +40 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/cli/read.d.ts +56 -0
- package/dist/cli/read.d.ts.map +1 -0
- package/dist/cli/read.js +179 -0
- package/dist/cli/read.js.map +1 -0
- package/dist/cli/render.d.ts +58 -0
- package/dist/cli/render.d.ts.map +1 -0
- package/dist/cli/render.js +422 -0
- package/dist/cli/render.js.map +1 -0
- package/dist/cli/schema.d.ts +28 -0
- package/dist/cli/schema.d.ts.map +1 -0
- package/dist/cli/schema.js +46 -0
- package/dist/cli/schema.js.map +1 -0
- package/dist/cli/suite-report.d.ts +18 -0
- package/dist/cli/suite-report.d.ts.map +1 -0
- package/dist/cli/suite-report.js +58 -0
- package/dist/cli/suite-report.js.map +1 -0
- package/dist/cli/suites.d.ts +25 -0
- package/dist/cli/suites.d.ts.map +1 -0
- package/dist/cli/suites.js +67 -0
- package/dist/cli/suites.js.map +1 -0
- package/dist/cli/terminal.d.ts +45 -0
- package/dist/cli/terminal.d.ts.map +1 -0
- package/dist/cli/terminal.js +119 -0
- package/dist/cli/terminal.js.map +1 -0
- package/dist/cli/test.d.ts +12 -0
- package/dist/cli/test.d.ts.map +1 -0
- package/dist/cli/test.js +199 -0
- package/dist/cli/test.js.map +1 -0
- package/dist/cli/usage.d.ts +15 -0
- package/dist/cli/usage.d.ts.map +1 -0
- package/dist/cli/usage.js +95 -0
- package/dist/cli/usage.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +51 -0
- package/dist/cli.js.map +1 -0
- package/dist/compile/artifact-members.d.ts +57 -0
- package/dist/compile/artifact-members.d.ts.map +1 -0
- package/dist/compile/artifact-members.js +130 -0
- package/dist/compile/artifact-members.js.map +1 -0
- package/dist/compile/artifact.d.ts +20 -0
- package/dist/compile/artifact.d.ts.map +1 -0
- package/dist/compile/artifact.js +87 -0
- package/dist/compile/artifact.js.map +1 -0
- package/dist/compile/compilation.d.ts +46 -0
- package/dist/compile/compilation.d.ts.map +1 -0
- package/dist/compile/compilation.js +4 -0
- package/dist/compile/compilation.js.map +1 -0
- package/dist/compile/computed.d.ts +22 -0
- package/dist/compile/computed.d.ts.map +1 -0
- package/dist/compile/computed.js +245 -0
- package/dist/compile/computed.js.map +1 -0
- package/dist/compile/condition-warnings.d.ts +12 -0
- package/dist/compile/condition-warnings.d.ts.map +1 -0
- package/dist/compile/condition-warnings.js +26 -0
- package/dist/compile/condition-warnings.js.map +1 -0
- package/dist/compile/conditions.d.ts +18 -0
- package/dist/compile/conditions.d.ts.map +1 -0
- package/dist/compile/conditions.js +22 -0
- package/dist/compile/conditions.js.map +1 -0
- package/dist/compile/cross-checks.d.ts +67 -0
- package/dist/compile/cross-checks.d.ts.map +1 -0
- package/dist/compile/cross-checks.js +238 -0
- package/dist/compile/cross-checks.js.map +1 -0
- package/dist/compile/datasets.d.ts +52 -0
- package/dist/compile/datasets.d.ts.map +1 -0
- package/dist/compile/datasets.js +183 -0
- package/dist/compile/datasets.js.map +1 -0
- package/dist/compile/dead-weight.d.ts +26 -0
- package/dist/compile/dead-weight.d.ts.map +1 -0
- package/dist/compile/dead-weight.js +244 -0
- package/dist/compile/dead-weight.js.map +1 -0
- package/dist/compile/declaration-rules.d.ts +54 -0
- package/dist/compile/declaration-rules.d.ts.map +1 -0
- package/dist/compile/declaration-rules.js +510 -0
- package/dist/compile/declaration-rules.js.map +1 -0
- package/dist/compile/declarations.d.ts +44 -0
- package/dist/compile/declarations.d.ts.map +1 -0
- package/dist/compile/declarations.js +160 -0
- package/dist/compile/declarations.js.map +1 -0
- package/dist/compile/document.d.ts +4 -0
- package/dist/compile/document.d.ts.map +1 -0
- package/dist/compile/document.js +13 -0
- package/dist/compile/document.js.map +1 -0
- package/dist/compile/expression.d.ts +38 -0
- package/dist/compile/expression.d.ts.map +1 -0
- package/dist/compile/expression.js +288 -0
- package/dist/compile/expression.js.map +1 -0
- package/dist/compile/hashes.d.ts +26 -0
- package/dist/compile/hashes.d.ts.map +1 -0
- package/dist/compile/hashes.js +96 -0
- package/dist/compile/hashes.js.map +1 -0
- package/dist/compile/item-targets.d.ts +12 -0
- package/dist/compile/item-targets.d.ts.map +1 -0
- package/dist/compile/item-targets.js +287 -0
- package/dist/compile/item-targets.js.map +1 -0
- package/dist/compile/messages.d.ts +8 -0
- package/dist/compile/messages.d.ts.map +1 -0
- package/dist/compile/messages.js +62 -0
- package/dist/compile/messages.js.map +1 -0
- package/dist/compile/option-availability.d.ts +51 -0
- package/dist/compile/option-availability.d.ts.map +1 -0
- package/dist/compile/option-availability.js +171 -0
- package/dist/compile/option-availability.js.map +1 -0
- package/dist/compile/option-codes.d.ts +27 -0
- package/dist/compile/option-codes.d.ts.map +1 -0
- package/dist/compile/option-codes.js +212 -0
- package/dist/compile/option-codes.js.map +1 -0
- package/dist/compile/references.d.ts +14 -0
- package/dist/compile/references.d.ts.map +1 -0
- package/dist/compile/references.js +126 -0
- package/dist/compile/references.js.map +1 -0
- package/dist/compile/rows-from.d.ts +27 -0
- package/dist/compile/rows-from.d.ts.map +1 -0
- package/dist/compile/rows-from.js +164 -0
- package/dist/compile/rows-from.js.map +1 -0
- package/dist/compile/rules.d.ts +58 -0
- package/dist/compile/rules.d.ts.map +1 -0
- package/dist/compile/rules.js +327 -0
- package/dist/compile/rules.js.map +1 -0
- package/dist/compile/suggestions.d.ts +52 -0
- package/dist/compile/suggestions.d.ts.map +1 -0
- package/dist/compile/suggestions.js +633 -0
- package/dist/compile/suggestions.js.map +1 -0
- package/dist/compile/targets.d.ts +22 -0
- package/dist/compile/targets.d.ts.map +1 -0
- package/dist/compile/targets.js +125 -0
- package/dist/compile/targets.js.map +1 -0
- package/dist/compile/types.d.ts +84 -0
- package/dist/compile/types.d.ts.map +1 -0
- package/dist/compile/types.js +2 -0
- package/dist/compile/types.js.map +1 -0
- package/dist/compile/warning.d.ts +45 -0
- package/dist/compile/warning.d.ts.map +1 -0
- package/dist/compile/warning.js +2 -0
- package/dist/compile/warning.js.map +1 -0
- package/dist/compile-yaml.d.ts +23 -0
- package/dist/compile-yaml.d.ts.map +1 -0
- package/dist/compile-yaml.js +30 -0
- package/dist/compile-yaml.js.map +1 -0
- package/dist/compile.d.ts +78 -0
- package/dist/compile.d.ts.map +1 -0
- package/dist/compile.js +372 -0
- package/dist/compile.js.map +1 -0
- package/dist/csv/limits.d.ts +43 -0
- package/dist/csv/limits.d.ts.map +1 -0
- package/dist/csv/limits.js +51 -0
- package/dist/csv/limits.js.map +1 -0
- package/dist/csv/scalar.d.ts +33 -0
- package/dist/csv/scalar.d.ts.map +1 -0
- package/dist/csv/scalar.js +77 -0
- package/dist/csv/scalar.js.map +1 -0
- package/dist/datasets/csv.d.ts +46 -0
- package/dist/datasets/csv.d.ts.map +1 -0
- package/dist/datasets/csv.js +293 -0
- package/dist/datasets/csv.js.map +1 -0
- package/dist/datasets/declaration.d.ts +16 -0
- package/dist/datasets/declaration.d.ts.map +1 -0
- package/dist/datasets/declaration.js +104 -0
- package/dist/datasets/declaration.js.map +1 -0
- package/dist/datasets/diagnostics.d.ts +65 -0
- package/dist/datasets/diagnostics.d.ts.map +1 -0
- package/dist/datasets/diagnostics.js +2 -0
- package/dist/datasets/diagnostics.js.map +1 -0
- package/dist/datasets/diff.d.ts +46 -0
- package/dist/datasets/diff.d.ts.map +1 -0
- package/dist/datasets/diff.js +84 -0
- package/dist/datasets/diff.js.map +1 -0
- package/dist/datasets/document.d.ts +12 -0
- package/dist/datasets/document.d.ts.map +1 -0
- package/dist/datasets/document.js +382 -0
- package/dist/datasets/document.js.map +1 -0
- package/dist/datasets/index.d.ts +43 -0
- package/dist/datasets/index.d.ts.map +1 -0
- package/dist/datasets/index.js +68 -0
- package/dist/datasets/index.js.map +1 -0
- package/dist/datasets/repair.d.ts +26 -0
- package/dist/datasets/repair.d.ts.map +1 -0
- package/dist/datasets/repair.js +60 -0
- package/dist/datasets/repair.js.map +1 -0
- package/dist/document-path.d.ts +62 -0
- package/dist/document-path.d.ts.map +1 -0
- package/dist/document-path.js +200 -0
- package/dist/document-path.js.map +1 -0
- package/dist/expr/boundary.d.ts +8 -0
- package/dist/expr/boundary.d.ts.map +1 -0
- package/dist/expr/boundary.js +243 -0
- package/dist/expr/boundary.js.map +1 -0
- package/dist/expr/compile-expr.d.ts +35 -0
- package/dist/expr/compile-expr.d.ts.map +1 -0
- package/dist/expr/compile-expr.js +66 -0
- package/dist/expr/compile-expr.js.map +1 -0
- package/dist/expr/deprecation.d.ts +23 -0
- package/dist/expr/deprecation.d.ts.map +1 -0
- package/dist/expr/deprecation.js +28 -0
- package/dist/expr/deprecation.js.map +1 -0
- package/dist/expr/diagnostics.d.ts +31 -0
- package/dist/expr/diagnostics.d.ts.map +1 -0
- package/dist/expr/diagnostics.js +34 -0
- package/dist/expr/diagnostics.js.map +1 -0
- package/dist/expr/lexer.d.ts +49 -0
- package/dist/expr/lexer.d.ts.map +1 -0
- package/dist/expr/lexer.js +277 -0
- package/dist/expr/lexer.js.map +1 -0
- package/dist/expr/lint-warnings.d.ts +11 -0
- package/dist/expr/lint-warnings.d.ts.map +1 -0
- package/dist/expr/lint-warnings.js +20 -0
- package/dist/expr/lint-warnings.js.map +1 -0
- package/dist/expr/lint.d.ts +41 -0
- package/dist/expr/lint.d.ts.map +1 -0
- package/dist/expr/lint.js +1034 -0
- package/dist/expr/lint.js.map +1 -0
- package/dist/expr/parse/aggregates.d.ts +13 -0
- package/dist/expr/parse/aggregates.d.ts.map +1 -0
- package/dist/expr/parse/aggregates.js +48 -0
- package/dist/expr/parse/aggregates.js.map +1 -0
- package/dist/expr/parse/budget.d.ts +11 -0
- package/dist/expr/parse/budget.d.ts.map +1 -0
- package/dist/expr/parse/budget.js +57 -0
- package/dist/expr/parse/budget.js.map +1 -0
- package/dist/expr/parse/grammar.d.ts +9 -0
- package/dist/expr/parse/grammar.d.ts.map +1 -0
- package/dist/expr/parse/grammar.js +699 -0
- package/dist/expr/parse/grammar.js.map +1 -0
- package/dist/expr/parse/literals.d.ts +20 -0
- package/dist/expr/parse/literals.d.ts.map +1 -0
- package/dist/expr/parse/literals.js +132 -0
- package/dist/expr/parse/literals.js.map +1 -0
- package/dist/expr/parse/stream.d.ts +60 -0
- package/dist/expr/parse/stream.d.ts.map +1 -0
- package/dist/expr/parse/stream.js +151 -0
- package/dist/expr/parse/stream.js.map +1 -0
- package/dist/expr/parser.d.ts +45 -0
- package/dist/expr/parser.d.ts.map +1 -0
- package/dist/expr/parser.js +110 -0
- package/dist/expr/parser.js.map +1 -0
- package/dist/expr/print/spell.d.ts +78 -0
- package/dist/expr/print/spell.d.ts.map +1 -0
- package/dist/expr/print/spell.js +592 -0
- package/dist/expr/print/spell.js.map +1 -0
- package/dist/expr/print.d.ts +20 -0
- package/dist/expr/print.d.ts.map +1 -0
- package/dist/expr/print.js +102 -0
- package/dist/expr/print.js.map +1 -0
- package/dist/expr/suggest.d.ts +26 -0
- package/dist/expr/suggest.d.ts.map +1 -0
- package/dist/expr/suggest.js +77 -0
- package/dist/expr/suggest.js.map +1 -0
- package/dist/expr/typecheck/aggregates.d.ts +8 -0
- package/dist/expr/typecheck/aggregates.d.ts.map +1 -0
- package/dist/expr/typecheck/aggregates.js +334 -0
- package/dist/expr/typecheck/aggregates.js.map +1 -0
- package/dist/expr/typecheck/arithmetic.d.ts +6 -0
- package/dist/expr/typecheck/arithmetic.d.ts.map +1 -0
- package/dist/expr/typecheck/arithmetic.js +258 -0
- package/dist/expr/typecheck/arithmetic.js.map +1 -0
- package/dist/expr/typecheck/arity.d.ts +38 -0
- package/dist/expr/typecheck/arity.d.ts.map +1 -0
- package/dist/expr/typecheck/arity.js +173 -0
- package/dist/expr/typecheck/arity.js.map +1 -0
- package/dist/expr/typecheck/calls.d.ts +6 -0
- package/dist/expr/typecheck/calls.d.ts.map +1 -0
- package/dist/expr/typecheck/calls.js +137 -0
- package/dist/expr/typecheck/calls.js.map +1 -0
- package/dist/expr/typecheck/comparison.d.ts +13 -0
- package/dist/expr/typecheck/comparison.d.ts.map +1 -0
- package/dist/expr/typecheck/comparison.js +200 -0
- package/dist/expr/typecheck/comparison.js.map +1 -0
- package/dist/expr/typecheck/compound.d.ts +24 -0
- package/dist/expr/typecheck/compound.d.ts.map +1 -0
- package/dist/expr/typecheck/compound.js +175 -0
- package/dist/expr/typecheck/compound.js.map +1 -0
- package/dist/expr/typecheck/context.d.ts +44 -0
- package/dist/expr/typecheck/context.d.ts.map +1 -0
- package/dist/expr/typecheck/context.js +2 -0
- package/dist/expr/typecheck/context.js.map +1 -0
- package/dist/expr/typecheck/datasets.d.ts +17 -0
- package/dist/expr/typecheck/datasets.d.ts.map +1 -0
- package/dist/expr/typecheck/datasets.js +136 -0
- package/dist/expr/typecheck/datasets.js.map +1 -0
- package/dist/expr/typecheck/digest.d.ts +7 -0
- package/dist/expr/typecheck/digest.d.ts.map +1 -0
- package/dist/expr/typecheck/digest.js +44 -0
- package/dist/expr/typecheck/digest.js.map +1 -0
- package/dist/expr/typecheck/fold.d.ts +41 -0
- package/dist/expr/typecheck/fold.d.ts.map +1 -0
- package/dist/expr/typecheck/fold.js +71 -0
- package/dist/expr/typecheck/fold.js.map +1 -0
- package/dist/expr/typecheck/gate-folds.d.ts +22 -0
- package/dist/expr/typecheck/gate-folds.d.ts.map +1 -0
- package/dist/expr/typecheck/gate-folds.js +40 -0
- package/dist/expr/typecheck/gate-folds.js.map +1 -0
- package/dist/expr/typecheck/guards.d.ts +6 -0
- package/dist/expr/typecheck/guards.d.ts.map +1 -0
- package/dist/expr/typecheck/guards.js +38 -0
- package/dist/expr/typecheck/guards.js.map +1 -0
- package/dist/expr/typecheck/member.d.ts +17 -0
- package/dist/expr/typecheck/member.d.ts.map +1 -0
- package/dist/expr/typecheck/member.js +46 -0
- package/dist/expr/typecheck/member.js.map +1 -0
- package/dist/expr/typecheck/money.d.ts +8 -0
- package/dist/expr/typecheck/money.d.ts.map +1 -0
- package/dist/expr/typecheck/money.js +49 -0
- package/dist/expr/typecheck/money.js.map +1 -0
- package/dist/expr/typecheck/numeric.d.ts +8 -0
- package/dist/expr/typecheck/numeric.d.ts.map +1 -0
- package/dist/expr/typecheck/numeric.js +84 -0
- package/dist/expr/typecheck/numeric.js.map +1 -0
- package/dist/expr/typecheck/operands.d.ts +27 -0
- package/dist/expr/typecheck/operands.d.ts.map +1 -0
- package/dist/expr/typecheck/operands.js +106 -0
- package/dist/expr/typecheck/operands.js.map +1 -0
- package/dist/expr/typecheck/paths.d.ts +21 -0
- package/dist/expr/typecheck/paths.d.ts.map +1 -0
- package/dist/expr/typecheck/paths.js +321 -0
- package/dist/expr/typecheck/paths.js.map +1 -0
- package/dist/expr/typecheck/records.d.ts +24 -0
- package/dist/expr/typecheck/records.d.ts.map +1 -0
- package/dist/expr/typecheck/records.js +53 -0
- package/dist/expr/typecheck/records.js.map +1 -0
- package/dist/expr/typecheck/sequences.d.ts +15 -0
- package/dist/expr/typecheck/sequences.d.ts.map +1 -0
- package/dist/expr/typecheck/sequences.js +55 -0
- package/dist/expr/typecheck/sequences.js.map +1 -0
- package/dist/expr/typecheck/strings.d.ts +8 -0
- package/dist/expr/typecheck/strings.d.ts.map +1 -0
- package/dist/expr/typecheck/strings.js +188 -0
- package/dist/expr/typecheck/strings.js.map +1 -0
- package/dist/expr/typecheck/temporal.d.ts +7 -0
- package/dist/expr/typecheck/temporal.d.ts.map +1 -0
- package/dist/expr/typecheck/temporal.js +80 -0
- package/dist/expr/typecheck/temporal.js.map +1 -0
- package/dist/expr/typecheck/types.d.ts +163 -0
- package/dist/expr/typecheck/types.d.ts.map +1 -0
- package/dist/expr/typecheck/types.js +404 -0
- package/dist/expr/typecheck/types.js.map +1 -0
- package/dist/expr/typecheck.d.ts +75 -0
- package/dist/expr/typecheck.d.ts.map +1 -0
- package/dist/expr/typecheck.js +242 -0
- package/dist/expr/typecheck.js.map +1 -0
- package/dist/expr/undecided.d.ts +13 -0
- package/dist/expr/undecided.d.ts.map +1 -0
- package/dist/expr/undecided.js +58 -0
- package/dist/expr/undecided.js.map +1 -0
- package/dist/expr/values/code-points.d.ts +13 -0
- package/dist/expr/values/code-points.d.ts.map +1 -0
- package/dist/expr/values/code-points.js +25 -0
- package/dist/expr/values/code-points.js.map +1 -0
- package/dist/expr/values/inline.d.ts +77 -0
- package/dist/expr/values/inline.d.ts.map +1 -0
- package/dist/expr/values/inline.js +404 -0
- package/dist/expr/values/inline.js.map +1 -0
- package/dist/expr/values/interval.d.ts +19 -0
- package/dist/expr/values/interval.d.ts.map +1 -0
- package/dist/expr/values/interval.js +1180 -0
- package/dist/expr/values/interval.js.map +1 -0
- package/dist/index.d.ts +163 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +128 -0
- package/dist/index.js.map +1 -0
- package/dist/ingest/document.d.ts +58 -0
- package/dist/ingest/document.d.ts.map +1 -0
- package/dist/ingest/document.js +83 -0
- package/dist/ingest/document.js.map +1 -0
- package/dist/ingest/yaml-document.d.ts +15 -0
- package/dist/ingest/yaml-document.d.ts.map +1 -0
- package/dist/ingest/yaml-document.js +42 -0
- package/dist/ingest/yaml-document.js.map +1 -0
- package/dist/ingest/yaml.d.ts +51 -0
- package/dist/ingest/yaml.d.ts.map +1 -0
- package/dist/ingest/yaml.js +340 -0
- package/dist/ingest/yaml.js.map +1 -0
- package/dist/layout/compile.d.ts +6 -0
- package/dist/layout/compile.d.ts.map +1 -0
- package/dist/layout/compile.js +224 -0
- package/dist/layout/compile.js.map +1 -0
- package/dist/layout/context.d.ts +12 -0
- package/dist/layout/context.d.ts.map +1 -0
- package/dist/layout/context.js +26 -0
- package/dist/layout/context.js.map +1 -0
- package/dist/layout/grammar.d.ts +34 -0
- package/dist/layout/grammar.d.ts.map +1 -0
- package/dist/layout/grammar.js +171 -0
- package/dist/layout/grammar.js.map +1 -0
- package/dist/layout/read.d.ts +54 -0
- package/dist/layout/read.d.ts.map +1 -0
- package/dist/layout/read.js +101 -0
- package/dist/layout/read.js.map +1 -0
- package/dist/layout/shape.d.ts +34 -0
- package/dist/layout/shape.d.ts.map +1 -0
- package/dist/layout/shape.js +149 -0
- package/dist/layout/shape.js.map +1 -0
- package/dist/messages/compile.d.ts +47 -0
- package/dist/messages/compile.d.ts.map +1 -0
- package/dist/messages/compile.js +202 -0
- package/dist/messages/compile.js.map +1 -0
- package/dist/messages/locale.d.ts +18 -0
- package/dist/messages/locale.d.ts.map +1 -0
- package/dist/messages/locale.js +33 -0
- package/dist/messages/locale.js.map +1 -0
- package/dist/messages/slots.d.ts +54 -0
- package/dist/messages/slots.d.ts.map +1 -0
- package/dist/messages/slots.js +137 -0
- package/dist/messages/slots.js.map +1 -0
- package/dist/overlay/compile-overlay.d.ts +29 -0
- package/dist/overlay/compile-overlay.d.ts.map +1 -0
- package/dist/overlay/compile-overlay.js +120 -0
- package/dist/overlay/compile-overlay.js.map +1 -0
- package/dist/overlay/compose.d.ts +26 -0
- package/dist/overlay/compose.d.ts.map +1 -0
- package/dist/overlay/compose.js +674 -0
- package/dist/overlay/compose.js.map +1 -0
- package/dist/overlay/types.d.ts +41 -0
- package/dist/overlay/types.d.ts.map +1 -0
- package/dist/overlay/types.js +2 -0
- package/dist/overlay/types.js.map +1 -0
- package/dist/publish/classify.d.ts +50 -0
- package/dist/publish/classify.d.ts.map +1 -0
- package/dist/publish/classify.js +85 -0
- package/dist/publish/classify.js.map +1 -0
- package/dist/publish/environment.d.ts +15 -0
- package/dist/publish/environment.d.ts.map +1 -0
- package/dist/publish/environment.js +2 -0
- package/dist/publish/environment.js.map +1 -0
- package/dist/publish/migrations.d.ts +108 -0
- package/dist/publish/migrations.d.ts.map +1 -0
- package/dist/publish/migrations.js +166 -0
- package/dist/publish/migrations.js.map +1 -0
- package/dist/publish/observation.d.ts +29 -0
- package/dist/publish/observation.d.ts.map +1 -0
- package/dist/publish/observation.js +43 -0
- package/dist/publish/observation.js.map +1 -0
- package/dist/publish/readiness.d.ts +197 -0
- package/dist/publish/readiness.d.ts.map +1 -0
- package/dist/publish/readiness.js +239 -0
- package/dist/publish/readiness.js.map +1 -0
- package/dist/publish/vectors.d.ts +50 -0
- package/dist/publish/vectors.d.ts.map +1 -0
- package/dist/publish/vectors.js +306 -0
- package/dist/publish/vectors.js.map +1 -0
- package/dist/publish/verify.d.ts +146 -0
- package/dist/publish/verify.d.ts.map +1 -0
- package/dist/publish/verify.js +548 -0
- package/dist/publish/verify.js.map +1 -0
- package/dist/scenarios/branch.d.ts +36 -0
- package/dist/scenarios/branch.d.ts.map +1 -0
- package/dist/scenarios/branch.js +30 -0
- package/dist/scenarios/branch.js.map +1 -0
- package/dist/scenarios/capture.d.ts +89 -0
- package/dist/scenarios/capture.d.ts.map +1 -0
- package/dist/scenarios/capture.js +443 -0
- package/dist/scenarios/capture.js.map +1 -0
- package/dist/scenarios/classifier.d.ts +20 -0
- package/dist/scenarios/classifier.d.ts.map +1 -0
- package/dist/scenarios/classifier.js +88 -0
- package/dist/scenarios/classifier.js.map +1 -0
- package/dist/scenarios/credit.d.ts +33 -0
- package/dist/scenarios/credit.d.ts.map +1 -0
- package/dist/scenarios/credit.js +330 -0
- package/dist/scenarios/credit.js.map +1 -0
- package/dist/scenarios/csv.d.ts +34 -0
- package/dist/scenarios/csv.d.ts.map +1 -0
- package/dist/scenarios/csv.js +1047 -0
- package/dist/scenarios/csv.js.map +1 -0
- package/dist/scenarios/data-identity.d.ts +39 -0
- package/dist/scenarios/data-identity.d.ts.map +1 -0
- package/dist/scenarios/data-identity.js +28 -0
- package/dist/scenarios/data-identity.js.map +1 -0
- package/dist/scenarios/document.d.ts +148 -0
- package/dist/scenarios/document.d.ts.map +1 -0
- package/dist/scenarios/document.js +513 -0
- package/dist/scenarios/document.js.map +1 -0
- package/dist/scenarios/environment.d.ts +64 -0
- package/dist/scenarios/environment.d.ts.map +1 -0
- package/dist/scenarios/environment.js +106 -0
- package/dist/scenarios/environment.js.map +1 -0
- package/dist/scenarios/evidence.d.ts +128 -0
- package/dist/scenarios/evidence.d.ts.map +1 -0
- package/dist/scenarios/evidence.js +179 -0
- package/dist/scenarios/evidence.js.map +1 -0
- package/dist/scenarios/expectations.d.ts +63 -0
- package/dist/scenarios/expectations.d.ts.map +1 -0
- package/dist/scenarios/expectations.js +490 -0
- package/dist/scenarios/expectations.js.map +1 -0
- package/dist/scenarios/references.d.ts +15 -0
- package/dist/scenarios/references.d.ts.map +1 -0
- package/dist/scenarios/references.js +239 -0
- package/dist/scenarios/references.js.map +1 -0
- package/dist/scenarios/report.d.ts +216 -0
- package/dist/scenarios/report.d.ts.map +1 -0
- package/dist/scenarios/report.js +54 -0
- package/dist/scenarios/report.js.map +1 -0
- package/dist/scenarios/runner.d.ts +55 -0
- package/dist/scenarios/runner.d.ts.map +1 -0
- package/dist/scenarios/runner.js +205 -0
- package/dist/scenarios/runner.js.map +1 -0
- package/dist/scenarios/vocabulary.d.ts +19 -0
- package/dist/scenarios/vocabulary.d.ts.map +1 -0
- package/dist/scenarios/vocabulary.js +56 -0
- package/dist/scenarios/vocabulary.js.map +1 -0
- package/dist/schema/catalogue.d.ts +54 -0
- package/dist/schema/catalogue.d.ts.map +1 -0
- package/dist/schema/catalogue.js +221 -0
- package/dist/schema/catalogue.js.map +1 -0
- package/dist/schema/check.d.ts +22 -0
- package/dist/schema/check.d.ts.map +1 -0
- package/dist/schema/check.js +30 -0
- package/dist/schema/check.js.map +1 -0
- package/dist/schema/closed.d.ts +19 -0
- package/dist/schema/closed.d.ts.map +1 -0
- package/dist/schema/closed.js +33 -0
- package/dist/schema/closed.js.map +1 -0
- package/dist/schema/collapse.d.ts +27 -0
- package/dist/schema/collapse.d.ts.map +1 -0
- package/dist/schema/collapse.js +143 -0
- package/dist/schema/collapse.js.map +1 -0
- package/dist/schema/controls.d.ts +46 -0
- package/dist/schema/controls.d.ts.map +1 -0
- package/dist/schema/controls.js +75 -0
- package/dist/schema/controls.js.map +1 -0
- package/dist/schema/dataset-declaration.d.ts +11 -0
- package/dist/schema/dataset-declaration.d.ts.map +1 -0
- package/dist/schema/dataset-declaration.js +11 -0
- package/dist/schema/dataset-declaration.js.map +1 -0
- package/dist/schema/declaration-warnings.d.ts +14 -0
- package/dist/schema/declaration-warnings.d.ts.map +1 -0
- package/dist/schema/declaration-warnings.js +77 -0
- package/dist/schema/declaration-warnings.js.map +1 -0
- package/dist/schema/declarations.d.ts +41 -0
- package/dist/schema/declarations.d.ts.map +1 -0
- package/dist/schema/declarations.js +1299 -0
- package/dist/schema/declarations.js.map +1 -0
- package/dist/schema/diagnostic.d.ts +118 -0
- package/dist/schema/diagnostic.d.ts.map +1 -0
- package/dist/schema/diagnostic.js +39 -0
- package/dist/schema/diagnostic.js.map +1 -0
- package/dist/schema/document.d.ts +93 -0
- package/dist/schema/document.d.ts.map +1 -0
- package/dist/schema/document.js +507 -0
- package/dist/schema/document.js.map +1 -0
- package/dist/schema/fields.d.ts +11 -0
- package/dist/schema/fields.d.ts.map +1 -0
- package/dist/schema/fields.js +265 -0
- package/dist/schema/fields.js.map +1 -0
- package/dist/schema/gates.d.ts +4 -0
- package/dist/schema/gates.d.ts.map +1 -0
- package/dist/schema/gates.js +68 -0
- package/dist/schema/gates.js.map +1 -0
- package/dist/schema/located.d.ts +27 -0
- package/dist/schema/located.d.ts.map +1 -0
- package/dist/schema/located.js +56 -0
- package/dist/schema/located.js.map +1 -0
- package/dist/schema/measurement.d.ts +9 -0
- package/dist/schema/measurement.d.ts.map +1 -0
- package/dist/schema/measurement.js +38 -0
- package/dist/schema/measurement.js.map +1 -0
- package/dist/schema/member-wording.d.ts +35 -0
- package/dist/schema/member-wording.d.ts.map +1 -0
- package/dist/schema/member-wording.js +286 -0
- package/dist/schema/member-wording.js.map +1 -0
- package/dist/schema/metaschema.d.ts +20 -0
- package/dist/schema/metaschema.d.ts.map +1 -0
- package/dist/schema/metaschema.js +476 -0
- package/dist/schema/metaschema.js.map +1 -0
- package/dist/schema/pointer.d.ts +31 -0
- package/dist/schema/pointer.d.ts.map +1 -0
- package/dist/schema/pointer.js +73 -0
- package/dist/schema/pointer.js.map +1 -0
- package/dist/schema/primary.d.ts +29 -0
- package/dist/schema/primary.d.ts.map +1 -0
- package/dist/schema/primary.js +48 -0
- package/dist/schema/primary.js.map +1 -0
- package/dist/schema/publish-vector.d.ts +17 -0
- package/dist/schema/publish-vector.d.ts.map +1 -0
- package/dist/schema/publish-vector.js +34 -0
- package/dist/schema/publish-vector.js.map +1 -0
- package/dist/schema/repair.d.ts +34 -0
- package/dist/schema/repair.d.ts.map +1 -0
- package/dist/schema/repair.js +163 -0
- package/dist/schema/repair.js.map +1 -0
- package/dist/schema/schema-v1.generated.d.ts +14 -0
- package/dist/schema/schema-v1.generated.d.ts.map +1 -0
- package/dist/schema/schema-v1.generated.js +7089 -0
- package/dist/schema/schema-v1.generated.js.map +1 -0
- package/dist/schema/screens.d.ts +4 -0
- package/dist/schema/screens.d.ts.map +1 -0
- package/dist/schema/screens.js +28 -0
- package/dist/schema/screens.js.map +1 -0
- package/dist/schema/test-values.d.ts +12 -0
- package/dist/schema/test-values.d.ts.map +1 -0
- package/dist/schema/test-values.js +97 -0
- package/dist/schema/test-values.js.map +1 -0
- package/dist/schema/unions.d.ts +46 -0
- package/dist/schema/unions.d.ts.map +1 -0
- package/dist/schema/unions.js +131 -0
- package/dist/schema/unions.js.map +1 -0
- package/dist/schema/validate-yaml.d.ts +14 -0
- package/dist/schema/validate-yaml.d.ts.map +1 -0
- package/dist/schema/validate-yaml.js +17 -0
- package/dist/schema/validate-yaml.js.map +1 -0
- package/dist/schema/validate.d.ts +46 -0
- package/dist/schema/validate.d.ts.map +1 -0
- package/dist/schema/validate.js +186 -0
- package/dist/schema/validate.js.map +1 -0
- package/dist/testing.d.ts +21 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +28 -0
- package/dist/testing.js.map +1 -0
- package/dist/vocabulary.d.ts +6 -0
- package/dist/vocabulary.d.ts.map +1 -0
- package/dist/vocabulary.js +26 -0
- package/dist/vocabulary.js.map +1 -0
- package/package.json +66 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vectors.js","sourceRoot":"","sources":["../../src/publish/vectors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACZ,Q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,GAAG;wBAC7F,WAAW,EAAE,EAAE;qBAChB;iBACF,CAAC,CAAC;gBACH,SAAS;YACX,CAAC;YACD,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;YACxB,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,OAAO,CAAC,IAAI,CAAC;oBACX,GAAG,KAAK;oBACR,OAAO,EAAE;wBACP,EAAE,EAAE,KAAK;wBACT,IAAI,EAAE,eAAe;wBACrB,MAAM,EAAE,6CAA6C;wBACrD,WAAW,EAAE,EAAE;qBAChB;iBACF,CAAC,CAAC;gBACH,SAAS;YACX,CAAC;YACD,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAC9F,OAAO,CAAC,IAAI,CAAC;gBACX,GAAG,KAAK;gBACR,OAAO,EAAE,OAAO,CAAC,EAAE;oBACjB,CAAC,CAAC,OAAO;oBACT,CAAC,CAAC;wBACE,GAAG,OAAO;wBACV,WAAW,EAAE,gBAAgB,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC;qBAC/E;aACN,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import {\n AxiomError,\n assertNever,\n DATASET_BUILTINS,\n DEFAULT_EVIDENCE_TIER,\n evaluateForm,\n isRecord,\n toEvaluationEnv,\n toEvaluationInput,\n} from '@azx-pbc/axiom-runtime';\nimport type {\n CompiledField,\n CompiledRule,\n CompiledSchema,\n EvaluationEnv,\n EvaluationInput,\n ExprNode,\n FormSnapshot,\n ReportFacts,\n RuleResult,\n StaleLookupProvenance,\n} from '@azx-pbc/axiom-runtime';\nimport { branchCredit } from '../scenarios/branch.js';\nimport type { BranchCredit } from '../scenarios/branch.js';\nimport { overrideKeptValue } from '../scenarios/credit.js';\nimport { normalizeEnvironment } from '../scenarios/environment.js';\nimport type { CommittedEnvironment } from '../scenarios/environment.js';\nimport { compareObservation } from '../scenarios/expectations.js';\nimport { observationOfExpected } from './observation.js';\n\n/**\n * Running the vectors embedded in a compiled artifact.\n *\n * A vector is a claim about one rule: the record it states, the environment it runs under, and\n * the outcome or value it expects. Running it is one `evaluate()` of that record, and the verdict\n * is read through the same expectation decoder publish readiness uses, so a `SCREEN_*` on a\n * non-screen rule is refused here with the wording a publisher is refused it.\n *\n * This is the browser-safe half of `axiom-cli test`: it holds no file, no terminal and no clock, so a\n * preview runs an embedded vector exactly as CI does.\n */\n\n/** One embedded vector, read as the input it evaluates, the environment it runs under and the verdict it asserts. */\ninterface TestCase {\n readonly caseId: string;\n readonly expected: unknown;\n readonly input: EvaluationInput;\n /** The environment members this case declares, over the command's own baseline. */\n readonly env: EvaluationEnv;\n}\n\n/** One vector read, or the cause that stopped it being readable. */\ntype TestCaseRead =\n | { readonly ok: true; readonly testCase: TestCase }\n | { readonly ok: false; readonly detail: string };\n\n/** Whether one case's claim held, and what the run observed when it did not. */\nexport type VectorVerdict =\n | {\n readonly ok: true;\n /** What the observation is worth as evidence, decided by the one credit predicate. */\n readonly credit: BranchCredit;\n }\n | {\n readonly ok: false;\n /**\n * The one gap kind a failed case states: a case that ran and did not hold, a case whose\n * expectation states nothing about the rule that carries it, or a case that was judged\n * against a table version this artifact pins and the table could not answer.\n */\n readonly kind: 'failed_vector' | 'unreadable_expectation' | 'stale_dataset';\n readonly detail: string;\n /** The lines an author reads to repair the case: absent operands, then the rule's diagnostics. */\n readonly explanation: readonly string[];\n };\n\n/** One embedded vector, judged against one evaluation of the artifact. */\nexport interface EmbeddedVector {\n readonly ruleId: string;\n /** The member the vector was read from, so a failure names its location in the artifact. */\n readonly path: string;\n /** The vector's one-based position in its rule's `testCases`. */\n readonly position: number;\n /** The case id the vector declares; absent only when the vector was not readable at all. */\n readonly caseId?: string;\n /**\n * The environment this case actually evaluated under, after its own `tier`, `recordDate` and\n * `capabilities` overrode the run baseline. Absent only when the vector was not readable.\n */\n readonly environment?: CommittedEnvironment;\n readonly verdict: VectorVerdict;\n}\n\n/**\n * Reads one embedded vector.\n *\n * The artifact's closed metaschema already proved the vector's shape, so the request readers\n * that own the input and environment contracts are the whole boundary parse: a case is the\n * input and the environment `toEvaluationInput`/`toEvaluationEnv` admit, and nothing here\n * re-asserts a member those readers validate. A vector either reader refuses is reported\n * with the cause it gave, so a malformed date or reference is named rather than skipped.\n */\nfunction readTestCase(value: unknown): TestCaseRead {\n if (!isRecord(value)) return { ok: false, detail: 'a test case must be an object' };\n const caseId = value['caseId'];\n if (typeof caseId !== 'string') return { ok: false, detail: 'a test case declares a caseId' };\n try {\n // A case may declare the environment it runs under. Absent members leave the caller's\n // baseline untouched, so a vector written before the member existed runs unchanged.\n const input = toEvaluationInput({\n values: value['values'],\n ...(value['context'] === undefined ? {} : { context: value['context'] }),\n ...(value['redacted'] === undefined ? {} : { redacted: value['redacted'] }),\n ...(value['sessionWrites'] === undefined ? {} : { sessionWrites: value['sessionWrites'] }),\n ...(value['accessOverlay'] === undefined ? {} : { overlay: value['accessOverlay'] }),\n });\n const env = toEvaluationEnv({\n ...(value['capabilities'] === undefined ? {} : { capabilities: value['capabilities'] }),\n ...(value['recordDate'] === undefined ? {} : { recordDate: value['recordDate'] }),\n ...(value['tier'] === undefined ? {} : { tier: value['tier'] }),\n });\n return { ok: true, testCase: { caseId, expected: value['expected'], input, env } };\n } catch (error) {\n if (!(error instanceof AxiomError)) throw error;\n return { ok: false, detail: `${error.path ?? '$'}: ${error.message}` };\n }\n}\n\n/**\n * Whether one case's expectation held, and what its observation is worth as evidence.\n *\n * The comparison is the one `compareObservation` a scenario assertion also uses, so a screen\n * section, a row fold and a produced value are read identically down both paths. Credit is the\n * one `branchCredit` the suite classifier also reads, so a deferral that proves nothing is\n * reported the same way here as it is there — and a `defaultCompute` whose stored value an\n * override kept earns nothing, exactly as the suite path refuses it.\n */\nfunction verdictOf(\n compiledRule: CompiledRule,\n rule: RuleResult,\n results: readonly RuleResult[],\n report: ReportFacts,\n expected: unknown,\n computed: FormSnapshot['computed'],\n): VectorVerdict {\n const decoded = observationOfExpected(rule.kind, expected);\n if (!decoded.ok) {\n return { ok: false, kind: 'unreadable_expectation', detail: decoded.detail, explanation: [] };\n }\n const observation = decoded.observation;\n const compared = compareObservation(\n rule.ruleId,\n { kind: rule.kind, results, screen: report.screens?.[rule.ruleId]?.outcome },\n observation,\n );\n if (compared !== undefined) {\n return { ok: false, kind: 'failed_vector', detail: compared, explanation: [] };\n }\n // A retained stored value is the record's, not the writer's: the case agrees with the record\n // rather than proving the rule produced what it states. The suite path states the same refusal.\n if (overrideKeptValue(compiledRule, results, computed)) {\n return { ok: true, credit: { coverageEligible: false, refusal: 'override' } };\n }\n return { ok: true, credit: branchCredit(rule.kind, observation) };\n}\n\n/** The field ids a case supplies at the top level; a record member travels inside its container. */\nfunction suppliedFieldIds(testCase: TestCase): ReadonlySet<string> {\n return new Set(Object.keys(testCase.input.values));\n}\n\n/**\n * Each declared field's top-level ancestor, so a nested or row member counts as supplied when\n * the case supplies the container it travels inside.\n */\nfunction topLevelAncestors(fields: readonly CompiledField[]): ReadonlyMap<string, string> {\n const ancestors = new Map<string, string>();\n const visit = (declarations: readonly CompiledField[], root: string | undefined): void => {\n for (const field of declarations) {\n const container = root ?? field.fieldId;\n ancestors.set(field.fieldId, container);\n if (field.fields !== undefined) visit(field.fields, container);\n }\n };\n visit(fields, undefined);\n return ancestors;\n}\n\n/**\n * Why a case could not decide: the operands it never supplied, then the rule's own diagnostics.\n *\n * The verdict alone says \"expected PASS, observed UNKNOWN\", which could be any undecided operand.\n * The result already names the fields the rule read, so the one line an author needs is the field\n * the case left out; a diagnostic the rule raised says the rest. A nested field counts as supplied\n * when its container is, because the case carries record and row members inside the container\n * rather than as flat keys.\n */\nfunction explanationLines(\n result: RuleResult,\n testCase: TestCase,\n report: ReportFacts,\n ruleId: string,\n ancestors: ReadonlyMap<string, string>,\n): readonly string[] {\n const lines: string[] = [];\n const supplied = suppliedFieldIds(testCase);\n const absent = new Set<string>();\n for (const field of result.fields ?? []) {\n const container = ancestors.get(field.fieldId) ?? field.fieldId;\n if (!supplied.has(container)) absent.add(field.fieldId);\n }\n if (absent.size > 0) {\n lines.push(\n ` the case supplies no value for ${[...absent].map((fieldId) => `\\`${fieldId}\\``).join(', ')}, which the rule reads`,\n );\n }\n for (const diagnostic of report.diagnostics) {\n if (diagnostic.ruleId !== ruleId) continue;\n const field = diagnostic.fieldId === undefined ? '' : ` on \\`${diagnostic.fieldId}\\``;\n lines.push(` diagnostic ${diagnostic.code}${field}`);\n }\n return lines;\n}\n\n/**\n * A table this rule's own expression names and a lookup that could not answer, or `undefined`.\n *\n * A report's `lookups` are the whole evaluation's, not one rule's, and a form evaluates every\n * rule for every vector. Crediting a rule with another rule's stale table would name a case that\n * never read it, so the table has to be one this rule's own expressions name. A rule that reads a\n * stale table through a computed member decides `UNKNOWN` from it, which the branch table already\n * refuses; this answers the direct operand, which is the one a report can name.\n */\nfunction staleLookupOf(rule: CompiledRule, report: ReportFacts): StaleLookupProvenance | undefined {\n const stale = report.lookups.filter(isStaleLookup);\n if (stale.length === 0) return undefined;\n const named = datasetTablesOf(rule);\n return stale.find((entry) => named.has(entry.tableId));\n}\n\n/** Whether a report's lookup entry states a table that could not answer. */\nfunction isStaleLookup(entry: ReportFacts['lookups'][number]): entry is StaleLookupProvenance {\n return 'reason' in entry;\n}\n\n/** Every expression slot of one rule, including the items and reasons a composing kind carries. */\nfunction ruleExpressionsOf(rule: CompiledRule): readonly ExprNode[] {\n return [\n rule.expr,\n ...(rule.referWhen === undefined ? [] : [rule.referWhen]),\n ...Object.values(rule.params ?? {}),\n ...(rule.kind === 'screen' ? (rule.reasons ?? []).map((reason) => reason.when) : []),\n ...(rule.gate?.activeWhen === undefined ? [] : [rule.gate.activeWhen]),\n ...(rule.gate?.items ?? []).flatMap((item) => [item.expr, ...Object.values(item.params ?? {})]),\n ];\n}\n\n/** Every table id the dataset built-ins of one rule's expressions name. */\nfunction datasetTablesOf(rule: CompiledRule): ReadonlySet<string> {\n const tables = new Set<string>();\n const visit = (node: ExprNode): void => {\n switch (node.kind) {\n case 'literal':\n case 'path':\n return;\n case 'list':\n for (const item of node.items) visit(item);\n return;\n case 'and':\n case 'or':\n case 'coalesce':\n for (const arg of node.args) visit(arg);\n return;\n case 'not':\n visit(node.args[0]);\n return;\n case 'compare':\n visit(node.args[0]);\n visit(node.args[1]);\n return;\n case 'if':\n for (const arg of node.args) visit(arg);\n return;\n case 'call': {\n const table = node.args[0];\n if (DATASET_BUILTINS.has(node.op) && table !== undefined && table.kind === 'path') {\n tables.add(table.path);\n }\n for (const arg of node.args) visit(arg);\n return;\n }\n case 'comprehension':\n visit(node.source);\n if (node.valueExpr !== undefined) visit(node.valueExpr);\n if (node.predicate !== undefined) visit(node.predicate);\n return;\n default:\n return assertNever(node);\n }\n };\n for (const expression of ruleExpressionsOf(rule)) visit(expression);\n return tables;\n}\n\n/**\n * Runs every vector the artifact embeds, in artifact order.\n *\n * A vector that cannot run and a vector that ran and did not hold are the same fact for the\n * publisher — the rule has no evidence — so both are reported as a failed verdict carrying the\n * reason. A vector whose rule read a table that could not answer is reported as the stale case it\n * is: the comparison may pass, but the evidence was judged against data the artifact does not\n * hold, so it grants no credit and names the case rather than folding it into \"not firing\".\n *\n * `env` is the caller's baseline; a case's own `tier`, `capabilities` and `recordDate` override it\n * member by member.\n */\nexport function runEmbeddedVectors(\n schema: CompiledSchema,\n env: EvaluationEnv,\n): readonly EmbeddedVector[] {\n const ancestors = topLevelAncestors(schema.fields ?? []);\n const vectors: EmbeddedVector[] = [];\n for (const [index, rule] of (schema.rules ?? []).entries()) {\n const path = `$.rules[${String(index)}].testCases`;\n for (const [position, entry] of (rule.testCases ?? []).entries()) {\n const location = { ruleId: rule.ruleId, path, position: position + 1 };\n const read = readTestCase(entry);\n if (!read.ok) {\n vectors.push({\n ...location,\n verdict: {\n ok: false,\n kind: 'failed_vector',\n detail: `the vector is not a readable test case: ${read.detail}`,\n explanation: [],\n },\n });\n continue;\n }\n const testCase = read.testCase;\n // The case's own members win over the baseline; this is the evidence door, so an omitted\n // tier is the evidence default rather than the local evaluation default.\n const inherited: EvaluationEnv = { ...env, ...testCase.env };\n const evaluated: EvaluationEnv = {\n ...inherited,\n tier: inherited.tier ?? DEFAULT_EVIDENCE_TIER,\n };\n const environment = normalizeEnvironment(evaluated);\n const where = { ...location, caseId: testCase.caseId, environment };\n const snapshot = evaluateForm(schema, testCase.input, evaluated);\n const report = snapshot.report;\n const results = report.rules.filter((result) => result.ruleId === rule.ruleId);\n // An expression that raised reports `UNKNOWN`, which is also what a designed undetermined\n // input reports. A case that matched on `UNKNOWN` alone would record a broken rule as\n // working behaviour, so the raised diagnostic decides it.\n const raised = report.diagnostics.some(\n (diagnostic) => diagnostic.code === 'ENGINE_ERROR' && diagnostic.ruleId === rule.ruleId,\n );\n if (raised) {\n vectors.push({\n ...where,\n verdict: {\n ok: false,\n kind: 'failed_vector',\n detail: 'the rule raised ENGINE_ERROR, so the case proves nothing',\n explanation: [],\n },\n });\n continue;\n }\n const stale = staleLookupOf(rule, report);\n if (stale !== undefined) {\n vectors.push({\n ...where,\n verdict: {\n ok: false,\n kind: 'stale_dataset',\n detail: `table \\`${stale.tableId}\\` could not answer at the pinned version (${stale.reason})`,\n explanation: [],\n },\n });\n continue;\n }\n const [first] = results;\n if (first === undefined) {\n vectors.push({\n ...where,\n verdict: {\n ok: false,\n kind: 'failed_vector',\n detail: 'the record produced no result for this rule',\n explanation: [],\n },\n });\n continue;\n }\n const verdict = verdictOf(rule, first, results, report, testCase.expected, snapshot.computed);\n vectors.push({\n ...where,\n verdict: verdict.ok\n ? verdict\n : {\n ...verdict,\n explanation: explanationLines(first, testCase, report, rule.ruleId, ancestors),\n },\n });\n }\n }\n return vectors;\n}\n"]}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import type { CompiledSchema, LookupTableDocument } from '@azx-pbc/axiom-runtime';
|
|
2
|
+
import type { ResolvedDatasetPin } from '@azx-pbc/axiom-runtime/lookup';
|
|
3
|
+
import type { DeclaredEnvironment, ScenarioSuiteDocument } from '../scenarios/document.js';
|
|
4
|
+
import type { AssertionTarget, ScenarioSuiteReport } from '../scenarios/report.js';
|
|
5
|
+
import type { BranchRefusal } from '../scenarios/branch.js';
|
|
6
|
+
import type { PublishEnvironment } from './environment.js';
|
|
7
|
+
import type { DeclaredRuleOrigin, PublishReadiness, RuleCoverage } from './readiness.js';
|
|
8
|
+
import type { EmbeddedVector } from './vectors.js';
|
|
9
|
+
/**
|
|
10
|
+
* Executing the evidence a publisher is asked for, and deriving one verdict from it.
|
|
11
|
+
*
|
|
12
|
+
* Publishing credit is only ever granted to something this call ran: the artifact's embedded
|
|
13
|
+
* vectors, replayed here, and each supplied scenario suite passed through the one runner. No
|
|
14
|
+
* caller-supplied coverage summary, stored pass or foreign report is a parameter, so there is no
|
|
15
|
+
* path by which a claim nobody executed becomes evidence.
|
|
16
|
+
*
|
|
17
|
+
* The run binds itself to the artifact's identity — `artifactBehaviour(compiled)` — and to the
|
|
18
|
+
* table versions the supplied documents resolve. A pinned table with no resolvable version leaves
|
|
19
|
+
* the run unable to state what it judged, and a scenario or vector that did not hold is reported
|
|
20
|
+
* as the gap it is, so the verdict is fail-closed on every path.
|
|
21
|
+
*/
|
|
22
|
+
/** What a verification needs that the artifact cannot carry: the suites to run and the tables they read. */
|
|
23
|
+
export interface PublishVerificationOptions {
|
|
24
|
+
/** Scenario suites to execute beside the artifact's own vectors, in the order given. */
|
|
25
|
+
readonly suites?: readonly ScenarioSuiteDocument[];
|
|
26
|
+
/**
|
|
27
|
+
* The table documents a run may install. A table this artifact pins and no document answers
|
|
28
|
+
* with the pinned version is a miss, and a miss is a gap: a publisher cannot bind evidence to
|
|
29
|
+
* data it does not hold.
|
|
30
|
+
*/
|
|
31
|
+
readonly datasets?: readonly LookupTableDocument[];
|
|
32
|
+
/**
|
|
33
|
+
* The baseline environment the run judges under: the tier, record date and capability flags its
|
|
34
|
+
* vectors start from and its suites inherit where their own defaults state nothing. A vector
|
|
35
|
+
* case or a scenario's own `given` may override a member; that case's result commits the
|
|
36
|
+
* environment it actually used, so the baseline never labels a decision taken under another.
|
|
37
|
+
*
|
|
38
|
+
* The report commits this baseline, so two runs that differ only in a member nobody read —
|
|
39
|
+
* a record date no table resolves against, a capability no rule asks about — are two decisions
|
|
40
|
+
* taken in two environments and say so. A suite may declare the same members; the run refuses
|
|
41
|
+
* declarations that contradict each other rather than preferring one.
|
|
42
|
+
*/
|
|
43
|
+
readonly environment?: DeclaredEnvironment;
|
|
44
|
+
/**
|
|
45
|
+
* The declaration each compiler-synthesised rule came from, as `compile()` reports it.
|
|
46
|
+
*
|
|
47
|
+
* A rule a field declaration compiles to belongs to the artifact, but its id belongs to the
|
|
48
|
+
* compiler. Supplying the origins lets a gap name the field and member the author can repair
|
|
49
|
+
* instead of an id their document does not contain. Omitted — a replay over bare artifact
|
|
50
|
+
* bytes — the gap names the rule id, which is all that artifact states.
|
|
51
|
+
*/
|
|
52
|
+
readonly declarations?: readonly DeclaredRuleOrigin[];
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Something the run observed that grants no publish credit, and why.
|
|
56
|
+
*
|
|
57
|
+
* Kept apart from the coverage it does not contribute to, because it is a hint about evidence the
|
|
58
|
+
* suite could have stated — an assertion that passed while proving nothing about its rule, or a
|
|
59
|
+
* firing no assertion covered — never credit.
|
|
60
|
+
*/
|
|
61
|
+
export interface ObservedOnly {
|
|
62
|
+
readonly target: AssertionTarget;
|
|
63
|
+
readonly refusal: BranchRefusal;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The verdict and the evidence it rests on: what `--out` stores beside the artifact.
|
|
67
|
+
*
|
|
68
|
+
* This is the shape `spec/semantics/rules-v1.md` `RULES-3.1.2` names as publishing evidence. Its
|
|
69
|
+
* `gaps` are bounded by the artifact's rule list and the suites the run named — a rule's failing
|
|
70
|
+
* vectors and a suite each state one gap however many of their claims failed — rather than by how
|
|
71
|
+
* much failed. The run transcript — every vector, every assertion, every failed scenario's
|
|
72
|
+
* `explain()` trace — is what a terminal reads under `--max-diagnostics`; storing it would make a
|
|
73
|
+
* publish report as large as the failure it records.
|
|
74
|
+
*
|
|
75
|
+
* A stored report is an unauthenticated proposal, never an authorisation and never an input: no
|
|
76
|
+
* exported entry accepts one, so a gate re-derives the verdict by running `verifyPublishReadiness`
|
|
77
|
+
* over the artifact it serves rather than trusting bytes beside it. Editing `ready` in the file
|
|
78
|
+
* therefore changes nothing but the file.
|
|
79
|
+
*/
|
|
80
|
+
export type PublishReport = PublishReadiness & {
|
|
81
|
+
readonly behaviorHash: string;
|
|
82
|
+
/**
|
|
83
|
+
* The baseline environment the run and its vectors started from, normalized: the tier always,
|
|
84
|
+
* and the record date and capability flags exactly when a declaration named them
|
|
85
|
+
* (`publish/environment.ts`).
|
|
86
|
+
*
|
|
87
|
+
* A decision is a function of its environment, so an archived report that omitted it could not
|
|
88
|
+
* say which record date or tier it was taken at. A vector or scenario may override a member;
|
|
89
|
+
* `evidenceHash` commits each case's effective environment as well, so this member is never a
|
|
90
|
+
* claim about a case that judged under another. `capabilities` is committed as a set.
|
|
91
|
+
*/
|
|
92
|
+
readonly environment: PublishEnvironment;
|
|
93
|
+
/**
|
|
94
|
+
* The digest of `environment`, so a stored report can hand its environment to a replay and a
|
|
95
|
+
* gate can tell an environment edited beside the digest from the one that was judged.
|
|
96
|
+
* `environmentHashOf(environment)` is the one derivation.
|
|
97
|
+
*/
|
|
98
|
+
readonly environmentHash: string;
|
|
99
|
+
/**
|
|
100
|
+
* The digest of the evidence the run executed: the artifact's behaviour hash, the baseline
|
|
101
|
+
* environment it judged under, the table pins it resolved, every vector's verdict in its own
|
|
102
|
+
* effective environment, and every suite's assertions, stale cases and unasserted observations.
|
|
103
|
+
*
|
|
104
|
+
* Two runs that judged two different suites, the same suite against another table version, or
|
|
105
|
+
* the same evidence in another environment are different pieces of evidence and say so; a stored
|
|
106
|
+
* report names the evidence it rests on rather than only the artifact it was judged against.
|
|
107
|
+
* `behaviorHash` excludes `testCases` by contract (`RULES-5.1.2`), so it alone would let three
|
|
108
|
+
* different suites produce one report.
|
|
109
|
+
*
|
|
110
|
+
* The verdict the digest accompanies — `ready`, `gaps`, `coverage` and `observedOnly` — is not
|
|
111
|
+
* folded into it. Those members are a pure function of the folded evidence and the artifact's
|
|
112
|
+
* rules (which `behaviorHash` commits), so equal digests derived from equal evidence yield equal
|
|
113
|
+
* verdicts; folding them would restate the same facts in a second form. What the digest does not
|
|
114
|
+
* do is authenticate them: a stored report is a proposal, and a member edited beside the digest
|
|
115
|
+
* is a claim no gate reads, because a gate re-derives the verdict rather than trusting the file
|
|
116
|
+
* (`PublishReport`). A consumer that must know a report's members came from one run compares the
|
|
117
|
+
* digest a fresh verification derives, not the members alone.
|
|
118
|
+
*/
|
|
119
|
+
readonly evidenceHash: string;
|
|
120
|
+
readonly datasetHashes: readonly ResolvedDatasetPin[];
|
|
121
|
+
readonly coverage: readonly RuleCoverage[];
|
|
122
|
+
readonly observedOnly: readonly ObservedOnly[];
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* The verdict, the executed evidence behind it, and the run detail an operator reads.
|
|
126
|
+
*
|
|
127
|
+
* It is a `PublishReport` and nothing else about the verdict: `publishReport` narrows it to the
|
|
128
|
+
* stored shape, so a report cannot state one verdict and carry another. The extra members are
|
|
129
|
+
* what a terminal prints.
|
|
130
|
+
*/
|
|
131
|
+
export type PublishVerification = PublishReport & {
|
|
132
|
+
readonly vectors: readonly EmbeddedVector[];
|
|
133
|
+
readonly suites: readonly ScenarioSuiteReport[];
|
|
134
|
+
};
|
|
135
|
+
/** The stored form of a verification: the report, without the run detail a terminal reads. */
|
|
136
|
+
export declare function publishReport(verification: PublishVerification): PublishReport;
|
|
137
|
+
/**
|
|
138
|
+
* Verifies that an artifact's executed evidence satisfies the publishing rule.
|
|
139
|
+
*
|
|
140
|
+
* `ready` is `true` only when every rule has a passing case on each branch its expression can
|
|
141
|
+
* reach among the vectors and suites this call ran, every one of those claims held, and every table
|
|
142
|
+
* the artifact pins resolves to the version it was compiled against. Everything else is a gap
|
|
143
|
+
* naming the rule, the location and the reason.
|
|
144
|
+
*/
|
|
145
|
+
export declare function verifyPublishReadiness(compiled: CompiledSchema, options?: PublishVerificationOptions): PublishVerification;
|
|
146
|
+
//# sourceMappingURL=verify.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../src/publish/verify.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEV,cAAc,EAEd,mBAAmB,EAEpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAIxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAE3F,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AACnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAI5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,KAAK,EACV,kBAAkB,EAGlB,gBAAgB,EAChB,YAAY,EACb,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD;;;;;;;;;;;;GAYG;AAEH,4GAA4G;AAC5G,MAAM,WAAW,0BAA0B;IACzC,wFAAwF;IACxF,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;IACnD;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACnD;;;;;;;;;;OAUG;IACH,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