@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,166 @@
|
|
|
1
|
+
import { compareCodePoints, sameValueDomain, unpairableRows } from '@azx-pbc/axiom-runtime';
|
|
2
|
+
import { fieldsById } from '../compile/declarations.js';
|
|
3
|
+
/**
|
|
4
|
+
* What a revision asks of the values already recorded under it.
|
|
5
|
+
*
|
|
6
|
+
* `spec/semantics/evolution-v1.md` §2 governs a *value*, but a host defending an old decision
|
|
7
|
+
* needs the revision itself to be migratable, not merely re-readable: a recorded value survives a
|
|
8
|
+
* schema change only if the change states what happens to it. Each kind of change therefore names
|
|
9
|
+
* one requirement, and this module is the only place that decides which kinds a pair of revisions
|
|
10
|
+
* states.
|
|
11
|
+
*
|
|
12
|
+
* Requirements are read from the two artifacts' declarations, less the hop's declared transforms.
|
|
13
|
+
* Nothing here executes a transform, reads a recorded value or reads a clock: the answer states what
|
|
14
|
+
* remains outstanding after the transforms the host supplied are counted.
|
|
15
|
+
*/
|
|
16
|
+
/** The kinds a revision can require, in the order the evolution contract states them. */
|
|
17
|
+
const MIGRATION_KINDS = [
|
|
18
|
+
'requires-upcaster',
|
|
19
|
+
'requires-mapping',
|
|
20
|
+
'requires-identity-review',
|
|
21
|
+
'requires-host-mapping',
|
|
22
|
+
'requires-measure-review',
|
|
23
|
+
];
|
|
24
|
+
/** Names in code-point order, so two runs over the same pair report the same lists. */
|
|
25
|
+
function sorted(names) {
|
|
26
|
+
return [...names].sort(compareCodePoints);
|
|
27
|
+
}
|
|
28
|
+
/** Whether two `rowKey` declarations name rows the same way. */
|
|
29
|
+
function sameRowKey(left, right) {
|
|
30
|
+
const from = left.rowKey;
|
|
31
|
+
const to = right.rowKey;
|
|
32
|
+
if (from === undefined || to === undefined)
|
|
33
|
+
return from === to;
|
|
34
|
+
return from.mode === to.mode && from.fieldId === to.fieldId;
|
|
35
|
+
}
|
|
36
|
+
/** A boolean's two codes exist even when a switch leaves their option declarations implicit. */
|
|
37
|
+
const BOOLEAN_OPTION_CODES = new Set(['true', 'false']);
|
|
38
|
+
/**
|
|
39
|
+
* The option codes one declaration states, or `undefined` when its domain is open or host-supplied.
|
|
40
|
+
*
|
|
41
|
+
* The compiler keeps one field's codes in one wire domain, so canonical text is a stable comparison
|
|
42
|
+
* key within that field.
|
|
43
|
+
*/
|
|
44
|
+
function optionCodes(field) {
|
|
45
|
+
if (field.options !== undefined) {
|
|
46
|
+
return new Set(field.options.map((option) => String(option.code)));
|
|
47
|
+
}
|
|
48
|
+
return field.primitive === 'boolean' ? BOOLEAN_OPTION_CODES : undefined;
|
|
49
|
+
}
|
|
50
|
+
/** Whether recorded values could fall outside the option domain `after` declares. */
|
|
51
|
+
function optionDomainNeedsMapping(before, after) {
|
|
52
|
+
const published = optionCodes(before);
|
|
53
|
+
const draft = optionCodes(after);
|
|
54
|
+
// Closing any open domain needs a mapping too: the old artifact cannot enumerate the recorded
|
|
55
|
+
// codes, whether they came from free input or a source, so none can be assumed to occur in the
|
|
56
|
+
// new closed list. Adding a code to a list that was already closed stays silent.
|
|
57
|
+
if (published === undefined)
|
|
58
|
+
return draft !== undefined;
|
|
59
|
+
for (const code of published) {
|
|
60
|
+
if (draft?.has(code) !== true)
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
/** The context roots one artifact declares, keyed by the path that addresses them. */
|
|
66
|
+
function contextRoots(schema) {
|
|
67
|
+
return new Map((schema.context?.roots ?? []).map((root) => [root.path, root]));
|
|
68
|
+
}
|
|
69
|
+
/** The table versions one artifact pins, keyed by table id. */
|
|
70
|
+
function datasetPins(schema) {
|
|
71
|
+
return new Map((schema.datasets ?? []).map((ref) => [ref.tableId, ref.tableVersion]));
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Every requirement one revision of `before` into `after` states, less those `transforms` discharge.
|
|
75
|
+
*
|
|
76
|
+
* The comparison is by identity: a declaration by its `fieldId`, a context root by its `path`, a
|
|
77
|
+
* table by its `tableId`. A declaration `after` no longer declares is reported as removed rather
|
|
78
|
+
* than as a requirement of its own, because no migration repairs it, and a declaration whose array
|
|
79
|
+
* scope moved is reported the same way.
|
|
80
|
+
*
|
|
81
|
+
* `transforms` is the hop's own upcaster map, keyed by `fieldId` (`EVOL-2.1.5`). A transform states
|
|
82
|
+
* what a recorded value becomes, so it discharges the two requirements that are about the value —
|
|
83
|
+
* `requires-upcaster` and `requires-mapping` — and the hop is publishable once it does. It
|
|
84
|
+
* discharges nothing else: row identity, archived context and the measurement basis are not values
|
|
85
|
+
* an upcast sees, so those requirements stand whatever the map holds. An absent map is an identity
|
|
86
|
+
* hop, which is why omitting it asks for every requirement the declarations state.
|
|
87
|
+
*
|
|
88
|
+
* Only a change that can reach a recorded value is a requirement. An option code the revision
|
|
89
|
+
* *adds* to a list that was already closed needs no mapping, because no recorded value can hold a
|
|
90
|
+
* code that did not exist, and a context root it adds has no archived values under it. A table is
|
|
91
|
+
* different: a report pins the version it decided against, so any change to the pinned set is a new
|
|
92
|
+
* measurement basis.
|
|
93
|
+
*/
|
|
94
|
+
export function revisionRequirements(before, after, transforms = new Map()) {
|
|
95
|
+
const priorFields = fieldsById(before.fields);
|
|
96
|
+
const nextFields = fieldsById(after.fields);
|
|
97
|
+
const upcast = [];
|
|
98
|
+
const mapping = [];
|
|
99
|
+
const identity = [];
|
|
100
|
+
for (const [fieldId, prior] of priorFields) {
|
|
101
|
+
const next = nextFields.get(fieldId);
|
|
102
|
+
if (next === undefined)
|
|
103
|
+
continue;
|
|
104
|
+
// A transform replaces the recorded value, so it answers a domain or option change; the
|
|
105
|
+
// runtime applies it at the hop that states the change and refuses the hop without it.
|
|
106
|
+
const transformed = transforms.has(fieldId);
|
|
107
|
+
if (!transformed && !sameValueDomain(prior, next))
|
|
108
|
+
upcast.push(fieldId);
|
|
109
|
+
if (!transformed && optionDomainNeedsMapping(prior, next))
|
|
110
|
+
mapping.push(fieldId);
|
|
111
|
+
if (!sameRowKey(prior, next))
|
|
112
|
+
identity.push(fieldId);
|
|
113
|
+
}
|
|
114
|
+
const priorRoots = contextRoots(before);
|
|
115
|
+
const nextRoots = contextRoots(after);
|
|
116
|
+
const hostMapping = [];
|
|
117
|
+
for (const [path, prior] of priorRoots) {
|
|
118
|
+
const next = nextRoots.get(path);
|
|
119
|
+
if (next === undefined || !sameValueDomain(prior, next))
|
|
120
|
+
hostMapping.push(path);
|
|
121
|
+
}
|
|
122
|
+
const priorTables = datasetPins(before);
|
|
123
|
+
const nextTables = datasetPins(after);
|
|
124
|
+
const measure = [];
|
|
125
|
+
for (const tableId of new Set([...priorTables.keys(), ...nextTables.keys()])) {
|
|
126
|
+
if (priorTables.get(tableId) !== nextTables.get(tableId))
|
|
127
|
+
measure.push(tableId);
|
|
128
|
+
}
|
|
129
|
+
const migrations = [];
|
|
130
|
+
const stated = [
|
|
131
|
+
['requires-upcaster', sorted(upcast)],
|
|
132
|
+
['requires-mapping', sorted(mapping)],
|
|
133
|
+
['requires-identity-review', sorted(identity)],
|
|
134
|
+
['requires-host-mapping', sorted(hostMapping)],
|
|
135
|
+
['requires-measure-review', sorted(measure)],
|
|
136
|
+
];
|
|
137
|
+
for (const [kind, subjects] of stated)
|
|
138
|
+
if (subjects.length > 0)
|
|
139
|
+
migrations.push({ kind, subjects });
|
|
140
|
+
const removedFields = sorted([...priorFields.keys()].filter((fieldId) => !nextFields.has(fieldId)));
|
|
141
|
+
return { removedFields, rowsUnpaired: unpairableRows(before, after), migrations };
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* One requirement per kind over a chain of revisions, with each kind's subjects unioned.
|
|
145
|
+
*
|
|
146
|
+
* A transition that skips editions passes through each of them, and every hop states its own
|
|
147
|
+
* requirements: an option code dropped at one hop and restored at the next is invisible to the two
|
|
148
|
+
* endpoints but is still a value the host has to map.
|
|
149
|
+
*/
|
|
150
|
+
export function mergeRevisionMigrations(migrations) {
|
|
151
|
+
const subjectsOfKind = new Map();
|
|
152
|
+
for (const migration of migrations) {
|
|
153
|
+
const subjects = subjectsOfKind.get(migration.kind) ?? new Set();
|
|
154
|
+
for (const subject of migration.subjects)
|
|
155
|
+
subjects.add(subject);
|
|
156
|
+
subjectsOfKind.set(migration.kind, subjects);
|
|
157
|
+
}
|
|
158
|
+
const merged = [];
|
|
159
|
+
for (const kind of MIGRATION_KINDS) {
|
|
160
|
+
const subjects = subjectsOfKind.get(kind);
|
|
161
|
+
if (subjects !== undefined)
|
|
162
|
+
merged.push({ kind, subjects: sorted(subjects) });
|
|
163
|
+
}
|
|
164
|
+
return merged;
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=migrations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../src/publish/migrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE5F,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD;;;;;;;;;;;;GAYG;AAEH,yFAAyF;AACzF,MAAM,eAAe,GAAG;IACtB,mBAAmB;IACnB,kBAAkB;IAClB,0BAA0B;IAC1B,uBAAuB;IACvB,yBAAyB;CACjB,CAAC;AAgEX,uFAAuF;AACvF,SAAS,MAAM,CAAC,KAAuB;IACrC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;AAC5C,CAAC;AAED,gEAAgE;AAChE,SAAS,UAAU,CAAC,IAAmB,EAAE,KAAoB;IAC3D,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;IACzB,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC;IACxB,IAAI,IAAI,KAAK,SAAS,IAAI,EAAE,KAAK,SAAS;QAAE,OAAO,IAAI,KAAK,EAAE,CAAC;IAC/D,OAAO,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,EAAE,CAAC,OAAO,CAAC;AAC9D,CAAC;AAED,gGAAgG;AAChG,MAAM,oBAAoB,GAAwB,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAE7E;;;;;GAKG;AACH,SAAS,WAAW,CAAC,KAAoB;IACvC,IAAI,KAAK,CAA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MAAM,CAC1B,CAAC,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CACtE,CAAC;IACF,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;AACpF,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CACrC,UAAwC;IAExC,MAAM,cAAc,GAAG,IAAI,GAAG,EAA0C,CAAC;IACzE,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,QAAQ,GAAG,cAAc,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,IAAI,GAAG,EAAU,CAAC;QACzE,KAAK,MAAM,OAAO,IAAI,SAAS,CAAC,QAAQ;YAAE,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAChE,cAAc,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC;IACD,MAAM,MAAM,GAAwB,EAAE,CAAC;IACvC,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE,CAAC;QACnC,MAAM,QAAQ,GAAG,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,QAAQ,KAAK,SAAS;YAAE,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAChF,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import { compareCodePoints, sameValueDomain, unpairableRows } from '@azx-pbc/axiom-runtime';\nimport type { CompiledField, CompiledSchema, ContextRoot, Upcaster } from '@azx-pbc/axiom-runtime';\nimport { fieldsById } from '../compile/declarations.js';\n\n/**\n * What a revision asks of the values already recorded under it.\n *\n * `spec/semantics/evolution-v1.md` §2 governs a *value*, but a host defending an old decision\n * needs the revision itself to be migratable, not merely re-readable: a recorded value survives a\n * schema change only if the change states what happens to it. Each kind of change therefore names\n * one requirement, and this module is the only place that decides which kinds a pair of revisions\n * states.\n *\n * Requirements are read from the two artifacts' declarations, less the hop's declared transforms.\n * Nothing here executes a transform, reads a recorded value or reads a clock: the answer states what\n * remains outstanding after the transforms the host supplied are counted.\n */\n\n/** The kinds a revision can require, in the order the evolution contract states them. */\nconst MIGRATION_KINDS = [\n 'requires-upcaster',\n 'requires-mapping',\n 'requires-identity-review',\n 'requires-host-mapping',\n 'requires-measure-review',\n] as const;\n\n/**\n * One requirement a revision states, named by the classification the evolution contract gives it.\n *\n * A requirement is not a refusal: the host supplies the transform, mapping or binding it names and\n * the revision then publishes. `revisionRequirements` therefore leaves out the requirements a\n * declared transform already discharges.\n */\nexport interface RevisionMigration {\n /**\n * What the revision needs, one of:\n *\n * - `requires-upcaster` (`EVOL-2.1.4`): a field's primitive, or the `(currency, scale)` a money\n * value parses under, changed. Carrying a recorded value across it would present the new\n * declaration with a value it never admitted, so an upcaster has to state the conversion.\n * - `requires-mapping`: a published option code the revision no longer declares, or an open or\n * host-supplied domain that becomes a closed list. A recorded value may fall outside the new\n * declaration, while an upcast carries a value through untouched — a value is opaque there —\n * so `EVOL-2.1.3` needs a declared mapping.\n * - `requires-identity-review` (`EVOL-2.1.6`): a record array's `rowKey` changed — its mode, or\n * the member a natural key names. An upcast carries a row for row and a row is never an\n * upcaster key, so identity cannot be re-established by a transform.\n * - `requires-host-mapping`: a context root was re-typed, or a published root is gone. Context is\n * the host's archived data rather than a record's, and no record upcast sees it.\n * - `requires-measure-review` (`EVOL-1.1.2`): the tables the artifact pins changed. A report\n * records the version it was produced under and the pin is part of the behaviour identity, so\n * the new revision decides against its own measurement basis rather than re-resolving the old\n * decision's.\n */\n readonly kind: (typeof MIGRATION_KINDS)[number];\n /**\n * What to resolve: the `fieldId`s, context-root `path`s or `tableId`s, in code-point order,\n * whichever the `kind` says it names.\n */\n readonly subjects: readonly string[];\n}\n\n/**\n * Everything one revision of `before` into `after` asks of the values recorded under `before`, and\n * the two facts along the same walk that no migration repairs.\n */\nexport interface RevisionRequirements {\n /**\n * The declarations `before` states that `after` does not, in code-point order.\n *\n * This is a refusal rather than a requirement: `EVOL-3.1.2` keeps a `fieldId` immortal and the\n * upcast refuses the recorded value of a declaration the target does not name, so no transform\n * can carry it. Reported here because the walk that finds the requirements finds this too.\n */\n readonly removedFields: readonly string[];\n /**\n * The declarations both revisions carry whose recorded rows cannot be paired between them, in\n * code-point order.\n *\n * Also a refusal rather than a requirement: a value is carried row for row within the array\n * containers its declaration sits under and a row is never an upcaster key (`EVOL-2.1.6`), so a\n * declaration that changes which array scope holds it has no transform to state.\n */\n readonly rowsUnpaired: readonly string[];\n /** The requirements, in the order the evolution contract states the rows. */\n readonly migrations: readonly RevisionMigration[];\n}\n\n/** Names in code-point order, so two runs over the same pair report the same lists. */\nfunction sorted(names: Iterable<string>): readonly string[] {\n return [...names].sort(compareCodePoints);\n}\n\n/** Whether two `rowKey` declarations name rows the same way. */\nfunction sameRowKey(left: CompiledField, right: CompiledField): boolean {\n const from = left.rowKey;\n const to = right.rowKey;\n if (from === undefined || to === undefined) return from === to;\n return from.mode === to.mode && from.fieldId === to.fieldId;\n}\n\n/** A boolean's two codes exist even when a switch leaves their option declarations implicit. */\nconst BOOLEAN_OPTION_CODES: ReadonlySet<string> = new Set(['true', 'false']);\n\n/**\n * The option codes one declaration states, or `undefined` when its domain is open or host-supplied.\n *\n * The compiler keeps one field's codes in one wire domain, so canonical text is a stable comparison\n * key within that field.\n */\nfunction optionCodes(field: CompiledField): ReadonlySet<string> | undefined {\n if (field.options !== undefined) {\n return new Set(field.options.map((option) => String(option.code)));\n }\n return field.primitive === 'boolean' ? BOOLEAN_OPTION_CODES : undefined;\n}\n\n/** Whether recorded values could fall outside the option domain `after` declares. */\nfunction optionDomainNeedsMapping(before: CompiledField, after: CompiledField): boolean {\n const published = optionCodes(before);\n const draft = optionCodes(after);\n // Closing any open domain needs a mapping too: the old artifact cannot enumerate the recorded\n // codes, whether they came from free input or a source, so none can be assumed to occur in the\n // new closed list. Adding a code to a list that was already closed stays silent.\n if (published === undefined) return draft !== undefined;\n for (const code of published) {\n if (draft?.has(code) !== true) return true;\n }\n return false;\n}\n\n/** The context roots one artifact declares, keyed by the path that addresses them. */\nfunction contextRoots(schema: CompiledSchema): ReadonlyMap<string, ContextRoot> {\n return new Map((schema.context?.roots ?? []).map((root) => [root.path, root]));\n}\n\n/** The table versions one artifact pins, keyed by table id. */\nfunction datasetPins(schema: CompiledSchema): ReadonlyMap<string, number> {\n return new Map((schema.datasets ?? []).map((ref) => [ref.tableId, ref.tableVersion]));\n}\n\n/**\n * Every requirement one revision of `before` into `after` states, less those `transforms` discharge.\n *\n * The comparison is by identity: a declaration by its `fieldId`, a context root by its `path`, a\n * table by its `tableId`. A declaration `after` no longer declares is reported as removed rather\n * than as a requirement of its own, because no migration repairs it, and a declaration whose array\n * scope moved is reported the same way.\n *\n * `transforms` is the hop's own upcaster map, keyed by `fieldId` (`EVOL-2.1.5`). A transform states\n * what a recorded value becomes, so it discharges the two requirements that are about the value —\n * `requires-upcaster` and `requires-mapping` — and the hop is publishable once it does. It\n * discharges nothing else: row identity, archived context and the measurement basis are not values\n * an upcast sees, so those requirements stand whatever the map holds. An absent map is an identity\n * hop, which is why omitting it asks for every requirement the declarations state.\n *\n * Only a change that can reach a recorded value is a requirement. An option code the revision\n * *adds* to a list that was already closed needs no mapping, because no recorded value can hold a\n * code that did not exist, and a context root it adds has no archived values under it. A table is\n * different: a report pins the version it decided against, so any change to the pinned set is a new\n * measurement basis.\n */\nexport function revisionRequirements(\n before: CompiledSchema,\n after: CompiledSchema,\n transforms: ReadonlyMap<string, Upcaster> = new Map(),\n): RevisionRequirements {\n const priorFields = fieldsById(before.fields);\n const nextFields = fieldsById(after.fields);\n const upcast: string[] = [];\n const mapping: string[] = [];\n const identity: string[] = [];\n for (const [fieldId, prior] of priorFields) {\n const next = nextFields.get(fieldId);\n if (next === undefined) continue;\n // A transform replaces the recorded value, so it answers a domain or option change; the\n // runtime applies it at the hop that states the change and refuses the hop without it.\n const transformed = transforms.has(fieldId);\n if (!transformed && !sameValueDomain(prior, next)) upcast.push(fieldId);\n if (!transformed && optionDomainNeedsMapping(prior, next)) mapping.push(fieldId);\n if (!sameRowKey(prior, next)) identity.push(fieldId);\n }\n\n const priorRoots = contextRoots(before);\n const nextRoots = contextRoots(after);\n const hostMapping: string[] = [];\n for (const [path, prior] of priorRoots) {\n const next = nextRoots.get(path);\n if (next === undefined || !sameValueDomain(prior, next)) hostMapping.push(path);\n }\n\n const priorTables = datasetPins(before);\n const nextTables = datasetPins(after);\n const measure: string[] = [];\n for (const tableId of new Set([...priorTables.keys(), ...nextTables.keys()])) {\n if (priorTables.get(tableId) !== nextTables.get(tableId)) measure.push(tableId);\n }\n\n const migrations: RevisionMigration[] = [];\n const stated: readonly (readonly [RevisionMigration['kind'], readonly string[]])[] = [\n ['requires-upcaster', sorted(upcast)],\n ['requires-mapping', sorted(mapping)],\n ['requires-identity-review', sorted(identity)],\n ['requires-host-mapping', sorted(hostMapping)],\n ['requires-measure-review', sorted(measure)],\n ];\n for (const [kind, subjects] of stated)\n if (subjects.length > 0) migrations.push({ kind, subjects });\n\n const removedFields = sorted(\n [...priorFields.keys()].filter((fieldId) => !nextFields.has(fieldId)),\n );\n return { removedFields, rowsUnpaired: unpairableRows(before, after), migrations };\n}\n\n/**\n * One requirement per kind over a chain of revisions, with each kind's subjects unioned.\n *\n * A transition that skips editions passes through each of them, and every hop states its own\n * requirements: an option code dropped at one hop and restored at the next is invisible to the two\n * endpoints but is still a value the host has to map.\n */\nexport function mergeRevisionMigrations(\n migrations: readonly RevisionMigration[],\n): readonly RevisionMigration[] {\n const subjectsOfKind = new Map<RevisionMigration['kind'], Set<string>>();\n for (const migration of migrations) {\n const subjects = subjectsOfKind.get(migration.kind) ?? new Set<string>();\n for (const subject of migration.subjects) subjects.add(subject);\n subjectsOfKind.set(migration.kind, subjects);\n }\n const merged: RevisionMigration[] = [];\n for (const kind of MIGRATION_KINDS) {\n const subjects = subjectsOfKind.get(kind);\n if (subjects !== undefined) merged.push({ kind, subjects: sorted(subjects) });\n }\n return merged;\n}\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Observation } from '@azx-pbc/axiom-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* The one reading of an embedded vector's `expected` member into the runtime's tagged
|
|
4
|
+
* observation.
|
|
5
|
+
*
|
|
6
|
+
* A vector states three different things with one member: an outcome (`PASS`), a screen's own
|
|
7
|
+
* outcome (`SCREEN_REFER`) or a writer's value (any canonical wire value, `null` included). The
|
|
8
|
+
* tag is derived here rather than at each caller, so publish readiness and the CLI's verdict
|
|
9
|
+
* cannot disagree about what a vector claims. `SCREEN_*` names a screen rule's outcome and
|
|
10
|
+
* states nothing about a rule of another kind; a value states nothing about a rule that decides
|
|
11
|
+
* an outcome. Both are refusals carrying the wording the CLI prints, so the two paths refuse one
|
|
12
|
+
* document identically.
|
|
13
|
+
*/
|
|
14
|
+
export type ExpectedObservation = {
|
|
15
|
+
readonly ok: true;
|
|
16
|
+
readonly observation: Observation;
|
|
17
|
+
} | {
|
|
18
|
+
readonly ok: false;
|
|
19
|
+
readonly detail: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Reads one vector's expectation against the rule kind that states it.
|
|
23
|
+
*
|
|
24
|
+
* The kind arrives as text because a document is untrusted: the closed metaschema proves the
|
|
25
|
+
* kind, but a hand-assembled document reaches here too, so an unknown kind is read as
|
|
26
|
+
* `validate` — the kind whose expectation is an outcome — rather than trusted.
|
|
27
|
+
*/
|
|
28
|
+
export declare function observationOfExpected(kind: string, expected: unknown): ExpectedObservation;
|
|
29
|
+
//# sourceMappingURL=observation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observation.d.ts","sourceRoot":"","sources":["../../src/publish/observation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAY,MAAM,wBAAwB,CAAC;AAGpE;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,mBAAmB,GAC3B;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAA;CAAE,GACxD;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAOpD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,mBAAmB,CA4B1F"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { isRuleKind, isWireValue } from '@azx-pbc/axiom-runtime';
|
|
2
|
+
import { isOutcome, isVectorScreenOutcome } from '../scenarios/vocabulary.js';
|
|
3
|
+
/** Whether a rule kind is one whose expectation is the value it produced. */
|
|
4
|
+
function isWriterKind(kind) {
|
|
5
|
+
return kind === 'compute' || kind === 'defaultCompute';
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Reads one vector's expectation against the rule kind that states it.
|
|
9
|
+
*
|
|
10
|
+
* The kind arrives as text because a document is untrusted: the closed metaschema proves the
|
|
11
|
+
* kind, but a hand-assembled document reaches here too, so an unknown kind is read as
|
|
12
|
+
* `validate` — the kind whose expectation is an outcome — rather than trusted.
|
|
13
|
+
*/
|
|
14
|
+
export function observationOfExpected(kind, expected) {
|
|
15
|
+
const ruleKind = isRuleKind(kind) ? kind : 'validate';
|
|
16
|
+
if (typeof expected === 'string' && isOutcome(expected)) {
|
|
17
|
+
return { ok: true, observation: { kind: 'outcome', outcome: expected } };
|
|
18
|
+
}
|
|
19
|
+
if (typeof expected === 'string' && isVectorScreenOutcome(expected)) {
|
|
20
|
+
if (ruleKind !== 'screen') {
|
|
21
|
+
return {
|
|
22
|
+
ok: false,
|
|
23
|
+
detail: `a \`${ruleKind}\` rule has no screen outcome, so ${JSON.stringify(expected)} states nothing about it`,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
return { ok: true, observation: { kind: 'screen', outcome: expected } };
|
|
27
|
+
}
|
|
28
|
+
if (typeof expected === 'boolean' && !isWriterKind(ruleKind)) {
|
|
29
|
+
return { ok: true, observation: { kind: 'outcome', outcome: expected ? 'PASS' : 'FAIL' } };
|
|
30
|
+
}
|
|
31
|
+
if (!isWriterKind(ruleKind)) {
|
|
32
|
+
return {
|
|
33
|
+
ok: false,
|
|
34
|
+
detail: `a \`${ruleKind}\` rule asserts an outcome, not ${JSON.stringify(expected)}`,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
if (!isWireValue(expected)) {
|
|
38
|
+
return { ok: false, detail: `${JSON.stringify(expected)} is not a canonical wire value` };
|
|
39
|
+
}
|
|
40
|
+
// A writer fires by producing a value, and an authored `null` is a value it produced.
|
|
41
|
+
return { ok: true, observation: { kind: 'value', value: expected } };
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=observation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observation.js","sourceRoot":"","sources":["../../src/publish/observation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAkB9E,6EAA6E;AAC7E,SAAS,YAAY,CAAC,IAAc;IAClC,OAAO,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,gBAAgB,CAAC;AACzD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAY,EAAE,QAAiB;IACnE,MAAM,QAAQ,GAAa,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CA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AG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,gCAAgC,EAAE,CAAC;IAC5F,CAAC;IACD,sFAAsF;IACtF,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC;AACvE,CAAC","sourcesContent":["import { isRuleKind, isWireValue } from '@azx-pbc/axiom-runtime';\nimport type { Observation, RuleKind } from '@azx-pbc/axiom-runtime';\nimport { isOutcome, isVectorScreenOutcome } from '../scenarios/vocabulary.js';\n\n/**\n * The one reading of an embedded vector's `expected` member into the runtime's tagged\n * observation.\n *\n * A vector states three different things with one member: an outcome (`PASS`), a screen's own\n * outcome (`SCREEN_REFER`) or a writer's value (any canonical wire value, `null` included). The\n * tag is derived here rather than at each caller, so publish readiness and the CLI's verdict\n * cannot disagree about what a vector claims. `SCREEN_*` names a screen rule's outcome and\n * states nothing about a rule of another kind; a value states nothing about a rule that decides\n * an outcome. Both are refusals carrying the wording the CLI prints, so the two paths refuse one\n * document identically.\n */\nexport type ExpectedObservation =\n | { readonly ok: true; readonly observation: Observation }\n | { readonly ok: false; readonly detail: string };\n\n/** Whether a rule kind is one whose expectation is the value it produced. */\nfunction isWriterKind(kind: RuleKind): boolean {\n return kind === 'compute' || kind === 'defaultCompute';\n}\n\n/**\n * Reads one vector's expectation against the rule kind that states it.\n *\n * The kind arrives as text because a document is untrusted: the closed metaschema proves the\n * kind, but a hand-assembled document reaches here too, so an unknown kind is read as\n * `validate` — the kind whose expectation is an outcome — rather than trusted.\n */\nexport function observationOfExpected(kind: string, expected: unknown): ExpectedObservation {\n const ruleKind: RuleKind = isRuleKind(kind) ? kind : 'validate';\n if (typeof expected === 'string' && isOutcome(expected)) {\n return { ok: true, observation: { kind: 'outcome', outcome: expected } };\n }\n if (typeof expected === 'string' && isVectorScreenOutcome(expected)) {\n if (ruleKind !== 'screen') {\n return {\n ok: false,\n detail: `a \\`${ruleKind}\\` rule has no screen outcome, so ${JSON.stringify(expected)} states nothing about it`,\n };\n }\n return { ok: true, observation: { kind: 'screen', outcome: expected } };\n }\n if (typeof expected === 'boolean' && !isWriterKind(ruleKind)) {\n return { ok: true, observation: { kind: 'outcome', outcome: expected ? 'PASS' : 'FAIL' } };\n }\n if (!isWriterKind(ruleKind)) {\n return {\n ok: false,\n detail: `a \\`${ruleKind}\\` rule asserts an outcome, not ${JSON.stringify(expected)}`,\n };\n }\n if (!isWireValue(expected)) {\n return { ok: false, detail: `${JSON.stringify(expected)} is not a canonical wire value` };\n }\n // A writer fires by producing a value, and an authored `null` is a value it produced.\n return { ok: true, observation: { kind: 'value', value: expected } };\n}\n"]}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import type { ArtifactBehaviour, CompiledSchema, RuleKind } from '@azx-pbc/axiom-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* The publisher's one rule, and the evidence it is read against.
|
|
4
|
+
*
|
|
5
|
+
* A rule is ready to publish when evidence proves each branch of its firing table that a record can
|
|
6
|
+
* reach: one case in which the rule fires and one in which it does not
|
|
7
|
+
* (`spec/semantics/rules-v1.md` `RULES-3.1.2`). For the kinds whose outcome is their expression's
|
|
8
|
+
* answer, an expression that folds to a constant boolean makes one branch unreachable, so that
|
|
9
|
+
* branch is not required. This module owns that rule
|
|
10
|
+
* once: `verifyPublishReadiness()` states it over evidence executed against the artifact, and
|
|
11
|
+
* `declaredEvidenceOf()` states what the artifact's own unexecuted vectors declare, because a
|
|
12
|
+
* compile that runs nothing can only report the evidence it was handed.
|
|
13
|
+
*
|
|
14
|
+
* Evidence arrives already judged: which rule each claim was about, whether it proved a firing
|
|
15
|
+
* or a non-firing, and which claims failed outright. Nothing here evaluates a rule or reads a
|
|
16
|
+
* document, so the same fold serves a compile that never runs anything and a verification that
|
|
17
|
+
* ran everything.
|
|
18
|
+
*/
|
|
19
|
+
/** Why a rule, or the evidence behind it, does not support publishing. */
|
|
20
|
+
export type PublishGapKind =
|
|
21
|
+
/** Nothing at all was read about the rule: no embedded vector and no scenario assertion. */
|
|
22
|
+
'no_evidence'
|
|
23
|
+
/** Evidence exists, but none of it proves the rule fires. */
|
|
24
|
+
| 'no_firing'
|
|
25
|
+
/** Evidence exists, but none of it proves the rule does not fire. */
|
|
26
|
+
| 'no_non_firing'
|
|
27
|
+
/** A vector's `expected` states nothing about the rule that carries it. */
|
|
28
|
+
| 'unreadable_expectation'
|
|
29
|
+
/** An embedded vector was executed and did not hold. */
|
|
30
|
+
| 'failed_vector'
|
|
31
|
+
/** A scenario assertion was executed and did not hold. */
|
|
32
|
+
| 'failed_scenario'
|
|
33
|
+
/** A supplied suite was refused before it could run. */
|
|
34
|
+
| 'invalid_suite'
|
|
35
|
+
/** The evidence was executed against a different artifact. */
|
|
36
|
+
| 'stale_behavior'
|
|
37
|
+
/** A table a vector or suite read could not answer at the version this artifact pins. */
|
|
38
|
+
| 'stale_dataset'
|
|
39
|
+
/**
|
|
40
|
+
* The artifact was compiled for a device. Its server-tier rules are deferred stubs and its
|
|
41
|
+
* embedded cases do not travel, so no evidence can be executed against it.
|
|
42
|
+
*/
|
|
43
|
+
| 'client_artifact'
|
|
44
|
+
/**
|
|
45
|
+
* The run and its suites declare environment members that contradict each other, so one
|
|
46
|
+
* report cannot state the environment it judged. Nothing executed.
|
|
47
|
+
*/
|
|
48
|
+
| 'conflicting_environment';
|
|
49
|
+
/**
|
|
50
|
+
* The gap kinds a compile can state from declarations alone.
|
|
51
|
+
*
|
|
52
|
+
* A compile executes nothing, so it cannot observe a failed case, a refused suite or a lookup
|
|
53
|
+
* that did not resolve. Keeping the declared vocabulary narrower is what stops a compile from
|
|
54
|
+
* reporting executed evidence it never ran.
|
|
55
|
+
*/
|
|
56
|
+
export type DeclaredGapKind = 'no_evidence' | 'no_firing' | 'no_non_firing' | 'unreadable_expectation';
|
|
57
|
+
/**
|
|
58
|
+
* The declaration member that carries the evidence for a rule a declaration compiles to.
|
|
59
|
+
*
|
|
60
|
+
* One such rule always has exactly one evidence member — the sibling of the declaration that
|
|
61
|
+
* produced it — so a gap, a builder command and the artifact's `testCases` all name the same
|
|
62
|
+
* place. `minItems`/`maxItems` state a decided fact rather than a rule and carry none.
|
|
63
|
+
*/
|
|
64
|
+
export type DeclarationEvidenceMember = 'requiredTestCases' | 'visibleWhenTestCases' | 'minimumTestCases' | 'maximumTestCases' | 'minLengthTestCases' | 'maxLengthTestCases';
|
|
65
|
+
/**
|
|
66
|
+
* The declaration a compiler-synthesised rule came from.
|
|
67
|
+
*
|
|
68
|
+
* A field declaration compiles to a rule that is part of the artifact and part of this gate
|
|
69
|
+
* (`RULES-3.1.1`), but its id is the compiler's: the author wrote `minLength`, not
|
|
70
|
+
* `r_f_note_min_length`. This origin is what lets a gap name the member the author can repair
|
|
71
|
+
* instead of an id they cannot see. It is authoring metadata and never artifact data, so the
|
|
72
|
+
* artifact a declaration with evidence compiles to stays byte-identical to the hand-written
|
|
73
|
+
* rule's.
|
|
74
|
+
*/
|
|
75
|
+
export interface DeclaredRuleOrigin {
|
|
76
|
+
readonly ruleId: string;
|
|
77
|
+
/** The declaration's document path, `$.fields[1]`. */
|
|
78
|
+
readonly path: string;
|
|
79
|
+
/** The field the declaration belongs to, `f_note`. */
|
|
80
|
+
readonly fieldId: string;
|
|
81
|
+
/** The declaration member that compiles to the rule, `required`, `requiredWhen`, `minLength`. */
|
|
82
|
+
readonly member: string;
|
|
83
|
+
/** The sibling member that carries the rule's evidence, `requiredTestCases`, `minLengthTestCases`. */
|
|
84
|
+
readonly evidenceMember: DeclarationEvidenceMember;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The member that carries one rule's evidence: the declaration's sibling when a declaration
|
|
88
|
+
* produced the rule, else the caller's own fallback.
|
|
89
|
+
*
|
|
90
|
+
* A gap about a generated rule must send the author to the member they can edit
|
|
91
|
+
* (`$.fields[1].minLengthTestCases`), never to an artifact slot the compiler filled.
|
|
92
|
+
*/
|
|
93
|
+
export declare function evidencePathOf(origins: readonly DeclaredRuleOrigin[], ruleId: string, fallback: string): string;
|
|
94
|
+
/** One reason a schema is not ready to publish. */
|
|
95
|
+
export interface PublishGap {
|
|
96
|
+
readonly kind: PublishGapKind;
|
|
97
|
+
/** The rule the gap is about; absent from a gap about the evidence's identity. */
|
|
98
|
+
readonly ruleId?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Where to look. A gap about a hand-written rule names its vector member,
|
|
101
|
+
* `$.rules[n].testCases`; a gap about a rule a declaration compiled names the declaration's
|
|
102
|
+
* evidence member, `$.fields[n].minLengthTestCases`, because that is the member the author
|
|
103
|
+
* wrote. A gap a verification reports about an executed suite names its place in that run,
|
|
104
|
+
* `$.suites[n].scenarios[m]`, because the suite is the caller's document rather than this one.
|
|
105
|
+
*/
|
|
106
|
+
readonly path: string;
|
|
107
|
+
readonly detail: string;
|
|
108
|
+
}
|
|
109
|
+
/** One reason a compile's declared vectors do not prove every reachable branch. */
|
|
110
|
+
export type DeclaredGap = PublishGap & {
|
|
111
|
+
readonly kind: DeclaredGapKind;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Whether the artifact carries the evidence publishing requires.
|
|
115
|
+
*
|
|
116
|
+
* Readiness is a verdict about the artifact, not a reason to refuse one: a schema may be
|
|
117
|
+
* compiled and evaluated in a preview while it is still missing a case, and the operator who
|
|
118
|
+
* publishes it is the one who must be told. Only `verifyPublishReadiness()` derives it, from
|
|
119
|
+
* evidence a run executed; `axiom-cli test` reports it.
|
|
120
|
+
*/
|
|
121
|
+
export type PublishReadiness = {
|
|
122
|
+
readonly ready: true;
|
|
123
|
+
} | {
|
|
124
|
+
readonly ready: false;
|
|
125
|
+
readonly gaps: readonly PublishGap[];
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* What one artifact's declared vectors leave unproven, which is never a publish verdict.
|
|
129
|
+
*
|
|
130
|
+
* A compile executes nothing, so it cannot report that a rule is ready: a vector that passes on
|
|
131
|
+
* paper has not run, and a suite that would cover the rule was never supplied. This names the
|
|
132
|
+
* branches the embedded vectors leave, so an author reads the same `kind`/`path`/`detail` a
|
|
133
|
+
* verification would report — and there is no `ready` member to mistake for one. The `kind`
|
|
134
|
+
* discriminant says what this is, so the value cannot be handed to a consumer that states a
|
|
135
|
+
* verdict; its gap vocabulary is the declared one, so it cannot name a case nobody ran.
|
|
136
|
+
*/
|
|
137
|
+
export interface DeclaredEvidence {
|
|
138
|
+
readonly kind: 'declared';
|
|
139
|
+
/** The branches the declared vectors leave unproven, one reason per rule at most per branch. */
|
|
140
|
+
readonly gaps: readonly DeclaredGap[];
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* What one rule's evidence proved.
|
|
144
|
+
*
|
|
145
|
+
* `attempts` counts the claims that were read about the rule, so a rule nobody asserted is told
|
|
146
|
+
* apart from one whose claims all proved nothing: the first needs a case written, the second has
|
|
147
|
+
* cases that are not evidence.
|
|
148
|
+
*/
|
|
149
|
+
export interface RuleCoverage {
|
|
150
|
+
readonly ruleId: string;
|
|
151
|
+
readonly kind: RuleKind;
|
|
152
|
+
readonly attempts: number;
|
|
153
|
+
readonly firing: boolean;
|
|
154
|
+
readonly nonFiring: boolean;
|
|
155
|
+
}
|
|
156
|
+
/** The judged evidence one verdict is derived from. */
|
|
157
|
+
export interface PublishEvidence {
|
|
158
|
+
/** The artifact the evidence was executed against, `artifactBehaviour(compiled)`. */
|
|
159
|
+
readonly behaviorHash: string;
|
|
160
|
+
/** One entry per rule of the artifact the evidence was about. */
|
|
161
|
+
readonly coverage: readonly RuleCoverage[];
|
|
162
|
+
/** Claims that failed outright, each already carrying its own location and kind. */
|
|
163
|
+
readonly failures: readonly PublishGap[];
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Derives the verdict from evidence, or names every reason it is not ready.
|
|
167
|
+
*
|
|
168
|
+
* The causes are stated before the consequences: evidence bound to another artifact first, then
|
|
169
|
+
* the claims that failed outright, then the coverage each rule still lacks. Evidence from another
|
|
170
|
+
* artifact grants nothing — every claim in it was judged against rules this artifact may no longer
|
|
171
|
+
* have, so its failures are discarded with its coverage and the mismatch is stated once. A rule
|
|
172
|
+
* with no evidence entry at all is a gap in its own right: the evidence producer failed to state
|
|
173
|
+
* a rule the artifact carries, which a publisher must not read as coverage.
|
|
174
|
+
*
|
|
175
|
+
* `behaviour` is the artifact's identity the caller already derived, because the evidence was
|
|
176
|
+
* produced against the same artifact: deriving it here again would re-hash every rule for a
|
|
177
|
+
* caller that had to state it to produce the evidence in the first place.
|
|
178
|
+
*/
|
|
179
|
+
export declare function readinessGaps(schema: CompiledSchema, evidence: PublishEvidence, behaviour: ArtifactBehaviour, origins?: readonly DeclaredRuleOrigin[]): PublishReadiness;
|
|
180
|
+
/**
|
|
181
|
+
* The artifact's own vectors, read as declared evidence.
|
|
182
|
+
*
|
|
183
|
+
* This is the evidence `declaredEvidenceOf` folds for a compile: which branches each rule's
|
|
184
|
+
* embedded vectors declare, and which vectors state nothing about the rule that carries them or
|
|
185
|
+
* only that it deferred. Nothing is executed — the vectors are read as claims, which is exactly
|
|
186
|
+
* what a compile that never runs a rule can honestly report.
|
|
187
|
+
*/
|
|
188
|
+
export declare function embeddedEvidence(schema: CompiledSchema, behaviour: ArtifactBehaviour, origins?: readonly DeclaredRuleOrigin[]): PublishEvidence;
|
|
189
|
+
/**
|
|
190
|
+
* What a compiled artifact's own vectors leave unproven, which is not a publish verdict.
|
|
191
|
+
*
|
|
192
|
+
* The same fold that derives readiness over executed evidence runs here over declarations alone,
|
|
193
|
+
* and only its gaps are reported: the `ready` branch is a statement about evidence that ran, and
|
|
194
|
+
* a compile has none to state. `behaviour` is derived once by the compile and read by both folds.
|
|
195
|
+
*/
|
|
196
|
+
export declare function declaredEvidenceOf(schema: CompiledSchema, behaviour: ArtifactBehaviour, origins?: readonly DeclaredRuleOrigin[]): DeclaredEvidence;
|
|
197
|
+
//# sourceMappingURL=readiness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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